Commit Graph

1902 Commits

Author SHA1 Message Date
Alexandre Oliva
a9b0e91911 * sysdeps/unix/mips/sysdep.S: Include sys/asm.h. 2003-03-28 07:02:35 +00:00
Alexandre Oliva
faef8a3c25 * sysdeps/unix/sysv/linux/mips/configure: Rebuilt. 2003-03-28 06:11:03 +00:00
Roland McGrath
44acff5d04 2003-03-27 Philip Blundell <philb@gnu.org>
* sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO_RET_NOERRNO): Use
	unconditional mov.  Remove nop.
2003-03-27 02:45:49 +00:00
Roland McGrath
227de9dd23 2003-03-27 Philip Blundell <philb@gnu.org>
* sysdeps/unix/sysv/linux/kernel-features.h
	(__ASSUME_VFORK_SYSCALL): Define for kernel 2.4 on arm.
	* sysdeps/unix/sysv/linux/arm/vfork.S: Elide compatibility code
	when __ASSUME_VFORK_SYSCALL is defined.
	* sysdeps/unix/sysv/linux/arm/mmap64.S: Likewise for
	__ASSUME_MMAP2_SYSCALL.
	* sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise for
	__ASSUME_REALTIME_SIGNALS.
2003-03-27 02:45:46 +00:00
Ulrich Drepper
49d354ccdc (struct siginfo): Avoid no-op padding element. 2003-03-26 23:41:57 +00:00
Ulrich Drepper
8eecb601ef (struct siginfo): Adjust timer info for what the kernel provides these days.
(struct sigevent): Add _tid field.
Define SIGEV_THREAD_ID.
Remove struct __pthread_attr_s forward declaration.
2003-03-26 04:48:10 +00:00
Andreas Schwab
64928a8889 Define ret_NOERRNO. 2003-03-25 23:15:40 +00:00
Ulrich Drepper
f30a759d97 (__TIMER_T_TYPE): Define as void*. 2003-03-25 21:59:17 +00:00
Alexandre Oliva
f4e9c08c59 * sysdeps/mips/sgidefs.h (_MIPS_ISA_MIPS32, _MIPS_ISA_MIPS64):
Define.
* sysdeps/mips/sys/asm.h: Test _MIPS_ISA against them on all
ISA tests.
(ALSZ, ALMASK, SZREG, REG_S, REG_L): Define based on ABI, not ISA.
(PTR_ADD, etc): Test _MIPS_SZPTR instead of _MIPS_SZLONG.
* sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Use _MIPS_SZPTR
to decide whether to add padding.
* sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Use _MIPS_SZPTR
to decide whether to add padding.
* sysdeps/unix/sysv/linux/mips/kernel_sigaction.h (struct
old_kernel_sigaction): Likewise.
2003-03-25 21:51:53 +00:00
Roland McGrath
e0dc73c1e3 2003-03-24 Daniel Jacobowitz <drow@mvista.com>
* sysdeps/unix/sysv/linux/arm/sysdep-cancel.h
	(DOARGS_5, DOARGS_6, DOARGS_7): Rewritten.
2003-03-25 09:44:29 +00:00
Ulrich Drepper
cf666e4bf9 INTERNAL_SYSCALL): Remove a1 from clobber list. 2003-03-24 19:00:28 +00:00
Ulrich Drepper
98f7320f07 Define PSEUDO_NOERRNO, PSEUDO_END_NOERRNO, and ret_NOERRNO. 2003-03-23 19:42:23 +00:00
Roland McGrath
2f15520df9 2003-03-21 Daniel Jacobowitz <drow@mvista.com>
* sysdeps/unix/sysv/linux/arm/sysdep-cancel.h
	(SINGLE_THREAD_P_PIC): Use "reg" instead of "lr".
