X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Kernel%2Farch%2Fx86_64%2Fstart32.asm;h=d38c993ee52f109bbdb2af49594bb001908902d3;hb=d710f435ed0d2b804ea82dba2dd122c4d6e5d08d;hp=6de3a8764fb0505c00714f40c77b188a32876324;hpb=a59083b859599aeee6ab3e4fd6a0113faa5fddf5;p=tpg%2Facess2.git diff --git a/Kernel/arch/x86_64/start32.asm b/Kernel/arch/x86_64/start32.asm index 6de3a876..d38c993e 100644 --- a/Kernel/arch/x86_64/start32.asm +++ b/Kernel/arch/x86_64/start32.asm @@ -1,3 +1,8 @@ +; +; Acess2 x86_64 port +; + +%include "arch/x86_64/include/common.inc.asm" [BITS 32] @@ -65,7 +70,7 @@ start: ; Enable paging mov eax, cr0 - or eax, 0x80000000 + or eax, 0x80010000 ; PG & WP mov cr0, eax ; Load GDT @@ -150,11 +155,11 @@ gKStackPT: ; Covers 2 MiB ; Initial stack - 64KiB dq 0 %assign i 0 - %rep 16-1 + %rep INITIAL_KSTACK_SIZE-1 dd gInitialKernelStack - KERNEL_BASE + i*0x1000 + 0x103, 0 %assign i i+1 %endrep - times 512-16 dq 0 + times 512-INITIAL_KSTACK_SIZE dq 0 gInitialPT1: ; 2 MiB %assign i 0 %rep 512 @@ -171,8 +176,10 @@ gInitialPT2: ; 2 MiB [section .padata] [global gInitialKernelStack] gInitialKernelStack: - times 0x1000*(16-1) db 0 ; 16 Pages + times 0x1000*(INITIAL_KSTACK_SIZE-1) db 0 ; 8 Pages [section .rodata] csNot64BitCapable: db "Not 64-bit Capable",0 + +; vim: ft=nasm