diff options
author | behlendo <behlendo@7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c> | 2008-03-06 23:12:55 +0000 |
---|---|---|
committer | behlendo <behlendo@7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c> | 2008-03-06 23:12:55 +0000 |
commit | 77b1fe8fa86809b7d2bc82abfe7e74fc047bedfe (patch) | |
tree | 93b4edfe4cc84a055247beaf23cce33242245333 /include/sys/sysmacros.h | |
parent | a713518f5d9e4f7b1c361035f1f3ef79869a960f (diff) |
Add highbit func,
Add sloopy atomic declaration which will need to be fixed (eventually)
Fill out more of the Solaris VM hooks
Adjust the create_thread function
git-svn-id: https://outreach.scidac.gov/svn/spl/trunk@26 7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c
Diffstat (limited to 'include/sys/sysmacros.h')
-rw-r--r-- | include/sys/sysmacros.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/include/sys/sysmacros.h b/include/sys/sysmacros.h index 65070d858..1927a060d 100644 --- a/include/sys/sysmacros.h +++ b/include/sys/sysmacros.h @@ -64,7 +64,7 @@ extern "C" { #define bzero(ptr,size) memset(ptr,0,size) #define bcopy(src,dest,size) memcpy(dest,src,size) #define ASSERT(x) BUG_ON(!(x)) -#define VERIFY(x) +#define VERIFY(x) ASSERT(x) #define VERIFY3_IMPL(LEFT, OP, RIGHT, TYPE) do { \ const TYPE __left = (TYPE)(LEFT); \ @@ -103,10 +103,12 @@ extern "C" { #endif /* DTRACE_PROBE4 */ #define DTRACE_PROBE4(a, b, c, d, e, f, g, h, i) ((void)0) -/* Missing globals - */ +/* Missing globals */ extern int p0; +/* Missing misc functions */ +extern int highbit(unsigned long i); + #define makedevice(maj,min) makedev(maj,min) /* XXX - Borrowed from zfs project libsolcompat/include/sys/sysmacros.h */ |