aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNeven Sajko <nsajko@gmail.com>2020-01-20 02:43:55 +0100
committerRuss Cox <rsc@swtch.com>2020-01-19 20:43:55 -0500
commit57157d856e4bf66326771e8036062eb6881280ca (patch)
tree144cc2bd447bdcdccd8b857e6b8a11c1fcc7df1f /src
parent83b1e7a39b1e5af82846c7e9632b802c39d96f83 (diff)
downloadplan9port-57157d856e4bf66326771e8036062eb6881280ca.tar.gz
plan9port-57157d856e4bf66326771e8036062eb6881280ca.tar.bz2
plan9port-57157d856e4bf66326771e8036062eb6881280ca.zip
libthread: rm unused ARM (get|set)mcontext (#354)
They were just a duplicate of my(get|set)mcontext from the other assembly file, and unused from threadimpl.h. Change-Id: Id8003e5177ed9d37a7f0210037acbe55bbf7f708
Diffstat (limited to 'src')
-rw-r--r--src/libthread/Linux-arm-asm.s43
1 files changed, 0 insertions, 43 deletions
diff --git a/src/libthread/Linux-arm-asm.s b/src/libthread/Linux-arm-asm.s
index 5a285bf2..721ea43b 100644
--- a/src/libthread/Linux-arm-asm.s
+++ b/src/libthread/Linux-arm-asm.s
@@ -8,46 +8,3 @@ _tas:
swp r3, r3, [r0]
mov r0, r3
mov pc, lr
-
-.globl getmcontext
-getmcontext:
- str r1, [r0,#4]
- str r2, [r0,#8]
- str r3, [r0,#12]
- str r4, [r0,#16]
- str r5, [r0,#20]
- str r6, [r0,#24]
- str r7, [r0,#28]
- str r8, [r0,#32]
- str r9, [r0,#36]
- str r10, [r0,#40]
- str r11, [r0,#44]
- str r12, [r0,#48]
- str r13, [r0,#52]
- str r14, [r0,#56]
- /* store 1 as r0-to-restore */
- mov r1, #1
- str r1, [r0]
- /* return 0 */
- mov r0, #0
- mov pc, lr
-
-.globl setmcontext
-setmcontext:
- ldr r1, [r0,#4]
- ldr r2, [r0,#8]
- ldr r3, [r0,#12]
- ldr r4, [r0,#16]
- ldr r5, [r0,#20]
- ldr r6, [r0,#24]
- ldr r7, [r0,#28]
- ldr r8, [r0,#32]
- ldr r9, [r0,#36]
- ldr r10, [r0,#40]
- ldr r11, [r0,#44]
- ldr r12, [r0,#48]
- ldr r13, [r0,#52]
- ldr r14, [r0,#56]
- ldr r0, [r0]
- mov pc, lr
-