OSDN Git Service

mips: Remove duplicate macro definitions
authorSteve Ellcey <sellcey@mips.com>
Wed, 12 Feb 2014 19:01:35 +0000 (11:01 -0800)
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Sat, 15 Feb 2014 10:09:26 +0000 (11:09 +0100)
commite5cde2eb0ed7df9416fdd6070af07c8448c72a30
treeda5dfbb5c874b58d8ea701ce861f5303cdd7fae9
parent4721ac5f837481ef9bfec853a2326c0aa1948011
mips: Remove duplicate macro definitions

The INLINE_SYSCALL, INTERNAL_SYSCALL*, and internal_syscall* macros
are defined for MIPS in both libc/sysdeps/linux/mips/sysdep.h and
libc/sysdeps/linux/mips/bits/syscalls.h.  The macros are the same
in both cases except that syscalls.h defines internal_syscalls[567]
the same for N32 and N64 ABIs and has a different definition for O32.
I believe that is correct.  The sysdep.h header uses the O32 versions
for N32 and has different definitions for N64.  I think that is wrong
and that N32 and N64 should share the same definition (modulo the
type 'long' vs. 'long long' for the arguments.  This setup (from
sysdep.h) now agrees with what glibc has.

I am not positive about which header (sysdep.h vs syscalls.h) is
really the right one to have these definitions in but using sysdep.h
seems to work for all my builds.

Signed-off-by: Steve Ellcey <sellcey@mips.com>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
libc/sysdeps/linux/mips/sysdep.h