Commit Graph

21133 Commits

Author SHA1 Message Date
sakamoto f94197be4a Eliminate unnecessary define. 1998-02-02 05:17:40 +00:00
sakamoto 56620b3054 Move "read clock information from bootinfo" to initppc() from cpu_initclocks()
for delay() before cpu_initclocks().
Sync with powerpc/powerpc/machdep.c.
1998-02-02 04:59:19 +00:00
thorpej 172b242837 Rearrange slightly the way the debugger exception vectors are initialized. 1998-02-02 03:01:28 +00:00
marc b01ada14d9 fix up the power management code to dtrt with the 3c562A mfc card (and
hopefully the other variants)
1998-02-01 23:52:25 +00:00
marc 6b68f8b698 use an array of serial devices, not a cascaded if
add power management support
1998-02-01 23:50:52 +00:00
marc 3a3ac64f4f rewrite mfc intr management not to use unexported spl* functions
add mfc iobase/iosize support
 add power management support
1998-02-01 23:49:02 +00:00
marc cdc3013464 whitespace changes for readability 1998-02-01 23:38:44 +00:00
marc 57e56a34bc add state to struct pcmcia_function for mfc iobase/iosize support 1998-02-01 23:38:06 +00:00
marc 5c17882e45 move pcic_wait_ready from i82365var.h to i82365.c 1998-02-01 23:36:23 +00:00
marc 63f5e2bbc3 move pcic_wait_ready to i82365.c 1998-02-01 23:33:51 +00:00
marc 1d4b77e754 split com_attach_subr into attach stuff and per-open initialization stuff
add timeouts to all splserial() while loops so bugs elsewhere don't cause
the com driver to wedge the machine
 add power management support
1998-02-01 23:33:01 +00:00
marc a71698f108 add power management hooks to softc 1998-02-01 23:30:49 +00:00
is b3fa451227 Amiga uses the common m68k/sig_machdep.c now. Also moved its definition from
the other 68k ports' files.${port} to arch/m68k/conf/files.m68k.
1998-02-01 21:23:24 +00:00
kleink fa75c2d647 Fix two harmless typographical errors in a comment. 1998-02-01 19:25:44 +00:00
christos 3c7ab5dc3a Regen. 1998-02-01 13:25:00 +00:00
christos eff7649981 Enable nanosleep 1998-02-01 13:12:42 +00:00
thorpej cfa47dfc11 Add support for installing boot blocks into ISO-9660 file system images. 1998-02-01 06:59:30 +00:00
thorpej fea34a1cf2 Bump the ramdisk size to 3M. 1998-02-01 02:55:42 +00:00
jonathan 5ca978e981 Use correct name ("ioasic") when checking parent bus. 1998-02-01 02:25:34 +00:00
jonathan 696b21e65f Change VM_WAIT --> vm_wait() in mips pmap code, where waiting after
vm_page_alloc1() fails to return a page for use as a segtab.

XXX there must be a better way to do this.
1998-02-01 01:55:15 +00:00
thorpej 4efe4fc0da le* at isa? isn't ready for prime-time yet. 1998-02-01 00:24:26 +00:00
pk f3ee364e31 * Make sure the `ECB_NEXUS' flag accurately reflects the existence of
an initiator/target nexus and thus mark the correct queue (if any) a
  command is on.

* If a disconnected command times out, just leave it on the nexus queue
  and do nothing (for now). I need yet to decide on the strategy to
  follow in this case.  Note: we used to move the command to the `ready'
  queue and then do nothing, which is worse.
