Commit Graph

207034 Commits

Author SHA1 Message Date
jmcneill 3bbd7268c6 audio: Audio drivers are now MP-safe. 2011-11-24 00:56:46 +00:00
roy 118a5b5827 import openresolv-3.4.5 2011-11-24 00:40:31 +00:00
roy 07c692851d sync 2011-11-24 00:37:40 +00:00
roy 02c18234cd Import openresolv-3.4.5 with the following changes since the last version:
* More printf portabitiy fixes.
* Use read -r to avoid backslash problems.
* If we have a valid domain, put that in resolv.conf as well as search.
  This does not fix a technical problem, just stops me getting bug reports.
* Update metric and privacy even if resolv.conf didn't change.
* sortlist is now supported.
* Ensure subscriber config directories exist before writing the configs
* Don't create pdnsd.conf if it doesn't exist or is not writeable.
2011-11-24 00:36:05 +00:00
mrg d4009eded7 note umidi as done 2011-11-23 23:59:32 +00:00
mrg eabfa83860 complete the port to audiomp: take kernel lock in a few places for
USB (like uaudio), kill most of the spl* uses.
2011-11-23 23:50:46 +00:00
jmcneill c1df314e27 jmcneill-audiomp3 is done 2011-11-23 23:12:48 +00:00
jmcneill f3aef68ba3 update audio(9) docs for audiomp changes 2011-11-23 23:11:56 +00:00
jmcneill 8a962f23f2 Merge jmcneill-audiomp3 branch, which is derived from ad-audiomp2. From
the original ad-audiomp branch notes:

  Add MP locking to the audio drivers.

  Making the audio drivers MP safe is necessary before efforts
  can be made to make the VM system MP safe.

  The are two locks per device instance, an ISR lock and
  a character device lock. The ISR lock replaces calls to
  splaudio()/splx(), and will be held across calls to device
  methods which were called at splaudio() before (e.g.
  trigger_output). The character device lock is held across
  calls to nearly all of the methods, excluding some only
  used for initialization, e.g. get_locks.

Welcome to 5.99.57.
2011-11-23 23:07:28 +00:00
jmcneill 93067a764f terminate ad-audiomp2, add jmcneill-audiomp3 2011-11-23 22:57:24 +00:00
phx 4737c9d893 Make it compile without DEBUG option. 2011-11-23 21:02:28 +00:00
bouyer d6fd66fef6 If ufs_balloc_range() fails, make sure to call ?fs_truncate() to
reset v_writesize to the right value.
If v_writesize is left larger than the allocated blocks, we may have
the same issue as the one described in
http://mail-index.netbsd.org/tech-kern/2010/02/02/msg007156.html
2011-11-23 19:42:10 +00:00
matt a52d311628 Add mips64*-netbsd* clauses 2011-11-23 19:41:50 +00:00
hannken b51f84ed74 According to "Virtio PCI Card Specification v0.9.2 DRAFT" there is no
feature named VIRTIO_BLK_F_SECTOR_MAX so remove it.  Linux seems to use
this feature bit as VIRTIO_BLK_F_TOPOLOGY.

Use VIRTIO_BLK_F_BLK_SIZE * VIRTIO_BLK_F_SEG_MAX as the drivers maxxfer
and reorder so sc_secsize gets set before use.

As maxxfer may not be a multiple of page size add one more segment to
the dma maps.

Tested on Linux 3.1.1 host by Guillaume Lasmayous.
2011-11-23 19:40:42 +00:00
hannken 035b1022bb Use hashinit() / hashdone() to create the union node hash list.
Cleanup the hash lookup in union_allocvp().

Needs more work as there is still a possible deadlock between
union_allocvp() and vclean().
2011-11-23 19:39:11 +00:00
tnozaki 10248e78d8 use ARG_CHAR_T instead of CHAR_T for integer promotion. 2011-11-23 19:25:27 +00:00
tnozaki 87c8bc2121 use e_key_t instead of u_int. 2011-11-23 19:18:53 +00:00
nonaka 451b8e69e9 recompile. 2011-11-23 15:51:02 +00:00
nonaka 115cdcb731 modify for PSION NETBOOK PRO.
- ignore "Network" directory when finding the directory for configuration files.
- as the device name "SMC" (SD-MMC) to allow.
- add "SMC1:/" entry to kernel directory.
2011-11-23 15:49:57 +00:00
tnozaki 5a00661245 don't use WEOF directly, for --disable-widechar. 2011-11-23 15:43:39 +00:00
tnozaki 3392bf8c1a don't use L prefix directly, for --disable-widechar. 2011-11-23 14:14:43 +00:00
wiz 69d02ecf2f Sort option descriptions, bump date for previous. 2011-11-23 12:15:30 +00:00
tls 4924aa205a Load entropy at system boot (only works at securelevel < 1); save
at system shutdown.  Disable with random_seed=NO in rc.conf if desired.

Goes to some trouble to never load or save to network filesystems.

