Skip to content

Conversation

@numpy1314
Copy link
Contributor

Move init_mmu_el2 and switch_to_el2 from axplat_crates to the initialization section of axcpu

… unit and switching to el2 privilege level for armv8 virtualization
/// # Safety
///
/// This function is unsafe as it changes the CPU mode.
#[cfg(not(feature = "arm_el2"))]
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we need to add condition-compile here for these functions? Maybe these functions can exist together?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Right, the compilation of this function is not involved in the EL2 privilege level, and the conditional compilation here can be removed.

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.

2 participants