score: Add support for Sunplus S+core architecture
[linux-2.6/linux-acpi-2.6/ibm-acpi-2.6.git] / arch / score / include / asm / uaccess.h
blob43ce28a1d0fc441c7046232b9ac265e141e272bf
1 #ifndef _ASM_SCORE_UACCESS_H
2 #define _ASM_SCORE_UACCESS_H
3 /*
4 * Copyright (C) 2006 Atmark Techno, Inc.
6 * This file is subject to the terms and conditions of the GNU General Public
7 * License. See the file "COPYING" in the main directory of this archive
8 * for more details.
9 */
10 struct pt_regs;
11 extern int fixup_exception(struct pt_regs *regs);
13 #ifndef __ASSEMBLY__
15 #define __range_ok(addr, size) \
16 ((((unsigned long)(addr) >= 0x80000000) \
17 || ((unsigned long)(size) > 0x80000000) \
18 || (((unsigned long)(addr) + (unsigned long)(size)) > 0x80000000)))
20 #define __access_ok(addr, size) \
21 (__range_ok((addr), (size)) == 0)
23 #include <asm-generic/uaccess.h>
25 #endif /* __ASSEMBLY__ */
27 #endif /* _ASM_SCORE_UACCESS_H */