lkml.org 
[lkml]   [2006]   [Mar]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectPATCH m68knommu clear frame-pointer in start_thread
Date
From
When trying to print the calltrace of a user process on m68knommu targets
gdb follows the frame-pointer en falls on unreachable adresses, because
the frame pointer is not properly initialised by start_thread. This patch
initialises the frame pointer to NULL in start_thread.

Signed-off-by: Philippe De Muyter <phdm@macqel.be>

---

the only change is the initialisztion of a6, the rest is spacing fixes

Index: linux-2.6.x/include/asm-m68knommu/processor.h
===================================================================
RCS file: /newdev6/cvsrepos/uClinux-dist/linux-2.6.x/include/asm-m68knommu/processor.h,v
retrieving revision 1.1.1.1
diff -r1.1.1.1 processor.h
92,99c92,100
< #define start_thread(_regs, _pc, _usp) \
< do { \
< set_fs(USER_DS); /* reads from user space */ \
< (_regs)->pc = (_pc); \
< if (current->mm) \
< (_regs)->d5 = current->mm->start_data; \
< (_regs)->sr &= ~0x2000; \
< wrusp(_usp); \
---
> #define start_thread(_regs, _pc, _usp) \
> do { \
> set_fs(USER_DS); /* reads from user space */ \
> (_regs)->pc = (_pc); \
> ((struct switch_stack *)(_regs))[-1].a6 = 0; \
> if (current->mm) \
> (_regs)->d5 = current->mm->start_data; \
> (_regs)->sr &= ~0x2000; \
> wrusp(_usp); \
-
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: 2006-03-15 17:49    [W:0.047 / U:0.088 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site