Signed-off-by: Reto Achermann <reto.achermann@inf.ethz.ch>
struct armv8_core_data *cd = (struct armv8_core_data *)state;
- uint8_t current_el = get_current_el();
+ uint8_t current_el = armv8_CurrentEL_EL_rdf(NULL);
if (current_el == 2) {
uint64_t zero = 0;
*/
void
boot_bsp_init(uint32_t magic, lpaddr_t pointer, lpaddr_t stack) {
- int el= get_current_el();
+ uint8_t el = armv8_CurrentEL_EL_rdf(NULL);
+
+ //int el= get_current_el();
/* Configure the EL1 translation regime. */
- /* assert(el >= 1) */
configure_tcr();
/* Copy the current TTBR for EL1. */