mm-only debug patch...
[mmotm.git] / arch / blackfin / include / asm / pda.h
blobd49bb261d9b7c89a2e6e714b62c8b085a06decec
1 /*
2 * Copyright 2007-2009 Analog Devices Inc.
3 * Philippe Gerum <rpm@xenomai.org>
5 * Licensed under the GPL-2 or later.
6 */
8 #ifndef _ASM_BLACKFIN_PDA_H
9 #define _ASM_BLACKFIN_PDA_H
11 #include <mach/anomaly.h>
13 #ifndef __ASSEMBLY__
15 struct blackfin_pda { /* Per-processor Data Area */
16 struct blackfin_pda *next;
18 unsigned long syscfg;
19 #ifdef CONFIG_SMP
20 unsigned long imask; /* Current IMASK value */
21 #endif
23 unsigned long *ipdt; /* Start of switchable I-CPLB table */
24 unsigned long *ipdt_swapcount; /* Number of swaps in ipdt */
25 unsigned long *dpdt; /* Start of switchable D-CPLB table */
26 unsigned long *dpdt_swapcount; /* Number of swaps in dpdt */
29 * Single instructions can have multiple faults, which
30 * need to be handled by traps.c, in irq5. We store
31 * the exception cause to ensure we don't miss a
32 * double fault condition
34 unsigned long ex_iptr;
35 unsigned long ex_optr;
36 unsigned long ex_buf[4];
37 unsigned long ex_imask; /* Saved imask from exception */
38 unsigned long ex_ipend; /* Saved IPEND from exception */
39 unsigned long *ex_stack; /* Exception stack space */
41 #ifdef ANOMALY_05000261
42 unsigned long last_cplb_fault_retx;
43 #endif
44 unsigned long dcplb_fault_addr;
45 unsigned long icplb_fault_addr;
46 unsigned long retx;
47 unsigned long seqstat;
48 unsigned int __nmi_count; /* number of times NMI asserted on this CPU */
49 #ifdef CONFIG_DEBUG_DOUBLEFAULT
50 unsigned long dcplb_doublefault_addr;
51 unsigned long icplb_doublefault_addr;
52 unsigned long retx_doublefault;
53 unsigned long seqstat_doublefault;
54 #endif
57 extern struct blackfin_pda cpu_pda[];
59 #endif /* __ASSEMBLY__ */
61 #endif /* _ASM_BLACKFIN_PDA_H */