Commit Graph

191235 Commits

Author SHA1 Message Date
mjf e0e10b0607 Add __cacheline_aligned and __read_mostly annotations.
These annotations help to mitigate false sharing on multiprocessor
systems.

Variables annotated with __cacheline_aligned are placed into the
.data.cacheline_aligned section in the kernel. Each item in this
section is aligned on a cachline boundary - this avoids false
sharing. Highly contended global locks are a good candidate for
__cacheline_aligned annotation.

Variables annotated with __read_mostly are packed together tightly
into a .data.read_mostly section in the kernel. The idea here is that
we can pack infrequently modified data items into a cacheline and
avoid having to purge the cache, which would happen if read mostly
data and write mostly data shared a cachline. Initialisation variables
are a prime candiate for __read_mostly annotations.
2010-06-01 22:13:30 +00:00
joerg 9d6b8287eb Update to mdocml-1.10.0 2010-06-01 21:32:39 +00:00
joerg ab554970cf Merge mdocml-1.10.0 2010-06-01 21:27:23 +00:00
joerg 0a84adc561 Import mdocml-1.10.0:
- basic support for the low-level roff macros
- various cleanups and improvements
2010-06-01 21:17:49 +00:00
wiz 7163aafc26 Fix typo in sdpd, reported by Jukka Salmi in PR 43401.
This also affected bthcid, so I also fixed it there.
2010-06-01 21:08:13 +00:00
pooka e3c273abc1 Don't pass "canfail" down to rumpuser_malloc -- there's quite little
we can do with that info way down there.  Instead, pass alignment.
Implement rumpuser_malloc() with posix_memalign().
2010-06-01 20:11:33 +00:00
plunky 6d4cc93fdf adjust autoconfig output: this item is part of a verbose line 2010-06-01 19:20:43 +00:00
pooka 89600f9afb Always use rumpuser_malloc() for allocating both poolpage and
poolpage_cache -- its bootstrap cost is slightly higher than
anonmmap, but it's faster in the long run.
2010-06-01 19:18:20 +00:00
christos cbd798c94b tidy up memory allocation and don't unnecessarily print "./" before names. 2010-06-01 18:20:26 +00:00
tnozaki d8217122b9 refactoring old locale-db(BSDCTYPE) loading method with mmap(2). 2010-06-01 18:00:28 +00:00
tnozaki 9a35d7972b more split ctype.h -> sys/ctype_inline.h, sys/ctype_bits.h 2010-06-01 13:52:07 +00:00
wiz 5f6c2c6a0f Use .An. 2010-06-01 11:34:02 +00:00
pooka 6a58bb3a83 * remove rumpvm_makepage, just use uvm_pagealloc()
* update copyright to reflect reality a little better
2010-06-01 10:29:21 +00:00
skrll 60417a4357 Add a man page for the hp700 lcd(4) driver. 2010-06-01 10:24:14 +00:00
skrll 57e5de8837 Add the lcd(4) driver from OpenBSD. Thanks to Adam Hoka for doing most of
the work.
2010-06-01 10:20:28 +00:00
plunky 08432b7b14 handle STDC and GNUC inline semantic differences by providing and
using an EXTERN_INLINE definition for functions that are defined as
inline but provide an externally callable reference.

(these are externally called in ipftest)
2010-06-01 08:53:20 +00:00
plunky bdbcfb0d2d later versions of pcc may define __GNUC__ for compatibility reasons, so
having a system definition for alloca is counter productive as it seems
fairly common to use

    #ifdef __GNUC__
    #define alloca ..
    #endif

in user-headers (eg see usr.sbin/gspa/gspa/gspa_ass.h)

So, defang this definition as we don't otherwise provide alloca on NetBSD
2010-06-01 08:42:56 +00:00
agc c1b0e8cc6b avoid another compiler warning 2010-06-01 06:07:56 +00:00
agc b74565db46 remove an unused variable 2010-06-01 06:01:29 +00:00
agc 2ecd1d0a69 Update netpgp to 3.99.3
Changes since 3.99.2:
+ avoid possible free() of new value passed to netpgp_setvar(),
  with thanks to Anon Ymous.
+ netpgpkeys(1):  print keys to stdout, not stderr - reported by Anon
  Ymous.
+ fix DSA signatures and verification
+ simplify and shorten the internals of packet processing by getting rid of
  the intermediate pseudo-abstraction layer, which detracted from understanding
  and had no benefit whatsoever. Rename some enums and some definitions.
+ add some checking to new key generation, and don't try to read in
  the keys after writing them - reported by Tyler Retzlaff
2010-06-01 05:55:55 +00:00
mrg 34209de0b7 USETBL=yes. several of these manuals need it. from PR#36600. 2010-06-01 05:26:51 +00:00
agc 0e3d0b8191 make sure we have created a directory when generating a new key.
don't try to re-read the key after writing it - that's done by a separate
function. Problem found by Tyler Retzlaff, fixed in a different way.

