diff options
author | jb <jb@FreeBSD.org> | 1998-06-09 22:56:24 +0000 |
---|---|---|
committer | jb <jb@FreeBSD.org> | 1998-06-09 22:56:24 +0000 |
commit | 14b960701925f19ad1d1a464603ef6e3affee0a9 (patch) | |
tree | 645e4affbaf9e1bdfd156277ed5a724b7df763cf /lib | |
parent | 2f5fa8684d7ba91208a67a301e4fc1e09d0b3462 (diff) | |
download | FreeBSD-src-14b960701925f19ad1d1a464603ef6e3affee0a9.zip FreeBSD-src-14b960701925f19ad1d1a464603ef6e3affee0a9.tar.gz |
Make this thread-safe in both libc as well as libc_r.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libc/alpha/sys/cerror.S | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/lib/libc/alpha/sys/cerror.S b/lib/libc/alpha/sys/cerror.S index c277587..cce3006 100644 --- a/lib/libc/alpha/sys/cerror.S +++ b/lib/libc/alpha/sys/cerror.S @@ -1,4 +1,5 @@ -/* $NetBSD: cerror.S,v 1.4 1996/11/08 00:52:46 cgd Exp $ */ +/* $Id$ */ +/* From: NetBSD: cerror.S,v 1.4 1996/11/08 00:52:46 cgd Exp */ /* * Copyright (c) 1994, 1995 Carnegie-Mellon University. @@ -29,21 +30,14 @@ #include "SYS.h" -#ifdef _REENTRANT #define FRAME_SIZE 16 #define FRAME_RA_OFFSET 0 #define FRAME_V0_OFFSET 8 -#endif -#ifdef _REENTRANT NESTED(cerror, 0, FRAME_SIZE, ra, IM_RA|IM_V0, 0) -#else -LEAF(cerror, 0) -#endif br t0, L1 L1: LDGP(t0) -#ifdef _REENTRANT lda sp, -FRAME_SIZE(sp) stq ra, FRAME_RA_OFFSET(sp) stq v0, FRAME_V0_OFFSET(sp) @@ -52,14 +46,9 @@ L1: LDGP(t0) ldq t0, FRAME_V0_OFFSET(sp) stl t0, 0(v0) -#else - stl v0, errno -#endif ldiq v0, -1 -#ifdef _REENTRANT ldq ra, FRAME_RA_OFFSET(sp) lda sp, FRAME_SIZE(sp) -#endif RET END(cerror) |