[PATCH v2 31/34] ARM: mmu32: read TTB value from register
Sascha Hauer
s.hauer at pengutronix.de
Wed May 17 07:39:35 PDT 2023
On Wed, May 17, 2023 at 03:58:01PM +0200, Ahmad Fatoum wrote:
> On 17.05.23 11:03, Sascha Hauer wrote:
> > Instead of relying on a variable for the location of the TTB which we
> > have to initialize in both PBL and barebox proper, just read the value
> > back from the hardware register.
>
> Why not initialize on first call to get_ttb()?
get_ttb() doesn't have access to endmem which we would need to get the
address for the ttb.
Also we have the value in the hardware register, why not use it?
Sascha
--
Pengutronix e.K. | |
Steuerwalder Str. 21 | http://www.pengutronix.de/ |
31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
More information about the barebox
mailing list