fix(ksh/regs): now it doesnt panic when typing regs in ksh
fix(kmain): Now Dewar correctly OSPanic()'s instead of returnin IOConsoleLog when no framebuffer found
This commit is contained in:
@@ -24,6 +24,7 @@ void isr_handler_c(CPURegisters* frame) {
|
||||
IOConsoleLog("^gR13^!=%X, ^gR14^!=%X\n", frame->r13, frame->r14);
|
||||
IOConsoleLog("^gR15^!=%X\n",frame->r15);
|
||||
IOConsoleLog("--------------------------------\n");
|
||||
return;
|
||||
}
|
||||
if ((frame->cs & 3) != 0) {
|
||||
IOConsoleLog("\n[Dewar] Process '%s' (PID %d) Segmentation Fault at %X\n",
|
||||
|
||||
+1
-1
@@ -80,7 +80,7 @@ void kmain(Bootinfo* info) {
|
||||
IOConsoleLog("VFS initialized\n");
|
||||
|
||||
UInt32 *framebuffer = (UInt32*)info->framebuffer.base;
|
||||
if (!framebuffer) return IOConsoleLog("No framebuffer found!!");
|
||||
if (!framebuffer) return OSPanic("No framebuffer found!!");
|
||||
|
||||
sIOGraphicsContext.framebuffer = framebuffer;
|
||||
sIOGraphicsContext.dimensions.height = info->framebuffer.height;
|
||||
|
||||
Reference in New Issue
Block a user