From: "Philippe De Muyter" <phdm@macqel.be>
To: linux-kernel@vger.kernel.org, uclinux-dev@uclinux.org
Subject: PATCH m68knommu clear frame-pointer in start_thread
Date: Wed, 15 Mar 2006 17:47:07 +0100 (CET) [thread overview]
Message-ID: <200603151647.k2FGl7Y04736@mail.macqel.be> (raw)
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); \
next reply other threads:[~2006-03-15 16:47 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-03-15 16:47 Philippe De Muyter [this message]
2006-03-15 23:38 ` Ralf Baechle
2006-03-16 7:29 ` Philippe De Muyter
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200603151647.k2FGl7Y04736@mail.macqel.be \
--to=phdm@macqel.be \
--cc=linux-kernel@vger.kernel.org \
--cc=uclinux-dev@uclinux.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®