[PATCH 3/3] armv8: Initialize MAIR in early boot

Tom Rini trini at konsulko.com
Tue Apr 12 02:00:05 CEST 2022


On Tue, Mar 29, 2022 at 06:06:07PM +0100,  Pierre-Clément Tosi  wrote:

> As the register is initialized to a constant value, it can be set at any
> point before the MMU has been enabled. Instead of waiting until the very
> last moment to do so, initialize it during early boot, when we
> initialize other system registers. This ensures it is valid at any point
> once the C runtime is up.
> 
> Signed-off-by: Pierre-Clément Tosi <ptosi at google.com>
> Cc: Tom Rini <trini at konsulko.com>
> ---
>  arch/arm/cpu/armv8/Kconfig       |  6 ++++++
>  arch/arm/cpu/armv8/start.S       | 12 ++++++++++++
>  arch/arm/include/asm/armv8/mmu.h |  5 -----
>  3 files changed, 18 insertions(+), 5 deletions(-)

This makes a number of platforms such as:
px30-core-ctouch2-of10-px30 px30-core-ctouch2-px30
px30-core-edimm2.2-px30 odroid-go2 evb-px30 firefly-px30
fail to build due to size increase.

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20220411/7a6b11e9/attachment.sig>


More information about the U-Boot mailing list