Commit Graph

179938 Commits

Author SHA1 Message Date
lukem 9559646817 Fix WARNS=4 issues (-Wsign-compare -Wextra) 2009-04-18 07:17:16 +00:00
mrg 8033ac319d import latest bozohttpd sources. changes include:
o  make bozohttpd internally more modular, preparing the way
           to handle more than one request per process
        o  fix http-auth, set $REMOTE_USER not $REMOTEUSER.  also fix
           cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
        o  fix an uninitialised variable use in daemon mode
        o  fix ssl mode with newer OpenSSL
        o  mmap large files in manageable sizes so we can serve any size file
        o  refactor url processing to handle query strings correctly for CGI
           from Sergey Katsev at Coyote Point
        o  add If-Modified-Since support, from Joerg Sonnenberger
           <joerg@netbsd.org>
        o  many more manual fixes, from NetBSD
2009-04-18 07:09:27 +00:00
dogcow c96865e412 more -Wsign-compare fixes. 2009-04-18 06:37:35 +00:00
lukem 35a4cbea60 Compare size_t vs off_t by casting both to uintmax_t 2009-04-18 06:28:19 +00:00
cegger 217d969936 Initialize callout and lists before we check for errors.
This fixes crashes in ohci_detach() when ohci_init() failed.
2009-04-18 06:27:17 +00:00
lukem efa035ed26 Compare size_t vs off_t by casting both to uintmax_t 2009-04-18 06:24:05 +00:00
nonaka 53f7d89de9 zaudio(4): Support recording. 2009-04-18 05:20:21 +00:00
lukem d5d23344d7 Fix -Wcast-qual issues 2009-04-18 05:09:15 +00:00
lukem d96ab870e3 Attempt to fix previous to address a coredump. 2009-04-18 03:25:34 +00:00
dyoung 2e016b467d Bug fix: don't release the Rx DMA maps twice. 2009-04-17 23:23:23 +00:00
dyoung 226aeb1e70 Fix keywords: /usr/lib/i386/libiberty* need 'bfd', not 'debuglib'.
/usr/lib/i386/libvers* need 'kerberos', not 'debuglib'.
2009-04-17 21:33:38 +00:00
dyoung c94ffba5d6 Introduce sys/arch/x86/x86/mp.c for common x86 MP configuration code.
mpacpi_scan_pci() and mpbios_scan_pci() are identical code, so replace
them with mp_pci_scan().

Introduce mp_pci_childdetached(), which helps us to detach root PCI
buses that were enumerated either by MP BIOS or by ACPI.

Let us detach and re-attach PCI buses from mainbus0 on i386.  This is
necessarily a work-in-progress, because testing detach and re-attach
is very difficult: to detach and re-attach the entire PCI tree on most
x86 computers that I own is not possible because some essential device
attaches under the PCI subtree: the console, com0, NIC, or storage
controller always attaches in the PCI tree.
2009-04-17 21:07:58 +00:00
dyoung 64670508f7 Detach pcppi0 at isa0 during shutdown. 2009-04-17 20:46:37 +00:00
dyoung d2a5799226 Do not interleave device detachment with device shutdown. Instead, try
over and over to detach all of the devices.  Stop when we cannot detach
even a single device in a cycle.  Call shutdown hooks on all of the
devices that remain attached.

This is another step toward the detach/unmount cycle that will help us
tear down arbitrary stacks of filesystems, ccd(4), raid(4), and vnd(4).
2009-04-17 20:45:09 +00:00
dyoung 13c69639c5 Apply the same keywords to the 32-bit compat files as apply to the
non-compat equivalent files, to stop amd64/sparc64 builds with MKxxx=no
options from failing because files in the DESTDIR are missing from the
METALOG.

amd64 builds, now, with several MKxxx=no options set. sparc64 probably
needs some more work.

FWIW, join(1) saved me some manual labor as I copied keywords from
non-compat to compat files:

1 Collect the files that are missing from the DESTDIR into
  compat-i386.files

2 Replicate the first column of compat-i386.files.  Remove i386/ from
  the first column.

3 sort -k 1,1 distrib/sets/lists/comp/{md.amd64,mi,shl.*}
  distrib/sets/lists/base/{md.amd64,mi,module.amd64,module.mi,shl.elf,sh
  l.mi} | join -1 1 -2 1 -o '2.2 1.3' - compat-i386.files >
  compat-i386.keywords

4 Process distrib/lists/{base,comp}/md.amd64 with join -1 1 -2 1 -o '1.1
  1.2 1.3,2.2' -a1 - compat-i386.keywords
2009-04-17 20:38:04 +00:00
christos dbbba1ac10 appease gcc 2009-04-17 20:32:27 +00:00
dyoung f853fb7538 Rename variables to fix GCC warnings: local variables optopt and optarg
shadow globals.
2009-04-17 20:25:08 +00:00
dyoung b29e491b07 Make vfs_unmountall() return true if it was able to unmount any
filesystem at all, false otherwise.  This will support tearing down
stacks of filesystems, ccd(4), raid(4), and vnd(4).

