mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
arm64: Add a macro to find a VM fault address
Add a macro to find which bits from far_el2 are needed to be copied to get the full intermediate physical address (IPA). The hpfar_el2 register only contains a 4k aligned fault address. We need to include the lower bits from far_el2 if we need the full faulting IPA. (cherry picked from commit b3bbec37ba039a46f7166f6fa3571f38da4253e9)
This commit is contained in:
parent
f9878b9c8e
commit
c7c27e9ebf
1 changed files with 2 additions and 0 deletions
|
|
@ -126,6 +126,8 @@
|
|||
/* HPFAR_EL2_FIPA holds the 4k page address */
|
||||
#define HPFAR_EL2_FIPA_ADDR(x) \
|
||||
(HPFAR_EL2_FIPA_GET(x) << 12)
|
||||
/* The bits from FAR_EL2 we need to add to HPFAR_EL2_FIPA_ADDR */
|
||||
#define FAR_EL2_HPFAR_PAGE_MASK (0xffful)
|
||||
|
||||
/* ICC_SRE_EL2 */
|
||||
#define ICC_SRE_EL2_SRE (1UL << 0)
|
||||
|
|
|
|||
Loading…
Reference in a new issue