Commit Graph

70330 Commits

Author SHA1 Message Date
christos
03766c2d10 PR/23335: Christos Zoulas: Removing interfaces trashes free memory when
ipv6 is used because multicast group memberships contain dangling references
to the multicast group deleted.
2004-03-28 08:28:06 +00:00
elric
befeae8929 Modified the dksubr routines to:
o  expect the disk's start routine to return an int.  If the
	   int is non-zero, we enqueue the request and try again
	   later.
	o  have a dk_start() routine which runs the request queue.
	o  have a dk_iodone() function which should be called by the
	   driver using the framwork from its iodone.  dk_iodone will
	   retry the queue since presumably further progress may be
	   possible once a request is complete.  It is required that
	   the underlying driver have the resources to keep at least
	   one transaction in flight at any time.

Modified cgd to:

	o  be able to keep one transaction in flight at any time
	   (almost) by keeping a buffer of size MAXPHYS in its softc
	   and use it.

We still need to make the cgd_cbufpool per device rather than global
and provide a low water mark for it.

Addresses PR: kern/24715
(at least according to the submitter.)
2004-03-27 23:23:06 +00:00
eeh
5f1ffa71fc License cleanup. 2004-03-27 16:21:53 +00:00
dsl
cd6c744984 Rework previous so that FS_FLAGS_UPDATED is only looked at for ffsv1 2004-03-27 12:40:46 +00:00
dsl
5f345f8d68 Rework previous to avoid checking FS_FLAGS_UPDATED for ffsv2 2004-03-27 11:46:40 +00:00
atatat
284a91c3ab Manually attach malloc types when being built as an lkm. 2004-03-27 04:43:43 +00:00
atatat
b233127eb3 GC ath_node_root as well, but modify to work around the single
(tightly scoped) reason for recording the node address by recording
the assigned number.  Dink pci/if_bge.c to match, since ic/ath.c was
used as the archetype.
2004-03-27 04:37:59 +00:00
atatat
d97889de23 Fix sysctl_createv() so that rnode and cnode can refer to the same
pointer.  Fix sysctl_create() so that nodes cannot be added to an
alias node.
2004-03-27 04:26:23 +00:00
atatat
de94728620 GC bge_node_root, since it's not needed and probably wrong. 2004-03-27 04:25:12 +00:00
uwe
fad92c3ca3 When we attach a channel, set a high level to DRV control pin of the
external buffer for the PC card connected to the channel.  This hack
makes pcmcia cards "being used" at the boot time (by WinCE or NetBSD)
correctly detected.  A machine running with root on NFS can now be
properly rebooted.
2004-03-27 02:53:12 +00:00
uwe
8dd212dad7 Add option HD64461PCMCIA_REORDER_ATTACH that attaches channels in
reversed order.

When you boot with two CF cards inserted, this options makes the one
in the "memory only" slot (channel 1), which is almost always the card
with the NetBSD install, attached as wd0.

Unlike using fixed unit numbers in the kernel config, if you boot with
only a single CF card, that single card will still be wd0 regardless
of which slot it is inserted in.

