1 /* $NetBSD: cerror.S,v 1.6 2002/07/30 06:07:59 matt Exp $ */
3 #include <machine/asm.h>
13 stwu %r1,-16(%r1) # allocate new stack frame
16 mr %r31,%r3 # stash away in callee-saved register
17 bl PIC_PLT(_C_LABEL(__errno))
26 bl _GLOBAL_OFFSET_TABLE_@local-4
28 lwz %r4,_C_LABEL(errno)@got(%r4)
32 lis %r4,_C_LABEL(errno)@ha
33 stw %r3,_C_LABEL(errno)@l(%r4)
35 #endif /* _REENTRANT */