Commit Graph

5434 Commits

Author SHA1 Message Date
pk 9013a7a6e2 Add xxread/xxwrite. 1995-07-05 13:34:10 +00:00
pk deb17b0f15 make this compile better.... 1995-07-05 13:06:33 +00:00
ragge e0ebe6c93d (some) support for DDB disassembly added. 1995-07-05 09:54:07 +00:00
ragge 620027e37d Null pointer were referenced if signal occurred before first
syscall. Didn't hurt on 4.3 Reno binaries.
1995-07-05 08:39:48 +00:00
ragge a237052e3a DDB needs writable kernel text. 1995-07-05 08:36:37 +00:00
ragge 761fc3ae0f Bug causing null pointer mscp buffer reference fixed. Thanx, Rick Macklem! 1995-07-05 08:34:01 +00:00
ragge 26c6819bfc mscp_requeue() should work now. 1995-07-05 08:31:38 +00:00
ragge 426274c2a6 rx, rl and kdb needed cdev_decl's. 1995-07-05 08:30:41 +00:00
ragge 0e60bcde3a Calling of pppintr() included. 1995-07-05 08:29:27 +00:00
ragge dc2461e35c uda/tmscp read/write added. 1995-07-05 08:24:45 +00:00
ragge 5ad69f2c9d nton?/ntoh? moved to endian.h. 1995-07-05 08:22:21 +00:00
ragge 25e4dd61b5 Changes due to common network code mods. 1995-07-05 08:19:05 +00:00
ragge 1ab8219384 DDB file added. 1995-07-05 08:17:16 +00:00
ragge 7d58080faf More near reality. 1995-07-05 08:15:25 +00:00
briggs e11c8dfd4c Stupid programmer error in IIvx kludge. 1995-07-05 03:48:45 +00:00
chopps 07d9670a6c remove indirect use of strategy which brok with recent changes 1995-07-05 02:12:38 +00:00
christos 38f1964478 Fix bug in the KGDB trap definition. Add svr4 software traps. 1995-07-04 22:58:51 +00:00
christos 1fc6525f9b trap.c: Add svr4 software traps. Fix bug in errno mapping.
svr4_machdep.c: Add siginfo translation (from mrg), add some software traps.
1995-07-04 22:57:33 +00:00
briggs 38031d912a First cut at a kludge for IIvx internal video. 1995-07-04 18:55:11 +00:00
chopps f1e1796cf4 misc cleanup, better tty alloc for mfc. from osymh@gemini.oscs.montana.edu (Michael L. Hitch) 1995-07-04 18:06:40 +00:00
briggs 6d08320888 Move SCSIBase from scsi.c. 1995-07-04 14:42:16 +00:00
briggs 2e4f1e0daa Update a bit. 1995-07-04 14:38:49 +00:00
briggs 2510a4f689 A few nits. 1995-07-04 14:38:34 +00:00
paulus a8adf7421b Add code to netintr to call pppintr. 1995-07-04 12:37:42 +00:00
paulus 374a7cc9cb Add code to soft01intr to call pppintr. 1995-07-04 12:34:37 +00:00
paulus 08b7596c51 Add code to interrupt to call pppintr. 1995-07-04 12:22:21 +00:00
paulus da3602a73e Add code to softnet to call pppintr. 1995-07-04 12:19:07 +00:00
paulus 1513342690 Add code to netintr to call pppintr 1995-07-04 12:14:32 +00:00
pk 63eeefb6cd make this compile better. 1995-07-04 10:29:22 +00:00
mycroft 7263209ce6 Make each disk and tape driver define its own read and write functions.
Deprecate rawread() and rawwrite() completely.  Remove d_strategy from cdevsw to
force the abstraction barrier.
1995-07-04 07:15:28 +00:00
mycroft 9fbf4d6f47 Make hardware interrupts always block all software interrupts. 1995-07-04 07:09:53 +00:00
paulus f3285c2e0e Add call to pppintr in softnet. 1995-07-04 07:00:47 +00:00
paulus b41c6a7d1c Add call to pppintr from netintr. 1995-07-04 06:54:52 +00:00
paulus c9a82bdc54 Add code for netintr to call pppintr if PPP is included. 1995-07-04 06:51:05 +00:00
briggs f92d7eb51f Clean up some types. 1995-07-04 03:34:09 +00:00
briggs 4d6ed092f1 Fixup a comment. 1995-07-04 03:30:11 +00:00
leo d9019191a0 NetBSD/Atari keyboard mappings 1995-07-03 20:49:40 +00:00
gwr 365e8c62da Remove temporary hack (now merged into src/sys/lib/libsa) 1995-07-03 02:56:52 +00:00
gwr 5cd60330a9 Remove temporary hack (../libnet) 1995-07-03 02:53:55 +00:00
gwr c4746effe0 Correct !DDB console abort (thanks to David Brownlee) 1995-07-03 02:52:13 +00:00
mycroft 2dadf2f086 Simplify some conditionals. 1995-07-02 16:10:40 +00:00
christos e7dcefc56c Add the svr4 network cloning devices. Now telnet(1) works too. There are
still problems with X-windows programs.
1995-07-02 06:13:27 +00:00
briggs 1040af3492 Add missing interface for getting a grfmode structure from kernel. 1995-07-02 05:26:27 +00:00
briggs ed434b457d Fix grfmap() as well as grfmmap(). 1995-07-02 00:49:52 +00:00
briggs 932a8fc9af Set and use new fboff element from grfmode structure. 1995-07-02 00:30:25 +00:00
briggs af7f31e30a Add a couple elements to the grfmode structure. 1995-07-02 00:29:03 +00:00
mycroft f4b5f723e0 Remove references to if_addrlist. 1995-07-02 00:16:00 +00:00
christos 45d46cb0c9 svr4_machdep.c: Fix {get,set}context and sendsig.
locore.s: add signal trampoline code for svr4. There is a lot of code
	  duplication there. Maybe we should share the code?
