Commit Graph

87410 Commits

Author SHA1 Message Date
sekiya
1eb315b681 g/c unused file. 2007-04-17 12:29:06 +00:00
perseant
43d50ff956 Fix MP locking protocol violations introduced in my previous commit. 2007-04-17 06:49:40 +00:00
dyoung
4c03b53e43 In admsw_intr(), print any events we do not expect. 2007-04-17 03:33:48 +00:00
perseant
9be0ebd9da Install a new sysctl, vfs.lfs.ignore_lazy_sync, which causes LFS to ignore
the "smooth" syncer, as if vfs.sync.*delay = 0, but only for LFS.  The
default is "on", i.e., ignore lazy sync.

Reduce the amount of polling/busy-waiting done by lfs_putpages().  To
accomplish this, copied genfs_putpages() and modified it to indicate which
page it was that caused it to return with EDEADLK.  fsync()/fdatasync()
should no longer ever fail with EAGAIN, and should not consume huge
quantities of cpu.

Also, try to make dirops less likely to be written as the result of a
VOP_PUTPAGES(), while ensuring that they are written regularly.
2007-04-17 01:16:46 +00:00
macallan
2f13af2bed add a very simple driver for ADB button devices found on halfway recent
*Books. So far it only returns function key events.
2007-04-16 23:34:43 +00:00
macallan
9fbe2d39ef don't panic when someone presses the power button without powerd running 2007-04-16 23:33:10 +00:00
jmcneill
1fcc2e9929 Fix crime_intr so intr handlers registers w/ crime_intr_establish actually
get called. "seems more right to me" mrg@
2007-04-16 23:31:04 +00:00
ad
9e3116ecc8 Fix error in previous. 2007-04-16 19:25:04 +00:00
ad
10c8708a61 + x86/sysarch.h 2007-04-16 19:16:36 +00:00
ad
8aefa8aa0c Share the sysarch stuff between the x86 ports. PR kern/36046. 2007-04-16 19:12:17 +00:00
pooka
652606289c I'm not sure if I want to know what MNT_LAXY means, so I'll just
assume the comment has a tyop of MNT_LAZY.
2007-04-16 18:33:39 +00:00
ad
e315f29059 Fix crappy locking around LDT updates. i386 part of PR kern/36046. 2007-04-16 17:24:19 +00:00
christos
27db97ce3a As noted by uwe, we need to also save %edx because it can be used with
the regparm calling convention.
XXX: The c stub should be replaced with an assembly one.
2007-04-16 15:02:25 +00:00
pooka
5880c46d2d fix comment in previous 2007-04-16 14:09:53 +00:00
pooka
947c4b9f60 Allow to set non-blocking mode for transport fd even if the file
system is not yet mounted.
2007-04-16 14:09:00 +00:00
pooka
f2cea5c791 Sanity-check & possibly adjust number of hash buckets already before
returning the mount argument structure to userspace.
2007-04-16 13:54:07 +00:00
pooka
96fd5059d7 catch invalid size file handles already in the kernel 2007-04-16 13:24:35 +00:00
pooka
4ccbce8168 Give the file server the ability to specify the file handle length
instead of defining a static length file handle on the framework-level.
2007-04-16 13:03:26 +00:00
njoly
052dae8c13 Add PT_MACHDEP_STRINGS, for kdump output. 2007-04-16 12:22:26 +00:00
jmcneill
6f89ab967c Flush the write buffer as appropriate in the MACE case as we do in the
non-MACE cases. From sekiya@
2007-04-16 12:19:00 +00:00
tron
7899b34c32 Add support for Broadcom BCM5753 and Broadcom BCM5753M Gigabit Ethernet.
Patch supplied by Mustafa Dogan in PR kern/36139, confirmed to work
by Tonnerre Lombard on #NetBSD IRC channel.
2007-04-16 10:08:33 +00:00
enami
780e071921 Don't expand RCS id of ancestor file. The id itself is actually copied
from null_vnops.c since the log message of rev. 1.1 implies the copy.
2007-04-16 08:10:58 +00:00
dyoung
339f95c302 Make this compile with or without 'options ATADEBUG'. 2007-04-16 05:25:36 +00:00
chs
aba740b225 define a pager flag PGO_RECLAIM, similar to FSYNC_RECLAIM, and use it
to skip unnecessary flushing when layered file system vnodes are recycled.
this also prevents a deadlock with the dodgy LFS putpages routine.
fixes the non-LFS part of PR 36150.
2007-04-16 05:14:54 +00:00
christos
7df3bf9f10 save and restore %eax, %ecx, otherwise profiling does not work properly.
From Anon Ymous. Example program that fails:

	int
	main(int argc, char *argv[])
	{
		return argc;
	}
