check MMU state

Benjamin Herrenschmidt benh at kernel.crashing.org
Sun Apr 6 00:49:37 EST 2003


On Sat, 2003-04-05 at 17:35, Thomas Gleixner wrote:
> Hi !
>
> 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.

Ben.

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





More information about the Linuxppc-dev mailing list