From ca77942827792feb6e245a4362162c08e6506e7a Mon Sep 17 00:00:00 2001 From: "E. Almqvist" Date: Thu, 17 Mar 2022 20:59:35 +0100 Subject: [PATCH] Removed bloat strings to make up space --- bootloader/bios/memory.asm | 8 ++------ bootloader/bootloader.asm | 15 +-------------- 2 files changed, 3 insertions(+), 20 deletions(-) diff --git a/bootloader/bios/memory.asm b/bootloader/bios/memory.asm index c045054..8acdb36 100644 --- a/bootloader/bios/memory.asm +++ b/bootloader/bios/memory.asm @@ -1,8 +1,4 @@ ; SRs to find memory size and leave it as a "note" for the kernel -[org 0x0000] - -sig_0x15: db "SMAP" - ; Descriptor Table for address ranges addr_rng_dt_start: addr_rng_low: dd 0 @@ -16,8 +12,8 @@ map_phys_mem_init: mov ebx, 0 map_phys_mem: mov eax, 0xe820 ; Function code - mov es, addr_rng_dt_start - mov edx, sig_0x15 ; Signature + ;mov es, addr_rng_dt_start + mov edx, 'SMAP' ; Signature int BIOS_PMEM_INT diff --git a/bootloader/bootloader.asm b/bootloader/bootloader.asm index 581346d..7f4d456 100644 --- a/bootloader/bootloader.asm +++ b/bootloader/bootloader.asm @@ -9,13 +9,9 @@ mov sp, bp ; Load kernel into memory - mov bx, stat_kernel_load - call println call load_kernel ; Switching to PM - mov bx, stat_pm_init - call println call pm_preinit jmp $ ; inf loop @@ -67,13 +63,8 @@ pm_init: call BEGIN_PM BEGIN_PM: - ; Inform of mode switch - mov ebx, stat_boot_success - call vga_print - - ; Execute kernel code + ; Call the kernel call KERNEL_OFFSET - jmp $ [bits 16] @@ -86,10 +77,6 @@ load_kernel: ret -stat_pm_init: db "Entering 32bit Protected Mode...", ASCII_END -stat_kernel_load: db "Loading kernel into memory...", ASCII_END -stat_boot_success: db "Booting finished. Loading kernel...", ASCII_END - BOOT_DRIVE: db 0 ; Bootsector