2007-04-16 03:49:52 +00:00
dogcow
6586d2040a fix build on arches with chars that're by default unsigned.
(patch supplied by martin.)
Forgot that iptest uses these files, rather than the one in src/dist/ipf.
2007-04-16 02:40:25 +00:00
macallan
4949af4d83 actually support WSDISPLAY_COMPAT_RAWKBD
unlike akbd we're sending ADB scancodes though, and don't try to translate
them into XT scancodes
2007-04-16 02:12:11 +00:00
macallan
d92688e114 more autoconfig cosmetics 2007-04-16 00:22:55 +00:00
macallan
b0c5f0da81 cleanup autoconfig output 2007-04-16 00:18:34 +00:00
macallan
27805ca303 on the iBook Fn-Command sends the same scancode as the power button on some
powerbooks so we'll listen to this scancode only on powerbooks
2007-04-16 00:16:43 +00:00
matt
f6c632db63 Add TURBOChannel machine-dependent include for VAX. 2007-04-15 23:27:02 +00:00
jmcneill
c1ee0b42d1 We don't support WSDISPLAYIO_[SG]VIDEO, so don't try to hide it. 2007-04-15 20:37:24 +00:00
matt
b3fb0316d2 Convert to cpufunc_* to struct initializers. 2007-04-15 20:29:21 +00:00
degroote
6997fa5f35 Choose the good default policy, depending of the adress family of the
desired policy
2007-04-15 14:17:12 +00:00
gdt
664f30be9e Stop doing vref of vnodes on open (and vrele on close); this makes no
sense.

Improve coda_inactive, turning commented out DIAGNOSTIC checks into printfs.

minor style/comment fixes.
2007-04-15 14:10:28 +00:00
njoly
47ae0ac9f2 Fix envsys ranges. 2007-04-15 13:03:20 +00:00
gdt
c27898729a In coda_{get,put}pages, drop and obtain v_uobj.vmobjlock rather than
v_interlock.  They are actually the same lock, but the former protects
the uvm object associated with the vnode, and the latter vnode
reference counts.   Explained to me by chs@.
2007-04-15 12:59:04 +00:00
gdt
6be5cb158f Based on suggestion from chs@, drop coda vnode interlock before
obtaining interlock on container vnode in coda_{get,put}pages.  This
is the only functional change in this commit.

Improve many comments.  In particular, note that the relationship
between VOP_OPEN and obtaining a container file (e.g. for getpages for
executables) is messy.

Add printfs for 'internal open' cases in coda_rdwr.  These have not
been triggered in my testing.  Note an apparent vref leak.
2007-04-15 12:45:39 +00:00
tnn
368b74aabf Correct envsys ranges. From njoly@ 2007-04-15 12:38:09 +00:00
martin
da6823c65c A few tweaks (no effect on NetBSD-current) to make syncing with upstream
easier.
2007-04-15 10:42:40 +00:00
dyoung
d60552baa5 Cosmetic: shorten a staircase. bzero -> memset. KNF. 2007-04-15 06:15:58 +00:00
yamt
2f6be2ad41 - soabort: don't leak a socket on error.
- add an assertion.
2007-04-15 05:25:48 +00:00
yamt
db7c239cd4 sys_accept: don't leak a socket on error. 2007-04-15 05:25:02 +00:00
yamt
bbf8203ac8 don't use the same number for SS_ISDISCONNECTED and SS_ISAPIPE. 2007-04-15 05:24:33 +00:00
jmcneill
69a102c0bb Disable the CRIME watchdog for now; looks like we can't keep up with it
under load. With this patch, my O2 is finally running stable.
2007-04-15 04:42:55 +00:00
dyoung
3ce5c94b0e In gre_clone_destroy(), free the route cache after calling if_detach(),
because if_detach() may cause us to transmit a packet, which
ordinarily entails reloading the route cache.  This fixes a bug
where the kernel would panic later in rtflush().  Thanks Michael
Earnhart for reporting the bug.

In gre_output(), do not leak mbufs.
2007-04-14 22:41:42 +00:00
jmcneill
ed55554c70 We don't use the RTC interrupt (yet), so mask it as well. 2007-04-14 20:57:55 +00:00
martin
8ebafcc992 Update IPFilter to version 4.1.19 2007-04-14 20:34:18 +00:00
macallan
aa2949fa77 add a callback to change the colour map
so now X with wsfb on top of genfb should look right
2007-04-14 19:56:05 +00:00
jmcneill
dd9aa16186 Disable count/compare timer interrupts, as NetBSD does not use these. 2007-04-14 19:36:46 +00:00