Commit Graph

31028 Commits

Author SHA1 Message Date
tron
b2c4582d6d Regen. 1999-06-26 16:26:57 +00:00
tron
0ddfad8dfa "www.usb.org" says that:
a) Logitech has vendor ID 0x046d.
b) That vendor ID 0x05ac is Apple Computer.
1999-06-26 16:26:20 +00:00
tron
6e72bbdb8a Regen. 1999-06-26 15:21:17 +00:00
tron
62f6e7122f Correct description of vendor "LOGITECH": this is not Apple. 1999-06-26 15:20:53 +00:00
matthias
c343d282b0 Pull over some changes from the i386 port to fix the kernel RSS counters. 1999-06-26 09:09:51 +00:00
augustss
3fd5344a95 Add suspend/resume handling to the UHCI driver.
Currently it only works if the BIOS saves enough state of the controller.
Once I find a machine with a dumber BIOS I'll try to improve that.
1999-06-26 08:30:17 +00:00
augustss
94b815050e Add powerhooks, i.e., the ability to register a function that will be
called when the machine does a suspend or resume.
XXX Will go away when Jason's kevents come to life.
1999-06-26 08:25:25 +00:00
cgd
e9969b5e0d need md if we want a miniroot 1999-06-26 07:29:18 +00:00
cgd
4bb852a2c8 Add a shark kernel with ramdisk for a miniroot file system. 1999-06-26 07:00:44 +00:00
cgd
ecc0edc397 clean up memory disk options 1999-06-26 06:56:26 +00:00
sommerfeld
b7c70d2b2f If the new global variable hostzerobroadcast is zero, no longer assume
address zero of each net/subnet is a broadcast address.
(The default value is nonzero, which preserves the current behavior).

This can be set using sysctl; the boot-time default can also be
configured using the HOSTZEROBROADCAST kernel config option.

While we're here, defopt HOSTZEROBROADCAST and SUBNETSARELOCAL
1999-06-26 06:16:47 +00:00
thorpej
c52d839a6e Nuke some code ripe for garbage-collection. 1999-06-26 03:15:54 +00:00
augustss
701eca7576 Remove unneeded #include. 1999-06-26 03:14:25 +00:00
cgd
2055d9d08d emulate (parts of) flock 1999-06-26 01:24:41 +00:00
cgd
1e29f2fb1f convert flock struct 1999-06-26 01:23:23 +00:00
cgd
b9c997eba9 flock struct and related constants and types 1999-06-26 01:21:30 +00:00
augustss
7ef0c8eef3 Add a quirk for mice with reversed Z-axis. 1999-06-26 00:09:15 +00:00
augustss
55fbc23acc Regen. 1999-06-26 00:08:15 +00:00
augustss
c4c81ec6fa Add another Logitech mouse. 1999-06-26 00:07:35 +00:00
perseant
c951c272b0 Fixes PR #1206, by setting va_mode and va_flags in the copied-up vnode's
attributes.
1999-06-25 19:05:49 +00:00
thorpej
59da37b37e Go to splbio() when calling scsipi_free_xs(), just like the SCSI counterpart.
Fixes PR #7853, Paul Dokas <dokas@cs.umn.edu>.
1999-06-25 18:58:54 +00:00
nisimura
09a2fed6f9 - Show 1bpp for MX during configuration stage.
- Replace memory layout 'struct' with array/pointer access.
1999-06-25 03:33:20 +00:00
sakamoto
b1790e3799 Sync with i386. 1999-06-25 01:54:39 +00:00
pk
c118a70deb When overriding cache flush functions for specific cpu models, make
sure to update the correct function pointers in `cpuinfo'.
1999-06-24 20:22:12 +00:00
pk
4f2e48c4d2 Don't turn on the engine too early.
Add and use QEDEBUG.
1999-06-24 19:59:14 +00:00
pk
9335333dee Issue a reset command when initializing. 1999-06-24 19:56:51 +00:00
ad
118d1e7afa Remove a few entries for nonexistant TC graphics boards. 1999-06-24 18:47:58 +00:00
kleink
7b67bca335 Add compile-time and run-time feature test knobs for the 1003.1 Mapped Files,
Process Memory Locking, Range Memory Locking and Memory Protection options.
1999-06-24 14:18:10 +00:00
kleink
346afb20f6 Name space protection. 1999-06-24 14:07:44 +00:00
tsubai
5b34d35e45 findroot() should also use "compatible" property. 1999-06-24 08:14:48 +00:00
nisimura
8dd0e06ba1 - Hide memory mapped VDAC hardware register layouts using the array
element access instead of C bitfield (hello, BCPL).
- XXX Some TURBOchannel framebuffers might need shutdownhooks().  It
seems not necessarily hardware sprite cursor images are re-initialized
by DECstation PROMs upon exits from kernel.
- XXX It'd be an arguable point to allow user programs to change the
shade of gray freely for pixel value 0 and 1.
1999-06-24 03:51:14 +00:00
sakamoto
129b091aa8 Use powerpc's header. 1999-06-24 01:35:33 +00:00
sakamoto
cce254bef2 Add some declarations. 1999-06-24 01:33:08 +00:00
sakamoto
4364147a17 include machine/intr.h
CACHELINESIZE enabled with defined(_STANDALONE).
1999-06-24 01:28:02 +00:00
sakamoto
943b8c34be Sync with i386's fd.c, fdreg.h. 1999-06-24 01:22:19 +00:00
sakamoto
fb1608de31 Comment out MKDEP SFILES. bebox dir has only locore.s.
include bsd.own.mk.
1999-06-24 01:19:51 +00:00
sakamoto
dfb8f015ec display.h doubly exists in include and include/pc. 1999-06-24 01:16:52 +00:00
sakamoto
95dac23012 Some cleanup.
Move bootinfo related things to boot.c
and console related things to cons.c.
1999-06-24 01:10:31 +00:00
nisimura
463e258cdb - Allow to choose the 'color' of sprite cursor. Only red cmap makes sense.
- Drop TC Alpha support (OSF/1 and Digital UNIX never supports PMAG-AA).
1999-06-23 23:48:28 +00:00
thorpej
b59b8bd5c6 Enable DDB history. 1999-06-23 22:42:52 +00:00
leo
7a4fed2916 Allow the loading of compressed kernels. This makes it again possible
to make a 'system disk' on a 720KB floppy that is usable.
1999-06-23 19:26:13 +00:00
bouyer
4fd8325ec6 Resurect the old register read/write test for non-ATA/ATAPI drives, to avoid
false matches on controllers which properly respond to a WDCC_RECAL command.
Should close PR port-i386/7702 (the author tested this patch, and said it
solves his problem).
1999-06-23 19:00:17 +00:00
minoura
b749d34eb9 I forgot to commit this. 1999-06-23 15:20:36 +00:00
mjl
52d0d1398b Regen after tyop. 1999-06-23 10:41:08 +00:00
mjl
1720673bc2 Corrected tyop. 1999-06-23 10:40:16 +00:00
mjl
2abd78cfd3 Regen. 1999-06-23 10:37:10 +00:00
mjl
e44e18cc01 Add manufacturer Lasat Communications A/S, product Lasat Credit 288 Modem. 1999-06-23 10:36:19 +00:00
marc
cd040ea927 s/mkdir/mkdir -p/, since not all the parents of $(FONTDIR) are
guaranteed to exist.
1999-06-23 04:29:28 +00:00
abs
b02dbae17e In xxx_mediachange(), if there is no callback to the front-end, just
return 0 instead of EINVAL.  In this case, there will only be one media
type, and the upper-level if_media code will ensure that the user is
setting to that type.
This matches changes Jason made a while back to sys/dev/ic/lance.c
1999-06-23 04:17:10 +00:00
nisimura
839bcbbe9f - Fix an error in the depth of PMAG-AA MX. This driver can take 72Hz
virtical video retrace interrupt and was verified ok on Nanao grayscale
monitor.  XXX seems still confusion/mistake on Bt431 cursor image
manipulation.
1999-06-23 01:58:22 +00:00
christos
b953fb0414 bring back my friend the twiddle. 1999-06-22 22:44:16 +00:00
christos
16e8020994 Nuke obsolete printf comment. 1999-06-22 22:09:49 +00:00
is
7a132d78b7 Align adresses better 1999-06-22 21:12:00 +00:00
oster
7824f40e5f Add a '#include <sys/resourcevar.h>' to each of these to allow them
to compile again.
1999-06-22 14:51:57 +00:00
tsubai
a2ded1ab73 NVRAM read/write functions. 1999-06-22 13:12:11 +00:00
tsubai
2068c8b6e4 Use RTC on PB. 1999-06-22 11:29:11 +00:00
sakamoto
a9088f55c8 Add casts for -Wall. 1999-06-22 02:04:06 +00:00
sakamoto
40629ff8cc rename pms to opms. 1999-06-22 01:48:33 +00:00
sakamoto
4763a9b0a0 Remove sc_id member from fdc_softc. 1999-06-22 01:41:48 +00:00
sakamoto
f93507970d Use powerpc/reg.h 1999-06-22 01:39:43 +00:00
sakamoto
ade7d52fc9 Use powerpc/pmap.h. 1999-06-22 01:38:38 +00:00
wrstuden
17900cd587 Install ofwboot.elf in addition to ofwboot. Thanks to Chris for info on how
to do this!
1999-06-21 21:02:49 +00:00
ad
7a71d12944 Clear out 'struct fbdevice' cruft; it represents bitrot on pmax. Add
#ifdef'ed out definition for 'struct fbsoftc', the way forward until
[nisimura-pmax-wscons] is merged.
1999-06-21 19:21:10 +00:00
ad
5756acc071 Cleanup. 1999-06-21 19:07:16 +00:00
ad
ebd6cdffde px.c requires that qvss_compat.c be compiled in. 1999-06-21 19:05:10 +00:00
thorpej
abb48c5b71 Protect prototypes, certain macros, and inlines from userland. 1999-06-21 17:25:11 +00:00
ragge
51dd099ef5 Add DW750 and DW780 UBA support. Still no BDP's. 1999-06-21 16:23:00 +00:00
mrg
5425cbfa41 fix compile warning. 1999-06-21 06:28:33 +00:00
sommerfeld
c45e268d01 Fix PR7373 for real: Rearrange locking to avoid need for LOCKPARENT in lookup 1999-06-21 05:11:09 +00:00
sommerfeld
8d750c058f regen (no actual change, but comments in the master file changed) 1999-06-21 02:30:53 +00:00
sommerfeld
9bad197221 Correct comment about how LOCKPARENT affects VOP_LOOKUP 1999-06-21 02:28:46 +00:00
eeh
0c32dc3995 Clean this up a little. More later. (Gee, this really is becoming a huge
mess).
1999-06-21 01:44:14 +00:00
eeh
d326454d31 Nuke the last vestiges of a single DVMA map. This stuff should have
been completely migrated to individual bus drivers.
1999-06-21 01:42:36 +00:00
eeh
2c283b9149 Improve TRAPTRACE. Add FLTRACE that only tracks MMU faults. 1999-06-21 01:39:06 +00:00
ragge
e0972091c8 Remove moved files. 1999-06-20 18:19:19 +00:00
pk
37d80b004f Remove dead file; alphabetize 1999-06-20 18:17:22 +00:00
ragge
e410ff8410 Remove moved files. 1999-06-20 18:14:41 +00:00
ragge
97e1165dd2 add qe and qd. 1999-06-20 18:09:22 +00:00
pk
df81191ccd Remove dead file 1999-06-20 18:07:18 +00:00
ragge
e0199475d8 QDSS should now work as console.
XXX - still vax-specific.
1999-06-20 17:58:56 +00:00
ragge
5e906a9454 Fix a erroneous malloc. 1999-06-20 17:56:29 +00:00
ragge
2c9abc499a Copied from ../../arch/vax/uba/qfont.c,v 1999-06-20 17:55:12 +00:00
ragge
9484404e28 Copied from ../../arch/vax/include/qevent.h,v 1999-06-20 17:54:51 +00:00
ragge
e49d4f4bd3 Copied from ../../arch/vax/include/qduser.h,v 1999-06-20 17:54:27 +00:00
ragge
09b92a09e3 Copied from ../../arch/vax/include/qdreg.h,v 1999-06-20 17:54:13 +00:00
ragge
08e6c30baa Copied from ../../arch/vax/include/qdioctl.h,v 1999-06-20 17:53:53 +00:00
ragge
6f0df397d0 Copied from ../../arch/vax/uba/qd.c,v 1999-06-20 17:53:33 +00:00
thorpej
b75d5b1fe6 Fix tyop. 1999-06-20 16:44:49 +00:00
thorpej
50f084159c SCTRL2 register number wrong. PR #7756, Johan Danielsson. 1999-06-20 16:42:37 +00:00
thorpej
4a0270a264 Intel i82557 driver is now split into bus and chip bits. 1999-06-20 16:35:40 +00:00
thorpej
495319c367 Configuration glue for i82557 fast Ethernet driver. 1999-06-20 16:34:38 +00:00
thorpej
206460244e Bus-independent back-end driver for Intel i82557 fast Ethernet chips. 1999-06-20 16:33:28 +00:00
pk
ccd6d1e4de Pull in `sparc/compat_13_machdep.c' for SunOS compatibility too. 1999-06-20 16:30:22 +00:00
ragge
7a1f65022b Remove more unused files. 1999-06-20 16:00:14 +00:00
ragge
dc65be6cf8 Remove old unused files. 1999-06-20 15:58:28 +00:00
ragge
92a492d5ea Some 4000/200 fixes. From Michael Kukat. 1999-06-20 15:52:51 +00:00
sommerfeld
459e986089 PR7812: add prototype for sysarch(); fixes build of libarch on arm32 1999-06-20 15:26:38 +00:00
christos
c029fe53c6 Fix umask inheritance problem introduced by the cwdi changes, whereby
children processes will not inherit the parent's umask but 022.
1999-06-20 08:54:13 +00:00
tsubai
8d68bdec13 Make this compile. 1999-06-20 05:42:09 +00:00
tsubai
9ac9208434 More initialization by calling Open Firmware. 1999-06-20 05:34:59 +00:00
ragge
e2fb3def19 Use uba & mscp code from dev/ instead. 1999-06-20 01:05:19 +00:00
ragge
cc43d8766d Fix of bug causing allocations of physical pages to get wrong address. 1999-06-20 00:59:54 +00:00
ragge
abcc4bed15 Better support for tracing stacks. From Chuck McManis. 1999-06-20 00:58:23 +00:00
ragge
cb57cab9b1 Add macros to round/trunc vax pages. 1999-06-20 00:53:58 +00:00
ragge
76b9763345 Add some small checks to avoid unwanted panic types. 1999-06-20 00:53:02 +00:00
ragge
5ad2718e7c Add vax to user of device_register. 1999-06-20 00:51:37 +00:00
eeh
9cf2782159 Move the DVMA mapin/mapout functions from the SBus driver to the iommu driver. 1999-06-20 00:51:29 +00:00
ragge
069858b1e2 Want device-register, to detect qbus boot devices. 1999-06-20 00:50:08 +00:00
ragge
3ccbec3742 Totally rewritten DEQNA device driver, that uses the bus.h interface
instead. This almost doubled the receive speed of the interface :-)
1999-06-20 00:04:47 +00:00
is
1b5eb98937 Sync with Atari pmap: support for the UVM changes 1999-06-19 19:44:08 +00:00
mjl
36da665f8c Added NewMedia BusToaster, an Adaptec 152x compatible. 1999-06-19 18:50:28 +00:00
mjl
fb7137cfd9 Regen 1999-06-19 18:49:34 +00:00
mjl
4e0161f8dc Regen 1999-06-19 18:17:14 +00:00
mjl
c32aeb153b Added NewMedia BusToaster SCSI Host Adapter 1999-06-19 18:16:07 +00:00
sommerfeld
1425b5931b Fix PR7761: clip overly large length rather than failing 1999-06-19 18:01:26 +00:00
ragge
656c580511 Don't try to disconnect SCSI disks. From Michael Kukat.
Now DEC disks also works in VAXstations :-)
1999-06-19 15:46:05 +00:00
augustss
d98b0bd725 Regen. 1999-06-19 04:51:42 +00:00
augustss
0650293580 Add Sony CXD 1947A FireWrire Controller and Neomagic 128XD. 1999-06-19 04:49:52 +00:00
thorpej
72fcd1784e Fix a typo. 1999-06-19 00:11:17 +00:00
augustss
0e64bf3732 Add ess to isa attachment. The entry is commented out for the moment since
I'm not sure how accurate the probe is.
1999-06-18 20:27:59 +00:00
augustss
a6a09bcdd6 Add support for ES18[67][89]. From PR #7427 by AW9K-NNK@asahi-net.or.jp,
Nonaka Kimihiro.
1999-06-18 20:25:23 +00:00
thorpej
51867fc227 When sending an ARP reply, make sure to set the length of the outgoing
packet.

Slightly modified from PR #7809, Zdenek Salvet <salvet@ics.muni.cz>.
1999-06-18 18:20:50 +00:00
thorpej
43ddb951ea Whitespace police. 1999-06-18 18:11:56 +00:00
thorpej
471cb34fb2 Fix a harmless typo. 1999-06-18 18:08:52 +00:00
thorpej
041cfb14aa Fix that ANNOYING transmit timeout bug, caused by an unfortunate interaction
between a bug in the receive path (buffer length used instead of actual
received frame length) and the ARP code not correctly setting the length
of the reused mbuf, which all told caused the transmit logic in the chip
to wedge.

Also, make sure to count received packets.

Found and fixed by Zdenek Salvet <salvet@ics.muni.cz>, PR #7809.
1999-06-18 17:44:06 +00:00
minoura
170b78e476 Reduce TLB operations. 1999-06-18 14:27:09 +00:00
nisimura
1c949badf4 - Fix an large error I made last month in TLB mod improvement, still
wondering why not I was immediately blown away.
- Continuing invastigations on VM related panics on very high loads.
1999-06-18 08:17:50 +00:00
leo
bfdcd7d519 Update pmap_check_wiring(). Also attach TNF copyright because of the
pmap_remove_mapping() changes.
1999-06-18 07:13:16 +00:00
thorpej
88f71d9598 Update a uvm_map_pageable() call that I forgot to commit previously. 1999-06-18 06:32:05 +00:00
thorpej
4eb92b494a Sync up with the following hp300 trap.c change:
revision 1.41
date: 1996/09/07 22:26:50;  author: mycroft;  state: Exp;  lines: +5 -20
Use SIGBUS iff we get a legitimate bus fault.  Use SIGSEGV for page protection
violations (per Solaris, SVR4, AIX, Linux, Irix, and SunOS).

...which happens to eliminate an unsafe call to uvm_map_checkprot().
1999-06-18 06:31:01 +00:00
mrg
1dd8c9f502 call pfil_list_add with the right flag, to ensure it goes into the right list.
from mike@pelley.com in PR#7802.
1999-06-18 05:59:20 +00:00
is
e6455c6e13 less views, and comment them 1999-06-18 05:58:25 +00:00
is
60bb9923a8 COMPAT_SVR4 does not compile witout EXEC_ELF32 1999-06-18 05:57:31 +00:00
is
d66f459df0 COMPAT_SVR4 does not compile without EXEC_ELF32. 1999-06-18 05:56:45 +00:00
mhitch
3adf25374a The extraneous interrupt that seems to occur after a reconnect and a DMA transfer
starts running can occur on both DMA in and DMA out.  I missed the little comment
in the Mach driver for the DMA out case.  Also, only ignore the interrupt if the
TC is non-zero (to match the Mach driver).
1999-06-18 05:30:53 +00:00
thorpej
9e9f068f43 Add the guts of mlockall(MCL_FUTURE). This requires that a process's
"memlock" resource limit to uvm_mmap().  Update all calls accordingly.
1999-06-18 05:13:45 +00:00
tsubai
12c2ab7750 Regen. 1999-06-18 04:55:27 +00:00
tsubai
25b9bffe81 Add some Apple and MOT products. 1999-06-18 04:54:06 +00:00
cgd
7c02d93c04 nuke current definitions provided by __BUS_SPACE_COMPAT_OLDDEFS.
I'll do what I can to make new ones soon.  8-)
1999-06-18 04:49:24 +00:00
thorpej
bbf19ba181 Um, hi, let's initialize pointers before we use them. 1999-06-17 23:17:45 +00:00
tls
4d649c3adb squash some compiler warnings on debug printfs by casting to int 1999-06-17 22:22:41 +00:00
thorpej
7675dfedf0 Don't export MAP_COPY to userland. It's deprecated, works like MAP_PRIVATE,
and not described by any standard.
1999-06-17 21:07:55 +00:00
thorpej
01ac9b6529 In sys_mmap():
- rather than treating MAP_COPY like MAP_PRIVATE by sheer virtue of it not
  being MAP_SHARED, actually convert the MAP_COPY flag into MAP_PRIVATE.
- return EINVAL if MAP_SHARED and MAP_PRIVATE are both included in flags.
1999-06-17 21:05:19 +00:00
thorpej
0288ffb53a pmap_change_wiring() -> pmap_unwire(). 1999-06-17 19:23:20 +00:00
thorpej
f5a527bb4e Remove pmap_pageable(); no pmap implements it, and it is not really useful,
because pmap_enter()/pmap_change_wiring() (soon to be pmap_unwire())
communicate the information in greater detail.
1999-06-17 18:21:21 +00:00
bouyer
cc6eca7553 mbuf should be allocated with M_DONTWAIT in ether_output(). This caused panics
when routing atalk.
1999-06-17 17:27:13 +00:00
thorpej
12347b2657 Make uvm_vslock() return the error code from uvm_fault_wire(). All places
which use uvm_vslock() should now test the return value.  If it's not
KERN_SUCCESS, wiring the pages failed, so the operation which is using
uvm_vslock() should error out.

XXX We currently just EFAULT a failed uvm_vslock().  We may want to do
more about translating error codes in the future.
1999-06-17 15:47:22 +00:00
leo
ffd3da04d4 Comply with the changes Jason suggested yesterday. A copy of his log message:
Don't (ab)use uvm_map_pageable() to allocate PT pages.  Instead, do
  some internal reference counting on PT pages.  We still allocate them
  with the page fault routine (a wire-fault, now), but no longer free
  PT pages from pmap_pageable().
1999-06-17 07:59:16 +00:00
tsubai
a8d7da0d21 Add "trackpad" definition. 1999-06-17 06:59:05 +00:00
thorpej
1f97ad987f In uvm_useracc(), make sure we have a read lock on the map before
calling uvm_map_checkprot().
1999-06-17 05:57:33 +00:00
mjacob
92f90fcb92 STK 9490 && SD-3 drives incorrectly quirked as not supporting the LOAD command.
Anyway, just because a drive doesn't support the LOAD (to BOT) command does
not mean that the drive doesn't support the UNLOAD command. Also note and
print errors in rewinds and unloads (and errors in writing closing filemarks
for same).
1999-06-17 04:20:55 +00:00
thorpej
f274deb90a The i386 and pc532 pmaps are officially fixed. 1999-06-17 00:24:10 +00:00
thorpej
f51688dd8b PMAP_NEW is no longer optional on the pc532; the old pmap's page table
allocation strategy no longer works at all.  Move pmap.new.* to pmap.*.

To read the revision history of PMAP_NEW up until this merge, use cvs
rlog of the old pmap.new.* files.
1999-06-17 00:22:41 +00:00
thorpej
e2442268e9 PMAP_NEW is no longer optional on the i386; the old pmap's page table
allocation strategy no longer works at all.  Move pmap.new.* to pmap.*.

To read the revision history of PMAP_NEW up until this merge, use cvs
rlog of the old pmap.new.* files.
1999-06-17 00:12:10 +00:00
thorpej
cf110d86e7 1.4D -- semantics of uvm_map_pageable() changed. 1999-06-16 23:10:51 +00:00
thorpej
d1d9b366cd When unwiring a range in uvm_fault_unwire_locked(), don't call
pmap_change_wiring(...,FALSE) unless the map entry claims the address
is unwired.  This fixes the following scenario, as described on
tech-kern@netbsd.org on Wed 6/16/1999 12:25:23:

	- User mlock(2)'s a buffer, to guarantee it will never become
	  non-resident while he is using it.

	- User then does physio to that buffer.  Physio calls uvm_vslock()
	  to lock down the pages and ensure that page faults do not happen
	  while the I/O is in progress (possibly in interrupt context).

	- Physio does the I/O.

	- Physio calls uvm_vsunlock().  This calls uvm_fault_unwire().

	  >>> HERE IS WHERE THE PROBLEM OCCURS <<<

	  uvm_fault_unwire() calls pmap_change_wiring(..., FALSE),
	  which now gives the pmap free reign to recycle the mapping
	  information for that page, which is illegal; the mapping is
	  still wired (due to the mlock(2)), but now access of the
	  page could cause a non-protection page fault (disallowed).

	  NOTE: This could eventually lead to a panic when the user
	  subsequently munlock(2)'s the buffer and the mapping info
	  has been recycled for use by another mapping!
1999-06-16 23:02:40 +00:00
thorpej
b861180119 * Rename uvm_fault_unwire() to uvm_fault_unwire_locked(), and require that
the map be at least read-locked to call this function.  This requirement
  will be taken advantage of in a future commit.
* Write a uvm_fault_unwire() wrapper which read-locks the map and calls
  uvm_fault_unwire_locked().
* Update the comments describing the locking contraints of uvm_fault_wire()
  and uvm_fault_unwire().
1999-06-16 22:11:23 +00:00
thorpej
42c671ffba Modify uvm_map_pageable() and uvm_map_pageable_all() to follow POSIX 1003.1b
semantics.  That is, regardless of the number of mlock/mlockall calls,
an munlock/munlockall actually unlocks the region (i.e. sets wiring count
to 0).

Add a comment describing why uvm_map_pageable() should not be used for
transient page wirings (e.g. for physio) -- note, it's currently only
(ab)used in this way by a few pieces of code which are known to be
broken, i.e. the Amiga and Atari pmaps, and i386 and pc532 if PMAP_NEW is
not used.  The i386 GDT code uses uvm_map_pageable(), but in a safe
way, and could be trivially converted to use uvm_fault_wire() instead.
1999-06-16 19:34:24 +00:00
thorpej
23c6eb95d3 Remove a incorrect-and-no-longer-relevant comment. 1999-06-16 18:43:28 +00:00
thorpej
26879cb8fb Clean up some comments. 1999-06-16 17:43:49 +00:00
minoura
ff8fb3ef82 Remove extra ]. 1999-06-16 17:25:39 +00:00
tsubai
c28bad1d51 Define PowerBook G3 Japanese keyboard. 1999-06-16 08:48:37 +00:00
tsubai
a2e8151f8e Define symbolic name of PMU commands. 1999-06-16 07:43:58 +00:00
pk
b6429ec3c5 In scsipi_done(), call scsipi_free_xs() at splbio(). 1999-06-16 07:35:31 +00:00
thorpej
ee9703dea9 Add a macro to test if a map entry is wired. 1999-06-16 00:29:04 +00:00
thorpej
ad528dfdf0 Regen. 1999-06-15 23:29:17 +00:00
thorpej
0cec533f77 Add mlockall at #242 and munlockall at #243. 1999-06-15 23:28:16 +00:00
thorpej
c5a43ae10c Several changes, developed and tested concurrently:
* Provide POSIX 1003.1b mlockall(2) and munlockall(2) system calls.
  MCL_CURRENT is presently implemented.  MCL_FUTURE is not fully
  implemented.  Also, the same one-unlock-for-every-lock caveat
  currently applies here as it does to mlock(2).  This will be
  addressed in a future commit.
* Provide the mincore(2) system call, with the same semantics as
  Solaris.
* Clean up the error recovery in uvm_map_pageable().
* Fix a bug where a process would hang if attempting to mlock a
  zero-fill region where none of the pages in that region are resident.
  [ This fix has been submitted for inclusion in 1.4.1 ]
1999-06-15 23:27:47 +00:00
ad
10b0c75443 - Don't even try to emulate WSATTR_HILIT on mono displays
- WSATTR_REVERSE is a capability of both mono/color
1999-06-15 22:34:45 +00:00
perseant
a818a47169 Minor changes to the segment live bytes calculation. In particular, fixed
a bug in fragment extension that could run the count negative.  Also, don't
overcount for inodes, and don't count segment summaries.  Thus, for empty
segments the live bytes count should now be exactly zero.
1999-06-15 22:25:41 +00:00
thorpej
602d8e81f7 Don't (ab)use uvm_map_pageable() to allocate PT pages. Instead, do
some internal reference counting on PT pages.  We still allocate them
with the page fault routine (a wire-fault, now), but no longer free
PT pages from pmap_pageable().
1999-06-15 22:18:07 +00:00
ad
05a0ca4737 Fix stupid alignment bug. The 'slop' stuff is due for replacement with masks
RSN per the README.
1999-06-15 21:34:05 +00:00
kleink
857dfc7058 Slightly rearrange the SSIR inline assembly implementation in order to avoid
making assumptions on C symbol name prefixes.
1999-06-15 15:26:34 +00:00
kleink
51eb26bf7e Slightly rearrange the inline assembly in ledcontrol() to avoid frobbing a
C symbol name prefix.
1999-06-15 15:18:55 +00:00
minoura
cd06c07723 Check file open mode at ioctl.
Add debug option SRAM_DEBUG_DONTDOIT.
1999-06-15 15:04:56 +00:00
thorpej
fed8519457 Don't load the symbol table if it's corrupted. 1999-06-15 00:23:19 +00:00
cgd
e33c6c47a2 set bb_flags to zero; who knows what they were (on disk) previously,
and SRM is finicky about what values it will allow.
1999-06-14 23:55:29 +00:00
cgd
b6e1d0f85a set bb_flags to 0. Though not strictly necessary (because of an earlier
memset()), this is nice for source-level consistency.
1999-06-14 23:52:25 +00:00
thorpej
45e5ec934e Use a more descriptive wait message for VM map locks. 1999-06-14 22:05:23 +00:00
augustss
475ed73e46 Get rid of a bunch of code that was part of an old USBDI proposal, but that
is unused in our USB stack.

Once upon a time, when I started writing the USB stack for NetBSD, there
was an effort to make a standard for how USB device drivers should interact
with the rest of the USB stack.  This effort had contributors from just
about all Un*x camps (but not Micro$oft :).  I based my design on one of their
early proposals since I thought it would be a good idea if we could all
share device drivers with a minimum effort.  Shortly after I started my work
all the free Un*x people were thrown out of the USBDI work since we did not
pay the USB membership fee.  Well, some time has passed now and the work of
the standardization group is almost public again.  But alas, the new standard
has grown to be a monster!  I do not want to have this as the basis for the
*BSD USB stack; it is far too complicated.
So, since we are not even close to being compilant with the standard, I've
thrown out some old baggage.
1999-06-14 17:09:57 +00:00
augustss
656245dc18 Check that the hub ports actually power up. 1999-06-14 16:59:47 +00:00
tsubai
4df925b8b0 * Don't use DMA interrupt.
* Stop DMA explicitly in finish routine.
1999-06-14 08:53:06 +00:00
tsubai
86d2f9253a Consider "have /psuedo-hid and only ADB keyboard" case to make the
new PowerBook G3 happy.
1999-06-14 06:22:50 +00:00
briggs
3cce22665e Clear interrupts on a Radius GS/C card. Thanks go to Yasufumi Suzuki
<yattin@sco.bekkoame.ne.jp> for doing the MacsBug "leg"work for me.
1999-06-14 03:11:34 +00:00
oster
f4628e2fda FILE_UNUSE needs two args, not one. 1999-06-13 21:34:32 +00:00
oster
86abd11d42 Remember to pass down the proc pointer when adding a hot spare.
(Thanks to Martin J. Laubach for helping track this one down.)
1999-06-13 20:36:17 +00:00
mhitch
cff0f6b1e4 Don't pre-load the identify message into the fifo just just before the command register
is written.  This significantly reduces, if not eliminates, the problem reported in
PR#5510.  It stops the problem on my 5000/200, and two other people have verified that
it fixes the problem on their 5000/200s.  I'm waiting for confirmation from the PR
originator before closing the PR.
1999-06-13 17:21:29 +00:00
kim
c867e93fae Pickup changes from ../biosboot/Makefile and add .PATH so that source
files are found.  Now this compiles ok (have yet to run the blocks).
1999-06-13 17:21:18 +00:00
pk
f90f079222 Fix typo in previous. 1999-06-13 07:58:20 +00:00
pk
fee9cd9c12 Initialize the heap (for alloc()) explicitly, since the `end' symbol
is not necessarily double-word aligned.
1999-06-12 12:49:24 +00:00
dante
001471550c Move chip version check from advlib.c to adv_isa.c 1999-06-12 12:10:30 +00:00
dante
35e149ef50 Move chip version check from advlib.c to adv_pci.c 1999-06-12 12:09:58 +00:00
dante
d0fb45fdf3 Clean up some stuff
Remove chip version check
Now compile again on 68k based systems
1999-06-12 12:09:01 +00:00
pk
5b4a75d281 scsipi_free_xs() wants to be called at splbio; do it. 1999-06-12 11:19:00 +00:00
pk
3fffa45b75 Guard global `rnd_mempool' against interrupts.
Use appropriate flags in pool_get().
1999-06-12 10:58:47 +00:00
ender
2b55a690f8 Change the annoying printf() of 2 backspaces to a space followed by a
backspace for aesthetics.
1999-06-12 00:21:13 +00:00
wrstuden
9f43c5a1f2 If we're the console keyboard, automatically enable the keyboard.
Should fix part of console keyboard problems on macppc. The usb keyboard will
now work on boot! Doesn't fix problems with keyboard freaking out when
changing LED state.

Thanks to Mattias & Lennart & Tsubai for input on resolving this problem.
1999-06-11 19:05:13 +00:00
scottr
35f356e920 Eliminate more overhead in delay(); there's no point in doing the same
thing in both the calibrator function and the actual delay function.  At
this point, _delay() does all of the work, so we can garbage collect
dummy_delay() and make _delay() an alternate entry point for delay().

This results in a small (but measurable) improvement on the IIci.
1999-06-11 06:51:39 +00:00
nisimura
e3b1b88d76 - Errors in case analysis... 1999-06-11 01:44:47 +00:00
nisimura
f4be9af151 - Rework copycols() with SFB ASIC calls. 1999-06-11 00:56:09 +00:00
augustss
c65a504ed5 Add more debug. 1999-06-10 15:48:27 +00:00
eeh
0693ec8379 Don't change protection on the clock for the moment. 1999-06-10 04:31:20 +00:00
briggs
a6b22a059a Note that 0x146 is a Micron Exceed. 1999-06-10 03:25:18 +00:00
briggs
3ea7c860b9 Use information from Kensuke Ogawa <kenogawa@festa.or.jp> to disable
interrupts on a Micron Exceed color video card.
1999-06-10 03:24:38 +00:00
nisimura
9a3291290d - Correct errorneous comments for kn*_wbflush() routines. 1999-06-10 01:37:10 +00:00
nisimura
0ebace83f4 - Remove local declaration of 'dev_name2blk[]'.
- Minor formatting correction and removal of defunct debug lines.
1999-06-10 01:06:40 +00:00
augustss
2959234be5 Fix a bug in bulk input. Discovered by Joel Chen <jchen@liberate.com>. 1999-06-09 22:57:16 +00:00
wrstuden
cd0a68c3f6 Fix use of & when % was appropriate. 1999-06-09 19:40:54 +00:00
augustss
27b9cd0724 Remove a redundant test. 1999-06-09 17:04:45 +00:00
scottr
6adfba2698 Tweak previous: use shorter instructions to accomplish the same
#task (minimizes overhead).
1999-06-09 15:34:08 +00:00
drochner
6e2b65ec1d regen 1999-06-09 12:38:50 +00:00
drochner
b4e4c530db add "sys_" prefix to LFS syscalls 1999-06-09 12:33:18 +00:00
drochner
b121ed29dd complete the previous
reindent syscall args
1999-06-09 12:18:19 +00:00
scottr
3c26ad58a1 Someone forgot to tell ddb that SWAP is not PEA. 1999-06-09 07:53:22 +00:00
nisimura
981a3b4cb2 - Nuke declarations for now obsolete implementations of spl()s. 1999-06-09 07:33:29 +00:00
scottr
f2f8426e86 Write a new low-level assembly help for delay() and the calibrator. This
eliminates stalls during instruction prefetch and makes the delay
consistent regardless of kernel configuration.
1999-06-09 06:59:53 +00:00
christos
e2b181b130 prefix the lfs syscalls with sys_ 1999-06-09 04:52:11 +00:00
christos
354ba222e6 Regen 1999-06-09 04:50:32 +00:00
christos
b7a0cd53a2 Propagate kern changes 1999-06-09 04:50:10 +00:00
christos
4ebea99d8e Regen 1999-06-09 04:28:24 +00:00
christos
1e6c35821b propagate changes from kern 1999-06-09 04:27:44 +00:00
christos
2e93ab06a7 Regen2 1999-06-09 04:27:01 +00:00
christos
e13d964178 Regen 1999-06-09 04:25:54 +00:00
christos
3f8f92f2b4 Add EXCL keyword as described in tech_kern, and fix comments. Make the
vtrace syscall UNIMPL because it is.
1999-06-09 04:25:30 +00:00
briggs
f98c8a0394 Remove some register declarations.
Get Q9x0 dual SCSI at least basically working.
Be paranoid about some register reads.
1999-06-09 03:41:34 +00:00
christos
2cfd9ef718 Synchronize with GENERIC 1999-06-09 01:47:14 +00:00
simonb
6a949cddfb Include <pmax/pmax/machdep.h> instead of declaring our own prom_*()
prototypes.
1999-06-08 23:42:36 +00:00
simonb
b7a2ec3f01 + Call prom_scsiid() to found out what the host SCSI ID should
be instead of hardcoding values.
 + Print the host SCSI ID in siiattach().

XXX - probably should do the same to the ASC driver??  The manuals for
the 5000 series machines don't mention the scsiidN env variable, but it
is present on all the models I've looked at...
1999-06-08 23:41:59 +00:00
simonb
7eb995464d + Add prototypes from the prom_*() callback routines.
+ Remove leading "extern" from function declarations.
 + CG unused latched_cycle_cnt.
1999-06-08 23:40:42 +00:00
simonb
661c94c72c + Add prom_getenv(), and use it instead off calling callv->_getenv.
+ Add prom_scsiid() to read and decode the prom scsiidN environment
   variable that says what the host SCSI id should be.
 + Include <pmax/pmax/machdep.h> instead of declaring our own
   prom_*() prototypes.
1999-06-08 23:40:19 +00:00
mrg
efb227d3a7 fix a few KNF nits .. 1999-06-08 10:38:15 +00:00
mrg
30c351dc59 mmm, missing return types make gcc unhappy. 1999-06-08 10:35:36 +00:00
mhitch
d9be0d6e6b When entering a read-only page for MIPS3, va does not need to be adjusted by PAGE_SIZE
when flushing the I-cache.
1999-06-08 03:44:18 +00:00
thorpej
c146fe969e Regen. 1999-06-08 03:08:32 +00:00
thorpej
8b35c542b5 mincore: caddr_t -> void * 1999-06-08 03:07:39 +00:00
thorpej
84380f9fbe In sosend(), if so_error is set, clear it before returning the error to
the process (i.e. pre-Reno behavior).  The 4.4BSD behavior (introduced
in Reno) caused transient errors to stick incorrectly.

This is from PR #7640 (Havard Eidnes), cross-checked w/ FreeBSD, where
Bill Fenner committed the same fix (as described in a comment in the
Vat sources, by Van Jacobsen).
1999-06-08 02:39:57 +00:00
nisimura
540b02ab76 - Exterminate haunted evil soul of MIPS va_arg(). Verified OK with
either endian.  Not a perfect solution which would be revealed on
a certain condition when va_arg() is applied to magical struct
arguments passed by value.  format_bytes() is now saved.  With the
help from Noriyuki Soda and Masanari Tsubai.
1999-06-08 00:46:38 +00:00
thorpej
1c5f2999b2 Make sure `olddelta' is a valid pointer before performing the guts of
the adjtime(2) system call.  Fixes PR #7721, Darren Reed.
1999-06-07 22:33:53 +00:00
is
b7ee76f1c4 Check for an unterminated bus; if yes: complain and don't try to use this
bus. Without this, cbiiisc used to hang if nothing was connected.
Reported by Matthias Scheler. A similar method to avoid this was suggested
by Ralph Schmidt.
1999-06-07 21:30:57 +00:00
thorpej
2c35c7bd03 Only declare block major numbers for devices which can be the root device. 1999-06-07 20:31:27 +00:00
thorpej
d76e7b8c6d Don't pass a nam2blk around at all; just have setroot() and friends reference
dev_name2blk[] directly.  Addresses PR #7622 (ITOH Yasufumi), although
in a different way.
1999-06-07 20:16:08 +00:00
thorpej
12006f3c05 Don't clobber the error returned by uiomove() when starting the audio
output (in case we got a partial block).  Fixes PR #7722, from
Antti Kantee <pooka@iki.fi>.
1999-06-07 19:24:38 +00:00
thorpej
ec9fd3b48c Fix a braino in vm_map_unlock(). Thanks to Chuck Silvers for pointing
out that there was a problem, and for sending me a trace.
1999-06-07 16:34:04 +00:00
thorpej
5de7bac9b1 Print the maps flags in "show map" from DDB. 1999-06-07 16:31:42 +00:00
thorpej
397b71aaca Fix a typo. 1999-06-07 15:25:19 +00:00
mrg
0525e9c7ef add ebus attachment for cs4231. this does not work as it requires ebus DMA and will panic if enabled. but it should otherwise be mostly complete. 1999-06-07 14:59:14 +00:00
mrg
03c5c00056 remove "EXPERIMENTAL" comment from this file, as it does not exist elsewhere in this directory. 1999-06-07 14:43:34 +00:00
thorpej
a0faadd7d2 Make traces work with ELF kernels. 1999-06-07 07:00:07 +00:00
mrg
aa506f8098 copyright foo. in the future, we will all be binary-redistributable. 1999-06-07 05:40:08 +00:00
eeh
1884f05354 Another general cleanup:
Remove the entire idea of fasttrap interrupts since V9 traps are really cheap,
the CPUs are really fast, and the completely different trap frames would make
these handlers really difficult to implement.

pmap_changeprot() was only used by the clock and one other place; deprecate it.

probeget() and probeset() now take 64-bit addresses even in 32-bit mode so we
can probe IO locations by physical addresses.

Some pmap cleanup.

Some more copyright cleanup.
1999-06-07 05:28:03 +00:00