mirror of
https://gitlab.os-k.eu/os-k-team/os-k.git
synced 2023-08-25 14:03:10 +02:00
Revert "LONG MODE MULTIBOOT WORKS gsp!"
This reverts commit 995fda7c569a5996377275886183d5b15911ec2f.
This commit is contained in:
parent
3d7288c459
commit
57260ebb62
@ -108,7 +108,6 @@ lnext:
|
||||
%include "boot/loader/mem/structures.inc"
|
||||
lnext2:
|
||||
call Setup_paging
|
||||
call Go64
|
||||
jmp lnext3
|
||||
%include "boot/loader/mem/management.inc"
|
||||
|
||||
|
@ -57,8 +57,6 @@ Setup_paging:
|
||||
; Enable long mode and paging ;
|
||||
; ---------------------------------------------------------------------------- ;
|
||||
Go64:
|
||||
pusha
|
||||
|
||||
;; Registering paging
|
||||
mov eax, PML4_table
|
||||
mov cr3, eax ; Load PML4 to cr3
|
||||
@ -80,10 +78,5 @@ Go64:
|
||||
; |
|
||||
; `------ Paging bit
|
||||
mov cr0, eax
|
||||
jmp .end
|
||||
nop
|
||||
nop
|
||||
.end:
|
||||
|
||||
popa
|
||||
ret
|
||||
|
@ -26,7 +26,7 @@
|
||||
[BITS 32]
|
||||
|
||||
;; GDT WITH DOC
|
||||
ALIGN 4096
|
||||
ALIGN 4
|
||||
GDT64:
|
||||
NULL_SELECTOR: ;; null selector within 64 bits
|
||||
dw GDT_LENGTH ; limit of GDT
|
||||
@ -104,7 +104,7 @@ GDT64:
|
||||
GDT_LENGTH:
|
||||
|
||||
;; EMPTY PAGE TABLES (identity of the first 1GiB)
|
||||
ALIGN 4096
|
||||
ALIGN 4
|
||||
PML4_table:
|
||||
resb 4096
|
||||
PDP_table:
|
||||
|
Binary file not shown.
Loading…
Reference in New Issue
Block a user