From 2a348a0bd593ff396a0aa5f0fc0ec3a80a2cc1c9 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Wed, 29 May 2002 08:34:41 +0000 Subject: 2002-05-29 Roland McGrath * 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. --- pfinet/glue-include/asm/uaccess.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'pfinet/glue-include/asm') 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 -- cgit v1.2.3