Linux MIPS Architecture development
 help / color / mirror / Atom feed
From: Ryan Martindale <ryan@qsicorp.com>
To: linux-mips@oss.sgi.com
Subject: Problem with gp
Date: Wed, 31 Jul 2002 11:44:03 -0700	[thread overview]
Message-ID: <3D482FF3.11F8CA0B@qsicorp.com> (raw)

I seem to be having troubles getting the CVS snapshot up and running.
I've debugged it, and it seems that the problem stems from the fact that
$28 (gp) is modified in the SAVE_SOME macro to point to somewhere on the
stack (not sure why this occurs). Anyways, when I get my first system
timetick interrupt, the update_process_times function fails to get the a
valid task structure pointer and wipes out. Why are we adjusting gp
here, since it is explicitly expected to hold only current_thread_info?

(in stackframe.h)

...
		.macro	SAVE_SOME

...

		sw	$25, PT_R25(sp)
		sw	$28, PT_R28(sp)
		sw	$31, PT_R31(sp)
		ori	$28, sp, 0x1fff
		xori	$28, 0x1fff

...


Ryan

             reply	other threads:[~2002-07-31 17:41 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-07-31 18:44 Ryan Martindale [this message]
2002-07-31 19:04 ` Problem with gp Ralf Baechle
2002-08-01  0:04   ` Ryan Martindale

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=3D482FF3.11F8CA0B@qsicorp.com \
    --to=ryan@qsicorp.com \
    --cc=linux-mips@oss.sgi.com \
    /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