Commit Graph

11072 Commits

Author SHA1 Message Date
pk ad1f2b7812 Remove call to mmu_pagein4m(), which is of little use. 1997-03-15 20:31:33 +00:00
briggs 4b6b2bb9f8 SONIC driver--originally from pica. Much work done by Dennis Gentry and
Takeshi Yanagisawa to get it working.  Some minor hacking by me here and
there.
1997-03-15 20:26:35 +00:00
pk f8918b9be9 Simplify `4m' versions of pmapbootstrap() and mmu_reservemon():
allocate and initialize all kernel page tables before looking at the
PROM maps, which allows mmu_reservemon4m() to simply walk the PROM tables
without having to allocate bits and pieces of our own kernel tables.

Slightly optimize getcontext() macros in mutli-arch kernels.

Remove un-needed `4m' version of mmu_pagein().
1997-03-15 20:24:09 +00:00
briggs 6f71d88157 Specify SONIC for 040 powerbooks and for CLASSQ and CLASSQ2 machines. 1997-03-15 20:17:40 +00:00
ragge 10bf322448 Make install docs more up-to-date. 1997-03-15 20:08:33 +00:00
briggs 6fc69ce7cb Add SONIC driver. Works on my Q700. Untested elsewhere. 1997-03-15 20:07:37 +00:00
scottr cc391b64de Remove obsolete MAC68K_BROKEN_VIDEO option. 1997-03-15 18:35:47 +00:00
scottr 702735759b Defer enabling NuBus slot interrupts until all slots have been probed
and drivers attached.  This removes the need for the MAC68K_BROKEN_VIDEO
option.  From Allen Briggs.
1997-03-15 18:33:44 +00:00
is 07b064e02e New ARP system, supports IPv4 over any hardware link.
Some of the stuff (e.g., rarpd, bootpd, dhcpd etc., libsa) still will
only support Ethernet. Tcpdump itself should be ok, but libpcap needs
lot of work.

