Where is MMU enabled?

Where is MMU enabled?

am 09.11.2009 19:02:50 von Rick Brown

Hi List,

I am curious to know where is the MMU turned on in a Linux PPC system
- is it the u-boot or the linux kernel? Since enabling of MMU shall be
the point from where the CPU will have to generate virtual addresses -
I think it should be somewhere in the kernel. The reason is that all
the addresses that we give on the u-boot command line are physical
addresses and not virtual, right (Thus implying MMU is not turned
on?)?

Or is it that kernel always gets the control with MMU on on PPC systems?

How about other architectures?

Thanks,

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

Re: Where is MMU enabled?

am 10.11.2009 01:58:25 von hmthalib

Rick Brown wrote:
> Hi List,
>
> I am curious to know where is the MMU turned on in a Linux PPC system
> - is it the u-boot or the linux kernel?


It is Linux. u-boot uses the flat memory system.

Since enabling of MMU shall be
> the point from where the CPU will have to generate virtual addresses -
> I think it should be somewhere in the kernel. The reason is that all
> the addresses that we give on the u-boot command line are physical
> addresses and not virtual, right (Thus implying MMU is not turned
> on?)?

yes. MMU is not turned on in u-boot

compare the data sheet and head_32.S for powerpc arch to know how the
MMU is initialized .

>
> Or is it that kernel always gets the control with MMU on on PPC systems?
>
> How about other architectures?
>
> Thanks,
>
> Rick
>
> --
> To unsubscribe from this list: send an email with
> "unsubscribe kernelnewbies" to ecartis@nl.linux.org
> Please read the FAQ at http://kernelnewbies.org/FAQ
>
>


--
Regards,
Mohamed Thalib H
--
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs