xref: /csrg-svn/lib/libc/sparc/sys/cerror.s (revision 61176)
154404Storek/*
2*61176Sbostic * Copyright (c) 1992, 1993
3*61176Sbostic *	The Regents of the University of California.  All rights reserved.
454404Storek *
554404Storek * This software was developed by the Computer Systems Engineering group
654404Storek * at Lawrence Berkeley Laboratory under DARPA contract BG 91-66 and
754404Storek * contributed to Berkeley.
854404Storek *
954404Storek * %sccs.include.redist.c%
1054404Storek *
1154611Storek * from: $Header: cerror.s,v 1.3 92/07/02 04:17:59 torek Exp $
1254404Storek */
1354404Storek
1454404Storek#if defined(LIBC_SCCS) && !defined(lint)
15*61176Sbostic	.asciz "@(#)cerror.s	8.1 (Berkeley) 06/04/93"
1654404Storek#endif /* LIBC_SCCS and not lint */
1754404Storek
1854404Storek#include "DEFS.h"
1954404Storek
2054404Storek	.globl	_errno
2154404StorekFUNC(cerror)
2254404Storek	sethi	%hi(_errno), %g1
2354404Storek	st	%o0, [%g1 + %lo(_errno)]
2454611Storek	mov	-1, %o0
2554404Storek	retl
2654611Storek	 mov	-1, %o1
27