4.104.114.84.95
Last change
on this file since 4debfd36 was
4debfd36,
checked in by Ralf Corsepius <ralf.corsepius@…>, on 03/31/04 at 11:10:26
|
2004-03-31 Ralf Corsepius <ralf_corsepius@…>
- i960rp/cpu_install_intr_stack.c: Cosmetics.
|
-
Property mode set to
100644
|
File size:
520 bytes
|
Line | |
---|
1 | /* |
---|
2 | * Install interrupt stack i960RP |
---|
3 | * |
---|
4 | * $Id$ |
---|
5 | */ |
---|
6 | |
---|
7 | #include <rtems.h> |
---|
8 | #include <libcpu/i960RP.h> |
---|
9 | |
---|
10 | extern i960_PRCB *Prcb; |
---|
11 | |
---|
12 | void _CPU_Install_interrupt_stack( void ) |
---|
13 | { |
---|
14 | i960_PRCB *prcb = Prcb; |
---|
15 | uint32_t level; |
---|
16 | uint32_t *isp = (int *) ISP_ADDR; |
---|
17 | |
---|
18 | /* |
---|
19 | * Set the Interrupt Stack in the on-CPU memory. |
---|
20 | * Interrupts are disabled for safety. |
---|
21 | */ |
---|
22 | |
---|
23 | _CPU_ISR_Disable( level ); |
---|
24 | |
---|
25 | prcb->intr_stack = _CPU_Interrupt_stack_low; |
---|
26 | |
---|
27 | *isp = (uint32_t) prcb->intr_stack; |
---|
28 | |
---|
29 | _CPU_ISR_Enable( level ); |
---|
30 | } |
---|
31 | |
---|
Note: See
TracBrowser
for help on using the repository browser.