6bc9a3966f
This is the complete set of new arch Score's files for linux. Score instruction set support 16bits, 32bits and 64bits instruction, Score SOC had been used in game machine and LCD TV. Signed-off-by: Chen Liqin <liqin.chen@sunplusct.com> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
27 lines
733 B
C
27 lines
733 B
C
#ifndef _ASM_SCORE_UACCESS_H
|
|
#define _ASM_SCORE_UACCESS_H
|
|
/*
|
|
* Copyright (C) 2006 Atmark Techno, Inc.
|
|
*
|
|
* This file is subject to the terms and conditions of the GNU General Public
|
|
* License. See the file "COPYING" in the main directory of this archive
|
|
* for more details.
|
|
*/
|
|
struct pt_regs;
|
|
extern int fixup_exception(struct pt_regs *regs);
|
|
|
|
#ifndef __ASSEMBLY__
|
|
|
|
#define __range_ok(addr, size) \
|
|
((((unsigned long)(addr) >= 0x80000000) \
|
|
|| ((unsigned long)(size) > 0x80000000) \
|
|
|| (((unsigned long)(addr) + (unsigned long)(size)) > 0x80000000)))
|
|
|
|
#define __access_ok(addr, size) \
|
|
(__range_ok((addr), (size)) == 0)
|
|
|
|
#include <asm-generic/uaccess.h>
|
|
|
|
#endif /* __ASSEMBLY__ */
|
|
|
|
#endif /* _ASM_SCORE_UACCESS_H */
|