From c7944c91daa0740813faacadb59a938021454514 Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Fri, 3 Aug 2018 01:51:07 +0200 Subject: [PATCH] Code cleanup --- src/arch/i386/kernel.S | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/arch/i386/kernel.S b/src/arch/i386/kernel.S index 36f4460..d83006e 100644 --- a/src/arch/i386/kernel.S +++ b/src/arch/i386/kernel.S @@ -77,29 +77,29 @@ _start: cmp $0x0, %eax jne 2f - /* start the kernel */ + /* prepare the arguments */ push $0x0 push $0x0 mov %ebx, %eax add $0x10, %eax push %eax push $0x1 - call main - add $0x10, %esp jmp 2f 1: /* FIXME setup paging */ + /* prepare the arguments */ + push $0x0 + push $0x0 + push $0x0 + push $0x0 + +2: /* start the kernel */ - push $0x0 - push $0x0 - push $0x0 - push $0x0 call main add $0x10, %esp -2: /* exit the kernel */ push %eax call exit