idt cleanup

This commit is contained in:
Adrien Bourmault 2019-05-17 10:53:10 +02:00
parent 4f3bda6ec2
commit 2ee9c7100e
2 changed files with 5 additions and 18 deletions

View File

@ -275,9 +275,6 @@ 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"
" Error code : %p\n\n"
" RIP: %#016lx CS: %#016lx RSP: %#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);
}
}

View File

@ -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;
}