/* SPDX-License-Identifier: GPL-2.0-only */1/*2* User memory access support for Hexagon3*4* Copyright (c) 2010-2011, The Linux Foundation. All rights reserved.5*/67#ifndef _ASM_UACCESS_H8#define _ASM_UACCESS_H9/*10* User space memory access functions11*/12#include <asm/sections.h>1314/*15* When a kernel-mode page fault is taken, the faulting instruction16* address is checked against a table of exception_table_entries.17* Each entry is a tuple of the address of an instruction that may18* be authorized to fault, and the address at which execution should19* be resumed instead of the faulting instruction, so as to effect20* a workaround.21*/2223/* Assembly somewhat optimized copy routines */24unsigned long raw_copy_from_user(void *to, const void __user *from,25unsigned long n);26unsigned long raw_copy_to_user(void __user *to, const void *from,27unsigned long n);28#define INLINE_COPY_FROM_USER29#define INLINE_COPY_TO_USER3031__kernel_size_t __clear_user_hexagon(void __user *dest, unsigned long count);32#define __clear_user(a, s) __clear_user_hexagon((a), (s))3334#include <asm-generic/uaccess.h>353637#endif383940