Robin Getz | 96f1050 | 2009-09-24 14:11:24 +0000 | [diff] [blame] | 1 | /* |
| 2 | * This file defines the fixed addresses where userspace programs |
| 3 | * can find atomic code sequences. |
| 4 | * |
| 5 | * Copyright 2007-2008 Analog Devices Inc. |
| 6 | * |
| 7 | * Licensed under the GPL-2 or later. |
| 8 | */ |
Mike Frysinger | 3c012ee | 2008-08-14 14:36:15 +0800 | [diff] [blame] | 9 | #ifndef __BFIN_ASM_FIXED_CODE_H__ |
| 10 | #define __BFIN_ASM_FIXED_CODE_H__ |
| 11 | |
David Howells | 2ba3645 | 2012-10-09 09:46:39 +0100 | [diff] [blame^] | 12 | #include <uapi/asm/fixed_code.h> |
| 13 | |
Mike Frysinger | 3c012ee | 2008-08-14 14:36:15 +0800 | [diff] [blame] | 14 | #ifndef __ASSEMBLY__ |
| 15 | #include <linux/linkage.h> |
| 16 | #include <linux/ptrace.h> |
| 17 | extern asmlinkage void finish_atomic_sections(struct pt_regs *regs); |
| 18 | extern char fixed_code_start; |
| 19 | extern char fixed_code_end; |
| 20 | extern int atomic_xchg32(void); |
| 21 | extern int atomic_cas32(void); |
| 22 | extern int atomic_add32(void); |
| 23 | extern int atomic_sub32(void); |
| 24 | extern int atomic_ior32(void); |
| 25 | extern int atomic_and32(void); |
| 26 | extern int atomic_xor32(void); |
| 27 | extern void safe_user_instruction(void); |
| 28 | extern void sigreturn_stub(void); |
| 29 | #endif |
| 30 | #endif |