X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Kernel%2Farch%2Fx86%2Fproc.asm;h=20a4fd7806782da1c5fd49f7a9cb492a5239654d;hb=3998cfbbadb005bf3ad52ea2538dc21f82864ddc;hp=cefd7963d58b2fe619a88457c31abd7724e750ed;hpb=f24c301371fbcb5ee42c5118f61f7304cb989746;p=tpg%2Facess2.git diff --git a/Kernel/arch/x86/proc.asm b/Kernel/arch/x86/proc.asm index cefd7963..20a4fd78 100644 --- a/Kernel/arch/x86/proc.asm +++ b/Kernel/arch/x86/proc.asm @@ -236,6 +236,13 @@ GetCPUNum: ; Usermode code exported by the kernel [section .usertext] +; Export a place for the user to jump to to call a syscall +; - Allows the kernel to change the method easily +User_Syscall: + xchg bx, bx + int 0xAC + +; A place to return to and exit User_Syscall_RetAndExit: push eax call User_Syscall_Exit