lkml.org 
[lkml]   [2004]   [Feb]   [21]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
DateSat, 21 Feb 2004 21:47:30 +0900
FromYoshinori Sato <>
Subject[PATCH] H8/300 start_thread problem fix
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@users.sourceforge.jp>
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:01    [W:0.520 / U:0.030 seconds]
©2003-2008 Jasper Spaans