On 6/13/25 09:58, Sascha Hauer wrote: > Map the remainder of the memory explicitly with two level page tables. This is > the place where barebox proper ends at. In barebox proper we'll remap the code > segments readonly/executable and the ro segments readonly/execute never. For > this > we need the memory being mapped pagewise. We can't do the split up from > section > wise mapping to pagewise mapping later because that would require us to do > a break-before-make sequence which we can't do when barebox proper is running > at the location being remapped. > > Signed-off-by: Sascha Hauer <s.ha...@pengutronix.de>
Reviewed-by: Ahmad Fatoum <a.fat...@pengutronix.de> Just a small thing to change below: > uint32_t *ttb = (uint32_t *)arm_mem_ttb(membase + memsize); > + unsigned long barebox_size = SZ_8M, optee_start; SZ_8M is overwritten later, so should be dropped here. Cheers, Ahmad -- 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 |