source: rtems/c/src/lib/libcpu/i960/i960ca/cpu_install_intr_stack.c @ 073e2411

4.104.114.84.95
Last change on this file since 073e2411 was bc85fd5a, checked in by Joel Sherrill <joel.sherrill@…>, on Jul 11, 2000 at 7:31:04 PM

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: 487 bytes
RevLine 
[bc85fd5a]1/*
2 *  Install interrupt stack i960ca
3 *
4 *  $Id$
5 */
6
7#include <rtems.h>
8#include <libcpu/i960CA.h>
9
10extern i960_PRCB *Prcb;
11
12void _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    i960_soft_reset( prcb );
27
28  _CPU_ISR_Enable( level );
29}
30
Note: See TracBrowser for help on using the repository browser.