From 2a599e41946949d00b89cab3ded69dc38ab613ff Mon Sep 17 00:00:00 2001 From: mp6sgfx3h <1610531619@qq.com> Date: Mon, 4 Jul 2022 11:11:07 +0800 Subject: [PATCH] Update system_call.s --- linux/kernel/system_call.s | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/linux/kernel/system_call.s b/linux/kernel/system_call.s index d26f913..b0a7e70 100644 --- a/linux/kernel/system_call.s +++ b/linux/kernel/system_call.s @@ -227,9 +227,8 @@ sys_fork: pushl %edi pushl %ebp pushl %eax - pushl $0x0 #for flag call copy_process - addl $24,%esp #for flag + addl $20,%esp 1: ret .align 4 @@ -237,17 +236,13 @@ sys_clone: call find_empty_process testl %eax,%eax js 1f - pushl %eax push %gs pushl %esi pushl %edi pushl %ebp pushl %eax - pushl $0x1 #for flag - call copy_process - addl $24,%esp #for flag - call do_clone - addl $4,%esp + call copy_process_clone + addl $20,%esp 1: ret hd_interrupt: