idt cleanup
This commit is contained in:
parent
4f3bda6ec2
commit
2ee9c7100e
|
@ -275,10 +275,7 @@ void _KeHandleISR(ISRFrame_t *regs)
|
||||||
//
|
//
|
||||||
static void EarlyExceptionHandler(ISRFrame_t *regs)
|
static void EarlyExceptionHandler(ISRFrame_t *regs)
|
||||||
{
|
{
|
||||||
int recoverable = 0;
|
KeStartPanic("[ISR 0x%x] Irrecoverable Kernel %s\n\n"
|
||||||
|
|
||||||
if (!recoverable) {
|
|
||||||
KeStartPanic("[ISR 0x%x] Irrecoverable Kernel %s\n\n"
|
|
||||||
" Error code : %p\n\n"
|
" Error code : %p\n\n"
|
||||||
" RIP: %#016lx CS: %#016lx RSP: %#016lx\n"
|
" RIP: %#016lx CS: %#016lx RSP: %#016lx\n"
|
||||||
" SS: %#016lx RAX: %#016lx RBX: %#016lx\n"
|
" SS: %#016lx RAX: %#016lx RBX: %#016lx\n"
|
||||||
|
@ -312,10 +309,4 @@ static void EarlyExceptionHandler(ISRFrame_t *regs)
|
||||||
regs->rflags,
|
regs->rflags,
|
||||||
regs->rflags
|
regs->rflags
|
||||||
);
|
);
|
||||||
|
|
||||||
} else {
|
|
||||||
bprintf(BStdOut, "[ISR %#x] %s\n",
|
|
||||||
regs->intNo, ExceptionsChar[regs->intNo]);
|
|
||||||
BStdOut->flusher(BStdOut);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -232,14 +232,10 @@ error_t CmdPF(int argc, char **argv, char *cmdline)
|
||||||
|
|
||||||
/* *((char*)address) += 1; */
|
/* *((char*)address) += 1; */
|
||||||
|
|
||||||
*((char*)(1*GB)) += 1;
|
for (int i = 0; i < 32; i++) {
|
||||||
KernLog("1GB ");
|
KernLog("%dGB ", i);
|
||||||
*((char*)(2*GB)) += 1;
|
*((char*)(i*GB)) = 1;
|
||||||
KernLog("2GB ");
|
}
|
||||||
*((char*)(3*GB)) += 1;
|
|
||||||
KernLog("3GB ");
|
|
||||||
*((char*)(4*GB)) += 1;
|
|
||||||
KernLog("4GB ");
|
|
||||||
|
|
||||||
return EOK;
|
return EOK;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue