1 /* $NetBSD: cerror.S,v 1.1 2014/09/03 19:34:26 matt Exp $ */
6 #if defined(LIBC_SCCS) && !defined(lint)
7 __RCSID("$NetBSD: cerror.S,v 1.1 2014/09/03 19:34:26 matt Exp $")
8 #endif /* LIBC_SCCS && !lint */
11 .globl _C_LABEL(errno)
14 .protected _C_LABEL(__cerror)
27 l.jal PLT(_C_LABEL(__errno)) # needs got in r16
39 l.lwz r11,got(_C_LABEL(errno))(r4)
42 l.movi r11,hi(_C_LABEL(errno))
43 l.ori r11,lo(_C_LABEL(errno))
45 #endif /* _REENTRANT */