Re: [PATCH 10/28] i386: map enough initial memory to create lowmem mappings

H. Peter Anvin
2007-04-23T20:42:39Z

Eric W. Biederman wrote:
> Jeremy Fitzhardinge <jeremy@goop.org> writes:
>
>> H. Peter Anvin wrote:
>>> It would be *trivial* to make a certain number of page table slots
>>> available at the end of the head.S-generated map.
>> Or you could use a fixmap.
>
> That certain number of page table slots should be the fixmap slots.
> If you do that bt_ioremap works, we remove a boatload of special cases
> and the code becomes simpler.

It's probably worth noting that several of the non-PC ports already do
exactly this, although in a hacky way. Grep for pg0 and you'll find it.

-hpa