uaccess.h (9c1852b459f04f6309e40d1d167512b0a5598529) uaccess.h (0b92515916799ca2711c7c46abccb96c275cc88a)
1/*
2 * S390 version
3 * Copyright IBM Corp. 1999, 2000
4 * Author(s): Hartmut Penner (hp@de.ibm.com),
5 * Martin Schwidefsky (schwidefsky@de.ibm.com)
6 *
7 * Derived from "include/asm-i386/uaccess.h"
8 */

--- 163 unchanged lines hidden (view full) ---

172 (unsigned int *)x,
173 size, spec);
174 break;
175 case 8:
176 rc = __put_get_user_asm((unsigned long __user *)ptr,
177 (unsigned long *)x,
178 size, spec);
179 break;
1/*
2 * S390 version
3 * Copyright IBM Corp. 1999, 2000
4 * Author(s): Hartmut Penner (hp@de.ibm.com),
5 * Martin Schwidefsky (schwidefsky@de.ibm.com)
6 *
7 * Derived from "include/asm-i386/uaccess.h"
8 */

--- 163 unchanged lines hidden (view full) ---

172 (unsigned int *)x,
173 size, spec);
174 break;
175 case 8:
176 rc = __put_get_user_asm((unsigned long __user *)ptr,
177 (unsigned long *)x,
178 size, spec);
179 break;
180 };
180 }
181 return rc;
182}
183
184static inline int __get_user_fn(void *x, const void __user *ptr, unsigned long size)
185{
186 unsigned long spec = 0x81UL;
187 int rc;
188

--- 13 unchanged lines hidden (view full) ---

202 (unsigned int __user *)ptr,
203 size, spec);
204 break;
205 case 8:
206 rc = __put_get_user_asm((unsigned long *)x,
207 (unsigned long __user *)ptr,
208 size, spec);
209 break;
181 return rc;
182}
183
184static inline int __get_user_fn(void *x, const void __user *ptr, unsigned long size)
185{
186 unsigned long spec = 0x81UL;
187 int rc;
188

--- 13 unchanged lines hidden (view full) ---

202 (unsigned int __user *)ptr,
203 size, spec);
204 break;
205 case 8:
206 rc = __put_get_user_asm((unsigned long *)x,
207 (unsigned long __user *)ptr,
208 size, spec);
209 break;
210 };
210 }
211 return rc;
212}
213
214#else /* CONFIG_HAVE_MARCH_Z10_FEATURES */
215
216static inline int __put_user_fn(void *x, void __user *ptr, unsigned long size)
217{
218 size = __copy_to_user(ptr, x, size);

--- 220 unchanged lines hidden ---
211 return rc;
212}
213
214#else /* CONFIG_HAVE_MARCH_Z10_FEATURES */
215
216static inline int __put_user_fn(void *x, void __user *ptr, unsigned long size)
217{
218 size = __copy_to_user(ptr, x, size);

--- 220 unchanged lines hidden ---