Commit Graph

70995 Commits

Author SHA1 Message Date
bouyer
02bbaa62b0 default_chip_map(): We can't use pciide_mapchan() here, because
pciide_mapchan() will attach an atabus, and we don't know yet if this
channel is enabled or not.
Fix kern/25455 by Dave Huang.
2004-05-05 17:56:14 +00:00
cube
57d44e1cee In NetBSD, if_init() expects a struct ifnet, not the softc. 2004-05-05 16:10:29 +00:00
kochi
2cb143dddf Fix parameters for PPB_INTERRUPT_SWIZZLE macro.
The macro expects pin = 1..4 while previously passing 0..3.
2004-05-05 14:08:24 +00:00
yamt
1b03fa5302 uvm_page_unbusy: add assertions and comments about PG_RELEASED anon pages. 2004-05-05 11:58:27 +00:00
yamt
8368dac6a2 fix a amap_wirerange deadlock problem by re-introducing
PG_RELEASED for anon pages.  PR/23171 from Christian Limpach.
for details, see discussion filed in the PR database.

uvm_anon_release: a new function to free anon-owned PG_RELEASED page.
uvm_anfree: we can't wait for the page here because the caller might hold
	amap lock.  instead, just mark the page as PG_RELEASED.
	who unbusy the page should check the PG_RELEASED.
uvm_aio_aiodone: uvm_anon_release() instead of uvm_page_unbusy()
	if appropriate.