2003-03-21 20:49:58 +00:00
Alexandre Oliva
fe638fda3c * sysdeps/unix/sysv/linux/mips/pread.c: Don't break up offset
into high and low halves on n64.
* sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
* sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
* sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
2003-03-20 20:58:02 +00:00
Alexandre Oliva
a8a1e840a1 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S: Sign-extend
with a single instruction.
2003-03-20 07:54:56 +00:00
Alexandre Oliva
be1222911f * sysdeps/mips/mips64/Implies: Move wordsize-64 to...
* sysdeps/mips/mips64/n64/Implies: New file.
* sysdeps/mips/mips64/n64/Makefile: New file.
* sysdeps/mips/mips64/n64/el/bits/endian.h: New file.
* sysdeps/mips/mips64/n32/Implies: New file.
* sysdeps/mips/mips64/n32/Makefile: New file.
* sysdeps/mips/mips64/n32/el/bits/endian.h: New file.
* sysdeps/unix/mips/mips64/n32/sysdep.h: New file.
* sysdeps/unix/mips/mips64/n64/sysdep.h: New file.
* sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: New file.
* sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: New file.
* sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: New file.
* sysdeps/unix/sysv/linux/mips/mips64/ldconfig.h: New file.
* sysdeps/unix/sysv/linux/mips/mips64/llseek.c: New file.
* sysdeps/unix/sysv/linux/mips/mips64/recv.c: New file.
* sysdeps/unix/sysv/linux/mips/mips64/send.c: New file.
* sysdeps/unix/sysv/linux/mips/mips64/syscall.S: New file.
* sysdeps/unix/sysv/linux/mips/mips64/syscalls.list: New file.
* sysdeps/unix/sysv/linux/mips/mips64/umount.c: New file.
* sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S: New file.
2003-03-17 16:20:44 +00:00
Alexandre Oliva
d5510eee99 * sysdeps/unix/sysv/linux/configure.in (libc_cv_slibdir): Use
lib64 for mips64/n64 and lib32 for mips64/n32.
(ldd_rewrite_script): Needed for all mips64 configurations.
* sysdeps/unix/sysv/linux/configure: Rebuilt.
* sysdeps/unix/sysv/linux/mips/mips64/ldd-rewrite.sed: New file.
* sysdeps/unix/sysv/linux/mips/mips64/Dist: New file.
2003-03-17 15:57:19 +00:00
Alexandre Oliva
bb4002d601 * sysdeps/unix/sysv/linux/mips/configure.in: New. Pre-process
asm/unistd.h into asm-unistd.h.
* sysdeps/unix/sysv/linux/mips/configure: Generated.
* sysdeps/unix/sysv/linux/mips/Makefile: Do custom processing
of syscall list.
* sysdeps/unix/sysv/linux/mips/sys/syscall.h: New file.
* sysdeps/unix/sysv/linux/mips/clone.S: Don't include
asm/unistd.h.
2003-03-17 15:50:05 +00:00
Alexandre Oliva
77f047e8a4 * sysdeps/unix/sysv/linux/mips/sys/ptrace.h: New file.
* sysdeps/unix/sysv/linux/mips/ptrace.c: New file.  Use long
long type for registers on n32.
2003-03-17 15:48:52 +00:00
Alexandre Oliva
ca2b264c24 * sysdeps/mips/bits/wordsize.h: New file, appropriate for all
3 ABIs.
* sysdeps/mips/mips64/gmp-mparam.h: New file.  Define
BITS_PER_LONGINT to __WORDSIZE, to match all 3 ABIs.
* sysdeps/mips/setjmp_aux.c (STRINGXP, REGS, PTRS): New macros.
(__sigsetjmp_aux): Use them.  Adjust for all 3 ABIs.
* sysdeps/mips/elf/start.S: Adjust for all 3 ABIs.
* sysdeps/unix/mips/brk.S: Likewise.
* sysdeps/unix/mips/sysdep.S: Likewise.
* sysdeps/unix/sysv/linux/mips/clone.S: Likewise.
* sysdeps/mips/bits/setjmp.h (__jmp_buf): Likewise.
* sysdeps/mips/sys/ucontext.h: Likewise.
* sysdeps/unix/sysv/linux/mips/sys/profcs.h: Likewise.
* sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Likewise.
* sysdeps/unix/sysv/linux/mips/kernel_stat.h: Likewise.
* sysdeps/mips/mips64/bsd-_setjmp.S: Likewise.
* sysdeps/mips/mips64/bsd-setjmp.S: Likewise.
* sysdeps/mips/mips64/setjmp.S: Likewise.
* sysdeps/mips/mips64/bits/setjmp.h: Deleted, obsolete.
* sysdeps/mips/mips64/soft-fp/sfp-machine.h: Use long long for
64-bit types.
2003-03-17 15:47:13 +00:00
Alexandre Oliva
d2e29db722 * sysdeps/unix/sysv/linux/mips/readelflib.c: New file. 2003-03-14 07:52:05 +00:00
Alexandre Oliva
ab35974e21 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h
(_KERNEL_NSIG_BPW): Define in terms of _MIPS_SZLONG.
* sysdeps/unix/sysv/linux/mips/sigaction.c: Define restore and
restore_rt functions.  Use them.
2003-03-14 07:49:05 +00:00
Alexandre Oliva
1dd24665be * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Don't
.set mips2 on new abis.
2003-03-14 07:03:36 +00:00
Roland McGrath
3e9a97580a 2003-03-13 Alexandre Oliva <aoliva@redhat.com>
* sysdeps/mips/add_n.S: Use L macro for local labels.
	* sysdeps/mips/addmul_1.S: Likewise.
	* sysdeps/mips/lshift.S: Likewise.
	* sysdeps/mips/memcpy.S: Likewise.
	* sysdeps/mips/memset.S: Likewise.
	* sysdeps/mips/mul_1.S: Likewise.
	* sysdeps/mips/rshift.S: Likewise.
	* sysdeps/mips/sub_n.S: Likewise.
	* sysdeps/mips/submul_1.S: Likewise.
	* sysdeps/mips/mips64/add_n.S: Likewise.
	* sysdeps/mips/mips64/addmul_1.S: Likewise.
	* sysdeps/mips/mips64/lshift.S: Likewise.
	* sysdeps/mips/mips64/mul_1.S: Likewise.
	* sysdeps/mips/mips64/rshift.S: Likewise.
	* sysdeps/mips/mips64/sub_n.S: Likewise.
	* sysdeps/mips/mips64/submul_1.S: Likewise.
	* sysdeps/unix/mips/sysdep.h: Define L() according to ABI
	conventions.  Define END as in sys/asm.h.
	* sysdeps/unix/mips/sysdep.S: Likewise.
	* sysdeps/unix/mips/wait.S: Likewise.
	* sysdeps/unix/sysv/linux/mips/clone.S: Likewise.
