Frank van der Linden wrote: > Piotr Jasiukajtis wrote: >> Piotr Jasiukajtis wrote: > >>> $ cat simple_64bit_syscall.s >>> .text >>> .globl main >>> main: >>> >>> xorq %rax, %rax >>> xorq %rdi, %rdi >>> xorq %rsi, %rsi >>> xorq %rdx, %rdx >>> xorq %rcx, %rcx >>> xorq %r8, %r8 >>> xorq %r9, %r9 >>> movq $1, %rax >>> int $0x91 > ^^^^^^^^^ > > You need to use the syscall instruction for amd64. See e.g. > usr/src/lib/libc/amd64/sys/syscall.s > > - Frank > > _______________________________________________ > opensolaris-code mailing list > [email protected] > http://mail.opensolaris.org/mailman/listinfo/opensolaris-code
For AMD64, solaris doesn't even support the int trap method? -- Thanks, Jike Song, SW Engineer Sun Microsystems China(ERI) Tel: (86-10)62673147 _______________________________________________ opensolaris-code mailing list [email protected] http://mail.opensolaris.org/mailman/listinfo/opensolaris-code
