blob: 451d29c3cfeaaa6133217a1775439cf969223f25 [file] [log] [blame]
Wolfgang Denk6cb142f2006-03-12 02:12:27 +01001/*
2 * U-boot - blackfin_defs.h
3 *
Aubrey Li155fd762007-04-05 18:31:18 +08004 * Copyright (c) 2005-2007 Analog Devices Inc.
Wolfgang Denk6cb142f2006-03-12 02:12:27 +01005 *
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
Aubrey Li155fd762007-04-05 18:31:18 +080021 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
22 * MA 02110-1301 USA
Wolfgang Denk6cb142f2006-03-12 02:12:27 +010023 */
24
25#ifndef __BLACKFIN_DEFS_H__
26#define __BLACKFIN_DEFS_H__
27
28#define TS_MAGICKEY 0x5a5a5a5a
29#define TASK_STATE 0
30#define TASK_FLAGS 4
31#define TASK_PTRACE 24
32#define TASK_BLOCKED 636
33#define TASK_COUNTER 32
34#define TASK_SIGPENDING 8
35#define TASK_NEEDRESCHED 20
36#define TASK_THREAD 600
37#define TASK_MM 44
38#define TASK_ACTIVE_MM 80
39#define THREAD_KSP 0
40#define THREAD_USP 4
41#define THREAD_SR 8
42#define THREAD_ESP0 12
43#define THREAD_PC 16
44#define PT_ORIG_R0 208
45#define PT_R0 204
46#define PT_R1 200
47#define PT_R2 196
48#define PT_R3 192
49#define PT_R4 188
50#define PT_R5 184
51#define PT_R6 180
52#define PT_R7 176
53#define PT_P0 172
54#define PT_P1 168
55#define PT_P2 164
56#define PT_P3 160
57#define PT_P4 156
58#define PT_P5 152
59#define PT_A0w 72
60#define PT_A1w 64
61#define PT_A0x 76
62#define PT_A1x 68
63#define PT_RETS 28
64#define PT_RESERVED 32
65#define PT_ASTAT 36
66#define PT_SEQSTAT 8
67#define PT_PC 24
68#define PT_IPEND 0
69#define PT_USP 144
70#define PT_FP 148
71#define PT_SYSCFG 4
72#define IRQ_HANDLER 0
73#define IRQ_DEVID 8
74#define IRQ_NEXT 16
75#define STAT_IRQ 5148
76#define SIGSEGV 11
77#define SEGV_MAPERR 196609
78#define SIGTRAP 5
79#define PT_PTRACED 1
80#define PT_TRACESYS 2
81#define PT_DTRACE 4
82
83#endif