blackfin_defs.h 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. /*
  2. * U-boot - blackfin_defs.h
  3. *
  4. * Copyright (c) 2005 blackfin.uclinux.org
  5. *
  6. * See file CREDITS for list of people who contributed to this
  7. * project.
  8. *
  9. * This program is free software; you can redistribute it and/or
  10. * modify it under the terms of the GNU General Public License as
  11. * published by the Free Software Foundation; either version 2 of
  12. * the License, or (at your option) any later version.
  13. *
  14. * This program is distributed in the hope that it will be useful,
  15. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  16. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17. * GNU General Public License for more details.
  18. *
  19. * You should have received a copy of the GNU General Public License
  20. * along with this program; if not, write to the Free Software
  21. * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
  22. * MA 02111-1307 USA
  23. */
  24. #ifndef __BLACKFIN_DEFS_H__
  25. #define __BLACKFIN_DEFS_H__
  26. #define TS_MAGICKEY 0x5a5a5a5a
  27. #define TASK_STATE 0
  28. #define TASK_FLAGS 4
  29. #define TASK_PTRACE 24
  30. #define TASK_BLOCKED 636
  31. #define TASK_COUNTER 32
  32. #define TASK_SIGPENDING 8
  33. #define TASK_NEEDRESCHED 20
  34. #define TASK_THREAD 600
  35. #define TASK_MM 44
  36. #define TASK_ACTIVE_MM 80
  37. #define THREAD_KSP 0
  38. #define THREAD_USP 4
  39. #define THREAD_SR 8
  40. #define THREAD_ESP0 12
  41. #define THREAD_PC 16
  42. #define PT_ORIG_R0 208
  43. #define PT_R0 204
  44. #define PT_R1 200
  45. #define PT_R2 196
  46. #define PT_R3 192
  47. #define PT_R4 188
  48. #define PT_R5 184
  49. #define PT_R6 180
  50. #define PT_R7 176
  51. #define PT_P0 172
  52. #define PT_P1 168
  53. #define PT_P2 164
  54. #define PT_P3 160
  55. #define PT_P4 156
  56. #define PT_P5 152
  57. #define PT_A0w 72
  58. #define PT_A1w 64
  59. #define PT_A0x 76
  60. #define PT_A1x 68
  61. #define PT_RETS 28
  62. #define PT_RESERVED 32
  63. #define PT_ASTAT 36
  64. #define PT_SEQSTAT 8
  65. #define PT_PC 24
  66. #define PT_IPEND 0
  67. #define PT_USP 144
  68. #define PT_FP 148
  69. #define PT_SYSCFG 4
  70. #define IRQ_HANDLER 0
  71. #define IRQ_DEVID 8
  72. #define IRQ_NEXT 16
  73. #define STAT_IRQ 5148
  74. #define SIGSEGV 11
  75. #define SEGV_MAPERR 196609
  76. #define SIGTRAP 5
  77. #define PT_PTRACED 1
  78. #define PT_TRACESYS 2
  79. #define PT_DTRACE 4
  80. #endif