uaccess.h (bb1f85d6046f0db757ac52ed60a5eba5df394819) uaccess.h (6dd10d9166a0c06260e0ac6b1fac454117c8024a)
1/* SPDX-License-Identifier: GPL-2.0-only */
2/*
3 * Copyright (C) 2012 Regents of the University of California
4 *
5 * This file was copied from include/asm-generic/uaccess.h
6 */
7
8#ifndef _ASM_RISCV_UACCESS_H
9#define _ASM_RISCV_UACCESS_H
10
1/* SPDX-License-Identifier: GPL-2.0-only */
2/*
3 * Copyright (C) 2012 Regents of the University of California
4 *
5 * This file was copied from include/asm-generic/uaccess.h
6 */
7
8#ifndef _ASM_RISCV_UACCESS_H
9#define _ASM_RISCV_UACCESS_H
10
11#include <asm/asm-extable.h>
11#include <asm/pgtable.h> /* for TASK_SIZE */
12
12#include <asm/pgtable.h> /* for TASK_SIZE */
13
13#define _ASM_EXTABLE(from, to) \
14 " .pushsection __ex_table, \"a\"\n" \
15 " .balign 4\n" \
16 " .long (" #from " - .), (" #to " - .)\n" \
17 " .popsection\n"
18
19/*
20 * User space memory access functions
21 */
22#ifdef CONFIG_MMU
23#include <linux/errno.h>
24#include <linux/compiler.h>
25#include <linux/thread_info.h>
26#include <asm/byteorder.h>

--- 382 unchanged lines hidden ---
14/*
15 * User space memory access functions
16 */
17#ifdef CONFIG_MMU
18#include <linux/errno.h>
19#include <linux/compiler.h>
20#include <linux/thread_info.h>
21#include <asm/byteorder.h>

--- 382 unchanged lines hidden ---