nss_dns: Remove dead PTR IPv4-to-IPv6 mapping code
[glibc.git] / sysdeps / unix / mips / sysdep.h
blob102f34a6a1d4057baced8a3dc4b7203871fe5578
1 /* Copyright (C) 1992-2017 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.
3 Contributed by Brendan Kehoe (brendan@zen.org).
5 The GNU C Library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public
7 License as published by the Free Software Foundation; either
8 version 2.1 of the License, or (at your option) any later version.
10 The GNU C Library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Lesser General Public License for more details.
15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
19 #include <sgidefs.h>
20 #include <sysdeps/unix/sysdep.h>
22 #ifndef __mips_isa_rev
23 # define __mips_isa_rev 0
24 #endif
26 #ifdef __ASSEMBLER__
28 #include <regdef.h>
30 #define ENTRY(name) \
31 .globl name; \
32 .align 2; \
33 .ent name,0; \
34 name##: \
35 cfi_startproc;
37 #undef END
38 #define END(function) \
39 cfi_endproc; \
40 .end function; \
41 .size function,.-function
43 #define ret j ra ; nop
45 #undef PSEUDO_END
46 #define PSEUDO_END(sym) cfi_endproc; .end sym; .size sym,.-sym
48 #define PSEUDO_NOERRNO(name, syscall_name, args) \
49 .align 2; \
50 ENTRY(name) \
51 .set nomips16; \
52 .set noreorder; \
53 li v0, SYS_ify(syscall_name); \
54 syscall
56 #undef PSEUDO_END_NOERRNO
57 #define PSEUDO_END_NOERRNO(sym) cfi_endproc; .end sym; .size sym,.-sym
59 #define ret_NOERRNO ret
61 #define PSEUDO_ERRVAL(name, syscall_name, args) \
62 .align 2; \
63 ENTRY(name) \
64 .set nomips16; \
65 .set noreorder; \
66 li v0, SYS_ify(syscall_name); \
67 syscall
69 #undef PSEUDO_END_ERRVAL
70 #define PSEUDO_END_ERRVAL(sym) cfi_endproc; .end sym; .size sym,.-sym
72 #define ret_ERRVAL ret
74 #define r0 v0
75 #define r1 v1
76 /* The mips move insn is d,s. */
77 #define MOVE(x,y) move y , x
79 #if _MIPS_SIM == _ABIO32
80 # define L(label) $L ## label
81 #else
82 # define L(label) .L ## label
83 #endif
85 #endif