1
0
mirror of https://gitlab.os-k.eu/os-k-team/os-k.git synced 2023-08-25 14:03:10 +02:00

Step 1 : StartPanic is the real problem

This commit is contained in:
Adrien Bourmault 2019-03-11 18:10:54 +01:00
parent fe12e3bca9
commit 2aeaefe7ac
2 changed files with 8 additions and 4 deletions

View File

@ -126,7 +126,7 @@ lbegin:
x64_K db "Now in x64 long mode", 0x0A, 0x0D, 0x0
GoKernel db "Launching Kernel...", 0
nokernel db "ERROR 05 : Kernel launching error",0
nokernel db 219, 219, 219, " Error 05 : Kernel returns",0
_loader64:
;; Some cleanup
@ -153,9 +153,11 @@ _loader64:
call tritemporize ; Let time to see
extern StartKern
jmp StartKern
call StartKern
;; We must never reach this point ------------------------------------------- ;;
call tritemporize ; Let time to see
call clear
mov bl, 0x0c
mov esi, nokernel ; Error 05
call write

View File

@ -42,9 +42,11 @@ noreturn void StartKern(void *mbInfo, int mbMagic)
// Kernel terminals
InitTerms();
*vga = 'A' | (0x0F << 8);
vga = 0xB8000;
*vga = ('A') | (0x0F << 8);
// We're out
// StartPanic("Goodbye World :(");
//StartPanic("Goodbye World :(");
}