Commit Graph

17103 Commits

Author SHA1 Message Date
martin
d408a8629c log2() for vax 2014-03-06 10:57:01 +00:00
martin
13958f72dc Add brute-force adaptions of the ieee version of exp2() and exp2f for
vax. Needs some polishing (and table adaption), but should get the build
going for now.
2014-03-06 10:55:57 +00:00
joerg
6ccf4859e4 Add GENASSYM_CPPFLAGS in two more places. 2014-03-04 17:57:56 +00:00
joerg
9c3fd52490 Introduce GENASSYM_CPPFLAGS for options during genassym processing.
Consistently drop assembler flags.
2014-03-04 14:58:14 +00:00
matt
c1987519cf #include <m68k/m68k.h> 2014-03-04 06:38:08 +00:00
matt
94c30368e1 The fixuns* come from compiler_rt so softfloat doesn't need to provide them. 2014-03-04 06:30:40 +00:00
matt
c479ba2f5a Avoid a warning and just do the trap #1 instead of calling sigreturn inline.
If it fails, it'll fall into the botch case so don't bother calling CERROR
on failure.
2014-03-04 06:27:00 +00:00
pooka
98974ef8eb add man page for rumpfs 2014-03-03 18:27:20 +00:00
dsl
77e93a9cb9 Drop in a fabs() after the fsqrt().
While it may seem pointless, it the rouding mode is set to round towards
minus infinity then acos(-1) calculates atan2(sqrt(1.0 - 1.0), -1) the subtract
generates -0.0 which sqrt() preserves.
atan2(-0, -1) is -pi, but acos(-1) is expected to be +pi.
This might 'fix' the test failures seen in some environments, but they
are not failing due to an obvously incorrent x87 rounding mode.
2014-03-03 08:00:50 +00:00
matt
e0c9b05e1a Change remaining "MACHINE_ARCH" to "LIBC_MACHINE_ARCH" 2014-03-02 03:04:52 +00:00
pooka
8a7d14d1c2 Fix locking SNAFU.
Is someone can explain why the code worked for 3+ years with multiple
different pthread implementations, I'll buy you a banana.
2014-02-28 13:55:36 +00:00
blymn
0d7a04cd28 Fix reversed logic in the notimeout call.
Fix obsolete email addresses in copyright.
2014-02-28 07:58:42 +00:00
matt
22332fd4bf Use _ENTRY 2014-02-27 18:11:08 +00:00
joerg
0d337fe4e9 Remove tautological check. 2014-02-27 18:09:38 +00:00
matt
96ed0d69f5 Use the CALL() macro. 2014-02-27 18:01:51 +00:00
matt
a877c70108 Add powerpc64 support 2014-02-27 16:47:48 +00:00
uwe
c83f85c76a G/c old unused sh3 csu. Requested by joerg@ 2014-02-27 02:14:27 +00:00
joerg
a48c968746 Update compiler-rt glue for the new source layout. 2014-02-26 22:37:55 +00:00
martin
fb526759de Make the .note section mergable and set proper "item" length.
XXX seems to be impossible to do that with gas w/o causing a (bogus)
warning - but the resulting object file is fine.
2014-02-26 14:54:50 +00:00
christos
0680d7215e Add missing EL_REFRESH 2014-02-26 13:50:29 +00:00
mrg
afa90f2bf5 prepare for moving GCC 4.5 into gcc.old:
- convert to using ${EXTERNAL_GCC_SUBDIR}
- define base-external-gpl3-gcc* subdir as GCC_SUBDIR
- use <bsd.init.mk> over <bsd.own.mk> for a bunch of places; mostly
  because it arranges for ../Makefile.inc to be included earlier, and
  don't bother including the latter if the former is already included.
- move all .PATH: settings after <bsd.{own,lib}.mk> so that all
  valid variables are set before it is evaluated
- rename mknative-gcc* to match their subdir name.

XXX the relationship between the Makefile.inc/Makefile.gcc_path files
    is kind of sketchy, it would be great if this was fixed.
