Commit Graph

175237 Commits

Author SHA1 Message Date
pooka 74f93b9804 Bring in vnode.h
Why is this file still installed to /usr/include?
2008-11-19 13:34:11 +00:00
ad 3ac4bd5b0e Fix sloppy device_private conversion by cegger@ that prevented systems
with IPMI from booting for the last two weeks.
2008-11-19 13:12:05 +00:00
njoly 2b470c165e Regen for futex timeout argument cleanup/fix. 2008-11-19 13:11:15 +00:00
njoly 377975c175 futex(2) timeout argument cleanup/fix.
- Use `struct linux_timespec', converted to native structure.
- Ensure that provided values are correct.
- Replace timeval+tvtohz by tstohz.
2008-11-19 13:09:19 +00:00
ad 950585e9b4 module_autoload: disallow path seperators and magic symlinks. 2008-11-19 13:07:42 +00:00
ad 5bf641af07 For the x86 boot loader, autoload a kernel module corresponding to the
root file system type.
2008-11-19 12:36:41 +00:00
ad 20514c29be +evcnt_detach 2008-11-19 12:20:40 +00:00
ad caa33dc264 Unused header. 2008-11-19 11:08:06 +00:00
rmind cdaedad50c cpu_identify: check ID against number of processors.
Fix for PR/39955.
2008-11-19 11:05:40 +00:00
pooka 12f42819da include <sys/fstypes.h> 2008-11-19 10:37:27 +00:00
matt fcf3768443 Use <sys/atomic.h> not <machine/atomic.h>
Cleanup some code which is not used in case it is un-ifdef'ed.
2008-11-19 06:41:01 +00:00
matt 373f77bd8f This is not longer needed since atomic_{set|clear}_bit are now dead.
So temporarily this has no contents.
2008-11-19 06:39:17 +00:00
matt 8856d1852f Don't use atomic_{set,clear}_bit nor any atomic op. These used to wrap
atomic_{clear,set}_bit around munging a device register and that is clearly
wrong.  Instead directly manipulate the CPSR to disable interrupts.
2008-11-19 06:37:51 +00:00
matt ca9e0ec672 Don't include <machine/atomic.h> anymore. 2008-11-19 06:35:55 +00:00
matt 0636d20817 Use IF32_bits instead of I32_bit. Only disable/irq is __HAVE_UNNESTED_IRQS
is undefined.
2008-11-19 06:34:21 +00:00
matt 50c00f2f34 Conditionalize the KERN_SA bits. 2008-11-19 06:32:58 +00:00
matt b5d5808a7e Use IF32_bits instead of I32_bit 2008-11-19 06:32:10 +00:00
matt 4a376098d8 No need to include <machine/atomic.h> 2008-11-19 06:30:49 +00:00
matt c3660f1d76 Add some KASSERTS and tests for I32_bit to include F32_bit 2008-11-19 06:29:48 +00:00
matt 28a551c932 Use <sys/atomic.h>, not <machine/atomic.h> 2008-11-19 06:28:14 +00:00
matt 4b24ff1776 Don't include <machine/atomic.h> since it's not used. 2008-11-19 06:26:27 +00:00
matt d990f57db0 Allocate /dev/mem's page in pmap_init. Mark /dev/mem as MPSAFE. Ansify. 2008-11-19 06:24:04 +00:00
matt 0f72c05456 Fix __HAVE_FAST_SOFTINTS (boolean dyslexia strikes again).
Add some KASSERTS to make sure assumptions are valid.
2008-11-19 06:22:15 +00:00
snj f5307d8be7 Fix a typo in an Xref to apropos. 2008-11-19 00:56:53 +00:00
snj fbd92dfb9a Fix a spelling error. 2008-11-19 00:56:38 +00:00
hans 25fbe84db2 remove unused definition of DEFAULT_CONFIG_FILE. OK by cube. 2008-11-18 22:31:35 +00:00
joerg 412427525e Decouple journal operation from replay header by copying the interesting
fields into wapbl_replay as opposed to embedding wapbl_wc_header.
2008-11-18 22:21:48 +00:00
ad 0dd26b0a07 Put mremap into the _NETBSD_SOURCE section. 2008-11-18 22:13:49 +00:00
macallan a223e59eb6 don't leak kmem on LP64 2008-11-18 21:20:32 +00:00
joerg 5658187923 #if 0 wapbl_replay_verify. 2008-11-18 19:31:35 +00:00
joerg 2e2e65b3b8 Check for NULL before calling free as the kernel free doesn't handle it. 2008-11-18 18:54:39 +00:00
cliff 82f0028b4e fix botched LKM edits 2008-11-18 18:20:10 +00:00
cube ee7580cdcd Split the list of files off Makefile. libmesa.mk will be used later for
DRI modules.
2008-11-18 17:03:58 +00:00
matt 2c14b3c725 Regen. 2008-11-18 16:12:21 +00:00
matt b0c5679ab1 Make more consistent (change capitalization) etc. Shrinks by 33 tokens
and 300 bytes.
2008-11-18 16:12:03 +00:00
wiz cc64f2edab Use Nm instead of Xr to itself, remove reference to uucp(1), fix casing
of Kerberos.
2008-11-18 15:52:57 +00:00
njoly d64736c6b8 noisy printf. 2008-11-18 15:25:13 +00:00
matt 4a0de1478c Add an atomic_cas_8 which uses ldrex/strex. 2008-11-18 15:22:56 +00:00
ad 54ef467580 _KERNEL_OPT 2008-11-18 14:29:55 +00:00
joerg fb6f7962ff Make uuidgen available for the kernel. 2008-11-18 14:01:03 +00:00
joerg a3925622e1 Rename wapbl_replay_prescan to wapbl_replay_process. 2008-11-18 13:29:34 +00:00
chris 0903aecdd9 lkm1, lkm2 and lkm3 are now obsolete and don't exist in the source tree,
so remove the references to them from postinstall.
2008-11-18 13:14:12 +00:00
pooka 7fca80b0ff note rumpnet 2008-11-18 13:08:34 +00:00
reed 28e6e6718a Add more details for copyright and welcome. 2008-11-18 13:04:04 +00:00
reed 3e3e695194 Reference login.conf. 2008-11-18 13:02:51 +00:00
pooka 9e46e516a7 Move fd_closeexec() and fd_checkstd() from kern_descrip to their
own file, subr_exec_fd.c (they're used only by exec).

After this change, the kernel source modules are in a partitioned
enough state to allow building a system without vfs at all.
2008-11-18 13:01:41 +00:00
darran d6a1889de6 Fix a race condition in opencrypto where the crypto request could be
completed by the crypto device, queued on the retq, but freed by the
ioctl lwp.  The problem manifests as various panics relating to the
condvar inside the request. The problem can occur whenever the crypto
device completes the request immediately and the ioctl skips the cv_wait().

The problem can be reproduced by enabling cryptosoft and running an openssl
speed test. E.g.
    sysctl -w kern.cryptodevallowsoft=-1
    openssl speed -engine cryptodev -evp des-ede3-cbc -multi 64

Add a macro for TAILQ_FOREACH_REVERSE_SAFE() to queue.h, since this
was missing and the opencrypto code removes requests from a list while
iterating with TAILQ_FOREACH_REVERSE().

Add missing cv_destroy() calls for the key request cleanup.

Reviewed by Thor Lancelot Simon.
2008-11-18 12:59:58 +00:00
pooka 72b66cb31e Pass biodone() to rumpuser as a callback instead of hardcoding it.
Also, explicitly init rumpuser async io thread.
2008-11-18 12:39:35 +00:00
ad 2bae5b390e Some modules may want to avoid autounload because their use is transient.
Their FINI routine may legitimately succeed even though the module is likely
to be used soon again, for example: exec_script. Add a MODULE_CMD_AUTOUNLOAD
to query whether a module wants to avoid autounload.
2008-11-18 11:56:09 +00:00
ad f94a8f9142 - Put modules that depend on others at the head of the queue so autounload
can unload requisite modules with only one pass.

- If loading a requisite module, scan the global queue before checking the
  file system to see if it exists.  If it's already present we don't care.
2008-11-18 11:39:41 +00:00