> > not make ioremap work that early and do the same ?
> Because you lose the efficiency of mapping with BATs or CAMs.
> > CPUS without BAT/CAMs/whatever ?
> It just loads init's page tables directly.
> > for ioremap to work early.
> because it would think it has to allocate VM space.
easy to turn that into a static init though.
> > fix most of the problems with hard coded 1:1 mappings.
> don't know how much of this is still present.
that I can fix, I'm not sure about embedded.
> > (it needs to return the allocated address too).
> virtual to physical addresses.  These are going to be "hard coded"
done in MMU_init() but could probably be initialized statically instead.
> a function that does exactly this.