mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
Update.
2004-11-05 Maciej W. Rozycki <macro@mips.com> * sysdeps/mips/dl-machine.h: Include <sgidefs.h>. Use _ABIO32, _ABIN32 and _ABI64 for ABI selection throughout. * sysdeps/mips/elf/start.S: Likewise. * sysdeps/mips/mips64/__longjmp.c: Likewise. * sysdeps/mips/mips64/bsd-_setjmp.S: Likewise. * sysdeps/mips/mips64/bsd-setjmp.S: Likewise. * sysdeps/mips/mips64/setjmp.S: Likewise. * sysdeps/mips/mips64/setjmp_aux.c: Likewise. * sysdeps/mips/sys/regdef.h: Likewise. * sysdeps/mips/sys/ucontext.h: Likewise. * sysdeps/unix/mips/sysdep.h: Likewise. * sysdeps/unix/sysv/linux/kernel-features.h: Likewise. * sysdeps/unix/sysv/linux/mips/pread.c: Likewise. * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise. * sysdeps/unix/sysv/linux/mips/ptrace.c: Likewise. * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise. * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise. * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise. * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Likewise. * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Likewise. * sysdeps/mips/atomicity.h: Use _ABIO32, _ABIN32 and _ABI64 for ABI selection throughout. * sysdeps/mips/bits/setjmp.h: Likewise. * sysdeps/mips/fpu/bits/mathdef.h: Likewise. * sysdeps/mips/machine-gmon.h: Likewise. * sysdeps/mips/sys/asm.h: Likewise. * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Likewise. * sysdeps/unix/sysv/linux/mips/bits/sigcontext.h: Likewise. * sysdeps/unix/sysv/linux/mips/bits/stat.h: Likewise. * sysdeps/unix/sysv/linux/mips/kernel_stat.h: Likewise. * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h: Likewise. * sysdeps/unix/sysv/linux/mips/sys/ptrace.h: Likewise. * sysdeps/unix/sysv/linux/mips/sys/tas.h: Likewise. * sysdeps/unix/sysv/linux/mips/sys/user.h: Likewise. * sysdeps/mips/sgidefs.h: Prevent <asm/sgidefs.h> from being included by kernel headers and undo its settings if already included. Define _ABIO32, _ABIN32 and _ABI64 if missing and use them to define _MIPS_SIM_ABI32, _MIPS_SIM_NABI32 and _MIPS_SIM_ABI64 for compatibility. * sysdeps/unix/sysv/linux/mips/Makefile: Use _ABIO32, _ABIN32 and _ABI64 for ABI selection in generated syscall-list.h * sysdeps/unix/sysv/linux/mips/configure.in: Use _ABIO32, _ABIN32 and _ABI64 for ABI selection in generated asm-unistd.h. * sysdeps/unix/sysv/linux/mips/configure: Regenerate. * sysdeps/unix/sysv/linux/mips/pwrite.c (__libc_pwrite): Correct an inverted _MIPS_SIM conditional.
This commit is contained in:
@ -25,6 +25,7 @@
|
||||
used on Linux. */
|
||||
|
||||
#include <features.h>
|
||||
#include <sgidefs.h>
|
||||
#include <sys/time.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/user.h>
|
||||
@ -34,7 +35,7 @@
|
||||
#define ELF_NGREG 45
|
||||
#define ELF_NFPREG 33
|
||||
|
||||
#if _MIPS_SIM == _MIPS_SIM_NABI32
|
||||
#if _MIPS_SIM == _ABIN32
|
||||
__extension__ typedef unsigned long long elf_greg_t;
|
||||
#else
|
||||
typedef unsigned long elf_greg_t;
|
||||
@ -65,7 +66,7 @@ struct elf_prstatus
|
||||
{
|
||||
struct elf_siginfo pr_info; /* Info associated with signal. */
|
||||
short int pr_cursig; /* Current signal. */
|
||||
#if _MIPS_SIM == _MIPS_SIM_NABI32
|
||||
#if _MIPS_SIM == _ABIN32
|
||||
__extension__ unsigned long long int pr_sigpend;
|
||||
__extension__ unsigned long long int pr_sighold;
|
||||
#else
|
||||
@ -93,7 +94,7 @@ struct elf_prpsinfo
|
||||
char pr_sname; /* Char for pr_state. */
|
||||
char pr_zomb; /* Zombie. */
|
||||
char pr_nice; /* Nice val. */
|
||||
#if _MIPS_SIM == _MIPS_SIM_NABI32
|
||||
#if _MIPS_SIM == _ABIN32
|
||||
__extension__ unsigned long long int pr_flag;
|
||||
#else
|
||||
unsigned long int pr_flag; /* Flags. */
|
||||
|
@ -124,7 +124,7 @@ enum __ptrace_request
|
||||
appear (those that are used for the particular request) as:
|
||||
pid_t PID, void *ADDR, int DATA, void *ADDR2
|
||||
after REQUEST. */
|
||||
#if _MIPS_SIM == _MIPS_SIM_NABI32
|
||||
#if _MIPS_SIM == _ABIN32
|
||||
__extension__ extern long long int ptrace
|
||||
(enum __ptrace_request __request, ...) __THROW;
|
||||
#else
|
||||
|
@ -21,7 +21,6 @@
|
||||
#define _SYS_TAS_H 1
|
||||
|
||||
#include <features.h>
|
||||
|
||||
#include <sgidefs.h>
|
||||
|
||||
__BEGIN_DECLS
|
||||
@ -43,7 +42,7 @@ _test_and_set (int *p, int v) __THROW
|
||||
("/* Inline test and set */\n"
|
||||
"1:\n\t"
|
||||
".set push\n\t"
|
||||
#if _MIPS_SIM == _MIPS_SIM_ABI32
|
||||
#if _MIPS_SIM == _ABIO32
|
||||
".set mips2\n\t"
|
||||
#endif
|
||||
"ll %0,%3\n\t"
|
||||
|
@ -22,14 +22,13 @@
|
||||
#define _SYS_UCONTEXT_H 1
|
||||
|
||||
#include <features.h>
|
||||
#include <sgidefs.h>
|
||||
#include <signal.h>
|
||||
|
||||
/* We need the signal context definitions even if they are not used
|
||||
included in <signal.h>. */
|
||||
#include <bits/sigcontext.h>
|
||||
|
||||
#include <sgidefs.h>
|
||||
|
||||
/* Type for general register. Even in o32 we assume 64-bit registers,
|
||||
like the kernel. */
|
||||
__extension__ typedef unsigned long long int greg_t;
|
||||
@ -54,7 +53,7 @@ typedef struct fpregset {
|
||||
|
||||
|
||||
/* Context to describe whole processor state. */
|
||||
#if _MIPS_SIM == _MIPS_SIM_ABI32
|
||||
#if _MIPS_SIM == _ABIO32
|
||||
/* Earlier versions of glibc for mips had an entirely different
|
||||
definition of mcontext_t, that didn't even resemble the
|
||||
corresponding kernel data structure. Since all legitimate uses of
|
||||
|
@ -32,7 +32,7 @@
|
||||
instead of included separately, doesn't change in any way the
|
||||
licensing status of a program that includes user.h. Since this is
|
||||
for gdb alone, and gdb is GPLed, no surprises here. */
|
||||
#if _MIPS_SIM == _MIPS_SIM_ABI32
|
||||
#if _MIPS_SIM == _ABIO32
|
||||
/*
|
||||
* Various register offset definitions for debuggers, core file
|
||||
* examiners and whatnot.
|
||||
@ -100,7 +100,7 @@
|
||||
|
||||
#endif /* __ASM_MIPS_REG_H */
|
||||
|
||||
#else /* _MIPS_SIM != _MIPS_SIM_ABI32 */
|
||||
#else /* _MIPS_SIM != _ABIO32 */
|
||||
|
||||
/*
|
||||
* Various register offset definitions for debuggers, core file
|
||||
@ -170,9 +170,9 @@
|
||||
|
||||
#endif /* _ASM_REG_H */
|
||||
|
||||
#endif /* _MIPS_SIM != _MIPS_SIM_ABI32 */
|
||||
#endif /* _MIPS_SIM != _ABIO32 */
|
||||
|
||||
#if _MIPS_SIM == _MIPS_SIM_ABI32
|
||||
#if _MIPS_SIM == _ABIO32
|
||||
|
||||
struct user
|
||||
{
|
||||
|
Reference in New Issue
Block a user