Index: src/backend/port/tas/solaris_i386.s =================================================================== RCS file: /cvsroot/pgsql/src/backend/port/tas/solaris_i386.s,v retrieving revision 1.2 diff -c -c -r1.2 solaris_i386.s *** src/backend/port/tas/solaris_i386.s 19 Jun 1998 02:55:09 -0000 1.2 --- src/backend/port/tas/solaris_i386.s 17 Dec 2005 20:57:07 -0000 *************** *** 9,33 **** .globl tas tas: ! pushl %ebp /save prev base pointer ! movl %esp,%ebp /new base pointer ! pushl %ebx /save prev bx ! movl 8(%ebp),%ebx /load bx with address of lock ! movl $255,%eax /put something in ax ! xchgb %al,(%ebx) /swap lock value with "0" cmpb $0,%al /did we get the lock? jne .Locked ! subl %eax,%eax /yes, we got it -- return 0 jmp .Finish ! .align 4 .Locked: ! movl $1,%eax /no, we didn't get it - return 1 .Finish: ! popl %ebx /restore prev bx ! movl %ebp,%esp /restore stack state ! popl %ebp ret /return ! .align 4 .type tas,@function .size tas,.-tas --- 9,33 ---- .globl tas tas: ! pushq %rbp /save prev base pointer ! movq %rsp,%rbp /new base pointer ! pushq %rbx /save prev bx ! movq 8(%rbp),%rbx /load bx with address of lock ! movq $255,%rax /put something in ax ! xchgb %al,(%rbx) /swap lock value with "0" cmpb $0,%al /did we get the lock? jne .Locked ! subq %rax,%rax /yes, we got it -- return 0 jmp .Finish ! .align 8 .Locked: ! movq $1,%rax /no, we didn't get it - return 1 .Finish: ! popq %rbx /restore prev bx ! movq %rbp,%rsp /restore stack state ! popq %rbp ret /return ! .align 8 .type tas,@function .size tas,.-tas