Re: [patch] i386: early pagefault handler

From: Linus Torvalds
Date: Wed Jul 05 2006 - 16:23:47 EST




On Wed, 5 Jul 2006, Chuck Ebbert wrote:
>
> Page faults during kernel initialization can be hard to diagnose.
>
> Add a handler that prints the fault address, EIP and top of stack
> when an early page fault happens.

Is there really any reason to do this in assembler? The "start_kernel"
call into C happens not that much later, and none of what the routine does
seems to really be especially assembler-friendly.

Linus
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/