Commit Graph

71719 Commits

Author SHA1 Message Date
yamt fb277865d7 bump sb_timeo from short to int to allow longer timeouts.
especially when hz is high.

while i'm here, bump sb_flags to int, as suggested by
Jason Thorpe and Bill Studenmund.

ride on 2.0G.
2004-07-01 12:42:57 +00:00
yamt 0f3ce64ad4 statclock: don't assume hz==100 when determining frequency to call schedclock. 2004-07-01 12:36:57 +00:00
pk 7f51f38abc Avoid unnecessary stores of discarded values. 2004-07-01 10:23:41 +00:00
hannken f59f039ea5 Keep a pointer to the leaf mount. Needed for write gating where a
file system gets suspended and has layered mounts above it.

Welcome to 2.0G

Reviewed by: Bill Studenmund <wrstuden@netbsd.org>
2004-07-01 10:03:29 +00:00
pk a61069b899 Revision 1.27 of clock.c applies to the Intersil interrupt, not sun4m timers. 2004-07-01 09:59:00 +00:00
is 020c431dc5 disestablish the interupt if we fail to (among other things) download
the firmware successfully. This prevents the kernel from crashing later
at interupt enable time, if firmware download fails like with my 3c990B
card.
2004-07-01 08:34:24 +00:00
petrov ef4d3a19c3 iommu_dvma_load_raw: reserve extra dvma page. Fixes PR #13654. 2004-07-01 06:40:36 +00:00
pk b7d8cee837 The sc_range and sc_nrange fields are no longer used. 2004-06-30 21:41:36 +00:00
pk 9d70d77aae sbus_attach: use bus_space_tag_allocate();
sbus_bus_map: use bus_space_translate_generic();
sbus_bus_addr: use BUS_ADDR().
2004-06-30 21:37:49 +00:00
pk 889aa9f444 Introduce bus_space_tag_alloc() for the common parts of bus tag allocation. 2004-06-30 21:16:38 +00:00
hannken 8b477ad955 When we expunge an unreferenced file from a snapshot its size may be zero. 2004-06-30 18:42:17 +00:00
hannken 7ca8e916c9 Do LAYERFS_REMOVED for vop_rmdir.
Reviewed by: Bill Studenmund <wrstuden@netbsd.org>
2004-06-30 17:42:55 +00:00
christos 75c2e1e75a Introduce a zerror() function that can be conditionally compiled out to
save space. share all error strings in a single array.
2004-06-30 15:44:55 +00:00
christos 45879fd71c - full ansi prototypes
- turn WARNS=3 on
2004-06-30 15:43:57 +00:00
kochi d23b9803c9 fix a duplicate member in designated initializers, which was a bug
introduced in rev 1.5.
pointed out by Andreas Gustafsson.
2004-06-30 14:46:07 +00:00
christos 9c5b11e7e9 cast help. 2004-06-30 14:00:02 +00:00
christos b508e54615 constification fixes. 2004-06-30 13:59:22 +00:00
christos 84a3bc854d - multiple inclusion protection.
- constify some prototypes.
2004-06-30 13:59:05 +00:00
christos 049fd5eb10 help with casts, and lint hints. 2004-06-30 13:58:16 +00:00
christos c7f7436fef add __DECONST() 2004-06-30 13:57:32 +00:00
christos 3e36df0496 avoid string const cast-aways. 2004-06-30 13:45:54 +00:00
christos db25564166 remove useless typedef and casts 2004-06-30 13:45:21 +00:00
itojun fbbd2967d1 forgot to "cvs add". noted by Havard 2004-06-30 09:51:43 +00:00
tron 0e42006ea8 Build pf(4) lkm. 2004-06-30 09:21:26 +00:00
mycroft d5be908514 This should be done in the HAL, but until then...
Hack the match function to accept an alternate Atheros vendor ID by munging it
to look like the expected one.  This is needed for DWL-G520 cards (which
otherwise "just work").
2004-06-30 05:58:17 +00:00
mycroft 2d24a9bd14 When starting a bulk-only transfer, punt early if the device is going away. 2004-06-30 05:53:46 +00:00
christos aa30b4a3db cleanup casts in get/set u short/long so that we don't have const castaways. 2004-06-30 03:43:14 +00:00
jmc f648d12d47 Add missing NetBSD ID tags 2004-06-30 03:26:26 +00:00
jmc 3b3bf466dc Don't build the pf lkm. It's missing entire files at the moment. Re-enable
once it compiles
2004-06-30 03:21:10 +00:00
mycroft 9f98e14be5 Fix an endianness problem (EHCI_NULL was being double-swapped). 2004-06-30 03:11:56 +00:00
jmc 7e941f7f6b Add a missing NetBSD tag 2004-06-30 02:55:15 +00:00
christos 01a2047486 PR/25999: Jeff Rizzo: ipf: ipnat is corrupting "bimap" translations in 2.0_BETA and -current 2004-06-29 22:44:59 +00:00
kleink eb97ad7f0b Remove redundant tga_getconf() and tga_identify() prototypes. 2004-06-29 21:32:42 +00:00
oster 4880044636 Remove a (redundant) check that was already performed in raidstart(). 2004-06-29 17:09:01 +00:00
kleink 6075ea53ef In the delay loop, mark the scratch register as earlyclobber. 2004-06-29 16:26:05 +00:00
kleink bac8f8978b Repair operand constraints in delay(). 2004-06-29 16:21:16 +00:00
kleink 1cb7e9cdb5 In the delay loop, mark the scratch register as earlyclobber. 2004-06-29 12:01:11 +00:00
mycroft 1fd9249360 Attempt to fix sbp2_free() so that it doesn't core dump. As noted in PR 21099,
but fixed differently.
2004-06-29 11:10:29 +00:00
simonb fcd5c633c6 We don't need to announce to the world when setstatclockrate() is called... 2004-06-29 08:12:20 +00:00
mycroft 658b1114e7 Ignore a port error that happens to come in at the same time as a connect
status change.  Some root hubs seem to report both.
2004-06-29 06:30:05 +00:00
itojun b140dfa763 s/options\t\t/options \t/. (whether UMASS_DEBUG is appropriate for everyone's
GENERIC is a different issue.  i'm not sure)
2004-06-29 04:51:29 +00:00
itojun 0407dd42ae make PF lkm working. from Peter Postma and Joel Wilsson.
remove pf_ioctl_head/pf_newif_head, which was never used.
2004-06-29 04:42:54 +00:00
mycroft ac575d2a58 Make one message dependent on ohcidebug, so it doesn't interfere with polled
operation; e.g. when entering a root device or in DDB.
2004-06-29 03:56:04 +00:00
bouyer 0f8b776e09 Regen, added P1003_1B_SEMAPHORE. 2004-06-28 21:09:22 +00:00
bouyer 21e9a36edc Add options P1003_1B_SEMAPHORE
to all GENERIC-like kernel config files where SYSV* options were already
present (commented out if the SYSV* options are commented out).
Fix lib/25897 and lib/25898.
2004-06-28 21:07:47 +00:00
heas 9efbbebf3a do not reset the chip (and subsequently the phy) when unnecessary; that is,
for address changes, multicast filter changes, or adjusting promiscuous mode.
Fixes resetting the phy for things like start/stopping tcpdump.

ok petrov@, martin@, pk@
2004-06-28 20:50:52 +00:00
martin 34b6ee1e7c Add prototypes for the new functions added in previous commit. 2004-06-28 20:24:16 +00:00
mycroft b583fff01b Separate page 4/5 reading into separate functions. For "removable" devices,
try page 5 (flex geometry) first.  This fixes problems with some broken USB
devices that do not handle page 4 correctly (rather than returning nothing,
or stalling, they return the CSW where there should be data).
2004-06-28 16:43:49 +00:00
jkunz 61c5baa29e Ignore disklabel errors. Needed to make netbooting work again on some
old 700 machines and to be able to boot from LIF images on disk.
2004-06-28 16:40:44 +00:00
jkunz 0751bf5e12 The bootloader overwrites itself when relocated to 0x720000 and booting a
"big" kernel like GENERIC. So relocate the boot loader just below kernel text.
2004-06-28 16:27:15 +00:00