Commit Graph

58781 Commits

Author SHA1 Message Date
thorpej f818766afe Declare all cfattach structures const. 2002-09-27 20:31:45 +00:00
thorpej 9a711d6985 Declare all cfattach structures const. 2002-09-27 20:29:02 +00:00
jdolecek 1fdcf94f68 no more autoconf.h 2002-09-27 20:10:32 +00:00
jdolecek 2405f564a2 constify, should fix warning for mainbus.c 2002-09-27 20:06:44 +00:00
bouyer c7b51b5566 In nfs_commit(), sanity-check what we get from network: if we try to fluch
past end of file, or if off + cnt overflows a quad_t, flush to end of file.
2002-09-27 19:30:46 +00:00
mycroft 3c7847ff41 #if 0 the call to uvm_map_checkprot() in sys_munmap() -- it's not documented,
and programs do not expect it.  Also fixes memory leaks in dlopen()/dlclose().
2002-09-27 19:13:29 +00:00
drochner 20d06f6b17 SI prefixes apply to decimal multiplies only. For binary (2^n) multiplies
the most "officially looking" is IEC 60027-2, ie "Ki", "Mi", ...,
which is not too popular, and which would require more code changes.
So stick with the traditional capital "K" for (divisor==1024), and use
the SI "k" otherwise (ie (divisor==1000)).
2002-09-27 18:37:43 +00:00
drochner 0766f7d128 Remove a check whether the drive is initialized before crashdump.
It prevents dumping on an otherwise unused disk and seems
unnecessary anyway - the driver will deal with initialization.
fixes my PR kern/18135
2002-09-27 17:17:53 +00:00
provos 0f09ed48a5 remove trailing \n in panic(). approved perry. 2002-09-27 15:35:29 +00:00
itojun 1eb6ef2a80 don't go into D3 state if revision <= 82558_B0. PR 18011 2002-09-27 14:54:08 +00:00
martin 2c7b00b18f Add SYMTAB_SPACE option to make DDB actually useable. 2002-09-27 10:08:19 +00:00
augustss 99680e22b9 Add pci device. 2002-09-27 09:48:38 +00:00
augustss e3a6ac4328 Install temporary page fault handler while doing PCI config read and
write since these can generate MCHK for missing devices.
2002-09-27 09:46:01 +00:00
thorpej 6ffacdd722 Oops, missed one place to use the STREQ() macro. 2002-09-27 06:30:05 +00:00
thorpej 98f020f181 Fix a latent bug uncovered by the new autoconfiguration code: make
sure the "ofbus" device carries the "ofbus" interface attribute.

This is the other part of the fix for PR #18433.
2002-09-27 06:23:09 +00:00
itojun 501bf56348 license clarification from the author, via openbsd
>BSD-style license from Serge Vakulenko <vak@cronyx.ru>
2002-09-27 06:20:30 +00:00
thorpej 64e87fb459 Skip pspec-less entries (root nodes) in cfparent_match(). This fixes
the "kernel crashes" component of PR #18433.
2002-09-27 06:12:55 +00:00
thorpej 97741f5198 Some ports (like Amiga) want to use the config machinery VERY early
(to initialize the console).  Support this when doing cfdriver lookup.
2002-09-27 05:45:03 +00:00
onoe 30d884d47c Add support for SIOC[SG]80211BSSID, SIOC[SG]80211CHANNEL.
Change the name of structure ieee80211_bss to ieee80211_node, which is
used for management of stations in hostap mode, and peers in ibss mode.
Split off ic_opmode, ic_phytype from ic_flags.
Preparation to merge 'wi' driver into 80211subr.c.
2002-09-27 05:36:04 +00:00
onoe 23ab1acf02 Change ifmb_baudrate for IFM_IEEE80211_DS5: 5Mbps -> 5.5Mbps 2002-09-27 05:27:20 +00:00
thorpej d7067078a4 Compare the driver name against "ledma", rather than looking for
&ledma_ca.
2002-09-27 05:07:09 +00:00
onoe f529393822 Add check suser() for SIOCS80211BSSID, SIOCS80211CHANNEL. 2002-09-27 04:08:40 +00:00
thorpej 6c88de3b53 Introduce a new routine, config_match(), which invokes the
cfattach->ca_match function in behalf of the caller.  Use it
rather than invoking cfattach->ca_match directly.
2002-09-27 03:17:40 +00:00
thorpej d1ad2ac4f2 Rather than referencing the cfdriver directly in the cfdata entries,
instead use a string naming the driver.  The cfdriver is then looked
up in a list which is built at run-time.
2002-09-27 02:24:06 +00:00
thorpej bb34bc8caa When in a match routine, the cfdata we're passed always references
our own cfdriver, so don't bother comparing the names, since they
will always match.
2002-09-27 02:16:28 +00:00
wrstuden 470e4ff3ac Remove vestiges of the syncicache() call originally in powerpc/ofwboot
before rev 1.4. This change makes OF 2.4 machines actually boot, and
it works fine on my OF 2.01 machine. No reports of failures on other
archs.

