Update some of the amd64 parts of libc:
authorPeter Avalos <pavalos@dragonflybsd.org>
Sun, 26 Apr 2009 03:57:31 +0000 (03:57 +0000)
committerPeter Avalos <pavalos@dragonflybsd.org>
Sun, 21 Jun 2009 08:12:07 +0000 (08:12 +0000)
commiteb9f4715e9826cbe89be0778e43ed144bcd1d5bc
tree40fdb13ef290365b05d1f2a279997cde37956e59
parent5e240be9cdb3ff91dbdd61eb86a269f95b44e8df
Update some of the amd64 parts of libc:

* Change the syscall stub branch orders so that the static branch
prediction will assume that syscalls will succeed rather than fail.

* Add error handling for PSEUDO syscalls.

* Add END() macros for Assembler code. This causes the symbol
table to include the size of the function.

* ldexp:  Fix a typo in the !__GNUC__ case and remove an obsolete
comment.

* setjmp/longjmp changes:
-Save and restore the control part of the MXCSR in addition to the
i387 control word to ensure that the two are consistent.
-Don't clobber the FPU exception flags in longjmp. C99 requires them
to remain unchanged.

Obtained-from: FreeBSD
22 files changed:
lib/libc/amd64/DEFS.h [deleted file]
lib/libc/amd64/SYS.h
lib/libc/amd64/gen/_setjmp.S
lib/libc/amd64/gen/fabs.S
lib/libc/amd64/gen/ldexp.c
lib/libc/amd64/gen/modf.S
lib/libc/amd64/gen/rfork_thread.S
lib/libc/amd64/gen/setjmp.S
lib/libc/amd64/gen/sigsetjmp.S
lib/libc/amd64/sys/brk.S
lib/libc/amd64/sys/exect.S
lib/libc/amd64/sys/pipe.S
lib/libc/amd64/sys/ptrace.S
lib/libc/amd64/sys/reboot.S
lib/libc/amd64/sys/sbrk.S
lib/libc/amd64/sys/setlogin.S
lib/libc/amd64/sys/sigreturn.S
lib/libc/amd64/sys/vfork.S
lib/libc/i386/SYS.h
lib/libc/sys/Makefile.inc
lib/libc_r/arch/amd64/_atomic_lock.S
lib/libstand/i386/_setjmp.S