1998-01-31 23:37:51 +00:00
christos 5ba817c967 Don't hardcode the interrupt type; use what the pnp config provided to us. 1998-01-31 21:31:35 +00:00
ragge a355d0bc1b Re-implement page reference bit emulation by using the (otherwise unused)
valid bit. This is faster than the "unmap all" solution that were described
in that Mach paper _and_ it eliminates the need for checking the wired bit.
As a result of this; swapping started working again on vax :-)
1998-01-31 12:17:34 +00:00
christos 1caaa1f520 PR/4883: Andreas Wrede: Check for wildcard mem address not io ports. 1998-01-31 11:23:35 +00:00
ross d0cce6d144 Take Jason's most excellent advice on platform.model. 1998-01-31 10:55:42 +00:00
ross 7516424fe6 Teach the NTP PLL how to lock when hz == 1000. 1998-01-31 10:42:11 +00:00
ross 1e62e0ffd9 Remove the #include of rpb.h from clock.c and set hz from the hwrpb
in alpha_init() instead of from a hardwired 1024 in cpu_initclocks().
1998-01-31 10:32:47 +00:00
ross 9b463a1108 Print more info on ps/w, note the current proc, and properly declare db_maxoff. 1998-01-31 04:14:46 +00:00
ross c297f000b7 NFS swap fix. Most files here are modified purely to add a tsleep() wmesg
string. The actual functional changes are:

	1. in vm_page_alloc(), restore some long lost code by Paul Kranenburg
	that reserves the last few pages for kernel objects, adding an
	additional escape for the pageout daemon.

	2. In vm_wait() (replaces VM_WAIT), recognize the amusing fatal
	deadlock where the pagedemon sleeps on a channel that only it ever
	wakes up, and add a timeout and printf. Mod 1 should generally
	prevent this from happening in any case.

	3. Fix a livelock in vm_pageout_page() caused by a pre-wakeup of
	page consumers prior to the pageout, which can easily fail over
	memory issues in NFS and IP code. Also, ++ cnt.v_pageouts only
	if the pageout succeeded.
1998-01-31 04:02:39 +00:00
cgd 58fb6574f9 valloclim() was unused; kill it. #undef valloc() at the end of
allocsys().
1998-01-31 02:20:44 +00:00
ross 6270ed1711 Add the A12 fast ethernet controller, an if_de.c hacked (prior to
bus_dma's appearance in the tree) to support sram bounce buffers.
When a busified if_de.c appears, this module can join awd.c at the
end of that long walk on a short pier.
1998-01-31 01:43:40 +00:00
ross 3a83745247 In some hp300-derived pmaps, in pmap_page_protect(), don't walk off the
end of the list of physical->virtual entires into NULL space if the last
entry is (mysteriously) wired in the pmap. Add a DEBUG printf on alpha.
1998-01-31 01:32:55 +00:00
thorpej 480445c035 When a PCI bus is attached, print out which bus spaces were enabled
by the parent.
1998-01-31 00:37:39 +00:00
fvdl 0c8ab9044c Only take the receive lock before disconnecting when doing it from
nfs_decode_args. Otherwise we might just end up locking against ourselves.

XXX workaround, will do ok for now. Proper fix forthcoming.
1998-01-30 22:44:13 +00:00
bouyer d411251c64 Fix for the vibra16x from Lennart Augusts: saying that the dsp4.16 was
a SB64 was just a guess. The vibra16x is really a sb16.
1998-01-30 11:55:36 +00:00
bouyer 605c219597 Add ID for the Vibra16X PnP board (aka CT4170). 1998-01-30 11:42:51 +00:00
mellon 27a5a0a616 Take PCB off delayed ack queue before freeing. 1998-01-30 08:42:11 +00:00
jtc 7cea5e6bbe Fix tipo 1998-01-30 08:37:41 +00:00
thorpej cec1781573 Regen. 1998-01-30 02:25:28 +00:00
thorpej 8b75f90a86 Add entries for the PMAZ-DS and PMAZ-FS (Flamingo Turbochannel Dual SCSI
baseboard devices, normal and fast), and the PMAZB-AA and PMAZC-AA
(Turbochannel Dual SCSI option cards, normal and fast).
1998-01-30 02:24:58 +00:00
augustss 6f6593a533 Fix initialization and timing problem.
As per misc/4902, from Clifford Wright <cliff@snipe444.org>.
1998-01-30 02:02:38 +00:00
thorpej 78650a8398 Use offsetof() from libkern.h 1998-01-30 01:26:51 +00:00
thorpej 9bba708a7a Add 1000baseFX and 10baseT/STP Ethernet media types. 1998-01-30 01:24:40 +00:00
ross 1559f49cd1 Correct a number of apparent errors in a few reboot paramemter block fields. 1998-01-29 22:28:52 +00:00
ross ccafd3dcb9 Define the A12 names. 1998-01-29 22:26:24 +00:00
ross f2d2b6bf68 defopt for AVALON_A12 and specifiers for all the platform modules. 1998-01-29 22:23:06 +00:00
ross 18beceb2f9 Recognize Avalon A12 cputype code. 1998-01-29 22:20:15 +00:00
ross 43a3471986 While here in alpha/stand, add a technically required imb coherency op
just before transferring to the kernel entry point.
1998-01-29 22:13:25 +00:00
ross c1972a428c Avoid VMS palcode ops by using a different technique for cpu_number(),
and don't execute the VMS->OSF palcode switch if the OSF palcode
is already running...which will be the case if the console is not
the venerable SRM.
1998-01-29 22:09:37 +00:00
ross 8430acf1e7 Add a12 platform support. The A12 is a scalable, distributed memory parallel
processor.
1998-01-29 21:46:33 +00:00
ross 12f93343cd Add basic platform support for NetBSD on the Avalon A12. I'm running this
CVS commit on one right now...
1998-01-29 21:42:50 +00:00
ross 683fada0e3 Clean up duplicated code sequences and add an imb (a coherency operation)
whenever the console code is mapped and unmapped.
1998-01-29 21:11:58 +00:00
ross 0c4d28f49e Fix an alpha-specific page daemon wedge...the new pmap_clear_reference()
may be faster, but it was supposed to _clear_ PMAP_ATTR_REF, not _set_ it.
1998-01-29 05:44:57 +00:00
tron 56ba21e271 Add option "#options IPFILTER_LOG", fixes port-i386/4858. 1998-01-29 01:53:03 +00:00
thorpej a7bc6bd92c In the NE2000 case, if we encounter an unaligned mbuf, copy it to an
aligned buffer so that we can do 16-bit PIO to the device without causing
an unaligned access fault.
1998-01-29 00:59:33 +00:00
mjacob 99139bc35a Fix for port-alpha/4903- always download f/w unless config flags say
no or we have no firmware to download.
1998-01-28 19:09:24 +00:00
thorpej 9359316f6f Add support for the 82553[AC] PHY by treating it like an 82555. From
Soren S. Jorvang <soren@t.dk>, PR #4840.
1998-01-28 18:31:37 +00:00
thorpej d454388747 Fix think-o. Noted by Ian Dall. 1998-01-28 18:26:09 +00:00
bouyer 2edc21452a The name of cyrix's CPU family 6 model 0 is 6x86MX. Also set this name
for the default name.
1998-01-28 17:08:05 +00:00
gwr 6b745182fc No need for NFS_BOOT_RWSIZE here (root is always md0) 1998-01-28 16:41:10 +00:00
gwr d2f145c059 Add NFS_BOOT_BOOTPARAM (fixes PR#4904) 1998-01-28 16:40:19 +00:00
thorpej b89119c134 Convert this driver to use the bus_dma interfaces. 1998-01-28 07:26:42 +00:00
mjacob 5cafda5b3c Update 2100 F/W to 1.10 level. Also remove some older 2100 f/w versions.
This version of the 1.10 f/w is initiator only (not initiator/target).
1998-01-28 06:09:02 +00:00
thorpej 4c54445530 Use offsetof() from libkern.h 1998-01-28 02:35:10 +00:00
thorpej 2538ed1062 Use offsetof() from libkern.h 1998-01-28 02:23:04 +00:00
thorpej 529b95c8d9 Add offsetof(). 1998-01-28 02:22:14 +00:00
pk d8dc32e559 It's no longer necessary to deal with the timers early. 1998-01-28 00:15:09 +00:00
cgd 08af1cdbbc prototype of_compatible 1998-01-28 00:01:34 +00:00
cgd b4026f2974 clean up comments and includes. add an of_compatible() function
which checks for the presence of any of a set of caller-provided
strings in a node's "compatible" property (the _right_ way to
determine driver compatibility).
1998-01-28 00:01:01 +00:00
cgd 9e47d44515 Make sure the data after the Ethernet header is aligned. (It's been
in the Shark source tree for a while, but Jason's recent commit to
dp8390.c spurred me to check it in here.)
XXX Assumes the device is an ethernet, but then so does other code in
this driver.
1998-01-27 23:55:18 +00:00
thorpej cdec42b6a0 Fudge the start of the data pointer of the first mbuf in the chain when
reading a packet, ensuring that the data after the Ethernet header will
be aligned.  Part of PR #4595, from Andreas Johansson <ajo@wopr.campus.luth.se>
1998-01-27 23:26:21 +00:00
drochner 6f8773dd64 I'm not responsible for this address window splitting hack, but I fix it
anyway.
1998-01-27 19:14:18 +00:00
cgd a34a81d49b fix change made in rev 1.5: clock was moved to ioasic, but ioasic
_requires_ offset locator (which may be wildcarded).  No offset locator
was supplied, so kernel configs using this file would fail.
1998-01-27 18:17:39 +00:00
ragge fe52d237fd Fix to make vfork work on machines with separated PCB/mtpr PTE registers. 1998-01-27 17:35:03 +00:00
sakamoto a013a80854 Import DDB from OpenBSD/powerpc. 1998-01-27 15:13:09 +00:00
sakamoto 7055a6a919 Import DDB from OpenBSD/powerpc. 1998-01-27 09:15:58 +00:00
sakamoto 8c2e671594 Fix PR/4679:missing cast, from SUNAGAWA Keiki. 1998-01-27 05:46:59 +00:00
thorpej 5d3fc3e8bc Implement bus_dmamap_load_mbuf(). 1998-01-27 03:31:54 +00:00
thorpej 5ac7e550d1 Implement bus_dmamap_load_mbuf(). 1998-01-27 02:35:58 +00:00
thorpej c7c415e733 Regen: add Packet Engines G-NIC gigabit Ethernet. 1998-01-27 01:03:29 +00:00
thorpej cdb46f9d8b Add product ID for the Packet Engines G-NIC gigabit Ethernet interface. 1998-01-27 01:02:46 +00:00
bad e73453eaf8 In vndsetcred(): after establishing credentials, flush all buffers
associated with the vnode from the buffer cache.  This obviates the
need to flush the buffer cache manually after ``vnconfig -u''.
1998-01-26 23:30:44 +00:00
gwr 995291fbac Deal with the fact that PROM driver descriptors are allowed to have
zero-length list of "standard addresses" by ignoring d_devbytes if
there are no addresses provided.  In these cases, the PROM will map
the device without our help.
1998-01-26 22:02:17 +00:00
cgd ed02c60bdd clean up for other changes (removal of ofnmmatch(), addition of
of_decode_int()), reorganize.
1998-01-26 21:49:13 +00:00
cgd b7c7fd66d0 of_decode_int() the stdin and stdout properties. 1998-01-26 21:49:00 +00:00
cgd cf90ace319 new file containing common OFW-related routines. Right now just contains
of_decode_int(), a function which decodes OFW integer properties.
1998-01-26 21:48:40 +00:00
cgd cdfa209843 (1) kill ofnmmatch(); nothing used it (and it's not clear that
anything _should_ use it).
(2) in the child properties check, also check for 'compatible,' and
    config_found() if the child has it.
1998-01-26 21:48:07 +00:00
cgd 0aee587bbf add ofw_subr.c, a file containing common OFW routines. 1998-01-26 21:47:35 +00:00
gwr faf4390c38 Save the "bustype" from our attach args in the controller "softc"
and use that instead of hard-coding BUS_VME32 everywhere.
(The Sun3X needs a more specific bustype value.)
1998-01-26 21:03:43 +00:00
gwr 3ba1e07ef5 Simplify the colormap and blanking stuff a little. 1998-01-26 20:53:17 +00:00
thorpej 243c218061 Update copyright. 1998-01-26 20:30:06 +00:00
thorpej 044add4253 If we're using these devices on a big-endian CPU, byte swap the "count"
field in the dp8390's packet header (because the dp8390 runs in little-endian
mode in these cases).  Inspired by an e-mail from Kazuki Sakamoto.
1998-01-26 19:21:36 +00:00
mycroft e8cf0c444c Make sure we create DMA maps if the CD4231 probe fails. 1998-01-25 23:48:06 +00:00
gwr ac930c3c4d Moved back to sun3/sun3 1998-01-25 22:41:07 +00:00
pk 72f0ab269f These drivers are now in dev/vme.
The `ie' driver has been split in a VME and OBIO front-end. The latter
lives on in this directory as `if_ie_obio.c'
1998-01-25 20:33:54 +00:00
pk 3d46658e38 disk_establish(): add xd & xy cases (XXX - need more thought). 1998-01-25 19:59:14 +00:00
pk 1b0d54e29a Adapt to recent i82586 driver changes. 1998-01-25 19:57:27 +00:00
pk f937c21c08 VME device declaration changes:
- `vmes,vmel' => `vme'
	- interrupt locator is the VME interrupt priority (`pri')
1998-01-25 19:56:30 +00:00
pk 531a4b2d77 sparc/obio bus front-end to the i82586 driver. 1998-01-25 19:50:50 +00:00
pk 8bc346d14a All VME stuff is gone from here. 1998-01-25 19:44:43 +00:00
pk 7a39d28b24 bus_map() & bus_untmp() are only used for sun4/obio devices. 1998-01-25 16:51:16 +00:00
pk d44f401c95 bus_tmp() => obio_bus_tmp() 1998-01-25 16:49:33 +00:00
pk bcb062819f The VME bus is now called `vme'. 1998-01-25 16:47:21 +00:00
pk 333b6319fc Convert to new VME interface. 1998-01-25 16:38:01 +00:00
pk 4efb52487a Split si & sw attach routines, and make the si part use the new VME interface. 1998-01-25 16:37:08 +00:00
pk f8ba1e0bd9 sparc/VME bus implementation. 1998-01-25 16:06:25 +00:00
pk c68cf46527 Add vme_bus_mmap_cookie() and vme_bus_establish(). 1998-01-25 15:53:18 +00:00
pk 639947d9ea Remove vestiges of sparc-related bootpaths. 1998-01-25 15:22:34 +00:00
mycroft 63162f08ec Add a svr4_setregs() (that just calls setregs() right now). 1998-01-24 18:26:09 +00:00
mycroft 15ae963bea When dumping, print out the device number as major,minor. 1998-01-24 16:46:23 +00:00
pk 8a5023e38c After writing to the IOMMU flush registers, read something back from
IOMMU control space to a flush register to drain internal write buffers (?).
This avoids utter lossage on some machines (SS4s & SS5s) where our caller
would see some of its local (`%lx') registers trashed. This is probably
caused by a silicon bug allowing interference on internal data paths..
1998-01-24 16:22:47 +00:00
mycroft 1f21545d93 Correct an oversight in the startup changes that caused the wrong exception
to be reported in one case.
1998-01-24 15:50:42 +00:00
pk 09559070f7 * Do not remove ATN from the scsi bus if we have no messages queued but
the target still is in MSG OUT phase. We still send a message (a NO_OP)
  in this case and the chip will remove ATN at the appropriate time.
  Using the RSTATN command here induces a "illegal command" in some
  chip revisions.

  This situation only occurs if the target rejects a previous (multi-byte)
  message early (by switching to MESSAGE IN and sending a MESSAGE REJECT)
  before the chip has completed the entire MSG OUT transfer. ATN will
  remain asserted, and the target returns to MESSAGE OUT phase.

* Account for the events above when reporting "DMA not completed"
  diagnostic messages.

* Stream-line the selection code a bit, and make the DMA setup code
  more like the MSG OUT & DATA XFER setup.
1998-01-24 15:33:35 +00:00
mycroft 8661bee5de Minor change. 1998-01-24 14:22:44 +00:00
ragge eda1eecede Remove __BROKEN_INDIRECT_CONFIG and change all drivers to use
config_search instead.
1998-01-24 14:16:11 +00:00
mycroft d664bf39b8 Add some comments about what the control words do. 1998-01-24 14:00:36 +00:00
mycroft a963fe5864 Store the initial NPX control word appropriate for the emulation in the saved
FPU state, and use it when initializing the FPU on demand.
1998-01-24 13:19:46 +00:00
mycroft a9a7cc88d1 Need foo_exec.h. 1998-01-24 12:45:16 +00:00
drochner ae1a2006c5 -take over debugging printf format fixes from sys/lib/libsa/nfs.c rev.1.23
-make error reporting for mount working as in sys/lib/libsa/nfs.c
1998-01-24 12:43:09 +00:00
mycroft 8bd9717302 Add local versions of setregs(), so I can tweak some registers later. 1998-01-24 12:42:22 +00:00
mycroft 9dd67a9098 Prototype new functions. 1998-01-24 12:39:37 +00:00
mycroft 112a8edc95 Use svr4_setregs(). 1998-01-24 12:34:16 +00:00
mycroft 69b60a733c Use freebsd_setregs(). 1998-01-24 12:33:15 +00:00
mycroft 72623d8443 Use linux_setregs(). 1998-01-24 12:32:15 +00:00
mellon 5685520ac1 Always set sc->sc_timeout (it was missed in one case). This fixes a problem where SYN cache entries are sometimes timed out almost immediately. 1998-01-24 12:27:31 +00:00
mycroft 4b8a102fbb Fix process_{read,write}_fpregs(). 1998-01-24 12:11:15 +00:00
mycroft 5ab55e91b7 Fix an old editing error from merging a bug fix into Lite,
that might cause us to erroneously drop a FIN.
Also, minor changes so the code looks more like Stevens vol 2 figure 28.30.
1998-01-24 05:04:27 +00:00
pk 49d2bfe020 Add a couple of options I forgot in last commit. 1998-01-23 22:47:20 +00:00
mycroft d15d246d32 Add wdc* at isapnp?. 1998-01-23 20:42:34 +00:00
mycroft 929286557a Add a PnP IDE frontend. 1998-01-23 20:40:58 +00:00
thorpej 60c3299e3e Fix some debugging printf formats. 1998-01-23 19:27:44 +00:00
thorpej cacd48c0d6 Print the correct error number if nfs_mount() fails. From Chris Demetriou. 1998-01-23 19:13:28 +00:00
cgd b92943e80a update to match (now-fixed) libc rules for strchr and strrchr.
Brokenness pointed out by Matthias Drochner.
1998-01-23 19:01:17 +00:00
drochner 7e5c045bb6 remove prototypes for deprecated index() and rindex() 1998-01-23 12:56:39 +00:00
mycroft 51ffd85641 Uncomment wdc. 1998-01-23 01:18:52 +00:00
mycroft c1d56d473f Add wdc* at pcmcia. 1998-01-23 01:16:03 +00:00
mycroft e89c38b4c2 Slight cleanup. 1998-01-23 01:14:13 +00:00
mycroft 753e4909bb Assume a newline has already been printed in wdcattach(). 1998-01-23 01:06:45 +00:00
mycroft 4ed268e9ac Print a newline in wdc_isa_attach(). 1998-01-23 01:04:54 +00:00
mycroft 22c1670658 Some rearrangement of the startup code:
* Move some of the memory bootstrapping and the DDB startup earlier.
* Always put the IDT and the initial GDT and LDT in a separate page.
* Various minor changes.
1998-01-23 00:44:02 +00:00
gwr 119b962a9d Add: extern struct cfdriver cgtwo_cd; 1998-01-23 00:01:28 +00:00
gwr 66be7643e5 Use the same names as the sun3x (DVMA_MAP_*) 1998-01-22 23:59:45 +00:00
gwr 5ba5bda641 Use the same names as the sun3x (DVMA_MAP_*) 1998-01-22 23:45:05 +00:00
mycroft 33c197e736 Half the include files are unnecessary. 1998-01-22 23:42:39 +00:00
gwr b6be0a1994 Use MONEND instead of DVMA_SPACE_START in the "DDB convenience" symbols. 1998-01-22 23:39:03 +00:00
gwr dd049a163c Add config flags for tty[cd] to set TIOCFLAG_SOFTCAR.
Remove the framebuffer devices (not useful here).
1998-01-22 23:21:57 +00:00
is 53d89006d1 If on the M68060, make cache-inhibited pages imprecise. Reads and writes
are still in-order, but cached reads dont wait for the last write to finish.
Xamiga on a Altais in 8bit-mode became 30% faster servicing xanim (well, 6%
if you count xanim, too).
1998-01-22 23:13:40 +00:00
gwr 2c9c7a74bd Remove the config flags from "si" lines so the driver default will
be used.  That also makes it possible to patch the kernel in case
the default option causes boot failures or something...
1998-01-22 23:00:24 +00:00
mycroft 76299bd2c0 Regen. 1998-01-22 22:37:04 +00:00
mycroft 9fdb0f8782 Add the Millenium II. 1998-01-22 22:36:16 +00:00
gwr 8c3664b216 Remove the config flags from "si" lines so the driver default will
be used.  That also makes it possible to patch the kernel in case
the default option causes boot failures or something...
1998-01-22 22:27:57 +00:00
gwr c292276dcf Change our DVMA map from the last 16MB to the last 1MB because that is
the only part that is visible to VME masters, and is adequate space.
This allows the "si" driver (on VME) to use DMA transfers.
1998-01-22 22:20:35 +00:00
gwr 56100bea19 When calling iommu_* functions, use IOMMU_VA_MASK. 1998-01-22 22:12:36 +00:00
gwr 0c50bf6487 No need to print the size (it's constant). 1998-01-22 22:09:11 +00:00
gwr 19e7bf4dcd Add: IOMMU_VA_MASK 1998-01-22 22:07:45 +00:00
gwr cc1b4e4724 In pmap_bootstrap_copyprom, copy only the last PTE from the PROM's
DVMA segment (for the page reserved by the PROM).  If we copy all
the mappings, pmap_enter_kernel may complain about finding valid
PTEs that are not recorded in our PV lists.  Make pmap_remove_pte
do something reasonable if it finds a PTE for a managed page that
has not been recorded in the PV lists.  (Plus other minor stuff).
1998-01-22 22:00:25 +00:00
gwr 58126a3b29 Separate pmap_activate() from _pmap_switch(), so the latter can remain
equivalent to what locore.s:cpu_switch does with in-line assembly when
PMAP_DEBUG is not defined.  Also do splimp/splx in pmap_activate.
1998-01-22 21:48:42 +00:00
gwr 43013bccbb Use MONEND instead of DVMA_SPACE_START in the "DDB convenience" symbols. 1998-01-22 21:35:27 +00:00
gwr ccf791aa2e Add: extern struct cfdriver fdc_cd; 1998-01-22 21:26:25 +00:00
mycroft c654cd6a87 Fix a bogon that flared up when XSERVER was defopted. 1998-01-22 20:55:48 +00:00
mycroft c9c365814e Regen. 1998-01-22 17:36:16 +00:00
mycroft 88ff8086d8 Nor COMPAT_09. 1998-01-22 17:36:01 +00:00
mycroft 91668a26c1 Regen. 1998-01-22 17:34:15 +00:00
mycroft 95745ffc95 This doesn't actually use COMPAT_10. 1998-01-22 17:33:49 +00:00
mycroft 0a4f0e60de Regen. 1998-01-22 17:33:03 +00:00
mycroft e8283b7944 This doesn't actually use COMPAT_10. 1998-01-22 17:32:25 +00:00
mycroft b77637a440 Fix an old typo that caused shmdt() to fail. 1998-01-22 17:22:52 +00:00
mycroft 769c9d4707 Clean this up a bit. 1998-01-22 16:33:57 +00:00
mycroft c79bc94b0e Regen. 1998-01-22 16:32:40 +00:00
mycroft 1e948ee1c3 Put a local copy of the SysV IPC compatibility from compat/common in here, so
it's not dependent on COMPAT_10.  Also, fix translation of shmctl(), since
FreeBSD's is a little different.
1998-01-22 16:31:33 +00:00
drochner 9219f22775 strchr.c disappeared from libkern, use index.c instead
(we can't control the libkern build as we want, but it works...)
1998-01-22 15:48:02 +00:00
drochner 8968860bab add prototype for index() 1998-01-22 15:42:24 +00:00
thorpej 201cba44d4 Sync w/ FreeBSD-current-980122:
- Rearrange softc for better cache line behavior.
1998-01-22 08:32:35 +00:00
thorpej 0916ab379b Sync w/ FreeBSD-current-980122:
- Rewrite fxp_start() for better clarity and efficiency.
- Remove unused #includes.
1998-01-22 08:31:33 +00:00
thorpej ed13bba51f Fix two register mapping problems:
- Fall back on i/o space if mem space isn't available.
- Card reports mem space as prefetchable, but mapping the card into dense
  space fails in nasty ways on the Alpha.  Force mapping into sparse
  space by clearing the BUS_SPACE_MAP_CACHEABLE bit (XXX!).
1998-01-22 08:04:56 +00:00
cgd ff65e57285 fix typo: s/max-address/mac-address/ 1998-01-22 01:47:43 +00:00
thorpej 2ee3e0153d Generate dependencies on the exec format options EXEC_AOUT, EXEC_ECOFF,
EXEC_ELF32, EXEC_ELF64, and EXEC_SCRIPT.
1998-01-22 01:32:14 +00:00
thorpej ea9ade0496 Generate dependencies on the INSECURE option. 1998-01-22 01:18:30 +00:00
thorpej dd4cb910db Generate dependenices on the XSERVER option. 1998-01-22 01:16:23 +00:00
cgd a014b499f1 add definitions for the mask registers. fix I/O size definitions. 1998-01-22 00:57:10 +00:00
fvdl dba168ad94 Refuse to create entries in the dir cache for offset 0. This is a special
case anyway, and amd(8) erroneously returns some entries with cookie 0.
Fixes PR 4844
1998-01-22 00:53:59 +00:00
thorpej 122364206a Generate dependencies on the DUMMY_NOPS option. 1998-01-22 00:44:06 +00:00
thorpej 54a35a6019 Generate dependencies on the USER_LDT option. 1998-01-22 00:39:16 +00:00
mark 09be9c026e Only update the intrcnt array if IRQSTATS is defined. 1998-01-22 00:04:10 +00:00
thorpej 9ba18e2255 Generate dependencies on the MATH_EMULATE option. 1998-01-21 23:29:08 +00:00
mark 2b66ad2b89 Implement severl missing prototypes. 1998-01-21 22:55:19 +00:00
mark 330df4c754 Added missing prototypes. 1998-01-21 22:51:38 +00:00
thorpej 9c3ef8899b Don't conditionally define the sgmap_log_entry structure, and turn off
SGMAP logging by default.
1998-01-21 22:36:10 +00:00
mark b0e99b3251 Cleanup various debugging printf format strings. 1998-01-21 22:34:39 +00:00
thorpej 3d9cd8a05a Extent names are const. 1998-01-21 22:34:38 +00:00
mark dfbf823cea Cleanup various debugging printf format strings. 1998-01-21 22:34:38 +00:00
thorpej 6428828e64 Const'ify the extent name. 1998-01-21 22:33:49 +00:00
mark a108da3f00 Cleanup function prototyping in disasm_interface structure. 1998-01-21 22:33:10 +00:00
mark ce1e283415 Axe some unused variables. 1998-01-21 22:28:12 +00:00
mark 74ff2dac9d Cleaned up various debugging printf format strings. 1998-01-21 22:25:37 +00:00
thorpej 66abe4217c Implement an activity log for malloc() and free(), useful for tracking
down "Data modified on freelist" and "muliple free" problems.

The log is activated by the MALLOCLOG option, and the size of the
event ring buffer is controlable via the MALLOGLOGSIZE option (default
is 100000 entries).

From Chris Demetriou, cleaned up a little by me per suggestions in the
e-mail from Chris that contained the code.
1998-01-21 22:24:32 +00:00
mark 52adaefc18 Include sys/systm.h for various prototypes. 1998-01-21 22:20:02 +00:00
cgd 4369378a6c add rules like those in libc to build strchr() and strrchr() (the latter
is being added to libkern by this commit).  remove strchr.c from
archs' Makefile.inc files to go along with this.  (If an arch has
a .S version, it should be copied down and added to the apropriate
Makefile.inc.)
1998-01-21 21:23:18 +00:00
cgd 61a021f836 sync with libc 1998-01-21 21:17:08 +00:00