fixed_code.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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. */
  9. #ifndef _UAPI__BFIN_ASM_FIXED_CODE_H__
  10. #define _UAPI__BFIN_ASM_FIXED_CODE_H__
  11. #ifndef CONFIG_PHY_RAM_BASE_ADDRESS
  12. #define CONFIG_PHY_RAM_BASE_ADDRESS 0x0
  13. #endif
  14. #define FIXED_CODE_START (CONFIG_PHY_RAM_BASE_ADDRESS + 0x400)
  15. #define SIGRETURN_STUB (CONFIG_PHY_RAM_BASE_ADDRESS + 0x400)
  16. #define ATOMIC_SEQS_START (CONFIG_PHY_RAM_BASE_ADDRESS + 0x410)
  17. #define ATOMIC_XCHG32 (CONFIG_PHY_RAM_BASE_ADDRESS + 0x410)
  18. #define ATOMIC_CAS32 (CONFIG_PHY_RAM_BASE_ADDRESS + 0x420)
  19. #define ATOMIC_ADD32 (CONFIG_PHY_RAM_BASE_ADDRESS + 0x430)
  20. #define ATOMIC_SUB32 (CONFIG_PHY_RAM_BASE_ADDRESS + 0x440)
  21. #define ATOMIC_IOR32 (CONFIG_PHY_RAM_BASE_ADDRESS + 0x450)
  22. #define ATOMIC_AND32 (CONFIG_PHY_RAM_BASE_ADDRESS + 0x460)
  23. #define ATOMIC_XOR32 (CONFIG_PHY_RAM_BASE_ADDRESS + 0x470)
  24. #define ATOMIC_SEQS_END (CONFIG_PHY_RAM_BASE_ADDRESS + 0x480)
  25. #define SAFE_USER_INSTRUCTION (CONFIG_PHY_RAM_BASE_ADDRESS + 0x480)
  26. #define FIXED_CODE_END (CONFIG_PHY_RAM_BASE_ADDRESS + 0x490)
  27. #endif /* _UAPI__BFIN_ASM_FIXED_CODE_H__ */