aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/boot.asm
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/boot.asm')
-rw-r--r--src/kernel/boot.asm15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/kernel/boot.asm b/src/kernel/boot.asm
index d7d78fd..97e68f5 100644
--- a/src/kernel/boot.asm
+++ b/src/kernel/boot.asm
@@ -41,6 +41,21 @@ stublet:
call kernel_main
jmp $
+[global copy_page_physical]
+copy_page_physical:
+ push ebx
+ pushf
+ cli
+ mov ebx, [esp+12]
+ mov ecx, [esp+16]
+
+ ; Disable paging
+ mov edx, cr0
+ and edx, 0x7fffffff
+ mov cr0, edx
+
+ mov edx, 1024
+
%include "src/kernel/gdt/gdt.asm"
%include "src/kernel/interrupts/idt.asm"