uaccess.h (34737e26980341519d00e84711fe619f9f47e79c) | uaccess.h (12700c17fc286149324f92d6d380bc48e43f253d) |
---|---|
1/* SPDX-License-Identifier: GPL-2.0 */ 2#ifndef __PARISC_UACCESS_H 3#define __PARISC_UACCESS_H 4 5/* 6 * User space memory access functions 7 */ 8#include <asm/page.h> 9#include <asm/cache.h> 10 11#include <linux/bug.h> 12#include <linux/string.h> 13 | 1/* SPDX-License-Identifier: GPL-2.0 */ 2#ifndef __PARISC_UACCESS_H 3#define __PARISC_UACCESS_H 4 5/* 6 * User space memory access functions 7 */ 8#include <asm/page.h> 9#include <asm/cache.h> 10 11#include <linux/bug.h> 12#include <linux/string.h> 13 |
14/* 15 * Note that since kernel addresses are in a separate address space on 16 * parisc, we don't need to do anything for access_ok(). 17 * We just let the page fault handler do the right thing. This also means 18 * that put_user is the same as __put_user, etc. 19 */ | 14#define TASK_SIZE_MAX DEFAULT_TASK_SIZE 15#include <asm/pgtable.h> 16#include <asm-generic/access_ok.h> |
20 | 17 |
21#define access_ok(uaddr, size) \ 22 ( (uaddr) == (uaddr) ) 23 | |
24#define put_user __put_user 25#define get_user __get_user 26 27#if !defined(CONFIG_64BIT) 28#define LDD_USER(sr, val, ptr) __get_user_asm64(sr, val, ptr) 29#define STD_USER(sr, x, ptr) __put_user_asm64(sr, x, ptr) 30#else 31#define LDD_USER(sr, val, ptr) __get_user_asm(sr, val, "ldd", ptr) --- 195 unchanged lines hidden --- | 18#define put_user __put_user 19#define get_user __get_user 20 21#if !defined(CONFIG_64BIT) 22#define LDD_USER(sr, val, ptr) __get_user_asm64(sr, val, ptr) 23#define STD_USER(sr, x, ptr) __put_user_asm64(sr, x, ptr) 24#else 25#define LDD_USER(sr, val, ptr) __get_user_asm(sr, val, "ldd", ptr) --- 195 unchanged lines hidden --- |