]>
git.ipfire.org Git - thirdparty/glibc.git/blob - sysdeps/unix/mips/sysdep.h
1 /* Copyright (C) 1992, 1995, 1997, 1999 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 Library General Public License as
7 published by the Free Software Foundation; either version 2 of the
8 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 Library General Public License for more details.
15 You should have received a copy of the GNU Library General Public
16 License along with the GNU C Library; see the file COPYING.LIB. If not,
17 write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18 Boston, MA 02111-1307, USA. */
20 #include <sysdeps/unix/sysdep.h>
32 /* Note that while it's better structurally, going back to call __syscall_error
33 can make things confusing if you're debugging---it looks like it's jumping
34 backwards into the previous fn. */
36 #define PSEUDO(name, syscall_name, args) \
38 99: la t9,__syscall_error; \
43 li v0, SYS_##syscall_name; \
49 #define PSEUDO(name, syscall_name, args) \
52 99: j __syscall_error; \
55 li v0, SYS_##syscall_name; \
63 #define PSEUDO_END(sym) .end sym
65 #define ret j ra ; nop
68 #define END(sym) .end sym
72 /* The mips move insn is d,s. */
73 #define MOVE(x,y) move y , x