check that keyrings are non-NULL before attempting to free them - from a
nudge by Tyler Retzlaff.
2010-06-01 05:22:38 +00:00
agc 9fc2904ac1 when cleaning up, don't try to free the public key which is part of the
secret key - shown up by Mac OS X malloc.
2010-06-01 03:19:26 +00:00
mrg c47694a416 enable the drm drivers; they've been tested for ages and have been
enabled on amd64 for some months now.  as requested in PR#42936.
2010-06-01 02:40:13 +00:00
pooka 999c22b60a need bsd.own.mk to avoid the "NETBSDSRCDIR is nothing" syndrome 2010-05-31 23:53:02 +00:00
pooka 0854573c60 hmm, using unifdef for the previous might have been a good idea ... 2010-05-31 23:51:28 +00:00
pooka 104b695ac0 Now that atf gdb/coredump conflicts have been solved (thanks jmmv!),
remove USE_ATF ifdefs.
2010-05-31 23:44:54 +00:00
pooka f9a4d4c3ab new tests 2010-05-31 23:37:52 +00:00
pooka 9b9ff1afec add tests for:
* threading
 * tsleep variants
 * uvm page busying and wanting
2010-05-31 23:36:12 +00:00
pooka 9a7330494a Add some kernel namespace (i.e. _KERNEL) helpers for regression tests. 2010-05-31 23:32:50 +00:00
pooka a590bfb92a Support mtsleep() without a biglocked sleeper (uvm uses this in
UVM_UNLOCK_AND_WAIT())
2010-05-31 23:18:33 +00:00
pooka 977a0ef122 Dump rump kernel bootstrap time. 2010-05-31 23:13:17 +00:00
pooka 9970bb9e64 Support KTHREAD_JOINABLE/kthread_join(). Also fixes earlier bug
where all pthreads were created non-detached.
2010-05-31 23:09:29 +00:00
pooka 7210d18f43 The x86 kernel ABI depends on __cpu_simple_lock stuff being present.
Since they are practically never used (only when prehistoric code
uses simple_lock()), their efficiency doesn't matter that much and
we can simply adapt the versions from x86 lock.h.
2010-05-31 22:31:07 +00:00
pgoyette 6c40070d66 Extract ACPIVERBOSE into a kernel module. The module can be builtin
by defining 'options ACPIVERBOSE' in the kernel config file (no change
from current behavior), or it can be loaded at boot time on those
architectures that support the boot loader's "load" command.

ACPIVERBOSE also includes code to dump acpi/wmi data.
2010-05-31 20:32:28 +00:00
skrll 021c21e26b Fix previous. 2010-05-31 20:19:33 +00:00
jruoho 5b0c19905b Silently return if a power state transition is requested for a device that
has no support for it. For example, in Kurt Schreiner's Shuttle G61:

        Device (FAN)
        {
            Name (_HID, EisaId ("PNP0C0B"))
            Method (_INI, 0, NotSerialized)
            {
                Store (TP1H, CTOS)
                Store (TP1L, CTHY)
            }
        }

Obviously acpitz(4) has little use for a device that only contains _INI.
(The handle of this device is referenced incorrectly in _AL0.)
2010-05-31 20:10:56 +00:00
skrll f641a16f39 Pull change across from OpenBSD:
Make single stepping a system call work.  Instead of single stepping
through the syscall gateway page, which doesn't work since that page is
shared between process, this makes us step over that bit by setting a
breakpoint on the instruction where the system call returns.
2010-05-31 19:40:21 +00:00
wiz afb897ff04 Comment out reference to runway(4) until we have it. 2010-05-31 18:43:52 +00:00
wiz e9fdf3b055 Remove trailing space. 2010-05-31 18:43:00 +00:00
rmind c0c9bed8ab Fix previous, so it builds on some ports. 2010-05-31 18:14:59 +00:00
plunky 31555cd112 fix up autoconfig output 2010-05-31 17:41:24 +00:00
uebayasi 0abf7dce8b uebayasi-xip: Add share/man/man9. 2010-05-31 15:01:09 +00:00
pgoyette fcce6bd41f Add new hp700 man pages. Hi, Nick! 2010-05-31 14:46:22 +00:00
njoly 7d9c448d51 Consistently use `.Brq Dv XXX' across syscalls man pages, for NAME_MAX
and PATH_MAX.
2010-05-31 12:16:20 +00:00
drochner 5170f0046a another POSIX compliance fix: sigwait(3) should not use errno but
return the error code directly
2010-05-31 11:02:24 +00:00
skrll 91854841fe Add and install an astro(4) man page. 2010-05-31 09:46:25 +00:00
skrll e73698242d Install the elroy(4) man page. 2010-05-31 09:44:15 +00:00
skrll 0282740042 Grammar. Whitespace. 2010-05-31 09:42:48 +00:00
skrll 4766a4a24b Add an ssio(4) man page. From OpenBSD. 2010-05-31 09:38:57 +00:00