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.s16
1 files changed, 6 insertions, 10 deletions
diff --git a/arch/i386/boot/boot.s b/arch/i386/boot/boot.s
index 4b9106d..2d17f6a 100644
--- a/arch/i386/boot/boot.s
+++ b/arch/i386/boot/boot.s
@@ -76,25 +76,21 @@ _start:
1: hlt
jmp 1b
-.global load_page_dir
-.type load_page_dir, @function
-load_page_dir:
+.global enable_paging
+.type enable_paging, @function
+enable_paging:
pushl %ebp
movl %esp, %ebp
movl 8(%esp), %eax
movl %eax, %cr3
- movl %ebp, %esp
- popl %ebp
- ret
-
-.global enable_paging
-.type enable_paging, @function
-enable_paging:
movl %cr0, %eax
orl $0x80000001, %eax
movl %eax, %cr0
+
+ movl $0, %eax
+ popl %ebp
ret
.global flush_gdt