diff options
-rw-r--r-- | include/asm-frv/uaccess.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/asm-frv/uaccess.h b/include/asm-frv/uaccess.h index 991b50fbba24..b6bcbe01f6ee 100644 --- a/include/asm-frv/uaccess.h +++ b/include/asm-frv/uaccess.h | |||
@@ -180,16 +180,16 @@ do { \ | |||
180 | \ | 180 | \ |
181 | switch (sizeof(*(ptr))) { \ | 181 | switch (sizeof(*(ptr))) { \ |
182 | case 1: \ | 182 | case 1: \ |
183 | __get_user_asm(__gu_err, __gu_val, ptr, "ub", "=r"); \ | 183 | __get_user_asm(__gu_err, *(u8*)&__gu_val, ptr, "ub", "=r"); \ |
184 | break; \ | 184 | break; \ |
185 | case 2: \ | 185 | case 2: \ |
186 | __get_user_asm(__gu_err, __gu_val, ptr, "uh", "=r"); \ | 186 | __get_user_asm(__gu_err, *(u16*)&__gu_val, ptr, "uh", "=r"); \ |
187 | break; \ | 187 | break; \ |
188 | case 4: \ | 188 | case 4: \ |
189 | __get_user_asm(__gu_err, __gu_val, ptr, "", "=r"); \ | 189 | __get_user_asm(__gu_err, *(u32*)&__gu_val, ptr, "", "=r"); \ |
190 | break; \ | 190 | break; \ |
191 | case 8: \ | 191 | case 8: \ |
192 | __get_user_asm(__gu_err, __gu_val, ptr, "d", "=e"); \ | 192 | __get_user_asm(__gu_err, *(u64*)&__gu_val, ptr, "d", "=e"); \ |
193 | break; \ | 193 | break; \ |
194 | default: \ | 194 | default: \ |
195 | __gu_err = __get_user_bad(); \ | 195 | __gu_err = __get_user_bad(); \ |