cerror.S revision 1.1
11.1Sthorpej/*	$NetBSD: cerror.S,v 1.1 1997/03/29 20:56:03 thorpej Exp $	*/
21.1Sthorpej
31.1Sthorpej/*
41.1Sthorpej * Copyright (c) 1992, 1993
51.1Sthorpej *	The Regents of the University of California.  All rights reserved.
61.1Sthorpej *
71.1Sthorpej * This software was developed by the Computer Systems Engineering group
81.1Sthorpej * at Lawrence Berkeley Laboratory under DARPA contract BG 91-66 and
91.1Sthorpej * contributed to Berkeley.
101.1Sthorpej *
111.1Sthorpej * Redistribution and use in source and binary forms, with or without
121.1Sthorpej * modification, are permitted provided that the following conditions
131.1Sthorpej * are met:
141.1Sthorpej * 1. Redistributions of source code must retain the above copyright
151.1Sthorpej *    notice, this list of conditions and the following disclaimer.
161.1Sthorpej * 2. Redistributions in binary form must reproduce the above copyright
171.1Sthorpej *    notice, this list of conditions and the following disclaimer in the
181.1Sthorpej *    documentation and/or other materials provided with the distribution.
191.1Sthorpej * 3. All advertising materials mentioning features or use of this software
201.1Sthorpej *    must display the following acknowledgement:
211.1Sthorpej *	This product includes software developed by the University of
221.1Sthorpej *	California, Berkeley and its contributors.
231.1Sthorpej * 4. Neither the name of the University nor the names of its contributors
241.1Sthorpej *    may be used to endorse or promote products derived from this software
251.1Sthorpej *    without specific prior written permission.
261.1Sthorpej *
271.1Sthorpej * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
281.1Sthorpej * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
291.1Sthorpej * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
301.1Sthorpej * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
311.1Sthorpej * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
321.1Sthorpej * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
331.1Sthorpej * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
341.1Sthorpej * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
351.1Sthorpej * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
361.1Sthorpej * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
371.1Sthorpej * SUCH DAMAGE.
381.1Sthorpej *
391.1Sthorpej * from: Header: cerror.s,v 1.3 92/07/02 04:17:59 torek Exp
401.1Sthorpej */
411.1Sthorpej
421.1Sthorpej#if defined(LIBC_SCCS) && !defined(lint)
431.1Sthorpej	.asciz "@(#)cerror.s	8.1 (Berkeley) 6/4/93"
441.1Sthorpej#endif /* LIBC_SCCS and not lint */
451.1Sthorpej
461.1Sthorpej#include <machine/asm.h>
471.1Sthorpej#include "SYS.h"
481.1Sthorpej
491.1Sthorpej/* XXX _REENTRANT */
501.1Sthorpej
511.1Sthorpej	.globl	_C_LABEL(errno)
521.1Sthorpej#ifdef PIC
531.1SthorpejASENTRY(cerror)
541.1Sthorpej	XXX
551.1Sthorpej#else
561.1SthorpejASENTRY(cerror)
571.1Sthorpej	lis	4,_C_LABEL(errno)@ha
581.1Sthorpej	stw	3,_C_LABEL(errno)@l(4)
591.1Sthorpej	li	3,-1
601.1Sthorpej	li	4,-1
611.1Sthorpej	blr
621.1Sthorpej#endif
63