4.104.114.84.95
Last change
on this file since e3355c71 was
bc85fd5a,
checked in by Joel Sherrill <joel.sherrill@…>, on 07/11/00 at 19:31:04
|
Reworked score/cpu/i960 so it can be safely compiled multilib. All
routines and structures that require CPU model specific information
are now in libcpu. This required significant rework of the
score/cpu header files and the creation of multiple header files
and subdirectories in libcpu/i960.
|
-
Property mode set to
100644
|
File size:
532 bytes
|
Line | |
---|
1 | /* |
---|
2 | * Install interrupt stack i960ka |
---|
3 | * |
---|
4 | * $Id$ |
---|
5 | */ |
---|
6 | |
---|
7 | #include <rtems.h> |
---|
8 | #include <libcpu/i960KA.h> |
---|
9 | |
---|
10 | extern i960_PRCB *Prcb; |
---|
11 | |
---|
12 | void _CPU_Install_interrupt_stack( void ) |
---|
13 | { |
---|
14 | i960_PRCB *prcb = Prcb; |
---|
15 | unsigned32 level; |
---|
16 | |
---|
17 | /* |
---|
18 | * Set the Interrupt Stack in the PRCB and force a reload of it. |
---|
19 | * Interrupts are disabled for safety. |
---|
20 | */ |
---|
21 | |
---|
22 | _CPU_ISR_Disable( level ); |
---|
23 | |
---|
24 | prcb->intr_stack = _CPU_Interrupt_stack_low; |
---|
25 | |
---|
26 | /* soft_reset( prcb ); XXX is there an action like this on the KA? */ |
---|
27 | |
---|
28 | _CPU_ISR_Enable( level ); |
---|
29 | } |
---|
30 | |
---|
Note: See
TracBrowser
for help on using the repository browser.