check MMU state

Thomas Gleixner tglx at linutronix.de
Sun Apr 6 02:15:40 EST 2003


On Saturday 05 April 2003 16:49, Benjamin Herrenschmidt wrote:
> > Is there a clean way to check, if the MMU is enabled on kernel entry ? I
> > have to port Linux to a PMC-module, where the bootloader code should not
> > be changed.
>
> The kernel entry can cope with both cases, provided that early_init
> properly returns the physical address where the kernel is loaded,
> regardless of the translations setup by the bootloader. Also, the
> kernel has to be contiguous in physical memory.
I don't reach early_init. The CPU is a 860 and I'm using 2.4.20-ben8. I get
lost in initial_mmu. If I turn off the mmu before "bl initial_mmu" everything
is fine.

--
Thomas
________________________________________________________________________
linutronix - competence in embedded & realtime linux
http://www.linutronix.de
mail: tglx at linutronix.de


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/





More information about the Linuxppc-dev mailing list