Skip to content

Commit 96b6f30

Browse files
esto anda, antes de cambiar por simbolos los comienzos de tablas
1 parent 7c44461 commit 96b6f30

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

asm/tsl.asm

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff 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.
321321
pml4:
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

19551955
TSL_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
19591959
BASE_PML4 equ 0x00002000
19601960
BASE_PDPT_L equ 0x00003000
19611961
BASE_PDPT_H equ 0x00004000

build/tsl.sys

0 Bytes
Binary file not shown.

out/BOOTX64.EFI

0 Bytes
Binary file not shown.

out/payload.sys

0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)