uefi_call_wrapper() calls an invalid opcode
Posted: Thu May 02, 2024 9:09 am
Every call to uefi_call_wrapper() I have tried to make, has resulted in RIP = 0xB0000, and an Invalid opcode exception.
The full error message is:
My code can be found at https://github.com/Blazing-Blast/os64/
Does anyone know why this happens, and how to prevent it?
The full error message is:
Code: Select all
!!!! X64 Exception Type - 06(#UD - Invalid Opcode) CPU Apic ID - 00000000 !!!!
RIP - 00000000000B0000, CS - 0000000000000038, RFLAGS - 0000000000000A86
RAX - 0000000007F00743, RCX - 0000000007EFA330, RDX - 000000000636B470
RBX - 0000000000000000, RSP - 0000000007EFA308, RBP - 0000000007EFA340
RSI - 00000000063E9C98, RDI - 0000000007F00743
R8 - 0000000000000000, R9 - 0000000007EF9B4F, R10 - 0000000007EF9B30
R11 - 0000000000000260, R12 - 00000000063E9C98, R13 - 00000000075EC018
R14 - 0000000000000000, R15 - 00000000062BA740
DS - 0000000000000030, ES - 0000000000000030, FS - 0000000000000030
GS - 0000000000000030, SS - 0000000000000030
CR0 - 0000000080010033, CR2 - 0000000000000000, CR3 - 0000000007801000
CR4 - 0000000000000668, CR8 - 0000000000000000
DR0 - 0000000000000000, DR1 - 0000000000000000, DR2 - 0000000000000000
DR3 - 0000000000000000, DR6 - 00000000FFFF0FF0, DR7 - 0000000000000400
GDTR - 00000000075DC000 0000000000000047, LDTR - 0000000000000000
IDTR - 0000000007249018 0000000000000FFF, TR - 0000000000000000
FXSAVE_STATE - 0000000007EF9F60
!!!! Can't find image information. !!!!
Does anyone know why this happens, and how to prevent it?