Skip to content

Commit

Permalink
core: lpae: zero initialize all l1 tables
Browse files Browse the repository at this point in the history
Fixes: 4cc2823 ("core: user mode translation table")
Reviewed-by: Etienne Carriere <[email protected]>
Tested-by: Jerome Forissier <[email protected]> (HiKey)
Signed-off-by: Jens Wiklander <[email protected]>
Tested-by: Jens Wiklander <[email protected]> (Hikey)
  • Loading branch information
jenswi-linaro committed Jan 10, 2018
1 parent 294a3c3 commit 54d5e49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/arch/arm/mm/core_mmu_lpae.c
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,7 @@ void core_init_mmu_tables(struct tee_mmap_region *mm)
}

/* Clear table before use */
memset(l1_xlation_table[0], 0, NUM_L1_ENTRIES * XLAT_ENTRY_SIZE);
memset(l1_xlation_table, 0, sizeof(l1_xlation_table));
init_xlation_table(mm, 0, l1_xlation_table[0][0], 1);
for (n = 1; n < CFG_TEE_CORE_NB_CORE; n++)
memcpy(l1_xlation_table[0][n], l1_xlation_table[0][0],
Expand Down

0 comments on commit 54d5e49

Please sign in to comment.