Skip to contentSkip to conversation

cris: fix KSTK_EIP

PATCH In review Al Viro 1 participant 1 message Jan 3, 2006 Generic include/asm header files

lore
Share & tools
lore

Al Viro

author
#0 lore raw

PATCH 42/50 cris: fix KSTK_EIP

References: <[email protected]>
In-Reply-To: <[email protected]>

cris KSTK_EIP looked for pt_regs at the right offset but from the wrong place - forgotten ->thread_info

---

 include/asm-cris/arch-v10/processor.h |    2 +-
 include/asm-cris/arch-v32/processor.h |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

e176ef05ac06736721f63f36f7bebae153aa36e6

include/asm-cris/arch-v10/processor.h +1 -1
index e23df8d..cc692c7 100644
@@ -40,7 +40,7 @@ struct thread_struct {
 #define KSTK_EIP(tsk)	\
 ({			\
 	unsigned long eip = 0;   \
-	unsigned long regs = (unsigned long)user_regs(tsk); \
+	unsigned long regs = (unsigned long)task_pt_regs(tsk); \
 	if (regs > PAGE_SIZE && \
 		virt_addr_valid(regs)) \
 	eip = ((struct pt_regs *)regs)->irp; \
include/asm-cris/arch-v32/processor.h +1 -1
index 8c939bf..32bf2e5 100644
@@ -36,7 +36,7 @@ struct thread_struct {
 #define KSTK_EIP(tsk)		\
 ({				\
 	unsigned long eip = 0;	\
-	unsigned long regs = (unsigned long)user_regs(tsk); \
+	unsigned long regs = (unsigned long)task_pt_regs(tsk); \
 	if (regs > PAGE_SIZE && virt_addr_valid(regs))	    \
 		eip = ((struct pt_regs *)regs)->erp;	    \
 	eip; \
Signature · 1 line
0.99.9.GIT