diff options
author | tjr <tjr@FreeBSD.org> | 2004-08-16 07:05:44 +0000 |
---|---|---|
committer | tjr <tjr@FreeBSD.org> | 2004-08-16 07:05:44 +0000 |
commit | e6930a385cee9ccad60b87c385ea268f880443c3 (patch) | |
tree | 5bebef9f1facd7f9f53936682e1bf1f2b3535c56 /sys/alpha/linux | |
parent | c392760f6f0281b2ed91c22ed695022ad63c4d40 (diff) | |
download | FreeBSD-src-e6930a385cee9ccad60b87c385ea268f880443c3.zip FreeBSD-src-e6930a385cee9ccad60b87c385ea268f880443c3.tar.gz |
Add a new type, l_uintptr_t, which is an unsigned integer type with the
same width as a pointer under Linux. Add two new macros, PTRIN and PTROUT,
which convert between l_uintptr_t and native pointers.
Diffstat (limited to 'sys/alpha/linux')
-rw-r--r-- | sys/alpha/linux/linux.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/alpha/linux/linux.h b/sys/alpha/linux/linux.h index 0504f27..0775364 100644 --- a/sys/alpha/linux/linux.h +++ b/sys/alpha/linux/linux.h @@ -45,6 +45,9 @@ extern u_char linux_debug_map[]; MALLOC_DECLARE(M_LINUX); #endif +#define PTRIN(v) (void *)(v) +#define PTROUT(v) (l_uintptr_t)(v) + typedef int l_int; typedef int64_t l_long; typedef int64_t l_longlong; @@ -55,6 +58,7 @@ typedef uint64_t l_ulonglong; typedef unsigned short l_ushort; typedef char *l_caddr_t; +typedef l_ulong l_uintptr_t; typedef l_long l_clock_t; typedef l_int l_daddr_t; typedef l_uint l_dev_t; |