Commit Graph

70881 Commits

Author SHA1 Message Date
simonb
b5d0e6bf06 Initialise (most) pools from a link set instead of explicit calls
to pool_init.  Untouched pools are ones that either in arch-specific
code, or aren't initialiased during initial system startup.

 Convert struct session, ucred and lockf to pools.
2004-04-25 16:42:40 +00:00
cl
1408a99dbe Select first disk device as boot device if no boot device is selected
from the command line.
2004-04-25 14:40:02 +00:00
rjs
0ce713d5b6 Add the TI microExplorer card. 2004-04-25 14:22:32 +00:00
yamt
ab195ed32f bio_doread: vp is always non-NULL here. 2004-04-25 12:41:12 +00:00
cube
d902fa87b0 Add a third possible vendor code for the D-Link DFE670-TXD. While there,
make the `unmatched vendor code' error message slightly more verbose to
make things easier next time this kind of issue arises.

Reported and tested by Pierre-Philipp Braun.
2004-04-25 12:20:54 +00:00
tron
fdab6cb011 Make this compile without ACPI_DEBUG again. 2004-04-25 11:25:35 +00:00
christos
db3f39e1e1 make this compile with ACPI_DEBUG again. 2004-04-25 07:55:06 +00:00
matt
b1fee09f27 Constify sreq2breq 2004-04-25 06:25:52 +00:00
matt
22120ad628 Constify the speedtab arrays 2004-04-25 06:23:40 +00:00
matt
f86644a808 Constify the table argument to ttspeedtab. 2004-04-25 06:13:38 +00:00
matt
c768d54573 Constify an array. 2004-04-25 06:04:54 +00:00
matt
48011c94e7 Constify a few read-only arrays/variables. 2004-04-25 06:02:20 +00:00
atatat
3f800573aa Be consistent about using sysc_init_field() 2004-04-25 05:54:38 +00:00
atatat
990f278f7a Remove dynamic sysctl node version 0 from the tree. It seemed okay at
first, but quickly showed its shortcomings.  The version 1 node we're
now using should be good for a while.
2004-04-25 05:47:52 +00:00
matt
08381af38e -fno-zero-initialized-in-bss only to gcc3, not gcc2.95 2004-04-25 04:24:06 +00:00
itojun
22bdfd729d fix how we send RST against ACK. markus@openbsd 2004-04-25 03:29:11 +00:00
cl
a9154d4a78 Don't attach vga and keyboard if the domain is not privileged.
Also cleanup print command if attachment fails.
2004-04-25 00:24:08 +00:00
itojun
8a0aba4304 indent for little bit better readability 2004-04-25 00:08:54 +00:00
itojun
3b87628cfb fix comment; we no longer move ip+tcp into the same mbuf 2004-04-24 23:59:13 +00:00
rjs
06b3d71b2a Use new isa_attach_args structures. 2004-04-24 23:32:08 +00:00
jonathan
cf1c72d3a5 Add `const' to the safety-catch local definition of ip6_protosw,
to maatch sys/netinet6/ip6protosw.
2004-04-24 23:28:13 +00:00
pk
3c83ebd4ab Force zero-initialised variables into the .data segment. 2004-04-24 22:07:15 +00:00
cl
8d5b657eb1 Add sysctl nodes for Xen disk cookies used by domain creation tools. 2004-04-24 21:55:37 +00:00
cl
f53151522e Enable keyboard and vga display as console when running as domain-0. 2004-04-24 21:45:58 +00:00
cl
5c7586f0e5 Add keyboard support and wscons config options. 2004-04-24 21:33:32 +00:00
cl
428e3dcc56 remove trailing empty lines 2004-04-24 21:01:37 +00:00
cl
44e8720ec9 Add vga display support. 2004-04-24 20:58:59 +00:00
cl
8e6ccbacfb Allow the block device driver to impersonate wd/sd/cd devices. This allows
for most system seamless migration from a NetBSD/i386 setup to a NetBSD/xen
setup without changing /etc/fstab or creating additional device nodes.
2004-04-24 20:05:49 +00:00
matt
41478e7f33 Always include <sys/param.h> first! 2004-04-24 19:59:19 +00:00
cl
122ad5af2a Make bus_space map machine addresses instead of physical addresses. 2004-04-24 19:43:53 +00:00
cl
6d328d297e Let event_set_handler set the void * argument to event handlers. 2004-04-24 19:32:37 +00:00
cl
fb658556ac Make bus_space map machine addresses instead of physical addresses. 2004-04-24 19:18:01 +00:00
cl
4c5f9e53a1 Make kernel command line parsing support additional keywords without
having to change existing code which calls the parser.
2004-04-24 18:55:02 +00:00
cl
fb65e916fb Consistently use xencons for eveything reffering to Xen's virtual console.
rename arch/xen/xen/console.c -> arch/xen/xen/xencons.c
2004-04-24 18:24:14 +00:00
cl
d843f649c6 Add ``hypervisor at mainbus'' and attach all devices provided by the
hypervisor to it instead of mainbus.
2004-04-24 17:45:38 +00:00
cl
ef3c59b551 add __KERNEL_RCSID 2004-04-24 17:41:49 +00:00
cl
edf6d721c7 Add ``hypervisor at mainbus'' and attach all devices provided by the
hypervisor to it instead of mainbus.

