This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: MIPS Assembly.


On Mon, Jun 21, 2004 at 09:26:32PM -0400, Hans-Peter Nilsson wrote:
> 
> So this was for jumping back from the "exception handler" in the
> get_user/put_user macros (supposedly in asm-mips/uaccess.h)?

Correct.

> Methinks it's very unlikely that the distance from the
> "exception code" section in the kernel is less than 32k. ;-)

Probably true. :)

> Doesn't mips have a long-jump insn that can be used?

I think MIPS64 does, but MIPS32 does not AFAIK. (Been about
4 years since I've done ANY MIPS assembly)

> Of course you won't notice invalid code for than insn until a
> program passes an invalid address for the syscall executing the
> put_user/get_user macro in question: the kernel will then crash
> instead of sending a SEGV to the program or returning -EFAULT.

Wicked! I Can't wait for that. The boss will be soo impressed. ;-)

-=cj

-- 
                  Chris Jones | Software Developer | Sutus, Inc.
                 t: +1.604.987.8866 x 2204 | e: cjones@sutus.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]