Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

core: lpae: zero initialize all l1 tables #2060

Merged
merged 1 commit into from
Jan 10, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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));
Copy link
Contributor

@etienne-lms etienne-lms Jan 10, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove the part below (the for loop).
my mistake...

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