is it normal to crash when enable interrupts?
Posted: Mon Oct 13, 2008 12:01 pm
im new to os programming, my kernel its very simple, it justs print to screen and halt. i didn't setup any idt or interrupt handling so far. so, my question, why the OS crash when i enable interrupts.
this is what i got
with the asm("sti"); the kernel crash and this is what appear in bochslog
is it normal or i got any bug code somewhere in kernel?
thanks
this is what i got
Code: Select all
void kmain(void)
{
iniciarVideo();
puts("HELLO WORLD\n");
asm("sti");
for (;;);
}
Code: Select all
00009781417i[CPU0 ] >> add byte ptr ds:[eax], al : 0000
00009781417e[CPU0 ] exception(): 3rd (13) exception with no resolution, shutdown status is 00h, resetting
thanks