uvmfault_anonget: check PG_RELEASED.
2004-05-05 11:54:32 +00:00
yamt
bd712164d0 ubc_release: grab uobj's vmobjlock when calling uvm_page_unbusy(). 2004-05-05 11:35:40 +00:00
kochi
6901f11fba Fix comment (mp_nbusses -> mp_nbus) 2004-05-05 04:51:28 +00:00
pk
b2260877bf proc_reparent() must be called with proclist write lock held. Make it so. 2004-05-04 21:58:47 +00:00
pk
2fb3dac280 Since a vmspace' always includes a vm_map' we can re-use vm_map's
reference count lock to also protect the vmspace's reference count.
2004-05-04 21:33:40 +00:00
pk
3ec3f724be crcopy: no need to lock if we're only reading the structure's reference count. 2004-05-04 21:27:28 +00:00
pk
f3f1104ed8 Change sigactsfree() to take a `struct sigacts' pointer, to fit the needs
of exit1 (its only client).
2004-05-04 21:25:47 +00:00
pk
d190ac352d exit1: if !BIGLOCK, once the exiting process has been placed on the zombie
list and the proclist lock is released, we shouldn't touch the process
structure anymore, since it may be collected immediately by a waiting
parent.
2004-05-04 21:23:39 +00:00
pk
0ba9b6aa91 `uvmexp.swtch++' is already done in exit1(). 2004-05-04 15:48:45 +00:00
pk
b3d526b501 Fix incorrect diagnostic. 2004-05-04 15:34:37 +00:00
jrf
e3a43961ff Remove caddr_t inlines. Approved by christos@NetBSD.org. 2004-05-04 13:26:58 +00:00
skd
1b1b474faa Fix to update all references to mbuf. Fixes case where mbuf is freed twice. 2004-05-04 11:31:52 +00:00
bouyer
aaf27601c3 When using LBA48, use Flush cache extended command if supported.
From Christos Zoulas in PR 25366, with minor adjustements from me.
2004-05-03 20:11:40 +00:00
petrov
1ac4411c10 Revert default uvm counters, rename UVMMAP_COUNTERS to UVMMAP_NOCOUNTERS. 2004-05-03 20:10:35 +00:00
lukem
191597b042 move machdep.est.cpu_brand to machdep.cpu_brand 2004-05-03 16:38:28 +00:00
kochi
be02821555 use M_ZERO for malloc 2004-05-03 14:02:56 +00:00
martin
efe61cce0d Fix a comment.
Approved by Andrew Brown.
2004-05-03 13:39:50 +00:00
pk
4b19351352 On reset, clear state flags and the msgout queue and notify the upper layer. 2004-05-03 12:25:34 +00:00
toshii
46c8f26134 #include acpi.h and some others to be able to powerdown via acpi. 2004-05-03 08:59:38 +00:00
kochi
e48192f908 Add sysmon pswitch hook so that powerd(8) can monitor
AC adapter online/offline events.
2004-05-03 07:44:36 +00:00
kochi
1bc204dbcc Add AC adapter event type. 2004-05-03 07:43:37 +00:00
kochi
733128d2c6 Add event type for AC adapter. 2004-05-03 07:41:47 +00:00
kochi
b616cd6b52 don't use large stuff on stack.
(char devinfo[256] -> char *devinfo)
2004-05-03 07:08:46 +00:00
cl
2745d2d566 add missing break 2004-05-02 20:38:35 +00:00
martin
9c57555f1b When calculating the allocated symbol table size, round up the section
sizes with ELF_ALIGN().
Fixes PR port-sparc64/25429.
2004-05-02 19:45:55 +00:00
tls
cd2ebe9f3f Revert ISP2100 firmware to Qlogic revision 1.19.16 (the version that shipped
with NetBSD 1.5).  With all newer versions available to us, we have seen
some adapters crash -- and fail to respond to reset -- under certain heavy
load conditions.  This version appears stable under heavy load with the
current driver on multiple systems on which we can reproduce the failure
with newer versions.
2004-05-02 19:07:04 +00:00
pk
9b96c17df2 Make uvm_uarea_free an inline function. 2004-05-02 13:04:57 +00:00
pk
7d0afa7f41 Add mutex to protect the ucred reference counter. 2004-05-02 12:36:55 +00:00
pk
4a04452106 Use crdup(), instead of crget()+memcpy(). 2004-05-02 12:32:22 +00:00
pk
2834786715 Add a mutex for mount point I/O and wait counters (i.e. the `mnt_wcnt',
`mnt_writeopcountupper' and `mnt_writeopcountlower' members).
2004-05-02 12:21:02 +00:00
pk
5c36071518 cache_enter: concurrent lookups in the same directory may race for a
cache entry. Upon detection, free our tentative entry and return.
2004-05-02 12:00:34 +00:00
pk
1af1129600 The cpu_exit() detour is no longer necessary. 2004-05-02 11:22:06 +00:00
pk
1bc2407362 sys_access: use crdup(). 2004-05-02 11:13:29 +00:00
ragge
ee27da2673 Fix bug that were introduced together with the merge of nathanw_sa:
SCSI on VS2k/VS3100 stopped working.  Spotted and fixed by Anders Hjalmarsson.
This fixes PR#25307.
2004-05-02 08:16:52 +00:00
wiz
8cd26a6026 Fix typo in error message, reported by Piotr Meyer in PR 25418. 2004-05-02 06:59:20 +00:00
darrenr
39ee9f396a at line 543, we do a pullup here of hlen bytes into the mbuf,
so these later ones are superfluous.
2004-05-02 05:02:53 +00:00
christos
4ad27a5358 add COMPAT_20 2004-05-02 03:13:34 +00:00
christos
7689222dbe make STACKGAPLEN 4k, since struct statvfs is more than 2k. 2004-05-01 22:42:51 +00:00
petrov
5f4709f782 Replace uvm counters with evcnt, initialize them through __link_set (from Matt Thomas),
disable counters by default and add configuration option UVMMAP_COUNTERS.
2004-05-01 19:40:39 +00:00
thorpej
ba494aaa83 COM_PXA2X0 is now defflag'd in sys/conf/files 2004-05-01 19:09:14 +00:00
thorpej
c3d8434559 defflag COM_PXA2X0. 2004-05-01 19:06:24 +00:00
thorpej
cdac01064e Rename the COM16650 option to COM_16650, for consistency with other
com variant options.
2004-05-01 19:03:59 +00:00
nisimura
a98d1a3398 Typos in comment description. 2004-05-01 12:55:06 +00:00
kochi
beb4a7fe16 specify static where appropriate. 2004-05-01 12:03:27 +00:00
pk
17e88886cc pmap_kremove4m,pmap_protect4m,pmap_extract4m: the `demap' lock needs interrupt
protection.
2004-05-01 08:20:11 +00:00
matt
d1fcd75db0 Define link_sets start/stop as ptype * const [] since they are in a
readonly section.
2004-05-01 07:16:55 +00:00