diff options
| author | Tim J. Robbins <tjr@FreeBSD.org> | 2004-08-16 07:05:44 +0000 |
|---|---|---|
| committer | Tim J. Robbins <tjr@FreeBSD.org> | 2004-08-16 07:05:44 +0000 |
| commit | 0e73a96209a64276238d8a875e70f7e0bb2741f6 (patch) | |
| tree | 5bebef9f1facd7f9f53936682e1bf1f2b3535c56 | |
| parent | 9f676d2ed6fbecefda2b7fe7751ea9d49f8f7506 (diff) | |
Notes
| -rw-r--r-- | sys/alpha/linux/linux.h | 4 | ||||
| -rw-r--r-- | sys/i386/linux/linux.h | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/sys/alpha/linux/linux.h b/sys/alpha/linux/linux.h index 0504f27054f7..07753649cfa3 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; diff --git a/sys/i386/linux/linux.h b/sys/i386/linux/linux.h index 3faded57ac26..fa0ab7561054 100644 --- a/sys/i386/linux/linux.h +++ b/sys/i386/linux/linux.h @@ -47,6 +47,9 @@ extern u_char linux_debug_map[]; MALLOC_DECLARE(M_LINUX); #endif +#define PTRIN(v) (void *)(v) +#define PTROUT(v) (l_uintptr_t)(v) + /* * Provide a separate set of types for the Linux types. */ @@ -60,6 +63,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_ushort l_dev_t; |