Change the misleading variable name 'allerror' to 'any_error'.  Make it
a bool.
2009-04-17 20:22:52 +00:00
roy 67d46740ed Import dhcpcd-4.0.13 2009-04-17 20:09:34 +00:00
roy be69da1d06 Import dhcpcd-4.0.13
Fixed since dhcpcd-4.0.12 include
 * Every DHCP message now requires a ServerID as some rogue DHCP servers
   NAK without one.
 * Extra UDP validation is now done for testing dhcpcd over a loopback
2009-04-17 20:05:27 +00:00
dyoung 9c07c1c9a8 Detach audio(4) during shutdown. 2009-04-17 20:04:35 +00:00
dyoung a3a7e82760 Use device_t instead of 'struct device *' or device_ptr_t. Use cfdata_t
instead of 'struct cfdata *'. Delete some gratuitous parentheses.
2009-04-17 19:44:13 +00:00
cegger 7844441cd2 backout rev. 1.112. I was misleaded by the wrong pci(9) manpage. 2009-04-17 19:04:20 +00:00
joerg 95021059eb Move initialisation of the irq spinlock into the device handling code,
at least the Intel driver depends on it whether the IRQ is currently
enabled or not.
2009-04-17 19:02:33 +00:00
cegger 6655a8f4e6 pci_activate() wants a device and not a softc. This matches the implementation. 2009-04-17 19:02:03 +00:00
cegger 7bd8016175 pci_activate() wants a softc and not a device 2009-04-17 18:43:53 +00:00
cegger 31a1339b1f pci_activate synopsis and function description don't match.
cube@ says, function description is correct. So remove reg argument in
pci_activate synopsis.
2009-04-17 18:28:39 +00:00
dyoung 40bf52a73b Disable interrupts on the h/w before disestablishing the PCI interrupt
handler.
2009-04-17 17:31:01 +00:00
dyoung d792f4788e Disable interrupts on the h/w before detaching the interrupt
handler.  Protects against the problem described in
<http://mail-index.netbsd.org/port-i386/2009/04/10/msg001317.html>,
Xintr_ioapic_levelN jumps to 0 during shutdown.
2009-04-17 17:21:31 +00:00
cegger adee6ed051 check return code of tlp_attach() 2009-04-17 16:57:37 +00:00
lukem c83cfc0c59 Fix WARNS=4 issues (-Wshadow -Wcast-qual -Wsign-compare) 2009-04-17 16:12:46 +00:00
lukem 58cb611abb Fix WARNS=4 (-Wshadow -Wsign-compare -Wcast-qual) 2009-04-17 16:05:43 +00:00
tsutsui 25e0185c3d Check revisions and print names of i82551/i82551ER, per Intel manual. 2009-04-17 15:37:43 +00:00
cegger 5f4ec2a0a9 change tlp_attach() to return an error code on failure. 2009-04-17 15:22:35 +00:00
cegger 0cdcfeb162 set dmamap to NULL when bus_dmamap_create() fails to prevent bus_dmamap_destroy to be called with an invalid dmamap in error path. 2009-04-17 15:16:52 +00:00
tsutsui e2c7edc059 Split device_t/softc, use aprint_*(). 2009-04-17 14:48:17 +00:00
lukem a23ae1c696 Fix WARNS=4 issues (-Wsign-compare -Wcast-qual) 2009-04-17 14:07:45 +00:00
cegger bb95b8c8db Free resources in error path.
While here, fix copy&paste error I introduced in rev. 1.108.
2009-04-17 14:07:32 +00:00
lukem 95087e98e0 Fix WARNS=4 issues (-Wshadow -Wcast-qual -Wextra -Wsign-compare) 2009-04-17 14:02:21 +00:00
lukem 0076abc054 Fix WARNS=4 issues (-Wshadow -Wcast-qual -Wsign-compare) 2009-04-17 13:56:33 +00:00
cegger 65e67e65cc use aprint_* 2009-04-17 13:15:53 +00:00
cegger f52d4b8ffb Detach tlp(4) during shutdown.
Free unused resources on attachment.
2009-04-17 12:59:19 +00:00
pooka dde8f9ba46 Allow bootstrap time specification of memory window size and count. 2009-04-17 12:29:08 +00:00
cegger c455042514 device_t/softc split. Tested with tlp at pci 2009-04-17 10:20:32 +00:00
cegger dc79b83a9a struct device * -> device_t
u_intNN_t -> uintNN_t
2009-04-17 08:30:55 +00:00
cegger bb47f93acf use device_private 2009-04-17 08:19:09 +00:00
cegger 4815538f3f struct device * -> device_t
u_intNN_t -> uintNN_t
2009-04-17 08:04:49 +00:00
apb 7097476cb5 Re-calculate size and digestresult after stripping, to ensure that
correct values appear in the metalog.
2009-04-17 06:09:08 +00:00
lukem f7271183be Fix WARNS=4 issues (many -Wshadow, -Wcast-qual) 2009-04-17 04:16:57 +00:00
lukem b1b382ae67 Fix WARNS=4 issues (-Wshadow -Wextra -Wcast-qual -Wsign-compare) 2009-04-17 04:03:39 +00:00