From 1d621f3bf4a304bb5a7534ac4f281944e1c6cfe9 Mon Sep 17 00:00:00 2001 From: TuxSH Date: Thu, 1 Mar 2018 02:36:16 +0100 Subject: [PATCH] Fix tzram_map_all_segments --- exosphere/src/coldboot_init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exosphere/src/coldboot_init.c b/exosphere/src/coldboot_init.c index 8a43b45ff..eef6f03c3 100644 --- a/exosphere/src/coldboot_init.c +++ b/exosphere/src/coldboot_init.c @@ -66,7 +66,7 @@ static void tzram_map_all_segments(uintptr_t *mmu_l3_tbl) { static const bool is_executable[] = { TUPLE_FOLD_LEFT_3(EVAL(TZRAM_SEGMENT_ID_MAX), _MMAPTZS, COMMA) }; for(size_t i = 0, offset = 0; i < TZRAM_SEGMENT_ID_MAX; i++) { - tzram_map_segment(mmu_l3_tbl, TZRAM_SEGMENT_BASE, 0x7C010000ull + offs[i], sizes[i], is_executable[i]); + tzram_map_segment(mmu_l3_tbl, TZRAM_SEGMENT_BASE + offset, 0x7C010000ull + offs[i], sizes[i], is_executable[i]); offset += increments[i]; } }