On Wed, Aug 16, 2006 at 11:59:38AM +0100, Paul Winder wrote:
>
> >The .s file I have created looks like this:
> >
> >#include <sys/asm_linkage.h
> >ENTRY(magic_1)
> >sethi (1), %g0
> >SET_SIZE(magic_1)
> >
> >ENTRY(magic_2)
> >sethi (2), %g0
> >SET_SIZE(magic_2)
> >
> I'm not a sparc assembler expert. But, if these are functions then where
> is the return instruction (is it retl?)
It's retl.
But even with that, the code doesn't make sense, since it target %g0? g0
ignores any writes, and always has the value "0".
In addition:
sethi 2, reg
will always zero the register, since sethi only sets the *high* bits.
What are you trying to do?
Cheers,
- jonathan
--
Jonathan Adams, Solaris Kernel Development
_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code