blob: 5b459f7e2d4c9c7f3a00d50d39c109380b53ab4f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
/*
* Install interrupt stack i960RP
*
* $Id$
*/
#include <rtems.h>
#include <libcpu/i960RP.h>
extern i960_PRCB *Prcb;
void _CPU_Install_interrupt_stack( void )
{
i960_PRCB *prcb = Prcb;
uint32_t level;
uint32_t *isp = (int *) ISP_ADDR;
/*
* Set the Interrupt Stack in the on-CPU memory.
* Interrupts are disabled for safety.
*/
_CPU_ISR_Disable( level );
prcb->intr_stack = _CPU_Interrupt_stack_low;
*isp = (uint32_t) prcb->intr_stack;
_CPU_ISR_Enable( level );
}
|