diff options
author | Bryan Wu <bryan.wu@analog.com> | 2007-05-06 17:50:22 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-05-07 15:12:58 -0400 |
commit | 1394f03221790a988afc3e4b3cb79f2e477246a9 (patch) | |
tree | 2c1963c9a4f2d84a5e021307fde240c5d567cf70 /include/asm-blackfin/entry.h | |
parent | 73243284463a761e04d69d22c7516b2be7de096c (diff) |
blackfin architecture
This adds support for the Analog Devices Blackfin processor architecture, and
currently supports the BF533, BF532, BF531, BF537, BF536, BF534, and BF561
(Dual Core) devices, with a variety of development platforms including those
avaliable from Analog Devices (BF533-EZKit, BF533-STAMP, BF537-STAMP,
BF561-EZKIT), and Bluetechnix! Tinyboards.
The Blackfin architecture was jointly developed by Intel and Analog Devices
Inc. (ADI) as the Micro Signal Architecture (MSA) core and introduced it in
December of 2000. Since then ADI has put this core into its Blackfin
processor family of devices. The Blackfin core has the advantages of a clean,
orthogonal,RISC-like microprocessor instruction set. It combines a dual-MAC
(Multiply/Accumulate), state-of-the-art signal processing engine and
single-instruction, multiple-data (SIMD) multimedia capabilities into a single
instruction-set architecture.
The Blackfin architecture, including the instruction set, is described by the
ADSP-BF53x/BF56x Blackfin Processor Programming Reference
http://blackfin.uclinux.org/gf/download/frsrelease/29/2549/Blackfin_PRM.pdf
The Blackfin processor is already supported by major releases of gcc, and
there are binary and source rpms/tarballs for many architectures at:
http://blackfin.uclinux.org/gf/project/toolchain/frs There is complete
documentation, including "getting started" guides available at:
http://docs.blackfin.uclinux.org/ which provides links to the sources and
patches you will need in order to set up a cross-compiling environment for
bfin-linux-uclibc
This patch, as well as the other patches (toolchain, distribution,
uClibc) are actively supported by Analog Devices Inc, at:
http://blackfin.uclinux.org/
We have tested this on LTP, and our test plan (including pass/fails) can
be found at:
http://docs.blackfin.uclinux.org/doku.php?id=testing_the_linux_kernel
[m.kozlowski@tuxland.pl: balance parenthesis in blackfin header files]
Signed-off-by: Bryan Wu <bryan.wu@analog.com>
Signed-off-by: Mariusz Kozlowski <m.kozlowski@tuxland.pl>
Signed-off-by: Aubrey Li <aubrey.li@analog.com>
Signed-off-by: Jie Zhang <jie.zhang@analog.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/asm-blackfin/entry.h')
-rw-r--r-- | include/asm-blackfin/entry.h | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/include/asm-blackfin/entry.h b/include/asm-blackfin/entry.h new file mode 100644 index 000000000000..562c6d3a3232 --- /dev/null +++ b/include/asm-blackfin/entry.h | |||
@@ -0,0 +1,56 @@ | |||
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 | /* This one is used for exceptions, emulation, and NMI. It doesn't push | ||
21 | RETI and doesn't do cli. */ | ||
22 | #define SAVE_ALL_SYS save_context_no_interrupts | ||
23 | /* This is used for all normal interrupts. It saves a minimum of registers | ||
24 | to the stack, loads the IRQ number, and jumps to common code. */ | ||
25 | #define INTERRUPT_ENTRY(N) \ | ||
26 | [--sp] = SYSCFG; \ | ||
27 | \ | ||
28 | [--sp] = P0; /*orig_p0*/ \ | ||
29 | [--sp] = R0; /*orig_r0*/ \ | ||
30 | [--sp] = (R7:0,P5:0); \ | ||
31 | R0 = (N); \ | ||
32 | jump __common_int_entry; | ||
33 | |||
34 | /* For timer interrupts, we need to save IPEND, since the user_mode | ||
35 | macro accesses it to determine where to account time. */ | ||
36 | #define TIMER_INTERRUPT_ENTRY(N) \ | ||
37 | [--sp] = SYSCFG; \ | ||
38 | \ | ||
39 | [--sp] = P0; /*orig_p0*/ \ | ||
40 | [--sp] = R0; /*orig_r0*/ \ | ||
41 | [--sp] = (R7:0,P5:0); \ | ||
42 | p0.l = lo(IPEND); \ | ||
43 | p0.h = hi(IPEND); \ | ||
44 | r1 = [p0]; \ | ||
45 | R0 = (N); \ | ||
46 | jump __common_int_entry; | ||
47 | |||
48 | /* This one pushes RETI without using CLI. Interrupts are enabled. */ | ||
49 | #define SAVE_CONTEXT_SYSCALL save_context_syscall | ||
50 | #define SAVE_CONTEXT save_context_with_interrupts | ||
51 | |||
52 | #define RESTORE_ALL_SYS restore_context_no_interrupts | ||
53 | #define RESTORE_CONTEXT restore_context_with_interrupts | ||
54 | |||
55 | #endif /* __ASSEMBLY__ */ | ||
56 | #endif /* __BFIN_ENTRY_H */ | ||