Re: OT: gas question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux