Valeriy E. Ushakov | 18 Nov 01:19 2007
Picon

Interrupt stack

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)


Gmane