I expect this change is fine as the original code flushed the just-loaded
ofwboot out of the cache, conditionalized on FIRMWORKSBUGS. In rev.
1.4, the code got in-lined, and changed to actually flush low memory
out of the cache. Since machines kept booting, I expect the firmware
was really flushing the binary out of the cache, so we're fine.
2002-09-27 00:32:17 +00:00
martin e6c17aca91 If we wi_stop the card in wi_shutdown, better do that before the frontend
removes power from the pcmcia slot (inside the sc_disable hook).
2002-09-26 23:55:43 +00:00
martin 67bd51c724 Set error = 0 (instead of EINVAL) when it is later tested against != 0.
This allows using wiconfig while the interface is not (yet) marked IFF_UP
again.
2002-09-26 23:47:57 +00:00
martin aba5b183cd In wi_shutdown only call wi_stop if sc_enabled is set (don't try to send
commands to a card that is not powered up - it will always fail)
2002-09-26 22:51:30 +00:00
simonb ad2a80f193 Move a brace that is in the wrong position when changes from FreeBSD
were added in rev 1.51.  This may fix the "N lost blocks" problem some
people have noticed.
Reviewed by fvdl.
2002-09-26 21:35:27 +00:00
thorpej eaaed308cf Compare driver name, don't check against zstty_cd. 2002-09-26 20:51:44 +00:00
thorpej c75e60ed75 Get the pointer to the driver name early, rather than constantly
deferencing the cfdriver pointer.
2002-09-26 20:45:42 +00:00
bouyer 992abe6e5b In nfsrv_create(), kill an extra PNBUF_PUT() in the NFSv2 mknod case. The
pnbuf has already been freed by VOP_MKNOD. This should have been removed in
rev 1.60.
Should fix PR 18013, OK'd by fvdl.
2002-09-26 20:41:25 +00:00
bouyer 7005ca7253 nfsrv_commit(): Properly handle the case cnt == 0, which means "flush to
end of file". Calling VOP_FSYNC with start == end triggers a DIAGNOSTIC
check. Noticed with NFSv3 Linux clients. OK'd by fvdl.
2002-09-26 20:38:04 +00:00
thorpej e40e3c96cf G/c extern reference to ioasic_cd. 2002-09-26 20:37:42 +00:00
thorpej 6c87786450 G/c external reference to ibus_cd. 2002-09-26 20:36:51 +00:00
thorpej 958db4d3b7 No need to check that parent's cfdriver is ioasic_cd. 2002-09-26 20:36:14 +00:00
thorpej 98f612ef11 No need to check that that parent's cfdriver is ibus_cd. 2002-09-26 20:33:25 +00:00
thorpej 7f33c64040 Get the pointer to the driver name early, rather than constantly
deferencing the cfdriver pointer.
2002-09-26 20:30:50 +00:00
thorpej c12a2960bb In sysfpgamatch(), the expression "cf->cf_driver == &sysfpga_cd" is
always true, so just return the constant 1.
2002-09-26 20:25:41 +00:00
thorpej 3280b330bb Get the pointer to the driver name early, rather than constantly
deferencing the cfdriver pointer.
2002-09-26 20:18:24 +00:00
thorpej 88b0700853 Const poison. 2002-09-26 20:02:47 +00:00
thorpej 89dd8c023c Get the pointer to the driver name early, rather than always dereferencing
the cfdriver pointer.
2002-09-26 19:04:59 +00:00
thorpej 274c086b22 Remove <sys/map.h> 2002-09-26 18:54:30 +00:00
thorpej 69de06f36a No need to make sure parent's cfdriver == &ioasic_cd. 2002-09-26 18:30:54 +00:00
onoe e8bc592172 Oops. forgot to delete old line in previous commit:
| Changed the name for resource id 0xfd45 to match the reality.
|	WI_RID_OWN_BEACON_INT -> WI_RID_CUR_BEACON_INT
2002-09-26 16:58:44 +00:00
onoe 55ef0eb8b9 Changed the name for resource id 0xfd45 to match the reality.
WI_RID_OWN_BEACON_INT -> WI_RID_CUR_BEACON_INT
2002-09-26 16:52:44 +00:00
darrenr aa1492743a Fix a case where M_COPY_PKTHDR() wasn't being used prior to calling bpf_mtap 2002-09-26 16:07:03 +00:00
wiz 079c182094 Kilo abbreviation is a small k (PR 18408). 2002-09-26 15:06:47 +00:00
onoe e3261bdc94 initialize pkthdr for dummy mbuf before calling bpf_mtap(). 2002-09-26 13:06:56 +00:00
jdolecek a120eaa3ea use ufs_balloc_range() rather than local (mostly identical, but with some
bugs) ext2fs variant
2002-09-26 11:06:36 +00:00
martin 8b125f54cb Remove include of <sys/map.h>, since it's gone now (and wasn't used
here anyway).
2002-09-26 08:49:34 +00:00
grant 8dca22997c ep0 at isa? -> ep* (ala GENERIC), so ep instances during install are
consistent with GENERIC.
2002-09-26 07:30:17 +00:00
ad 989a076f27 Update for dzattach() change. 2002-09-26 05:54:07 +00:00
thorpej 19eeb8d563 Bump version to 1.6I -- device parent spec change. 2002-09-26 04:12:27 +00:00
thorpej fc0fe0347d Overhaul the way parent attachments are specified; instead of using
a vector of indices into the cfdata table to specify potential parents,
record the interface attributes that devices have and add a new "parent
spec" structure which lists the iattr, as well as optionally listing
specific parent device instances.

See:

    http://mail-index.netbsd.org/tech-kern/2002/09/25/0014.html

...for a detailed description.

