Commit Graph

15601 Commits

Author SHA1 Message Date
mjacob 84076832df add some more offset definitions 1998-07-08 00:45:08 +00:00
mjacob 6f87cdce00 Start of the platform specific (RAWHIDE) machine check handler. This
is not really needed for this platform, except that we might want to
handle PCI errors which get reported through here. In any case, this
prints out more info than is usual. Will probably need to detune
this to be based upon DIAGNOSTIC defines.
1998-07-08 00:44:32 +00:00
mjacob 57190a7be7 use new mchkinfo structures for expect/recv storage 1998-07-08 00:42:14 +00:00
mjacob 9035e8b3eb Move the search for number of cpus up earlier because we need to know
how many cpus there are when we (now) valloc per-cpu machine check
structures.
1998-07-08 00:41:32 +00:00
mjacob 275fb86f8d add some error handling definitions 1998-07-08 00:40:18 +00:00
mjacob 35ffe8edb3 Add machine check type definitions. Structure the expected/received
machine check items.
1998-07-08 00:39:02 +00:00
mjacob dfe345a444 common logout structure definitions, or a start thereof 1998-07-08 00:36:18 +00:00
mjacob 9c326571d3 add a common logout printing routine file 1998-07-08 00:34:49 +00:00
mjacob 163f4f10b1 add common logout printing routine file 1998-07-08 00:34:27 +00:00
mark 93179db2b7 Remove several pointless cache/tlb cleans. (From Neil Carson). 1998-07-08 00:18:16 +00:00
mark e1fe0d71c0 Fix IOMD ID checks. 1998-07-08 00:15:59 +00:00
mark 9a4a105abb Remove un-necessary write buffer drains. (From Neil Carson). 1998-07-08 00:13:41 +00:00
mark f79b12670f Simplify cache cleaning in page_move(). (From Neil Carson). 1998-07-08 00:12:33 +00:00
mark 9dccefd1c9 Simplify the included files. 1998-07-08 00:10:44 +00:00
mark ddae1799a5 Make sure the write buffer is drained during syncing. 1998-07-08 00:08:39 +00:00
thorpej de83dce0de On second thought, call that like the rest of the shared intr functions. 1998-07-07 22:24:38 +00:00
thorpej c7f8d02b23 Always count the number of strays we encounter, but don't send a "stopped
logging" message if we're ignoring strays.
1998-07-07 22:06:29 +00:00
thorpej 1ddd528346 Fix typi. 1998-07-07 22:02:57 +00:00
thorpej e82fc7d3cd The Pyxis core logic in the 164SX and 164LX seems to have problems with
stray interrupts.  Do what Digital UNIX (formerly DEC OSF/1) does; just
ignore strays.
1998-07-07 21:49:47 +00:00
thorpej ca73507d0b The Pyxis core logic in the Miata seems to have problems with stray interrupts.
Do what Digital UNIX (formerly DEC OSF/1) does; just ignore strays.
1998-07-07 21:47:49 +00:00
thorpej be83de18fd Use ALPHA_SHARED_INTR_DISABLE() to test if a shared interrupt should
be disabled after a stray.
1998-07-07 21:44:57 +00:00
thorpej 443d238f70 Define a macro to test if a shared interrupt should be disabled after
a stray has occurred.
1998-07-07 21:37:11 +00:00
thorpej 4220ffab81 Loop until all netisrs are consumed; netisrs processed down the list might
cause additional netisrs to be scheduled.
1998-07-07 18:27:13 +00:00
mark 61cdca4a6d Remove unused file. 1998-07-07 17:59:56 +00:00
mark d20b5cf136 Clean up included files. 1998-07-07 17:51:54 +00:00
is 49ed29ab05 The INTF_RBF bit of INTREQ is mirrored in SERDAT. As we would read this
register anyway when the bit is set, we can safe one of the (slow) custom
chip accesses by using this bit.
Sounds ridiculous, but at a hardware FIFO depth of 1 and ~1 usec per
access (at IPL 5) it might help the highspeed addicts.
1998-07-07 16:46:38 +00:00
drochner cbb7aa93f0 from FreeBSD:
wpaul       1998/07/02 08:36:36 PDT

  Modified files:
    sys/i386/boot/biosboot start.S
  Log:
  Add workaround to allow the FreeBSD boot block to work on
  Kapok Computer Co. notebook with AMI 'WinBIOS' which seems to insist
  on having a short jump and nop as the first instructions in the
  boot sector code. The prevailing theory is that the BIOS is doing
  some sort of boot sector virus detection and refusing to run any
  boot block that doesn't start with the same instruction sequence as
  MS-DOG boot sector code. If this is the case, it would be nice if it
  actually printed an error message to this effect instead of just
  saying 'FAILED.'

  This workaround has no effect on the boot sector code other than to
  increase its size by three bytes.