For the detailed change history, look at the commit log entries for
the is-newarp branch.
1997-03-15 18:09:08 +00:00
ragge 44936626ed Make boot compile again. 1997-03-15 16:39:20 +00:00
ragge abedbf253e Clean up console autoconfiguration so that the VAXstation DZ11-like
console work.
1997-03-15 16:36:17 +00:00
ragge 668632a4df Change the way boot device is figured out; now only using DEC numbers
and done when the device get attached.
1997-03-15 16:32:16 +00:00
ragge 2a79087848 Put in some #ifdef's to compile only for MV2000. 1997-03-15 16:14:23 +00:00
ragge 285002ead6 Cleanup. Prepare for getting memory size from boot (VMB). 1997-03-15 16:11:25 +00:00
ragge 0044b4ccf0 Add a forgotten #ifdef. Remove debug printout. 1997-03-15 16:07:17 +00:00
ragge 1d90a0a507 Add definitions for DEC HW device numbers. 1997-03-15 15:09:40 +00:00
ragge b5b674f227 Do not use inline functions in boot blocks. Some CPUs doesn't have
all instructions.
1997-03-15 15:08:23 +00:00
ragge 8fa1cdb04b Add routines for network handling and standalone le driver.
To make this work nice, big changes to the boot unit handling
was also required. From now only DEC HW unit numbering are used
in boot, to easy match boot device in kernel.
1997-03-15 13:04:22 +00:00
briggs 3d16e320d6 Move physaccess/physunaccess prototypes. 1997-03-15 05:39:45 +00:00
jeremy 54bec78722 Update the 'status' paragraph to reflect the current working programs. 1997-03-15 03:41:01 +00:00
cgd 4f210d58be patch from Matt Jacob to enable secondary PCI bus support 1997-03-15 03:15:20 +00:00
mhitch 0918e34d85 After opening the disk device to force a disklabel read, it should really
be closed rather than opened again.
1997-03-15 02:59:43 +00:00
christos 4b697aa304 add emul.c 1997-03-15 02:36:00 +00:00
thorpej 92796a6d43 Add a mountroothook that prompts the operator to insert a file system
floppy, a'la the SPARC port.
1997-03-15 01:34:10 +00:00
christos 358f6940ee - fix return value in case we failed to write to the destination register.
- pretty-print registers.
1997-03-15 00:39:51 +00:00
christos 2c62945461 - move instruction emulation and alignment fixing to emul.c
- add sparc-v8 {s,u}{mul,div}{cc,} instruction emulation
1997-03-14 23:57:58 +00:00
christos d9d8878ed1 Asi instruction struct was missing the immediate bit! 1997-03-14 23:54:07 +00:00
mycroft f868dff8d3 Define the `cleankernel' target consistently with other ports. 1997-03-14 23:27:29 +00:00
mycroft cbbcf185ae Put the genassym.sh output in a temp file, and mv -f it, in case
it fails spectacularly and doesn't clean up.
1997-03-14 23:23:45 +00:00
mycroft 44149b42c2 Put the genassym.sh output in a temp file, and mv -f it, in case
it fails spectacularly and doesn't clean up.
1997-03-14 23:21:36 +00:00
mycroft d0c586a17f Put the genassym.sh output in a temp file, and mv -f it, in case
it fails spectacularly and doesn't clean up.  Also, remove dependencies for
genassym.o (since it no longer exists).
1997-03-14 23:16:08 +00:00
mycroft f7ad6fff40 Put the genassym.sh output in a temp file, and mv -f it, in case
it fails spectacularly and doesn't clean up.  Also, don't depend genassym.c
(since it no longer exists), and remove dependencies for genassym.o (since it
no longer exists).
1997-03-14 23:14:39 +00:00
gwr 40b1a6f68b No longer need to define SUN_BOOTPARAMS 1997-03-14 21:28:38 +00:00
cjs ca5f101ba7 Remove code that stops transfers of >63K. The Sun 4 doesn't have this
limitation, and minphys() is supposed to catch this on other architectures.
1997-03-14 19:57:20 +00:00
thorpej 76c1d7a5b5 We don't even need to clear the BSS here; it's been done by the boot
program for a Long Time, and doing it (correctly :-) here means that
we wipe out, among other things, boothowto.  (oops!)
1997-03-14 19:50:06 +00:00
pk 8a5abffaf5 Add some instrumentation to keep track of PMEG allocation.
Enabled #if DIAGNOSTIC.
1997-03-14 14:28:45 +00:00
thorpej a276c4ee15 - Some cosmetic changes to whitespace
- make the command parser table-driven
1997-03-14 06:56:27 +00:00
thorpej 6ed34bacd9 Purely cosmetic whitespace changes. 1997-03-14 06:55:07 +00:00
mycroft e96f48563b Add netboot.bin to CLEANFILES. 1997-03-14 05:07:27 +00:00
thorpej 63a75dcdcf Make this work with obj* dirs. 1997-03-14 04:59:34 +00:00
mycroft 3a99046fbb Update this to new config. 1997-03-14 04:21:13 +00:00
perry 627952867a Ressurect (not quite, since this is in fact the new boot code Makefile
now).
1997-03-14 02:54:14 +00:00
perry 816bb96145 Initial import of new boot code, created by Matthias Drochner with a
little hacking by me. This isn't strictly identical to his 920312
release -- I've hacked it a bit -- but since we are taking over change
control it doesn't matter much.
1997-03-14 02:40:32 +00:00
perry 2eb5a59f71 Initial import of new boot code, created by Matthias Drochner with a
little hacking by me. This isn't strictly identical to his 920312
release -- I've hacked it a bit -- but since we are taking over change
control it doesn't matter much.
1997-03-14 02:40:29 +00:00
cgd 80bf6049dd fix from Matt Jacob: configuration accesses need PCI Byte enables just
like sparse memory accesses do.
1997-03-13 23:59:36 +00:00
gwr 2f598d011a Sync with sun3 (Trap 1,2,15 handlers) 1997-03-13 20:46:37 +00:00
gwr 0fefd47a64 Use arch/m68k/m68k/sig_machdep.c 1997-03-13 20:30:19 +00:00
gwr 5c553cfd2f Factor out sendsig() and sys_sigreturn() from $arch/machdep.c 1997-03-13 19:14:35 +00:00
gwr de65671490 Ported to the sun3x by Jeremy 1997-03-13 17:52:44 +00:00
gwr ee531cb3c9 s/sun3x_/_/ in sun3x_(round|trunc)_(page|seg) macros 1997-03-13 17:40:33 +00:00
thorpej 711486fd1b Fix a typo (oops). 1997-03-13 17:14:45 +00:00
gwr 24120736d8 Import the sun3 version of this on the "vendor branch". 1997-03-13 16:27:27 +00:00
gwr f3952a7326 No longer need to override DEFS 1997-03-13 16:19:01 +00:00
gwr 032d13fc7d s/sun3_/_/ in sun3_(round|trunc)_(page|seg) macros 1997-03-13 15:58:49 +00:00
leo e4a48696a6 Add member to bitmap struct that gives the size of mappable memory. 1997-03-13 12:37:08 +00:00
matthias d8319f5c75 remove leftover from switch to the mi kgdb interface. 1997-03-13 10:25:25 +00:00
matthias c6d2740564 Integrate Phil Budne's latest changes to the scn driver. From his README:
* Uses Counter/Timer dynamicly for rate generation; You can
	  have both 19200 and 38400 on one duart, and 57600 on another!
	* Improved scninfo program to dump driver internal information.
	  implemented counters for parity err, framing err, break
	* Delays changes until transmitter idle to avoid "glitches"
	* Cleaned up scn_softc member names
	* Untested support for sc26c92 (I don't yet have any to test with);
	  + Will use alternate rate tables (include 115.2kbps and 230.4kbps)
	  + Will raise FIFO rx interrupt threshold and watchdog timer
	    at higher rates.
	  + Unknown (to me) how fast pc532 MC145406 driver chips can go

	NOTE: It seems like it may be a BAD idea to use a sc26c92 as
	a console port for now; the PROM doesn't know to reset the
	chip back to scn2692 mode!!
1997-03-13 10:24:14 +00:00
thorpej 8229701876 oops, don't need trap.h here anymore 1997-03-13 09:29:03 +00:00
thorpej 72ba35e689 Don't genassym the trap type values; just include <machine/trap.h> 1997-03-13 09:27:21 +00:00
thorpej deeac396e7 Use genassym.sh to facilitate cross compiling. 1997-03-13 09:24:21 +00:00
thorpej f6d3f6c93b Use the script version to facilitate cross compiling. 1997-03-13 09:22:19 +00:00
mycroft 4913ba5369 V_SWTCH is no longer needed. 1997-03-13 04:37:20 +00:00
mycroft 2f18f33d16 Use genassym.cf, to support cross-compiling. 1997-03-13 04:22:05 +00:00
cgd a15ede807a add entries for isp, as isp* at pci? dev ? function ?, for Qlogic ISP 10x0
PCI SCSI controllers.  Also, add the attached SCSI busses.
1997-03-13 04:15:24 +00:00
cgd e36a5ca4de change microcode array definitions from "unsigned short" to the more
correct u_int16_t, and remove bogus casts that the old definition
required.
1997-03-13 04:07:44 +00:00
mycroft 919efaeb60 Make the microcode table const. 1997-03-13 03:33:03 +00:00
mycroft ac3b8b13b7 Don't share the silence block between devices. Make silence filling work for
more encodings, and make it device-independent.  From Lennart Augustsson, in
PR kern/3305.
1997-03-13 02:19:32 +00:00
cgd 85068c2512 add ahc and bha at EISA 1997-03-13 01:15:52 +00:00
cgd 96153388c0 add in the 'isp' device, for Qlogic ISP 1020-based Sbus SCSI board support 1997-03-13 00:46:13 +00:00
cgd 13a313fd8d add entries for ahc and bha PCI devices. clean up some 1997-03-13 00:43:37 +00:00
pk 9ceaaf3e7b Turn off "cache pagetables bit" on non-MXCC modules. 1997-03-12 22:52:19 +00:00
mycroft b8d7e3deab No longer needed. 1997-03-12 22:40:07 +00:00
cgd 2330e40bc9 enable Matt Jacob's ISP 10x0 driver, now that it's in the source tree. 1997-03-12 21:50:15 +00:00
cgd 8c689e6477 Copyright notice consistency, per Matthew Jacob. 1997-03-12 21:09:43 +00:00
cgd cf26d31ad2 NetBSD RCS ID tweaks, a few comment block tweaks. Also, make copyright
notices consistent (per Matt Jacob).
1997-03-12 21:06:41 +00:00
cgd 099e30a322 ISP 10x0 driver from Matthew Jacob of NASA Ames Research Center.
(March 12, 1997 version).
1997-03-12 20:44:50 +00:00
fvdl 7fb73fe0b2 Fix error in computation of BSS size when clearing it. 1997-03-12 19:49:11 +00:00
ragge 2bbaeef8cc Fast and dirty fix to avoid panics during autoconf of KFQSA DSSI disks.
Controller errors showing up can't be handled anyway.
1997-03-12 19:42:30 +00:00
cgd 0daaaa0fc2 add kn8ae CPU support to GENERIC kernels. Also, add kn8ae devices.
Add "isp", "ahc", and "bha" config lines, but comment them out until
their sources are in the tree and/or their alpha patches are in the tree.
1997-03-12 19:29:14 +00:00
cgd ffba332bb5 AlphaServer 8200 & 8400 support, including CPU specific details, TurboLaser
system bus support, and KFTxx support.  From Matthew Jacob, NASA Ames
Research Center.
1997-03-12 19:19:54 +00:00
cgd 265be6d839 enabled SQWE as well as PIE in reg B. 1997-03-12 19:13:20 +00:00
thorpej a92ec8002e Enable COMPAT_M68K4K. 1997-03-12 18:33:09 +00:00
pk 8e4a126035 Use `mcxx' from cpuinfo instead of re-consulting the MMU registers 1997-03-12 15:44:28 +00:00
christos 0d71b22d50 Use genassym.cf 1997-03-12 15:17:13 +00:00
christos 3e35754576 Added genassym.cf 1997-03-12 15:16:35 +00:00
pk 6e3c9f3b59 Make sure to disable interrupts in the Interrupt Enable register as soon
as we've mapped it.
1997-03-12 11:04:35 +00:00
pk b197276005 Correct output from cpumatch_unknown() and add missing viking variant
to cpu table (noticed by Andrew Gillham).
1997-03-12 09:08:29 +00:00
cgd a0d3809966 specs for ISP 10x0 (isp) driver Sbus attachment. From Matt Jacob. 1997-03-12 06:43:25 +00:00
cgd 28152db63a don't assume that CPU ID is same as device unit number (DUH!), add some
comments about future work to be done.  make a mostly-extraneous set of
printfs (cpu capabilities) become #ifdef DEBUG.
1997-03-12 05:50:00 +00:00
cgd 245b65b853 pass CPU ID info down to cpu when attaching (duh!) 1997-03-12 05:47:37 +00:00
cgd 0a500fffa0 update to allow PCI bus interfaces that wish to allocate static
extent storage per interface unit (e.g. dwlpx, where there can be multiple
units per machine) to do so.  Inspired by discussion with and changes from
Matt Jacob.
1997-03-12 05:24:23 +00:00
cgd 55f902601c Set the halt flags in the right per-cpu-slot structure. From Matt Jacob. 1997-03-12 04:45:41 +00:00
cgd adad00a33a sanity check rpb_primary_cpu_id 1997-03-12 04:42:22 +00:00
cgd e4307285ba from Matt Jacob: deal with type 5 (passive release?) interrupts. (ignore them
but print out their vector(?) to see if we can ever discern anything useful
from it.)  Also, some slight general cleanup.
1997-03-12 04:22:30 +00:00
thorpej 1777807068 Add 9660 file system, and set DDB_ONPANIC to 0. 1997-03-12 02:08:02 +00:00
cgd 9a36b46f7a tlsb bus and device file specs, s/21000/kn8ae. From Matt Jacob. 1997-03-12 01:54:23 +00:00
cgd 7e33512f13 fix up kn8ae/DEC_21000 entry 1997-03-12 01:47:46 +00:00
gwr a9bc70551a Clarify duties of traps 1, 2, 12, 15 for emulations
Include <m68k/m68k/sigreturn.s> code.
Add/fix some comments...
1997-03-11 22:58:57 +00:00
gwr 4756c63625 Call isr_soft_request() at most once per zshard interrupt.
In the softintr, raise to spltty before calling tty code.
1997-03-11 21:54:35 +00:00
gwr 05a47d22ea Correct handling for Trap #2 in SunOS executables,
now that we know it is supposed to flush the cache.
(Was thought to be "some obscure FPU operation".)
1997-03-11 21:30:51 +00:00
gwr f64034e8f6 Sync up with changes in GENERIC 1997-03-11 21:21:49 +00:00
gwr b4de41ef34 Update the description of the flags for "si" devices.
Remove wired-down scsi disk targets (no longer needed).
Add ch, ss, uk (scsi devcies) at mycroft's requst.
1997-03-11 20:59:10 +00:00
gwr 3aa49c4b33 Remove unnecessary differences (T_BRKPT, T_WATCHPOINT gone). 1997-03-11 20:31:20 +00:00
gwr ec6bb1d018 s/-T/-Ttext/ 1997-03-11 20:13:20 +00:00
gwr 4ad7ed0b97 Moved dev_net.[ch] to sys/lib/libsa 1997-03-11 18:29:30 +00:00
sommerfe 9460da5eb9 Implement trace/t ("thread" trace) allowing traceback by process-id
rather than by frame pointer (which it a bit harder to find).
1997-03-11 16:38:23 +00:00
pk 92d853e309 4m memory fault traps: simplify fault address logic, since per-CPU
fault-status reading stubs pre-cook the arguments.

illegal instruction trap: catch iflush instructions that cause this trap
on some CPU/MMU combinations.
1997-03-11 01:20:25 +00:00
pk 01e424f233 Insert RCS Id. 1997-03-11 01:03:07 +00:00
pk abc39039f1 Move some parts of CP detection to cpu_attach() in cpu.c.
Call get_cpuinfo() for the boot CPU to collect the minimum information
to get the bootstrap rolling.
sun4/sun4c: the Interrupt Enable register is now mapped here after pmap
is initialized (was in locore).
Replace `cpumod' and `mmumod' with `cpuinfo.*' equivalents.
Allow more than one CPU to be configured in mainbus_attach().
1997-03-11 01:01:59 +00:00
pk 476ef3b431 Per-CPU information which is collected in cpu_attach().
Many things in here were imported from an earlier version from Aaron
Brown and are not yet used. This version has all the attributes of a
snapshot; more to come as addtional CPU/MMU details get implemented.
1997-03-11 00:55:24 +00:00
pk eb71a02a7f Re-write of CPU/MMU detection code.
Use a table driven classification based on CPU and MMU implementation/version
fields. Each CPU class or module defines a collection of routines that
implement CPU or MMU specific operations that can collect detailed setup
information.

All information is collected in a `cpu_softc' structure provided by the
auto-configuration code. However, in the interest of SMP support this
structure is located at a fixed virtual address identified by the
symbol `cpuinfo'. The `boot' CPU currently uses the the physical page(s) at
address 0x2000 for its cpuinfo. Consequently, the fixed virtual address
will be `KERNBASE+0x2000'.

The cache flush routines for several systems (sun4/4c vs. sun4m;
virtual vs. physical tags) have been factored out. Function pointers
to an appropriate set are located in `cpuinfo'. The former global
`cacheinfo' structure is now also a part of `cpuinfo'. Because of the
fixed virtual address of `cpuinfo' no extra performance penalties
are incurred by this move. In multi-architecture kernels, there's
no longer the need for run-time `cputyp' tests in this part of the system.
1997-03-11 00:44:00 +00:00
pk 8d2c03c810 Replace `cputyp' run-time tests by inserting multiple branches and NOPing
some at startup depending on architecture.

Use `get_faultstatus' field in `cpuinfo' (initialized in cpu.c) to branch
to CPU/MMU specific fault status reading stubs on memory fault traps.

Remove code top map the Interrupt Enable register on sun4/sun4c. Its VA
has moved to a high location and is now mapped in autoconf.c after
pmap has initialized. Note: this renders NMIs during bootstrap() fatal
(maybe loading %tbr should be deferred).
1997-03-11 00:09:29 +00:00
pk 7d6231865e Use cache flush routines provided in `cpuinfo'. 1997-03-10 23:55:40 +00:00
pk 129d9d5cf6 Move VA of the sun4/sun4c Interrupt Enable register from locore.
Define VA for the per-CPU `cpuinfo' structure.
1997-03-10 23:54:41 +00:00
pk a566decb35 Use many things from the newly defined `cpuinfo' structure:
- vcache_flush_*() routines.
	- cpu_type/cpu_flags
	- per cpu context table and context administration glue.
	- different macros to enable sun4/3-level mmu support.

Simplify sun4m version of pmap_bootstrap() a bit; more to do still.

Move installation of page tables in MMU into a separate routine, in
anticipation for SMP.
1997-03-10 23:26:11 +00:00
pk ca1c4cc6c3 Define CPUINFO_FAULTSTATUS for use in locore.s 1997-03-10 23:15:03 +00:00
pk 4f30101165 Leave `has_iocache' unset if cache not enabled. 1997-03-10 23:13:59 +00:00
pk 593dbcc7dd Replace `cpumod' with `cpuinfo.cpu_type' equivalent. 1997-03-10 23:09:55 +00:00
pk d1be7c7ea4 New location of Interrupt Enable register on sun4/sun4c. 1997-03-10 23:08:31 +00:00
pk d8fc2afd1e Replace `cpumod' with `cpuinfo.cpu_type' equivalents. 1997-03-10 23:01:40 +00:00
pk 3811437545 Redo attach code somewhat. Have a go at matching le's and lebuffer's on
machines where the PROM does not provide a parent/child relationship.
1997-03-10 22:58:22 +00:00
pk 9119c9c189 Add a field indicating this instance has attached to an `le', so we
can have a go at matching le's and lebuffer's on machines where the
PROM does not provide a parent/child relationship.
1997-03-10 22:56:54 +00:00
pk e5f0b8a132 Remove `cpumod' and `mmumod' and several related constants.
This functionality is now taken over by cpuvar.h
1997-03-10 22:50:37 +00:00
pk 95d5138e93 Move some constants from param.h in here 1997-03-10 22:47:52 +00:00
chuck 47727c7946 remove "::" entries as per cgd 1997-03-10 22:27:36 +00:00
pk 137dda4ac6 Add getmid 1997-03-10 21:49:11 +00:00
gwr d0a45ab470 Use the macros sc_if, sc_addr to avoid lots of references to sc_arpcom. 1997-03-10 21:45:01 +00:00
scottr 12098dae8a Add missing call to ae_nb_get_enaddr(), from <kei_sun@ba2.so-net.or.jp>.
Fixes PR 3312.
1997-03-10 17:55:15 +00:00
leo f99aabbca1 Push out some 060 support. It's all untested and mostly copied in from the
amiga-port.
1997-03-10 14:44:26 +00:00
leo 7e288e08c3 Use vme_mask, not sys_mask to enable the SCC interrupt. 1997-03-10 14:41:43 +00:00
leo 2e85636c46 $NetBSD -> $NetBSD$ Sigh. 1997-03-10 10:22:34 +00:00
leo b9595171f0 Add support for the Lance ethernet card on the VME-bus (Riebl/PAM) 1997-03-10 09:44:52 +00:00
thorpej dc1020fe40 Print the interrupt level in scsiattach(). 1997-03-10 08:37:31 +00:00
thorpej bb0d35b7e4 Bump version - we compute the kernel load address differently. 1997-03-10 08:02:23 +00:00
thorpej 4e541ff7ea Fix rounding of lowram value; ensure the kernel load address is on
an 8k boundary.
1997-03-10 08:00:47 +00:00
ragge 2b8ac648a3 Frob pages before trying to map them, to be sure they exist. 1997-03-09 16:00:06 +00:00
ragge b64bca2999 Fixed bug that caused d partition being treated as c.
RAW_PART is 2, not 3.
1997-03-09 15:55:58 +00:00
cgd 8efa66858c fix problem compiling if neither PCI VGA nor TGA frame buffers were
configured.  Pointed out by Matt Jacob.
1997-03-08 19:25:49 +00:00
leo d3c11c558c Enable SCC & MFP interrupts through the vme_mask register instead of
using the sys_mask register.
1997-03-07 21:45:41 +00:00
mark 682f911197 Updated for latest major number allocations. 1997-03-07 03:30:46 +00:00
gwr 51cfd7ed4d Get the numbers of kernel MMU tables right. 1997-03-06 05:16:34 +00:00
briggs 47392571c5 Undo some damage that CVS somehow let me get away with. 1997-03-06 02:14:51 +00:00
gwr 9a79f92460 Clean out some junk I forgot to remove last time... 1997-03-06 00:15:56 +00:00
gwr 25d7b99a1f Implement "mach pgmap" for examining mappings. 1997-03-06 00:05:23 +00:00
gwr a4e5a18b63 Add pmap_bootstrap_setprom() with sets the PROM level-A tables to
allow the PROM monitor to see mappings in kernel space.  This also
fixes a problem with exiting to the monitor with the stack pointer
set to some place in kernel space.  Also fix NUM_KERN_PTES, and
change get_pte() so it works on any virtual address.
1997-03-06 00:04:18 +00:00
gwr 3ca8e4699d Add pmap_bootstrap_setprom 1997-03-05 23:55:54 +00:00
gwr 201bc0aa96 Add ptest_addr 1997-03-05 23:54:08 +00:00
fvdl b754b514dc Bring limits up to 'modern' standards. 1997-03-05 23:51:47 +00:00
gwr da2622290c Allow access to the PROM via /dev/kmem (like the sparc port) 1997-03-05 23:02:29 +00:00
veego 344b3cf532 - Merlin works now in ZorroIII mode
- Fixes for Interlace and DoubleScan
- Memorysizedetction for 1MB Bords
- HiColor and TrueColor Support
- support for the Domino 16M proto card
1997-03-05 22:50:38 +00:00
veego b835a00fa8 - PicassoIV support
- Fixes for Interlace and DoubleScan
- Memorysizedetction for 1MB Bords
- Clockdoubling for PicassoIV and PiccoloSD64
  NOTE: Don't use the X11R6.1 Xserver with -useHWC on the SD64
       with a gfxmode >80Mhz or you get a broken mousepointer.
