linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Erik Christiansen <erik@dd.nec.com.au>
To: Jerry Walden <jwalden@digitalatlantic.com>
Cc: Linux PPC embedded <linuxppc-embedded@lists.linuxppc.org>
Subject: Re: Stack Frame Calc Problem in head_4xx.S
Date: Mon, 5 May 2003 11:41:41 +1000	[thread overview]
Message-ID: <20030505014141.GB712@dd.nec.com.au> (raw)
In-Reply-To: <EGEGIJHKDKJGAJMGIDPNGEOPCLAA.jwalden@digitalatlantic.com>


On Sat, May 03, 2003 at 05:20:51PM -0400, Jerry Walden wrote:
>
> After line 15 executes r1 = 0xc00f4ff0
> which seems fine so far (according to the map file it is pointing to the
> proper location)
>
> After line 16 executes r1=0xc00f6ff0
> which is still within the bounds of init_task_union
>
> After line 17 execute r1 = 0xc00f6fe0 which seems like a problem to me,

   The code seems to be doing exactly what you ask it to.

   stwu updates r1 by the offset, after completing the store. (That's
   what the "u" is for.)

   Given:

> STACK_FRAME_OVERHEAD = 16

   How can you expect any other result?:

> 17	stwu	r0,-STACK_FRAME_OVERHEAD(r1)

   If this is as intended, then your problem lies earlier, it appears.
   (But it sounds a little like you're unaware that you're modifying the
   stack pointer, not just indexing from it.)

Regards,
Erik

--
 _,-_|\    Erik Christiansen
/      \   Registered (Debian) Linux User #216862
\_,-.__/
      v

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

      parent reply	other threads:[~2003-05-05  1:41 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-05-03 21:20 Stack Frame Calc Problem in head_4xx.S Jerry Walden
2003-05-03 22:21 ` Gary D. Thomas
2003-05-03 23:08   ` Jerry Walden
2003-05-05  1:41 ` Erik Christiansen [this message]

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=20030505014141.GB712@dd.nec.com.au \
    --to=erik@dd.nec.com.au \
    --cc=jwalden@digitalatlantic.com \
    --cc=linuxppc-embedded@lists.linuxppc.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;
as well as URLs for NNTP newsgroup(s).