reinoud
b887c39003
Remove the need for the kernel option UDF_READWRITE to be able to write to
...
discs since writing is mature enough.
2008-08-08 18:25:56 +00:00
skrll
9a6d9381d2
Improve a comment.
2008-08-08 17:23:19 +00:00
skrll
3ceaf8f8e4
Make "show uvmhist" available to all arches (not just sparc*) in ddb.
2008-08-08 17:09:28 +00:00
skrll
e7901782b3
Comment whitespace.
2008-08-08 16:58:01 +00:00
christos
f6e1114503
Fix broken setitimer(). (Sverre Froyen)
2008-08-08 16:44:52 +00:00
bjs
91b72f6613
'if (error = 0)' -> 'if (error == 0)'
2008-08-08 16:21:44 +00:00
tsutsui
4578c8e434
Misc cosmetics:
...
- some KNF and ANSIfy
- use uintNN_t types
- remove a redundant declaration
- use __func__ to print a function name
- use PRIu64 to print uint64_t
- wrap long lines
2008-08-08 16:05:47 +00:00
tsutsui
42d0c1b9d0
Bump BOOTINFO_MAGIC to prevent old kernels (including netbsd-4) crashing
...
when bootinfo data is passed from newer bootloaders.
Note old bootloaders can still load newer kernels.
2008-08-08 15:07:52 +00:00
skrll
d25ea6c235
g/c exec_map
2008-08-08 14:41:50 +00:00
pooka
96a0d293a7
Don't create a new proc structure for kthreads (pid == 0).
...
XXX: this routine should probably do better accounting and consistency
checks as well.
2008-08-08 14:40:07 +00:00
martin
3c5d438020
Apply patch from Yasuoka Masahiko in PR kern/39321: fix length check
...
when parsing pppoe discovery phase packets.
2008-08-08 14:31:00 +00:00
hauke
9588641dc1
No WAPBL (ffs journaling) for memory-strapped machines.
2008-08-08 13:59:24 +00:00
pooka
0fca7fa92c
minor nit: fix header #ifndef namespacing
2008-08-08 13:57:59 +00:00
pooka
3ad5d8db21
KASSERT works better with == instead of =
2008-08-08 13:02:10 +00:00
hannken
b05e82aae1
Make the console on com0 detection work again.
2008-08-08 09:50:19 +00:00
simonb
c86b901a9e
Don't run off the end of the bootconf.desc[] array when printing out
...
the boot menu choices. Fixes problems with funny display when MAXMENU
or more "menu" items are in /boot.cfg.
2008-08-08 07:48:32 +00:00
uebayasi
714c16bc3e
ttywrite: g/c an unused variable (cnt).
2008-08-08 07:18:03 +00:00
hannken
e553a8ce92
Remove an unneeded include to make it compile again.
2008-08-08 06:29:21 +00:00
dogcow
1b552055c3
%d -> %zd for size_t
2008-08-08 06:26:58 +00:00
dogcow
8b3b4956d6
fix "warning: 'npv' may be used uninitialized in this function"
2008-08-08 06:21:09 +00:00
pooka
a1e2d21c3e
pg->flags &= PG_CLEAN --> &= ~PG_CLEAN;
...
Fixes at least writing to the fs for msdosfs.
2008-08-07 21:02:29 +00:00
plunky
772d60cfb9
convert some [left behind] compat code to use new sockopt API
2008-08-07 20:15:32 +00:00
reinoud
c3d5fdb471
Don't panic on read-errors but set flag that the packet is doomed. Its not
...
clear if i could read the individual sectors correctly since the entire
read packet is also one big ECC block.
2008-08-07 15:54:12 +00:00
tsutsui
c1e7fb3d43
Comment out options MACE_NEEDS_DELAYS.
...
Fixed mec(4) driver will (hopefully) work without it.
2008-08-07 15:14:40 +00:00
tsutsui
792cb95ad3
- check TX_RING pointer in MEC_INT_STATUS in mec_rxintr() (from OpenBSD)
...
- preserve the last TX descriptor to avoid wraparound (as per Linux driver)
- check IFQ_IS_EMPTY() on calling mec_start() in mec_intr()
- clear IFF_OACTIVE only if a number of descriptors are freed in mec_txintr()
Seems to fix mec(4) hangup problem (and silent reboot by crime watchdog)
on heavy load. Tested by martin@ and Jorge Acereda Macia on port-sgimips.
(though Jorge still has some problem, but this should have fixed one issue)
2008-08-07 15:05:02 +00:00
tsutsui
a311d7b2e9
In crime_attach(), call crime_watchdog_disable() rather than
...
writing zero to the CRIME registers implicitly.
2008-08-07 14:44:29 +00:00
tsutsui
e1beb9f83b
Fix a typo so that the crimedog is actually shut up.
2008-08-07 14:36:49 +00:00
pooka
3d8b145f98
some more todo points
2008-08-07 11:15:20 +00:00
skrll
371a852414
memcpy'ing a sleepq (TAILQ) doesn't work.
...
Re-init the condvar after memcpy'ing so that the TAILQ is valid.
regress/sys/kern/lockf now completes rather than failing in cv_wait_sig
with KASSERT(cv_has_waiters()).
2008-08-07 07:42:06 +00:00
cegger
bbae282081
make this compile as proposed by dholland@
2008-08-07 06:20:14 +00:00
matt
8f5842cc04
Use IF32_bits instead of I32_bit | F32_bit
2008-08-07 04:18:21 +00:00
matt
a960a1f973
Commit missing part of __HAVE_FAST_SOFTINTS support.
2008-08-07 04:17:25 +00:00
matt
8ce4fe62cc
Remove unneeded cast.
2008-08-07 04:16:26 +00:00
matt
188b29fdf8
Now that pmap allocates ncolors for memhook, use them to properly memory.
2008-08-07 04:15:52 +00:00
matt
d80307c31b
Only call dosoftints() is ci_intr_depth == 0
2008-08-07 04:11:07 +00:00
matt
196a1048f5
Enable __HAVE_FAST_SOFTINTS
2008-08-07 03:59:49 +00:00
matt
e2da7ceb83
Do fast softint processing in DO_AST_AND_RESTORE_ALIGNMENT_FAULTS.
...
Redo the softint mask so ci_softints >> ci_cpl != 0 becomes an easy
test for work to be done.
2008-08-07 03:58:15 +00:00
matt
13d044e16f
Pages mapped by debug_malloc are PMAP_KMPAGE so tell the pmap that.
2008-08-07 01:40:21 +00:00
oster
328f49787a
Define UFS_WAPBL_UNREGISTER_INODE() and UFS_WAPBL_REGISTER_INODE()
...
to something that pacifies the compiler in the non-WAPBL case.
Fix suggested by Martin Husemann. Fixes PR#39302.
2008-08-06 21:18:59 +00:00
matt
baab10840a
Change pv_entries to use SLIST.
...
For VIPT caches, keep track of when pages are dirty so that their content
can be flushed back to main memory. This is done when the page is
read-only mapped by more than 1 color. Pages become when either their
modified bit gets set or an unmanaged writeable page is mapped. When
a page in unmapped or changed to read-only, run pmap_vac_me_harder in
case the page can be mapped read-only.
Thanks are given to Imre Deak for giving me the idea to assert for PVF_DIRTY.
2008-08-06 19:13:45 +00:00
matt
04ddff9cc7
Define IF32_bits as the union of I32_bit|F32_bit
2008-08-06 19:06:40 +00:00
matt
c331e46238
Add support for missing _SC_* constants for sysconf().
...
From andy dot shevchenko at gmail dot com
2008-08-06 17:17:03 +00:00
drochner
4e69f53b47
remove a KASSERT which is wrong since audio(4)'s device/softc were split
2008-08-06 16:31:15 +00:00
martin
80d96333fc
Remove a few components of struct lwp that we do not touch any more.
2008-08-06 16:12:59 +00:00
dyoung
2b1e3ce6be
Identify the O2 Micro OZ711E0 and treat it the same as all of the
...
other O2 Micro bridges, which seem to spuriously report bus errors
if parity-error detection is enabled.
2008-08-06 15:50:46 +00:00
martin
8093db04c6
We need socketvar.h now for struct sockopt.
2008-08-06 15:36:20 +00:00
dyoung
4738cebcdd
Regen.
2008-08-06 15:17:05 +00:00
dyoung
711281588b
Define O2 Micro OZ711E0. From OpenBSD.
2008-08-06 15:14:21 +00:00
plunky
fd7356a917
Convert socket options code to use a sockopt structure
...
instead of laying everything into an mbuf.
approved by core
2008-08-06 15:01:23 +00:00
reinoud
a287d23dee
Rewrite allocation scheme's determination and implementation replacing the
...
old somewhat naive selection scheme that didn't allow different allocation
settings for nodes, directory information (FIDs) and data.
Also fix some curious side-effects of atime updates on RMW devices.
2008-08-06 13:41:12 +00:00