starting in the late 1980s. The system can be obtained from Bell Labs at http://plan9.bell-labs.com/plan9 and runs on PCs and a variety of other platforms. Plan 9 became a convenient platform for experimenting with new ideas, applications, and services. Plan 9 from User Space provides many of the ideas, applications, and services from Plan 9 on Unix-like systems. It runs on FreeBSD (x86), Linux (x86 and PowerPC), Mac OS X (PowerPC), OpenBSD (x86), and SunOS (Sparc). testing/feedback and ok landry@
42 lines
748 B
Plaintext
42 lines
748 B
Plaintext
$OpenBSD: patch-src_libthread_OpenBSD-power-asm_S,v 1.1.1.1 2012/06/26 15:07:17 pascal Exp $
|
|
--- src/libthread/OpenBSD-power-asm.S.orig Tue Jun 26 13:04:21 2012
|
|
+++ src/libthread/OpenBSD-power-asm.S Tue Jun 26 13:04:34 2012
|
|
@@ -89,37 +89,3 @@ ENTRY(_setmcontext)
|
|
|
|
lwz %r3, 6*4(%r3)
|
|
blr
|
|
-
|
|
-ENTRY(rfork_thread)
|
|
- /* sanity check */
|
|
- cmpwi %r4, 0
|
|
- beq 1f
|
|
- cmpwi %r5, 0
|
|
- beq 1f
|
|
-
|
|
- mr %r7,%r4
|
|
-
|
|
- /* call rfork */
|
|
- li %r0, SYS_rfork
|
|
- sc
|
|
- cmpwi %r0, 0
|
|
- bne 2f
|
|
-
|
|
- /* check if we are parent or child */
|
|
- cmpwi %r3, 0
|
|
- bnelr
|
|
-
|
|
- /* child */
|
|
- mtlr %r5 /* fp */
|
|
- mr %r3, %r6 /* arg */
|
|
- mr %r1, %r7 /* new sp */
|
|
- blrl
|
|
-
|
|
- /* child returned, call _exit */
|
|
- li %r0, SYS_exit
|
|
- sc
|
|
-1:
|
|
- li %r3, -1
|
|
-2:
|
|
- b PIC_PLT(_C_LABEL(__cerror))
|
|
-
|