2
* Copyright 2007-2009 Analog Devices Inc.
3
* Philippe Gerum <rpm@xenomai.org>
5
* Licensed under the GPL-2 or later.
8
#ifndef _ASM_BLACKFIN_PDA_H
9
#define _ASM_BLACKFIN_PDA_H
11
#include <mach/anomaly.h>
15
struct blackfin_pda { /* Per-processor Data Area */
16
struct blackfin_pda *next;
20
unsigned long imask; /* Current IMASK value */
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;
44
unsigned long dcplb_fault_addr;
45
unsigned long icplb_fault_addr;
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;
57
struct blackfin_initial_pda {
59
#ifdef CONFIG_DEBUG_DOUBLEFAULT
60
void *dcplb_doublefault_addr;
61
void *icplb_doublefault_addr;
62
void *retx_doublefault;
63
unsigned seqstat_doublefault;
67
extern struct blackfin_pda cpu_pda[];
69
#endif /* __ASSEMBLY__ */
71
#endif /* _ASM_BLACKFIN_PDA_H */