summaryrefslogtreecommitdiff
path: root/arch/i386/boot/boot.s
diff options
context:
space:
mode:
Diffstat (limited to 'arch/i386/boot/boot.s')
-rw-r--r--arch/i386/boot/boot.s5
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/i386/boot/boot.s b/arch/i386/boot/boot.s
index e443b08..6d6da7d 100644
--- a/arch/i386/boot/boot.s
+++ b/arch/i386/boot/boot.s
@@ -64,14 +64,13 @@ _start:
.section .text
-4: movl $0, boot_page_directory + 0
-
- movl %cr3, %ecx
+4: movl %cr3, %ecx
movl %ecx, %cr3
movl $stack_top, %esp
and $-16, %esp
+ pushl $boot_page_directory
pushl %ebx
pushl %eax
call i386_entry