This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: MIPS Assembly.
Hans-Peter;
On Mon, Jun 21, 2004 at 10:16:33PM -0400, Hans-Peter Nilsson wrote:
> Ah. But it does presumably have a a jump-to-register insn?
> (Checking... Looks like "j REG" can be used according to
> mips.md:indirect_jump.)
Ok.
> Supposedly there's a register that can be loaded with the local
> symbol in the get_user and put_user asms, and the register
> marked as clobbered in the asm?
Yes, Just wonding why Linus changed the way this operates on i386
in 1998 of this.
Note that his code also includes this comment:
linux/arch/i386/lib/getuser.S
/*
* These functions should not modify any other registers,
* as they get called from within inline assembly.
*/
I don't know enough about these routines to know if this would apply on
MIPS ISA.
Cheers,
-=cj
--
Chris Jones | Software Developer | Sutus, Inc.
t: +1.604.987.8866 x 2204 | e: cjones@sutus.com