diff --git a/kaleid/kernel/ke/idt.c b/kaleid/kernel/ke/idt.c index dbfe933..7dec12e 100644 --- a/kaleid/kernel/ke/idt.c +++ b/kaleid/kernel/ke/idt.c @@ -275,10 +275,7 @@ void _KeHandleISR(ISRFrame_t *regs) // static void EarlyExceptionHandler(ISRFrame_t *regs) { - int recoverable = 0; - - if (!recoverable) { - KeStartPanic("[ISR 0x%x] Irrecoverable Kernel %s\n\n" + KeStartPanic("[ISR 0x%x] Irrecoverable Kernel %s\n\n" " Error code : %p\n\n" " RIP: %#016lx CS: %#016lx RSP: %#016lx\n" " SS: %#016lx RAX: %#016lx RBX: %#016lx\n" @@ -312,10 +309,4 @@ static void EarlyExceptionHandler(ISRFrame_t *regs) regs->rflags, regs->rflags ); - - } else { - bprintf(BStdOut, "[ISR %#x] %s\n", - regs->intNo, ExceptionsChar[regs->intNo]); - BStdOut->flusher(BStdOut); - } } diff --git a/kaleid/kernel/sh/shcmds.c b/kaleid/kernel/sh/shcmds.c index 365b595..feb2125 100644 --- a/kaleid/kernel/sh/shcmds.c +++ b/kaleid/kernel/sh/shcmds.c @@ -232,14 +232,10 @@ error_t CmdPF(int argc, char **argv, char *cmdline) /* *((char*)address) += 1; */ - *((char*)(1*GB)) += 1; - KernLog("1GB "); - *((char*)(2*GB)) += 1; - KernLog("2GB "); - *((char*)(3*GB)) += 1; - KernLog("3GB "); - *((char*)(4*GB)) += 1; - KernLog("4GB "); + for (int i = 0; i < 32; i++) { + KernLog("%dGB ", i); + *((char*)(i*GB)) = 1; + } return EOK; }