- HiColor and TrueColor Support
  (doesn't work yet, since it needs some fixes for the XServer)
1997-03-05 22:46:32 +00:00
veego 8f5155b610 PicassoIV and Domino proto 16M product id's. 1997-03-05 22:41:03 +00:00
gwr 63221bf3b2 Fix race conditions that allowed the interrupt latch register to have
the wrong value.  Now using the <m68k/asm_single.h> stuff from Leo.
1997-03-05 22:22:11 +00:00
gwr eac582d36e Do some of the clock init a little later, in clock_attach.
(plus some other mostly cosmetic cleanup)
1997-03-05 19:00:07 +00:00
briggs a2173962b8 Copyright foo. 1997-03-05 15:19:18 +00:00
jonathan 61d121e3d7 Undefine the macros defined by dec_prom.h, in the compiled-in
libsa functions that define  function entrypoints for them.
1997-03-05 05:20:40 +00:00
jonathan d01b866f0c Build kernel object files with -mno-abicalls and -mno-half-pic. (The
kernel doesn't support GP-relative addressing, and is statically linked).

Compile genassym without those flags: -mno-abicalls will make it coredump.
1997-03-05 04:41:57 +00:00
gwr 88bf00b5bf No need to block out ZS interrupts in clock_intr() as long as
we are careful to use the single_inst_* macros.
1997-03-05 00:01:13 +00:00
gwr 9587adc460 Fix race conditions that allowed the interrupt latch register to have
the wrong value.  Now using the <m68k/asm_single.h> stuff from Leo.
1997-03-04 23:37:48 +00:00
gwr 7c5b45aead Fix a warning. 1997-03-04 22:20:04 +00:00
gwr c03be2ad19 Add declaration for isbad(). 1997-03-04 21:59:08 +00:00
gwr 67f52ad8a0 Reinstate "isbad" which is used by the xd and xy drivers. 1997-03-04 19:33:23 +00:00
scottr fd81cf2b92 Correct offsets in the memory size probe; bus_space uses byte offsets. Fix suggested by
Ken Nakata.
1997-03-04 15:12:04 +00:00
scottr 956ec2a47c The previous optimization of the interrupt handlers was a bit too
agressive.  Being a little more conservative pays the biggest dividend.
1997-03-04 04:11:52 +00:00
pk 18b2bdb000 Fix calculation of max virtual memory to be gobbled up by the buffer cache.
Apply "stop-gap" nbuf clamp only on sun4/4c and if nbuf not explicitly
configured in.
1997-03-03 23:07:15 +00:00
leo 224221401b Ooops. Add cvs-id + copyright. 1997-03-03 13:55:50 +00:00
leo b170f473ba Add bus_space_peek_[1248] functions. These can be used by match/probe
functions.
1997-03-03 12:28:20 +00:00
leo 301f6163bb Addition of VME bus code. 1997-03-03 12:26:20 +00:00
leo 485c62188c VME bus code 1997-03-03 12:20:57 +00:00
jeremy c0b46da054 Use IOMMU_PAGE_SIZE instead of NBPG, since theoretically the IOMMU page size
is different than the CPU page size.
1997-03-03 06:51:42 +00:00
scottr f749003301 Fix part of last change: don't mask off the high bit of the VIA IER until
the interrupt has been unflagged.  Problem noticed by Paul Goyette.
1997-03-03 04:19:06 +00:00
mycroft 8c6fca26ee Oops! Fix this to block all interrupts during configuration, after previous
interrupt priority changes.
1997-03-03 02:33:41 +00:00
jonathan 72a7ae4ee5 Add architecture-specific ELf relocs for mips chips. 1997-03-03 00:19:29 +00:00
jeremy 290f55615a Took switch statement out of main loop in pmap_protect() and explained more
of the rationale behind it.
1997-03-02 07:59:21 +00:00
scottr 93d8b2c8b0 Add the MAC68K_BROKEN_VIDEO option, which is a hack that delays enabling
NuBus interrupts until an Ethernet card is attached.
XXX  This should go away at some point, obviously.
1997-03-02 06:43:00 +00:00
scottr 152b0ab7d2 Adapt to sbc driver/attachment split 1997-03-01 20:22:16 +00:00
scottr 421abedbfe Split bus-dependent autoconfig code from the driver. This allows for
the future addition of a Duo Dock front end.
1997-03-01 20:18:58 +00:00
scottr df7f40213a Allow A1 to be used for passing arguments to ROM routines. Also, clean up
debugging printf() formats.  From Allen Briggs and Paul Goyette.
1997-03-01 17:20:34 +00:00
matthias bda3351fc0 Some cosmetic changes. 1997-03-01 09:50:44 +00:00
matthias dd064fc88a Reset the scsibus only when bit 2 is set in flags. 1997-03-01 09:50:40 +00:00
matthias da45c7f449 remove reference to pc532/kgdb_stub.c. We now use the mi version. 1997-03-01 09:50:30 +00:00
matthias 5a74618671 The ns32532 has no alignment restrictions. Define ALIGNED_POINTER to
reflect this.
1997-03-01 09:50:19 +00:00
matthias 035bf3987f make db_expr_t a long. 1997-03-01 09:50:16 +00:00
matthias 73ea4ca540 Document a non-obvious use of addr in interrupt(). 1997-03-01 09:49:48 +00:00
matthias 799c3228ec kgdb_connect and kgdb_panic are not define in the mi kgdb_stub.c. Define
them here.
1997-03-01 09:49:45 +00:00
matthias 63183795c0 imask[IPL_ZERO] was updated after recomputing the run masks for all the
interrupt handlers. Due to this
  - DIAGNOSTIC kernels would panic
  - check_sir would run with the interrupt registered last blocked
Credits for finding and fixing this go to Ian Dall.
1997-03-01 09:49:44 +00:00
matthias 597322b455 * Adapt to changed definition of struct db_variable.
* Some cosmetic changes.
1997-03-01 09:49:42 +00:00
matthias 453b47e7bb removed. We now use the mi version from /sys/kern. 1997-03-01 09:49:20 +00:00
scottr a4b0e4c070 Protect MCLSHIFT definition so users can customize MCLBYTES, from Jonathan. 1997-03-01 06:57:45 +00:00
scottr 42be6ebfa7 Fix prototype for espmatch() 1997-03-01 06:38:36 +00:00
gwr 8e9324f653 Allow access to the PROM via /dev/kmem (like the sparc port) 1997-02-28 22:35:12 +00:00
gwr 403bdb83fa Add xxc_print functions to pass to config_found() instead of NULL.
(Thanks to Chris Demetriou suggesting the improvement.)
1997-02-28 21:23:06 +00:00
gwr 507bc60404 Define pmap_page_index as a macro. 1997-02-28 19:57:35 +00:00
gwr 03ff0a0c9b Allow pmap_page_index to be a macro (in pmap.h)
Make pmap_free_pages() teturn what actually remains
(Thanks to Wolfgang Solfrank for suggesting the fix.)
Fix some typos while I'm here...
1997-02-28 19:55:37 +00:00
gwr 58a45b478c Remove a diagnostic check in sunmon_reboot broke reboot on the sun3. 1997-02-28 19:47:15 +00:00
gwr 1354ca2916 Get rid of some printf noise. 1997-02-28 17:17:22 +00:00
mycroft b2038a332d Import interrupt priority changes from com patches:
* Make it a strict hierarchy.  (It was close anyway).
* Add `serial' and rename `softtty' to `softserial'.
* Make soft interrupts a bit less special-case.
1997-02-28 16:24:03 +00:00
scottr 215c0b896a Convert to generalized VIA interrupt registration 1997-02-28 15:50:50 +00:00
jonathan b57cf6e1ce Remove obsolete comment. (This config *does* work). 1997-02-28 09:51:21 +00:00
scottr 705c637874 Define aesetup() to return an int, so that the attach function can
determine whether there was an error (if so, we unmap the slot space
for this device).  Use this functionality to tell the attach function
that we couldn't clear the card's buffer.

Also in aesetup(), eliminate the bogus repetition of the error message
we print when the buffer clear actually fails.  Noticed by Hauke Fath.
1997-02-28 08:56:05 +00:00
scottr 0b3eb5f3f2 Remove duplicate <machine/bus.h> include that crept in. 1997-02-28 07:54:02 +00:00
scottr 17fdd597df Move the NuBus-specific watchdog function from if_ae.c to if_ae_nubus.c,
and allow the attach function to override the default watchdog.  Also,
do some minor cosmetic surgery (rename bus space tags/handles and some
KNFing I missed the first time around).
1997-02-28 07:52:44 +00:00
scottr 359101fb43 Convert to generalized VIA interrupt registration 1997-02-28 07:46:59 +00:00
scottr 8f37a2983b Generalize VIA1 and VIA2 interrupt registration a bit, and do a slight
optimization on the VIA interrupt handlers.
1997-02-28 07:41:41 +00:00
mycroft 2563167e16 There's no reason to use splhigh() here. 1997-02-28 04:44:08 +00:00
jonathan cf0bcbc9b6 Define ALIGNED_POINTER
(missed when other <arch>/include/param.h files were updated)
1997-02-28 02:24:41 +00:00
ragge 9bf924ecc4 Be able to find out if we are booted from network. 1997-02-27 19:43:26 +00:00
gwr 4d534f3d52 Define VM_MAX_KERNEL_ADDRESS using KERN_END instead of a constant. 1997-02-27 18:22:53 +00:00
gwr 9b75e011ab Allow option MCLSHIFT=x to control MCLBYTES etc. 1997-02-27 18:12:38 +00:00
briggs 5933eeaaed Add ncr53c9x flag to esp. 1997-02-27 14:07:59 +00:00
briggs 868344972a mac68k-specific portion of m.i. ncr53c9x driver. 1997-02-27 14:06:25 +00:00
veego 96c6c333c2 Protect MCLSHIFT definition so users can customize MCLBYTES.
patch from jonathan.
1997-02-27 08:31:17 +00:00
jonathan 6ed95c4eb8 Protect MCLSHIFT definition so users can customize MCLBYTES. 1997-02-27 03:52:17 +00:00
thorpej e33bdc63ae Update for MI 53c9x driver. 1997-02-27 01:30:05 +00:00
thorpej 4042a48848 Update for new 53c9x driver. 1997-02-27 01:27:54 +00:00
thorpej dea68fb2a1 s/esp/asc/g 1997-02-27 01:21:41 +00:00
thorpej 0017cafe69 s/esp/asc/g, and make it carry the ncr53c9x attribute. 1997-02-27 01:20:53 +00:00
thorpej 2c223871dd Add a front-end for the MI 53c9x driver, called "asc", which is the
name used by Digital UNIX (formerly DEC OSF/1).
1997-02-27 01:19:40 +00:00
thorpej 4878198b5c Remove this driver; it is now obsolete. 1997-02-27 01:17:56 +00:00
thorpej f868730b6a esp carries ncr53c9x attribute 1997-02-27 01:17:09 +00:00
thorpej 5464afa761 Convert the SPARC esp driver to be a front-end for the MI 53c9x driver. 1997-02-27 01:16:19 +00:00
mycroft 2929dff5bd Use genassym.sh, to support cross-compilation. 1997-02-26 23:50:04 +00:00
gwr 2de163471e Minimal changes to adapt to removal of NCR5380_PERMIT_RESELECT.
This driver should be updated to allow per-target control over
disconnect/reselect, but I will leave that to the port masters.
1997-02-26 22:29:08 +00:00
gwr 07b4e45308 Allow per-target control over disconnect/reselect. 1997-02-26 22:26:00 +00:00
gwr bb9cc8ad2b Use ALIGNBYTES in the new ALIGNED_POINTER macro.
(That is always good enough on the m68k.)
1997-02-26 20:36:13 +00:00
ragge 5e35ea57c5 Patches to make VS2000 to work. From Ari Suutari. 1997-02-26 18:38:19 +00:00
leo 60bde8d1ca Fix a kernel-dump that occurred when accessing a grf-device that was configured
in the config file but not found by the autoconfig code.
1997-02-26 12:28:40 +00:00
leo 5e2ca8918d Use generic date conversion module. 1997-02-26 12:26:36 +00:00
leo 2d43c4a079 Allow MCLSHIFT to be overridden by a config option. 1997-02-26 12:22:06 +00:00
leo 9324e8d0ed Move all spl-related stuff to the new file intr.h. The latter file also
contains some generic defines used by the drivers in dev/[pci|isa].
1997-02-26 12:18:50 +00:00
jonathan 7cebde0e19 Protect MCLSHIFT definition so users can customize MCLBYTES.
Also define MCLBYTES from MCLSHIFT.
1997-02-26 01:45:41 +00:00
jonathan a2ff9d9662 Protect MCLSHIFT definition so users can customize MCLBYTES. 1997-02-26 01:21:18 +00:00
oki b339d19d50 fixed typo 1997-02-25 17:49:46 +00:00
scottr a2a40938b1 Move bus-independent setup code back into if_ae.c; enable the use of
configuration flags.  For NuBus cards, attempt to find the MAC address
in the declaration ROM resources.
1997-02-25 06:36:04 +00:00
cgd b2d1fe0537 update for current reality. Needs a lot of work. 1997-02-25 03:17:20 +00:00
cgd 0959d79d86 kill this 1997-02-25 03:16:57 +00:00
gwr 3435c699a5 Add ch, fd, ss, tun, uk
Add cdev for md
Add lkm slots
1997-02-25 01:15:01 +00:00
gwr a4d9d21d6e Define fdc,fd so config will create fdc.h 1997-02-25 00:46:58 +00:00
fvdl 115b6d92fa Define ALIGNED_POINTER 1997-02-24 23:16:53 +00:00
christos 7fb32152cc Fix PR/3253: Don't try to probe the isapnp port in ioports already claimed
by other devices.
1997-02-24 22:13:55 +00:00
gwr ae70fb71ec No need for dma_cd, so move it into the #if 0 section too. 1997-02-24 15:02:23 +00:00
leo 298aecde5a Force root to be on the ram-disk. 1997-02-24 12:23:33 +00:00
scottr f03ee128a3 Add support for the Kinetics EtherPort SE/30, from Ken Nakata. 1997-02-24 07:34:18 +00:00
scottr 965cffaf20 NUBUS_SLOT_TO_PADDR -> NUBUS_SLOT2PA 1997-02-24 06:20:04 +00:00
scottr 155eb6369a Update to reflect ae driver/attachment code split 1997-02-24 06:05:20 +00:00
scottr 6b0774a865 Split out the NuBus attachment code, and convert to bus.h 1997-02-24 06:03:55 +00:00
scottr 5e77023e13 The bus space tag really isn't used; stop the compiler from complaining. 1997-02-24 05:55:14 +00:00
scottr 9c91a181d6 Update copyright and license. 1997-02-24 05:47:33 +00:00
jeremy 1c79e9f83d The first GENERIC config for sun3x. Includes new esp driver. 1997-02-24 03:53:52 +00:00
jeremy eaca552bf2 Added files for esp SCSI driver. 1997-02-24 01:47:08 +00:00
jeremy ad9700fa62 Initial import from SPARC port. 1997-02-24 01:45:13 +00:00
jeremy 202a9fe423 Added some more comments and disabled removal of DVMA alias mapping from
kernel space in dvma_mapout() as it may cause problems with the current
pmap_remove().
1997-02-24 01:37:52 +00:00
jeremy 689b14f477 Get rid of inclusion of pmap_pvt.h and use the standard pmap functions for
mapping.
1997-02-24 01:35:33 +00:00
cgd 3192bd314f turn Alpha's ELF_TOOLCHAIN checks to ECOFF_TOOLCHAIN checks 1997-02-23 20:42:24 +00:00
mark e5c684f608 Added lots more items. 1997-02-23 04:21:28 +00:00
mark c812c6e43d Do profiling if GPROF and PROFILE_ASM are defined. 1997-02-23 04:20:29 +00:00
mark 9675b132fa Updated to reflect the addition of the icside and rapide drivers. 1997-02-23 04:15:20 +00:00
mark 13f13977eb Since the setroot changes set_swap_device() is has been a dead function
so remove it.
1997-02-23 04:09:53 +00:00
mark a61dea1a59 Added files for the icside and rapide device drivers. 1997-02-23 04:08:49 +00:00
mark 4fbf5c86aa Clean and flush the instruction and data caches prior to turning of the
MMU in boot0().
This solves the problem of cache hits after the kernel has rebooted the
machine as even with the cache off hits will occur for data/instructions
already in the cache.
1997-02-23 04:05:19 +00:00
mark 045ff1df99 Initial commit of the rapide driver. This driver provides support for the
RapIDE32 EIDE interface podules.
This driver currently only support issue 2 podules.
1997-02-23 04:00:31 +00:00
mark a47555862b Initial commit of the icside driver. This driver provides support for
the ICS IDEA IDE interface podules.
1997-02-23 03:57:45 +00:00
mark 66f1f203e3 Synchronise with podules files. 1997-02-23 03:52:29 +00:00
mark 6c7cc537c9 Add ID for ANT EtherM network slot interfaces. 1997-02-23 03:51:19 +00:00
gwr eb84168030 Suport size=4 in bus_peek(), and clean out some junk. 1997-02-22 19:27:18 +00:00
gwr 0f37c96cc4 Add peek_long() 1997-02-22 19:06:24 +00:00
scottr 7524900a0f Remove niggles that made it into the copyright, and correct the
license terms (added Jason Thorpe).
1997-02-22 04:56:17 +00:00
jeremy 0b6a4ac7bb Make the device attach output look more like the SPARC iommu. 1997-02-22 04:02:39 +00:00
jeremy d6034ecf66 Add page size constant, since I/O mapper page size may differ from cpu page
size.
1997-02-22 04:01:04 +00:00
jeremy 996c634929 Rewrite pmap_remove() to be speedier with large address spaces. 1997-02-22 03:18:30 +00:00
scottr db2ab09cf2 Add bus.h, in light of recent nubus_attach_args changes 1997-02-22 02:17:40 +00:00
abrown 4ca0768334 Fix bug in pmap_page_copy and pmap_page_zero that caused data corruption
when paging on Sun4m machines with SuperSPARC processors. Essentially,
the copy/zero operations were done via uncached memory accesses, which
bypassed the snooping logic of the write-back caches, causing stale data
to be copied or generated.
Pointed out by Chris Torek <torek@bsdi.com>
1997-02-22 00:06:06 +00:00
scottr ec6725f267 Make this compile again; missed this file when fixing nubus.h errors. 1997-02-22 00:00:34 +00:00
gwr 900bc3f621 Add OBIO_EMULEX_SCSI, and some comments about attach order. 1997-02-21 20:33:09 +00:00
scottr 5c8de7766a Implement bus_space_set_multi_N(), bus_space_set_region_N(), and
bus_space_copy_N().  Bus space support is now complete.
1997-02-20 05:53:00 +00:00
jeremy 043293d2da Added the '@' symbols that GAS needs for address register indirect addressing
statements that are used when PMAP_DEBUG is undefined.
1997-02-20 00:54:21 +00:00
scottr b1e5912330 We need bus.h now, due to recent nubus_attach_args change. 1997-02-20 00:23:25 +00:00
gwr e1ca9af0cf Add dev/clock_subr.c 1997-02-19 23:40:30 +00:00
gwr c14237282d Make this use sys/dev/clock_subr.[ch] 1997-02-19 23:38:46 +00:00
gwr 2e84cacf02 Add dev/clock_subr.c 1997-02-19 23:36:38 +00:00
gwr b76d5979d8 Make this use sys/dev/clock_subr.[ch] 1997-02-19 23:35:02 +00:00
gwr 69da16abc9 Need to define M68020 for copy.s
Add PM_CTXNUM, tweak...
1997-02-19 16:02:59 +00:00
gwr 1b7813bc35 Just M68030 is enough. 1997-02-19 15:59:21 +00:00
gwr eb8bfe4829 Forgot the quotes (slow down...) 1997-02-19 15:55:33 +00:00
gwr 62bb836d73 Oops... need to define M68020 for copy.s 1997-02-19 15:54:26 +00:00
ragge e86bc96653 Basic change to cpu-config code. This will make support of new
cpu types much easier.
1997-02-19 10:04:09 +00:00
scottr c079123e89 Add a bus space tag field to nubus_attach_args 1997-02-19 06:21:49 +00:00
jeremy 035b20b171 Update copyright and fix typos in macro definition used when not debugging. 1997-02-19 04:17:32 +00:00
gwr 7e74608bf9 Get the screen size right on the 3/260 (Fixes PR#2402) 1997-02-19 00:22:40 +00:00
gwr 8b7e154aab Oh... can not set cold=0 before swapconf() is done with any I/O
that might cause a call to sleep (procinit not done yet).
1997-02-19 00:20:52 +00:00
gwr 0a928acbfc Remove some unnecessary <vm/*> headers. Have to keep <vm/vm_param.h>,
at least until boolean_t moves to <sys/types.h> or someplace...
Also make ddb_regs extern here.  Closes PR#3213
1997-02-18 22:29:58 +00:00
gwr 25c5ca44ce Define ddb_regs here (and extern in db_machdep.h) 1997-02-18 22:27:32 +00:00
gwr 5f501028f6 No longer need pm_stats 1997-02-18 21:21:11 +00:00
mrg 175166de6a comment PFIL_HOOKS as it is redundant (as an option) when used with ipfilter. 1997-02-18 21:10:19 +00:00
mrg 22245e60a5 comment PFIL_HOOKS as it is redundant (as an option) when used with ipfilter. minor format 1997-02-18 21:09:56 +00:00
mrg b10b2c5426 comment PFIL_HOOKS as it is redundant (as an option) when used with ipfilter. 1997-02-18 21:07:36 +00:00
gwr 9ed330d6df Add pmap_wired_count() 1997-02-18 20:18:56 +00:00
gwr 12fdd0800f Add pmap_wired_pages() 1997-02-18 20:16:54 +00:00
gwr b7a0884908 The previous commit was an "oops" due to out-of-date sys/lib/* files. 1997-02-18 17:12:46 +00:00
gwr 3480f70835 Set kgdb_debug_panic if we connect to gdb. 1997-02-18 16:09:59 +00:00
gwr d2a3410f0c Moved straytrap() to trap.c (and minor cleanup) 1997-02-18 15:53:15 +00:00
gwr c1699a0c88 Add a debug helper for detecting recursive kernel-mode traps.
Move straytrap() here from machdep.c
1997-02-18 15:37:57 +00:00
gwr e61bb6f903 Define "cold" over in autoconf.c 1997-02-18 15:30:01 +00:00
gwr 2c7b4c9af4 Share autoconf.c with the sun3 1997-02-18 15:15:02 +00:00
gwr b2d071ede7 Add bus_subr.c; share autoconf.c with the sun3 1997-02-18 15:13:13 +00:00
gwr 626bde2f9b Add bus_subr.c 1997-02-18 15:10:40 +00:00
gwr 1af5733370 New implementation of the findroot/setroot business. Eliminates
dependency on wired-down SCSI target/LUN for boot devices.
1997-02-18 15:07:29 +00:00
gwr 201c1f178e Move bus_peek(), bus_mapin() here from autoconf.c so the latter
may be shared with the sun3 port.
1997-02-18 14:58:32 +00:00
gwr 48da5b3d44 Move bus_peek(), bus_mapin() here from autoconf.c so the latter
may be shared with the sun3x port.
1997-02-18 14:57:41 +00:00
mark 6e638fd4fb Call mount() on function entry if both GPROF and PROFILE_ASM are defined. 1997-02-18 03:15:06 +00:00
mark ad178d5138 Limit valid numeric digits to between 0 and min(base, 9) inclusive so that
puntuation characters are not evaluated.
1997-02-18 03:12:15 +00:00
mark e4316a91d0 Rebuilt from podules file. 1997-02-18 03:08:59 +00:00
mark c569d5e23f Added new podule ID's for ICubed etherlan interfaces.
Fixed typo in A448 title string.
1997-02-18 03:08:04 +00:00
jeremy d28a4db292 Update to use new style ``clean'' and ``depend'' rules. 1997-02-16 22:18:01 +00:00
cgd 90466a7b42 protect against multiple inclusion, make HEAP_LIMIT define libsa-specific 1997-02-16 21:27:06 +00:00
ragge c3aeacf957 unsigned -> long to match ddb change. 1997-02-16 20:37:29 +00:00
gwr 7190ad9936 Fix a major bug in pmap_remove_kernel() that causd the removal of
one page too many (worse, it unmapped our stack page... Ouch!)
Also, use loadcrp() and such instead of calling pmap_activate
in various places so we have more control over TLB flush.
Now pmap_activate() is called only by locore (and that call is
done only if PMAP_DEBUG is defined).  Other minor clean-up...
1997-02-16 19:38:08 +00:00
ragge 657c7b5d55 This file has been obsoleted for ages. 1997-02-16 17:40:46 +00:00
leo e123072427 :: -> : 1997-02-16 13:00:49 +00:00
leo b974335693 Fix some typo's from the setroot mega commit and re-order the device
preferences.
1997-02-16 12:59:56 +00:00
perry 0c7dacfcec All these files are ancient and haven't been used in years -- the
current boot blocks are in boot/; we need the thing cleaned out so we
can put the new libsa based boot stuff in its place.
1997-02-15 23:54:52 +00:00
gwr 2053794556 Add sun3/regdump.c 1997-02-14 20:10:50 +00:00
gwr ae0ec6bc84 Moved regdump() and friends to sun3/regdump.c 1997-02-14 20:09:14 +00:00
gwr da6b170800 Add sun3/regdump.c, sun3/sig_machdep.c 1997-02-14 20:01:41 +00:00
gwr f01121ece4 Moved sendsig(), sys_sigreturn() to sun3/sig_machdep.c
Moved regdump() and friends to sun3/regdump.c
1997-02-14 20:00:51 +00:00
gwr 780e636b2d Pull regdump() out of machdep.c and correct a problem where it
would try to print things that are beyond the end of the stack.
1997-02-14 19:55:18 +00:00
is 85aab927f0 Fix obvious typo. 1997-02-14 13:06:28 +00:00
scottr 25c49f276f Revive in simplified form; include GENERIC and enable md_root hooks. 1997-02-14 06:27:20 +00:00
scottr 150538df02 Add memory disk pseudo-device 1997-02-14 06:23:14 +00:00
scottr 0b91c7f0cb Use MAKEBOOTDEV macro to construct bootdev 1997-02-14 06:15:30 +00:00
scottr 662401449a Remove incorrect comment re: bootdev 1997-02-14 06:13:50 +00:00
scottr 967e257614 Implement bus_space_alloc() and bus_space_free(), borrowed from i386. 1997-02-14 06:10:53 +00:00
scottr 6066941306 Add prototypes for bus_space_alloc() and bus_space_free() 1997-02-14 06:02:57 +00:00
gwr 7275a8976f Add pmap_count(), fix some bugs... (from Jeremy). 1997-02-14 03:56:49 +00:00
gwr dc9ad25881 Define pmap_resident_count(), pmap_wired_count() as
macros that call pmap_count().  (from Jeremy).
1997-02-14 03:55:33 +00:00
gwr fb373dd41e Add sun3/sig_machdep.c 1997-02-13 22:21:22 +00:00
gwr 905e296504 Moved sendsig() and sys_sigreturn() to sig_machdep.c
Rename some trapframe variables for consistency.
1997-02-13 22:16:53 +00:00
gwr 91c7291256 Move sendsig() and sys_sigreturn() from machdep.c to here.
Should probably move to m68k/m68k eventually...
1997-02-13 22:04:03 +00:00
gwr 443faad4e1 Reorganize/simplify the way the memory layout is done.
Update to the latest sys/dev/isa/if_ie.c (new ieget).
1997-02-13 20:48:36 +00:00
gwr 5997a69a3e Tune MXFRAMES and MXFRAMES down a little.
Reorganize the softc for convenience in ddb.
1997-02-13 20:43:18 +00:00
gwr 6a83772a4e Replace caddr_t with u_int in device structs.
Reduce MAXMCAST by a few to be safe.
1997-02-13 20:40:11 +00:00
scottr f6f4cf1d40 Remove redundant info from bus_space_map() diagnostic in ascattach() 1997-02-13 19:55:48 +00:00
scottr 0f53b79607 #include <sys/systm.h> to bring in printf() prototype 1997-02-13 19:42:42 +00:00
scottr 603a2bd8f4 Add hsk and drq locators, which will be used only by SCSI devices. 1997-02-13 19:01:07 +00:00
scottr ed573bfb7c Split the obio interface into two forms: optional address only for most
devices (obio_norm) or optional address, HSK, and DMA for 5380-based SCSI
controllers (obio_scsi5380).  Update all obio-attached drivers
appropriately.

Also, attach fpu to mainbus, rather than obio.
1997-02-13 18:59:06 +00:00
gwr 45ff882a54 Replace sun3/kgdb_stub.c with sun3/kgdb_machdep.c 1997-02-13 18:14:31 +00:00
scottr 570e1f1eb2 Attach the fpu to mainbus, not obio 1997-02-13 17:29:43 +00:00
jeremy 8869e895a8 Convert meaningless '0' into a more human readable 'IOMMU_PDE_DT_INVALID'. 1997-02-13 07:38:21 +00:00
jonathan a7b2815a55 Import Dennis Ferguson's i386 clock change request from PR 2785:
* Add table-driven assembly-coded microtime().

   * add boot-time computation of the interpolation table,
     allowing the hand-coded microtime() to work with locally-tuned
     nonstandard values of HZ or TIMER_FREQ.

   * delete old C version of microtime().
1997-02-13 00:59:12 +00:00
gwr 27b8c79679 Latest version from Jeremy. Changes too numerous to describe here. 1997-02-12 23:09:32 +00:00
gwr c4fa121f14 Reinstate call to pmap_activate() for now, because it is helpful
for debugging the pmap code.  The in-line version of the same is
still here and will be used if PMAP_DEBUG is not defined.
1997-02-12 23:06:27 +00:00
gwr 3476b1d4a4 Adapt to changes in pmap.h 1997-02-12 23:03:14 +00:00
gwr bb35ee4ae8 In struct pmap, replace pm_mmucrp with pm_a_phys.
Define pmap_resident_count(), pmap_wired_count()
to call pmap_resident_pages(), pmap_wired_pages()
respectively, so we can keep those statistics on
lower-level structures instead of here.
1997-02-12 23:01:28 +00:00
ragge 9efff168a1 Remove :: 1997-02-12 18:07:53 +00:00
ragge cb344cfe97 ra disks is DV_DISK, not DV_DULL. 1997-02-12 18:02:47 +00:00
ragge 40f0692085 s/tms/mt/ 1997-02-12 18:00:42 +00:00
ragge e7d1921239 Remove bogus prototypes. 1997-02-12 17:58:56 +00:00
ragge e42e582ebb Fix so it works with root over NFS. 1997-02-12 17:57:39 +00:00
ragge c44e241f49 Add a forgotten #ifdef DDB 1997-02-12 17:55:54 +00:00
ragge f5f92a31ca Walk a step closer to more intelligent User PTE handling. 1997-02-12 17:52:59 +00:00
ragge 2bb5ceb3e0 Improve sub-type identification of the CVAX CPU, for later cache handling. 1997-02-12 17:50:36 +00:00
gwr ccee4cf825 Machine-dependent part of the KGDB remote "stub" 1997-02-12 16:24:02 +00:00
gwr 9c755c6566 Now using <sys/kgdb.h> 1997-02-12 16:16:58 +00:00
gwr 198969f083 Replace kgdb_stub.c with kgdb_machdep.c 1997-02-12 16:14:04 +00:00
gwr 6cb54de668 Avoid dereferencing null curproc in dumpmem(). 1997-02-12 16:06:18 +00:00
gwr bb7dc881a3 Force RB_SINGLE for now (in addition to RB_KDB). 1997-02-12 16:04:33 +00:00
gwr 05a09b938e Must convert from/to BCD when reading/writing the clock chip. 1997-02-12 16:00:31 +00:00
scottr 7e1c9811f9 Move asc0 here from std.mac68k. Remove COMPAT_SUNOS, as it's dead weight
on this machine.  Add some minimal driver descriptions.
1997-02-12 04:47:05 +00:00
scottr 362d7e5473 Move asc0 here from std.mac68k. Add some minimal driver descriptions. 1997-02-12 04:31:35 +00:00
scottr 8807428ab4 Move asc0 here from std.mac68k, and enable PFIL_HOOKS option so that
the if_ipl LKM can be loaded.  Add some minimal driver descriptions.
1997-02-12 04:29:10 +00:00
scottr cdcbc525e6 Move asc to individual kernel config files 1997-02-12 04:26:05 +00:00
gwr 20c8082e79 Now using <kern/kgdb_stub.c> 1997-02-12 01:32:39 +00:00
gwr 9b3ad7dd7e Now using <sys/kgdb.h> 1997-02-12 01:30:36 +00:00
gwr 292e8e784f The KGDB include is now <sys/kgdb.h>
Add the kgdb_recover trick.
1997-02-12 01:10:21 +00:00
gwr a4b09086fe Actually works now! 1997-02-12 01:07:56 +00:00
gwr cfb896375f Machine-dependent part of the KGDB remote "stub" 1997-02-12 01:03:20 +00:00
gwr 2d1b2f72cd Add m68k/kgdb_m68k.c 1997-02-12 01:01:07 +00:00
gwr 09cc42f318 Add kgdb_reg_t, KGDB_NUMREGS, KGDB_BUFLEN 1997-02-12 00:59:46 +00:00
gwr 64b7559e4f Machine-dependent KGDB sharable on all m68k machines. 1997-02-12 00:58:01 +00:00
scottr f5ac9d5deb Add a bus space tag field to obio_attach args, initialize it in
obio_search(), and use it in the ASC driver.  Thanks to Jason for
pointing this out.  Minor KNFing while I'm here.
1997-02-11 22:44:25 +00:00
scottr f9e4592ed5 Add an addr locator to obio. 1997-02-11 21:25:07 +00:00
gwr 6ef591a70b Add a few more coments. (i.e. why init a6=0) 1997-02-11 19:06:08 +00:00
gwr f914f723de Add NBPG 1997-02-11 19:02:30 +00:00
gwr 9c65cce961 Only run dbsym if not KGDB 1997-02-11 19:00:21 +00:00
gwr 9536056d54 Fix some comments 1997-02-11 18:59:23 +00:00
scottr 78098d98dc Remove dependency on asc driver, using generic console bell callback
instead.  Bell parameters are now entirely self-contained, as they
are managed by ite-specific ioctl()'s.
1997-02-11 07:51:18 +00:00
scottr 77e960bf17 Complete revamp of Apple Sound Chip support. The ASC can now be accessed
as a real device whose registers and buffers are available through mmap(2),
which makes further development of the driver considerably less painful.
1997-02-11 07:47:36 +00:00
scottr 2a2a70d39c Initialize and use extent manager for bus space mapping functions.
Tweak bus_space_{tag,handle}_t types slightly to facilitate this.
1997-02-11 07:37:41 +00:00
scottr 154aa56b01 Add asc character device; kill cdev_grf_init() macro. 1997-02-11 07:35:49 +00:00
mark 83697fa8b9 Added a field sc_ixfer to the sfas_softc structure to allow the standard
sfas ixfer() routine to be overridden with a card specific one.
1997-02-11 03:33:46 +00:00
gwr 7bd7620f61 Sync with sun3. 1997-02-11 00:56:08 +00:00
gwr aebbe3f083 Change most occurrences of "struct frame" (union of all frames formats)
to "struct trapframe" (the minimal frame) because in most cases, all we
care about is the minimal, invariant part.  Further, if the declaration
says we have an arg of type "frame" (big union), then KGDB will try to
print the whole bloody thing out whether you want to see it or not.
1997-02-11 00:18:25 +00:00
gwr f13b3f57fd This is obsolete (and has been for a while) 1997-02-11 00:10:35 +00:00
gwr 2bdded1c83 Move the logic about entering the kernel debugger (whichever one) to
trap.c:trap_kdebug() so it can be C code instead of assembly.
Make sure the initial frame pointer is zero so KGDB will know when to
stop trying to follow frame pointers during backtrace.
1997-02-11 00:05:01 +00:00
gwr 1e0e399b63 Change most occurrences of "struct frame" (union of all frames formats)
to "struct trapframe" (the minimal frame) because in most cases, all we
care about is the minimal, invariant part.  Further, if the declaration
says we have an arg of type "frame" (big union), then KGDB will try to
print the whole bloody thing out whether you want to see it or not.

Also add the function trap_kdebug() which takes care of calling one of:
kgdb_trap (for KGDB), or kdb_trap, (for DDB) or the Sun PROM monitor.
This logic used to be in locore, but it is better as C code.
1997-02-11 00:01:15 +00:00
gwr 4bcf6b565f Change most occurrences of "struct frame" (union of all frames formats)
to "struct trapframe" (the minimal frame) because in most cases, all we
care about is the minimal, invariant part.  Further, if the declaration
says we have an arg of type "frame" (big union), then KGDB will try to
print the whole bloody thing out whether you want to see it or not.
1997-02-10 23:57:34 +00:00
gwr 569d97a2f9 Save/restore the monitor "v" command handler. 1997-02-10 23:44:23 +00:00
gwr b31965da5a Set cputype,mmutype at compile-time. 1997-02-10 23:42:05 +00:00
gwr b7d7f667f3 minor nit in bounds_check_with_label() 1997-02-10 23:40:24 +00:00
gwr c70de0b625 Actually works now. 1997-02-10 23:36:09 +00:00