Removed bloat strings to make up space

rust
E. Almqvist 3 years ago
parent 525f57f0c0
commit ca77942827
  1. 8
      bootloader/bios/memory.asm
  2. 15
      bootloader/bootloader.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

@ -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

Loading…
Cancel
Save