Add compilation support for extfs on ia64, primarily to support LINT.
The functions in ia64-bitops.h merely call panic() for now. They need to be implemented some day, just not today.
This commit is contained in:
parent
9539d5b4f6
commit
fcf18c7375
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=119348
@ -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
|
||||
|
@ -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
|
||||
|
43
sys/gnu/ext2fs/ia64-bitops.h
Normal file
43
sys/gnu/ext2fs/ia64-bitops.h
Normal file
@ -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_ */
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user