From: Brett Foster <fosterb@uoguelph.ca>
To: Alex Gonzalez <langabe@gmail.com>
Cc: linux-mips <linux-mips@linux-mips.org>
Subject: Re: Setting gp on pic code
Date: Mon, 16 Jan 2006 07:11:53 -0500 [thread overview]
Message-ID: <43CB8D89.6070308@uoguelph.ca> (raw)
In-Reply-To: <c58a7a270601160204h41e5dca7pa9c26578b6b29f6f@mail.gmail.com>
Alex Gonzalez wrote:
>Hi,
>
>I am trying to set the gp register on pic code as follows:
>
>"la gp,_gp"
>
>Disassembling the resulting code,
>
>"lw gp,0(gp)"
>
>
Yes, this is normal... Use the following to set up the GP:
//init GP
lui gp,%HI(_gp)
ori gp,%LO(_gp)
next prev parent reply other threads:[~2006-01-16 12:08 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-01-16 10:04 Setting gp on pic code Alex Gonzalez
2006-01-16 12:11 ` Brett Foster [this message]
2006-01-16 17:09 ` Alex Gonzalez
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=43CB8D89.6070308@uoguelph.ca \
--to=fosterb@uoguelph.ca \
--cc=langabe@gmail.com \
--cc=linux-mips@linux-mips.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