source: rtems/c/src/lib/libcpu/i960/i960rp/cpu_install_intr_stack.c @ 2aabc030

4.104.114.84.95
Last change on this file since 2aabc030 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: 522 bytes
Line 
1/*
2 *  Install interrupt stack i960RP
3 *
4 *  $Id$
5 */
6
7#include <rtems.h>
8#include <libcpu/i960RP.h>
9
10extern i960_PRCB *Prcb;
11
12void _CPU_Install_interrupt_stack( void )
13{
14  i960_PRCB *prcb = Prcb;
15  unsigned32   level;
16  unsigned32 *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 = (unsigned32) prcb->intr_stack;
28
29  _CPU_ISR_Enable( level );
30}
31
Note: See TracBrowser for help on using the repository browser.