1. 30 Jan, 2013 14 commits
    • Hans Petter Selasky's avatar
      Provide one global language string descriptor for · 23ab0871
      Hans Petter Selasky authored
      american english instead of giving each module its
      Submitted by:	Christoph Mallon
    • Hans Petter Selasky's avatar
      Modify the FreeBSD USB kernel code so that it can be compiled directly · d2b99310
      Hans Petter Selasky authored
      into the FreeBSD boot loader, typically for non-USB aware BIOSes, EFI systems
      or embedded platforms. This is also useful for out of the system compilation
      of the FreeBSD USB stack for various purposes. The USB kernel files can
      now optionally include a global header file which should include all needed
      definitions required to compile the FreeBSD USB stack. When the global USB
      header file is included, no other USB header files will be included by
      Add new file containing the USB stack configuration for the
      FreeBSD loader build.
      Replace some __FBSDID()'s by /* $FreeBSD$ */ comments. Now all
      USB files follow the same style.
      Use cases:
       - console in loader via USB
       - loading kernel via USB
      Discussed with:		Hiroki Sato, hrs @ EuroBSDCon
    • Ian Lepore's avatar
      Fix a descriptor leak in devd. Clients reading /var/run/devd.pipe can close · e1334f93
      Ian Lepore authored
      their socket connection any time, and devd only notices that when it gets an
      error trying to write an event to the client.  On a system with no device
      change activity, clients could connect and disappear repeatedly without devd
      noticing, leading to an ever-growing list of open socket descriptors in devd.
      Now devd uses poll(2) looking for POLLHUP on all existing clients every time
      a new client connection is established, and also periodically (once a minute)
      to proactively find zombie clients and reap the socket descriptors.  It also
      now has a connection limit, configurable with a new -l <num> command line arg.
      When the maximum number of connections is reached it stops accepting new
      connections until some current clients drop off.
      Reviewed by:	imp
      Approved by:	cognet (mentor)
    • Pietro Cerutti's avatar
      Add fmemopen(3), an interface to get a FILE * from a buffer in memory, along · 96c95412
      Pietro Cerutti authored
      with the respective regression test.
      See http://pubs.opengroup.org/onlinepubs/9699919799/functions/fmemopen.html
      Reviewed by:	cognet
      Approved by:	cognet
    • Konstantin Belousov's avatar
      Rework the handling of the children for the pthread_vfork_test. The · 9005607c
      Konstantin Belousov authored
      trivial handler for SIGCHLD is installed, and SIGCHLD is blocked, to
      not abandon our zombies to init(8). This way, the zombies are around
      slightly longer, allowing to actually exercise the logic for p_pwait
      use by the test.
      MFC after:	1 week
    • Konstantin Belousov's avatar
      The case of pid == WAIT_MYPGRP for the kern_wait() is already handled · 538375d4
      Konstantin Belousov authored
      in kern_wait6(), which is called by kern_wait().  Remove the redundand
      check, introduced in r243136, and add a comment noting this, to make
      the code less confusing.
      The blank lines are added to properly delineate the scope of the
      preceeding comments.
      Noted by:	"Jukka A. Ukkonen" <jau@iki.fi>
      MFC after:	1 week
    • Konstantin Belousov's avatar
      Rework the __vdso_* symbols attributes to only make the symbols weak, · 150facd2
      Konstantin Belousov authored
      but use normal references instead of weak.  This makes the statically
      linked binaries to use fast gettimeofday(2) by forcing the linker to
      resolve references and providing the neccessary functions.
      Reported by:	bde
      Tested by:	marius (sparc64)
      MFC after:	2 weeks
    • Konstantin Belousov's avatar
      Reduce default shift used to calculate the max frequency for the TSC · 82c3d173
      Konstantin Belousov authored
      timecounter to 1, and correspondingly increase the precision of the
      gettimeofday(2) and related functions in the default configuration.
      The motivation for the TSC-low timecounter, as described in the
      r222866, seems to provide a workaround for the non-serializing
      behaviour of the RDTSC on some Intel hardware.  Tests demonstrate that
      even with the pre-shift of 8, the cross-core non-monotonicity of the
      RDTSC is still observed reliably, e.g. on the Nehalems.  The r238755
      and r238973 implemented the proper fix for the issue.
      The pre-shift of 1 is applied to keep TSC not overflowing for the
      frequency of hardclock down to 2 sec/intr.  The pre-shift is made a
      tunable to allow the easy debugging of the issues users could see with
      the shift being too low.
      Reviewed by:	bde
      MFC after:	2 weeks
    • Hans Petter Selasky's avatar
    • Gabor Kovesdan's avatar
      - Fix typo · 2d329593
      Gabor Kovesdan authored
      Submitted by:	jkim
    • Hans Petter Selasky's avatar
      Add missing NULL pointer check. · 250fb892
      Hans Petter Selasky authored
      Reported by:	Lars Engels
      MFC after:	1 week
    • Neel Natu's avatar
      Add support for MSI-X interrupts in the virtio network device and make that · c9b4e987
      Neel Natu authored
      the default.
      The current behavior of advertising a single MSI vector can be requested by
      setting the environment variable "BHYVE_USE_MSI" to "true". The use of MSI
      is not compliant with the virtio specification and will be eventually phased
      Submitted by:	Gopakumar T
      Obtained from:	NetApp
    • Neel Natu's avatar
      Add emulation support for instruction "88/r: mov r/m8, r8". · 8faceb32
      Neel Natu authored
      This instruction moves a byte from a register to a memory location.
      Tested by: tycho nightingale at pluribusnetworks com
    • Sean Bruno's avatar
      Remove extra %s from debug statement that ends up crashing tftpd if · 663a6522
      Sean Bruno authored
      debug is set very high (like -d15 in my case).
      Obtained from:	Yahoo! Inc
      MFC after:      2 weeks
  2. 29 Jan, 2013 15 commits
  3. 28 Jan, 2013 11 commits