2 * This file defines the fixed addresses where userspace programs
3 * can find atomic code sequences.
5 * Copyright 2007-2008 Analog Devices Inc.
7 * Licensed under the GPL-2 or later.
10 #ifndef _UAPI__BFIN_ASM_FIXED_CODE_H__
11 #define _UAPI__BFIN_ASM_FIXED_CODE_H__
14 #ifndef CONFIG_PHY_RAM_BASE_ADDRESS
15 #define CONFIG_PHY_RAM_BASE_ADDRESS 0x0
18 #define FIXED_CODE_START (CONFIG_PHY_RAM_BASE_ADDRESS + 0x400)
20 #define SIGRETURN_STUB (CONFIG_PHY_RAM_BASE_ADDRESS + 0x400)
22 #define ATOMIC_SEQS_START (CONFIG_PHY_RAM_BASE_ADDRESS + 0x410)
24 #define ATOMIC_XCHG32 (CONFIG_PHY_RAM_BASE_ADDRESS + 0x410)
25 #define ATOMIC_CAS32 (CONFIG_PHY_RAM_BASE_ADDRESS + 0x420)
26 #define ATOMIC_ADD32 (CONFIG_PHY_RAM_BASE_ADDRESS + 0x430)
27 #define ATOMIC_SUB32 (CONFIG_PHY_RAM_BASE_ADDRESS + 0x440)
28 #define ATOMIC_IOR32 (CONFIG_PHY_RAM_BASE_ADDRESS + 0x450)
29 #define ATOMIC_AND32 (CONFIG_PHY_RAM_BASE_ADDRESS + 0x460)
30 #define ATOMIC_XOR32 (CONFIG_PHY_RAM_BASE_ADDRESS + 0x470)
32 #define ATOMIC_SEQS_END (CONFIG_PHY_RAM_BASE_ADDRESS + 0x480)
34 #define SAFE_USER_INSTRUCTION (CONFIG_PHY_RAM_BASE_ADDRESS + 0x480)
36 #define FIXED_CODE_END (CONFIG_PHY_RAM_BASE_ADDRESS + 0x490)
38 #endif /* _UAPI__BFIN_ASM_FIXED_CODE_H__ */