]> git.hungrycats.org Git - linux/commitdiff
[PATCH] H8/300 start_thread problem fix
authorYoshinori Sato <ysato@users.sourceforge.jp>
Sat, 21 Feb 2004 01:10:04 +0000 (17:10 -0800)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Sat, 21 Feb 2004 01:10:04 +0000 (17:10 -0800)
Illegal usp corrected a set problem in starting of thread.

include/asm-h8300/processor.h

index a0bc63dd8b2b0c32087f4c39d36f81843c795845..7154a6a9d9c35459629e959e372e95313b96c1bd 100644 (file)
@@ -75,6 +75,7 @@ do {                                                          \
        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__)