- noticed that my kernel restarts when it panic()'s. (That function only prints some text then enters an infinite loop.)
- suggest that the Wiki be added a section "Why is my kernel restarting?" here, detailing a few reasons why one's kernel would restart.
- can only think of the Triple Fault... my own explanation of which would be poor content (and is why I didn't start the article myself).
"Why is my kernel restarting?"
"Why is my kernel restarting?"
I ...
Re: "Why is my kernel restarting?"
Triple fault will be the reason, but the other question to ask is *what causes a triple fault*?
Stack overflow, stack underflow, corrupt stack, corrupt EIP...
Stack overflow, stack underflow, corrupt stack, corrupt EIP...
Re: "Why is my kernel restarting?"
Panic function can be tricky to write, because it is called when things are broken. If things are broken it is possible that doing anything in panic will cause more panics, and so on. Perhaps check if panic is being called multiple times, and if it called more than once just go into infinite loop. This would prevent your system from detierating even further towards triple faults and worse.

