cerror.S revision 1.3
11.3Stsubai/* $NetBSD: cerror.S,v 1.3 1998/11/24 11:14:57 tsubai Exp $ */ 21.1Sthorpej 31.1Sthorpej#include <machine/asm.h> 41.1Sthorpej#include "SYS.h" 51.1Sthorpej 61.1Sthorpej/* XXX _REENTRANT */ 71.1Sthorpej 81.1Sthorpej .globl _C_LABEL(errno) 91.3StsubaiASENTRY(cerror) 101.1Sthorpej#ifdef PIC 111.3Stsubai mflr 10 121.3Stsubai bl _GLOBAL_OFFSET_TABLE_@local-4 131.3Stsubai mflr 4 141.3Stsubai lwz 4,_C_LABEL(errno)@got(4) 151.3Stsubai stw 3,0(4) 161.3Stsubai mtlr 10 171.1Sthorpej#else 181.1Sthorpej lis 4,_C_LABEL(errno)@ha 191.1Sthorpej stw 3,_C_LABEL(errno)@l(4) 201.3Stsubai#endif 211.1Sthorpej li 3,-1 221.1Sthorpej li 4,-1 231.1Sthorpej blr 24