2003-03-14 03:59:37 +00:00
Andreas Jaeger
28a8f69901 Introduce and use local
label .Lthread_start since current binutils don't allow branches
	to globally visible symbols.
2003-03-13 15:07:13 +00:00
Ulrich Drepper
ced89ec318 (__thread_start): Use jal instead of jalr to invoke subroutine so
restoring the $gp register will work properly.
2003-03-12 01:04:51 +00:00
Andreas Jaeger
3347c3ad39 2003-03-04 Guido Guenther <agx@sigxcpu.org>
* sysdeps/unix/sysv/linux/mips/syscalls.list: Remove unneeded
	stubs, we have INLINE_SYSCALL.
	* sysdeps/unix/sysv/linux/mips/bits/mman.h: Define MAP_POPULATE,
	MAP_NONBLOCK.
2003-03-07 09:46:33 +00:00
Ulrich Drepper
aca56a7fa5 Define MAP_POPULATE and MAP_NONBLOCK. 2003-03-03 09:58:55 +00:00
Ulrich Drepper
2b6aa9b399 (init_iosys): Yield ENODEV on unknown systems. 2003-02-20 22:22:35 +00:00
Ulrich Drepper
114e7d5005 (INLINE_SYSCALL): Add missing arguments to INTERNAL_SYSCALL_ERROR_P and
INTERNAL_SYSCALL_ERRNO.
2003-02-20 20:22:20 +00:00
Andreas Schwab
e96c2b656b Add MADV_* and POSIX_MADV_* constants. 2003-02-20 13:23:24 +00:00
Ulrich Drepper
28445fd3b2 Add posix_fadvise64 syscall. 2003-02-05 23:29:25 +00:00
Ulrich Drepper
94b1e5e52f Remove __GI_* aliases, already added by make-syscalls.sh. 2003-01-31 03:40:10 +00:00
Ulrich Drepper
c25d936b99 (SYSCALL_ERROR_LABEL): Define. 2003-01-27 20:15:03 +00:00
Ulrich Drepper
4f211d1748 Don't set errno in the _LIBC_REENTRANT case, use register names consistently. 2003-01-27 19:01:25 +00:00
Ulrich Drepper
ca0eea4226 Add support for cancellation handling and handle both __NR_pwrite64 and
__NR_pwrite.
2003-01-27 19:01:03 +00:00
Ulrich Drepper
8c5a1c7889 Add support for cancellation handling and handle both __NR_pread64 and
__NR_pread.
2003-01-27 19:00:40 +00:00
Roland McGrath
3de1f4af04 2003-01-21 Jakub Jelinek <jakub@redhat.com>
* sysdeps/unix/alpha/sysdep.h (inline_syscall0,
	inline_syscall1, inline_syscall2, inline_syscall3,
	inline_syscall4, inline_syscall5, inline_syscall6): Add __volatile__.
	* sysdeps/unix/sysv/linux/alpha/sysdep.h (INTERNAL_SYSCALL): Add
	__attribute__((unused)) to ChEcK.
