diff options
Diffstat (limited to 'src/arch/vmpa.h')
-rw-r--r-- | src/arch/vmpa.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/arch/vmpa.h b/src/arch/vmpa.h index 54dbda9..6f8e809 100644 --- a/src/arch/vmpa.h +++ b/src/arch/vmpa.h @@ -91,6 +91,9 @@ int cmp_vmpa(const vmpa2t *, const vmpa2t *); #define get_phy_addr(a) (a)->physical #define get_virt_addr(a) (a)->virtual +#define has_phys_addr(a) ((a)->physical != VMPA_NO_PHYSICAL) +#define has_virt_addr(a) ((a)->virtual != VMPA_NO_VIRTUAL) + #define dup_vmpa(src) \ make_vmpa(get_phy_addr(src), get_virt_addr(src)) |