1 /* $NetBSD: cerror.S,v 1.4 2012/02/27 15:47:11 matt Exp $ */
3 #include <machine/asm.h>
10 .protected _C_LABEL(__cerror)
16 stwu %r1,-16(%r1) # allocate new stack frame
19 mr %r31,%r3 # stash away in callee-saved register
20 bl PIC_PLT(_C_LABEL(__errno))
29 bl _GLOBAL_OFFSET_TABLE_@local-4
31 lwz %r4,_C_LABEL(errno)@got(%r4)
35 lis %r4,_C_LABEL(errno)@ha
36 stw %r3,_C_LABEL(errno)@l(%r4)
38 #endif /* _REENTRANT */