diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2008-08-28 15:34:01 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-08-28 15:34:01 -0400 |
commit | 604a2785a8482cad4d63202465133c720db5eda7 (patch) | |
tree | e2f510a8a54d7d4443cb52f3a0be46f527ebb779 /arch/blackfin/include/asm/entry.h | |
parent | 66833d5f3934a19d0988b7d0de58149bfd7a5884 (diff) | |
parent | d310fb4bb73629840430cb13cb282915e49fef4b (diff) |
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/cooloney/blackfin-2.6
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/cooloney/blackfin-2.6:
Blackfin arch: Fix PM building on BF52x: No ROTWE on BF52x, add USBWE
Blackfin arch: sram: use 'unsigned long' for irqflags
Blackfin arch: let PCI depend on BROKEN
Blackfin arch: move include/asm-blackfin header files to arch/blackfin
Blackfin arch: fix bug - MPU crashes under stress
Blackfin arch: Fix bug - when to rmmod the L1_module, it stucks and then reboot the board.
Blackfin arch: dont actually need to muck with EMAC_SYSTAT for BF52x for demuxing
Blackfin arch: Add MTD Partitions for MTD_DATAFLASH, increase max SPI SCLK
Diffstat (limited to 'arch/blackfin/include/asm/entry.h')
-rw-r--r-- | arch/blackfin/include/asm/entry.h | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/arch/blackfin/include/asm/entry.h b/arch/blackfin/include/asm/entry.h new file mode 100644 index 000000000000..c4f721e0d00d --- /dev/null +++ b/arch/blackfin/include/asm/entry.h | |||
@@ -0,0 +1,61 @@ | |||
1 | #ifndef __BFIN_ENTRY_H | ||
2 | #define __BFIN_ENTRY_H | ||
3 | |||
4 | #include <asm/setup.h> | ||
5 | #include <asm/page.h> | ||
6 | |||
7 | #ifdef __ASSEMBLY__ | ||
8 | |||
9 | #define LFLUSH_I_AND_D 0x00000808 | ||
10 | #define LSIGTRAP 5 | ||
11 | |||
12 | /* process bits for task_struct.flags */ | ||
13 | #define PF_TRACESYS_OFF 3 | ||
14 | #define PF_TRACESYS_BIT 5 | ||
15 | #define PF_PTRACED_OFF 3 | ||
16 | #define PF_PTRACED_BIT 4 | ||
17 | #define PF_DTRACE_OFF 1 | ||
18 | #define PF_DTRACE_BIT 5 | ||
19 | |||
20 | /* | ||
21 | * NOTE! The single-stepping code assumes that all interrupt handlers | ||
22 | * start by saving SYSCFG on the stack with their first instruction. | ||
23 | */ | ||
24 | |||
25 | /* This one is used for exceptions, emulation, and NMI. It doesn't push | ||
26 | RETI and doesn't do cli. */ | ||
27 | #define SAVE_ALL_SYS save_context_no_interrupts | ||
28 | /* This is used for all normal interrupts. It saves a minimum of registers | ||
29 | to the stack, loads the IRQ number, and jumps to common code. */ | ||
30 | #define INTERRUPT_ENTRY(N) \ | ||
31 | [--sp] = SYSCFG; \ | ||
32 | \ | ||
33 | [--sp] = P0; /*orig_p0*/ \ | ||
34 | [--sp] = R0; /*orig_r0*/ \ | ||
35 | [--sp] = (R7:0,P5:0); \ | ||
36 | R0 = (N); \ | ||
37 | jump __common_int_entry; | ||
38 | |||
39 | /* For timer interrupts, we need to save IPEND, since the user_mode | ||
40 | macro accesses it to determine where to account time. */ | ||
41 | #define TIMER_INTERRUPT_ENTRY(N) \ | ||
42 | [--sp] = SYSCFG; \ | ||
43 | \ | ||
44 | [--sp] = P0; /*orig_p0*/ \ | ||
45 | [--sp] = R0; /*orig_r0*/ \ | ||
46 | [--sp] = (R7:0,P5:0); \ | ||
47 | p0.l = lo(IPEND); \ | ||
48 | p0.h = hi(IPEND); \ | ||
49 | r1 = [p0]; \ | ||
50 | R0 = (N); \ | ||
51 | jump __common_int_entry; | ||
52 | |||
53 | /* This one pushes RETI without using CLI. Interrupts are enabled. */ | ||
54 | #define SAVE_CONTEXT_SYSCALL save_context_syscall | ||
55 | #define SAVE_CONTEXT save_context_with_interrupts | ||
56 | |||
57 | #define RESTORE_ALL_SYS restore_context_no_interrupts | ||
58 | #define RESTORE_CONTEXT restore_context_with_interrupts | ||
59 | |||
60 | #endif /* __ASSEMBLY__ */ | ||
61 | #endif /* __BFIN_ENTRY_H */ | ||