uaccess.h (db68ce10c4f0a27c1ff9fa0e789e5c41f8c4ea63) | uaccess.h (0b46a94e84c1323d54f8b82eacd3143400fb9521) |
---|---|
1/* 2 * include/asm-xtensa/uaccess.h 3 * 4 * User space memory access functions 5 * 6 * These routines provide basic accessing functions to the user memory 7 * space for the kernel. This header file provides functions such as: 8 * --- 4 unchanged lines hidden (view full) --- 13 * Copyright (C) 2001 - 2005 Tensilica Inc. 14 */ 15 16#ifndef _XTENSA_UACCESS_H 17#define _XTENSA_UACCESS_H 18 19#include <linux/prefetch.h> 20#include <asm/types.h> | 1/* 2 * include/asm-xtensa/uaccess.h 3 * 4 * User space memory access functions 5 * 6 * These routines provide basic accessing functions to the user memory 7 * space for the kernel. This header file provides functions such as: 8 * --- 4 unchanged lines hidden (view full) --- 13 * Copyright (C) 2001 - 2005 Tensilica Inc. 14 */ 15 16#ifndef _XTENSA_UACCESS_H 17#define _XTENSA_UACCESS_H 18 19#include <linux/prefetch.h> 20#include <asm/types.h> |
21#include <asm/extable.h> |
|
21 22/* 23 * The fs value determines whether argument validity checking should 24 * be performed or not. If get_fs() == USER_DS, checking is 25 * performed, with get_fs() == KERNEL_DS, checking is bypassed. 26 * 27 * For historical reasons (Data Segment Register?), these macros are 28 * grossly misnamed. --- 308 unchanged lines hidden (view full) --- 337{ 338 unsigned long top = __kernel_ok ? ~0UL : TASK_SIZE - 1; 339 340 if ((unsigned long)str > top) 341 return 0; 342 return __strnlen_user(str, len); 343} 344 | 22 23/* 24 * The fs value determines whether argument validity checking should 25 * be performed or not. If get_fs() == USER_DS, checking is 26 * performed, with get_fs() == KERNEL_DS, checking is bypassed. 27 * 28 * For historical reasons (Data Segment Register?), these macros are 29 * grossly misnamed. --- 308 unchanged lines hidden (view full) --- 338{ 339 unsigned long top = __kernel_ok ? ~0UL : TASK_SIZE - 1; 340 341 if ((unsigned long)str > top) 342 return 0; 343 return __strnlen_user(str, len); 344} 345 |
345 346struct exception_table_entry 347{ 348 unsigned long insn, fixup; 349}; 350 | |
351#endif /* _XTENSA_UACCESS_H */ | 346#endif /* _XTENSA_UACCESS_H */ |