Skip to content

Commit bfef649

Browse files
tamano de payload dejado en claro anotaciones
1 parent 7f221c2 commit bfef649

File tree

5 files changed

+6
-14
lines changed

5 files changed

+6
-14
lines changed

asm/tsl.asm

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -762,15 +762,9 @@ parse_uefi_memmap:
762762
mov r9, msg_ready
763763
call print
764764

765-
766-
call keyboard_get_key
767-
768-
769-
770765
mov r9, msg_mm_info
771766
call print
772767

773-
774768
;; Habiando terminado de parser todo el mapa de memoria, imprimir la info.
775769
.info_out:
776770
mov r9, fmt_mm_info_array
@@ -858,8 +852,6 @@ uefi_round:
858852
mov r9, msg_ready
859853
call print
860854

861-
;;call keyboard_get_key
862-
863855

864856
;; Create the High Page-Directory-Pointer-Table Entries (PDPTE). High PDPTE is s
865857
;; tored at 0x0000000000004000, create the first entry there. A single PDPTE can
@@ -1779,7 +1771,7 @@ addr_bits_physical: db 0
17791771
addr_bits_logical: db 0
17801772

17811773

1782-
TSL_SIZE equ 0x3000 ;; 8KiB
1774+
TSL_SIZE equ 0x3000 ;; 12KiB
17831775

17841776
BASE_IDT equ 0x00000000
17851777
BASE_GDT equ 0x00001000

asm/uefi.asm

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
;; | Encabez | Codigo | Datos | system | Kernel.bin | el fin |
1919
;; +---------+--------+-------+------------+------------+------------+
2020
;; |^ |^ |^ |^ |^ |^ ^|
21-
;; 0x0 0x200 0x1000 0x4000 0x5800 0x40000 0xFFFFF
22-
;; 0 512B 4KiB 16KiB 22KiB 256KiB 1MiB-1
21+
;; 0x0 0x200 0x1000 0x4000 0x7000 0x40000 0xFFFFF
22+
;; 0 512B 4KiB 16KiB 28KiB 256KiB 1MiB-1
2323
;;==============================================================================
2424

2525
TSL_BASE_ADDRESS equ 0x800000
@@ -606,7 +606,7 @@ verifica_payload:
606606
mov rsi, PAYLOAD + 6
607607
mov rax, [rsi]
608608
mov rbx, "UEFIBOOT" ;; Chequeo simple de payload en lugar.
609-
cmp rax, rbx ;; No se puede hacer cmp con operando inmediato de 64!
609+
cmp rax, rbx ;; No se puede hacer cmp con operando inmediato de 64...
610610
jne payloadSignatureFail
611611

612612
get_memmap:
@@ -756,9 +756,9 @@ exit_uefi_services:
756756
;; +--------------------+----------------------------------+
757757
;; | uefiBootloader.sys | kernel.bin + modulosUserland.bin |
758758
;; +--------------------+----------------------------------+
759-
;; |<------ 6KiB ------>|<------------ 234KiB ------------>|
759+
;; |<------ 12KiB ----->|<------------ 228KiB ------------>|
760760
;; |^ |^ |^
761-
;; 0x8000 0x9800 0x44000
761+
;; 0x800000 0x803000 0x83C000
762762
mov rsi, PAYLOAD
763763
mov rdi, TSL_BASE_ADDRESS
764764
mov rcx, (240 * 1024) ;; 240KiB a partir de TSL_BASE_ADDRESS

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)