Commit Graph

224458 Commits

Author SHA1 Message Date
martin 39ae3c2126 Provide scalbnl, scalbnf, logbl, logbf, fmaxl for vax. 2014-02-03 21:22:21 +00:00
wiz 97cd0ff474 From Igor Sobrado in private email (based on his OpenBSD commit):
improve POSIX compliance by continuing to process the remaining file
    operands after not finding an input file.

    from the IEEE Std 1003.1-2008 (``POSIX.1'') rationale:

    "Unlike other utilities, some historical implementations of cut
    exit after not finding an input file, rather than continuing to
    process the remaining file operands.  This behavior is prohibited
    by this volume of POSIX.1-2008, where only the exit status is
    affected by this problem."

    joint work with jmc@, who identified the compliance issue, and millert@

    ok millert@, jmc@
2014-02-03 20:22:19 +00:00
matt ecd212e672 Provide a simple version of _bus_dmamap_load_raw. If each segments can
be mapped by XKPHYS/KSEGn, then the load will succeed.  If it would
require a bounce buffer or being mapped into the kernel's address space,
the load will fail.
2014-02-03 19:18:59 +00:00
manu f59b4d840e Properly translate struct swapent for COMPAT_NETBSD32 (missing commit) 2014-02-03 17:03:16 +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
wiz 1193e8963a Try improving a comment. 2014-02-03 14:15:07 +00:00
joerg 1b87ac407e For ancient GCC, disable the missing prototype warning completely. 2014-02-03 13:30:10 +00:00
manu d7670a176d Properly translate struct swapent for COMPAT_NETBSD32 2014-02-03 13:20:20 +00:00
msaitoh 3443d04260 Carefully set IFF_OACTIVE in mvgbe_start(). Even if mvgbe_encap()
returns other than 0, the TX ring might not full. Check whether
the TX ring has one or more packets. If the ring is empty,
dont' set IFF_OACTIVE because an TX complete interrupt never
occur and IFF_OACTIVE flags is left. The interface's timer
isn't reset, so a device timeout desn't occur.

 Fixes a bug that IFF_OACTIVE flag is left on heavy load.
Part of PR#48568.
2014-02-03 05:56:23 +00:00
rmind 55b0c96054 - npfctl: fix table IDs (breakage since the table naming was added).
- libnpf: remove npf_table_exists_p() from public API.
2014-02-03 02:21:52 +00:00
christos fef7521afe remove stale comment and explain what we are doing. thanks dsl 2014-02-02 23:17:54 +00:00
dsl 52252605c4 Minor fpu initialisation cleanups:
Set default CR) so that the FPU is enabled (unset CR0_EM) and initialise
  i386_fpu_present to 1.
No need to call the npx trap indirectly, rename to fpunda() to match amd64.
Remove the i386_fpu_exception variable and sysctl (It used to indicate
  which irq was used for fpu exceptions, but we only support 'internal'
  now).  Hopefully no one cares.
fpuinit() now only needs to clear TS before the fninit(). Apart from the
  checks for 486SX and the 'fdiv bug' this matches the amd64 version.
Exclude fpuinit() from XEN kernels, they don't call it - which rather begs
  the question as to whether it is needed at all!
2014-02-02 22:41:20 +00:00
christos cf1ad84b0d Fix threading bug again. 2014-02-02 22:00:38 +00:00
dholland 7f6461e52c bump date for previous 2014-02-02 18:06:33 +00:00
dholland 74b6f13039 Reorg second paragraph too, to group related info together. 2014-02-02 17:32:38 +00:00
dholland 61bb893049 Rework description for clarity; prompted by chat comments from bad@. 2014-02-02 17:30:06 +00:00
wiz d88140fcc8 Sort errors. Bump date for previous. 2014-02-02 16:59:13 +00:00
wiz 08c720a8d8 Bump date for previous. 2014-02-02 16:59:06 +00:00
tsutsui 11a902922e Misc cleanup of sio drivers.
- register softc of child devices as an argument of the sio interrupt
  handler to avoid device_lookup_private() calls on every interrupt
- change type of sc_reg from (void *) to (struct sioreg *)
  to avoid weird address offset calculations with redundant casts
- rename struct sio_softc members for consistency
- use a channel number passed via sio_attach_args in lunaws_attach()

