mirror of
https://github.com/justinian/jsix.git
synced 2025-12-10 08:24:32 -08:00
Pass CPU state as a pointer
Previously CPU statue was passed on the stack, but the compiler is allowed to clobber values passed to it on the stack in the SysV x86 ABI. So now leave the state on the stack but pass a pointer to it into the ISR functions.
This commit is contained in:
@@ -16,5 +16,5 @@ enum class syscall : uint64_t
|
||||
};
|
||||
|
||||
void syscall_enable();
|
||||
uintptr_t syscall_dispatch(uintptr_t, const cpu_state &);
|
||||
uintptr_t syscall_dispatch(uintptr_t, cpu_state &);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user