Blob


1 ! Actually sparc32 assembly.
2 ! Debian's sparc64 port is a 32-bit user space.
4 .section ".text", #alloc, #execinstr
5 .align 8
6 .skip 16
7 .global _tas
8 ! .type _tas,2
9 _tas:
10 or %g0,1,%o1
11 swap [%o0],%o1 ! o0 points to lock; key is first word
12 retl
13 mov %o1, %o0
15 .size _tas,(.-_tas)