diff options
author | Joursoir <chat@joursoir.net> | 2021-08-26 17:16:43 +0000 |
---|---|---|
committer | Joursoir <chat@joursoir.net> | 2021-08-26 17:16:43 +0000 |
commit | 279f7f2ae76e14fbf3d55a330df4e607f1de03f0 (patch) | |
tree | 741c2a6f868578661f4f70c86ca2fddd54b0cd9d | |
parent | aec6cebe2b037cc27e3d8608a06dbe2f1bbe270b (diff) | |
download | mfsos-279f7f2ae76e14fbf3d55a330df4e607f1de03f0.tar.gz mfsos-279f7f2ae76e14fbf3d55a330df4e607f1de03f0.tar.bz2 mfsos-279f7f2ae76e14fbf3d55a330df4e607f1de03f0.zip |
x86/boot/bootsect: print messages about loading
-rw-r--r-- | arch/x86/boot/bootsect.s | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/arch/x86/boot/bootsect.s b/arch/x86/boot/bootsect.s index 4af35d6..6f90746 100644 --- a/arch/x86/boot/bootsect.s +++ b/arch/x86/boot/bootsect.s @@ -22,7 +22,10 @@ _start2: mov %dl, boot_drive # BIOS stores our boot drive in DL, # so we remember it - BIOS_PRINT $boot_os_msg + BIOS_PRINT $boot_real_mode_msg + +load_kernel: # Load our kernel + BIOS_PRINT $boot_load_kern_msg mov $0x02, %ah # Set BIOS read sector routine mov boot_drive, %dl # Read drive number from $boot_drive @@ -46,8 +49,11 @@ disk_error: jmp . # Global variables -boot_os_msg: - .asciz "Booting mfsos...\r\n" +boot_real_mode_msg: + .asciz "Started mfsos in 16-bit real mode\r\n" + +boot_load_kern_msg: + .asciz "Loading kernel into memory\r\n" disk_error_msg: .asciz "Disk read error!" |