From dc35b1d647b992eae58588f5db66df568c7570a6 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sun, 3 Nov 2019 14:40:28 +0100 Subject: [PATCH] Kernel: Remove nonsense in bootstrap code This code was not doing anything important. Since we're building the kernel with -mregparm=3, the first function argument goes in %eax. --- Kernel/Arch/i386/Boot/boot.S | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Kernel/Arch/i386/Boot/boot.S b/Kernel/Arch/i386/Boot/boot.S index bc840d72ef..33b2f26def 100644 --- a/Kernel/Arch/i386/Boot/boot.S +++ b/Kernel/Arch/i386/Boot/boot.S @@ -50,15 +50,11 @@ start: and $-16, %esp - pushl %esp - pushl %eax /* Multiboot header magic */ - pushl %ebx /* Multiboot header pointer */ - mov %ebx, multiboot_info_ptr call init - pushl $exit_message + mov $exit_message, %eax call kprintf cli