[coldfire-gnu-discuss] coldfire-toolchain: "make dep" fails
Richard Sandiford
richard at codesourcery.com
Tue Apr 18 10:59:22 UTC 2006
Michel Marti <michel.marti at objectxp.com> writes:
> This error shows up when trying to compile 2.6.12-UC0 and also with
> 2.6.16-UC0.... Should I try something newer then?
I've attached the patch we used internally. It allowed us to run the
toolchain testsuites, but bear in mind that it isn't an official patch.
Richard
Index: include/asm-m68knommu/uaccess.h
===================================================================
RCS file: /home/cvs/Repository/linux/include/asm-m68knommu/uaccess.h,v
retrieving revision 1.1.11.1
retrieving revision 1.1.11.1.2.2
diff -u -r1.1.11.1 -r1.1.11.1.2.2
--- include/asm-m68knommu/uaccess.h 24 Mar 2006 16:23:59 -0000 1.1.11.1
+++ include/asm-m68knommu/uaccess.h 12 Apr 2006 13:46:09 -0000 1.1.11.1.2.2
@@ -99,26 +99,30 @@
#define get_user(x, ptr) \
({ \
int __gu_err = 0; \
- typeof(*(ptr)) __gu_val = 0; \
+ unsigned long __gu_val; \
+ unsigned long long __gu_val2; \
switch (sizeof(*(ptr))) { \
case 1: \
__get_user_asm(__gu_err, __gu_val, ptr, b, "=d"); \
+ (x) = (typeof(*(ptr))) __gu_val; \
break; \
case 2: \
__get_user_asm(__gu_err, __gu_val, ptr, w, "=r"); \
+ (x) = (typeof(*(ptr))) __gu_val; \
break; \
case 4: \
__get_user_asm(__gu_err, __gu_val, ptr, l, "=r"); \
+ (x) = (typeof(*(ptr))) __gu_val; \
break; \
case 8: \
- memcpy(&__gu_val, ptr, sizeof (*(ptr))); \
+ memcpy(&__gu_val2, ptr, sizeof (*(ptr))); \
+ (x) = (typeof(*(ptr))) __gu_val2; \
break; \
default: \
__gu_val = 0; \
__gu_err = __get_user_bad(); \
break; \
} \
- (x) = __gu_val; \
__gu_err; \
})
#define __get_user(x, ptr) get_user(x, ptr)
More information about the coldfire-gnu-discuss
mailing list