ptos/amd64+ke: Add system call groundwork + exit syscall
Signed-off-by: Chloe M. <chloe@mensia.org>
This commit is contained in:
@@ -151,3 +151,10 @@ LapicTmrIsr:
|
||||
call HalContextSwitch
|
||||
call MdLapicSendEoi
|
||||
INTR_EXIT()
|
||||
|
||||
.globl TrapLegacySyscall
|
||||
TrapLegacySyscall:
|
||||
INTR_ENTRY($0x2C)
|
||||
mov %rsp, %rdi
|
||||
call MdSyscallDispatch
|
||||
INTR_EXIT()
|
||||
|
||||
Reference in New Issue
Block a user