Commit Graph

566 Commits

Author SHA1 Message Date
briggs 037951ec4f Remove private delay() and clean up some odd delay times that we were
using...
1994-12-03 14:16:58 +00:00
briggs f04205a867 Implement a real delay() that at least approximates a usec delay. 1994-12-03 14:03:23 +00:00
briggs c8d7d0f2f5 Re-arrange order of a comparison and compensate for change in device
structure locations.
1994-11-30 02:42:47 +00:00
briggs e054795fb3 "../scsi/*.h" -> <scsi/*.h> 1994-11-29 03:43:52 +00:00
briggs 81828a6a38 Boolean goof. (True) 1994-11-29 03:38:48 +00:00
briggs a9262a3090 SUN_SYS_sigreturn -> SUNOS_SYS_sigreturn 1994-11-29 03:37:37 +00:00
briggs c02010b599 Add a dk_establish null routine. Clean up some whitespace. Needs a
real overhaul.
1994-11-28 04:43:51 +00:00
briggs 9f994613ae compat/sunos/sun_* -> compat/sunos/sunos_* 1994-11-27 22:10:28 +00:00
briggs 82a9bf633f sun_syscall.h -> sunos_syscall.h 1994-11-27 21:47:36 +00:00
briggs 3938bad3ff Attempt to use sys/scsi. 1994-11-27 20:07:38 +00:00
briggs 0656455667 Experimental method of getting a scsi unit # from scsi target. 1994-11-27 19:59:09 +00:00
briggs 38952df227 Re-enable NFSCLIENT 1994-11-27 19:53:10 +00:00
christos 40abc70ce2 changed open prototype 1994-11-14 05:55:23 +00:00
briggs 492011ffd7 Modify the serial port initialization slightly so it works on the IIsi. 1994-11-03 16:15:27 +00:00
briggs fc3961284c Raise MCLBYTES to 2048. 1994-11-01 03:53:28 +00:00
briggs 6db067c176 sendsig() and sun_sendsig() code to u_long. 1994-10-31 23:47:23 +00:00
briggs 65c76f071d Fixup a couple of missed fixes when updating to hp300/amiga
interpretation of mmutype.  Thanks to Lawrence Kesteloot for
catching the first of these.
1994-10-31 01:15:53 +00:00
briggs 815a0b9aca Fix a buglet in computation of fbsize. Pointed out by monroe@cs.pdx.edu. 1994-10-30 13:34:31 +00:00
briggs c184327c57 Make this work. Kludge from grantham. 1994-10-28 19:55:37 +00:00
briggs a43a6e9bdf Use u_int32_t and friends. Comment a tiny bit... 1994-10-26 18:05:48 +00:00
cgd 4fdae7a0ae new RCS ID format. 1994-10-26 08:45:48 +00:00
briggs a509897f98 Before I forget... 1994-10-20 21:21:02 +00:00
cgd d4bf824ec2 update for new syscall args description mechanism 1994-10-20 05:17:21 +00:00
cgd f501e4e128 make <stdarg.h> a symlink, and clean up ports' stdarg.h and varargs.h files. 1994-10-15 04:57:29 +00:00
cgd 49c34d3337 move arch dependence to archs. clean up a bit. deal with weird MAXPARTITONS. 1994-10-14 18:26:22 +00:00
briggs 93b8f0f095 Change strategy slightly so that serial console is enabled if internal
console is not--regardless of the value of the boot-time flag.
Suggested by a question from bit@gnu.ai.mit.edu (jim howard - bit.map).
1994-09-30 00:52:44 +00:00
briggs 49e7735666 Actually implement serial boot (console) echo (minor change to ite.c).
Remove some old junk in ser.c and implement serial console and serial
boot echo (if serial console's enabled, clear echo).
1994-09-29 03:33:13 +00:00
jtc 23ece5babc asm -> __asm (PR #463). 1994-09-16 02:39:36 +00:00
briggs 24de5a9668 Nuke a CVS Log entry. Attribute introspection to Brad. 1994-09-12 21:56:36 +00:00
briggs 400d187c01 Remove need for "bounds.h." Brad can still use it if he wants ;-) 1994-09-12 03:54:05 +00:00
briggs 9e4e942a2f Give vnd a major number. Didn't work on my last attempt with it, but
this will be needed, anyway.
1994-09-12 03:53:03 +00:00
briggs 5432aef717 Fix a scrolling bug when we have more than 64k to scroll. 1994-09-12 03:38:30 +00:00
briggs 9dc2628062 Snarf chopps changes for bus/addrerr handling. 1994-09-12 03:37:33 +00:00
briggs e696d464eb Use vn.h instead of forcing NVN to 0. 1994-08-30 11:04:17 +00:00
briggs cdcb12bf54 Add USPACE. 1994-08-23 20:48:09 +00:00
lkestel e0b83d37fb Added Sysseg as argument to remap_MMU() so it can map the ROMs. 1994-08-08 00:14:42 +00:00
lkestel ddd8267edb Some machines (e.g., IIcx) have '030 and map all of memory (4 gigs) with
the MMU.  Added sanity checking in the get_mapping() call to catch this
and stop at the end of RAM.  Now available RAM is min of booter-specified
amount and what the MMU maps.

Also added remap_rom() ifdef'ed out which uses early termination pte's
to map 8 megs of ROM.
1994-08-08 00:11:40 +00:00
lkestel acb0c1ec5f Added ifdef'ed out code to map the ROM in pmap_init(). Might be enabled
later if we decide to use the ROM's for anything.
1994-08-08 00:08:47 +00:00
mycroft 558c00c001 Fix spelling of `STEREO'. 1994-08-05 22:56:19 +00:00
briggs 183f4c6128 Lots of cleanup. Add functions for serial console--just stubs for now.
Fix initialization (for good this time?).
Little things.
1994-08-05 01:27:58 +00:00
grantham 703df009b8 Multiply GMTBIAS by 60; it's in minutes, time is in seconds. 1994-08-03 06:23:10 +00:00
briggs d9e2b087ef Clean up a bit. Move ite to 11, generic console to 0. Add lkm stuff
to at least give it a prayer of working...
1994-08-03 02:53:36 +00:00
briggs 08d96f103f Nuke holdovers from old HP300 console code. Get rid of any reference
to serial_boot_echo stuff here.
1994-08-02 17:55:24 +00:00
grantham aa804576eb To get Greenwich Mean Time, *subtract* the GMTBIAS from our time,
passed in from Booter.  (Among its many features, MacBSD provides
time travel.)
1994-08-02 16:39:57 +00:00
lkestel 6f4140797f We used to disable the MMU before jumping to the ROM routine to
reset the machine.  This doesn't work on some '030s because maybe
not PA == VA where PC is.  Now if '030, don't disable MMU, just
use tt0 register to map ROM segment transparently.  Also removed
superfluous @ from new get_pte code.
1994-08-01 04:50:03 +00:00
briggs 22c202031c Make this assemble... pte_tmp1 -> pte_tmp and remove ref to
serial_boot_echo.
1994-07-31 19:25:11 +00:00
briggs db27060127 serial_console passed in from booter. 1994-07-31 14:50:27 +00:00
briggs 22a76ec031 Fixup constab. 1994-07-31 14:23:33 +00:00
briggs 60df0b6e97 Add a serial console flag that's passed in from the booter. 1994-07-31 14:03:58 +00:00
lkestel 1c22264669 Make internal video look like a grf device so that desktop and X can use
it.  GRFIOCMAP modifies addr to include the offset into the screen where
the first pixel is.  Not a very clean way to do it -- we should add a
field to grfinfo for offset.
1994-07-31 08:32:47 +00:00
lkestel 46bfdab4f8 Removed two useless variables. (hole_start, hole_end) 1994-07-31 08:28:32 +00:00
lkestel ab2bb871e3 Added support for MACHINE_NONCONTIG for IIsi and IIci machines. Similar
to i386's, but more flexible to handle awkward MacOS maps.  pmap_collect()
is noop'ed out for now.
1994-07-31 08:27:38 +00:00
lkestel a1dd8b3bd3 Added get_physical() to get physical address from logical address according
to MMU; get_mapping() to figure out how RAM and NuBus space is mapped;
remap_kernel() to remap the kernel page tables in case they were split
across memory banks; remap_nubus() to map internal video into NuBus space
where MacOS had it; and remap_MMU() to call the above.
1994-07-31 08:22:31 +00:00
lkestel f81b696a46 Added get_pte() routine to get a pte from a logical address using ptest.
Cleaned up startup code in a big way.  Now calling get_mapping() if
'030 and MMU is on, and post-processing our page tables with remap_MMU().
1994-07-31 08:19:46 +00:00
lkestel f6e6044227 Make GENERIC be MACHINE_NONCONTIG. 1994-07-31 07:31:45 +00:00
lkestel 82dcea7759 Fixed bug with bcopy()'ing more than 65535 bytes; initialize d_ttys and cn_tp
on itecnprobe(); other minor bug and warning fixes.
1994-07-31 06:45:50 +00:00
lkestel faf8faf32f Added a few macros for keys; cleaned up; only define key array
ifdef KEYBOARD_ARRAY, else just declare it.
1994-07-31 06:33:41 +00:00
lkestel ce200f2f92 Different pa_index() ifdef MACHINE_NONCONTIG. 1994-07-31 06:26:34 +00:00
lkestel f3c8dbbd87 Moved adbsys.h grfioctl.h and keyboard.h to include to make desktop
and X compile more cleanly.
1994-07-30 04:21:58 +00:00
mycroft 639939abca Clean up deleted files. 1994-07-30 04:21:48 +00:00
lkestel 774ef66058 Moved adbsys.h grfioctl.h and keyboard.h to include to make desktop
and X compile more cleanly.
1994-07-30 04:21:42 +00:00
grantham cf1aabfe57 Use values from Booter to initialize time correctly for machines
without readable PRAM.  (IIvx users should be pleased.)
1994-07-29 00:52:18 +00:00
briggs 19eaee7cf2 if DDB -> ifdef DDB to be consistent at suggestion from Steve Allen
(wormey@eskimo.com).
Also cleaned up the comments a bit for consinit().
1994-07-25 00:34:30 +00:00
mycroft 1b935ff541 Clean up deleted files. 1994-07-24 01:23:20 +00:00
lkestel a185489f80 Fixed a few bugs in the key-repeat function and disabled key-repeat
when /dev/adb is closed to avoid infinite repeat problem.  Brad claims
that he's got this solved in his version...
1994-07-21 06:36:51 +00:00
lkestel 020b962ae6 Added vt100 emulation and sped up text writing, scrolling, etc. 1994-07-21 06:35:49 +00:00
briggs f954a7b0dd Make "unknown ioctl" printf ifdef DEBUG and take out an extra comma from
the format string.
1994-07-21 03:32:07 +00:00
briggs 47b43066ee Take -nostdinc out of INCLUDES so we can get nlist.h and a.out.h for DDB. 1994-07-21 01:49:08 +00:00
briggs cc7e76a9a5 Put in a warning message that the driver is non-working and checkpoint
with a little bit more debugging stuffage.
1994-07-21 01:33:29 +00:00
briggs 1730b405b5 Make ALLEN a copy of GENERIC. Disable FPSP in GENERIC. 1994-07-21 01:19:41 +00:00
briggs 2ff67c7db9 Add asc as a device. Format a tad. 1994-07-21 01:00:58 +00:00
briggs c35fccac8b Add asc0. 1994-07-21 00:59:56 +00:00
briggs fe27023f3b Put FPSP in SYSTEM_OBJS (missed this earlier, apparently, twice). 1994-07-21 00:58:28 +00:00
briggs 46cebf15df Enable DDB, CD9660, NULLFS. Add bpfilter. Slight cleanup. 1994-07-21 00:57:33 +00:00
briggs 3a72d09550 No longer need/use root_scsi_id. Change audio to asc in probe. 1994-07-21 00:55:49 +00:00
briggs bd55a39b1d Add ASCBase to offsets initialized in setmachdep(). Change comment for
cpu_model (slightly).
1994-07-21 00:55:07 +00:00
briggs db146ec64c Separate init from serattach and make more machine independent by
calculating speed during init (different models of macs feed SCC with
different clocks).
1994-07-21 00:52:47 +00:00
briggs 60dc2edc69 Make this into more of a device so it can be probed and attached. Nuke
RCS/CVS Log.  Make ASCBase an offset instead of an absolute.
1994-07-21 00:44:00 +00:00
briggs 8fc0b8b26e Add a field for cpu-dependent structure to flag if SONIC is on-board. 1994-07-21 00:33:54 +00:00
briggs 5ec3485979 Be somewhat better at machine dependence, clean up a hair, and get rid
of addupc.
1994-07-10 16:58:05 +00:00
briggs f8d560f187 Be somewhat better at machine dependence. 1994-07-10 16:55:53 +00:00
briggs cacf1a1b0a Cleanup a printf, raise the probe timeout, and notice if the probe
does time out.
1994-07-09 17:21:13 +00:00
briggs a933ab5ed1 Some cleanup and get rid of some compiler warnings. Needs more work. 1994-07-09 07:28:22 +00:00
briggs 2ff5938343 Minor hacks to get this to compile for now. ite.c now uses the proper
consdev structure to keep itself from crashing...
1994-07-09 06:49:34 +00:00
briggs 6cd891192f Move a function here from the old console.c. 1994-07-09 06:38:55 +00:00
briggs 3266a82b9f Switch to using sys/dev/cons.? instead of old hp-derived generic console. 1994-07-09 06:36:11 +00:00
briggs 687c7563fe Comment out macserinit and macinit until we can replace them. They're
for debugging before we have an initialized console, primarily.
1994-07-09 06:33:46 +00:00
briggs 0979a3d7ef Add some macros for new adb stuff from Brad Grantham. 1994-07-09 06:32:12 +00:00
briggs d3bc60c2c5 Add ite0. 1994-07-09 06:28:16 +00:00
briggs eaca1c00bb Rearrange to alphabetize some. Nuke old console, add new console and
ADB code from Lawrence and Brad.
1994-07-09 06:27:53 +00:00
briggs 2bb2aa0788 Nuke pseudo-device con. 1994-07-09 06:26:24 +00:00
briggs 4b3d50f976 Oops... Forgot to check in w/ FPSP support. 1994-07-08 11:47:10 +00:00
briggs 8afa3a3b98 Just a checkpoint. Still not close to working, but TUR works--more docs
coming today...
1994-07-08 11:38:48 +00:00
briggs c99467f6d1 Add a constant for masking off the scsi phase from the status register. 1994-07-08 11:36:59 +00:00
lkestel e934f668f1 autoconf.c: added ite.
conf.c: added ite and adb.
cons.c: replaced mac* functions with itecn* functions.
machdep.c: ditto.
1994-07-08 07:57:48 +00:00
lkestel 29f12f9bc6 6x10.h: shifted font over by two pixels.
keyboard.h: added constants for commonly used keys and reformatted
  array so that gcc would be happy.
adbsys.c: new adb system.
bounds.h: bound-checking macros.
ite.c: new built-in mini-console.
8x14.h: no longer used by built-in console.
adb.c: replaced by adbsys.c
1994-07-08 07:55:46 +00:00
briggs ebefb5b706 Whoops. Forgot to make rei globl in this copy. 1994-07-07 01:46:44 +00:00
briggs 938fc1f67d Apparently the registers for the NCR 53c96 in the mac are laid out
the same as they arefor the 5380--15 bytes of padding between each
reg.  Define a structure for that here, now.
1994-07-07 00:29:37 +00:00
briggs f310747381 Cast vmmap in call to pmap_enter() to satisfy compiler. 1994-07-07 00:28:14 +00:00
briggs 9e2e924213 Use newer fpsp code. Nuke lots of glue in locore.s, change vectors
directly if FPSP and move back to HP numbering for mmutype which is
used as cputype for FPSP.
1994-07-07 00:27:12 +00:00
briggs 497a776ba6 Add MMU constants. 1994-07-07 00:25:10 +00:00
briggs b144a7a279 Revert back to old HP MMU defines so we can use fpsp w/o changes. 1994-07-07 00:24:10 +00:00
briggs 782af154d0 Need the extra byte in the temp buffer to avoid overrun in scrollup on
wide screens.
1994-07-05 03:48:56 +00:00
briggs d0f0219076 Don't blow up on huge screens. 1994-07-04 23:05:34 +00:00
briggs ec394b297c A few things that I think are probably bogus, but I'm getting a lot
farther, now...
1994-07-04 22:44:24 +00:00
briggs 405051c0f8 Make sure TT's are disabled along with the MMU.
TBIA for paranoia's sake.
1994-07-04 22:41:47 +00:00
briggs ae562c7ee4 ifdef out FPSP support to avoid having to use fpspnull.
Fix a bogon.
1994-07-03 11:57:56 +00:00
mycroft 3410def915 Clean up deleted files. 1994-07-03 04:27:17 +00:00
briggs c2bd0b444a Scam from amiga and update a little for the current tree. May need some
more work.
1994-07-02 13:11:10 +00:00
briggs 04ea0266b3 Getting a lot closer. Took out a lot of debugging output. 1994-07-02 13:04:49 +00:00
briggs 2e3a0bfade Get rid of exec_aout.h inclusion. 1994-07-02 13:04:03 +00:00
briggs 712c344e9d Turn off MMU early on '040 machines. Put gray_bars around this in case
it hangs on some machine.  (Q700 is mapped PA==LA in MacOS--at least in
this version of the MacOS).
1994-07-02 13:03:13 +00:00
briggs e24c7f4fc9 The NCR 5380 driver is now called ncrscsi instead of ncr. 1994-07-02 13:01:32 +00:00
briggs ebdc074703 Reset sccaddr if we're resetting the video address.
Nuke some debugging output.
1994-07-02 13:00:37 +00:00
briggs cefec1332a Still not working, but getting closer. Lots of debugging stuff left in
here.
1994-06-29 04:59:05 +00:00
briggs cd7957a201 Only do some of these mods on the first pass. 1994-06-29 04:57:43 +00:00
briggs 984ca4e84d Oops. w/ 4k pages, PTSIZE is larger. 1994-06-29 04:55:57 +00:00
briggs 3f62caebc0 MIN->min. Should be using sys/scsi stuff instead. 1994-06-26 13:26:05 +00:00
briggs ef1af9fc59 Cleanup a lot and bring in line w/ 4.4-lite. 1994-06-26 13:25:16 +00:00
briggs f5c81ba898 Add md_coredump. 1994-06-26 13:24:44 +00:00
briggs 4d315aa38f Fix warnings... 1994-06-26 13:23:46 +00:00
briggs a9cda66bb3 PG_CC -> PG_CCB 1994-06-26 13:23:01 +00:00
briggs 96f45a2901 First pass at a header file for the NCR 53C96 driver (still under
construction).
1994-06-26 13:22:32 +00:00
briggs e606973964 Cleanup some. Deprecate a few defines that are no longer needed. 1994-06-26 13:21:49 +00:00
briggs d073018ba1 Checkpoint. Preliminary code for bootstrapping on the 68040 macs. 1994-06-26 13:20:19 +00:00
briggs 229224d1fc Huge, gigantic changes... Including:
68040 support--some by me, much from Amiga...
some cleanup
The hp300 rei
A number of frame-related fixes.  Finally all found, I think, thanks to
the sharp eyes/mind of Brad Grantham, Lawrence Kesteloot, and Steve Allen.

The upshot is that we're finally booting again on the machines that
used to work.
1994-06-26 13:19:18 +00:00
briggs 1d1d8e0529 Add probe for new scsi driver to top level of configuration. 1994-06-26 13:14:54 +00:00
briggs 5e272bc697 Added new constants. Changed some old. Overhauled includes a bit. 1994-06-26 13:13:54 +00:00
briggs 4c4e964e6f Checkpoint. Will change some with new keyboard/mouse support is added
soon.  Still lots of warnings...
Added functions for 4.4-lite.
1994-06-26 13:12:41 +00:00
briggs f30d68f34f Lots of changes/cleanup. Note some additions for 4.4-lite and some
more functionality for setmachdep.  Grantham suggests that maybe
function tables or some such would be a better way to handle some of
these machine-dependent function--I concur that that would be TRT.
1994-06-26 13:11:11 +00:00
briggs bcebe4a2be MIN/MAX -> min/max 1994-06-26 13:08:25 +00:00
briggs dc27d4b943 mmap -> pmap_mmap.
extiobase -> NuBusBase
intiobase -> IOBase
some other minor changes.
1994-06-26 13:07:48 +00:00
briggs 163c2a1648 ufs_mountroot -> ffs_mountroot 1994-06-26 13:06:08 +00:00
briggs e20fd9492d Massive changes--largely culled from Amiga version. 1994-06-26 13:05:33 +00:00
briggs c1d16764ed Change some constants to better values/don't use constants as much. 1994-06-26 13:04:40 +00:00
briggs 5f17aeeff4 Update for 4.4-lite. 1994-06-26 13:03:42 +00:00
briggs 4ade6821f7 Minor mods. Get rid of constants, or update to use a better default
value.
1994-06-26 13:02:41 +00:00
briggs a71a746946 MIN -> min. This needs a lot of work. 1994-06-26 13:01:24 +00:00
briggs 03d286dddc Add some support for the '040 macs which use a different scsi chip. The
scsi96 driver is just a skeleton at the moment.
1994-06-26 13:00:32 +00:00
briggs 03095bbdd6 Don't assume NuBus is at NBBASE. We might remap it. 1994-06-26 12:59:19 +00:00
briggs bc8e4f3bb2 This should probably be deprecated--minor slash job. 1994-06-26 12:58:13 +00:00
briggs f556898e64 Change some default constants--might be overridden during boot, but
correct for MacII-class.
1994-06-26 12:57:27 +00:00
briggs 4d47d6a194 Let's not hard-code constants, OK? 1994-06-26 12:56:26 +00:00
briggs 4052db0a25 Erf. Forgot to put mac68k_init.c in alphabetically. 1994-06-26 12:55:32 +00:00
briggs 8c801bb064 Add mac68k_init.c and scsi96.c for 68040 macs and configure them. Not
much uses them, yet, but also added the MC68030 and MC68040 options.
1994-06-26 12:53:36 +00:00
briggs cacbca4756 Checkpoint. GENERIC has some things disabled. Makefile updated for
vnode_if and some cleanup.  copy.s added to files.
1994-06-25 04:58:01 +00:00
briggs 1d8170c29b Copied from Amiga. Just include m68k/profile.h. 1994-05-23 03:54:52 +00:00
briggs fbc2a6679b Get things to compile with latest changes. 1994-05-06 17:39:19 +00:00
briggs 397e0acc8d Missed some warnings... 1994-05-06 17:38:38 +00:00
briggs c22c80abac Clean up some warnings, mainly w/ timeout(). 1994-05-06 03:34:53 +00:00
briggs 83e8ab7114 Don't even pay lip service to HPUXCOMPAT, now COMPAT_HPUX. 1994-05-04 05:25:41 +00:00
briggs 5425d74562 Make external definition for cpu040.
trap.c: Fix dumb (but compilable and linkable) typo.
1994-04-22 12:11:16 +00:00
briggs 8f39772f16 Make external definition for cpu040. 1994-04-22 12:10:36 +00:00
briggs f531170611 Add '040 stuff from Amiga.
Modified TBIA and friends which were all basically flushing everything
to satisfy year-old paranoia.
1994-04-21 23:34:17 +00:00
briggs 54697fa4bc Almost a copy from Amiga. 1994-04-21 23:32:43 +00:00
briggs c731281873 '040 changes from Amiga. 1994-04-21 23:30:45 +00:00
briggs c0a4759ca8 Add NETISR_ARP from hp300
Add some basic, preliminary stuff for Q700 support.
1994-04-21 23:29:59 +00:00
briggs a5750451cb Include cop.
Add '040 stuff from Amiga.
1994-04-21 23:25:41 +00:00
briggs a48357a8fb Clean up a good bit. Add a few constants for '040. 1994-04-21 23:22:16 +00:00
briggs 1eb8032417 Dump into debugger if DDB and we get an odd coprocessor instruction. 1994-04-21 23:21:19 +00:00
briggs e12ec2b7de '040 changes from Amiga.
Protect against multiple inclusion.
Swap arguments in struct clockframe.
1994-04-21 23:18:55 +00:00
briggs 16e14ee983 '040 changes from Amiga.
Protect against multiple inclusion.
1994-04-21 23:17:15 +00:00
briggs 7b7dcf1c14 '040 changes from Amiga. 1994-04-21 23:16:15 +00:00
briggs c563009035 Add '040 stuff from Amiga pte.h.
Also protect against multiple inclusion.
1994-04-21 23:15:32 +00:00
briggs 6d70a3f064 Add fpsp option. 1994-04-21 23:12:44 +00:00
briggs 7f099e5940 Avail mem comes from elsewhere, now. 1994-04-18 03:03:05 +00:00
briggs e0e7db6d14 Include cop.
Nuke vm_statistics.h
Don't try to use PAGE_SIZE in pmap_bootstrap.  It's now a reference
to a variable that won't be set until vm_set_page_size() is called
in vm_mem_init().
1994-04-18 03:02:16 +00:00
briggs 163a3bce81 Include cop.
Nuke vm_statistics.h
1994-04-18 02:59:16 +00:00
briggs c4ff57c8b1 Get rid of some constants that we don't need. 1994-04-18 02:58:39 +00:00
briggs 36ec20b2e2 Add COMPAT_09 1994-04-15 01:44:03 +00:00
briggs 72eff49c03 Don't define DEBUG by default. 1994-04-06 03:10:13 +00:00
briggs d04160dd34 Some cleanup--largely from amiga/trap.c. "Do" __syscall... 1994-04-06 02:59:52 +00:00
briggs 31d0809898 Bug pointed out by chopps (thanks!)
We were also lacking another copy in cpu_fork() for the struct mdproc.
1994-04-06 02:55:54 +00:00
briggs 7d99e03949 Clean out some old printf()s and get rid of MAP_FILE reference. 1994-04-05 01:30:28 +00:00
mycroft fbedcabada Clean up deleted files. 1994-04-05 01:28:06 +00:00
lkestel cd701f50a3 Fixed a few major bugs. add_nubus_intr() was getting the wrong address,
and bcopy and bzero were being used.  The latter use longs to copy/zero,
and some ethernet cards can't handle longs.  I've added bbcopy and bbzero
as a temporary hack, but these should later be added to locore and maybe
changed to use shorts.  Still doesn't work: I can now get an interrupt on
the first transmit, but further transmits don't generate more interrupts.
1994-03-20 03:03:26 +00:00
briggs ffad885639 Small mods. Needs lots of cleanup.
Added one change to make sure we get symbols in DDB.
1994-03-20 00:26:21 +00:00
briggs 2412bfd803 Changes to allow kernel debugger symbols. 1994-03-20 00:16:07 +00:00
briggs c0d5b28126 Goof. Missed some mods in the changes to config.new a long time ago.
Thanks go to kesteloo@cs.unc.edu (Lawrence Kesteloot) for finding this.
1994-03-20 00:14:16 +00:00
cgd 3df116ff20 add comment for consistency. 1994-03-14 02:11:09 +00:00
lkestel da9f3f0aeb Added -I$S/arch, per amiga port. (Used by db_disasm.c.) 1994-03-13 22:27:06 +00:00
briggs e84113894c Nuke MAC2... Doesn't need to be here. 1994-03-02 00:16:45 +00:00
briggs 10c02ec354 More Dayna separation. 1994-03-01 15:24:25 +00:00
briggs 8505642469 At least recognize different machine types. 1994-03-01 15:22:47 +00:00
briggs 7754e67583 Add a bunch of machine types. Not that we support them, but it's at least
polite to know what you're dealing with.
1994-03-01 15:22:08 +00:00
briggs b208f831a7 Get rid of some compiler warnings. 1994-03-01 15:21:21 +00:00
briggs 79d28b3a47 Add COMPAT_SUNOS--it seems to work. 1994-03-01 15:20:37 +00:00
briggs 4ef4d51787 Include cop. Also change a bunch of printfs to PRINTF() and define
PRINTF() to nothing.
1994-02-27 16:50:31 +00:00
briggs 034c4cb56e Disable SCSIDEBUG and make COMPAT_NOMID an option (defined). 1994-02-27 16:48:33 +00:00
briggs 4474958dd0 Add LCII machine id. 1994-02-27 16:42:33 +00:00
briggs bedc2847a2 Add MDP_STACKADJ for compat_sunos. 1994-02-27 16:41:41 +00:00
briggs 5026219abb Basic changes for compat_sunos--copied from amiga. 1994-02-27 16:40:38 +00:00
briggs 902fef1bad Add files for compat_sunos. Shouldn't these be in sys/conf/files.newconf? 1994-02-27 16:39:54 +00:00
briggs ad15753d94 Make FPCOPROC an options option and remove it from the Makefile defines.
Also add a configuration that doesn't have it.
1994-02-27 03:44:24 +00:00
briggs 82a0604c37 A little clean-up. 1994-02-27 03:40:26 +00:00
briggs 3a18d3b2a5 Cleaned up the probe a little by actually using data from the decl. ROMs. 1994-02-26 03:01:22 +00:00
briggs bdc66bf703 Add a new configuration for testing NFS. Same options as GENERIC, with
the addition of NFSSERVER and NFSCLIENT.
1994-02-23 04:42:24 +00:00
briggs ce7ad57129 Add Id string and disable NFSSERVER and NFSCLIENT until I can get to
the bottom of some panics I've seen.
1994-02-23 04:41:04 +00:00
briggs bd54362375 Bail out in the probe since it's not safe at the moment (hangs on my
DaynaPort card).  Will fix when I get docs for the card.
1994-02-23 04:39:49 +00:00
briggs ffe153db27 Do a cleaner probe. This still needs lots of work, but will work on
reasonable cards...
1994-02-23 04:38:24 +00:00
briggs c680a85d1d Add fpu.c and alphabetize a bunch. 1994-02-22 01:35:55 +00:00
briggs a59f38907a Enable several more options. 1994-02-22 01:34:31 +00:00
briggs 2064299d52 Numerous changes by lkestel and grantham to match those in machdep.c. 1994-02-22 01:32:26 +00:00
briggs 5a7bb220b3 Numerous changes from grantham and lkestel--including:
* A method to interpret passed environment variables in from the
	  booter.
	* MACHINE_NONCONTIG stuff.
	* Debugging aids.
1994-02-22 01:30:55 +00:00
briggs 3960884078 Changes by lkestel for MACHINE_NONCONTIG. I haven't tested them, but
they'll come in handy for the IIci and friends.
1994-02-22 01:25:27 +00:00
briggs 22c116cc4e Comment out stacknquit() so we actually get to the panic on a fault. 1994-02-22 01:23:37 +00:00
briggs 8f42469b7c Changes by grantham for RBV support. 1994-02-22 01:20:15 +00:00
briggs 90db065cbf Some modifications by grantham to handle the RBV chip which emulates some
VIA2 functinos.
1994-02-22 01:19:21 +00:00
briggs b4bf0c73ff Rudimentary, experimental fpu emulator. Needs lots o' work before it can
move to m68k or even be useful for more than testing purposes...
1994-02-22 01:17:53 +00:00
briggs 7e6b2cfa8a /sbin/disklabel will print out disklabels, so don't be verbose when
doing readdisklabel.
1994-02-22 01:16:33 +00:00
briggs bb20b67105 Get rid of if_init assignment. 1994-02-22 01:15:00 +00:00
briggs 42ad9a0be4 Minor tweaks to prevent hangs and other bad behavior... Needs much more
work now that we have more info (Designing Cards and Drivers for the
Macintosh Family Hardware.
1994-02-22 01:11:33 +00:00
briggs 2fbb727cb3 Various fixes, changes and so forth by lkestel. Among them should be
support for > 1-bit modes (slow...)...
1994-02-22 01:07:40 +00:00
briggs b9fe737afd Add a few new defined machine type constants and a few new globals. 1994-02-22 01:00:44 +00:00
briggs 4795851aeb Moved PTBASE from 60000000 to 60100000 for PowerBooks. From grantham. 1994-02-22 00:59:34 +00:00
briggs c76cc12799 Make include paths reference arch/mac68k/scsi instead of just scsi. 1994-02-22 00:57:23 +00:00
mycroft 4a5c858157 PARANOID --> DIAGNOSTIC for inexpensive tests. 1994-02-14 21:49:08 +00:00
briggs 9593f1ef8f The booter can finally deal with ld's executables. 1994-02-12 18:03:12 +00:00
briggs ecfa08e11e ioctl now takes struct proc *. 1994-02-10 04:30:27 +00:00
briggs 011f63af43 New disklabelling from finchm@cray-ymp.acm.stuorg.vt.edu. Cleaned up and
modified somewhat by yours truly.  Still need setdisklabel and
writedisklabel at some point--for now, though, it's easier to let MacOS
programs like SilverLining handle this...
1994-02-10 04:29:11 +00:00
briggs 4a88f971b4 Get rid of local FS_* definitions and add a few more partition strings to
keep from labelling the driver and partition map partitions with new
disklabelling code.
1994-02-10 04:26:47 +00:00
briggs 0323c54f9d Make whole disk partition c.
Assign it FS_OTHER to mark it as used.
Don't assign a type to partition a so that we can use it later if there
is no root partition.  This wouldn't be necessary with more partitions
available.  Perhaps in the future...
1994-02-10 04:23:45 +00:00
briggs d220a8bafd Update to use b_actf instead of av_forw(?) per Charles Hannum's changes. 1994-02-08 03:54:08 +00:00
briggs a09eafbddd Fixup calls to profclock and softclock. 1994-02-06 22:06:25 +00:00
briggs a02867d2fe Devices were a mess. They're a little more cleaned-up, now, but there's
more work to be done later to make sure that the devices match up with
critical ones in compat stuff...
1994-02-03 21:46:51 +00:00
briggs f0d32487ed Call hardclock w/ clockframe * instead of clockframe. 1994-02-03 21:25:57 +00:00
briggs 0c7e77e4b2 Get rid of dk_establish and extra "struct device." 1994-02-03 05:34:44 +00:00
briggs 275267397f Modify st.c to use current mtio.h. 1994-02-03 05:28:07 +00:00
briggs 48e53d4b79 ifdef out code that relies on changes to struct buf. This breaks the
"user" scsi device.  Oh, well.
1994-02-03 05:11:09 +00:00
briggs 7612acee32 Fixup include references. 1994-02-03 05:09:31 +00:00
briggs 9e16bc846f Cleanup include refs. 1994-02-03 05:08:26 +00:00
briggs 068983678e Get rid of dkhead/dktail schtuff and add a scheme based on the sparc's.
Umm.  Also be smart and don't clobber swapdev so swapping works.
1994-02-02 01:06:23 +00:00
briggs 404b8fce6b Update to magnum scsi system. Also added a function to sd.c to map a
scsi target to a disk unit for setroot().  If anyone knows a better way
to do this, please let me know.  The only other way I could think of
would be to add a field in disk.h:struct dkdevice to reference the scsi
target.  Ideally, the correct boot device would be passed in from the
booter.  As we only have one scsi bus (until we support NuBUS scsi
cards), it makes sense to be backward-compatible (especially since mac
weenies seem to need help tying their shoes).
1994-01-30 01:21:12 +00:00
briggs de456b165a Include-cop. 1994-01-30 01:15:31 +00:00
briggs c86a4eb235 Include-cop strikes again. 1994-01-30 01:14:49 +00:00
briggs d110378226 Just playing include-cop. 1994-01-30 01:11:36 +00:00
briggs eb7f152ad2 Fixup includes and prototype stuff. Still need to go back and put in
old-style function headers to be pedantic.
1994-01-30 01:10:33 +00:00
briggs df5f6080ef Change to support config.new and magnum-esque scsi code. Works much
more nicely.
1994-01-30 01:08:50 +00:00
mycroft 8b09474e2e Clean up deleted files. 1994-01-30 01:07:03 +00:00
briggs a829ad4c4b Nuke final references to chars.h. It wasn't being used. 1994-01-30 01:07:01 +00:00
briggs 031cee34c2 Use a real swapgeneric.c instead of a place filler. This works with the
changes to autoconf.c...
1994-01-30 01:05:52 +00:00
briggs e845737b08 Switch from DELAY to delay. 1994-01-30 01:04:35 +00:00
briggs 4b756ee088 Add a stupid delay() that is little more than a place-holder for a real
implementation.
1994-01-30 01:03:51 +00:00
briggs ad4ee3bfe4 DTRT w.r.t. root and boot disk devices. This could still use some work,
but it's a lot better than depending on root being on sd0 (and swapping
if it isn't).
1994-01-30 01:01:08 +00:00
briggs ec1d50fc52 Fixup scsi references and add ISOFS and PROCFS options. Clean up swap/root
definitions, too.
1994-01-30 00:58:52 +00:00
briggs d1cb647349 Use LD=ld.dist instead of LD=ld until we get around to fixing the
bleeding booter.
1994-01-30 00:57:20 +00:00
briggs ecc982a417 Fix for magnum's scsi system, but referenced through arch/mac68k/scsi
as was the old stuff.
1994-01-30 00:56:39 +00:00
briggs 4d3096f778 Get rid of DELAY defines. These are bogus. There has to be a better
way.  And there will be.
1994-01-30 00:53:07 +00:00
mycroft 6a50b26e15 Pointer to common version. 1994-01-27 15:26:31 +00:00
cgd c9c3b2abbe HP300 -> MACHINE 1994-01-27 02:12:44 +00:00
briggs 71d0f0a1ee Apply patch as suggested by Theo. 1994-01-24 22:29:40 +00:00
cgd 36a23c4ad8 stub 1994-01-23 00:23:02 +00:00
briggs bf7f4476c9 Ditch ENTRY/ALTENTRY defines and include "m68k/asm.h" instead. 1994-01-22 13:39:32 +00:00
briggs 27a2300de5 ifdef out copyinstr/copyoutstr/... functions that are now defined in copy.s. 1994-01-22 03:47:48 +00:00
briggs 29b900df29 cpu_*disklabel => *disklabel. This will all be revamped soon, anyway... 1994-01-21 00:20:57 +00:00
briggs 7bed222bc4 A field name in a structure changed. So we did, too. 1994-01-20 23:58:47 +00:00
briggs a0bbe77f60 Take out coninit and clean up some warnings. 1994-01-20 23:57:09 +00:00
briggs 8a9e97410c Be friendly and only compile this stuff if NUK > 0. 1994-01-20 23:56:08 +00:00
briggs 64be0b1f3a Make uk and su look like devices. Haven't tried compiling uk. su is still
nothing.
1994-01-20 23:55:16 +00:00
mycroft 0df1b00481 Clean up deleted files. 1994-01-17 01:04:42 +00:00
briggs b05de50fc1 We aren't a VAX. 1994-01-17 01:04:08 +00:00
briggs 7ea239d333 Put lun in CDB. Is there be a way to determine when this is really
necessary?  (It is for some drives).
1994-01-15 03:26:20 +00:00
briggs 363cc5e5be Basic cleanup. Get rid of my_frame for frame. 1994-01-13 12:59:30 +00:00
briggs 626f129c93 Allocate exec_map. 1994-01-13 12:56:16 +00:00
briggs 197d195eb4 TRAP_TYPES macro to trap_types variable.
Yank some VIA initialization.  Seemed to cause some problems.
1994-01-11 00:25:30 +00:00
briggs 0602c3467a Yank a reference to a variable that bit the dust. 1994-01-11 00:20:10 +00:00
briggs ed87cbfebd Some generic clean-up. Get rid of old debugging code. Fix exec to work
with new changes by cgd.  Fixup includes.  Get rid of initcpu().  Change
code using struct myframe to use struct frame.  Some gratuitous
reformatting and get rid of C version of copyinstr().
1994-01-11 00:18:54 +00:00
briggs 33e189e2da Clean up isr stuff. 1994-01-11 00:16:13 +00:00
mycroft 09e9a743f5 Clean up deleted files. 1994-01-11 00:03:43 +00:00
briggs 558be1794a Makefile: Added -T 0 to link for kernel.
files.mac68k.newconf: Removed ddb entries.
1994-01-10 23:58:37 +00:00
briggs af6d2f067d Fixup to use m68k headers, now. Thanks, Chris. 1994-01-10 23:55:20 +00:00
briggs dfe9897dba Update grf.h to increment a number of devices when it configures.
Fix a small bug in serial.
  Both from Brad, Lawrence, and/or Mike.
1994-01-10 23:52:01 +00:00
mycroft f5d2568734 Clean up deleted files. 1994-01-08 18:36:06 +00:00
cgd ab38f02a26 kill entries duplicated in files.m68k.newconf 1994-01-08 18:31:53 +00:00
cgd f7b271f349 specify that the mac is of the m68k archtecture. 1994-01-08 18:06:25 +00:00
cgd b38fa5acf8 stubs which pint to m68k include 1994-01-08 12:41:41 +00:00
mycroft ed95321df9 Still need old #defines for now. 1994-01-06 17:05:34 +00:00
mycroft f76fdd7722 Implement `struct reg'. 1994-01-06 16:50:13 +00:00
briggs cec9c395f8 Use address instead of slot for add_nubus_intr. This whole interrupt
scheme should probably be taken out and shot.
1993-12-21 03:19:33 +00:00
briggs 982b2aa969 Update ethernet driver to use config.new. At least, it's a first stab
working from mycroft's magnum changes to if_ed.c.
1993-12-21 03:18:00 +00:00
briggs 2390a5c1ee Add basic sound support and a beeping (instead of flashing) console...
from Brad Grantham.
1993-12-21 03:16:01 +00:00
briggs fded7fc070 Add Apple Ethernet to GENERIC and files. Also add asc.c to files
for sound support.
1993-12-21 03:14:16 +00:00
briggs 5fd9ddd438 Get rid of IFF_ALTPHYS and hence IFF_LLC0 reference. It doesn't appear
to have been used in this driver ;-)
1993-12-15 03:38:20 +00:00
briggs 0658adaa44 Added for ddb support. I think it's at least partially wrong. This and
the files in mac68k/db_* started off as the sun3 files...
1993-12-15 03:30:27 +00:00
briggs 08d8b412c1 Add files for ddb support. I know they're at least partially broken. 1993-12-15 03:28:56 +00:00
briggs e9d1216987 Cleanup. Use mac68k_xxx macros instead of macII, etc. Cleanup via.h.
Add minimal support for ddb.
BIG CHANGE: Use proper offsets for new gas in locore.s!!!
1993-12-15 03:27:50 +00:00
briggs 93726fb753 Change constants and comments to reflect the current MACHINE value.
Define T_BRKPT and T_WATCHPOINT.
1993-12-15 03:22:56 +00:00
briggs e369bb70b1 Add (semi-bogus?) test to scsi_gen to handle luns in test unit ready
commands.  W/o this test, some old drives were being identified at
all luns...  Also some cleanup and spelling corrections ;-)
1993-12-15 03:17:54 +00:00
mycroft 924c486826 Clean up deleted files. 1993-12-15 03:10:00 +00:00
briggs 34805358dd Add (broken) support for DDB. Also fix a bug in console that confused the
scrollback.  Clean up includes a tad.
1993-12-15 03:09:05 +00:00
briggs 38f1087a45 Let's try DDB... 1993-12-15 03:04:40 +00:00
mycroft f67ccd2bf0 Move #define of NIPCREG outside #fidef. 1993-12-08 22:46:15 +00:00
briggs 168d2ddd1d Add -Dmac68k as a COPTS so we can get cpu_disklabel. 1993-12-07 03:27:43 +00:00
briggs 99fee960e0 Fix includes to use ../mac68k instead of ../mac and add some semi-colons
to a couple of default: switches.  gcc2 doesn't mind not having them,
but gcc1 sure does.
1993-12-06 04:27:52 +00:00
briggs 54614538ca Dumb typo. Must be dyslexic. Changed MACHINE_MID to MID_MACHINE. 1993-12-06 04:11:47 +00:00
briggs dcbf82a3fe Move MID_MACHINE to param.h from exec.h and get rid of bogus includes. 1993-12-06 04:09:20 +00:00
briggs 1fd099189d Change USRTEXT to 8192 in vmparam.h.
Add MACHINE_ARCH (m68k) to param.h.
1993-12-04 03:49:01 +00:00
briggs 25e937c41a Added struct relocation_info_mac68k. Copied from hp300. 1993-12-03 22:29:48 +00:00
briggs 9c873e424c Update MACHINE to mac68k in param.h.
Update MACHINE_MID to MID_M68K -- untested.
Add __LDPGSZ as 8192 -- untested.
1993-12-02 18:36:35 +00:00
mycroft 5cf6576e5d Clean up deleted files. 1993-12-02 18:29:26 +00:00