http://mail-index.netbsd.org/port-hpcsh/2003/10/23/0000.html provides
a more verbose description of why this option is convenient for most
usage patterns.
2004-03-27 02:24:01 +00:00
uwe
fb20d3f467 Print bootinfo timezone in decimal. -180 is more readable then 0xffffff4c
(though may be I'm just getting old :).
2004-03-27 02:01:07 +00:00
simonb
cd019fdfb8 Pass the OpenBIOS magic number to the awk script just like the other
numbers passed in instead of using a BEGIN construct.  nawk didn't like
the hex escapes used there.
Fixes a problem reported by Shin'ichiro TAYA on port-powerpc.

Use "int(NUMBER)%256" instead of just "NUMBER" in the printf "%c"
statements in the awk script.  nawk was appearing to refuse outputing
a 0 byte of the low eight bits of the number were 0 but any higher
bits were set.

walnut-mkimg.sh tested using gawk, nawk and mawk.
2004-03-27 01:47:46 +00:00
jonathan
c13c949dac Update yesterday's if_bge sysctl hooks for hw.bge.* (based on
yesterday's sys/dev/ic/ath.c) to match today's ath.c driver.
Commit now in the hope that Andrew Brown will pick up this file for
any more pending changes.
2004-03-27 01:17:49 +00:00
he
8721979173 Conditionalize a few more declarations, as they may be defined as macros:
pmap_collect, pmap_reference, and pmap_remove (observed lossage for vax).
2004-03-27 00:59:55 +00:00
petrov
2edf945c23 sys_sa_yield returns EJUSTRETURN. 2004-03-27 00:49:47 +00:00
jonathan
63fe9ef057 Use proper NetBSD conventions for deferred kthread creation, not the
other semantics from an earlier incarnation.

Call kcont_init() from init_main before device autoconfiguration,
so kcont is availble to device drivers if required.

Also ensure the kthread process runs any pending continuations once
the kthread is finally up and running. For now, use a non-null timeout
to poll the queue periodically.  Draining any pending requests just
before the kthread enters its ltsleep()/kc_run loop is cleaner, but
this is the version I tested with an early-in-boot kcont request.)
2004-03-27 00:42:38 +00:00
petrov
0514cbdca0 Use want_resched from cpu_info area. 2004-03-26 23:18:42 +00:00
he
9e1e88e1c4 Introduce sysc_init_field() and use it to make the code a little less ugly.
Also, fix another gcc2-unfriendly initialization.
2004-03-26 22:54:42 +00:00
gendalia
c2db9e9c90 Add support for Adaptec 2200S (Vulcan 2M) and Dell PERC 320/DC 2004-03-26 22:11:46 +00:00
gendalia
5193b56f46 regen for Adaptect 2200S (Vulcan 2M) / Dell PERC 320/DC 2004-03-26 22:06:31 +00:00
gendalia
1fc9784029 Add Adaptec 2200S Vulcan 2M / Dell PERC 320/DC 2004-03-26 22:05:08 +00:00
drochner
c83eb997b8 nothing cares about __HAVE_SIGINFO anymore, so nuke it 2004-03-26 21:39:57 +00:00
drochner
ae94c80224 fix references to the syscall formerly known as SYS___sigreturn14 2004-03-26 19:05:33 +00:00
drochner
88a4abdbd2 the whole sigcode business is COMPAT_16 only 2004-03-26 18:44:36 +00:00
drochner
60cbbd8f70 use netbsd32_sigcode with COMPAT_16 only 2004-03-26 18:38:55 +00:00
drochner
d19f706361 all ports define __HAVE_SIGINFO now, so remove the CPP conditionals 2004-03-26 17:34:18 +00:00
drochner
945c30f4ab all ports define __HAVE_SIGINFO now, so remove the CPP conditionals 2004-03-26 17:13:37 +00:00
drochner
4f4ec7e627 regen after __HAVE_SIGINFO removal 2004-03-26 15:29:28 +00:00
drochner
9fd8e8983b all ports define __HAVE_SIGINFO now, so remove the CPP conditionals 2004-03-26 15:18:54 +00:00
drochner
4f5b1431f9 all ports define __HAVE_SIGINFO now, so remove the CPP conditionals 2004-03-26 15:01:16 +00:00
drochner
80bded6289 To the rest of the kernel, pretend that hppa supports SIGINFO.
There are still only "sigcontext" stackframes passed to the user,
but at least we can clean up the MI sources now.
2004-03-26 14:11:01 +00:00
minoura
a3a2a1ebcf Print better names for Pentium4-class processors (Xeon, Celeron, etc). 2004-03-26 13:57:44 +00:00
wiz
2837bf7e95 Update David Huang's email address in the license
per his request in PR 24907.
2004-03-26 12:15:46 +00:00
dyoung
f0b37d23ab Actually, disabling RSS rate-adaptation does not make any discernible
difference in locking up STA f/w 8.42.1.
2004-03-26 06:43:25 +00:00
dyoung
046f811cb5 Firmware revisions are decimal. 2004-03-26 06:39:56 +00:00
itojun
e050c8a03d do not touch m->m_pkthdr.rcvif after m becomes invalid. Patrick Latifi 2004-03-26 03:35:02 +00:00
simonb
1c13fd358f Give buf_lotsfree() a bit of a service:
- Fix a 32-bit overflow that could erroneously return true even if the
  currently allocated buffer memory was greater than the high water mark.
- Add an early check for bufmem > hiwater to avoid a needless call to
  random().
- Sprinkle some comments.

Add a vm.bufmem sysctl so the current bufmem value can be easily queried
from userland.

Reviewed by Thor Simon.
2004-03-26 00:31:55 +00:00
jmc
77e0ba6695 Convert athhal-elf.o to a .uue and add appropriate make hooks to use it 2004-03-25 23:32:10 +00:00
simonb
07056cd3d1 More white space nits. 2004-03-25 23:17:16 +00:00
xtraeme
1b33913193 err fix previous (return -> break) in case statement. 2004-03-25 23:07:09 +00:00
enami
c4a655ef80 Misc. style fix; white-space usage, comment style, ansify, multiple
include protection, rcsid, typo, ...
2004-03-25 23:02:58 +00:00
xtraeme
8ded9ee13c There are two revisions of the VT8235 audio chipset (0x50 and 0x60), so
print any of them as VT8235, approved by martin@.
2004-03-25 22:48:43 +00:00
atatat
76f167c40b Set version in node destroy request 2004-03-25 22:16:04 +00:00
pooka
845a217e15 Convert pool_get()'s from nowait to waitok. We're allowed to block,
and this is more acceptable since the code assumes success.

gmcgarry ok
2004-03-25 22:08:33 +00:00
bouyer
27e1cb0c55 Deassert RST before re-enabling interrupts. Some drives (or controller)
require it.
From Michael van Elst in kern/24904.
2004-03-25 19:45:09 +00:00
atatat
29e15c7932 Move sysctlbyname(), sysctlnametomib(), and sysctlgetmibinfo() from
sysctl(8) into libc, making the minor number jump.  Add prototypes to
sys/sysctl.h, fix sets, modify man pages, etc.  That oughta cover it.
2004-03-25 19:36:26 +00:00
matt
27b002601f Enable generic software interrupts on macppc. 2004-03-25 18:52:25 +00:00
matt
06bf53b3d7 Add diagnostic to skip calling uvm_fault when the lwp's USERSR is unset. 2004-03-25 18:50:50 +00:00
matt
040b0bc071 Move data structures to softintr.c. Remove an unneeded if. Fix a typo. 2004-03-25 18:46:27 +00:00