Commit Graph

96188 Commits

Author SHA1 Message Date
yamt 53d1c25e34 add some KASSERTs. 2008-08-11 02:46:40 +00:00
yamt ae231875d3 fix a comment. 2008-08-11 02:45:27 +00:00
yamt eee9e229a0 lf_setlock: g/c dead code. 2008-08-11 02:44:28 +00:00
yamt 6198e821cb sleepq_block: fix a bug to lose biglocks in the case of recursive calls.
this fixes pf rb-tree corruption on my box.
2008-08-11 02:36:25 +00:00
tsutsui 47f44b6ca7 Don't forget to unload TX dmamap on failure (in !MEC_TXSTAT_SUCCESS case). 2008-08-10 18:56:16 +00:00
tsutsui 9a7246342e In mec_intr() call mec_init() on errors for workaround. 2008-08-10 18:49:47 +00:00
tsutsui 8eb2877b11 - no need to set the TXCMD_TXINT bit against the last enqueued TX packet
because TX_EMPTY interrupt is enough to serve it on TX completion
- start TX right after each TX packet has been prepared

A quick ttcp(1) test shows ~5% improvements.
2008-08-10 18:43:55 +00:00
cube ac5c3a5a8a Accept filters are cool, but it's not a reason to select them twice. 2008-08-10 18:43:52 +00:00
tsutsui a856761fb4 Use while(cond){} instead of for(;;){if(!cond)break;}. 2008-08-10 16:21:28 +00:00
tsutsui df91c0f20b The last txdesc is now preserved, so also set IFF_OACTIVE properly. 2008-08-10 16:18:43 +00:00
tsutsui 0ba4793950 Specify PAGE_SIZE boundary for TX dmamaps.
mec(4) hardware may have the restriction.
2008-08-10 16:12:57 +00:00
tls fca9d633b9 Add accept filters to GENERIC kernels where they exist. 2008-08-10 15:31:20 +00:00
tls dba208aabd Change copyright statement to NetBSD 2-clause with correct attribution. 2008-08-10 14:07:41 +00:00
cegger 692c8bd822 - beggining -> beginning
- xenconscn_attach: ansify
- xenconscn_putc: KNF
2008-08-10 13:33:44 +00:00
martin 594e1c45dc Move __BEGIN_DECLS into the same ifdef as the __END_DECLS.
Reported by Arne H. Juul in PR lib/39331.
2008-08-10 10:19:19 +00:00
cegger 33caeffbb8 Add accept filters per request from port-xen:
http://mail-index.netbsd.org/port-xen/2008/08/10/msg004087.html

pseudo-device entries were copied from sys/arch/i386/conf/GENERIC, rev. 1.904
2008-08-10 08:53:29 +00:00
dogcow 3d76e13568 as dyoung points out, %zu for size_t - not %zd. 2008-08-09 13:52:05 +00:00
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