18 Nov 2007 01:19
Interrupt stack
Valeriy E. Ushakov <uwe <at> stderr.spb.ru>
2007-11-18 00:19:48 GMT
2007-11-18 00:19:48 GMT
SH3 doesn't currently use dedicated interrupt stack. Attached is a patch I've been running with for a while now that introduces separate interrupt stack for sh3. Comments? SY, Uwe -- uwe <at> stderr.spb.ru | Zu Grunde kommen http://snark.ptc.spbu.ru/~uwe/ | Ist zu Grunde gehen
Index: include/cpu.h =================================================================== RCS file: /cvsroot/src/sys/arch/sh3/include/cpu.h,v retrieving revision 1.47 diff -u -r1.47 cpu.h --- include/cpu.h 17 Oct 2007 19:57:07 -0000 1.47 +++ include/cpu.h 18 Nov 2007 00:14:28 -0000 <at> <at> -87,9 +87,11 <at> <at> int ssp; /* stack pointer at time of interrupt */ }; +extern uint32_t intsp; + #define CLKF_USERMODE(cf) (!KERNELMODE((cf)->ssr)) #define CLKF_PC(cf) ((cf)->spc) -#define CLKF_INTR(cf) 0 /* XXX */ +#define CLKF_INTR(cf) ((uint32_t)(cf)->ssp <= intsp)(Continue reading)
RSS Feed