2014-02-26 09:54:32 +00:00
pooka
94265f339d Use MAP_ANON|MAP_PRIVATE for anonymous memory mapping,
e.g. Linux gets upset if just MAP_ANON.
2014-02-26 02:03:40 +00:00
pooka
a2867970a4 emulate printflike properly to avoid fatal error on clang 2014-02-25 20:58:18 +00:00
martin
b67fdf35da Powerpc seems to expect minimum 8 byte alignment from malloc as well. 2014-02-25 12:13:19 +00:00
dholland
56052b0a66 pipe2 requires fcntl.h for its flags; PR 48614 from Steffen Daode Nurpmeso.
Also fix the wording for EINVAL as suggested by Robert Elz.
2014-02-22 17:26:41 +00:00
palle
4ad8530004 sun4v: Rename TLB_ defines to SUN4U_TLB_ so entries created using TSB_DATA() are properly setup for sun4u and sun4v. Relocate the cputyp variable from autoconf.c to locore.s and make it const in param.h so optimized code can be generated. Parts from OpenBSD. Optimization suggested by nakayama@. OK martin@, mrg@, nakayama@ 2014-02-21 18:00:09 +00:00
blymn
74ff043f96 Correct the implementation of mvderwin, it now works as specified by
SUSv2.
2014-02-20 09:42:42 +00:00
pooka
613311d8d7 remember to commit this file too 2014-02-20 01:24:49 +00:00
pooka
fb8e281673 make implementation of rumpuser_kill() match the documentation 2014-02-20 00:44:20 +00:00
pooka
64a85ea946 document rumpuser_kill() 2014-02-20 00:43:26 +00:00
pooka
437e54a701 Translate signal numbers between rump kernel and (POSIX) host. 2014-02-20 00:42:27 +00:00
dsl
7c166415e7 Remove the #include <sys/user.h> from all of libkvm.
sys/user.h is a stub that just #includes sys/pcb.h.
There are no 'struct pcb' anywhere in here, so I'm extremely doubtful
any of the builds will fail.
OTOH it might be relying on a header that pcb.h includes.
In any case i386 and amd64 build.
2014-02-19 20:21:22 +00:00
skrll
4c855bdfea Provide a genassym.cf in libc for hppa and use it. 2014-02-19 13:01:51 +00:00
martin
ce92aca1d5 Bounce the minimum allocation alignement for sparc64 and amd64 as well,
to sync with their default gcc configuration.
We could relax this again later, after a filing a defect report with the
ISO C comitee and getting an answer contradicting the gcc teams
interpretation (and then fix the gcc target configurations instead).
2014-02-17 08:50:50 +00:00
wiz
d256445c5b New sentence, new line. 2014-02-14 07:27:37 +00:00
pooka
51b406fe68 some minor updates and reality-checks 2014-02-14 01:11:04 +00:00
pooka
177c2413c9 minor clarification: rumpuser_thread_create() is used to create the host
thread context for kernel threads, never for application threads.

per discussion with justin
2014-02-14 00:33:51 +00:00
rmind
068cee2998 NPF: add support for IPv6-to-IPv6 Network Prefix Translation (NPTv6),
as per RFC 6296.  Add a unit test.  Also, bump NPF_VERSION.

Thanks to S.P.Zeidler for the help with NPTv6 work!
2014-02-13 03:34:40 +00:00
christos
3c501c2028 remove unneeded code, and kill parens from return 2014-02-10 16:30:54 +00:00
christos
72d54c1762 PR/48585: Henning Petersen: Always set errno when returning NULL. 2014-02-10 16:29:30 +00:00
rmind
8274d601f9 NPF: add support for static (stateless) NAT. 2014-02-07 23:45:22 +00:00
christos
10b0462e36 don't lie about function signatures. 2014-02-07 20:20:56 +00:00
hannken
97834f7ba0 Change vnode operation lookup to return the resulting vnode *vpp unlocked.
Change cache_lookup() to return an unlocked vnode.

Discussed on tech-kern@

Welcome to 6.99.31
2014-02-07 15:29:20 +00:00
christos
4f4753b8fe RFC 3542 (section 10.1) states that optlen should only be checked when
opt != NULL (Eitan Adler)
2014-02-07 02:36:06 +00:00
rmind
aac4ad500b bump the date 2014-02-06 15:50:40 +00:00
rmind
290732ce3d cdbw(3) man page: fix the header file name and use .Fa for function arguments. 2014-02-06 15:47:20 +00:00
rmind
ffcdc4af8d Add support for CDB based NPF tables. 2014-02-06 02:51:28 +00:00
skrll
03dbd38792 Err on the safe side for small memory allocations and provide 4byte
alignment by default.  Override this to 8byte alignment for alpha and arm
eabi.

Someone (tm) can review this change once the standards and compiler(s)
have sorted themselves out.
2014-02-05 11:32:15 +00:00
martin
39ae3c2126 Provide scalbnl, scalbnf, logbl, logbf, fmaxl for vax. 2014-02-03 21:22:21 +00:00
rmind
2e17c78b61 pthread__mutex_lock_slow: fix the handling of a potential race with the
non-interlocked CAS in the fast unlock path -- it is unsafe to test for
the waiters-bit while the owner thread is running, we have to spin for
the owner or its state change to be sure about the presence of the bit.
Split off the logic into the pthread__mutex_setwaiters() routine.

This is a partial fix to the named lockup problem (also see PR/44756).
It seems there is another race which can be reproduced on faster CPUs.
2014-02-03 15:51:01 +00:00