Kernel/x86 - Fixed possible issue with entrypoint not being in a PT_LOAD segment
[tpg/acess2.git] / KernelLand / Kernel / arch / x86 / start.asm
index 1d4a35d..26f8042 100644 (file)
@@ -55,7 +55,7 @@ mboot:
 ;      dd      8
 ;mboot2_end:
        
-[section .text]
+[section .inittext]
 [extern kmain]
 [extern Desctab_Install]
 [global start]
@@ -143,7 +143,7 @@ APStartup:
        or al, 1
        mov cr0, eax
        ; Jump into PMode
-       jmp 08h:DWORD .ProtectedMode-KERNEL_BASE
+       jmp 08h:DWORD .ProtectedMode
 [bits 32]
 .ProtectedMode:
        ; Load segment registers
@@ -218,6 +218,10 @@ APStartup:
        jmp .hlt
 %endif
 
+;
+;
+;
+[section .text]
 [global GetEIP]
 GetEIP:
        mov eax, [esp]

UCC git Repository :: git.ucc.asn.au