X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=KernelLand%2FKernel%2Farch%2Fx86_64%2Fproc.asm;h=aff670aca173c7ac61d6d37b935c26784c6849bd;hb=13078002b01ee4f63eb2001d2ef479a2a006ea32;hp=f44d65b012fccb04af434de6d101bc5594cf4765;hpb=c040a99e085bfeaac5146ed68a44d8c1e2ce9936;p=tpg%2Facess2.git diff --git a/KernelLand/Kernel/arch/x86_64/proc.asm b/KernelLand/Kernel/arch/x86_64/proc.asm index f44d65b0..aff670ac 100644 --- a/KernelLand/Kernel/arch/x86_64/proc.asm +++ b/KernelLand/Kernel/arch/x86_64/proc.asm @@ -39,6 +39,8 @@ Proc_CloneInt: PUSH_GPR ; Save RSP mov [rdi], rsp + ; Call MM_Clone (with bNoUserCopy flag) + mov rdi, rdx call MM_Clone ; Save CR3 mov rsi, [rsp+0x30] ; Saved version of RSI @@ -145,4 +147,15 @@ Proc_RestoreSSE: fxrstor [rdi] ret +[section .usertext] + +[global User_Signal_Kill] +User_Signal_Kill: + xor rax, rax + mov bx, di + mov bh, 0x02 + int 0xAC + jmp $ + + ; vim: ft=nasm