diff options
author | Ian Campbell <ian.campbell@xensource.com> | 2007-01-22 17:10:27 +0000 |
---|---|---|
committer | Ian Campbell <ian.campbell@xensource.com> | 2007-01-22 17:10:27 +0000 |
commit | e22738def91bffee104e7a45446a26746981cbd4 (patch) | |
tree | 4930ce0177574fff8953f75ce8b73c8e391829b8 /unmodified_drivers/linux-2.6/compat-include/xen | |
parent | efa2dca17ae5e5807183e3da21e21cfec6776e4b (diff) | |
download | xen-e22738def91bffee104e7a45446a26746981cbd4.tar.gz xen-e22738def91bffee104e7a45446a26746981cbd4.tar.bz2 xen-e22738def91bffee104e7a45446a26746981cbd4.zip |
[PV-on-HVM] Make PV drivers on HVM kernels work on older kernels after
update to 2.6.18.
Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
Diffstat (limited to 'unmodified_drivers/linux-2.6/compat-include/xen')
-rw-r--r-- | unmodified_drivers/linux-2.6/compat-include/xen/platform-compat.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/unmodified_drivers/linux-2.6/compat-include/xen/platform-compat.h b/unmodified_drivers/linux-2.6/compat-include/xen/platform-compat.h index 4a5aa7f9f9..87db7bf3d0 100644 --- a/unmodified_drivers/linux-2.6/compat-include/xen/platform-compat.h +++ b/unmodified_drivers/linux-2.6/compat-include/xen/platform-compat.h @@ -40,6 +40,13 @@ #define gfp_t unsigned #endif +#if defined (_LINUX_NOTIFIER_H) && !defined ATOMIC_NOTIFIER_HEAD +#define ATOMIC_NOTIFIER_HEAD(name) struct notifier_block *name +#define atomic_notifier_chain_register(chain,nb) notifier_chain_register(chain,nb) +#define atomic_notifier_chain_unregister(chain,nb) notifier_chain_unregister(chain,nb) +#define atomic_notifier_call_chain(chain,val,v) notifier_call_chain(chain,val,v) +#endif + #if defined(_LINUX_FS_H) && LINUX_VERSION_CODE < KERNEL_VERSION(2,6,9) #define nonseekable_open(inode, filp) /* Nothing to do */ #endif @@ -69,4 +76,8 @@ extern char *kasprintf(gfp_t gfp, const char *fmt, ...) __attribute__ ((format (printf, 2, 3))); #endif +#if defined(_I386_PAGE_H) && defined(CONFIG_X86_PAE) +#define __supported_pte_mask ~0ULL +#endif + #endif |