rename arch/xen/i386/hypervisor.c -> arch/xen/i386/hypervisor_machdep.c
2004-04-24 17:35:27 +00:00
cl
2b115ed1d8 Catch up with recent src/sys/dev/dksubr.c change (1.11 -> 1.12) which
prevents us from processing multiple bufs during 1 *start call.  We now
rely on dk_start calling us repeatedly as long as there are bufs on the
queue.
2004-04-24 16:47:29 +00:00
kleink
0e5d242328 Update for new pci_devinfo(9) signature. 2004-04-24 15:49:00 +00:00
uwe
33c262357e Adapt to pci_devinfo signature change. 2004-04-24 15:09:54 +00:00
minoura
d75fa2749f Move misplaced debug code.
This should make it compile w/o pcppi and w/ CLOCKDEBUG.
2004-04-24 13:38:36 +00:00
kleink
152857d5f8 2.0E: new pci_devinfo() argument. 2004-04-24 09:51:06 +00:00
pk
95149aa7b9 Some older devices do not understand the `disable block descriptor' bit in
the mode sense request. So fall back on mode sense data including a block
descriptor section.

See also sd.c rev. 1.214.  Again: should we bother trying DBD at all?
2004-04-24 09:26:14 +00:00
yamt
4a3c33632a EcGpeHandler: in the case that the ec is EcLock'ed, always set
EC_F_PENDQUERY flag so that AcpiClearGpe() will be called later.
2004-04-24 09:07:50 +00:00
atatat
d731ba57d2 The second "console_device" node should really be called "booted_device". 2004-04-24 04:56:59 +00:00
itojun
93cf32770f use bounded string ops 2004-04-23 21:52:17 +00:00
itojun
db9226c772 use bounded string ops 2004-04-23 21:29:16 +00:00
itojun
6123043789 pass string length (= boundary info) to pci_devinfo so that we do not run over
the end of memory region
2004-04-23 21:13:05 +00:00
itojun
804f709531 use safer string manipulation function 2004-04-23 21:01:02 +00:00
snj
8db2495eca recommented -> recommended, indefinitly -> indefinitely. 2004-04-23 20:17:13 +00:00
itojun
300aa0dcd5 use bounded string ops (snprintf, strl*) 2004-04-23 17:25:25 +00:00
matt
6882f9234e #include <sys/cdefs.h> to get the definition of __packed.
(Some files which include this file may not have done that.)
2004-04-23 16:26:18 +00:00
joda
7b46861a55 fix obvious past-o where the activity led register gets overwritten by
the traffic meter led register
2004-04-23 16:03:33 +00:00
tsutsui
77addc8b55 Increase buffer size for s[dt]-targets PROM property
otherwise some machines (including my SS1+) with old PROM fails to get it.
2004-04-23 13:04:59 +00:00
atatat
d26290d280 Missing parens get cast wrong. Grr. 2004-04-23 12:02:43 +00:00
christos
dede52abd3 PR/25288: Erik E. Fair: convert this file to statvfs 2004-04-23 12:02:39 +00:00
hannken
82161a9cbe Protect against multiple inclusion. 2004-04-23 09:20:20 +00:00
kleink
ec413feecc Remove spurious statvfs_t from the declaration of struct statvfs -
the accompanying typedef keyword was missing, and while this type
can be found in SVR4 headers (and processor ABI supplements) it
was not documented there, nor included in XPG4.2.
2004-04-23 08:44:33 +00:00
dsl
5d3e088ee0 Put the 'mbr has bootselect table' marker into all versions of the mbr code.
Having the table in the 'standard' mbr allows fdisk to write in bootsel
menu items and only ask about updating the mbr code before exit.
Sysinst validates that the mbr code contains the bootselect table for
all the mbr code variants it reads - because it might want to write the table
and doesn't really want to make the validation dependant on what it is
going to do later.
Fixes install/25235, but sysinst needs some changes (like reporting the
failure to write the mbr) before the pr itself is closed.
2004-04-23 06:21:21 +00:00
matt
3c5e603d8f Use __packed instead __attribute__((__packed__)) 2004-04-23 04:14:41 +00:00
simonb
9bc855a931 s/the the/the/ (only in sources that aren't regularly imported from
elsewhere).
2004-04-23 02:58:27 +00:00
simonb
04680727b1 s/this this/this/. 2004-04-23 02:48:12 +00:00
yamt
05076bfbb9 chgsbsize: correct limit check and ui_sbsize calculation.
ok'ed by Christos Zoulas.
2004-04-23 02:13:29 +00:00
thorpej
f84850f7df Assign to CPUFLAGS to add -march=armv4 instead of adding to COPTS. 2004-04-22 22:41:42 +00:00
skd
3d1c65c141 1) Skip over bogus device nodes, prevents a panic in pci_make_tag.
2) Clarify a printf.
2004-04-22 18:01:47 +00:00
itojun
cb0651e44a correct parameter to in6_cksum. keiichi@kame 2004-04-22 17:58:59 +00:00
ragge
febf637b17 Avoid performance problem in tcp_reass() when appending mbufs to a chain
by keeping a pointer to the last mbuf in the chain.
2004-04-22 15:05:33 +00:00
hannken
fcd7f3df90 Fix statfs->statvfs fallout. 2004-04-22 14:32:09 +00:00
christos
924e775ac7 fix statvfs->statvfs1 fallout 2004-04-22 14:06:31 +00:00
christos
e6f05cd289 Add the missing 'v' to fhstatvfs1 2004-04-22 12:04:03 +00:00
pk
a2ce1a6818 ctx_free: reset the context's page table pointers in each context table. 2004-04-22 11:57:33 +00:00
pk
c996a0d95b Fix logic botch in previous commit. 2004-04-22 11:45:48 +00:00
skd
98e8625653 Added initial support for SIS 180 SATA controller. Patterned after
VIA 8237 support.
2004-04-22 11:30:04 +00:00
skd
a9ec362b00 regen. 2004-04-22 11:27:45 +00:00
skd
ed76ce2d2b Added support for new sis south bridge and 180 sata controller. 2004-04-22 11:27:19 +00:00
yamt
54b5826d2c lfs_statvfs: report f_frsize correctly. 2004-04-22 10:45:56 +00:00
yamt
2b17bf3d63 check_dirty: fix another PHOLD leak. ("goto top" path) 2004-04-22 10:45:00 +00:00
hannken
754675a0e1 Make it compile again after statvfs import. 2004-04-22 10:18:03 +00:00
pk
4c005fd35b Mostly undo rev. 1.287: for modified pages a table walk must be forced on
the next write access to get the modified bit set in the PTE and that
won't happen if it hits the cache.
2004-04-22 10:14:58 +00:00
enami
0041584094 If defined(DP83820), (always) drop IFF_OACTIVE if we got txintr.
Otherwise, the driver simply stuck once we face tx resource shortage.
2004-04-22 06:11:38 +00:00
matt
633d902c65 Regen for statvfs changes. 2004-04-22 05:44:30 +00:00
enami
45a4841ce9 Copy fsidx so that not to break binary compatibility of mountd etc. 2004-04-22 03:47:58 +00:00
atatat
b47992812a Move a type cast (wrt description handling) and do a little lint
cleaning.
2004-04-22 03:32:11 +00:00
tls
7eb2f214d5 Change the default state of two tunables; bring our TCP a little bit
closer to normal behaviour for the current century.

New Reno is now on by default (which is really the only reasonable
choice, since we don't do SACK); instead of an initial window of 1
for non-local nets, we now use Sally Floyd's magic 4K rule.
2004-04-22 02:19:39 +00:00
matt
e5dd03bf92 Eliminate space between function name and prototype. 2004-04-22 01:34:17 +00:00
matt
e50668c7fa Constify protosw arrays. This can reduce the kernel .data section by
over 4K (if all the network protocols) are loaded.
2004-04-22 01:01:40 +00:00
itojun
8bcb745d7c sprintf -> snprintf 2004-04-22 00:31:00 +00:00
itojun
aca4c091d3 sprintf -> snprintf 2004-04-22 00:17:10 +00:00
matt
fd2a977729 Add #include "opt_iso.h" if not already there.
Make these compile cleanly when TPCONS is defined.
2004-04-21 23:19:49 +00:00
matt
961e6cb2e5 Add multiple inclusion protection 2004-04-21 23:18:10 +00:00
matt
0b5d1218b5 Add TPCONS option 2004-04-21 23:16:53 +00:00
matt
4f9c0f6775 Add ${_MKTARGET_LINK} to the link step 2004-04-21 22:01:44 +00:00
matt
7cf8938ddd ANSI-fy and some additional de-__P and constification. 2004-04-21 21:03:43 +00:00
matt
fde909e1a1 Add prototype for uiomove_frombuf. Change uiomove_frombuf to use size_t
for its length argument (to be the same as uiomove).  Remove code that
dealt with length being negative.
2004-04-21 20:31:50 +00:00
itojun
d6c33e0ef5 kill a sprintf 2004-04-21 19:10:31 +00:00
itojun
d2f1c029b9 kill sprintf, use snprintf 2004-04-21 18:40:37 +00:00
itojun
e133d13e80 kill some strcpy 2004-04-21 18:16:14 +00:00
cl
a01e0b0219 parse bootdev parameter for partition and set booted_partition accordingly 2004-04-21 18:06:51 +00:00
itojun
4c6511de84 avoid unbounded sprintf(), use snprintf() 2004-04-21 18:03:13 +00:00
itojun
0f06e31eb6 no space between function name and paren: foo (blah) -> foo(blah) 2004-04-21 17:49:46 +00:00