diff options
author | dzwdz | 2024-07-22 19:31:21 +0200 |
---|---|---|
committer | dzwdz | 2024-07-22 19:31:21 +0200 |
commit | acf0c1333d620821820b2246e1c7acc0aaf0bd44 (patch) | |
tree | 77b6843892793039f7ca005f1ced6d173e00295b /src/kernel/arch/amd64/driver/ps2.c | |
parent | 2a09d77902c5007fb30c40f9c89ecb46aedf4006 (diff) |
kernel: use IRET instead of SYSRET for switching into usermode
I want to implement a new syscall for returning from "interrupts" (my
crappy take on Plan 9's notes / UNIX signals), and I've realized that
I can't use SYSRET for that, as it clobbers RCX and R11.
This hasn't been an issue so far, as I've only been switching into usermode
to return from syscalls, but now I might be switching into it at arbitrary
moments (right after an interrupt handler recovers from a page fault, etc).
I could make it so I switch between IRET and SYSRET depending on the context,
but I don't think it's worth it.
Diffstat (limited to 'src/kernel/arch/amd64/driver/ps2.c')
0 files changed, 0 insertions, 0 deletions