Entropy should really be loaded by the boot loader but I am still
sorting out how to pass it to the kernel.
2011-11-23 10:47:48 +00:00
jym 95925fc068 No more users of xpmap_update(). Use pmap_pte_*() functions now. 2011-11-23 01:16:55 +00:00
jym 5db0fc1679 Kill dependency to xpmap_update(), and use setbits/clearbits to update
kernel PTE rights.
2011-11-23 01:15:02 +00:00
matt 4b00b594fa When allocating a page for a kernel stack and PMAP_ALLOC_POOLPAGE is
defined, use it.  (allows a MIPS N32 kernel to boot when there is memory
outside of KSEG0).
2011-11-23 01:07:50 +00:00
matt c1be7fc1fe When allocating pages for kernel map entries and PMAP_ALLOC_POOLPAGE is
defined, use it.  (allows a MIPS N32 kernel to boot when there is memory
outside of KSEG0).
2011-11-23 01:00:52 +00:00
jym 1eaed4e6e6 Move Xen-specific functions to Xen pmap. Requested by cherry@.
Un'ifdef XEN in xen_pmap.c, it is always defined there.
2011-11-23 00:56:56 +00:00
christos 070df59c8a - make decimal conversions use the maximum width integers available on the
architecture.
- make signed and unsigned code consistent.
2011-11-22 22:30:22 +00:00
tls 8a012bd83f The rnd pseudo-device is not really optional, because it is in the same
source file as the entropy-pool code itself.  Move it to std.  This
will be cleaned up more when I split the sources up as they should be.

This fixes build breaks on several ports.  Thanks to Havard Eidnes for
pointing them out.
2011-11-22 21:25:05 +00:00
christos 32c78aacbc Increment the source buffer when we overflow so that we don't get stuck in
an infinite loop.
2011-11-22 21:25:04 +00:00
tls a22a3917ac The rnd pseudo-device is not really optional, because it is in the same
source file as the entropy-pool code itself.  Move it to std.  This
will be cleaned up more when I split the sources up as they should be.

This fixes build breaks on several ports.  Thanks to Havard Eidnes for
pointing them out.
2011-11-22 21:24:51 +00:00
cheusov 91dbf71977 Regression tests for awk(1) (PR 44063) 2011-11-22 20:22:09 +00:00
jakllsch bc81369a28 Set "mode" to 2 at the correct time.
Fixes recording on some isapnp(4) wss(4) chips.
2011-11-22 19:33:38 +00:00
garbled 0f8d4dff8d Add support to recognize the 8168E model of this chip. Taken from FreeBSD 2011-11-22 18:42:56 +00:00
apb 6c03a4739d Use :Q to deal with the case that CLEANFILES or CLEANDIRFILES
contains quoted substrings (such as file names with spaces).
Problem reported by Joseph Koshy, who also provided the
important part of the fix.
2011-11-22 18:25:48 +00:00
phx 2ef75c3a2d Print "Model:" information with oea_startup(). 2011-11-22 16:56:29 +00:00
joerg e6acb836e9 ARM and M68K TLS support 2011-11-22 15:30:17 +00:00
joerg 6133e96c53 Add TLS support for m68k. 2011-11-22 15:25:28 +00:00
tsutsui 439935782f Remove more now unnecessary IIOV() conversion.
XXX: we should have proper PA to VA macro for TT mappings for readability
2011-11-22 14:31:02 +00:00
he 4c9561fdf9 Bump SYMTAB_SPACE so that the symbol table fits again. 2011-11-22 12:11:39 +00:00
wiz daa02faeaf binutils-2.22 out 2011-11-22 09:06:47 +00:00
joerg 64680c6b13 Handle simple cases (strlen(charset) <= 1) more efficiently. 2011-11-22 00:37:09 +00:00
joerg 9cf8fb38ac Add test cases for strcspn, strpbrk, strspn, wcscspn, wcspbrk and
wcsspn.
2011-11-21 23:50:44 +00:00
macallan 19166a6288 NIST_CTR_DRBG.V is accessed as (unsigned long *) so we need to make sure
it's aligned accordingly or we go boom on sparc64
2011-11-21 23:48:52 +00:00
njoly 63da447932 Adjust setup_linux_rt_sigframe/setup_linux_sigframe prototypes. 2011-11-21 22:00:42 +00:00
darcy 77a099d5ff Allow pf flags to be specified in rc.conf.
Add default to defaults/rc.d as suggested by lukem@
2011-11-21 20:56:21 +00:00
christos abbdc04fd6 - don't clear the flags twice in the loop
- reorder calculation to preserve as much precision as possible.
2011-11-21 19:50:37 +00:00
hannken 4e825063cf Replace flag based union node locking with generic vnode lock, support
shared and nowait locks and protect un_uppervp and un_*sz with mutex.

Mark file system MPSAFE.
2011-11-21 18:29:22 +00:00
christos dd89f66f56 make this compile again. VOP_CLOSE is really vn_close() through macros. 2011-11-21 17:51:03 +00:00