Commit Graph

162 Commits

Author SHA1 Message Date
chuck
9fe4f7c83a kill "options GENERIC" by replacing it with Theo's sparc code. 1996-05-26 20:47:39 +00:00
chuck
8f19c1d045 fix cngetc() typeo. 1996-05-26 20:42:58 +00:00
chuck
d3ca12ac2a import rd_root from sun3 1996-05-20 01:17:31 +00:00
chuck
39e3bbc016 add ram-disk. clean. 1996-05-20 01:16:50 +00:00
chuck
8a07a09d00 add "rd" ram-disk config 1996-05-20 01:15:45 +00:00
chuck
914ca91332 if booted from sboot, stay in it.
if booted from the bug, don't enter sboot.
1996-05-20 00:40:10 +00:00
chuck
30cec539a4 preserve sboot status 1996-05-19 21:07:21 +00:00
chuck
208aa439bf move rb_nosym/rb_sboot here 1996-05-19 20:08:55 +00:00
chuck
31a61aca69 minor clean 1996-05-19 20:08:15 +00:00
chuck
b416b21a6c update for new (SRT0/bugcrt) calling convention 1996-05-19 19:58:41 +00:00
chuck
e086852f0c minor clean up 1996-05-19 19:51:24 +00:00
chuck
6d472208c0 bump 1996-05-17 21:20:11 +00:00
chuck
056791c7fa sync with openbsd. [includes if_ie made to work on 16x by Theo de Raadt] 1996-05-17 21:18:07 +00:00
chuck
bd3c8260d8 sync with openbsd. [includes if_ie made to work on 16x by Theo de Raadt] 1996-05-17 21:17:58 +00:00
chuck
3df32569f8 Makefile: update from OpenBSD
boot.c: update from sun3 port, with changes for my new boot code put in.
conf.c: config from openbsd, by Theo de Raadt
dev_net.c: update from openbsd (standard dev_net with changes from theo)
dev_net.h: proto from openbsd
1996-05-17 21:08:25 +00:00
chuck
d14981d7b7 bugdev.c: from Dale Rahn (bug device access)
exec_mvme.c: from sun3 port, adapted by me.   I also fixed a bug that
	prevented ZMAGIC kernels from running.
libsa.h: new file by me
parse_args.c: by Theo de Raadt from OpenBSD with slight revisions from by me
	to make it fit the new format.
