Commit 0d02ef4b authored by Bruce Momjian's avatar Bruce Momjian

Change spaces to tabs, for consistency. (Caused by email cut/paste.)

parent 18627c55
......@@ -8,17 +8,18 @@
#if defined(__sparcv9) || defined(__sparc)
.section ".text"
.align 8
.skip 24
.align 4
.section ".text"
.align 8
.skip 24
.align 4
.global pg_atomic_cas
.global pg_atomic_cas
pg_atomic_cas:
cas [%o0],%o2,%o1
mov %o1,%o0
retl
nop
.type pg_atomic_cas,2
.size pg_atomic_cas,(.-pg_atomic_cas)
cas [%o0],%o2,%o1
mov %o1,%o0
retl
nop
.type pg_atomic_cas,2
.size pg_atomic_cas,(.-pg_atomic_cas)
#endif
......@@ -6,29 +6,29 @@
/ '/' is the comment for x86, while '!' is the comment for Sparc
.file "tas.s"
.file "tas.s"
#if defined(__amd64)
.code64
.code64
#endif
.globl pg_atomic_cas
.type pg_atomic_cas, @function
.globl pg_atomic_cas
.type pg_atomic_cas, @function
.section .text, "ax"
.align 16
.section .text, "ax"
.align 16
pg_atomic_cas:
#if defined(__amd64)
movl %edx,%eax
lock
cmpxchgl %esi,(%rdi)
movl %edx,%eax
lock
cmpxchgl %esi,(%rdi)
#else
movl 4(%esp), %edx
movl 8(%esp), %ecx
movl 12(%esp), %eax
lock
cmpxchgl %ecx, (%edx)
movl 4(%esp), %edx
movl 8(%esp), %ecx
movl 12(%esp), %eax
lock
cmpxchgl %ecx, (%edx)
#endif
ret
.size pg_atomic_cas, . - pg_atomic_cas
ret
.size pg_atomic_cas, . - pg_atomic_cas
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment