mirror of
https://github.com/justinian/jsix.git
synced 2025-12-11 08:54:31 -08:00
[panic.serial] Add location to panic data
Updated kassert to be an actual function, and used the __builtin_* functions for location data. Updated the panic handler protocol to include sending location data as three more parameters. Updated the serial panic handler to display that data along with the (optional) message.
This commit is contained in:
@@ -10,7 +10,7 @@ _panic_entry:
|
||||
push 0 ; NMI doesn't push an error code
|
||||
push 2 ; NMI is int 2
|
||||
push_all
|
||||
mov rdx, rsp
|
||||
mov r9, rsp
|
||||
|
||||
mov rax, [rsp + REGS.rip]
|
||||
push rax
|
||||
|
||||
Reference in New Issue
Block a user