From cf2166f830f7d3e1faefca0cbfa22fd27f8dc7ee Mon Sep 17 00:00:00 2001 From: Tomoki Shirasawa Date: Fri, 16 Jan 2015 14:28:28 +0900 Subject: [PATCH] function enter_user_mode calls check_signal. refs #392 --- arch/x86/kernel/interrupt.S | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/arch/x86/kernel/interrupt.S b/arch/x86/kernel/interrupt.S index 04dbb85f..59dd258e 100644 --- a/arch/x86/kernel/interrupt.S +++ b/arch/x86/kernel/interrupt.S @@ -147,7 +147,10 @@ x86_syscall: #endif .globl enter_user_mode -enter_user_mode: +enter_user_mode: + movq $0, %rdi + movq %rsp, %rsi + call check_signal POP_ALL_REGS addq $8, %rsp iretq