2006-06-04 16:06:49 +00:00
|
|
|
! Actually sparc32 assembly.
|
|
|
|
|
! Debian's sparc64 port is a 32-bit user space.
|
|
|
|
|
|
2006-02-09 08:20:11 +00:00
|
|
|
.section ".text", #alloc, #execinstr
|
|
|
|
|
.align 8
|
|
|
|
|
.skip 16
|
|
|
|
|
.global _tas
|
|
|
|
|
! .type _tas,2
|
|
|
|
|
_tas:
|
|
|
|
|
or %g0,1,%o1
|
|
|
|
|
swap [%o0],%o1 ! o0 points to lock; key is first word
|
|
|
|
|
retl
|
|
|
|
|
mov %o1, %o0
|
|
|
|
|
|
|
|
|
|
.size _tas,(.-_tas)
|
|
|
|
|
|