aboutsummaryrefslogtreecommitdiff
path: root/src/libthread/OpenBSD-power-asm.S
diff options
context:
space:
mode:
authorRuss Cox <rsc@swtch.com>2020-01-19 22:52:04 -0500
committerRuss Cox <rsc@swtch.com>2020-01-19 23:04:58 -0500
commit37e7d24c0cb9fd2d18ab332980c31cf470454d93 (patch)
treec08e99bf781a603b702c8a517b5128f8a551f1f7 /src/libthread/OpenBSD-power-asm.S
parent41b3e8b9893a8561af7e85ca98444bc284b4013d (diff)
downloadplan9port-37e7d24c0cb9fd2d18ab332980c31cf470454d93.tar.gz
plan9port-37e7d24c0cb9fd2d18ab332980c31cf470454d93.tar.bz2
plan9port-37e7d24c0cb9fd2d18ab332980c31cf470454d93.zip
libthread: rm OpenBSD tas implementations
OpenBSD is using pthreads now, so no need for tas.
Diffstat (limited to 'src/libthread/OpenBSD-power-asm.S')
-rw-r--r--src/libthread/OpenBSD-power-asm.S15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/libthread/OpenBSD-power-asm.S b/src/libthread/OpenBSD-power-asm.S
index 03b46e7b..36035eb5 100644
--- a/src/libthread/OpenBSD-power-asm.S
+++ b/src/libthread/OpenBSD-power-asm.S
@@ -1,18 +1,3 @@
-ENTRY(_tas)
- li %r0, 0
- mr %r4, %r3
- lis %r5, 0xcafe
- ori %r5, %r5, 0xbabe
-1:
- lwarx %r3, %r0, %r4
- cmpwi %r3, 0
- bne 2f
- stwcx. %r5, %r0, %r4
- bne- 1b
-2:
- sync
- blr
-
ENTRY(_getmcontext) /* xxx: instruction scheduling */
mflr %r0
mfcr %r5