Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F133078467
D29811.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D29811.id.diff
View Options
diff --git a/sys/x86/include/xen/xen-os.h b/sys/x86/include/xen/xen-os.h
--- a/sys/x86/include/xen/xen-os.h
+++ b/sys/x86/include/xen/xen-os.h
@@ -30,6 +30,10 @@
#ifndef _MACHINE_X86_XEN_XEN_OS_H_
#define _MACHINE_X86_XEN_XEN_OS_H_
+#ifndef _XEN_XEN_OS_H_
+#error "do not #include machine/xen/xen-os.h, #include xen/xen-os.h instead"
+#endif
+
/* Shared memory needs write-back as its cache attribute for coherency. */
#define VM_MEMATTR_XEN VM_MEMATTR_WRITE_BACK
diff --git a/sys/x86/xen/xen_intr.c b/sys/x86/xen/xen_intr.c
--- a/sys/x86/xen/xen_intr.c
+++ b/sys/x86/xen/xen_intr.c
@@ -57,7 +57,6 @@
#include <machine/stdarg.h>
#include <machine/xen/synch_bitops.h>
-#include <machine/xen/xen-os.h>
#include <xen/xen-os.h>
#include <xen/hvm.h>
diff --git a/sys/xen/xen-os.h b/sys/xen/xen-os.h
--- a/sys/xen/xen-os.h
+++ b/sys/xen/xen-os.h
@@ -71,12 +71,6 @@
return (hvm_get_parameter(HVM_PARAM_CONSOLE_EVTCHN));
}
-#endif
-
-#include <machine/xen/xen-os.h>
-
-/* Everything below this point is not included by assembler (.S) files. */
-#ifndef __ASSEMBLY__
extern shared_info_t *HYPERVISOR_shared_info;
@@ -117,6 +111,12 @@
return (xen_domain() && (hvm_start_flags & SIF_INITDOMAIN) != 0);
}
+#endif
+
+#include <machine/xen/xen-os.h>
+
+/* Everything below this point is not included by assembler (.S) files. */
+#ifndef __ASSEMBLY__
/*
* Based on ofed/include/linux/bitops.h
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Oct 23, 6:52 PM (10 h, 50 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
24099187
Default Alt Text
D29811.id.diff (1 KB)
Attached To
Mode
D29811: xen/xen-os: move inclusion of machine/xen-os.h later
Attached
Detach File
Event Timeline
Log In to Comment