summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2002-12-25Do not force DEBUG to be defined here. hp300 is already slow enough.Miod Vallat
2002-12-25Initialize color palette from rasops settings (from sparc) rather thanMiod Vallat
from incorrect values, and restore it after X11 use (from macppc).
2002-12-24cleanup; ok costa@Alexander Yurchenko
2002-12-24Received a christmas card from Diego and Wim -- thanks!Hugh Graham
It works even, so enable the dhu.
2002-12-23regenMichael Shalayeff
2002-12-23a few more machines and devsMichael Shalayeff
2002-12-23no need to htons the port, it's already in net order, since we swapped it ↵Michael Shalayeff
back in tcpdump, worked fine (; from bdd@ieee.org
2002-12-23Change from array to single pf_pabuf (no longer need multiple buffers asRyan Thomas McBride
we don't need the second list of addresses for DIOCCHANGE* operations) Also get rid of a bug where DIOCBEGINADDRS clears pabuf[1] when pabuf[0] is the one being used. ok henning@ dhartmei@
2002-12-23Repair minor indentation problem.Miod Vallat
2002-12-23dev/ata/ata.c should depends on wdc_base since it uses some callsAlexander Yurchenko
from dev/ic/wdc.c; from NetBSD. ok miod@ deraadt@
2002-12-23Fix complete botch in handling of 'openings'.Kenneth R Westerback
Assign a fixed value (SIOP_NTAGS) to the openings field in the adapter's template sc_link, rather than incrementing the value as cbd's are allocated. The template value is the one copied into each device's sc_link structure as it is created. Incrementing the value meant that each new device got a larger value for openings. The total number of openings claimed by devices on a bus soon exceeded the number of cbd's available. e.g. after 5 devices there would be 132 allocated cbd's, but the total number of openings claimed by devices would be 300. A heavy i/o load on an adapter with multiple devices could have caused the upper scsi layer to try to queue more i/o's than the driver had cbd's to store them in. Such i/o's would fail with EIO if they were started with SCSI_NOSLEEP (e.g. sdstart()) or were not queued within the specified retry limit. I/o's for devices 'later' on the bus would be more likely to trigger this behaviour, due to their inflated openings values. This is good candidate for -stable.
2002-12-22pfioc_changealtq is not needed anymore; queues will eventually beRyan Thomas McBride
referenced by number in DIOCCHANGEALTQ (like rule and pooladdress) "go for it" henning@
2002-12-22Define atagettrace_t type and use it instead of struct atagettrace.Alexander Yurchenko
ok costa@
2002-12-22No more magic wdc events types, give them names.Alexander Yurchenko
ok costa@
2002-12-22better handling of bigendian batteries; problem noticed by blovett@bsdguru.comMichael Shalayeff
2002-12-22Do not attempt to select keyboard layout until it has been determined fromMiod Vallat
the keyboard (oops). This also fixes a bad interaction with wskbd_cnattach that would hose the underlying sabtty device.
2002-12-22Flargs -> Flags.Artur Grabowski
Reported by Dave Steinberg <lists@redterror.net>
2002-12-22Cosmetic changes:Todd C. Miller
o Add a DPRINTF macro instead of using debugging #ifdefs all over the place o KNF says to use "return (foo)" not "return(foo)" o #define EIDRM and ENOMSG at the top instead of using #ifdefs to work around the fact that we don't have them later on.
2002-12-22Clear the high bit of ipc_perm.seq so msgget(3) never returns aTodd C. Miller
negative message queue id; Vladimir B.Grebenschikov
2002-12-22Handle rdr rules with unspecified proxy ports correctly. Also don'tRyan Thomas McBride
print the port number in pf_print_host if it's 0 (like when pf_print_host is called from pf_map_addr) ok dhartmei@
2002-12-22mv PF_RULESET_MAX into the enum, slightly less confusing.Ryan Thomas McBride
ok dhartmei@
2002-12-20replace struct assignment w/ bcopy w/ help and testing of millert@; henning@ ↵Michael Shalayeff
ok; fixes unaligned trap on alpha from pr3037
2002-12-20Clear error before jumping back to the input loop. If error was setTodd C. Miller
to EWOULDBLOCK it would otherwise not get cleared; Jim Geovedi
2002-12-20dino is atakenMichael Shalayeff
2002-12-20 - Clean up the defines in pool.hArtur Grabowski
- Allow a pool to be initialized with PR_DEBUG which will cause it to allocate with malloc_debug. - sprinkle some splassert.
2002-12-20Add a special malloc type M_DEBUG.Artur Grabowski
If the kernel is compiled with MALLOC_DEBUG, M_DEBUG will force the allocation to be done through malloc_debug.
2002-12-20user-defined stacks check is the same for grownups as for growndownsMichael Shalayeff
2002-12-20do not compile what we already get from libkern (size does not matter)Michael Shalayeff
2002-12-20those are gone nowMichael Shalayeff
2002-12-20no need for these to sit in their own dirs, there not gonna be any sources ↵Michael Shalayeff
there anyway, all code is in the particular bus adapter's source
2002-12-19make sure we are hitting user stack and not smth else here, make init show ↵Michael Shalayeff
normal vsz in ps now
2002-12-19regenHenning Brauer
2002-12-19more O2Micro PCI-Cardbus; FreeBSD via pamifer at terra.esHenning Brauer
2002-12-19arc4random seems better nowMichael Shalayeff
2002-12-19Protect WDCDEBUG_PRINT macro with do {} while (0)Alexander Yurchenko
ok costa@
2002-12-19Clear pf_state.nat_rule pointers when non-main nat rules are removed.Daniel Hartmeier
Unlike with filter rules, nat rules inside anchors might be pointed to.
2002-12-19Replace skip step calculation so it scales O(n) instead of O(n*n).Daniel Hartmeier
Loading large rulesets consists of two phases. First, the rules are parsed and added, one by one, to the inactive ruleset. The machine remains responsive during that phase. Then, the new ruleset is activated, and the skip steps are calculated. The machine locks up during that phase. This second phase is greatly reduced with the new algorithm. With the old one, calculation could take 30s for 12k rules, with the new one, 100k rules take less than 1s. For small rulesets (less than 1000 rules), the gain is insignificant. ok mcbride@, henning@
2002-12-19fix 'no nat/rdr/binat' evaluation. from mcbride@, slightly modified :)Daniel Hartmeier
2002-12-19Initialize pf_state.nat_rule to NULL if there's no translation used.Daniel Hartmeier
Found by markus@
2002-12-19fix a debugging printf on cmd wait timeoutMichael Shalayeff
2002-12-19proper barrier call in ie_ackMichael Shalayeff
2002-12-19comparam() does not need an spltty() for it, already called there.Michael Shalayeff
time-bound loops in com_common_cnputc() and lower to spltty(), which i guess is left from times when timeouts were processed at splhigh(). jason@ tested and ok, art@ ok
2002-12-19simplify stack grownups (growndowns are not touched)Michael Shalayeff
2002-12-19setregs: put the whole frame setup into one placeMichael Shalayeff
2002-12-19level 0x16 is really an l2Michael Shalayeff
2002-12-19knf, remove register, space trimMichael Shalayeff
2002-12-19do not plan for DISKLESS; cross out CRTBEGIN and CRTENDMichael Shalayeff
2002-12-19updateMichael Shalayeff
2002-12-19debugging check_alias is only needed in PMAPDEBUGMichael Shalayeff
2002-12-18newer machines use phantom bus to attach lasi and other bus adapters.Michael Shalayeff
oledr machines did not have a real device for the phantom bus port. change the device scanning technique to both include a full device path in the attach_args and do proper shifting in the pdc_scanbus() and add a device for the newer machines as well as use a newer device mapping (path to hpa) available on newer firmware versions, where old (hversion-dependant) is not available. tested on 712,715/33,c110, miod@ ok, weissmandude -- testing