mirror of
https://github.com/freebsd/freebsd-src
synced 2024-07-23 19:28:36 +00:00
arm64: Fix the has_hyp check
boot_el is now the CurrentEL.EL field value. Use the new macros to implement the has_hyp() check. Sponsored by: Arm Ltd
This commit is contained in:
parent
353b6a5bcb
commit
58df49801d
|
@ -212,7 +212,7 @@ has_hyp(void)
|
|||
* XXX The E2H check is wrong, but it's close enough for now. Needs to
|
||||
* be re-evaluated once we're running regularly in EL2.
|
||||
*/
|
||||
return (boot_el == 2 && (hcr_el2 & HCR_E2H) == 0);
|
||||
return (boot_el == CURRENTEL_EL_EL2 && (hcr_el2 & HCR_E2H) == 0);
|
||||
}
|
||||
|
||||
bool
|
||||
|
|
Loading…
Reference in a new issue