about summary refs log tree commit diff
path: root/src/thread/powerpc64/syscall_cp.s
diff options
context:
space:
mode:
Diffstat (limited to 'src/thread/powerpc64/syscall_cp.s')
-rw-r--r--src/thread/powerpc64/syscall_cp.s7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/thread/powerpc64/syscall_cp.s b/src/thread/powerpc64/syscall_cp.s
index d420dbde..ef50ed00 100644
--- a/src/thread/powerpc64/syscall_cp.s
+++ b/src/thread/powerpc64/syscall_cp.s
@@ -34,4 +34,11 @@ __cp_end:
 	blr
 
 __cp_cancel:
+	mflr 0
+	bl 1f
+	.long .TOC.-.
+1:	mflr 3
+	lwa 2, 0(3)
+	add 2, 2, 3
+	mtlr 0
 	b __cancel