2003-01-22 02:07:54 +00:00
Ulrich Drepper
af215add0a (EPILOGUE, GPSAVEREG): New.
(LOADGP) [!PIC]: Rewrite to preserve caller's gp.
2003-01-17 19:19:55 +00:00
Ulrich Drepper
0aced2c569 (__vfork): Conditionally branch to __fork even if __NR_vfork is not defined. 2003-01-15 01:06:06 +00:00
Ulrich Drepper
9da3df1021 (INTERNAL_SYSCALL, INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
INTERNAL_SYSCALL_ERROR_P, INLINE_SYSCALL): Define.
2003-01-15 01:02:03 +00:00
Ulrich Drepper
259eb5cdb8 (INLINE_SYSCALL): Undefined before defining. 2003-01-14 01:23:59 +00:00
Ulrich Drepper
aaadd842d8 Add inline syscall definitions.
(PSEUDO_LOADGP): Remove.
(PSEUDO_PROLOGUE): Load GP in non-pic case.
(SYSCALL_ERROR_LABEL): New.
(PSEUDO): Use it in error branch.
(PSEUDO_END): Add $syscall_error label.
2003-01-12 19:25:52 +00:00
Ulrich Drepper
411c121bce Move inline syscall bits to sysdeps/unix/alpha/sysdep.h. 2003-01-12 19:23:41 +00:00
Ulrich Drepper
df162e7602 Use correct definition of errno for NOT_IN_libc. 2003-01-12 19:23:03 +00:00
Ulrich Drepper
f5e2ab0edb vfork implementation for LinuxThreads/Arm. 2003-01-12 09:16:06 +00:00
Ulrich Drepper
e62ed29b3b (PSEUDO_RET): Correctly unstack lr.
(UNDOARGS_5): Fix ordering of pushes and pops.
(SINGLE_THREAD_P_PIC): New.
(SINGLE_THREAD_P_INT): Likewise.
(SINGLE_THREAD_P): Implement in terms of above.  Restore lr if it was stacked.
(PSEUDO): Use SINGLE_THREAD_P_INT.
2003-01-12 09:14:25 +00:00
Ulrich Drepper
191cbebf58 Add cancellation support. 2003-01-12 09:06:28 +00:00
Andreas Jaeger
9cc157d474 * sysdeps/unix/mips/fork.S: add PSEUDO_END.
* sysdeps/unix/mips/brk.S: Likewise.
	* sysdeps/unix/mips/pipe.S: Likewise.
2003-01-11 15:26:35 +00:00
Andreas Schwab
c7aa3cacfc GET_NPROCS_PARSER for m68k. 2003-01-10 15:36:20 +00:00