[PATCH] H8/300 start_thread problem fix

From: Yoshinori Sato
Date: Sat Feb 21 2004 - 07:51:18 EST


Illegal usp corrected a set problem in starting of thread.

diff -X .exclude-diff -Nru linux-2.6.3/include/asm-h8300/processor.h linux-2.6.3-h8300/include/asm-h8300/processor.h
--- linux-2.6.3/include/asm-h8300/processor.h 2004-01-09 15:59:09.000000000 +0900
+++ linux-2.6.3-h8300/include/asm-h8300/processor.h 2004-02-20 02:45:46.000000000 +0900
@@ -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__)

--
Yoshinori Sato
<ysato@xxxxxxxxxxxxxxxxxxxx>
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/