1998-07-07 13:58:59 +00:00
ross dbd55159a2 Teach dec_axppci_33_init() a little about the nsio config registers,
enable the nsio IDE, and leave the config register ISA ports mapped.
1998-07-07 08:49:12 +00:00
thorpej 8f2575ec87 Use fixed-size types. 1998-07-07 04:29:42 +00:00
mark 4a463e49fe defopt CPU_* options in opt_cputypes.h 1998-07-07 03:05:15 +00:00
eeh d94474ccc9 General update:
Added genassym.cf
	Removed lderr which should never have gotten in
	Removed lots of dead code from locore.s
	Added some softint stuff to intr.c
	Added support for halt -p
	esp and le both use bus_dmamap_*() functions now
		instead of kdvma_mapin()
	groundwork for PCI (but we still have no drivers for
		any sun4u PCI devices)
1998-07-07 03:05:02 +00:00
scottr 6d4420e5b2 Fix compile errors: #if DDB -> #ifdef DDB 1998-07-07 03:04:34 +00:00
mark 3d4c1e7372 Cleanup ofw_boot().
Remove un-necessary includes.
1998-07-07 02:45:00 +00:00
mark 2abb91b62a Nuke a redundant cache clean in pmap_enter() (from Neil Carson). 1998-07-07 01:18:47 +00:00
mark 2194175b24 KNF. 1998-07-07 00:48:11 +00:00
scottr 6124345626 Account for an offset frame buffer address. This change is somewhat
different than the one supplied by Paul Goyette in PR 5702, but
has the same effect.
1998-07-07 00:33:39 +00:00
dbj 6c2540b9a5 Removed unnecessary bug-workaround headers.
Minor compilation and header tweak.
1998-07-07 00:16:34 +00:00
mark 68dd742555 Include opt_armfpe.h 1998-07-06 18:13:26 +00:00
matthias 2395483fe4 * Use tlbflush and not pmap_update to flush the cache.
* For the pc532, there is no need to have different implementations
  of pagemove for UVM and bsd-VM.
1998-07-06 09:42:56 +00:00
mark d41434d3ae Cleanup explict Makefile dependancies. 1998-07-06 02:43:38 +00:00
mark 9161d5ab60 Include opt_pmap_debug.h for PMAP_DEBUG defopt. 1998-07-06 02:40:42 +00:00
mark 3682a37511 Include opt_compat_old_ofw.h for COMPAT_OLD_OFW option. 1998-07-06 02:36:52 +00:00
mark 94df6c50f4 defopt COMPAT_OLD_OFW and PMAP_DEBUG. 1998-07-06 02:35:34 +00:00
mark 9ed6d03641 Always include arm32/disassem.h 1998-07-06 02:33:25 +00:00
mark 572dcd8575 Include opt_armfpe.h 1998-07-06 01:56:40 +00:00
mark f10dbf227d defopt ARMFPE. 1998-07-06 01:54:56 +00:00
mark 5df95c3336 Junk the DISASSEMBLE macro and just call disassemble() directly. 1998-07-06 01:54:36 +00:00
mark 70fba3ee34 postmortem() is no longer used in this file. 1998-07-06 01:52:26 +00:00
mark a96139b744 Include opt_uvm.h and define Lcnt appropriate for UVM or non-UVM configs. 1998-07-06 01:04:17 +00:00
mark 8b4b75b9ea The ARMFPE option is never enabled by default any more. 1998-07-06 00:59:21 +00:00
mark c73c7674d7 defopt IRQSTATS. 1998-07-06 00:53:07 +00:00
mark ac8d41742b Remove MOUSE_IOC_ACK option as this is now standard. 1998-07-06 00:49:20 +00:00
mark d016feb2d7 Define MOUSE_IOC_ACK as standard. 1998-07-06 00:43:28 +00:00
mark 9126d07941 defopt XSERVER. 1998-07-06 00:42:37 +00:00
mark e110bd8a6a defopt IRQSTATS and XSERVER 1998-07-06 00:41:17 +00:00
mark 36af051383 Update functions that missed the previous name space change. 1998-07-05 23:31:16 +00:00
jonathan b37021c1a1 defopt NATM. 1998-07-05 22:48:05 +00:00
jonathan 9bf2ba0928 Garbage-collect ``needs-flag'' from attributes ether, fddi, arc:
NETHER, NFDDI, NARC are  not used anywhere. Remove #include "ether.h",
   which had no effect.
