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: