Commit Graph

69539 Commits

Author SHA1 Message Date
itojun 6c8714a95e avoid ugly typecast 2004-02-11 10:37:33 +00:00
mrg b8931a9257 fix int/size_t issues in debug code. 2004-02-11 10:19:32 +00:00
matt 5868d7a221 Reshuffle MIDs value so that conflicts with binutils are avoided and
that we use the same value for MID_HPPA as OpenBSD.
2004-02-11 01:03:35 +00:00
matt b820eb3ad3 32-bit corefiles should use a MID for i386, not xf86_64. 2004-02-11 01:01:37 +00:00
jdolecek 63e9ee7bf5 add Gary Thorpe copyright notice 2004-02-10 21:55:38 +00:00
itojun e2d302c40d reduce useless variables 2004-02-10 20:57:20 +00:00
jdolecek fba6bed686 fix atppcintr() to support shared interrupts properly
problem found and fix provided by Paul Shupak
2004-02-10 18:42:48 +00:00
jdolecek 3ce4ac0bbd checkpoint DMA support; still disabled, not tested yet 2004-02-10 18:19:47 +00:00
jdolecek e5d99e330f inform better of what exactly is printed in ppbus_scan_bus(), and only
print anything with PPBUS_VERBOSE || PPBUS_DEBUG
2004-02-10 18:13:12 +00:00
jdolecek 3eb13d5e8f whitespace police 2004-02-10 16:43:43 +00:00
jdolecek 2d609e233b need lpt_ofisa_machdep.c also for atppc attachment 2004-02-10 16:43:22 +00:00
pooka 9e94363ccf fix typo in comment: magic numbers are indexed EI_MAG0 through EI_MAG3,
not ELFMAG0 through ELFMAG3 (which are the contents)
2004-02-10 13:50:20 +00:00
matt 048b7a761d Welcome to 1.6ZJ 2004-02-10 01:34:38 +00:00
matt b939e75b87 Split MCLGET macro to be able to support multiple M_CLUSTER sizes.
Store the pool_cache the cluster was allocated from into (m)->m_ext.ext_arg
and use that when freeing the cluster.
2004-02-10 01:33:26 +00:00
matt a78a1b0777 Back out the changes in
http://mail-index.netbsd.org/source-changes/2004/01/29/0027.html
since they don't really fix the problem.

Incorpate one fix:  Mark uvm_map_entry's that were created with
UVM_FLAG_NOMERGE so that they will not be used as future merge
candidates.
2004-02-10 01:30:49 +00:00
bjh21 47df99b02a __HAVE_NWSCONS seems to mean, "If this port uses pckbc(4), it also uses
sys/dev/pckbc/files.pckbc."  This is true of sparc, so define __HAVE_NWSCONS,
and remove the code in pckbc_machdep_cnattach() that was conditional on its
not being defined and that is no longer needed (since with __HAVE_NWSCONS,
pckbc_cnattach() will call pckbd_cnattach() itself if necessary).
2004-02-10 01:11:45 +00:00
dyoung 6f9c4a91f1 If the firmware returns to us an RSS descriptor index that is out
of bounds, then complain and recover by freeing all of the descriptors.
That will usually provoke additional complaints---see the next
paragraph.

If the firmware returns to us an RSS descriptor that is in-bounds
but out of service (id_node == NULL), then gripe and get out of
the interrupt handler. ***This will still leak RSS descriptors.***
I'm working on a better solution. Possibly I will just free all of
the descriptors.
2004-02-10 01:08:05 +00:00
dyoung 9f147300d1 Disable rate-adaptation for Lucent firmware version 8.42.1, per a
bug report from Simon Burge: the firmware seems to lock up.

If rate-adaptation is disabled on a Lucent card, then do all the
rate-adaptation work *except* for writing the new transmit rate,
since I suspect that is what locks-up the firmware.
2004-02-10 00:59:38 +00:00
dyoung b664edb5ad Shorten the retry count on Prism APs to improve the speed of
rate-adaptation.
2004-02-10 00:52:12 +00:00
dyoung d32ed08a80 Factor out the initialization/reset of RSS descriptors, making
wi_rssdescs_init, wi_rssdescs_reset, which I will use to receover
when the firmware botches up the RSS descriptor index.
2004-02-10 00:47:41 +00:00
dbj c32c758d2d s/fauling/faulting/ 2004-02-10 00:40:06 +00:00
dyoung c9dcac9ffa The radiotap header is little-endian. 2004-02-10 00:32:40 +00:00
hpeyerl e3c5164736 On some 'fast' i386 motherboards, the timing between consecutive reads
and writes of the EEPROM are too fast so invalid data is returned. So we
increase the DELAY()s.  The right thing would be to check a ready bit
on the E^2 if such a thing exists.  (checked by potr)
2004-02-09 22:29:26 +00:00
bjh21 36727732df Remove pcconskbd(4) support code since this port doesn't have pcconskbd(4)
and the code was conditional on a macro that was never defined anyway.
2004-02-09 19:37:43 +00:00
yamt 1e18e59746 - borrow vmspace0 in uvm_proc_exit instead of uvmspace_free.
the latter is not a appropriate place to do so and it broke vfork.
- deactivate pmap before calling cpu_exit() to keep a balance of
  pmap_activate/deactivate.
2004-02-09 13:11:21 +00:00
yamt fa47baddee lwp_exit2: grab kernel_lock to preserve locking order. 2004-02-09 13:02:48 +00:00
bjh21 a093883c82 Trailing whitespace cleanup. 2004-02-08 13:49:43 +00:00
bjh21 62c2e676ba Increase the attach priority of opms(4) and kbd(4) (also rpckbd(4), but that
slipped into a previous commit) so that they can override the forthcoming
iomdkbc(4) if necessary.
2004-02-08 13:43:52 +00:00
bjh21 11ab4a17ac Attach rpckbd(4) and kbd(4) in the same place, so that they can't both end
up attached at the same time, and so that they can both prevent the forthcoming
iomdkbc(4) attaching to the keyboard slot.
[ file missed in last commit ]
2004-02-08 13:41:53 +00:00
bjh21 165d7132e7 Attach rpckbd(4) and kbd(4) in the same place, so that only one of them can
attach at a time, and so that either of them can prevent the forthcoming
iomdkbd(4) attaching to the keyboard slot.
2004-02-08 13:39:21 +00:00
sekiya ad76afdc86 de-__P. 2004-02-08 13:15:42 +00:00
oster 2eaec068c9 Relegate some printf's to DEBUG land. 2004-02-08 04:37:56 +00:00
yamt 8fb96e0be4 introduce a new patchable variable, uvm_debug_check_rbtree,
which is zero by default.
perform rbtree sanity checks only when it isn't zero
because the check is very heavy weight especially when
there're many entries.
2004-02-07 13:22:19 +00:00
yamt a45adbd9c7 don't deactivate pmap in exit1 because we'll touch the pmap later.
instead, borrow vmspace0 immediately before destroying the pmap
in uvmspace_free.
2004-02-07 10:05:52 +00:00
yamt 4124096ea8 uvm_kmapent_alloc:
in the case that there's no cached entries,
if kmem_map is already up, allocate a entry from it
so that we won't try to vm_map_lock recursively.
XXX assuming usage pattern of kmem_map.
2004-02-07 08:02:21 +00:00
sekiya e03691c03d More newport driver tweaks:
* detect and store vc2 revision.  This is (likely) the important factor in
  determining the proper cursor offset, so add a bit of logic that does the
  right thing on my revision 0 vc2.  This will have to be determined
  empirically, revision by revision.
* take a stab at detecting framebuffer depth.  SGI does it quite differently,
  but their algorithm doesn't work, so we'll do it along the same lines as
  linux.
* implement newport_mmap() for use by X.  The necessary xsrc commits have been
  made (with the notable exception of the config/cf changes, which probably
  shouldn't go in until 4.4.0 has been imported).
2004-02-07 04:34:34 +00:00
matt c62861525c Regen. 2004-02-07 00:51:45 +00:00
matt f70be9035f Add LXT973/974/975 PHYs 2004-02-07 00:51:05 +00:00
cube e9dbccf69e Since rev. 1.29, lkmdispatch is called before the LKM's load function.
Therefore lkmdispatch(LKM_E_UNLOAD) must be called to free resources in
case the load function fails.

Reported by Christian Groessler on current-users.
2004-02-06 22:40:37 +00:00
christos 13057976a6 include <uvm/uvm_object.h> for the benefit of ports that don't include
it in <machine/pmap.h>
2004-02-06 13:46:27 +00:00
drochner 5ab60443ab please test-compile before committing 2004-02-06 10:28:03 +00:00
junyoung bf274fed3f ANSIfy & KNF. 2004-02-06 08:18:39 +00:00
junyoung 48d5030e12 ANSIfy & zap some blank lines. 2004-02-06 08:08:46 +00:00
itojun c5cb8d59c0 remove unneeded #ifdef 2004-02-06 08:07:55 +00:00
junyoung 9a410f9ed0 Rename es_check in struct execsw to es_makecmds. 2004-02-06 08:02:58 +00:00
pk f092315b50 pg_delete: re-arrange SESSRELE() calls to allow for better code generation. 2004-02-06 06:59:33 +00:00
pk 7026ce08c8 ioctl TIOCSCTTY: re-arrange SESSHOLD() calls to allow for better code generation. 2004-02-06 06:58:21 +00:00
christos 0283dcd8a6 - Don't use uao_ functions directly; use them through the pgops methods.
- Fix missing reference leak in the error path of shmat() mentioned in
  Full-Disclosure.
2004-02-05 22:28:33 +00:00
christos 6b1b54b981 Don't use uao_reference, directly use the pgops instead. XXX: we should
prolly make all the uao_ functions used in pgops static.
2004-02-05 22:26:52 +00:00
augustss 2135e62a21 Add code to initialize the EEPROM in case the boot monitor doesn't do it. 2004-02-04 15:44:18 +00:00