From c9a89dec5e35fc309255af1604c922b54d488e6f Mon Sep 17 00:00:00 2001 From: Yoshinori Sato Date: Fri, 20 Feb 2004 17:10:04 -0800 Subject: [PATCH] H8/300 start_thread problem fix Illegal usp corrected a set problem in starting of thread. --- include/asm-h8300/processor.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') diff --git a/include/asm-h8300/processor.h b/include/asm-h8300/processor.h index a0bc63dd8b2b..7154a6a9d9c3 100644 --- a/include/asm-h8300/processor.h +++ b/include/asm-h8300/processor.h @@ -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__) -- cgit v1.2.3