File tree Expand file tree Collapse file tree 4 files changed +5
-5
lines changed
Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -299,7 +299,7 @@ gdt_copy:
299299 call print
300300
301301 mov rsi , gdt64
302- mov rdi , BASE_GDT ;; GDT 0x1000..0x1FFF (max)
302+ mov rdi , 0x00001000 ;; GDT 0x1000..0x1FFF (max)
303303 mov rcx , gdt64_end - gdt64
304304 rep movsb ;; Move GDT to final location in memory.
305305
@@ -319,8 +319,8 @@ pml4_canonical_high_find:
319319
320320;; PML4. Starts at 0x0000000000002000. Each entry maps 512GiB.
321321pml4:
322- mov rdi , BASE_PML4 ;; PML4 canonical low entry for physical mem.
323- mov rax , BASE_PDPT_L + 0X03 ;; #1 (R/W) | #0 (P) | *PDP low (4KiB aligned).
322+ mov rdi , 0x00002000 ;; PML4 canonical low entry for physical mem.
323+ mov rax , 0x00003003 ;; #1 (R/W) | #0 (P) | *PDP low (4KiB aligned).
324324 stosq ;; 1 | 1 |
325325 add rdi , rbx ;; PML4 entry for canonical high start address of (e
326326 ;; jemplo para 48 bits) 0xFFFF800000000000
@@ -1954,8 +1954,8 @@ addr_bits_logical db 0
19541954
19551955TSL_SIZE equ 0x3000 ;; 8KiB
19561956
1957- BASE_GDT equ 0x00000000
1958- BASE_IDT equ 0x00001000
1957+ BASE_IDT equ 0x00000000
1958+ BASE_GDT equ 0x00001000
19591959BASE_PML4 equ 0x00002000
19601960BASE_PDPT_L equ 0x00003000
19611961BASE_PDPT_H equ 0x00004000
You can’t perform that action at this time.
0 commit comments