Re: clean way to support >32bit addr on 32bit CPU

Slade Maurer
2005-01-11T00:32:12Z

Deepak Saxena wrote:

>On Jan 10 2005, at 16:01, Slade Maurer was caught saying:
>
>
>>Also, it would be nice to have PTEs to represent the upper 4GB such that
>>it can be mmapped to user space. PAE handled this in and it would be
>>great to have it in ARM MMU36 as well.
>>
>>
>
>Not doable. I believe PAE allows for normal 4K pages to be used when
>mapping > 32-bits. XSC3 and ARMv6 only allow for > 32 bit addresses
>when using 16MB pages (supersections), so we need to instead use
>the hugetlb approach.
>
>~Deepak
>
>
>
You are right of course. The MMUs first level descriptors force you to
have 16MB pages.

I don't see anything wrong with using hugeTLB. Then it is up to the user
to get hugetlbfs setup so that they can mmap(...) properly. This is
forced on us by the designers of the MMU ;)

I think that is better than setting permissions during ioremap(...) so
that a user space process can use a kernel virtual address for user
space access.

-Slade