First cut at large page support on 40x
Dan Malek
dan at embeddededge.com
Tue Jun 4 10:43:43 EST 2002
David Gibson wrote:
> The only large-page PTEs used are created in mapin_ram() for the
> kernel mapping of system RAM.
I did a similar thing for 8xx, except I didn't change any of the existing
mapping code. At the end of the kernel initialization, I added a function
to scan the page tables looking for areas we could coalesce into larger
pages. I would then update the PMD entry to indicate the size of the pages
(4M or 8M in the case of 8xx) it could use to cover this space. This way
I could also get any I/O mapping that was done and I didn't have to complicate
any of the existing mapin_ram() or other code with processor specific changes.
Also, iopa() and any page lookup functions should work since the only change
was to add control bits to the least significant part of pmd entry.
Thanks.
-- Dan
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
More information about the Linuxppc-embedded
mailing list