SVR4 status now:
	/bin/sh:	works
	/bin/ls:	works
	/bin/sleep:	works
	/bin/csh:	gives unknown software trap 0xa7
	/bin/ldd:	works
1995-07-01 23:55:31 +00:00
briggs 3401cca400 Fix buglet that was missed when converting nubus to non pa==va mapping. 1995-07-01 23:40:38 +00:00
briggs 303845a487 Remove this define--we're using the new dump type. 1995-07-01 18:47:51 +00:00
briggs eec2d38c71 Take out ncr96scsi0. 1995-07-01 16:35:54 +00:00
briggs 36654b75d9 Use flags for scsi interrupts. clean up a small bit. 1995-07-01 16:35:16 +00:00
briggs 175a1e27f4 add needs-flag for the scsi chip interfaces. 1995-07-01 16:28:13 +00:00
gwr 38c03f8581 Add ${LIBKERN} ${LIBCOMPAT} to SYSTEM_DEP so they are built.
Move ${DEBUG} from ${CC} to ${CFLAGS} for compatibility.
1995-07-01 00:51:15 +00:00
briggs 12ab0410c7 Clean up a tad. 1995-06-30 05:25:41 +00:00
briggs fcde92bcba Fix straytrap(). Update a few values in the ROM table. 1995-06-30 05:25:01 +00:00
briggs 5fced13f51 Ooops. 1995-06-30 05:23:03 +00:00
briggs 705e6bd12b Fix oversight. 1995-06-30 05:21:33 +00:00
briggs 29bb03860c Option key fix from Ken Nakata (kenn@remus.rutgers.edu). 1995-06-30 01:23:21 +00:00
jonathan 7c4739e2c3 Change bootblock load code to work with old DECstation proms (2100, 3100)
that lack the REX callback introduced with 5k/200.
1995-06-28 10:22:32 +00:00
cgd dfd39259bf oops; this got mangled. 1995-06-28 08:27:08 +00:00
cgd 2b71eae2c7 note that most of dev/ic's contents have changed names 1995-06-28 04:30:30 +00:00
briggs 829668e8d3 Some random cleanup and some cleanup of the dump routines, modelled on
i386.  Untested.  Remove old mac68k-specific stack trace code, etc. as
the cleanup.
1995-06-28 04:09:25 +00:00
cgd a921a720f7 no more serial console. There aren't enough free serial ports on non-crash
machines in my office!
1995-06-28 03:48:48 +00:00
cgd c83f9c5568 remove unused cpu_exec() definitions. moved "broken swap" markers, for
ports that still need it, to types.h.
1995-06-28 02:55:18 +00:00
cgd 40e29d5890 sync with my current Alpha sources 1995-06-28 02:44:51 +00:00
cgd d4a54b73d2 kill user-land DELAY macro, as suggested by gwr. 1995-06-28 02:43:36 +00:00
cgd da6d5a140a update to use new paths for MI lance driver 1995-06-28 02:30:25 +00:00
cgd 6d04247fc7 update to use machine-independent lance driver 1995-06-28 01:48:12 +00:00
cgd 549f126f4b ISA and PCI support for DEC AlphaStations 1995-06-28 01:24:50 +00:00
cgd 5cc82e159a Support for ISA programmed I/O functions. 1995-06-28 01:16:33 +00:00
cgd ba164ee03d update for various (old) NetBSD changes 1995-06-28 01:16:13 +00:00
cgd f36f0cf3e2 update to make current state of knowledge 1995-06-28 01:14:41 +00:00
cgd 2a6abc91f8 update for (old) new tty changes 1995-06-28 01:06:35 +00:00
cgd 7a275b5901 update for new clock interrupt handling 1995-06-28 01:03:57 +00:00
cgd a6b5caae1a update for new kernel names 1995-06-28 01:02:58 +00:00
cgd f9e02471d0 make boot blocks work on AlphaStation systems 1995-06-28 00:58:44 +00:00
mellon 34f8cc760a leinit: we always have at least one address now. 1995-06-27 19:54:49 +00:00
gwr e80271fbe0 Get things from libsa now. 1995-06-27 15:57:13 +00:00
gwr 29b61e2253 Add/correct some cache-flush logic to deal with the fact that the
VAC has ref/mod bits that need write-back treatment.
1995-06-27 14:44:47 +00:00
gwr d5761f14d9 Fix uses of btoc() which requires an unsigned arg. 1995-06-27 14:42:34 +00:00
gwr 6b6502194f Fix warnings about setjmp arg. 1995-06-27 14:40:14 +00:00
gwr f82c63a641 Remove temporary __BDEVSW_DUMP_OLD_TYPE (our dumpsys is safe 8^) 1995-06-27 14:38:22 +00:00
gwr 6548befa4f Nuke user-mode DELAY() macro. 1995-06-27 14:37:22 +00:00
gwr 3a59870c12 Leave modem control lines in correct state on interrupted open.
(From sparc/dev/zs.c)
1995-06-27 14:36:20 +00:00
gwr f872dedb62 Catch up with net/if.h changes 1995-06-27 14:34:32 +00:00
chopps 5ad7f31079 udpate to match ifnets new use of sys/queue.h 1995-06-27 13:13:32 +00:00
cgd e0f9279f31 update for current configuration descriptions 1995-06-27 00:54:55 +00:00
pk 09ea33db05 Do away with ROM printf. 1995-06-26 23:45:06 +00:00
pk a50ba2b546 Adapt to new lib{sa,kern} regime. 1995-06-26 23:26:57 +00:00
phil ad4af073cd Updates from Matthias Pfaller. (leo@marco.de) 1995-06-26 23:13:54 +00:00
pk c7df493055 SMD disk driver, from Chuck Cranor. 1995-06-26 23:06:57 +00:00
pk 70b6d95d44 xd definitions, from Chuck Cranor. 1995-06-26 23:01:06 +00:00
pk 35ad7a1ff3 xd driver entries, from Chuck Cranor. 1995-06-26 23:00:32 +00:00
pk 4f4e4826a6 xd definitions, from Chuck Cranor. 1995-06-26 23:00:31 +00:00
pk d918ea9e14 xd driver entries, from Chuck Cranor. 1995-06-26 22:59:54 +00:00
pk 3c17e9e63f isbad(), for Chuck's new xd driver. 1995-06-26 22:57:29 +00:00
pk 34c8ad8c30 Define dvma_map{in,out}() to map a buffer into DVMA space. These are
safe for use at interrupt time.

