diff options
Diffstat (limited to 'xen/arch/x86/setup.c')
-rw-r--r-- | xen/arch/x86/setup.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/xen/arch/x86/setup.c b/xen/arch/x86/setup.c index bdf3866e01..94504c5561 100644 --- a/xen/arch/x86/setup.c +++ b/xen/arch/x86/setup.c @@ -1100,6 +1100,14 @@ void arch_get_xen_caps(xen_capabilities_info_t *info) #endif } +int xen_in_range(unsigned long start, unsigned long end) +{ + start = max_t(unsigned long, start, xenheap_phys_start); + end = min_t(unsigned long, end, xenheap_phys_end); + + return start < end; +} + /* * Local variables: * mode: C |