-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Description
When an NMI occurs, the CPU automatically pushes:
RSP_0 → RIP
CS
RFLAGS
RSP
SS
After executing push rax...r15:
RSP_1 → r15 ← mov rcx, rsp (trap_frame pointer points here)
r14
rax
RIP ← Offset +0x78
CS ← Offset +0x80
RFLAGS ← Offset +0x88
RSP ← Offset +0x90
SS ← Offset +0x98
After executing pop r15...rax:
RSP_2 → RIP ← RSP returns here (modified to 0)
CS ← Modified to user mode
RFLAGS
RSP ← Modified to UserRsp
SS
jmp to Windows NMI handler:
Am I understanding correctly, bro?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels