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 ; 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 ; Descriptor Table for address ranges
addr_rng_dt_start: addr_rng_dt_start:
addr_rng_low: dd 0 addr_rng_low: dd 0
@ -16,8 +12,8 @@ map_phys_mem_init:
mov ebx, 0 mov ebx, 0
map_phys_mem: map_phys_mem:
mov eax, 0xe820 ; Function code mov eax, 0xe820 ; Function code
mov es, addr_rng_dt_start ;mov es, addr_rng_dt_start
mov edx, sig_0x15 ; Signature mov edx, 'SMAP' ; Signature
int BIOS_PMEM_INT int BIOS_PMEM_INT

@ -9,13 +9,9 @@
mov sp, bp mov sp, bp
; Load kernel into memory ; Load kernel into memory
mov bx, stat_kernel_load
call println
call load_kernel call load_kernel
; Switching to PM ; Switching to PM
mov bx, stat_pm_init
call println
call pm_preinit call pm_preinit
jmp $ ; inf loop jmp $ ; inf loop
@ -67,13 +63,8 @@ pm_init:
call BEGIN_PM call BEGIN_PM
BEGIN_PM: BEGIN_PM:
; Inform of mode switch ; Call the kernel
mov ebx, stat_boot_success
call vga_print
; Execute kernel code
call KERNEL_OFFSET call KERNEL_OFFSET
jmp $ jmp $
[bits 16] [bits 16]
@ -86,10 +77,6 @@ load_kernel:
ret 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 BOOT_DRIVE: db 0
; Bootsector ; Bootsector

Loading…
Cancel
Save