No functional chnages.  Tested on LUNA.
2014-02-02 15:35:06 +00:00
martin b450cd5b5f Remove paranthesis from return operands. 2014-02-02 14:54:39 +00:00
martin 65095476e3 Cosmetics: return is an operator, not a function: remove (). 2014-02-02 14:50:46 +00:00
martin 2934fa70dc Limit the amount of kernel memory a posix_spawn syscall can use (for handling
the file action list) by limiting the maximum number of file actions to
twice the current file descriptor limit.
Fix a few bugs in the support functions and document the new limit.
From Maxime Villard.
2014-02-02 14:48:57 +00:00
wiz 01b245946f Wording. New sentence, new line. filesystem -> file system. 2014-02-02 08:34:39 +00:00
wiz 0717db96f8 Mark up HZ. 2014-02-02 08:31:49 +00:00
dogcow 437b1ce30d Delete duplicate symbol definition introduced in 1.371. Now builds again. 2014-02-02 08:25:23 +00:00
martin e9501cb2dc Add a few more test values from the range that sparc64 previously would
have got wrong.
2014-02-02 08:16:22 +00:00
martin a7682b765e Fix unsigned 64 bit int to long double conversion for numbers that would not
fit into a signed 64 bit int. Found by latest t_floatunditf test case
failuer, hint from Matt Thomas.
2014-02-02 08:14:39 +00:00
manu 70aead41ff Add EMUL_NATIVEROOT so that native binaries can be told to search an
"emulation" directory before the real root. This makes easier to test
an amd64 kernel on the top of an i386 root filesystem prior a full
migration.
2014-02-02 04:28:42 +00:00
mrg ee81b5bfee display the tempdir for exported files as well. 2014-02-02 03:20:57 +00:00
mrg 7f3f4479d2 call gzip directly for distfile export target; it's usually run outside
of the normal build.
2014-02-02 03:20:10 +00:00
mrg 4d12e4bc49 add lua-bozo.c. 2014-02-02 03:14:58 +00:00
mrg 496aca988c update for 2014-02-01. 2014-02-02 03:13:31 +00:00
christos 4acd8c5085 mention how HZ affects us 2014-02-01 22:42:45 +00:00
matt 53a841187b Pass DBG to crunchgen so it can get into the created mk file. 2014-02-01 21:05:54 +00:00
jmmv 2d5468b007 Add missing Kyuafile for usr.bin/vmstat tests. 2014-02-01 20:49:11 +00:00
matt 193dbcdaae Since powerpc passes 8 arguments in registers and the syscall number in r0,
shuffle register argument so the kernel won't need to access the stack to
retrieve that last argument.
2014-02-01 20:26:21 +00:00
bouyer 454d551267 Revert previous: calling fpuinit() leads to a panic, as a domU is not
allowed to manipulate cr0 directly. Xen doesn't need this, the fpu is
handled by the hypervisor.
2014-02-01 20:07:07 +00:00
bouyer 6d602218df Stopgap measure: set i386_fpu_present to 1 for XEN.
Stop a stream of
npxintr: came from nowherenpxintr: l = 0xc17ba560, curproc = 0xc177d880, fpu_present = 0
when running some ATF tests:
http://www-soc.lip6.fr/~bouyer/NetBSD-tests/xen/HEAD/i386/201401300920Z_anita.txt

XXX this is probably still broken for native i386, at last for older CPUs.
It looks like on newer CPUs (such as the one emulated by qemu) this code path
is not used.
2014-02-01 18:57:38 +00:00
dsl cd7408c584 Add a direct call to fpuinit().
I'm not sure this is architecturally the best place, but I think it
  is where npxattach() used to get called.
Might fix FP support in domu
2014-02-01 17:48:04 +00:00
nakayama c7c583d9f6 Make sljit usable on sparc64 32-bit kernels. 2014-02-01 17:01:35 +00:00
matt a5e6c1dbae All EXT_EXP defines must be conditionized. Back out previous change which
removed that.
2014-02-01 16:39:52 +00:00
matt 6b4f5dd53c Export __HAVE_LONG_DOUBLE 128 to kernel for emulation 2014-02-01 16:10:12 +00:00
matt 450a706e69 Move wrongly placed ifdef. 2014-02-01 15:40:14 +00:00
martin 3de77da158 Skip testcase inside its body for architectures w/o long double support 2014-02-01 13:53:16 +00:00
skrll c3052f8805 Improve the compiler_rt entry slightly 2014-02-01 13:29:45 +00:00
joerg 45d835616e Advise a clean build for the compiler-rt migration. 2014-02-01 12:51:02 +00:00
martin 0493f8e382 sparc and sparc64 have moved to new world order, remove legacy files. 2014-02-01 11:59:00 +00:00
nakayama 6194e0bc7e Follow rev. 1.54, 1.55 of libexec/ld.elf_so/arch/sparc64/mdreloc.c. 2014-02-01 11:19:04 +00:00
martin 5693dcbe9d Make the constants describing extended format available even if we do
not have long doubles.
This fixes the sparc kernel build (which uses the constants in FPU emulation
code).
2014-02-01 10:41:38 +00:00
martin 5f1a738958 Print a slightly more helpfull message in case of test failure 2014-02-01 10:00:04 +00:00