Implement vmapbuf() and vunmapbuf() in terms of these new functions.
1995-06-26 22:46:04 +00:00
pk 68e9c36909 Allocate/initialise DVMA maps and base address.
The fact that `phys_map' is split in half for different kinds of DVMA
allocations is not ideal..
1995-06-26 22:41:23 +00:00
pk affbc4d346 Define variables and macros for DVMA allocation using rmaps. 1995-06-26 22:36:32 +00:00
pk 04977f87e0 sl_xxx2 -> sl_pcylinder, for Chucks new xd driver. 1995-06-26 22:09:47 +00:00
pk 47ce042b76 Small optimisation & 1 fewer depedency on zs_ctty. 1995-06-26 21:45:31 +00:00
pk 45eb69b276 Use ZS_DELAY() in a few more places (from Gordon Ross, cf. sun3/dev/zs.c). 1995-06-26 21:32:51 +00:00
leo abe8c288fb Sync grf with underlying view on open. 1995-06-26 19:55:45 +00:00
leo 0d1035fa62 Fix thinko. It will now also work when no mouse is configured. 1995-06-26 14:31:27 +00:00
cgd 2b7d3527a2 define and set PTDpaddr (pyhs addr of kernel PTD) 1995-06-26 13:26:26 +00:00
cgd db66a978e9 IdlePTD has been gone for a while. PTDpaddr now exists. 1995-06-26 13:25:29 +00:00
cgd 59e990a56b check CMOS time against base time, for sanity. if CMOS time invalid,
warn user and user base time.  if base time < 1985, warn the user.
if base time 5 or more years different than clock time, warn user,
and if it's base time that's greater, use it.  (The latter case is
handy if one has a machine in which the CMOS battery is dead... I do.)
1995-06-26 10:14:05 +00:00
cgd 2d49c3885b clean up definitions of ctod(), dtoc(), ctob(), btoc(), btodb(), and
dbtob().  remove unused definitions of ctos(), stoc(), and dtob().
1995-06-26 06:55:38 +00:00
cgd c8858650b0 DEBUG -> FD_DEBUG, so this thing doesn't spew when used with options DEBUG 1995-06-26 05:47:40 +00:00
cgd 35bea7d1f4 use new-style block device dump functions. (most intelligence here now.) 1995-06-26 05:22:53 +00:00
cgd 5ccd187ba5 reserve VM to map pages being dumped 1995-06-26 05:21:58 +00:00
cgd dd3e2df4a7 make dump stubs consistent. fix other piece of code to compile
properly with DEBUG; used bogus variable.
1995-06-26 05:20:40 +00:00
cgd 1c0be437b1 define __BDEVSW_DUMP_OLD_TYPE for ports where it's true. clean up
some m68k ports inclusion of common header.
1995-06-26 05:13:37 +00:00
christos e14fb59c60 Fix building of libkern that broke with yesterday's fixes 1995-06-26 03:24:17 +00:00
chopps 81d3868e70 missed one fdopen 1995-06-26 02:34:01 +00:00
chopps 76a5f59729 setup pcb in cpu_fork. 1995-06-26 01:52:53 +00:00
chopps 4230801c92 be sure of product from Ezra Story <ezy@panix.com> 1995-06-26 01:49:05 +00:00
chopps 2937872ca5 typo fix from Daniel Widenfalk <t94dwi@student.tdb.uu.se> 1995-06-26 01:42:08 +00:00
chopps d6e4fd6e10 fix for sprite problem from Kenneth Dyke <kcd@babylon5.jumpgate.com> 1995-06-26 01:39:55 +00:00
pk 2321aeb62a Reserve arguments 2-4 for SunOS loaders; pass DDB stuff in args 5 and 6. 1995-06-25 23:26:21 +00:00
pk 008504e597 Define IO-cache bit for sun 4/400 machines. 1995-06-25 23:15:58 +00:00
pk 95733d9732 add a couple more sun4m bits. 1995-06-25 21:34:28 +00:00
leo 4abd54fe69 Mouse driver added. 1995-06-25 19:05:23 +00:00
briggs 600cdad805 Stupid typo in last. 1995-06-25 14:02:09 +00:00
briggs 50d8509da2 Stupid pasto in last. 1995-06-25 13:53:21 +00:00
briggs 0958ef72c8 Add libcompat. 1995-06-25 13:39:37 +00:00
briggs 2a153a49b1 Fix the clean target. 1995-06-25 13:06:32 +00:00
briggs 4d6069140b Get the units right... 1995-06-25 04:49:05 +00:00
briggs b1addb6674 Patches from Walter Ruetten (walter@ghpc8.ihf.rwth-aachen.de)
and Daniel Risacher (magnus@mit.edu).  Apparently with some
helpful discussion from John Wittkoski (jpw@insoft.com).
This works on my IIcx and IIsi.  Still needs a bit of cleaning up.
1995-06-25 03:24:09 +00:00
briggs b1598cdd1b Remove a compile warning. 1995-06-25 02:46:46 +00:00
briggs fc6fb65d62 Do something a lot closer to the right thing for FPU_EMULATE/FPSP/040
and subsets thereof.
1995-06-25 02:45:14 +00:00
christos f9f989f545 Makefile.`arch`: - Add -lcompat
- Change clean: target to be a double dep one,
			  so libraries can use the clean target too
			- Add genassym to the clean targets
1995-06-24 21:14:40 +00:00
christos 8d8973280c Makefile.`arch`: - Add -lcompat
- Change clean: target to be a double dep one,
			  so libraries can use the clean target too
			- Add genassym to the clean targets
1995-06-24 20:48:36 +00:00
christos a5c53e5068 Makefile.`arch`: - Add -lcompat
- Change clean: target to be a double dep one,
			  so libraries can use the clean target too
1995-06-24 20:47:36 +00:00
christos 98df248f95 Makefile.`arch`: - Add -lcompat
- Change clean: target to be a double dep one,
			  so libraries can use the clean target too
			- Add genassym to the clean targets
1995-06-24 20:46:09 +00:00
pk dbc54ab48e For a mmu3/sun4 too, it will suffice to just map the first 16MB. 1995-06-24 20:42:59 +00:00
christos 7f0e620523 Makefile.`arch`: - Add -lcompat
- Change clean: target to be a double dep one,
			  so libraries can use the clean target too
			- Add genassym to the clean targets
1995-06-24 20:41:28 +00:00
christos 3cb270c7ee Makefile.`arch`: - Add -lcompat
- Change clean: target to be a double dep one,
			  so libraries can use the clean target too
1995-06-24 20:40:45 +00:00
christos a94817a5de GENERIC: Add COMPAT_IBCS2 in too by default.
Makefile.`arch`:	- Add -lcompat
			- Change clean: target to be a double dep one,
			  so libraries can use the clean target too
			- Add genassym to the clean targets
1995-06-24 20:39:40 +00:00
christos fc741845e6 Stackgap_init() now takes an p->p_emul argument. 1995-06-24 20:36:28 +00:00
briggs 5781a8dcc0 The kernel is called netbsd, not vmunix. 1995-06-24 17:24:24 +00:00
briggs 4f05f7e8f6 pmap_page_index isn't a macro. 1995-06-24 16:18:50 +00:00
pk 20d86b44f2 Assume kernel is < 16MB in size,
Massage the a few control bits before remapping (from David S. Miller).
1995-06-23 15:44:34 +00:00
pk ad8e3ed225 Sync with net/if.h 1995-06-23 13:19:44 +00:00
jtc 611c2dbdc8 fix typo 1995-06-23 01:33:43 +00:00
briggs 1dadb15deb Remove DIAGNOSTIC 1995-06-22 23:24:18 +00:00
fvdl 1634acc3e4 Include file change. 1995-06-22 21:35:42 +00:00
briggs 3ddc81510c Add avail_end to keep ps and friends happy. Possibly a short-term fix. 1995-06-22 03:08:29 +00:00
briggs 1ccd38d9e1 Don't use constants for addresses. VA != PA... 1995-06-21 03:59:07 +00:00
briggs 229ed22747 Add function to reconfigure addresses when ROM is remapped. 1995-06-21 03:46:52 +00:00
briggs 2beeae8058 Lots of changes from hp300.
Removed MACHINE_NONCONTIG conditionals.  Only support that
configuration, now.
Some cleanup.
1995-06-21 03:45:10 +00:00
briggs 49b9eb5e4d A number of clean-up related changes and a few changes relating to
the new mapping.  "real mem" is now correct for MACHINE_NONCONTIG
machines.  MACHINE_NONCONTIG conditionals have been removed--only
support that case, now.
1995-06-21 03:41:51 +00:00
briggs 778adb81d1 Bring in 040 code from hp300 port.
Remove memory mapping code.
Update cpu_switch and a few other functions from hp300 port.
1995-06-21 03:36:27 +00:00
briggs 3d04799c79 Remove warning. 1995-06-21 03:20:58 +00:00
briggs 19b569364f Cleanup some--needs more pruning. 1995-06-21 03:20:22 +00:00
briggs 37b6dc390f Put page mapping code into a C module.
Remove old 040 version of page mapping--new way handles 040, too.
Derived from hp300 pmap_boostrap.c.
1995-06-21 03:19:35 +00:00
briggs 4a9e8ef39f Raise MAXTSIZ, double DFLDSIZ and quadruple MAXDSIZ. Lower USRPTSIZE.
Remove unused mapin() macro.  Update VM_MAX* macros to look like the
amiga's (easier to read than hp300's).
1995-06-21 03:17:06 +00:00
briggs 5dd8297b11 Cleanup some and make these look more like hp300 versions. 1995-06-21 03:14:06 +00:00
briggs 23622438bf Get rid of pcb_cmap2. 1995-06-21 03:10:44 +00:00
briggs c2184f6f5b Update to look more like hp300. Clean up a lot. 1995-06-21 03:08:29 +00:00
briggs 04834fb800 Remove cpu_set_init_frame() define.
Remove BROKEN_SWAP
Change cpu_swapout() to null-op.
Remove profile_tick() define.
Add some 040 stuff and make other 040 stuff compat. with hp300 port.
Cleanup a bit.
1995-06-21 03:06:33 +00:00
briggs 7542473d6d Clean up I/O base settings a bit. 1995-06-21 03:03:13 +00:00
briggs 697011742c Add some debugging (conditional on DEBUG). Add a more correct probe for
internal video.  Clean up nubusprint() a bit.
1995-06-21 02:59:08 +00:00
briggs e4ff96e47c Make NUBUS_BASE_TO_SLOT and reverse not depend on VA==PA for NuBus.
Add constant for DRSW_FARALLON.
1995-06-21 02:57:19 +00:00
briggs 6ff2537ad3 Make no assumptions about the absolute address of nubus cards. 1995-06-21 02:52:09 +00:00
briggs cb00a78de3 Treat 0 as a failure case for ae_id_card() and take out
null-op check for a 0 addrlist in init.
1995-06-21 02:50:22 +00:00
briggs f462aa095a Be a bit more careful on the probe... Make sure that the current slot's
addresses contain the int_video_start--or assume that internal video is
is "slot" 0xE.
1995-06-21 02:48:00 +00:00
briggs 1eec6bfc33 Add pmap_bootstrap.c and take out mac68k_init.c. 1995-06-21 02:43:19 +00:00
jtc 55fbbc705d Wrap with #ifndef _XXX_FLOAT_H_/#define _XXX_FLOAT_H_/ ... /#endif. 1995-06-20 20:45:22 +00:00
jtc 1d65cdd4ab #include <sys/cdefs.h>.
Wrap __flt_rounds() declaration with __BEGIN_DECLS/__END_DECLS.
1995-06-20 20:32:22 +00:00
briggs 67bfc330f1 Fix a typo that's gone unnoticed for a long time. Noticed by Brian
Gaeke (brg@dgate.org).
1995-06-20 05:13:19 +00:00
briggs caa1421dd6 Add FPSP back. 1995-06-19 03:55:15 +00:00
briggs 6f06373e06 Take out M68040, add a more specific swap and add vnd. 1995-06-19 03:53:58 +00:00
cgd 8b16cd6552 reenable kernel debugger; new location more amenable to tweaking. 1995-06-18 20:14:44 +00:00
cgd 8f62c773e8 don't assume the f_fsnamelen is nul-truncated or longer than MFSNAMELEN 1995-06-18 14:45:14 +00:00
phil 2f62eae02d Checkpointing ... still has a couple of problems but it is better.
(include/{icu.h,psl.h} should be listed as part of this checkpoint.)
1995-06-18 07:18:02 +00:00
phil 8142065452 Updating to be like i386 version. 1995-06-18 07:13:46 +00:00
cgd 3722386a41 use new pcireg.h macros 1995-06-18 02:36:41 +00:00
ragge 63a9ff56e7 rudimentary DDB support. 1995-06-16 15:36:37 +00:00
ragge 7aaf918c75 d_reset reference removed. Calling of ubareset must be solved. 1995-06-16 15:26:11 +00:00
ragge 8a9fcc717d DELAY() moved to common place. 1995-06-16 15:23:53 +00:00
ragge 2a7adb567d Some flags added to use in boot blocks. 1995-06-16 15:20:11 +00:00
ragge 913f0b045e DDB support. splddb() and trapcode for ddb. 1995-06-16 15:17:27 +00:00
ragge a1761db1f5 DELAY() removed, now common. 1995-06-16 15:14:05 +00:00
ragge e9aa7f52a2 ddb file added. 1995-06-16 15:09:56 +00:00
ragge e11e0f1712 Passing symtab address to kernel. 1995-06-16 15:07:58 +00:00
ragge 988e66c172 Pass symtab address to kernel. 1995-06-16 15:06:50 +00:00
jtc 7d0e5e8589 Use ${.CURDIR} in S macro definition so makefile works with obj directories. 1995-06-16 07:23:02 +00:00
briggs fec7ba6562 Rearrange slightly. 1995-06-16 04:45:22 +00:00
mellon 1305dc32df Put parentheses around macro arguments 1995-06-16 02:07:33 +00:00
gwr d82ae8cad9 Fix cpuspeed values for Carerra and similar.
Enable the virtual address cache on the 3/260
1995-06-13 22:21:40 +00:00
gwr b029c12ac1 Moved delay2us to param.h (now an inline function). 1995-06-13 22:16:38 +00:00
gwr cd13e583aa Provide delay2us as an inline and make it reasonably accurate,
but conservative (long) by a factor of about 1.25
1995-06-13 22:14:24 +00:00
gwr 64543c95b6 Fix several missing (and REQUIRED) calls to ZS_DELAY() 1995-06-13 22:11:33 +00:00
gwr 11ab4427ec Fix warning about setjmp arg 1995-06-13 22:06:58 +00:00
gwr 66f34029e5 Leave pseudo-device prom in for now (even though it doesn't work)
so config will create prom.h
1995-06-12 19:05:43 +00:00
fvdl ca120e393c Do extra comparison against linux_elf emul struct pointer to see what
we are emulating (unfortunately).
1995-06-11 20:24:42 +00:00
pk c049178b03 Deal with unrecovered boot devices. 1995-06-10 21:48:29 +00:00
gwr 914666b4f0 Temporary! Should be merged into libsa... 1995-06-09 22:26:18 +00:00
gwr 7fb30c51c8 Add install target, etc. 1995-06-09 22:24:06 +00:00
gwr f950c931e0 Oops, that was a binary... 1995-06-09 22:23:44 +00:00
gwr a4310ae56e Several fixes and cleanup: make close work; stop in prom if debug mode... 1995-06-09 22:23:01 +00:00
gwr e4a7bfeef8 cosmetic 1995-06-09 22:21:00 +00:00
gwr 94ef91135d Add install target, etc. 1995-06-09 22:20:17 +00:00
gwr c903596f3c New: a netif compatible interface to the Sun PROM network drivers. 1995-06-09 22:19:25 +00:00
gwr c3fdd9aa60 Add BINDIR 1995-06-09 22:18:04 +00:00
gwr 2f9ec64621 Add install target, etc. 1995-06-09 22:17:19 +00:00
gwr dbef525da2 Add install targets, etc. 1995-06-09 22:03:41 +00:00
gwr 8e179d8e95 Have netboot! 1995-06-09 22:02:39 +00:00
gwr 20ff880de8 More liberal check for exec header. Nuke machine type defines (support all) 1995-06-09 21:58:32 +00:00
gwr 5a7b959d02 Moved to ../stand/netboot 1995-06-09 21:55:47 +00:00
gwr b80b4c93a5 Retool for native build. 1995-06-09 21:53:27 +00:00
leo 56dc7b26ad Atari no longer uses the default db_read/write functions. 1995-06-09 20:03:05 +00:00
leo 73c861e2e3 Handle mouse and other packages received from the keyboard correctly.
The initialisation now resets the keyboard and disables all packages
that make no sense because their drivers are not activated.
1995-06-09 20:00:14 +00:00
leo 91bada6a66 Fix grfmmap() 1995-06-09 19:55:13 +00:00
leo 18e5707a34 Add our own low-level access functions for ddb. This makes sure that
the system won't hang when referencing a non-existend page.
1995-06-09 19:53:45 +00:00
leo 9f6e63c66b Add our own db_memrw.c for ddb. 1995-06-09 19:50:42 +00:00
leo 13af15620a Show FPU_EMULATE exists 1995-06-09 19:49:27 +00:00
leo f8c615afc9 Make hardware locations u_char instead of char 1995-06-09 19:47:30 +00:00
leo 2644faf340 Fix thinko 1995-06-09 19:45:42 +00:00
leo 80bf490a56 Support & require MACHINE_NONCONTIG 1995-06-09 19:42:22 +00:00
jonathan 8e556dece3 Change default optimization level from -O to -O2. 1995-06-09 06:44:41 +00:00
phil 9999c610fb Updated To.Do 1995-06-09 06:03:45 +00:00
phil 36c6fc31be Various updates for the new NCR scsi driver and tweeks to the interrupt
code. (From Matthias Pfaller)
1995-06-09 05:59:56 +00:00
phil a8674363a7 Replacement of the NCR driver by the Leo Weppelman NCR driver as
ported by Matthias Pfaller (Thanks to both!) and a RCS id.
1995-06-09 04:36:14 +00:00
briggs d37674426a "Always compile before you commit." 1995-06-09 02:19:47 +00:00
briggs 90caf013ba In the interrupt routine, bail out if we've not been initialized, yet. 1995-06-08 12:52:02 +00:00
cgd e58dfa2a1a make match/attach routines and cfdriver struct mi 1995-06-07 07:06:16 +00:00
cgd d4f62dcb69 update from Ignatios Souvatzis 1995-06-07 00:13:52 +00:00
pk a47021162b Prototype sysarch(2) (Thorsten Lockert, PR#1096) 1995-06-05 19:36:23 +00:00
ragge 215feb7abb New file pcb.h. USRTEXT changed to 0x400. 1995-06-05 17:17:57 +00:00
ragge 3c6303e76b Enabled auto reboot. Fixed bug in conf.c. Started use of rpb.
Detecting kernel stack overflow. Removed local mapping of
sigtramp code. Frob kernel stack pages in cpu_swapin().
Cleaned up some code and changed to KNF.
1995-06-05 16:26:23 +00:00
pk bf834e228d Add UNION option. 1995-06-05 12:46:31 +00:00
mycroft ee9e2e35fa Increase the delay after pulsing the keyboard reset line. 1995-06-05 03:47:51 +00:00
mycroft 1922f9e648 Use the memory mapping set up by the BIOS. 1995-06-05 03:07:34 +00:00
mycroft 4ea6427a03 Increase size of imask[]. Sigh. 1995-06-04 20:22:50 +00:00
mycroft bd99191320 IPL_IMP includes IPL_NET, IPL_BIO, and possibly IPL_TTY. 1995-06-04 08:32:24 +00:00
mycroft 8bb190daa3 Add a separate IPL_IMP, used by splimp(). 1995-06-04 08:29:41 +00:00
mycroft d4e9fde6e5 Handle most of the address fixups during bootstrap with a macro. 1995-06-02 18:14:04 +00:00
pk c86cba88fe Update SCSI decls. 1995-06-02 17:53:51 +00:00
mycroft 3126edd708 Arrest the KNF policeman. 1995-06-02 17:51:21 +00:00
gwr 788562b9ed Use the exec header left by the boot program to validate the
symbol table size, and then preserve symbols for ddb.
1995-06-02 16:46:18 +00:00
gwr 3fda1f293a Keep the exec header so the kernel can find it. 1995-06-02 16:44:20 +00:00
pk c0c45bba22 Try to recover from multi-byte messages sent by a target for which we
get an "Illegal command" (why is this?) when we try to pull it in.
On detection of this condition, we reset the SCSI bus and simply stop asking
this target for an identify messages, for now.
1995-06-02 15:46:47 +00:00
pk 4770e5e7c5 Try to recover from multi-byte messages sent by a target for which we
get an "Illegal command" (why is this?) when we try to pull it in.
On detection of this condition, we reset the SCSI bus and simply stop asking
this target for an identify messages, for now.
1995-06-02 13:43:30 +00:00
brezak cfe5401c83 Integrate patch from Lon Willett that is part of release 3.20 1995-06-02 02:48:41 +00:00
gwr 73a128e326 Add a man page. 1995-06-02 00:22:47 +00:00
gwr f38968b1dd boot --> ufsboot 1995-06-01 21:15:20 +00:00
gwr 7f6fe50cb7 clean up import conflicts 1995-06-01 21:03:07 +00:00
gwr a48381d6df Make this build in libsa 1995-06-01 20:44:40 +00:00
gwr 506236d9e5 Booting from ufs works now. 1995-06-01 20:37:44 +00:00
gwr 81c8755972 Moved to ufsboot 1995-06-01 20:26:32 +00:00
gwr 9b910268e1 Better reset code, and reset the chip when it goes comatose. 1995-06-01 20:22:17 +00:00
mycroft d69f7885b7 Allow [nh]to[hn][ls]() to do constant folding. 1995-06-01 17:19:18 +00:00
pk 8066369f08 Deal with v.3 proms (sigh). 1995-06-01 14:36:17 +00:00
cgd b86de4fbbd invoke shutdown hooks 1995-05-31 20:45:14 +00:00
jonathan ae4eae4f63 Change reference in asm code from ``__mcount'' to ``___mcount'', to be
consistent with the (default) prepending of underscores to identifiers.

Because this reference is inside an ASM string it's too hairy to
conditionalize to support different toolchains that don't prepend underscores.
(Just don't do profiling with  such  toolchains.)
1995-05-31 00:25:06 +00:00
jonathan 8a93b408d6 Fix BPF bit-rot in receive side of pmax/dev/if_le.c: prepend ether header. 1995-05-31 00:15:46 +00:00
briggs 0b3271404c Make genassym depend on its C source. 1995-05-31 00:09:55 +00:00
pk ff6265b288 Remove useless msgbufmapped definition.
Two cases of incorrect addressing while not mapped at KERNBASE.
Some more sun4m stuff.
1995-05-30 20:29:42 +00:00
gwr d992496652 New version that supports writing a Sun disklabel (rewritten). 1995-05-30 15:38:14 +00:00
gwr 68950abf69 Make sure curpcb is up-to-date before possibly copying it.
Let child start at spl0 (just like system call entry).
1995-05-30 15:36:58 +00:00
gwr 3b4e8765b5 Take care of curpcb->pcb_ps in vm_machdep, and use appropriate IPL.
Add missing line accidently dropped near the end of cpu_switch().
1995-05-30 15:32:37 +00:00
pk 95fcffe527 eeprom device for Sun4 from Jason Thorpe. 1995-05-29 23:56:27 +00:00
pk 555da07c0f eeprom device (from Jason Thorpe). 1995-05-29 23:53:50 +00:00
hpeyerl f6d7cb01ee Check curproc != NULL before PMAP_ACTIVATE.
From Chuck Cranor <chuck@maria.wustl.edu>
1995-05-29 19:36:22 +00:00
leo 74d95b443e Add CLKBROKEN define, so GEM version that are 2 years off on the RTC can
be identified.
1995-05-28 21:02:21 +00:00
leo e4b2ec5091 Add emulator. 1995-05-28 19:58:18 +00:00
leo 1579fb8674 Add HZ=64, remove FPCOPROC. 1995-05-28 19:56:14 +00:00
leo c21a70ad06 Define a config for the kernel on the boot-floppy. It should be resonably
small and boot on both TT and Falcon.
1995-05-28 19:53:48 +00:00
leo d8cb2b8dfa According to diffs from Waldi Raven:
Make speed/clock-source selection smarter. This makes the baudrates more
 accurate and allows speeds upto 115k baud.
1995-05-28 19:50:26 +00:00
leo 27a11d1735 Remove the pointer to view_t from the grf-structure, use viewview(dev)
to obtain the pointer instead. This removes a kernel-crash that happened
when something was written to the console while the console was being
resized.
1995-05-28 19:45:36 +00:00
leo d66ffa3fe1 Use <dev/ic/mc146818.h>. Change systemclock settings. Usable values for
HZ are now 48/64/96.  This reduces the interrupt overhead, because we
don't need the extra division by 4 in the interrupt handler.
1995-05-28 19:38:49 +00:00
leo 04246ac4f8 Add emulation traps. 1995-05-28 19:33:13 +00:00
leo b88f1c35c4 Remove FPCOPROC use fputype instead. 1995-05-28 19:31:50 +00:00
leo 896cbdecbf - Remove FPCOPROC ifdef's. Make fpu code dependant on fputype.
- Change clock interrupt handler: remove extra division by 4.
1995-05-28 19:17:54 +00:00
leo 0a93016a82 Define T_FPEMUL? for locore.s 1995-05-28 19:14:30 +00:00
leo 25b59487ea Add FS_OTHER type partitions to 'user-partitions' 1995-05-28 19:11:51 +00:00
leo a0f558aed0 Make ST_POOL_SIZE configurable through config. 1995-05-28 19:10:17 +00:00
ragge ae74b4ebab Changed *_MIN to be correct. 1995-05-28 18:38:30 +00:00
leo 633db03b5b Check for a different year-base in the RTC. 1995-05-28 10:56:16 +00:00
pk 06ffffda03 Propagate bootpaths 1995-05-27 08:12:51 +00:00
gwr 4dbca7a672 Cleanup in cpu_fork - remove use of curproc
Startup code now ensures proc0pcb is valid.
1995-05-26 17:20:30 +00:00
gwr 851d298eea Add a comment 1995-05-26 17:17:47 +00:00
gwr 17f5406aea Initialize proc0pcb.sr here (before cpu_fork copies it). 1995-05-26 17:09:37 +00:00
briggs 81712d5ba7 Make a diagnostic message DIAGNOSTIC. 1995-05-25 11:48:06 +00:00
mycroft 22aa7c18f0 Update curpcb before possibly copying it. 1995-05-25 01:11:29 +00:00
mycroft 8e18358c86 Make sure proc0's md_regs is initialized. 1995-05-25 01:09:10 +00:00
gwr 5adf2494d3 Update cpu_fork() to eliminate double mapping of kernel stacks. 1995-05-24 21:08:42 +00:00
gwr bf7679cb99 Add child_return() 1995-05-24 21:07:46 +00:00
gwr 55cb8a7f53 Add missing conditional (thanks to Jason Thorpe)
Add pmap_collect()
1995-05-24 21:06:40 +00:00
gwr fc49efe441 Make this more like the other m68k ports. 1995-05-24 21:04:51 +00:00
gwr 179595bf13 Add FPF_REGS and FPF_FPCR for FPU save/restore code. 1995-05-24 21:02:53 +00:00
gwr 7554244ef3 Make struct cpu_disklabel hold the Sun disk label. 1995-05-24 21:00:15 +00:00
gwr b2b4514bbc Define struct saif 1995-05-24 20:58:05 +00:00
gwr bbabbc2614 Sunc with sparc version (adds key repeat capability) 1995-05-24 20:57:00 +00:00
gwr 6867f7fcbd Update cpu_fork() to eliminate double mapping of kernel stacks. 1995-05-24 20:55:33 +00:00
gwr 6e6f7ede65 Improve probe (should reject "sc" board now) 1995-05-24 20:52:27 +00:00
gwr 51e2d10bd0 Sunc with sparc version (adds key repeat capability) 1995-05-24 20:51:31 +00:00
gwr 20f34f40d2 Turn off IFF_MULTICAST for now... 1995-05-24 20:49:38 +00:00
gwr 29e0f797d4 Fix missing return(0) - from Jason Thorpe - fixes PR 1049 1995-05-24 20:47:41 +00:00
gwr a5e62834f4 Merged locore code back into locore.s 1995-05-24 20:42:13 +00:00
gwr 23718d5ee4 Merged locore code back into locore.s 1995-05-24 20:29:16 +00:00
gwr ea63c8d798 Fix range check for kernel stack pointers. 1995-05-24 20:23:34 +00:00
gwr 31870d2eec Compute value of ssp correctly. 1995-05-24 20:23:05 +00:00
hpeyerl caef1dfaa2 KNF police. 1995-05-24 13:12:12 +00:00
cgd 471cfd3fc5 define pcicd, pciattach() here now. 1995-05-23 03:43:58 +00:00
leo 631261a801 Set A2 to PS_STRINGS. 1995-05-21 13:55:16 +00:00
leo a1006d16dd ite_newsize(): Do not reallocate a display when the actual display mode
will be the same. Fixes a nasty bug where ite0 and ite1 share the same
bitmap.
1995-05-21 11:00:13 +00:00
leo c8ca7ae526 Fix UL-handling 1995-05-21 10:56:54 +00:00
leo 13f71a235d Add prototype for grf_get_best_mode() 1995-05-21 10:55:57 +00:00
leo 02dd55abb3 - Add grf_get_best_mode()
- Only update 'real' colormap when actually displaying
- Fix TT-HIGH video mode
1995-05-21 10:54:44 +00:00
leo 555b2f67be Minor fixes. 1995-05-21 10:52:18 +00:00
leo fc0c4cd1b9 Get syscall() code in sync with the rest of the world. 1995-05-21 10:50:41 +00:00
leo de6e84e901 Fixup free_stmem(). 1995-05-21 10:48:53 +00:00
leo d6b3669598 Remove icode, it doesn't seem to be used. 1995-05-21 10:45:59 +00:00
pk 92414dd1c7 Use a different method to discriminate a 82077 from a 82072 (from Chris Torek);
using the NE7CMD_VERSION command is too unreliable.
1995-05-20 20:03:37 +00:00
pk c3d5b45b6e Name fd register structures more appropriately. 1995-05-20 19:59:52 +00:00
pk b4cf60ac8a cpu_swapout() not needed after all. 1995-05-19 06:57:41 +00:00
mycroft 5ea2d5e6a6 Clean up the FPU state more thoroughly on exec. 1995-05-18 18:59:16 +00:00
cgd abdf873225 remove these at paulus's request. There's only one da30 in existence,
and he's planning on taking it out of service.
1995-05-17 08:30:58 +00:00
briggs 0521ad83a0 Make comment fit reality. 1995-05-17 00:45:55 +00:00
briggs 2b47f281fe Some cleanup. 1995-05-17 00:37:33 +00:00
briggs 94ce6105d2 Add configuration for my gateway machine. 1995-05-17 00:33:59 +00:00
briggs a43ca9e742 Nuke cpu_exec and remove extra semicolon on cpu_swapout() panic string
(preparing for more changes in a bit...)
1995-05-17 00:30:16 +00:00
briggs fd807928aa Add a memcpy entry point as at least a temp fix for compiling with a
recent gcc2 snapshot.
1995-05-17 00:28:14 +00:00
briggs 6201783f37 Set A2 to PS_STRINGS in setregs(). 1995-05-17 00:00:42 +00:00
jtc f90f8d10aa Removing -DKERNEL, transition to _KERNEL has been completed 1995-05-16 22:24:17 +00:00
mycroft 783186a896 Put the address of the ps_strings structure in %g1. 1995-05-16 21:16:37 +00:00
chopps 0282985f87 PS_STRINGS in A2. Add fputype, remove cpuspeed. switch to new coredump 1995-05-16 20:59:07 +00:00
pk ed9d5444a2 Really test # of status bytes. 1995-05-16 17:02:00 +00:00
pk 85dbf66a28 Remove redundant copy of sunos_sigreturn(). 1995-05-16 16:06:48 +00:00
pk 39a8c80c65 Prototype internal function. 1995-05-16 15:28:01 +00:00
mycroft f178e0996d Sync these. 1995-05-16 14:58:44 +00:00
mycroft 4b15d144ec Put the address of the ps_strings structure in A2. 1995-05-16 14:34:19 +00:00
mycroft 565b3ad195 Put the address of the ps_strings structure in %ebx. 1995-05-16 14:30:47 +00:00
phil 29db7c74b1 Changes from Matthias Pfaller: lpt driver changes, clock code similar
to i386, interrupts from static table to dynamic table, other small
fixes (locore.s byte operates -> double operands ...)
1995-05-16 07:30:30 +00:00
leo 640101f0f8 - Remove double mapping of kernel stack
- Change to new coredump format
1995-05-14 19:09:10 +00:00
leo b78d405c36 Don't mess with SCU on the Falcon. 1995-05-14 15:55:51 +00:00
leo 8360740fdb Change of function params for Falcon SCSI. 1995-05-14 15:47:17 +00:00
leo 84c03e6058 - Remove race condition from DMA interrupt handler
- Add function to get current DMA address for Falcon SCSI.
1995-05-14 15:46:17 +00:00
leo 571c7445e0 Remove double mapping of stack. 1995-05-14 15:44:19 +00:00
leo 1029a77f13 Function proto added. 1995-05-14 15:29:18 +00:00
leo cf6323d778 Fixup comment. 1995-05-14 15:27:51 +00:00
leo e2b044e52f - Remove double mapping of stack
- Change to new coredump format
1995-05-14 15:26:55 +00:00
leo 72472e35b1 Remove double mapping of stack 1995-05-14 15:24:35 +00:00
leo 92d594935c - Remove double mapping of stack
- Change to new coredump format
1995-05-14 15:23:30 +00:00
leo d3e5e6574b Fix double mapping of stack. 1995-05-14 15:20:22 +00:00
chopps d25d16dd79 fix ITEIOC[GS]BELL and ITEIOCGREPT cases in iteioctl() 1995-05-14 14:26:00 +00:00