From bc85fd5a6df8753543ba55c98a588e255471752b Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Tue, 11 Jul 2000 19:31:04 +0000 Subject: 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. --- .../libcpu/i960/i960ca/cpu_install_intr_stack.c | 30 ++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 c/src/lib/libcpu/i960/i960ca/cpu_install_intr_stack.c (limited to 'c/src/lib/libcpu/i960/i960ca/cpu_install_intr_stack.c') diff --git a/c/src/lib/libcpu/i960/i960ca/cpu_install_intr_stack.c b/c/src/lib/libcpu/i960/i960ca/cpu_install_intr_stack.c new file mode 100644 index 0000000000..bb0e491b49 --- /dev/null +++ b/c/src/lib/libcpu/i960/i960ca/cpu_install_intr_stack.c @@ -0,0 +1,30 @@ +/* + * Install interrupt stack i960ca + * + * $Id$ + */ + +#include +#include + +extern i960_PRCB *Prcb; + +void _CPU_Install_interrupt_stack( void ) +{ + i960_PRCB *prcb = Prcb; + unsigned32 level; + + /* + * Set the Interrupt Stack in the PRCB and force a reload of it. + * Interrupts are disabled for safety. + */ + + _CPU_ISR_Disable( level ); + + prcb->intr_stack = _CPU_Interrupt_stack_low; + + i960_soft_reset( prcb ); + + _CPU_ISR_Enable( level ); +} + -- cgit v1.2.3