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

Conversation

jenswi-linaro
Copy link
Contributor

Fixes: 4cc2823 ("core: user mode translation table")
Signed-off-by: Jens Wiklander [email protected]
Tested-by: Jens Wiklander [email protected] (Hikey)

@@ -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...

@etienne-lms
Copy link
Contributor

Reviewed-by: Etienne Carriere <[email protected]>

@jforissier
Copy link
Contributor

Tested-by: Jerome Forissier <[email protected]> (HiKey)

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)
@jenswi-linaro
Copy link
Contributor Author

Tags applied

@jenswi-linaro jenswi-linaro mentioned this pull request Jan 10, 2018
@jforissier jforissier merged commit 513b7c9 into OP-TEE:master Jan 10, 2018
@jenswi-linaro jenswi-linaro deleted the fix_user_mode_xlat_tbl branch January 10, 2018 20:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants