This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC 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: OT: gas question


On Tuesday 23 September 2008, I Rattan wrote:
> Probably it may not be the group to ask the question.
> The following assembly code works on Linux on P4 but
> segfaults om Solaris-10 on AMD64 box. The instruction
> in question is int $0x80.
>
> Any pointers?
>
> movl Â$1, %eax
> Â Â Â Â movl Â$0, %ebx
>     int  $0x80
> Â Â Â Â ret

The Solaris kernel uses another entrypoint:
http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/lib/libc/i386/sys/syscall.s

-- 
Mihai DonÈu


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