Removes clash with "options NATM" for native-ATM network protocol stack.
1998-07-05 22:29:51 +00:00
jonathan 3472ba67bb * defopt COMPAT_{09,10,11,12,13} and COMPAT_NOMID (from unsaved buffers).
TODO: revisit interaction between native compat and emul compat usage.
1998-07-05 18:27:18 +00:00
jonathan d275e56dee * defopt COMPAT_{09,10,11,12,13} and COMPAT_NOMID.
TODO: revisit interaction between native compat and emul compat usage.
1998-07-05 08:49:30 +00:00
dbj 023ee4f133 Started the esp scsi driver.
Fixed bus_space_handle_t in nextdma device.
Fixed scsi interrupt define.
1998-07-05 07:53:44 +00:00
jonathan 011f2bda08 defopt NS, NSIP. 1998-07-05 06:49:00 +00:00
jonathan 5c0c5dd0b4 defopt ISO TPIP. 1998-07-05 04:37:35 +00:00
jonathan 5b64a1fc00 "PS" alias for "SR" clashes with netccitt/pk.h. ifdef out. 1998-07-05 04:14:56 +00:00
jonathan fe484937cf defopt LLC 1998-07-05 03:14:41 +00:00
jonathan 8db0fcdbf7 defopt CCITT. 1998-07-05 02:12:22 +00:00
jonathan 2670278a47 _inqsue and _remque are used by ccitt and iso networking code:
Add #ifdefs to enable them.  (compiles and links, but untested.)
1998-07-05 02:10:14 +00:00
jonathan 3751946b97 defopt INET, NETATALK. 1998-07-05 00:51:04 +00:00
jonathan 0ed4d699d0 defopt DDB. 1998-07-04 23:12:39 +00:00
jonathan 466e784ee1 defopt DDB. 1998-07-04 22:18:13 +00:00
dbj 0a1e71abf1 Fixed pre-MMU rom console printing.
Fixed probing of the segment list on color NeXT's.
Added some debug messages on console as it reads the hardware config.
1998-07-04 05:36:05 +00:00
mhitch 34c823e939 A "GENERIC" kernel configured with a memory disk root. The miniroot can
now be inserted into the kernel for a self-contained installation kernel.
No more questions or problems trying to copy the miniroot to the swap
partition.
1998-07-03 22:27:59 +00:00
mhitch 65346d4042 Add memory disk. 1998-07-03 22:24:45 +00:00
mhitch 14a5ad4ce6 Make 'end' references consistant. Fixes PR#5670. 1998-07-03 22:21:42 +00:00
hubertf a18ed5d074 add missing ";" for non-UVM systems 1998-07-03 21:32:43 +00:00
mhitch bb85c60cdc Add "mainbus0" and "cpu*" entries that used to be in std.pmax. GENERIC
should now 'config' without errors.
1998-07-03 20:06:09 +00:00
tsubai 21f84e9128 Add nvram device support. 1998-07-03 11:50:32 +00:00
thorpej 8978015d51 Mark the kernel pmap `active' in pmap_bootstrap(). 1998-07-03 05:22:10 +00:00
tv b457cc5098 For now, do not build just "netbsd" as the root device probe cannot
distinguish wd0, cs0, etc.  Build only netbsd_netboot and netbsd_wdboot.
1998-07-02 23:39:22 +00:00
mjacob efee8aedfa If GENERIC has SCSIVERBOSE on, having it off here makes no sense 1998-07-02 23:36:59 +00:00
gwr 76cd67b8c7 Allow netif_getether() to use sif->sif_macaddr() on the Sun-3X
but check the PROM rev first, and print some info I want when
a PROM earlier than 3.0 is found.  (Then just try it!)
1998-07-02 21:58:25 +00:00
gwr 4b50f96523 Add strncmp.c 1998-07-02 21:36:00 +00:00
tsubai 197650c433 Reduce flushcache'd area. 1998-07-02 19:26:02 +00:00
tsubai a8ce5c2403 Console support. 1998-07-02 18:58:32 +00:00
tsubai f1b1f5211a Display/Keyboard console support (by calling Openfirmware) 1998-07-02 18:46:28 +00:00
tsubai ee91417fc2 Use BAT to map Openfirmware work area. 1998-07-02 18:21:03 +00:00
wrstuden 29f991cc2f Fixup last revision to zs.c. Keep a lot of the comment cleanup, and
keep the explicit clearing of interupts in zscnprobe.
1998-07-02 17:32:03 +00:00
jonathan f31b504207 Change not-in-tree drier stubs to use needs-flag, not needs-count,
and use needs-count only where acutally used (qvss, qdss, ts-11)
1998-07-02 07:55:29 +00:00
wrstuden 4f500bad2e Another printf("%:"...) bites the dust (->vprintf(...)) 1998-07-02 00:47:30 +00:00
gwr efa0b5e2f5 fix the comment 1998-07-01 23:12:42 +00:00
gwr 294fa42b6c Use the shared ../libsa/xxboot.c 1998-07-01 22:56:45 +00:00
gwr c426f6cd97 Replace {net,ufs}boot/boot.c with a shared libsa/xxboot.c 1998-07-01 22:51:43 +00:00
thorpej e9b40e3d85 Dont' check sysflags here... just look for NHPIB or IHPIB device IDs. 1998-07-01 22:47:12 +00:00
thorpej a1e53914d7 If sysflags tells us we have an internal HP-IB interface, don't bother
reading the DIO device ID at select code 7, but rather hard-wire the ID
to the IHPIB ID.  This prevents us reading what might look like a valid
ID to another device when IHPIB is present.  (IHPIB doesn't always return
a correct device ID, grumble.)
1998-07-01 22:46:29 +00:00
dbj 06fc3488e2 Moved rom memory configuration reading code into nextrom.c from machdep.c 1998-07-01 22:23:40 +00:00
dbj 3a5d43569e changed diagnostic panic into a printf since an unexpected condition appears
to happen every once in a while.  (The DMA interrupt gets called w/o
the completed bit set)
1998-07-01 22:14:44 +00:00
tv e89e603343 _GLOBAL_OFFSET_TABLE_ needs a _C_LABEL() wrapper, too. 1998-07-01 21:42:51 +00:00
tv 725b3015b6 Strip extra underscore on _mcount on ELF. 1998-07-01 20:55:45 +00:00
tv 28260456a9 Add relocation definitions used by ld.elf_so. 1998-07-01 20:43:56 +00:00
scottr 3733eac8e4 Undo a thinko in the various VIA2 isr loops: increment
bitnum inside the loop, not as part of the condition.
1998-07-01 18:57:36 +00:00
tv fb267f06f0 On ELF, make __indr_reference undefined and __warn_references do nothing,
as on Alpha.  This should be fixed to do something in both cases.
1998-07-01 17:14:51 +00:00
scottr 398759b74e Whoops, forgot to bracket struct grfinfo with #ifdef GRF_COMPAT. 1998-07-01 14:52:21 +00:00
scottr f170a53f0b Add a GRF_COMPAT option so that old-style grf ioctl() code can be
removed from the kernel.
1998-07-01 14:49:07 +00:00
ragge 1aab7e8c23 Added boot program support for the SGEC Ethernet controller, present on
some VAX 4000 maachines. Written by Jay Maynard. (jmaynard@phoenix.net)
1998-07-01 10:52:10 +00:00
ragge 7b2ca7e1ba RPB number for SGEC Ethernet controller (ze). 1998-07-01 09:37:11 +00:00
ross 7897fc307b Add support for:
DEC_1000
	DEC_1000A
	DEC_ALPHABOOK1
	DEC_EB66

Remove support (ran out of space) for: ahc and bha. SCSI must be ncr or isp.
This will be fixed soon by defining an optional, two-floppy install
alternative.
1998-07-01 09:14:02 +00:00
thorpej b6d050ef0f Make use the `end' consistent. 1998-07-01 06:05:18 +00:00
tv da26383918 Change _C_LABEL() to use proper underscoring depending on __ELF__ or not. 1998-07-01 02:35:24 +00:00
mjacob 20f9998e6f allow a config file to redefine MAXPHYS 1998-07-01 00:51:15 +00:00
wrstuden 67b0c87dc3 Overkill patches to make serial console work again. Should also make
serial echo work, but not sure. Tested by Paul Goyette.

