Monthly Archives: July 2008

panic.

I’m taking a short course in kernel development at the moment, and it’s proving quite enlightening.

My heart skipped a beat, though, after seing this in the sample kernel’s idle loop:

 __asm__ __volatile__ ("sti");
puts("Hello World!n");
//    i = 10 / 0;
//    putch(i);
for (;;);

I can picture it now:

Student: Ooo, I wonder what this will do if I uncomment it.
Tutor: Uncomment what? Wha– OHSHI– *za warudo*