H8/300 start_thread problem fix
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
@@ -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]>