1996-05-17 20:59:53 +00:00
chuck
23ee5c7500 replace with code to use libbug rather than access directly 1996-05-17 20:54:50 +00:00
chuck
86a71fe9e7 complete revise of sun3 SRT0 so that it works with bugcrt by me. 1996-05-17 20:53:49 +00:00
chuck
3430ad6211 update for my reorg 1996-05-17 20:52:37 +00:00
chuck
d2da5a2153 remove files no longer needed due to reorg. 1996-05-17 20:49:23 +00:00
chuck
36079d8909 update for new boot stuff 1996-05-17 20:45:48 +00:00
chuck
75dfdfdab4 bootxx: import from sun3 port, adapt to mvme68k by me. 1996-05-17 20:11:31 +00:00
chuck
ccc9ad0d6c fix comment 1996-05-17 20:07:36 +00:00
chuck
62a58e8eaa bootst: from Dale Rahn. 1996-05-17 20:06:45 +00:00
chuck
008b8c0664 bootsd: import from sun3 port, adjust for mvme68k port by me 1996-05-17 20:04:46 +00:00
chuck
bee8cda103 installboot: from sun ports 1996-05-17 20:00:52 +00:00
chuck
671b4023a4 wrtvid by Dale Rahn. 1996-05-17 19:58:53 +00:00
chuck
89a5edba69 prtvid (print out a VID block). by Dale Rahn. 1996-05-17 19:54:57 +00:00
chuck
94e848e819 update for libbug.h, console I/O 1996-05-17 19:50:10 +00:00
chuck
a48f9896dd fix -I 1996-05-17 19:43:48 +00:00
chuck
71c9b6faad pull in a set of changes I forgot to include in initial version 1996-05-17 19:37:59 +00:00
chuck
eabb97da52 libbug from Dale Rahn. Revisions by Theo de Raadt and myself. 1996-05-17 19:31:46 +00:00
chuck
1bd98e4d83 bugcrt from Dale Rahn. With modifications from myself and Theo de Raadt. 1996-05-17 19:26:43 +00:00
chuck
0b05acfe0a add _kernel_text 1996-05-17 04:38:02 +00:00
thorpej
a9bd225c1c Remove duplicate definitions of the "le" device .. "oops" 1996-05-16 19:00:06 +00:00
chuck
7e8ebd0628 add code so that we can generate a valid disklabel without help from
wrtvid.
1996-05-16 17:59:57 +00:00
chuck
0f68df580b import Theo's prom.h from OpenBSD. includes my recent changes. 1996-05-16 17:55:54 +00:00
chuck
6c21c38077 add some comments to explain what is going on here
also add enough info to enable the kernel to create
a valid disklabel without help from wrtvid.
1996-05-16 17:52:51 +00:00
mycroft
540f9550c0 Make `make depend' work for libraries. 1996-05-11 16:11:30 +00:00
chuck
3482bd961d shift code a bit to move "start" to the front of .text [using openbsd ordering] 1996-05-09 21:09:14 +00:00
thorpej
fe4b70fd58 RCS id police. 1996-05-08 05:55:04 +00:00
chuck
a6ac580ad1 don't assume MAXPARTITIONS is 16. 1996-05-08 01:45:46 +00:00
chuck
3b6dd2f647 change maxpart to 8 to be compat with prev binaries 1996-05-07 23:23:34 +00:00
thorpej
2dea8dc101 Make the MI LANCE driver standalone, and use cfattach to resolve
naming conflicts between bus attachments on ports that can have
multiple instances of the LANCE.

Changed struct ifnet to have a pointer to the softc of the underlying
device and a printable "external name" (name + unit number), thus eliminating
if_name and if_unit.  Updated interface to (*if_watchdog)() and (*if_start)()
to take a struct ifnet *, rather than a unit number.
1996-05-07 01:10:53 +00:00
chuck
b94c366058 change dk_establish() back to void again. 1996-05-01 21:22:55 +00:00
chuck
e305bdb71c switched to MI driver 1996-04-26 19:55:39 +00:00
chuck
08b3f74e0d nuke old isr structure (no longer use) 1996-04-26 19:44:03 +00:00
chuck
81fc59565a cpu.h: add prototypes (from jason)
disklabel.h: new disklabel format (from Dale Rahn)
param.h: new delay stuff (from sun3 port)
vmparam.h: nuke eiomap for new autoconfig (from jason)
z8530var.h: for MI driver (from jason)
1996-04-26 19:40:53 +00:00
chuck
46263136cb "jumbo patch":
- new autoconfig scheme+vme (autoconf.c,clock.c,clockreg.h,
	clockvar.h,vm_machdep.c)
 - new interrupt scheme (isr.c,isr.h,locore.s,machdep.c,vectors.s)
 - switch to MI zs driver (conf.c)
 - new disklabel code, from Dale Rahn <drahn@pacific.urbana.mcd.mot.com>
	(disksubr.c, compatable with theo and dale's openbsd version)
 - new delay() based on sun3 port, using dynamic configuration from
	the sparc port (intergrated by me), calibration moved to startup
	by jason.  (locore.s,machdep.c)
 - clean up: nuke eio space (genassym.c,locore.s,pmap.c,pmap_bootstrap.c),
	nuke STACKCHECK (locore.s), prevent maxuser overflow (pmap.c),

Contributed by Jason R. Thorpe <thorpej@og.org>  (thanks!)
1996-04-26 19:26:25 +00:00
chuck
6d3c0d5c50 remove iio files; replaced by jason's new autoconfig scheme 1996-04-26 19:04:28 +00:00
chuck
7625dd4cb4 remove mainbus.c: never actually used 1996-04-26 19:03:28 +00:00
chuck
d80422cd46 - zs: switch to MI driver
- clock, le, pcc, wdsc, zs: convert to new autoconfig scheme
 - vme: add vme support

Contributed by: Jason R. Thorpe <thorpej@og.org>
1996-04-26 18:59:58 +00:00
chuck
ba1034fd85 - sync with new autoconfig code (iio goes away)
- add support for zs1, vme devices (untested)

Contributed by: Jason R. Thorpe <thorpej@og.org>
1996-04-26 18:47:34 +00:00
chuck
edda199ab0 patch from: Steve Woodford <steve@mctavish.demon.co.uk>
fixes the following problems:
   - Timeout on START/STOP unit command (ie. when spinning up the drive)
     Side effect of this fix is to reduce the busy-wait time in CMD phase.

   - Occasionally, the driver would lose an SBIC interrupt, especially when
     a tape drive was re-selecting on a busy SCSI bus.
1996-04-23 16:32:54 +00:00
christos
78403e6c0c Add a hardware dependent initialization function lehwinit() 1996-04-22 02:25:54 +00:00
chuck
442dec5d53 new driver: SCSI for VME147
contributed by: Steve Woodford <steve@mctavish.demon.co.uk>

	this driver is based on the amiga sbic/33C93 driver.   Steve has
	cleaned it up and fixed lots of bugs.    Note that the original driver
	used features which require at least a WD33C93A (the vme147 has the
	original WD33C93 chip <no 'A' suffix>).   Steve has also written
	the DMA routines for the 147 to get things really going.   Hardware
	scatter-gather DMA and sync. SCSI are not supported (yet).   tested
	on several disk drives and a tape drive.   CD-ROM untested, but
	should work.
1996-04-18 18:30:49 +00:00
chuck
da32bd7fed add wdsc, enable FFS, move le 1996-04-18 18:14:32 +00:00
chuck
f56be1680c add wdsc device 1996-04-18 18:07:58 +00:00
chuck
a574a3a423 add PCC_ICLEAR 1996-04-18 18:07:08 +00:00
chuck
94b120dfa8 add a "delay" function.
XXX: assumes vme147 speed.   needs to be fixed and sync'd with DELAY.
	[will work with jason/hp300 to fix it properly]
1996-04-18 18:06:30 +00:00
chuck
dbc3478277 establish a dk_establish() function. 1996-04-18 17:43:04 +00:00
cgd
d7d306aeb7 change LANCE copy & zero functions' names to start with amd7990_, and
remove their 'integrate' (usually defined to be 'static') keywords.
when lance drivers are split up by attachment, more than one file will
reference the copy/zero functions (i.e. not just the file that pulls in
am7990.c... and eventually inclusion of am7990.c should go away entirely).
1996-04-18 00:25:11 +00:00
chuck
4d91dc7c18 pull in ieeefp.h from m68k common area 1996-04-12 18:38:00 +00:00
chuck
c7a59b578d sync with sun3 version 1996-04-12 18:35:40 +00:00
chuck
4420159d4c fix warning from gcc 1996-04-12 18:33:59 +00:00
cgd
83f9bdc359 update for the fact that config_found() and config_rootfound() now
return pointers.  (Check vs. NULL, rather than just boolean tests.)
1996-04-04 06:25:00 +00:00
chuck
9ee06a9bd1 change vunmapbuf to void function to match MI code 1996-04-03 20:42:55 +00:00
chuck
6fa7f71c9c fix christos' type-o: s/dec_decl/dev_decl/ on line 115. 1996-04-03 20:35:25 +00:00
thorpej
5c98887b14 Fix typo. 1996-03-19 22:56:53 +00:00
thorpej
82d914d090 New device attachment scheme:
- split softc size and match/attach out from cfdriver into
	  a new struct cfattach.

	- new "attach" directive for files.*.  May specify the name of
	  the cfattach structure, so that devices may be easily attached
	  to parents with different autoconfiguration semantics.
1996-03-17 01:26:49 +00:00
christos
ab0e60a42f fdopen -> filedescopen 1996-03-14 21:20:59 +00:00
cgd
18ec26aa21 add _MACHINE and _MACHINE_ARCH, which are like MACHINE and MACHINE_ARCH,
execpt without quotes.  meant to be __CONCAT()ted for easy #includes
of machine-dependent headers for MI code (e.g. for the MI ISA/EISA/PCI/TC
bus code).
1996-03-04 05:04:10 +00:00
cgd
1c5d7babe5 Clean up tabbing/spacing in defns of MACHINE, MACHINE_ARCH, and MID_MACHINE. 1996-03-01 23:30:08 +00:00
cgd
3d67685d36 Do not build vnode_if.[ch] for each kernel. Build them once, like the
various syscall sources/headers, and just compile them.  From PR 2142, OK'd
by mycroft.
1996-02-29 20:54:58 +00:00
mycroft
2ce52ae489 Define build programs with ?=', so they can be overridden with makeoptions'. 1996-02-26 02:53:20 +00:00
gwr
946696f064 Add m68k/db_memrw.c 1996-02-22 23:35:07 +00:00
gwr
9d2186505e Use vprintf where it was intended, and use __dead 1996-02-13 18:06:10 +00:00
mycroft
753fe3a25a Fix mkdep problems due to missing flags. 1996-02-09 02:21:13 +00:00
christos
2c8314f73c vm prototype changes 1996-02-05 02:06:38 +00:00
mycroft
fe18cd4ae7 Make sure to pull in the MI code. 1996-02-03 06:38:27 +00:00
mycroft
2f74d151b9 Don't need unistd.h. 1996-02-03 05:45:11 +00:00
mycroft
5bc076e17e Use `-traditional-cpp' when building .s and .S files. 1996-02-03 00:43:50 +00:00
mycroft
dcd66e9f4d Clone these, and fix many bugs. 1996-02-02 20:08:17 +00:00
mycroft
9db20bf150 Don't define _KERNEL here. 1996-02-02 19:42:08 +00:00
mycroft
fc9d84fb46 assym.s -> assym.h
(Some ports did this already.)
1996-02-02 02:34:09 +00:00
mycroft
88e512b693 LOCORE -> _LOCORE 1996-02-01 22:28:24 +00:00
jtc
2fce159ff8 Changed name of sigaltstack's ss_base field to ss_sp to match XPG4.2 and
traditional usage.
1996-01-04 22:21:33 +00:00
thorpej
17eb6e2bc1 Move the old-style disk instrumentation "structures" to a central location
(sys/kern/subr_disk.c) and note that they should/will be deperecated.
1995-12-28 19:16:31 +00:00
mycroft
ce000f04ef Remove deprecated cpu_setstack(). 1995-12-21 05:01:32 +00:00
thorpej
de6dad9228 Move bcopy/ovbcopy/memcpy into m68/m68k/copy.s, which is used by all
m68k ports already anyhow.  No use in keeping 6 identical copies of this
function around.
1995-12-11 02:37:55 +00:00
mycroft
0267460c6c Use the MI LANCE code. 1995-12-11 01:59:17 +00:00
mycroft
0e0ac5ed68 cpu_fork() now returns void. 1995-12-09 04:37:23 +00:00
jtc
0cd793449e merge in changes from 1.1 release branch 1995-11-30 00:56:23 +00:00
chuck
54606ca765 sync with sun3 version and libsa changes 1995-10-12 22:48:20 +00:00
chuck
bb184934d0 sync with sun3 version and libsa changes 1995-10-12 20:39:49 +00:00
chuck
3cbeee1f5b changed sysarch() to sys_sysarch() 1995-10-12 20:03:39 +00:00
chuck
ab55ab9c8c changed blkclr to bzero 1995-10-12 20:02:19 +00:00
chuck
31552196e9 remove bzero/strlen/bcmp as they are now in libkern 1995-10-12 20:00:40 +00:00
chuck
6323b1197a changed SUNOS_SYS_sunos_sigreturn to SUNOS_SYS_sigreturn. 1995-10-11 23:52:35 +00:00
mycroft
245f292fed Prefix names of system call implementation functions with `sys_'. 1995-10-07 06:25:19 +00:00