A few of these changes can probably be backed out, but I'm not sure which.
This part should work for now, and get things going again. These fixes
should also get rid of the problem of things crashing just as zstty0 gets
configured.
1998-06-30 18:13:21 +00:00
msaitoh 94b9143ddd add RCSID 1998-06-30 12:22:36 +00:00
msaitoh c0eed6da3d sync with -current after a long silence 1998-06-30 11:59:09 +00:00
ragge 518a9a5b6a Enable use of reversed and underlined text. The DEC Isolatin character
set now also work correctly. Add blinking cursor.
1998-06-30 11:29:37 +00:00
drochner 9a04d7d9f2 adapt to wscons interface change 1998-06-30 09:02:08 +00:00
mrg 53559837db <dev/sun/disklabel.h> not <dev/sun/sun_disklabel.h> 1998-06-30 04:35:37 +00:00
scottr 3fec37df49 Fix warnings from recent ddb_init() change: handle end and esym
consistently.
1998-06-30 04:16:00 +00:00
gwr c80e8cd6ef Note recent changes. (and bump CVS revsion here) 1998-06-29 20:33:03 +00:00
gwr 8db8875feb Add a comment, kill an unused variable. 1998-06-29 20:18:07 +00:00
gwr b339af5461 Support multiple file open attempts without closing and reopening
the underlying raw device (which is expensive and causes problems).
This allows the boot program to try a sequence of names by default,
which is used to support common boot media for sun3 and sun3x.
(Now tries "netbsd.$arch" before "netbsd")
1998-06-29 20:17:03 +00:00
gwr 8261ec142f Minor tweaks for consistency with the other boot programs. 1998-06-29 20:11:06 +00:00
gwr 762cfeb615 Reimplement the header strip using two instances of dd in a pipe,
so it works with a dd that does not know conv=osync (i.e. Solaris).
1998-06-29 20:09:14 +00:00
gwr 2c0ea58240 Fix "integer overflow" error. 1998-06-29 20:06:34 +00:00
gwr e49744ee1c Get rid of user-level includes.
Do not reset the I/F on timeout.
Kill some old debug code.
1998-06-29 20:05:36 +00:00
gwr efb1b0549a Declare load_sun() 1998-06-29 20:03:14 +00:00
gwr 57a3ff9f72 Add load_sun() which does the guts of exec_sun() but lets
the caller do the file open/close and control transfer.
1998-06-29 20:02:49 +00:00
is 8a8208f978 Synchronize shadow ciab.pra variable on first open. 1998-06-29 19:31:19 +00:00
augustss 5aa0920e7d Make it compile again. 1998-06-29 13:53:00 +00:00
thorpej 9609289966 When loading a DMA map, check that the pages in the transfer are within
the tag's DMA range(s), if ranges are specified.
1998-06-28 07:32:32 +00:00
thorpej 46320bb017 Clean up the bus space function namespace somewhat; make sure they don't
collide with function names used in other parts of the kernel.
1998-06-28 07:27:51 +00:00
thorpej 3497ab9a8c Add a pointer to an array of DMA ranges. DMA buffers must lie within
a range, or else an error is returned when loading a map.  If the ranges
pointer is NULL, no range checks are performed.
1998-06-28 03:22:10 +00:00
thorpej e3f4206162 Only use DMA_BOUNCE if it is defined. 1998-06-28 00:53:21 +00:00
thorpej 02b767eee5 Take a stab at EB66 support. An EB66 is basically an EB64+ with a
21066 LCA instead of a 21064 + APECS.
1998-06-27 10:10:51 +00:00
thorpej dff0b84aba Oops, forgot option header. 1998-06-27 08:59:03 +00:00
perry 04b3a6bd4a Tweak more. 1998-06-27 02:55:10 +00:00
perry 9209250625 Oops. fix typo. 1998-06-27 02:51:56 +00:00
perry 39b77211e9 Boost base year to 1995. 1985 was over 12 years ago. 1998-06-27 02:51:18 +00:00
thorpej ad9e227ed7 Fix a bunch of printf arguments. 1998-06-27 02:48:24 +00:00
thorpej a4e8fc45cd Nuke the _cookie member of the bus_dma_tag_t; it's not used by anything. 1998-06-27 02:16:23 +00:00
thorpej 06f1469055 Really namespace-protect the virtual address in the DMA segment structure. 1998-06-27 02:13:39 +00:00
thorpej 06c15a479d Remove some #if 0'd i386-specific code that was inherited when this
was copied from the i386 port.
1998-06-27 02:11:19 +00:00
drochner 64bf50c49a add VT100 emulation option, make it default 1998-06-26 22:45:38 +00:00
thorpej 9da799cc58 Normalize the real/avail mem printfs, and make them consistent wrt.
UVM vs. Mach VM.
1998-06-26 22:42:37 +00:00
thorpej eb7e67ad13 If the IPL masks are debugging information, then only print them #ifdef DEBUG. 1998-06-26 22:40:59 +00:00
ross 50604bf85b Kill off some EVCNT_COUNTERS calls, since [A] it has to be rewritten anyway
before it can be useful, and [B] #ifdefs do not belong at every call site,
a common API should be defined and the implementations conditionalized, not
the calls. Duhh.

