OT: gas question
Mihai Donțu
mihai.dontu@gmail.com
Tue Sep 23 01:01:00 GMT 2008
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
More information about the Gcc-help
mailing list