227111 Commits

Author SHA1 Message Date
rmind
44b8265175 Fix previous. 2014-05-17 21:00:33 +00:00
rmind
f7741dab17 - Move IFNET_*() macros under #ifdef _KERNEL.
- Replace TAILQ_FOREACH on ifnet with IFNET_FOREACH().
2014-05-17 20:44:24 +00:00
mrg
25bb3b0e82 split crime_bus_reset() into crime_{cpu,mem}_reset() and only reset
the cpu or the memory upon either error, not both.

seems to make my O2 slightly less likely to hang, and matches what
the linux crime driver does.
2014-05-17 20:44:08 +00:00
rmind
1bb3adb02d Add LIST_CONCAT(). 2014-05-17 20:34:49 +00:00
apb
f8398fbdeb Add tzdata2netbsd, a script to help import new versions of tzdata. 2014-05-17 19:53:22 +00:00
martin
9cab609bc8 Reorder struct ufid members to avoid padding (and save 4 bytes) on some
architectures.
2014-05-17 19:11:40 +00:00
rmind
2955673918 ppp_inproc: handle non-IP protocols correctly (hi msaitoh); PR/48813. 2014-05-17 14:51:09 +00:00
nat
a8ba8ad76b Adds ioctls and defines for OSSv4 compatibility.
The ioctl definitions and accompanying structures were
taken from FreeBSD's soundcard.h, hopefully providing
some binary compatibility.

The ioctls are as follows:
	SNDCTL_SYSINFO: Returns a structure containing
		details about the audio device.
	SNDCTL_ENGINEINFO - SNDCTL_AUDIOINFO: Returns a
		structure with playback/recording
		characteristics.
	SNDCTL_DSP_GETPLAYVOL, SNDCTL_DSP_SETPLAYVOL,
	SNDCTL_DSP_GETRECVOL, SNDCTL_DSP_SETRECVOL:
		Retrieves/Sets Playback/Recording volume.
	SNDCTL_DSP_SKIP - SNDCTL_DSP_SILENCE: These ioctls
		were intended to manipulate the underlying
		audio buffer skip or insert silence.  These
		return EINVAL.

SOUND_VERSION is unchanged, but is definable,  It will be
changed when the mixer OSSv4 ioctls are written.

Addresses PR 46611
This commit was approved by wiz@.
2014-05-17 12:38:42 +00:00
apb
ba94e92b25 Add an example with find ... -exec sh -c .... 2014-05-17 11:31:40 +00:00
njoly
3b443c792e Fix fadvise64 syscalls. Unlike our, linux fadvise syscall do not
return error code; call do_posix_fadvise().
2014-05-17 09:30:07 +00:00
njoly
00939bcb8e Regen for fadvise64 offset types changes. 2014-05-17 09:25:06 +00:00
njoly
e9bb8eca6d Fix fadvise64 syscalls to use 64bit offset types. 2014-05-17 09:23:51 +00:00
dholland
2b882222c7 Merge ulfs_create into lfs_create. 2014-05-17 07:10:27 +00:00
dholland
74f08410af Merge ulfs_mkdir into lfs_mkdir. 2014-05-17 07:09:59 +00:00
dholland
4746515192 Merge ulfs_symlink into lfs_symlink. 2014-05-17 07:09:36 +00:00
dholland
4e7cdb7dda Move the ulfs-level (copy of ufs) vnops for symlink, create, and mkdir
into lfs_vnops.c preparatory to folding them into the lfs entry points.

(lfs_vnops.c now has four licenses. sigh.)
2014-05-17 07:09:09 +00:00
dholland
06a6ff8cf2 Remove the DIROP macros. They are evil, especially the CREATE ones.
This results in some duplicate logic in the creation vnops (symlink,
mknod, create, mkdir) but we will probably be able to factor it out in
a more sensible way later.

Now the creation vnops call getnewvnode explicitly instead of under
multiple layers of obscure gunk. Then we explicitly do lfs_set_dirop,
and afterwards lfs_unset_dirop.
2014-05-17 07:08:35 +00:00
mrg
5893f1db8f bump version, note .svg support. 2014-05-17 05:50:46 +00:00
mrg
f434e335cc enable .svg. as prompted by agc@. 2014-05-17 05:50:01 +00:00
dholland
8e1257d82c Also set or assert that *vpp is null before calling VOP_MKDIR. 2014-05-17 04:07:15 +00:00
dholland
3955d2067a Set *vpp to NULL before calling VOP_CREATE. This always happens when
calling using nameidata, and if not something went wrong, so we'd like
to be able to assert about it.
2014-05-17 04:03:49 +00:00
matt
a035e18049 Cleanup and simplify PCU FP support. Nuke MDLWP_FPUSED. 2014-05-16 19:18:21 +00:00
palle
65aa7f14df Added test of -d option to sysctl 2014-05-16 18:50:28 +00:00
njoly
23dad8ce7a Do not compute code value more than once. Remove unneeded before
trace_enter()/trace_exit() calls.

