diff options
Diffstat (limited to 'platform/sifive/fu540/platform.c')
-rw-r--r-- | platform/sifive/fu540/platform.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/platform/sifive/fu540/platform.c b/platform/sifive/fu540/platform.c index 48d887f..755e479 100644 --- a/platform/sifive/fu540/platform.c +++ b/platform/sifive/fu540/platform.c @@ -63,6 +63,13 @@ static void fu540_modify_dt(void *fdt) fdt_cpu_fixup(fdt); fdt_fixups(fdt); + + /* + * SiFive Freedom U540 has an erratum that prevents S-mode software + * to access a PMP protected region using 1GB page table mapping, so + * always add the no-map attribute on this platform. + */ + fdt_reserved_memory_nomap_fixup(fdt); } static int fu540_final_init(bool cold_boot) |