Skip to contentSkip to conversation

H8/300 start_thread problem fix

PATCH New Yoshinori Sato 1 participant 1 message Feb 21, 2004

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 H8/300 start_thread problem fix

Illegal usp corrected a set problem in starting of thread.

include/asm-h8300/processor.h +1 -0
diff -X .exclude-diff -Nru linux-2.6.3/include/asm-h8300/processor.h linux-2.6.3-h8300/include/asm-h8300/processor.h
@@ -75,6 +75,7 @@
 	set_fs(USER_DS);           /* reads from user space */  \
   	(_regs)->pc = (_pc);				        \
 	(_regs)->ccr &= 0x00;	   /* clear kernel flag */      \
+	wrusp((unsigned long)(_usp) - sizeof(unsigned long)*3);	\
 } while(0)
 #endif
 #if defined(__H8300S__)
Signature · 2 lines
Yoshinori Sato
<[email protected]>