Module: xenomai-head Branch: master Commit: e56713499a9658a3e1c8ebd57579f174497b38f6 URL: http://git.xenomai.org/?p=xenomai-head.git;a=commit;h=e56713499a9658a3e1c8ebd57579f174497b38f6
Author: Philippe Gerum <r...@xenomai.org> Date: Sun Dec 6 18:09:36 2009 +0100 wrappers: fix for Linux 2.4 --- include/asm-generic/wrappers.h | 12 ++++++++---- 1 files changed, 8 insertions(+), 4 deletions(-) diff --git a/include/asm-generic/wrappers.h b/include/asm-generic/wrappers.h index 9927e89..198d882 100644 --- a/include/asm-generic/wrappers.h +++ b/include/asm-generic/wrappers.h @@ -319,8 +319,16 @@ static inline unsigned long hweight_long(unsigned long w) unsigned long find_next_bit(const unsigned long *addr, unsigned long size, unsigned long offset); +typedef phys_addr_t resource_size_t; + +#define mmiowb() barrier() + #else /* LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0) */ +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,28) +typedef unsigned long phys_addr_t; +#endif + #define compat_module_param_array(name, type, count, perm) \ module_param_array(name, type, NULL, perm) @@ -544,10 +552,6 @@ static inline int wrap_raise_cap(int cap) } #endif /* LINUX_VERSION_CODE >= 2.6.29 */ -#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,28) -typedef unsigned long phys_addr_t; -#endif - #ifdef CONFIG_PROC_FS #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,30) #include <linux/module.h> _______________________________________________ Xenomai-git mailing list Xenomai-git@gna.org https://mail.gna.org/listinfo/xenomai-git