On Friday 14 June 2002 06:57, Skip Gaede wrote:
Folks,
I'd like to try my hand at debugging the kernel boot process on a Macintosh PPC. I have a couple of silly questions, though.
Folks, As an update, I was able to debug the boot process without resorting to a debugger. I found two techniques worked well: putting the kernel into an infinite loop at strategic points in the process, either unconditionally or based on the result of a test: for(;<test>;){int foo;foo++;} and/or using low level routines for displaying information on the console: ptext_drawstring, and ptext_drawhex; The fact that the bug I was chasing had to do with the nonrelocation of the console framebuffer made printing somewhat unreliable, The good news is that I found the bug, the kernel is mostly working, and the latest swapping code is much better than the 2.4.13 code I previously had access to. --Skip