Commit Graph

175423 Commits

Author SHA1 Message Date
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
joerg
355e64e949 Refact wapbl_replay_prescan to use a function for each WAPBL record.
Merge wapbl_replay_get_inodes into wapbl_replay_prescan. Change the
logic to determine the head: It doesn't make sense to update it if the
last inode record seen was not the beginning of the journal, as the
beginning of the journal might not be 0, so always update inodeshead.
2008-11-18 11:37:37 +00:00
pooka
48d146fba6 cwd is logically a vfs concept, so take it out from the bosom of
kern_descrip and into vfs_cwd.  No functional change.
2008-11-18 11:36:58 +00:00
ad
5d185a94b0 ramdisk.kmod -> miniroot.kmod 2008-11-18 11:13:00 +00:00
jnemeth
cc34b6178d PR/39947 - Juan RP -- dbcool_detach implicitly called
sysmon_envsys_destroy() twice
2008-11-18 10:49:45 +00:00
nonaka
df1a68c144 enable _DEV_ZERO_oARM case, when only COMPAT_16 defined. 2008-11-18 09:52:43 +00:00
cegger
db189eeadc SATA GEN3 speed is 6.0Gb/s 2008-11-18 09:52:10 +00:00
chris
d1214474bc Fix Yukon EC Ultra cold power up issue.
For the EC Ultra it is necessary to update some extra registers during
reset.  Without doing so causes the system to hang at boot.  The only
workaround I found was to PXE boot before booting into NetBSD.

This change is based on the code from FreeBSD's if_msk.c.  Specifically the
msk_phy_power function.

Also add an splnet/splx across mii_tick.  This matches most other network
drivers.

Change posted for review on 3rd Oct 2008 to tech-net.  No feedback
received.
2008-11-18 09:30:43 +00:00
cliff
17a4a4425b fix "adapted from" (iq31244) and remove iq31244-specific jumper comment 2008-11-17 23:51:30 +00:00
matt
bcb2caec0b Regen. 2008-11-17 23:35:24 +00:00
matt
eadd097264 Store pcidevs in a more compact manner. Instead of many string with duplicate
words, store each word individual in a long string and then store offsets
in the string to that word.  This reduces the space needed by half.
2008-11-17 23:33:41 +00:00
joerg
a5be52d405 On resum-from-RAM explicitly restore PCI link device state before
reenabling interrupts. At least one BIOS doesn't do this automatically
as reported by Christoph Egger.
2008-11-17 23:29:49 +00:00
joerg
c42112239b In wapbl_replay_write just iterate over the hash table and not the
transactions. The initial prescan has already sorted out what blocks are
in the journal and removed any revoced blocks, so the hash table is
authorative.
2008-11-17 22:08:09 +00:00
bouyer
5a45b84ca9 If we return an error make sure we don't return a b_resid of 0; or this
will trigger a KASSERT in physio_done(). Fix issue reported by Todd Kover
on tech-kern@
2008-11-17 21:19:03 +00:00
abs
b8208ff6ae Fix atari sysinst based miniroot image, and retire old (unreferenced)
miniroot.
2008-11-17 20:14:35 +00:00