All of lore.kernel.org
 help / color / mirror / Atom feed
From: Bob Breuer <breuerr@mc.net>
To: sparclinux@vger.kernel.org
Subject: Re: dump_stack missing on sparc32
Date: Fri, 14 Jan 2005 06:58:35 +0000	[thread overview]
Message-ID: <41E76D9B.9090004@mc.net> (raw)
In-Reply-To: <20050114041906.GE6101@holomorphy.com>

This adds a sparc32 specific dump_stack() to 2.6, based off of the sparc64
version.

Bob


--- linux-2.6.10-bk8-clean/arch/sparc/kernel/process.c	2005-01-12 00:16:01.000000000 -0600
+++ linux-2.6.10-bk8/arch/sparc/kernel/process.c	2005-01-14 00:38:11.000000000 -0600
@@ -333,6 +333,17 @@ void show_stack(struct task_struct *tsk,
  	printk("\n");
  }

+void dump_stack(void)
+{
+	unsigned long *ksp;
+
+	__asm__ __volatile__("mov	%%fp, %0"
+			     : "=r" (ksp));
+	show_stack(current, ksp);
+}
+
+EXPORT_SYMBOL(dump_stack);
+
  /*
   * Note: sparc64 has a pretty intricated thread_saved_pc, check it out.
   */


  parent reply	other threads:[~2005-01-14  6:58 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-01-14  4:19 dump_stack missing on sparc32 William Lee Irwin III
2005-01-14  4:24 ` Bob Breuer
2005-01-14  6:58 ` Bob Breuer [this message]
2005-01-14  7:20 ` William Lee Irwin III

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=41E76D9B.9090004@mc.net \
    --to=breuerr@mc.net \
    --cc=sparclinux@vger.kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.