diff options
author | Bryan Wu <cooloney@kernel.org> | 2008-08-27 10:51:02 +0800 |
---|---|---|
committer | Bryan Wu <cooloney@kernel.org> | 2008-08-27 10:51:02 +0800 |
commit | 639f6571458948b5112be2cf00c0c2c04db2897d (patch) | |
tree | a4dd7af33d0e92c935ba1e904f6fb7e923ac825e /arch/blackfin/include/asm/fixed_code.h | |
parent | 3d9b7a5ce534f3963afcf8f4777267e5899fe007 (diff) | |
download | talos-op-linux-639f6571458948b5112be2cf00c0c2c04db2897d.tar.gz talos-op-linux-639f6571458948b5112be2cf00c0c2c04db2897d.zip |
Blackfin arch: move include/asm-blackfin header files to arch/blackfin
Signed-off-by: Bryan Wu <cooloney@kernel.org>
Diffstat (limited to 'arch/blackfin/include/asm/fixed_code.h')
-rw-r--r-- | arch/blackfin/include/asm/fixed_code.h | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/arch/blackfin/include/asm/fixed_code.h b/arch/blackfin/include/asm/fixed_code.h new file mode 100644 index 000000000000..32c4d495d847 --- /dev/null +++ b/arch/blackfin/include/asm/fixed_code.h @@ -0,0 +1,46 @@ +/* This file defines the fixed addresses where userspace programs can find + atomic code sequences. */ + +#ifndef __BFIN_ASM_FIXED_CODE_H__ +#define __BFIN_ASM_FIXED_CODE_H__ + +#ifdef __KERNEL__ +#ifndef __ASSEMBLY__ +#include <linux/linkage.h> +#include <linux/ptrace.h> +extern asmlinkage void finish_atomic_sections(struct pt_regs *regs); +extern char fixed_code_start; +extern char fixed_code_end; +extern int atomic_xchg32(void); +extern int atomic_cas32(void); +extern int atomic_add32(void); +extern int atomic_sub32(void); +extern int atomic_ior32(void); +extern int atomic_and32(void); +extern int atomic_xor32(void); +extern void safe_user_instruction(void); +extern void sigreturn_stub(void); +#endif +#endif + +#define FIXED_CODE_START 0x400 + +#define SIGRETURN_STUB 0x400 + +#define ATOMIC_SEQS_START 0x410 + +#define ATOMIC_XCHG32 0x410 +#define ATOMIC_CAS32 0x420 +#define ATOMIC_ADD32 0x430 +#define ATOMIC_SUB32 0x440 +#define ATOMIC_IOR32 0x450 +#define ATOMIC_AND32 0x460 +#define ATOMIC_XOR32 0x470 + +#define ATOMIC_SEQS_END 0x480 + +#define SAFE_USER_INSTRUCTION 0x480 + +#define FIXED_CODE_END 0x490 + +#endif |