diff options
author | Philip Guenthe <guenther@cvs.openbsd.org> | 2011-10-17 06:39:21 +0000 |
---|---|---|
committer | Philip Guenthe <guenther@cvs.openbsd.org> | 2011-10-17 06:39:21 +0000 |
commit | 82cbd469f12cd3a22be520db0de2ead1449f271e (patch) | |
tree | 7f405c5d2faa96148d6ed5ebe126425e978967c4 /lib/librthread/arch/arm/rfork_thread.S | |
parent | 2f6d2040683851ec94ddc66982fcddb408ea5eb2 (diff) |
Use __tfork, __get_tcb, and __set_tcb to have a real TCB and per-thread
errno. The ASM bits for _cerror are sketchy or missing for some archs
but that can be corrected in-tree.
Diffstat (limited to 'lib/librthread/arch/arm/rfork_thread.S')
-rw-r--r-- | lib/librthread/arch/arm/rfork_thread.S | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/librthread/arch/arm/rfork_thread.S b/lib/librthread/arch/arm/rfork_thread.S index 34bec22d5bc..a631b1b8ce3 100644 --- a/lib/librthread/arch/arm/rfork_thread.S +++ b/lib/librthread/arch/arm/rfork_thread.S @@ -1,4 +1,4 @@ -/* $OpenBSD: rfork_thread.S,v 1.2 2005/12/31 21:11:49 drahn Exp $ */ +/* $OpenBSD: rfork_thread.S,v 1.3 2011/10/17 06:39:20 guenther Exp $ */ /* * Copyright (c) 2005 Dale Rahn <drahn@openbsd.org> * @@ -19,16 +19,16 @@ #include "../../../libc/arch/arm/SYS.h" /* - * r0 r1 r2 r3 - * rfork_thread(flags, stack_addr, start_fnc, start_arg); + * r0 r1 r2 r3 + * __tfork_thread(param, stack_addr, start_fnc, start_arg); */ -ENTRY(rfork_thread) +ENTRY(__tfork_thread) stmdb sp!, {r4} mov r4, r1 - SYSTRAP(rfork) + SYSTRAP(__tfork) bcs 1f /* check if we are parent or child */ |