diff options
-rw-r--r-- | sys/gnu/ext2fs/ext2_linux_balloc.c | 8 | ||||
-rw-r--r-- | sys/gnu/ext2fs/ext2_linux_ialloc.c | 8 | ||||
-rw-r--r-- | sys/gnu/ext2fs/ia64-bitops.h | 43 | ||||
-rw-r--r-- | sys/gnu/fs/ext2fs/ext2_linux_balloc.c | 8 | ||||
-rw-r--r-- | sys/gnu/fs/ext2fs/ext2_linux_ialloc.c | 8 |
5 files changed, 63 insertions, 12 deletions
diff --git a/sys/gnu/ext2fs/ext2_linux_balloc.c b/sys/gnu/ext2fs/ext2_linux_balloc.c index 435661b..dcbd346 100644 --- a/sys/gnu/ext2fs/ext2_linux_balloc.c +++ b/sys/gnu/ext2fs/ext2_linux_balloc.c @@ -42,10 +42,12 @@ #include <gnu/ext2fs/ext2_fs_sb.h> #include <gnu/ext2fs/fs.h> -#ifdef __i386__ -#include <gnu/ext2fs/i386-bitops.h> -#elif __alpha__ +#ifdef __alpha__ #include <gnu/ext2fs/alpha-bitops.h> +#elif __i386__ +#include <gnu/ext2fs/i386-bitops.h> +#elif __ia64__ +#include <gnu/ext2fs/ia64-bitops.h> #else #error Provide a bitops.h file, please! #endif diff --git a/sys/gnu/ext2fs/ext2_linux_ialloc.c b/sys/gnu/ext2fs/ext2_linux_ialloc.c index 64d96b2..faa0ba9 100644 --- a/sys/gnu/ext2fs/ext2_linux_ialloc.c +++ b/sys/gnu/ext2fs/ext2_linux_ialloc.c @@ -44,10 +44,12 @@ #include <gnu/ext2fs/fs.h> #include <sys/stat.h> -#ifdef __i386__ -#include <gnu/ext2fs/i386-bitops.h> -#elif __alpha__ +#ifdef __alpha__ #include <gnu/ext2fs/alpha-bitops.h> +#elif __i386__ +#include <gnu/ext2fs/i386-bitops.h> +#elif __ia64__ +#include <gnu/ext2fs/ia64-bitops.h> #else #error please provide bit operation functions #endif diff --git a/sys/gnu/ext2fs/ia64-bitops.h b/sys/gnu/ext2fs/ia64-bitops.h new file mode 100644 index 0000000..c648b3f --- /dev/null +++ b/sys/gnu/ext2fs/ia64-bitops.h @@ -0,0 +1,43 @@ +/* $FreeBSD$ */ + +#ifndef _GNU_EXT2FS_BITOPS_H_ +#define _GNU_EXT2FS_BITOPS_H_ + +#define find_first_zero_bit(addr, size) find_next_zero_bit(addr,size,0) + +static __inline int +clear_bit(int no, void *addr) +{ + panic("ext2fs: clear_bit() unimplemented"); + return (0); +} + +static __inline int +set_bit(int no, void *addr) +{ + panic("ext2fs: set_bit() unimplemented"); + return (0); +} + +static __inline int +test_bit(int no, void *addr) +{ + panic("ext2fs: clear_bit() unimplemented"); + return (0); +} + +static __inline size_t +find_next_zero_bit(void *addr, size_t size, size_t ofs) +{ + panic("ext2fs: find_next_zero_bit() unimplemented"); + return (0); +} + +static __inline void * +memscan(void *addr, int c, size_t sz) +{ + panic("ext2fs: memscan() unimplemented"); + return (addr); +} + +#endif /* _GNU_EXT2FS_BITOPS_H_ */ diff --git a/sys/gnu/fs/ext2fs/ext2_linux_balloc.c b/sys/gnu/fs/ext2fs/ext2_linux_balloc.c index 435661b..dcbd346 100644 --- a/sys/gnu/fs/ext2fs/ext2_linux_balloc.c +++ b/sys/gnu/fs/ext2fs/ext2_linux_balloc.c @@ -42,10 +42,12 @@ #include <gnu/ext2fs/ext2_fs_sb.h> #include <gnu/ext2fs/fs.h> -#ifdef __i386__ -#include <gnu/ext2fs/i386-bitops.h> -#elif __alpha__ +#ifdef __alpha__ #include <gnu/ext2fs/alpha-bitops.h> +#elif __i386__ +#include <gnu/ext2fs/i386-bitops.h> +#elif __ia64__ +#include <gnu/ext2fs/ia64-bitops.h> #else #error Provide a bitops.h file, please! #endif diff --git a/sys/gnu/fs/ext2fs/ext2_linux_ialloc.c b/sys/gnu/fs/ext2fs/ext2_linux_ialloc.c index 64d96b2..faa0ba9 100644 --- a/sys/gnu/fs/ext2fs/ext2_linux_ialloc.c +++ b/sys/gnu/fs/ext2fs/ext2_linux_ialloc.c @@ -44,10 +44,12 @@ #include <gnu/ext2fs/fs.h> #include <sys/stat.h> -#ifdef __i386__ -#include <gnu/ext2fs/i386-bitops.h> -#elif __alpha__ +#ifdef __alpha__ #include <gnu/ext2fs/alpha-bitops.h> +#elif __i386__ +#include <gnu/ext2fs/i386-bitops.h> +#elif __ia64__ +#include <gnu/ext2fs/ia64-bitops.h> #else #error please provide bit operation functions #endif |