While here, const poison some things, as suggested by Matt Thomas.
2002-09-26 04:07:35 +00:00
matt b6b04cb00c In mftb(), make sure we say we are clobbering cr0. 2002-09-26 01:13:32 +00:00
augustss 7656699497 Remove unused variable so the file compiles again. 2002-09-25 23:24:37 +00:00
augustss 0c65ba2386 Don't install map.h now that it's gone. 2002-09-25 22:47:34 +00:00
thorpej ca5fd3bd46 Garbage-collect the old rmap code. 2002-09-25 22:27:38 +00:00
thorpej 71404bb533 Don't include <sys/map.h>. 2002-09-25 22:21:01 +00:00
thorpej dc5c7db69d Don't use rmaps; use extent maps. 2002-09-25 21:58:39 +00:00
thorpej d3f6afbf48 Don't use rmaps; use extent maps instead. 2002-09-25 21:25:39 +00:00
thorpej 233188a90d Set extio_ex_malloc_safe at the end of cpu_startup(). 2002-09-25 20:05:26 +00:00
manu deca50b66c Fill BADVADDR and CAUSE in sigcontext. We still don't restore them, but
it actually fixes a problem:
When /bin/sh gets a SIGSEGV, its signal handler calls brk and the offending
instruction is retried. Usually it gets another SIGSEGV, and things loops
until it pases without the SIGSEGV. This is the normal mode of operation, and
it can be reproduced on IRIX by a 10kB shell script starting by echo /*

However... the signal handler checks for BADVADDR in the saved registers
in struct sigcontext. If it does not find it, it gives up and exit instead
of retrying. Filling the field enables us to carry on normal operation
(which is to get dozens of SIGSEGV) instead of getting a failure at the
first SIGSEGV.
2002-09-25 19:39:16 +00:00
thorpej da13a0afc7 Replace resource map usage with extent maps. 2002-09-25 19:30:22 +00:00
manu 7216eba62a We now fill the struct siginfo when requested (SA_SIGINFO flag to sigaction) 2002-09-25 19:09:50 +00:00
cgd e4cb5327e8 For ISA intrs 0-15, use string of the form "isa intr NN", rather than
just "isa intr".  Having vmstat -i show multiple "isa intr" lines w/
different counts is less than desirable.  Reviewed by thorpej.
2002-09-25 17:05:26 +00:00
darrenr 4c314b9a9f Keep m_pkthdr.len updated correctly and use it rather than a loop to find
out the total length of the packet.
2002-09-25 16:10:15 +00:00
reinoud 360e94d0c9 Fix some small unclear documentation and cleanup a bit... 2002-09-25 14:21:07 +00:00
martti 81e8d78cd4 Add one space between "#option" and "<tab>IPFILTER_DEFAULT_BLOCK" 2002-09-25 11:49:48 +00:00
itojun 167b0b8ebd minor KNF 2002-09-25 11:19:23 +00:00
itojun 9d27b7540e one too many whitespace 2002-09-25 07:37:12 +00:00
itojun c40ace5ea0 KNF 2002-09-25 07:24:06 +00:00
martti 15e6ca78da Fix ipmon problems on 64-bit platforms (PR#17403 and PR#17404). 2002-09-25 06:43:17 +00:00
mycroft 5031fe3837 Update copyright. 2002-09-25 06:23:29 +00:00
mycroft 04f09a4b0c Additional fixes to make 16 targets work on FAS366. 2002-09-25 05:19:20 +00:00
pooka d623a21172 iwic@pci 2002-09-24 22:07:46 +00:00
pooka 218f60746c Driver for Winbond W6692 passive ISDN cards.
Ported from the FreeBSD driver by Ilpo Ruotsalainen <lonewolf@cubical.fi>,
and reviewed by Martin.
2002-09-24 22:05:19 +00:00
uwe b2d1377685 Drop vga at pci that has no chance of working anyway. Add commented out igsfb at pci.
Add wscons pseudo devices and some more wscons options.
2002-09-24 18:27:55 +00:00
uwe be3f67ca41 Add some preliminary support for setting up the CyberPro in Netwinder.
Setup sequence obtained from Krups OFW with some CyberPro-specific
magic from Linux driver.  The driver still has a lot of hardcoded
stuff, but it is useful enough to bring up wscons on netwinder.

XXX: Proper console attachment needs to be written (the driver was
originally developed on sparc, where our approach to attaching console
is totally different).

Caveat emptor!
2002-09-24 18:17:24 +00:00
thorpej 787cbc6921 Fix some const warnings. 2002-09-24 18:14:35 +00:00
thorpej c4058929fe Fix some const warnings. 2002-09-24 17:18:45 +00:00
provos 5eeb6241c7 enable systrace. approved by itojun and perry 2002-09-24 14:47:56 +00:00
sommerfeld 17aee57321 Relax overly-conservative TCP option parsing used by ipnat when
hunting for an MSS option to clamp.  The previous code assumed that at least
one more byte of options (such as a TCPOPT_EOL) would follow the MSS
option; now, we allow the MSS option to end on the last byte of the
TCP header.

Packets have been observed "in the wild" with a TCP header length of
'6' (24 bytes.. 20 bytes fixed header, 4 bytes options) with a 4-byte
MSS option exactly filling the 4 bytes of options payload and no
following TCPOPT_EOL.

RFC793 is quite explicit that the EOL byte:

	" .. need only be used if the end of the options would not
	otherwise coincide with the end of the TCP header."
2002-09-24 14:14:25 +00:00
ad 002a769a08 Remove the TCWSCONS config now that zstty can do flow control on IOASIC
machines.
2002-09-24 13:30:39 +00:00
mycroft 06c9e05c76 Oof, this driver needs a lot more work to support 16 targets. 2002-09-24 13:29:44 +00:00
ad d5a6fc237b Deal with the strange SCC wiring on TC IOASIC machines. Thanks to Bill
Studenmund and Jonathan Stone for useful comments.
2002-09-24 13:23:31 +00:00
ad f8ec17dbbc Make the self-test logic match zsms, removing a 300ms delay on open. 2002-09-24 12:53:30 +00:00
shin 74f9891db4 'options USERCONF' is already in TX3912. 2002-09-24 11:16:37 +00:00
jdolecek 7fe050c591 add options QUOTA; pointed out by Mattias Karlsson
also move options NFSSERVER after options SOFTDEP
2002-09-24 09:34:39 +00:00
pooka 5993927201 regen 2002-09-24 09:25:47 +00:00
pooka 3cd6af88f6 Fix Asus ISDN card ID to be the actual device ID instead of the vendor ID 2002-09-24 09:24:40 +00:00
ad 5baa2bf49a Zero fill the newly allocated zs_chanstate. 2002-09-24 07:06:08 +00:00
ad 176dcfaf3d On pmax, drop into DDB on break. 2002-09-24 06:19:09 +00:00
itojun 6a3e3549fe backout recent changes, for PR 18392.
bpf_mtap() gets called with not-well-initialized mbuf, so we need to go through
it without touching m->m_pkthdr.len and such.  it's part of our bpf_mtap() API
(at least today).
2002-09-24 03:14:43 +00:00
bsh 63422177a6 make this compile again on ports that don't have bus space stream methods. 2002-09-24 02:30:15 +00:00
oster 6d1870476a Nuke some ancient debugging code. 2002-09-24 00:53:58 +00:00
oster 8a5a36de43 Cleanup the comment formatting a bit. 2002-09-24 00:12:55 +00:00
oster f0efca630a Nuke a couple of unneeded #defines. 2002-09-23 23:53:54 +00:00
thorpej ac1b37ae05 Add support for multiple cfdata tables to the internals of the
autoconfiguration machinery, derived from PR #2112.

More work is left to do, including revamping how matches against
a candidate parent are done.
2002-09-23 23:16:06 +00:00
gmcgarry 627c1b14f8 Back-out previous. 2002-09-23 21:35:42 +00:00
thorpej 4f4dc45bbb Jumbo patch, from David Young <dyoung@ojctech.com>, with small tweaks
by me:
* Speed up reading/writing buffers from the hardware by avoiding
  slow forward seeks.  In preparation to use the optimization, do
  not read overlapping bytes.  This is currently disabled, but can
  be enabled with OPTIMIZE_RW_DATA.
* Hand 802.11 and Prism-specific frames to BPF.  User can watch these
  frames by specifying an alternate DLT to e.g. tcpdump(8).
* Add support for SIOC[SG]80211BSSID and SIOC[SG]80211CHANNEL.
* Issue join requests and track join/create state through link-status
  notifications.
* Split wi_rxeof into separate routines for receiving Ethernet II,
  802.11 data, and 802.11 management frames.
* Bug fix: Account for aligning m_data to a word boundary in the Rx
  buffer size check.
* Bug fix: Check for LLC/SNAP even if the firmware tells us the frame
  is Ethernet II, as the firmware sometimes gets this wrong.
* Process as many events as possible when we get an interrupt, using
  a simple heuristic to avoid reprocessing an event (which can have
  bad side-effects).  Clamp the time spent in the interrupt handler
  to 4ms.
* Redo the timeout loops to be consistent and less prone to error.
* Add delays to timeout loops which were missing them, so that a
  fast CPU won't win the race.
* Borrow some timeout loop values from the linux-wlan-ng driver,
  which seems to reflect a high level of clue (due to direct support
  from Intersil).
* Get rid of silly wi_read_data(..., len + 2) idiom; simply round up
  in wi_read_data() and wi_write_data().  Also, protect against a
  length of 0.
* Name some frequently-used constants.  Correct spelling.  Other style nits.
* Bug fix: On Prism, set Create IBSS register to 0 *always*.  The meaning
  of Create IBSS == 1 is join an IBSS or *ESS*, and we do not want to
  join an ESS, because that would put us in an inconsistent state.  0
  is the right value for Prism.
* Bug fix: Clean up state at the top of wi_init(), in the event that
  we don't reach the bottom.
* Simplify wi_start() by always providing an RFC1042-encoded 802.11
  frame to the firmware.
* Larval powersave support for HostAP mode, enabled by WI_HOSTAP_POWERSAVE.
* Bug fix: Call wi_stop() from wi_shutdown().
* Bug fix: sync media options with HostAP mode in wi_sync_media().
* In wi_media_status(), inquire firmware for current media state if
  media == auto.  From FreeBSD.
* Clean up the way buffer lengths are computed by using pointer
  arithmetic rather than magic constants.
* Swap the order of comparisons in addr_cmp() for speed.
* Bug fix: Send ReAssoc Response instead of Assoc Response to a
  ReAssoc Request.
* Bug fix: Copy SSID using the correct size.
* Give more meaningful names to offsets in a wi_frame.
* Bug fix: Assign the right values to the named constants for
  Rx frame encoding.
* Get rid of useless SNAP constants.
2002-09-23 14:31:27 +00:00
thorpej 8972c9d466 Make the PCI reset more robust. From David Young <dyoung@ojctech.com>. 2002-09-23 14:12:35 +00:00
itojun 01965cd2e0 fix signed/unsigned pointer mixup 2002-09-23 13:43:42 +00:00
itojun 38e6856368 revert mtudisc_timeout value to the old one if update falis 2002-09-23 13:43:27 +00:00
itojun ce1bd42a2c length field on PADN option, before jumbo payload option was wrong.
sync w/kame
2002-09-23 13:28:55 +00:00
itojun 0a734b348e better fix to PR 18163 ("deprecated" flag manipulation). sync w/kame 2002-09-23 13:16:52 +00:00
isaki 6300240677 It was a sample config file, so there is no need to maintain anymore.
Requested by minoura@netbsd.org
2002-09-23 07:09:54 +00:00
simonb 8292cf7b00 Don't return a value in a void function. 2002-09-23 05:59:01 +00:00
simonb aae67f532c Remove a meaningless type qualifier on a cast. 2002-09-23 05:57:44 +00:00
simonb 4e3613273b Remove breaks after returns, unreachable returns and returns after
returns(!).
2002-09-23 05:51:10 +00:00
simonb 6ddc09dab1 Put storage class first in "static const" declaration. 2002-09-23 05:03:03 +00:00
chs cc28b18bbb don't print anything when attaching as part of a FAS.
it doesn't add any information and it messes up the autoconf output.
2002-09-23 04:57:59 +00:00
simonb 03d61a28e4 Remove an extern declaration for the "pim6stat" variable; the only other
occurance of this is a static variable in ip6_mroute.c.
2002-09-23 04:56:58 +00:00
simonb c8cb48355a Commit remaining part of PR1623 so the code in the PR actually gets
executed(!).
2002-09-23 04:55:09 +00:00
simonb 67f65715f9 ttspeedtab() is a function that returns an int, and returns -1 if
there's an error.  Store the result of this function in a signed
variable instead of an unsigned variable before checking if the return
value is greater than zero.
2002-09-23 04:49:32 +00:00
oster 3ea42f1599 lockTable is not needed for AddToWaitersQueue(). Thanks to Simon B.
(cleanup a couple comments while I'm here.)
2002-09-23 04:34:46 +00:00
simonb f8a2d422d1 uio_resid is a size_t (ie, unsigned), so don't check if it's less than 0. 2002-09-23 04:26:17 +00:00
simonb 333a151694 fp->f_count is unsigned, don't check if it's less than zero. 2002-09-23 04:19:16 +00:00
oster 8f2c8387e2 Nuke a couple of unreached 'break's. Thanks (again) to Simon B. 2002-09-23 04:19:05 +00:00
oster eb144de792 The 'reconDesc' argument to rf_SignalQuiescenceLock() is a holdover from
simulation code. *poof*  Thanks to Simon B.
2002-09-23 04:14:20 +00:00
oster 7db6bcd2ed CheckCvscanState never prints the file and line number. Thanks to Simon B. 2002-09-23 04:02:29 +00:00
oster 7370acda44 Nuke 'lockflag', a holdover from the simulation code. Thanks to Simon B. 2002-09-23 03:53:14 +00:00
christos 6079632012 fix unitialized variable. from simonb. OI 2002-09-23 03:44:56 +00:00
oster d1ef62f266 rf_lkmgr_mutex_destroy is currently unused. Thanks to Simon B. 2002-09-23 03:44:18 +00:00
oster 1c67e9d94b Hide more stuff inside RF_DEBUG_SHUTDOWN. Add a prototype for
rf_FreeShutdownEnt() while we're here.  Thanks to Simon B.
2002-09-23 03:42:50 +00:00
oster e875ee2d89 Nuke "baddisk". Thanks to Simon B. 2002-09-23 03:40:28 +00:00
oster 3ac36660fa Another 'unblockNode' goes *poof*. Also nuke an instance of an
(effectively) unused layoutPtr.  Thanks to Simon B.
2002-09-23 03:38:51 +00:00
simonb 2a2b50a0d1 Don't return values in a couple of void functions. 2002-09-23 03:37:59 +00:00
oster 9d518ec378 Clobber basically unused 'pda', and 'unblockNode' and 'wrUnBlock'.
Thanks to Simon B.
2002-09-23 03:36:08 +00:00
oster a8c038ad35 struct proc *p was only assigned to. Thanks Simon B. 2002-09-23 03:31:51 +00:00
oster f1529267b8 Make this build w/ DEBUG. 2002-09-23 03:28:41 +00:00
oster 4b1300c83f The declaration for rf_GetSpareTableFromDaemon might be supplied in
a header file, but that doesn't help here if said header is not pulled in!
(Hi Simon :) )
2002-09-23 03:27:17 +00:00
itojun 8e89eeb639 missing include - sys/conf.h 2002-09-23 03:20:51 +00:00
itojun 393f467c67 make it compile with DIAGNOSTIC 2002-09-23 03:17:36 +00:00
simonb daa3345504 Don't need declarations for rf_copyback_in_progress and
rf_GetSpareTableFromDaemon() - these are already supplied
in various header files.
2002-09-23 03:04:27 +00:00
oster 3e5db6c469 Ooops.. should have included this 'row' with the last change. 2002-09-23 02:55:03 +00:00
oster d5e5932f5e 'row' was defined and set, but never used. *poof* Thanks to Simon B. 2002-09-23 02:53:58 +00:00
oster b0da983806 Neither force nor retcode are used. *poof* Thanks to Simon B. 2002-09-23 02:51:43 +00:00
oster d5e793770c Remove unneeded variables and lame assignments. Thanks Simon B.! 2002-09-23 02:49:14 +00:00
oster 23b87a323a bytesPerStripeUnit is set, but never used. Thanks to Simon B. for pointing
this out.
2002-09-23 02:40:07 +00:00
oster 35d3621d0c dataBytesPerStripe is set, but never used. *poof* 2002-09-23 02:35:24 +00:00
augustss 83ef67ef1d Add a struct shared by all unit and terminal descriptors. 2002-09-22 23:21:30 +00:00
augustss 9859bd8412 Increasre the reset recovery time. 2002-09-22 23:20:50 +00:00
scw 9393fbe941 Belated commit of code to calculate the delay constant used by delay(). 2002-09-22 20:57:23 +00:00
scw f9c02a8bd0 An initial NetBSD/sh5 TODO list. 2002-09-22 20:54:33 +00:00
scw d942ee4018 - Setup the cpu-specific cache manipulation function pointers.
- Add sh5_nmi_clear().
2002-09-22 20:52:12 +00:00
scw f1780fd0ae Add sysfpga_nmi_clear(). This resets the NMI one-shot in Cayman's
System FPGA chip.
2002-09-22 20:51:09 +00:00
scw f9a4918dc0 INT1 Select is at offset 0x72, not 0x71. 2002-09-22 20:49:27 +00:00
scw 84b2ccee63 Add sh5_nmi_clear(), a board-specific hook for clearing the NMI one-shot. 2002-09-22 20:48:09 +00:00
scw aab9041eea In validate_kipt(), cacheable TLB entries are now legal. 2002-09-22 20:46:32 +00:00
scw badd3d5d65 Performance tweak to the copy_page/zero_page asm code.
Allocate/Prefetch one cache-line ahead of the one we're about to deal with.

This reduces the chances of the cpu stalling while waiting for the cache
to flush a dirty line in order to satisfy the Allocate/Prefetch request.
2002-09-22 20:45:31 +00:00
scw 5a529aa332 - Add a /e option to db_stack_trace_print() which dumps the saved
registers in any trap/interrupt exception frame found.

- Slight tweak to more accurately detect the correct call-site when
  looking for a function's prologue.
2002-09-22 20:31:18 +00:00
jdolecek 32313a3411 pull only "opt_altq_enabled.h" in if_altq.h, and include altqconf.h
explicitly in single file which implicitly needed it (altq_conf.c)

this avoids pulling in implicit dependency on <sys/conf.h> to every
file including <net/if.h> (which includes <altq/if_altq.h> to get altq
related structures)
2002-09-22 20:09:15 +00:00
jdolecek ea3e4c9a2a <sys/conf.h> and <sys/device.h> are not needed here 2002-09-22 19:35:22 +00:00
jdolecek e305eb63e8 don't need <sys/conf.h> here 2002-09-22 19:32:54 +00:00
jdolecek eb337a8a22 don't seem to need <sys/conf.h> or <net/if.h> here 2002-09-22 19:15:09 +00:00
mycroft b200651116 Tell the scsibus layer we have 16 targets on the FAS366. 2002-09-22 19:05:11 +00:00
ad 25441c6b4a - Fix a command accounting bug.
- Don't use ID 0, since 1.x firmware may not like it.
2002-09-22 18:59:00 +00:00
jdolecek c0f46c2a40 check_pty(): make sure to zero the newly allocated pt_softc structure 2002-09-22 18:13:38 +00:00
martin 1fc22808f2 Apply a patch from Murray Armfield in PR kern/18372: bring in some changes
from FreeBSD to improve receive performance.
2002-09-22 10:13:32 +00:00
simonb 63096043b3 Use "#define\t" instead of "#define ". 2002-09-22 08:30:56 +00:00
chs f01058c887 rename the existing pmap_remove_all() here to pmap_page_remove()
(ala the x86 pmap) to avoid conflicting with the new pmap interface
function of the same name.
2002-09-22 07:56:57 +00:00
chs c081614ea2 it really helps to get the stub right before cutting + pasting it 27 times.
alas, I did not.  doh.
2002-09-22 07:53:39 +00:00
chs 94a62d45d6 add a new flag VM_MAP_DYING, which is set before we start
tearing down a vm_map.  use this to skip the pmap_update()
at the end of all the removes, which allows pmaps to optimize
pmap tear-down.  also, use the new pmap_remove_all() hook to
let the pmap implemenation know what we're up to.
2002-09-22 07:21:29 +00:00
chs 2b73cf7ece encapsulate knowledge of uarea allocation in some new functions. 2002-09-22 07:20:29 +00:00
chs f54a093e81 many improvements:
- use struct vm_page_md for attaching pv entries to struct vm_page
 - change pseg_set()'s return value to indicate whether the spare page
   was used as an L2 or L3 PTP.
 - use a pool for pv entries instead of malloc().
 - put PTPs on a list attached to the pmap so we can free them
   more efficiently (by just walking the list) in pmap_destroy().
 - use the new pmap_remove_all() interface to avoid flushing the cache and TLB
   for each pmap_remove() that's done as we are tearing down an address space.
 - in pmap_enter(), handle replacing an existing mapping more efficiently
   than just calling pmap_remove() on it.  also, skip flushing the
   TSB and TLB if there was no previous mapping, since there can't be
   anything we need to flush.  also, preload the TSB if we're pre-setting
   the mod/ref bits.
 - allocate hardware contexts like the MIPS pmap:
   allocate them all sequentially without reuse, then once we run out
   just invalidate all user TLB entries and flush the entire L1 dcache.
 - fix pmap_extract() for the case where the va is not page-aligned and
   nothing is mapped there.
 - fix calculation of TSB size.  it was comparing physmem (which is
   in units of pages) to constants that only make sense if they are
   in units of bytes.
 - avoid sleeping in pmap_enter(), instead let the caller do it.
 - use pmap_kenter_pa() instead of pmap_enter() where appropriate.
 - remove code to handle impossible cases in various functions.
 - tweak asm code to pipeline a little better.
 - remove many unnecessary spls and membars.
 - lots of code cleanup.
 - no doubt other stuff that I've forgotten.

the result of all this is that a fork+exit microbenchmark is 34% faster
and a fork+exec+exit microbenchmark is 28% faster.
2002-09-22 07:19:43 +00:00
chs 55e1f79335 add pmap_remove_all() hook (empty on most platforms so far). 2002-09-22 07:17:08 +00:00
gmcgarry adc9fb5f5b MD component of the new cpu_switch() interface. Introduces nextrunqueue(),
cpu_idle() and new cpu_switch() to replace the old cpu_switch()
which did the lot.  Runs leaner without overly blocking interrupts.

Includes cleanup of the RAS code to make use of callee-saved registers.

Benchmarks on DX4 @ 100MHz reveal a slight performance improvement
but probably not statistically signficant.  More TBD to verify this.

Changes passed a pounding on Athlon @ 1GHz too.
2002-09-22 06:51:10 +00:00
simonb eb4524608c Only need to define __HAVE_MD_RUNQUEUE once here... 2002-09-22 05:56:32 +00:00
gmcgarry 5a06fee353 Add UVM_PAGE_IDLE_ZERO. 2002-09-22 05:48:46 +00:00
gmcgarry 45d41256f3 Update for cpu_switch() prototype change. No functional change. 2002-09-22 05:40:35 +00:00
gmcgarry 7fe2ef36b9 Update for cpu_switch() prototype changes. No functional change. 2002-09-22 05:39:24 +00:00
mycroft f40651a8e2 Remove redundant declaration of ether_ntoa() so this builds again. 2002-09-22 05:38:30 +00:00
gmcgarry 6a6ea308fd Separate the scheduler from the context switching code.
This is done by adding an extra argument to mi_switch() and
cpu_switch() which specifies the new process.  If NULL is passed,
then the new function chooseproc() is invoked to wait for a new
process to appear on the run queue.

Also provides an opportunity for optimisations if "switching to self".

Also added are C versions of the setrunqueue() and remrunqueue()
low-level primitives if __HAVE_MD_RUNQUEUE is not defined by MD code.

All these changes are contingent upon the __HAVE_CHOOSEPROC flag being
defined by MD code to indicate that cpu_switch() supports the changes.
2002-09-22 05:36:48 +00:00
gmcgarry dca80f08fd Add __HAVE_MD_RUNQUEUE flag for MD code to override MI run queue primitives. 2002-09-22 04:11:32 +00:00
oster 7264a7cc8c RAIDGETBUF and RAIDPUTBUF were #defines that were only used in
one place.  Simplify things by removing them, and clean up more
unneeded instances of 'unit' and 'rs'.
2002-09-22 03:56:08 +00:00
oster fe654a583a rf_flags wasn't being used. *poof* 2002-09-22 03:46:40 +00:00
oster f99563a0ff A little housecleaning to nuke stuff that was unused. 2002-09-22 03:44:42 +00:00
dbj 53ce9bee47 explicitly set booted_partition to 0, rather than
rely on default value.  It should actually be extracted
from the bootpath instead, but that involves translating
from apple partition map entries to netbsd disklabel entries.
2002-09-22 03:21:44 +00:00
dbj ca0ad7da63 undo an accidentally committed change that was
included in move of bootpath alias expansion
2002-09-22 03:10:14 +00:00
dbj 9343810eed move bootpath alias expansion from initppc() into canonicalize_bootpath() 2002-09-22 03:04:31 +00:00
thorpej cccd4bd402 Fix thinko in the SIOC{G,S}80211CHANNEL and SIOC{G,S}80211BSSID
ioctls.
2002-09-22 01:56:08 +00:00
manu 80ee637534 - Introduce a e_fault field in struct proc to provide emulation specific
memory fault handler. IRIX uses irix_vm_fault, and all other emulation
use NULL, which means to use uvm_fault.

- While we are there, explicitely set to NULL the uninitialized fields in
struct emul: e_fault and e_sysctl on most ports

- e_fault is used by the trap handler, for now only on mips. In order to avoid
intrusive modifications in UVM, the function pointed by e_fault does not
has exactly the same protoype as uvm_fault:
int uvm_fault __P((struct vm_map *, vaddr_t, vm_fault_t, vm_prot_t));
int e_fault __P((struct proc *, vaddr_t, vm_fault_t, vm_prot_t));

- In IRIX share groups, all the VM space is shared, except one page.
This bounds us to have different VM spaces and synchronize modifications
to the VM space accross share group members. We need an IRIX specific hook
to the page fault handler in order to propagate VM space modifications
caused by page faults.
2002-09-21 21:14:54 +00:00
mycroft 73d9032bfc Fix biff in previous change. 2002-09-21 20:26:49 +00:00
mycroft b1ce597546 Ignore bus exception errors here.
XXX I'm not sure exactly why this is necessary...
2002-09-21 19:49:47 +00:00
drochner 69ea314996 call the capability list ptr by its name 2002-09-21 19:14:14 +00:00
drochner 7bc4622603 correct caplist head for Cardbus bridges 2002-09-21 18:56:03 +00:00
christos 6f3945a88d MNT_GETARGS support 2002-09-21 18:10:34 +00:00
christos 10b6e12acc VFS_GETARGS support 2002-09-21 18:10:04 +00:00
christos 6868d0a7d6 MNT_GETARGS support 2002-09-21 18:08:27 +00:00
christos 2d05cb6a47 Add special handling of VFS_GETARGS (similar to VFS_UPDATE) so that it
can be done non-root, and it does not affect the mount lists.
2002-09-21 18:07:52 +00:00
christos 39f324a802 Add MNT_GETARGS that retrieves fs specific arguments. Also add an empty
#define for vsf_showexport()
2002-09-21 18:06:08 +00:00
chs 2841e1341c add strtoul.c, it's now used in MI code. 2002-09-21 17:45:16 +00:00
thorpej 8ad8dd07df Nuke the old SunOS-style ioctl defns. 2002-09-21 17:02:46 +00:00
mycroft f822116056 FFS would help... 2002-09-21 16:51:54 +00:00
mycroft 48132121ca Fix the device name for ptc so ptys actually work again. 2002-09-21 16:38:50 +00:00
drochner ec517fd6a5 -corrected "MSI" capability
-added some new subclasses and capabilities
-move capability list printing into a separate function and call it
 for each header type (not type 0 only)
2002-09-21 16:19:34 +00:00
mycroft 80eaffef1b Force synchronous negotiation off even if the target initiates it, by setting
minsync to 0.  It may be possible to make this work, but I don't know how.
2002-09-21 16:18:30 +00:00
mycroft e4b5a96a09 Enable SCSI target devices, and explicitly disable wide negotiation for esp. 2002-09-21 16:17:46 +00:00
drochner 8dba6ca13a -correct the "MSI" capability
-add some new subclasses and capability IDs
2002-09-21 16:16:31 +00:00
perry 87a452620b change a tab to a space so commenting elansc isn't as ugly 2002-09-21 15:24:29 +00:00
oster 86a6fcfe0a Minor cleanup/reformatting. 2002-09-21 14:47:07 +00:00
petrov e2107815a0 Use /options instead of /chosen to find out where console is.
(found by Rafal Boni).
2002-09-21 09:29:33 +00:00
oster 2a10c08e0a #if 0 more stuff, per Krister's list. Thanks Krister!
(RAIDframe is now at a shade under 174K in GENERIC on i386)
2002-09-21 07:12:46 +00:00
oster 61da76cbbe #if 0 out one other function, and shuffle DEBUG code. Actually
reclaims another 14K!?!?!!  Thanks Krister!
2002-09-21 07:05:06 +00:00
chs 208b369512 add missing anon lock around call to uvm_anon_lockloanpg(). 2002-09-21 06:16:07 +00:00
oster 2876788c95 rf_RegisterReconDoneProc() isn't needed.
This is the last of the 'easy' ones that Krister made me aware of.
Total savings on i386 GENERIC kernel: 13151 bytes
RAIDframe in GENERIC is now at: 179033
Thanks again Krister!
2002-09-21 01:25:10 +00:00
oster 0efe63f46b rf_ReleaseBufferWaiter(s) were not being used! Thanks Krister! 2002-09-21 01:21:19 +00:00
oster 580f8b6e1e rf_FreePhysDiskAddr is only needed by paritylogging.
rf_NumFailedDataUnitsInStripe is only needed by PQ, RAID6 and EVENODD.
rf_PrintAccessStripeMap is only needed for RF_DEBUG_MAP.

Thanks Krister!
2002-09-21 01:18:45 +00:00
chs eaa116beda tidy a bit. 2002-09-21 01:18:40 +00:00
chs 481bfd199b don't install a couple headers that are of no use in userland. 2002-09-21 01:17:44 +00:00
chs 1135d1326e remove protos for non-existant functions. 2002-09-21 01:16:59 +00:00
oster ce38eb4f8c rf_FreeAccessStripeMapComponent() goes too. Thanks Krister! 2002-09-21 01:14:22 +00:00
oster ce8b221a5e Nuke rf_AllocAccessStripeMapComponent(). Thanks Krister! 2002-09-21 01:12:49 +00:00
oster 22f5e1b6bb Garbage collect some old mountroothook stuff. Thanks Krister! 2002-09-21 01:09:43 +00:00
oster 265379416b #if 0 an unused stub. Thanks Krister! 2002-09-21 01:08:38 +00:00
oster 24b54af7fb Protect more stuff that's only used by the declustering code.
Thanks Krister!
2002-09-21 01:07:37 +00:00
oster a16692eff6 rf_UnbootRaidframe isn't used. rf_print_assert_panic_message is
only needed if RAID_DIAGNOSTIC is defined.  Thanks Krister!
2002-09-21 01:00:43 +00:00
oster cbf5be6ee1 rf_MakePropListEntry isn't used anywhere, so nuke it. Thanks Krister! 2002-09-21 00:56:57 +00:00
oster 34fb146d27 Shuffle #ifdefs to include stuff only if we're doing parity logging
stuff.  Thanks Krister!
2002-09-21 00:52:49 +00:00
oster 1b852f9959 Various "Fwd" versions of DAG creation functions arn't actually used anywhere!
Big thanks to Krister for noticing! (Saves another 10K on i386)
2002-09-21 00:50:10 +00:00
oster 5451819a68 rf_gcd, rf_free_2d_array, rf_make_1d_array, and rf_free_1d_array are
only used by the declustering bits.  Thanks Krister!
2002-09-21 00:47:59 +00:00
oster ec7171cd75 rf_CreateMirrorPartitionReadDAG is only used for chain declustering and
interdecluster.  Thanks Krister!
2002-09-21 00:40:18 +00:00
oster ea9e550f69 rf_CvscanConfigure() is a NOP. Nuke it. Thanks Krister! 2002-09-21 00:37:14 +00:00
nathanw 2cab03d64a In the fault handler, record growth of the stack, so that core dumps
actually contain the entire stack.
2002-09-21 00:29:04 +00:00
pooka e59b54da09 regen 2002-09-20 15:03:22 +00:00
pooka c19950f9de Add vendor Dynalink and a few devices by other manufacturers for use
in the iwic ISDN driver.
2002-09-20 14:59:58 +00:00
kanaoka c9aa0785fe Add support for "Intel 82801DB LPC".
kern/18348: From Andreas Wrede <andreas@planix.com>.
2002-09-20 14:52:39 +00:00
martti 3b553bac54 Added (commented out) IPFILTER_DEFAULT_BLOCK. 2002-09-20 10:39:48 +00:00
wrstuden 4f7aaad83c Re-add own alloc(). Recent issues with kernels randomly dying on boot
are related to using libsa's alloc(). Problems go away with this alloc().

The problem is that the libsa alloc() assumes we can grab memory off
the end of the program. That assumption doesn't work for us. It's
much better to use the alloc() we were using as it calls OF_claim()
to get memory.
2002-09-20 03:20:24 +00:00
oster 8a7eefa217 Another couple of functions that arn't used unless one is debugging RAIDframe. 2002-09-19 23:29:03 +00:00
oster 5faa29ac7d Introduce RF_DEBUG_MAP, and use it to ignore more rarely used code. 2002-09-19 23:23:19 +00:00
ad 600684fe1c Also initalize dz_sc for each line. 2002-09-19 23:22:56 +00:00
oster bc235cf75b Introduce and use RF_DEBUG_PSS, and save a few more bytes. 2002-09-19 22:52:52 +00:00
oster 0c1690c441 One signal will do, thanks. 2002-09-19 22:41:51 +00:00
oster c3bab92ad6 Nuke an obsolete comment. 2002-09-19 22:36:23 +00:00
nathanw 4b6782ddb3 Slight wording cleanup in a comment. 2002-09-19 19:04:50 +00:00
oster f6127d1018 Introduce and use RF_DEBUG_STATES to save a bit more kernel space. 2002-09-19 18:54:50 +00:00
nathanw 4a30a46eca Regen. 2002-09-19 18:53:00 +00:00
nathanw d6e8dbd366 Add AMD 761 system controller and ppb. 2002-09-19 18:50:45 +00:00
oster f1113b29c2 Nuke old (and now incorrect) comment. 2002-09-19 17:55:22 +00:00
ragge 5e6a28c57c Adopt to boot block change; check for LUN on SCSI disks also. 2002-09-19 17:41:58 +00:00
ragge a5beda58fa Remove the (today) unneccessary boot unit number conversions for rom-booted
disks. This allows for booting from different LUNs on SCSI disks.
2002-09-19 17:41:21 +00:00
ragge 77d3833330 Need strtoul() also. 2002-09-19 17:37:32 +00:00
manu e2da53c091 More definitions to get apmd building (but it is not functionnal yet) 2002-09-19 16:52:00 +00:00
scw e5b9e76f43 Start the search for a function's prologue by using the current PC - 4.
This ensures we start from the actual call site, not the return address.
The latter may actually be in the next consecutive function if the current
function has the __noreturn__ attribute and the alignment is Just Right.
2002-09-19 15:47:33 +00:00
scw c87975f571 - Tweak the output format slightly to show the frame address first.
- When dealing with an exception frame, we might as well print some
   useful details while we're passing through.
2002-09-19 13:04:02 +00:00
wiz ef50e53177 Fix typo in comment. 2002-09-19 12:00:11 +00:00