Also, remove the initial XXX mystery_icu debugging code.
1998-06-26 21:59:46 +00:00
ross e5e9adb326 Note ST_DEC_1000 as PCI/EISA. 1998-06-26 21:55:38 +00:00
ross e31a396c68 Add AlphaServer 1000 interrupts. 1998-06-26 21:55:09 +00:00
ross 843dd2d279 Add DEC_1000 support for new Mikasa[/Pinnacle] platform.
INSTALL-FLOPPY will have to wait; it needs attention w.r.t. size.
1998-06-26 21:53:10 +00:00
ross 0ce5563488 Turn on ST_DEC_1000, but reuse the 1000a init and console routines. 1998-06-26 21:49:25 +00:00
ross a0f70c580c New platforms: Mikasa and Mikasa/Pinnacle, aka Pinkasa.
Like the 1000A, the AlphaServer 1000 has a daughtercard assembly that
integrates the CPU and core logic, so these can be ev4/apecs or ev5/cia.
New systype, and, sigh, another way of doing interrupts and another
mystery icu.

Kill off some EVCNT_COUNTERS calls, since [A] it has to be rewritten anyway
before it can be useful, and [B] #ifdefs do not belong at every call site,
a common API should be defined and the implementations conditionalized, not
all the calls. Duhh.
1998-06-26 21:45:56 +00:00
drochner 26e2c08399 add a dummy "mapchar" function (1:1 mapping, hope the font is isolatin) 1998-06-26 21:28:57 +00:00