diff options
author | Roland McGrath <roland@gnu.org> | 2002-05-29 08:34:41 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 2002-05-29 08:34:41 +0000 |
commit | 2a348a0bd593ff396a0aa5f0fc0ec3a80a2cc1c9 (patch) | |
tree | 090dc48cd0b53f58ac20d7ca6a7d4cd96e226e07 /pfinet/glue-include | |
parent | 6f0783f05f1ec037bea1619306aff367b7f50d47 (diff) |
2002-05-29 Roland McGrath <roland@frob.com>
* linux-src/arch/alpha/lib/csum_partial_copy.c: New file,
taken verbatim from Linux 2.2.14.
* Makefile (arch-lib-srcs): Add csum_partial_copy.c.
(LINUXSRCS): Match $(arch-lib-srcs) subset in arch/$(asm_syntax)/lib.
(OBJS): Use delayed evaluation.
* glue-include/asm/uaccess.h (__get_user): New macro.
(__m): New macro.
Diffstat (limited to 'pfinet/glue-include')
-rw-r--r-- | pfinet/glue-include/asm/uaccess.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pfinet/glue-include/asm/uaccess.h b/pfinet/glue-include/asm/uaccess.h index d8373797..6f6dc413 100644 --- a/pfinet/glue-include/asm/uaccess.h +++ b/pfinet/glue-include/asm/uaccess.h @@ -23,6 +23,12 @@ extern int __verify_write(const void *, unsigned long); #define put_user(x,ptr) (*(ptr) = (x), 0) #define get_user(x,ptr) ((x) = *(ptr), 0) +#define __get_user(x,ptr) get_user((x), (ptr)) + +/* This is used to constitute an arbitrarily-sized memory clobber in an asm. */ +struct __large_struct { unsigned long buf[100]; }; +#define __m(x) (*(struct __large_struct *)(x)) + /* * The "xxx_ret" versions return constant specified in third argument, if |