[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] x86: HYPERVISOR_VIRT_END is always defined. Remove ifdef'ery.


  • To: xen-changelog@xxxxxxxxxxxxxxxxxxx
  • From: Xen patchbot-unstable <patchbot@xxxxxxx>
  • Date: Fri, 14 Sep 2012 10:55:36 +0000
  • Delivery-date: Fri, 14 Sep 2012 10:55:41 +0000
  • List-id: "Change log for Mercurial \(receive only\)" <xen-changelog.lists.xen.org>

# HG changeset patch
# User Keir Fraser <keir@xxxxxxx>
# Date 1347477790 -3600
# Node ID baf1da1e0be53c018dcec16292c9f33258b71e35
# Parent  9686576228e552bd235a4dc2399e8855417c1142
x86: HYPERVISOR_VIRT_END is always defined. Remove ifdef'ery.

Signed-off-by: Keir Fraser <keir@xxxxxxx>
---


diff -r 9686576228e5 -r baf1da1e0be5 xen/arch/x86/setup.c
--- a/xen/arch/x86/setup.c      Wed Sep 12 20:21:02 2012 +0100
+++ b/xen/arch/x86/setup.c      Wed Sep 12 20:23:10 2012 +0100
@@ -1087,9 +1087,7 @@ void __init __start_xen(unsigned long mb
 
     /* Check definitions in public headers match internal defs. */
     BUILD_BUG_ON(__HYPERVISOR_VIRT_START != HYPERVISOR_VIRT_START);
-#ifdef HYPERVISOR_VIRT_END
     BUILD_BUG_ON(__HYPERVISOR_VIRT_END   != HYPERVISOR_VIRT_END);
-#endif
     BUILD_BUG_ON(MACH2PHYS_VIRT_START != RO_MPT_VIRT_START);
     BUILD_BUG_ON(MACH2PHYS_VIRT_END   != RO_MPT_VIRT_END);
 
diff -r 9686576228e5 -r baf1da1e0be5 xen/arch/x86/traps.c
--- a/xen/arch/x86/traps.c      Wed Sep 12 20:21:02 2012 +0100
+++ b/xen/arch/x86/traps.c      Wed Sep 12 20:23:10 2012 +0100
@@ -1161,13 +1161,8 @@ static int handle_gdt_ldt_mapping_fault(
     return EXCRET_fault_fixed;
 }
 
-#ifdef HYPERVISOR_VIRT_END
 #define IN_HYPERVISOR_RANGE(va) \
     (((va) >= HYPERVISOR_VIRT_START) && ((va) < HYPERVISOR_VIRT_END))
-#else
-#define IN_HYPERVISOR_RANGE(va) \
-    (((va) >= HYPERVISOR_VIRT_START))
-#endif
 
 enum pf_type {
     real_fault,

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.