5
Last change
on this file since ff081aee was
ff081aee,
checked in by Sebastian Huber <sebastian.huber@…>, on 11/06/18 at 15:58:02
|
score: Rename interrupt stack symbols
Rename
- _Configuration_Interrupt_stack_area_begin in _ISR_Stack_area_begin,
- _Configuration_Interrupt_stack_area_end in _ISR_Stack_area_end, and
- _Configuration_Interrupt_stack_size in _ISR_Stack_size.
Move definitions to <rtems/score/isr.h>. The new names are considerable
shorter and in the right namespace.
Update #3459.
|
-
Property mode set to
100644
|
File size:
1.6 KB
|
Line | |
---|
1 | /* |
---|
2 | * Authors: Ralf Corsepius (corsepiu@faw.uni-ulm.de) and |
---|
3 | * Bernd Becker (becker@faw.uni-ulm.de) |
---|
4 | * |
---|
5 | * COPYRIGHT (c) 1997-1998, FAW Ulm, Germany |
---|
6 | * |
---|
7 | * This program is distributed in the hope that it will be useful, |
---|
8 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
9 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
---|
10 | * |
---|
11 | * |
---|
12 | * COPYRIGHT (c) 1998. |
---|
13 | * On-Line Applications Research Corporation (OAR). |
---|
14 | * |
---|
15 | * The license and distribution terms for this file may be |
---|
16 | * found in the file LICENSE in this distribution or at |
---|
17 | * http://www.rtems.org/license/LICENSE. |
---|
18 | */ |
---|
19 | |
---|
20 | #include <rtems/asm.h> |
---|
21 | #include <bsp.h> |
---|
22 | |
---|
23 | BEGIN_CODE |
---|
24 | PUBLIC(start) |
---|
25 | SYM (start): |
---|
26 | ! install the stack pointer |
---|
27 | mov.l stack_k,r15 |
---|
28 | |
---|
29 | ! zero out bss |
---|
30 | mov.l edata_k,r0 |
---|
31 | mov.l end_k,r1 |
---|
32 | mov #0,r2 |
---|
33 | 0: |
---|
34 | mov.l r2,@r0 |
---|
35 | add #4,r0 |
---|
36 | cmp/ge r0,r1 |
---|
37 | bt 0b |
---|
38 | |
---|
39 | ! copy the vector table from rom to ram |
---|
40 | mov.l vects_k,r0 ! vectab |
---|
41 | mov #0,r1 ! address of boot vector table |
---|
42 | mov #0,r2 ! number of bytes copied |
---|
43 | mov.w vects_size,r3 ! size of entries in vectab |
---|
44 | 1: |
---|
45 | mov.l @r1+,r4 |
---|
46 | mov.l r4,@r0 |
---|
47 | add #4,r0 |
---|
48 | add #1,r2 |
---|
49 | cmp/hi r3,r2 |
---|
50 | bf 1b |
---|
51 | |
---|
52 | mov.l vects_k,r0 ! update vbr to point to vectab |
---|
53 | ldc r0,vbr |
---|
54 | |
---|
55 | ! call the mainline |
---|
56 | mov #0,r4 ! command line |
---|
57 | mov.l main_k,r0 |
---|
58 | jsr @r0 |
---|
59 | |
---|
60 | |
---|
61 | ! call exit |
---|
62 | mov r0,r4 |
---|
63 | mov.l exit_k,r0 |
---|
64 | jsr @r0 |
---|
65 | or r0,r0 |
---|
66 | |
---|
67 | END_CODE |
---|
68 | |
---|
69 | .align 2 |
---|
70 | stack_k: |
---|
71 | .long SYM(_ISR_Stack_area_end) |
---|
72 | edata_k: |
---|
73 | .long SYM(edata) |
---|
74 | end_k: |
---|
75 | .long SYM(end) |
---|
76 | main_k: |
---|
77 | .long SYM(boot_card) |
---|
78 | exit_k: |
---|
79 | .long SYM(_sys_exit) |
---|
80 | |
---|
81 | vects_k: |
---|
82 | .long SYM(vectab) |
---|
83 | vects_size: |
---|
84 | .word 255 |
---|
Note: See
TracBrowser
for help on using the repository browser.