This fix some cases where tracing show unexpected SYSRET number value
because some syscalls, such as setcontext(2), modified the trapframe
register values.
2014-05-16 12:55:43 +00:00
martin
804dc5f91b Get rid of all sysc_init_field uses - initialize fields directly in C99
notation.
2014-05-16 12:22:32 +00:00
rmind
58c3a6cb29 It is now lwp_t::l_pcu_valid for the PCU changes (missed in the
previous commit).
2014-05-16 10:05:38 +00:00
reinoud
56e033dde9 Add i2c locators, add a i2c bus indexer and provide function prototype for the
pinset to pindata function.
2014-05-16 10:04:58 +00:00
reinoud
3619c72c99 Fix issues with the gpio controller:
* the func get/put shift is 4 bits, not 16!
* redo available and inuse bits
* create a function to get a pindata from a pinset
2014-05-16 10:02:24 +00:00
martin
5dd9bd30f5 When creating the descriptions for the "user" node, advance the output
pointer properly.
2014-05-16 09:41:42 +00:00
mrg
c16f810189 apply -fimplicit-templates instead of forcing -O2. fix the
build fix on platforms that don't use -O2 by default, and
also enables building with -O0.
2014-05-16 09:36:51 +00:00
dholland
7de8c6f8a6 Move lfs_getpages and lfs_putpages to their own file. 2014-05-16 09:34:03 +00:00
martin
722b7feb56 Do not loop over children if a node is not marked as CTLTYPE_NODE. 2014-05-16 08:59:24 +00:00
wiz
4362e218b3 Consistency. 2014-05-16 08:29:18 +00:00
apb
8868e29c31 zoneinfo: Import tzdata2014c. [apb 20140515] 2014-05-16 06:25:22 +00:00
apb
72ba973144 tzdata has been updated to 2014c 2014-05-16 06:23:58 +00:00
martin
9924ee1266 Add missing .Bl 2014-05-16 06:15:28 +00:00
martin
bb4ae2c566 When creating a SIGFPE siginfo for a gentrap, we have no additional info
(ucode) available, and the pal interface does not provide additional
details either. Hardcode the si_code value to FPE_INTDIV, since the only
callers of gentrap in our kernel seem to be the division routines in libkern.
2014-05-16 06:11:21 +00:00
rmind
d67ab12c1d pcu(9):
- Remove PCU_KERNEL (hi matt!) and significantly simplify the code.
  This experimental feature was tried on ARM did not meet the expectations.
  It may be revived one day, but it should be done in a much simpler way.
- Add a message structure for xcall function, pass the LWP ower and thus
  optimise a race condition: if LWP is discarding its state on a remote CPU,
  but another LWP already did it - do not cause an unecessary re-faulting.
- Reduce the variety of flags for PCU operations (only PCU_VALID and
  PCU_REENABLE are used now), pass them only to the pcu_state_load().
- Rename pcu_used_p() to pcu_valid_p(); hopefully it is less confusing.
- pcu_save_all_on_cpu: SPL ought to be used here.
- Update and improve the pcu(9) man page; it needs wizd(8) though.
2014-05-16 00:48:41 +00:00
joerg
d47b3f5c30 Mark unwinding as supported for eARM. 2014-05-16 00:19:00 +00:00
joerg
718b124a41 Prepare in case we want to hook up the profile init code later. 2014-05-16 00:11:30 +00:00
joerg
8f1ac24727 Deal with PGO rename. 2014-05-16 00:10:57 +00:00
joerg
d49dd56f86 Clean up a few more directories. 2014-05-16 00:08:17 +00:00
joerg
61f2f2562d Import compiler-rt r208593. Fix a build bug in __clear_cache by not
explicitly forcing the ABI. Add first part of IEEE 754 quad support.
2014-05-16 00:04:17 +00:00
joerg
9b139c3c53 Remove some more CMakeLists.txt files. 2014-05-15 23:59:12 +00:00
wiz
8673451f10 More markup. Better table width. Bump date for previous. 2014-05-15 23:59:05 +00:00
joerg
534cb174a5 Import libcxxrt revision 4eb349088dda15d2de9a8c7b144c3f2d5f390269.
Restore support for 32bit architectures without 64bit CAS.
Support DWARF exception handling on ARM.
2014-05-15 23:56:01 +00:00
joerg
e6132fe847 Import libc++ r208870. Improves const use, fixes a few cases of missing
assign-to-self support and increase support for GCC.
2014-05-15 23:53:10 +00:00
wiz
8f7d248eb8 Wording, typo fixes. 2014-05-15 23:52:32 +00:00
alnsn
98f8ebfbda Refactor bpfjit code.
- Implement Array Bounds Check Elimination for packet bytes.
 - Track initialization of registers and memwords.
 - Remove "bj_" prefix from struct members.
 - Shorten "BPFJIT_" prefix to "BJ_".
 - Other small improvements.
2014-05-15 22:20:08 +00:00
christos
7360fa8391 be a bit more verbose about why we think a note is bad. 2014-05-15 19:37:22 +00:00