From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
To: Chris Friesen <cfriesen@nortelnetworks.com>
Cc: linuxppc-dev list <linuxppc-dev@lists.linuxppc.org>
Subject: Re: help with asm code?
Date: Wed, 21 Apr 2004 10:17:45 +1000 [thread overview]
Message-ID: <1082506664.2077.9.camel@gaston> (raw)
In-Reply-To: <4085483B.1090604@nortelnetworks.com>
> I then have some code that wants to load up one of these values and use
> it as an offset into another struct. Coming into the following stretch
> of code, r6 contains the entry number within hrt_ak_offsets, and r4
> contains the base address of the other struct.
>
>
> lis r5,hrt_ak_offsets@ha
> addi r5,r5,hrt_ak_offsets@l
> lbzx r6,r6,r5
> add r10,r4,r6
>
>
> I'm having a small problem, in that when I run this code it hangs my
> kernel. Any ideas what's wrong? The values in r6 and r5 seem to match
> what I expect, but when I do the lbzx it dies.
I don't know for sure, maybe you MMU context is wrong at the time ?
(Assuming a 32 bits kernel, a 64 bits kernel need more instructions
to load the address)
How do you know it dies there and not elsewhere ?
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
next prev parent reply other threads:[~2004-04-21 0:17 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-04-20 15:56 asm code Chris Friesen
2004-04-21 0:17 ` Benjamin Herrenschmidt [this message]
2004-04-21 14:00 ` help with asm code? Chris Friesen
2004-04-21 23:02 ` Benjamin Herrenschmidt
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=1082506664.2077.9.camel@gaston \
--to=benh@kernel.crashing.org \
--cc=cfriesen@nortelnetworks.com \
--cc=linuxppc-dev@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 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.