X-Git-Url: http://git.dujemihanovic.xyz/projects?a=blobdiff_plain;f=boot%2Fx86%2Fstage3%2Floader.s;h=ec08c61bd0f5d00644cf471ebe26274f93153c9e;hb=ee5194ad075743971dc98d67f4abba8c118df976;hp=b67d33894099660760e7c63fc4d471c8090f3507;hpb=4ea950eb2243c099968ae328ecad99f94fca8a5b;p=nameless-os.git diff --git a/boot/x86/stage3/loader.s b/boot/x86/stage3/loader.s index b67d338..ec08c61 100644 --- a/boot/x86/stage3/loader.s +++ b/boot/x86/stage3/loader.s @@ -14,11 +14,13 @@ org 0x1800 _start: mov [BOOT_DRIVE], dl call enable_unreal + print begin call check_a20 jc .a20_enabled call enable_a20 jnc .a20_enable_fail .a20_enabled: + print a20_enabled call get_1st_data_sec mov ax, 0x1000 mov es, ax @@ -52,11 +54,15 @@ _start: .kernel_found: pop si pop cx + print kernel_found mov ax, [es:di+dir_entry.firstclushi] shl eax, 16 mov ax, [es:di+(dir_entry.firstcluslo)] + call print_dword mov edi, 0x100000 + print kernel_loading call read_clus_chain_unreal ; load kernel + print kernel_loaded cli lgdt [gdt] @@ -159,8 +165,13 @@ bits 32 jmp $-1 kernel_name: db "KERNEL BIN" +begin: db "Nameless Bootloader revision ", GIT_REVISION, 0xd, 0xa, 0 +a20_enabled: db "A20 has been enabled", 0xd, 0xa, "Searching for kernel...", 0xd, 0xa, 0 a20_fail: db "Failed to enable A20, giving up!", 0xd, 0xa, 0 crit_err: db "A critical error occurred, dumping registers now: ", 0xd, 0xa, 0 +kernel_found: db "Found kernel at cluster ", 0 +kernel_loading: db 0xd, 0xa, "Loading kernel...", 0xd, 0xa, 0 +kernel_loaded: db "Kernel successfully loaded.", 0xd, 0xa, "Setting up kernel environment and running kernel...", 0xd, 0xa, 0 missing_kernel: db "Could not find KERNEL.BIN", 0xd, 0xa, 0 eax_s: db "EAX: ", 0 ebx_s: db "EBX: ", 0