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:
Karina
2026-01-31 02:49:34 +04:00
parent 4e6794a6c2
commit c30d57d06e
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -24,6 +24,7 @@ void isr_handler_c(CPURegisters* frame) {
IOConsoleLog("^gR13^!=%X, ^gR14^!=%X\n", frame->r13, frame->r14); IOConsoleLog("^gR13^!=%X, ^gR14^!=%X\n", frame->r13, frame->r14);
IOConsoleLog("^gR15^!=%X\n",frame->r15); IOConsoleLog("^gR15^!=%X\n",frame->r15);
IOConsoleLog("--------------------------------\n"); IOConsoleLog("--------------------------------\n");
return;
} }
if ((frame->cs & 3) != 0) { if ((frame->cs & 3) != 0) {
IOConsoleLog("\n[Dewar] Process '%s' (PID %d) Segmentation Fault at %X\n", IOConsoleLog("\n[Dewar] Process '%s' (PID %d) Segmentation Fault at %X\n",
+1 -1
View File
@@ -80,7 +80,7 @@ void kmain(Bootinfo* info) {
IOConsoleLog("VFS initialized\n"); IOConsoleLog("VFS initialized\n");
UInt32 *framebuffer = (UInt32*)info->framebuffer.base; UInt32 *framebuffer = (UInt32*)info->framebuffer.base;
if (!framebuffer) return IOConsoleLog("No framebuffer found!!"); if (!framebuffer) return OSPanic("No framebuffer found!!");
sIOGraphicsContext.framebuffer = framebuffer; sIOGraphicsContext.framebuffer = framebuffer;
sIOGraphicsContext.dimensions.height = info->framebuffer.height; sIOGraphicsContext.dimensions.height = info->framebuffer.height;