From 8264d230a9f2f0312aec4c0fa6503139cea61d7c Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Fri, 8 Mar 2002 16:24:48 +0000 Subject: 2002-03-05 Greg Menke * cpu_asm.S: Added support for the debug exception vector, cleaned up the exception processing & exception return stuff. Re-added EPC in the task context structure so the gdb stub will know where a thread is executing. Should've left it there in the first place... * idtcpu.h: Added support for the debug exception vector. * cpu.c: Added ___exceptionTaskStack to hold a pointer to the stack frame in an interrupt so context switch code can get the userspace EPC when scheduling. * rtems/score/cpu.h: Re-added EPC to the task context. --- cpukit/score/cpu/mips/cpu.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'cpukit/score/cpu/mips/cpu.c') diff --git a/cpukit/score/cpu/mips/cpu.c b/cpukit/score/cpu/mips/cpu.c index 81439b3bd1..7777680655 100644 --- a/cpukit/score/cpu/mips/cpu.c +++ b/cpukit/score/cpu/mips/cpu.c @@ -47,6 +47,18 @@ #include + + +/* +** local dword used in cpu_asm to pass the exception stack frame to the +** context switch code. +*/ +unsigned __exceptionStackFrame = 0; + + + + + /* _CPU_Initialize * * This routine performs processor dependent initialization. -- cgit v1.2.3