Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
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.
00009781417i[CPU0 ] >> add byte ptr ds:[eax], al : 0000
00009781417e[CPU0 ] exception(): 3rd (13) exception with no resolution, shutdown status is 00h, resetting
is it normal or i got any bug code somewhere in kernel?
Oh hellz yeah, it's normal. It's because you don't have any handlers for interrupts, causing them to fire off and crash without anything to do. Until you have handlers written, never enable interrupts. It's the golden rule.
Solar wrote:It keeps stunning me how friendly we - as a community - are towards people who start programming "their first OS" who don't even have a solid understanding of pointers, their compiler, or how a OS is structured.
That usually means your code is somewhere you don't want it (in a pagefull of zeroes most likely)
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]