Commit Graph

8874 Commits

Author SHA1 Message Date
cgd
d928dbc14a support for new-style kernel core dumps for the alpha. Could probably
be cleaned up a bit, but it works.
1996-10-01 18:41:08 +00:00
cgd
0b1ff14ff3 first cut at alpha machdep kernel coredump header 1996-10-01 18:38:05 +00:00
ws
f828028e92 Add some files that CVS missed somehow
These are empty for now, but are needed by MI code
1996-10-01 16:13:50 +00:00
cgd
acaf5ffad5 kill __BDEVSW_DUMP_OLD_TYPE 1996-10-01 14:26:18 +00:00
cgd
4f59e73235 implement a simple (mostly brain-dead; old-style) kernel core dump routine,
which dumps all "system"-cluster memory we know about.
1996-10-01 14:25:47 +00:00
jonathan
b2ba37c8b9 Delete old dkstat index (sd_dk) from old pmax scsi-driver struct, and delete
the last references to it from the old/new config glue in pmax/conf-glue.c.
1996-10-01 01:04:48 +00:00
abrown
7557090650 Add cgfourteen_poll() entry point to sync with recent changes in frame
buffer cdev code.
1996-10-01 00:06:45 +00:00
christos
0b99fde177 Fix PR/2782: Remove definition of dos_partitions[]. 1996-10-01 00:06:05 +00:00
abrown
c04e2bf00c Add cgfourteen to conf.h.
Add new framebuffer types for recent-model graphics devices to fbio.h.
1996-09-30 23:45:10 +00:00
abrown
1547bff1c4 Add cgfourteen frame buffer at device major number 99. This is what Solaris
uses; I don't have access to a SunOS system with a cg14 to tell what
it uses.
1996-09-30 22:49:12 +00:00
abrown
e46ca2d67c Add cgfourteen driver as device "cgfourteen" 1996-09-30 22:43:38 +00:00
abrown
19b3f7f50b Initial commit of cg14 framebuffer driver for Sun4m SPARCs.
- This driver supports the on-board mbus-based cgfourteen (sometimes referred
  to as "SX") video hardware present on SS20-class machines.
- It does *not* support any of the SX acceleration features.
- It does support the 8-bit mode of the hardware, and looks to X like
  a cgthree.
- It does support the cg6-style hardware cursor, even when running X in
  cgthree emulation.
- It does support DPMS power-down of compatible displays on later-revision
  cg14's.
- There is code to support the true color (32-bit) mode of the cg14 as
  cg8 emulation, but it is disabled by default because it is most likely
  broken. #define CG14_CG8 to turn it on.

The driver is not yet installed in the conf files, but I will do so
shortly...
1996-09-30 22:41:01 +00:00
christos
13b8943557 fix PR/1085: fix read and write label routines so that they can be called
with a null cpu_disklabel
1996-09-30 21:24:49 +00:00
ws
5804d3f648 PowerPC port 1996-09-30 16:34:14 +00:00
is
1589992f74 Same as mhitch corrected in the CIA B interupt handler few days ago:
Check only the IR bit of the CIAA Interrupt Control Register when testing
for a level 6 interrupt.  An interrupt only occurs if IR is set, and IR is
only set if the individual mask bits are set.  The individual interrupt
status bits can be set without causing an interrupt if the corresponding
enable bits are not set.
1996-09-30 16:10:03 +00:00
jonathan
e459401a61 Fix for PR #2739: change reference to ioasic interrupt mask in a
DEBUG printf() in kmin_intr() from  "kn03_tc3_imask" (3max+  ioasic mask)
to  "kmin_tc3_imask" (3min ioasic mask)
1996-09-30 08:31:54 +00:00
jonathan
2c2c7c31cb Add files.pmax entries for separate cfattach front-end and ``MI'' backend
drivers:
	pm - pmin/pmax  d503 PCC + BrookTree 478 framebuffer
	dc - dc7085 DZ-11 clone
	asc - ioasic and TurboChannel SCSI option card 53c94 SCSI-2
	sii - DEC scsi ASIC used in pmin/pmax, 5100, and Firefox vaxes
1996-09-30 08:11:23 +00:00
jonathan
7cd0363289 Just include <mips/cpuregs.h>, which has the same contents this
file used to.
1996-09-30 07:58:20 +00:00
jonathan
701c775b0b Update all the include directives to use pathnames relative to the root
of the kernel source tree, not the port config directory.
1996-09-30 02:38:17 +00:00
jonathan
0c1b5cd12b Build and link in locore_machdep.S. 1996-09-30 02:35:34 +00:00
jonathan
6c0d846a3d Include <mips/asm.h>, not the Sprite header names. 1996-09-30 02:21:20 +00:00
jonathan
a1d3dd50d8 * Move Decstation-specific locore code (sii DMA copy, vmstat -i counters)
from arch/mips/mips/locore.S to arch/pmax/pmax/locore_machdep.S.
* Move ARC-specific locore code (vmstat -i counters) to
  arch/pica/pica/locore_machdep.S.
* When the mips3 locore support is known to work, both  ports can now use
  arch/mips/mips/locore.S.
1996-09-30 01:51:16 +00:00
jonathan
1fc59008c3 Move Decstation-specific locore code (sii DMA copy, vmstat -i counters)
from arch/mips/mips/locore.S to arch/pmax/pmax/locore_machdep.S.
1996-09-30 01:30:21 +00:00
jonathan
e82e5facd0 Add _ prefix to the PROM-callback-vector entrypoint in standalone
wrappers for:
	gets.c getenv.c strcat.c strcpy.c
so they compile again (if _KERNEL is defined).

For bootblock space reasons it would be prereable to call the PROM entrypoints
directly, via the macro wappers in de_prom.h, rather than C function wrappers.
1996-09-30 01:14:39 +00:00
jonathan
6c56d533b3 Add "const" to second argument to devopen.c, to match sys/lib/libsa/stand.h. 1996-09-30 01:02:06 +00:00
jonathan
0cfd4f8641 Update arch/pmax/Makefile to build in NetBSD rather than 4.4-Lite:
* Create arch/mips/Makefile.inc with source list of generic MIPS-cpu
    files for tags
  * Use mips/Makefile.inc and updated tag list in pmax/Makefile
  * Try building bootblocks in arch/pmax/stand.
1996-09-29 23:51:22 +00:00
is
5a86eaccfc a) replace our delay() with a Gordon Ross style one, calibrated at
clock_attach() time (for now).
   This removes our dependance on the DraCo ROM access timing and frees
   the second CIA on Amigas.
b) support for DraCo rev. >= 4 native timer chips.
1996-09-29 21:27:30 +00:00
mhitch
5699bff0d4 The declarations for the interrupt enable address should only be done if
_KERNEL is defined.  The bash install process was including the extern
statements into its generated Makefile.
1996-09-28 15:54:04 +00:00
mhitch
3a51f86499 Check only the IR bit of the CIAB Interrupt Control Register when testing
for a level 6 interrupt.  An interrupt only occurs if IR is set, and IR is
only set if the individual mask bits are set.  The individual interrupt
status bits can be set without causing an interrupt if the corresponding
enable bits are not set.
1996-09-28 15:45:41 +00:00
mycroft
4cd799d5a9 Remove unused variable. 1996-09-28 03:37:36 +00:00
mycroft
aaad0e1149 Sync with Alpha version. 1996-09-28 03:21:04 +00:00
mycroft
3729419cc8 * Bitbucket extra status bytes rather than barfing.
* Add copyright.
1996-09-28 03:16:56 +00:00
mycroft
e097189e2b Restructure code more like aic6360 driver. Also:
* Check for some errors during reselect.
* Don't recognize MESSAGE PARITY ERROR.  A target is not allowed to
send it.
* Check the size of a SDTR.
1996-09-28 02:10:55 +00:00
thorpej
8d5c3b9cd1 Sync with the alpha version, fixing several SCSI protocol bugs.
NOTE: THESE FILES ARE NOW IDENTICAL TO THEIR ALPHA COUNTERPARTS.
The C preprocessor does the Right Thing when these files are built
on a SPARC.  This makes it significantly easier to diff the two
versions (until a real MI 53c9x driver is done, hint hint).
1996-09-28 01:49:06 +00:00
thorpej
15516a9a89 - Add some missing prototypes and kill an unused label.
- Add some missing SPARC_DRIVER stuff.
- Make SPARC_DRIVER automatic.

This driver now compiles as-is and works on both the SPARC and Alpha.
1996-09-27 21:37:17 +00:00
mycroft
be1172e37b Fix dangling pointer in debugging message. 1996-09-27 20:21:38 +00:00
mycroft
00089386d6 If we get an unexpected disconnect while issuing a REQUEST SENSE, do a reset. 1996-09-27 19:55:41 +00:00
mycroft
3075e1443b Functional changes:
* Handle message retransmissions and partially sent messages correctly.
* Make sure we clear ATN after the last message is sent.
* Do the right thing if the target initiates negotiation for async mode
after having negotiated sync mode.
* Fix some cases where we set ATN with no message queued, or schedule a
message without setting ATN.
* Issue a REQUEST SENSE after an unexpected disconnect, per SCSI spec.
* Fix abort handling in a number of cases.
* Recognize selection timeouts better (to speed up probing).
1996-09-27 19:36:34 +00:00
abrown
28068e33c0 Oops. Last change will slow down a GENERIC kernel. Add a CPU type test
for cleanliness.
KNF a return statement.
1996-09-27 18:30:15 +00:00
cgd
d896ecd5f0 compile .S files with cpp | sed | as, to work around a bug with the
ELF-outputting version of the assembler.  (It was dying when it saw
some CPP line number markers.)  This is temporary.  (Workaround suggested
by Matt Thomas.)
1996-09-27 17:33:04 +00:00
cgd
a3ad409098 add EXEC_ELF64 and EXEC_SCRIPT as standard options 1996-09-27 17:18:02 +00:00
cgd
80f9ed76f6 update for changes to config. 1996-09-27 17:08:32 +00:00
abrown
d7ef005a81 Fix long-standing bug with Lance ethernet and Sun4m's, where each packet
would generate two interrupts, one real and one spurious. The solution
is to force a drain of the SBus->MBus write buffers after writing to the
lance to clear the interrupt. Thanks to Chris Torek for pointing out a much
easier way to do this than I had planned...
1996-09-27 15:11:43 +00:00
scottr
0f40954572 Add ROM vectors for the LC III, verified by Mike DeLima
<miked@netrover.com>.
1996-09-27 06:55:29 +00:00
chopps
daf7d29beb make work with DESTDIR 1996-09-27 03:23:12 +00:00
cgd
db9418238e add support for the prom 'write' operation. 1996-09-26 22:51:53 +00:00
cgd
d7d34c74ec since these just included mips/ecoff.h, they need to be changed to include
mips/ecoff_machdep.h.
1996-09-26 22:40:53 +00:00
cgd
64f4e1937e rename <machine/ecoff.h> to <machine/ecoff_machdep.h> for clarity and
consistency with the way machdep headers for other things are done.
(the creation of the ecoff_machdep.h files was done on the CVS server, to
keep the RCS logs intact.)
1996-09-26 22:39:14 +00:00
cgd
0e097578a2 add and use a machine-dependent header, which currently defines some
macros to use to remove #ifdefs from the machine ID case check.
Eventually, these headers will contain other information, e.g.
machine-dependent relocation information, etc.
1996-09-26 21:50:55 +00:00
cgd
aff6c1c4c7 kill DDB 1996-09-26 21:45:05 +00:00
christos
869fd46175 Implement T_FIXALIGN by adding code to fix unaligned accesses and a bit
in md_flags. This should bring the solaris mac emulator software a step
closer to working.
1996-09-26 18:58:33 +00:00
christos
e33f712af6 Initialize md_flags. 1996-09-26 18:55:51 +00:00
christos
9db40d9ba8 Add md_flags so that we can have a fix-misalign-accesses flag. 1996-09-26 18:51:17 +00:00
gwr
79b5c352a5 Fix bounds_check_with_label() as suggested in PR#2598 (Thanks to der Mouse) 1996-09-26 18:10:21 +00:00
jonathan
9b5c58c457 * When configuring a serial console on a machine with a dc serial chip,
use the pre-autoconfig cold serial-console inititialization entry
  points from the bus-specific cfattach front-end code.
* Delete post-autoconfig code to switch from PROM output to kernel
  driver for machines with dc serial chips.
1996-09-25 21:16:00 +00:00
jonathan
874baa6c95 Rewrite dc7085 (dz-11 clone) driver as MI back-end, with bus-specific
cfattach front-end code:
  dc_ds for the decstation 2100( pmin), 3100 (pmax), and 5100.
  dc_ioasic for the decstation 5000/200 (3max) which does  not have a
  DEC TC-style IOCTL asic, but is configured as if it did.

* Add pre-autoconfig  code initialization of kerenl dc driver console I/O
  for remote serial consoles.  The hack to use PROM serial I/O until the
  dc device is autoconfigured is no longer necessary.
1996-09-25 20:48:51 +00:00
jonathan
75fd343a78 Build locore using merged mips (mips1, mips3) locore source:
* Add MIPS make variable pointing at $S/arch/mips
  * Build locore from $MIPS/mips locore source
  * Build locore.o and fp.o (fp emulation) from arch/mips locore source
  * Add target and rules to build pmax-specific locore code locore_machdep.o
    from $PMAX/pmax/lcore_machdep.S
1996-09-25 20:41:00 +00:00
jonathan
2ec085cba7 Back out part of revision 1.30:
>* Use `-S' rather than `-x' to remove debugging symbols.

because the pmax toolchain and gcc disagree about what is a "local"
symbol, and ld requires a "-x" to let elf2aout build bootable a.out kernels.
1996-09-25 20:35:16 +00:00
leo
ffd121b446 More preps for et-driver. 1996-09-25 15:15:07 +00:00
leo
f97dcb95be The KDASSERT macro is now defined in libkern 1996-09-25 15:10:15 +00:00
leo
d9ec4b0569 Second arg to print function is now 'const char *' 1996-09-25 15:07:40 +00:00
leo
8e7f6c2cf5 Catchup with -current:
- Extra argument to boot()
  - select -> poll
1996-09-25 15:03:20 +00:00
christos
6dde563e8f Fix the entries for the cyclades multiport serial cards, but leave commented
out, like the other multiport cards
1996-09-24 19:10:41 +00:00
is
e6edfde31b Rename the watchdog enable bit to reflect its polarity. 1996-09-24 17:11:53 +00:00
is
2b84ad395b Don't forget to shut up Fido. 1996-09-24 16:08:36 +00:00
jtc
d137b0e8ba Added new macro _PROF_PROLOG which contains the code sequence needed
to call mcount().  This is needed because the ``link a6,#0'' insn used
trips up gcc's ANSI preprocessor (A # in a function-type macro must be
followed by a macro argument).  _PROF_PROLOG is also used in the i386
asm.h.

Solaris' asm_linkage.h has a MCOUNT macro similar to _PROF_PROLOG
except it expands to different code sequences based on whether a
function is being compiled with "prof" or "gprof" instrumentation.

I also discovered that the m68k ALTENTRY is very different than the
implementation used by other NetBSD ports.  Usually ALTENTRY simply
provides an alternate function entry point.  The m68k version takes a
second argument and jumps inside the second function when profiling is
enabled.  The m68k behavior is similar to the ENTRY2 macro found in
solaris.

Providing ENTRY2 and changing all the code that uses ALTENTRY to use
it would be a desirable change.
1996-09-24 00:05:55 +00:00
cgd
c54f6f32d9 update for ELF toolchain support 1996-09-23 04:32:59 +00:00
cgd
a47aa08a3e define ELFSIZE to 64, for exec_elf.h 1996-09-23 04:32:44 +00:00
cgd
3bd3e6250d checkpoint current development, add ELF toolchain build support 1996-09-23 04:30:56 +00:00
cgd
6048292ba8 add -DECOFF_COMPAT to CPPFLAGS if ELF_TOOLCHAIN not defined. 1996-09-23 04:28:46 +00:00
cgd
c225908c90 add netboot 1996-09-23 04:28:23 +00:00
scottr
21761e4ec0 Update for recent config(8) changes. 1996-09-22 06:49:09 +00:00
cgd
a5aa202ea9 kill unused options. no point in wading through lots of lines of commented
out garbage that will never be useful on this machine.
1996-09-22 03:00:32 +00:00
jonathan
3fd5d3ba03 Add prototype for function-pointer argument "strat" in definition of
readdisklabel(), writedisklabel(), and  compatdisklabel().
1996-09-21 11:25:51 +00:00
jonathan
3a51c3ecb0 Move old 4.4bsd/pmax driver declaration below prototypes of driver
entry points, for -Wall -Wstrict-prototypes.
1996-09-21 08:47:17 +00:00
jonathan
073248247b Add prototype for 4.4bsd/pmax scsi-driver d_done() entry point. 1996-09-21 08:45:41 +00:00
jonathan
cb5732503f Add fake, bogus prototype for gettcinfo(), with "void" arglist.
(Not having a prototype  breaks -Wstrict-prototypes, this callback
 isn't used, and we don't know what the prototype should be.)
1996-09-21 03:33:18 +00:00
jonathan
456e858536 Update pmax framebuffer drivers for -Wall -Wstrict-prototypes:
* include <fb>var.h in <fb>.c
 * remove delete declarations for 4.4BSD-Lite console/kbd/mouse redirection
 * Add prototypes where not already present.
1996-09-21 03:25:15 +00:00
jonathan
f78ff890d7 Change bt478.c to include bt478var.h from bt478.c.
Remove redundant declarations.
1996-09-21 03:22:24 +00:00
jonathan
2e4e1695fe Exported declararation of console-attach function for glass-tty consoles
on Decstation TURBOchannel fb drivers.
1996-09-21 03:06:36 +00:00
jonathan
5c2d5169b2 Exported declarations from brooktree bt478 chipset-level driver,
used in DEC pm framebuffers.
1996-09-21 03:02:10 +00:00
jonathan
be78089fff * Add missing `UADDR' argument to RESTORE_USER_REGS() macro calls.
* Add back copyright notice and rcs ID from parent of previous
  revision (pre-merge).
1996-09-20 23:44:10 +00:00
thorpej
ab49e34013 Don't attach an rcons to a cgfour/cgeight overlay plane; it doesn't work
properly.  Problem reported by Charles Hannum.

XXX This is temporary until someone with the hardware has time to fix it!
1996-09-20 17:35:49 +00:00
cgd
8644dce05c start on some network boot blocks. they work, but:
(1) the if_prom code needs to be cleaned up quite a bit
	    (right now it hard-codes client's ethernet address), and
	(2) much of this code (esp: getsecs.c, netboot.c, newvers.sh,
	    rpcc.S) should be shared with other Alpha boot blocks,
	    and dev_net.[ch] should maybe go in libsa proper.
1996-09-18 20:03:04 +00:00
cgd
675e59d762 fix for elf loading, from Matt Thomas 1996-09-18 19:34:33 +00:00
jonathan
4a465f05ff Decstation kernel config file for diskless installation:
root and swap on NFS, but includes disk and tape drivers.

Prune out most `optional' options to stay small in the hope of avoiding
PROM tftp bugs.
1996-09-18 14:10:24 +00:00
jonathan
420c045b41 Create broken-out config files for decstation baseboard devices.
Add sample config files that use them.
1996-09-18 13:43:37 +00:00
jonathan
de735d506d Fix for problem report port-pmax/2173: the local variable "inst"
in the branch-emulation  code was uninitialized, due to a misplaced #endif.

Remove the relevant #ifdef (macro version of GetBranchDest), and move the
XXX note about r4000 branch targets to the  function definition.
1996-09-18 11:16:20 +00:00
briggs
197a86e724 Don't allow get_physical to attempt get_pte if mmutype is 68040.
(At least until get_pte works on the 040).
1996-09-18 03:33:23 +00:00
cgd
886dba6dff (1) split load-file functionality out from the 'main program' of the
boot block, since it will be shared with the network boot block.
(2) Kill a.out support, since it never worked was never used, and will
    never be.
(3) Add support for booting of ELF kernels, from Matt Thomas.  (Currently
    untested, but it compiles.)
1996-09-17 22:00:24 +00:00
cgd
a68b586a74 add _rtt as an XLEAF into start which (like 'halt') just halts 1996-09-17 21:26:45 +00:00
cgd
abcbfbdd93 use assembler directives and labels that make both the ELF- and ECOFF-
targeted assemblers happy.
1996-09-17 21:17:11 +00:00
cgd
8110fe7ca7 Differentiate between disked ("SCSI") and network ("BOOTP", but not yet MOP)
booted_dev specs.  Add code to find the device, if booted from the network.
1996-09-17 21:04:25 +00:00
cgd
cab0e2aba3 hmm, fix an apparent typo (two letters got deleted!) 1996-09-17 20:58:58 +00:00
cgd
56386f3e35 Differentiate between disked ("SCSI") and network ("BOOTP", but not yet MOP)
booted_dev specs.  Add code to find the device, if booted from the network.
1996-09-17 19:46:37 +00:00
cgd
88a5419c15 print default device names slightly more nicely. (if not disk device,
don't print a blank before the close paren.)
1996-09-17 19:41:52 +00:00
jonathan
ad20e52d11 Commit snapshot of reworked dc driver to trunk, to pull up fix for
serial consoles to the 1.2 branch.  Includes:
  * dynamically allocated new-config softc
  * remove dependencies on Decstation CPU type, use flags in softc instead.
  * pass in values for softc flags (q.v.) from parent-specific attach code
  * #ifdef out rts/cts flow control support until it's known to work on
    200s.
  * redo initialization of serial consoles (needs more work).
1996-09-17 19:34:40 +00:00
oki
82f8d6bb4b added ccd(blk)/ch/uk device 1996-09-16 20:08:56 +00:00
scottr
d13cb4414c Convert fpu_type' to the more consistent fputype', and use the new
#defines from m68k/include/cpu.h.
1996-09-16 18:00:26 +00:00
cgd
66992c7399 sync with GENERIC: add pseudo-device 'rd' with one unit 1996-09-16 16:34:15 +00:00
cgd
0006f58df7 add EISAVERBOSE, TCVERBOSE as appropriate. Add UCONSOLE to all.
slight cleanup + sync.
1996-09-16 16:30:40 +00:00
leo
0e805391a3 Prepare for (soon to come) et4000 PCI console 1996-09-16 06:49:03 +00:00
leo
ef074b3031 Prepare for (soon to come) et4000 PCI console. 1996-09-16 06:43:32 +00:00
leo
edc2de87d0 Initialize MFP2 on both TT&HADES. 1996-09-16 06:28:41 +00:00
leo
11c0ef7354 atari_realconfig now defined in <atari/device.h> 1996-09-16 06:27:11 +00:00
leo
1b4ecd8255 Fix bootcode to work on the 68040. 1996-09-16 06:25:45 +00:00
leo
72c7d3589f Get it into sync with the previous changes to locore.s 1996-09-16 06:24:36 +00:00
leo
7a128f0c7e Sync with changes in the grf/ite/view system. 1996-09-16 06:22:27 +00:00
leo
70747dc24f Add support for Hades platform. 1996-09-16 06:20:44 +00:00
leo
4f51ebc528 - Add M68040 option where appropriate
- Reflect changes on the grf/ite/view system for et4000 console support
- Set timezone to 0
- Document FPSP option
1996-09-16 06:14:21 +00:00
leo
2eccad6548 Add macro's that do bclr/bset in a single instruction. 1996-09-16 06:03:58 +00:00
scottr
3cf197cef1 Somehow the last change got mangled. Do over. 1996-09-16 05:24:21 +00:00
jtk
fc79deac52 when halting, attempt to turn off power using APM 1996-09-16 04:44:28 +00:00
scottr
014f910806 Add ZS_CONSOLE_ABORT 1996-09-16 04:35:25 +00:00
scottr
debc473329 - Add a ZS_CONSOLE_ABORT option to enable a serial console break to
force a drop to the system debugger.  WARNING:  this used to be the
  default behavior!  Modify custom kernel configs accordingly.
- Check for ZS_HWFLAG_CONABRT in zs_abort(), and don't abort if it's
  not set.
1996-09-16 04:32:28 +00:00
scottr
696dd783a4 Move check for ZS_HWFLAG_CONABRT to zs_abort(). 1996-09-16 04:19:26 +00:00
jonathan
18bd3a86e3 * add RCS id.
* Allow configuring disks without tapes, or tapes without disks,
  as suggested in PR 2743.
1996-09-16 03:47:47 +00:00
cgd
5645b6ef46 simplify profiling entry. add 'label' argument tp PANIC, PRINTF, and MSG,
which is the label that the message string should be stored with.
1996-09-15 22:42:29 +00:00
cgd
e025186655 save and restore registers symmetrically. don't forget to restore PV (t12). 1996-09-15 22:33:28 +00:00
cgd
89986fec30 like GENERIC, but uses built-in ramdisk image for root 1996-09-15 17:23:12 +00:00
cgd
3732f4dad6 add one 'rd' pseudo-dev. 1996-09-15 17:22:28 +00:00
cgd
edf0333fe0 add ramdisk root hooks 1996-09-15 17:17:56 +00:00
cgd
17264a54f2 s/k0segtophys/ALPHA_K0SEG_TO_PHYS/ 1996-09-15 17:16:24 +00:00
cgd
3af6ed0256 pollin', pollin', pollin', make them drivers pollin'... (support poll()). 1996-09-15 17:15:26 +00:00
thorpej
0cb6f5925c Correct an old comment; the 318, 319, and 330 _are_ tested (68020 w/ 68851).
(Read: I have a 319 :-)
1996-09-14 20:36:49 +00:00
is
1cda8089e3 Kill two debug printfs whose output always haunt me in the boot
messages, but which I didn't find when looking for then.
1996-09-14 14:55:08 +00:00
scottr
a4b22a046a Implement poll(2). 1996-09-14 06:08:01 +00:00
scottr
19d545f1ae - Implement poll(2)
- Convert splhigh() -> spladb()
- Guard references to adb_evq_tail and adb_evq_len!
1996-09-14 06:01:12 +00:00
scottr
81543dc7c9 Implement poll(2). 1996-09-14 05:54:53 +00:00
scottr
4ddcca6bc8 Update prototypes to match Chris' cfprint_t change. Also, update comments
in autoconf.h to reflect the mainbus.c split.
1996-09-14 05:43:24 +00:00
jtk
1541178d9b update the data segment mapping clamps to handle more screwy BIOS requests 1996-09-13 22:58:27 +00:00
jtk
bfd321ca95 don't shift size fields; they're not descriptors 1996-09-13 03:10:56 +00:00
jtk
662c47ecd3 use ls, not ${LS}; remove now-unneeded Makefile.inc 1996-09-13 02:24:30 +00:00
jtk
04f1e23fe1 BIOS trampoline is a static beast; generate it in the sources like
syscalls.h & friends, and include it when needed from the source directory.
1996-09-13 00:02:36 +00:00
scottr
e09160652b Sync with m68k/cpu.h changes. Also, test fpu_type instead of mmutype
when handling fp exceptions.
1996-09-12 21:25:31 +00:00
scottr
d3beac22f0 Sync with m68k/cpu.h changes 1996-09-12 21:25:29 +00:00
scottr
027b51f1f9 Define spladb() (conservatively, at least for now). 1996-09-12 20:39:19 +00:00
thorpej
9476dabc1a Correct a somewhat confusing typo in a comment, pointed out by
Scott Reynolds.
1996-09-12 18:54:23 +00:00
thorpej
5d570ded25 Update for the new way machine/cpu support is option'd in. 1996-09-12 07:36:37 +00:00
thorpej
feb8b586ed Do the extern song and dance. 1996-09-12 06:14:04 +00:00
thorpej
927facbf09 Add some constants now needed by locore. 1996-09-12 06:05:42 +00:00
thorpej
a1bffadb58 - Add hooks (just empty shells for now) for MVME-{162,167,177} models.
- Use information obtained from the Bug in locore to make identifycpu()
  produce some slightly more meaningful output.

- Garbage-collect some left-over hp300-specific stuff.
1996-09-12 06:02:35 +00:00
thorpej
6d0345fdb7 - Save the boot device info a little earlier in initializaion.
- Use the Bug to find out what kind of machine we're running on, and
  Do The Right Thing, namely:

	- Set `cputype' and `mmutype' as appropriate.

	- Crap out if the kernel doesn't support the machine we
	  booted on.

- Add hooks for MVME-{162,167,177} models; just an empty shell to be
  filled in later.

- Use `MMU_68040' rather than `-2' when checking the MMU type.
1996-09-12 05:57:43 +00:00
thorpej
917ef1b1be Grok machineid. 1996-09-12 05:48:54 +00:00
scottr
d407764c72 Add uk, remove ch device 1996-09-12 05:34:59 +00:00
scottr
7a6fae71e8 Add ss, uk SCSI devices 1996-09-12 05:33:41 +00:00
thorpej
399b0e0f68 - Use MVME "machine options" to associate MVME models with CPU
options (a'la the hp300 port).
- Declare a "machineid" extern.
- Define constants for machineid, which match the Bug's idea
  of MVME model numbers.
1996-09-12 05:26:37 +00:00
thorpej
583912cbcf Grab the stat clock stuff from the SPARC port, and glue it to the
second timer on the PCC.
1996-09-12 05:10:44 +00:00
thorpej
de02bf68b3 Update to use the new badaddr(); simplifies the code that attaches
pcc children somewhat.
1996-09-12 05:04:18 +00:00
thorpej
054bd4e4d0 Prototype badaddr(). 1996-09-12 05:01:47 +00:00
thorpej
ca8ebd2ae7 Change badaddr() to take the size of the access to do, and nuke
badbaddr().
1996-09-12 04:59:56 +00:00
thorpej
2a57ba6633 Correct a comment, and add timer priming macros. 1996-09-12 04:54:19 +00:00
scottr
a453e56ffd This is the development/debug machine 1996-09-12 04:50:43 +00:00
scottr
7b33c93009 Update to current reality. 1996-09-12 04:49:52 +00:00
thorpej
22adc20819 Add an FPU_UNKNOWN constant; just a placeholder for any unknown FPU. 1996-09-12 02:52:34 +00:00
thorpej
2b525e4952 Sync boot() with the hp300 version (basically, clean up a bit and
run shutdown hooks).
1996-09-12 02:45:57 +00:00
mrg
c98a14ad90 update these for poll(2) changes. 1996-09-12 01:35:34 +00:00
thorpej
be969d881e Update for poll(2) changes. 1996-09-12 01:22:58 +00:00
thorpej
eae3f0bb96 When opening a disk for non-filesystem i/o, make sure we only return
an error condition when an error occurs.

Bug noticed by Terry Lambert <terry@lambert.org>.
1996-09-11 18:05:02 +00:00
jonathan
2bc8c4e5c2 Merge in 4.4BSD-Lite -> 4.4BSD-Lite2 changes. (untested).
The Lite2 changes  include:
  * Remove the last vestiges of high-bit-set-means-delay for output chars.
  * Handle the  2100/3100 having partial modem control on line 2 only,
    whereas the 5000/200 has modem control signals on lines 2 and 3.
  * Add RTS/CTS support for lines 2 and 3 on a 5000/200.
  * Add more s = spltty(); splx(s); where needed but not present.
1996-09-11 06:41:19 +00:00
explorer
5d76f7cbac remove unneeded placeholder 1996-09-11 05:24:25 +00:00
thorpej
5704683922 - Pull in some interesting changes from the Amiga trap.c:
* SunOS glue

	* 68060 exception frame size definitions

	* 68060 fault detection macros

- Use `cputype' rather than `mmutype' where appropriate.

- Play the prototype game.

This file is much closer to being sharable by all m68k ports.
1996-09-11 00:44:24 +00:00
thorpej
f36cec2dfc Define the CPU_* constants from <m68k/cpu.h> for assym.h 1996-09-11 00:32:16 +00:00
thorpej
75b43e0aa6 Declare a `cputype' global, and set it as appropriate. 1996-09-11 00:29:28 +00:00
thorpej
a437d4f6cb Use <m68k/cpu.h>. 1996-09-11 00:23:47 +00:00
thorpej
e469c7beca Use <m68k/cpu.h>. 1996-09-11 00:11:42 +00:00
thorpej
521a717f6d Factor out common Motorola 68k CPU definitions from the m68k port
cpu.h header files.

Some more work could be done here, but it's a good start.
1996-09-11 00:08:52 +00:00
thorpej
7734e8980b Add COMPAT_M68K4K. 1996-09-10 22:48:05 +00:00
thorpej
9ff195106c Document COMPAT_M68K4K, but leave it disabled by default. 1996-09-10 22:45:17 +00:00
thorpej
1710b024c0 Document COMPAT_M68K4K, but leave it disabled by default. 1996-09-10 22:26:50 +00:00
thorpej
73a5b90800 Pull in the COMPAT_M68K4K stuff when appropriate. 1996-09-10 22:07:10 +00:00
cgd
0b77b04b6e set a0 to be the initial sp, and set pv to be program entry point. 1996-09-10 19:13:42 +00:00
jtk
2b5e1cd158 clean up missing prototype, extra variable 1996-09-10 11:22:33 +00:00
leo
0f821f9aa6 Conform to the hp300 style of trap.c as suggested by Jason. 1996-09-10 09:05:40 +00:00
leo
2340b495ce - Add suline() for the new trap.c (Shouldn't this move to m68k/copy.s?)
- Fix some bugs in the interrupt handlers introduced by the new mapping
  of the st io-area.
1996-09-10 08:58:42 +00:00
leo
7a87b91e9b Add suline/susword prototypes for new trap.c 1996-09-10 08:45:16 +00:00
jonathan
be23611556 Apply diff from the 1.2 release branch, so that ugly IOASIC debugging
is disabled by default:
>revision 1.9.4.2
>date: 1996/09/09 20:19:11;  author: thorpej;  state: Exp;  lines: +2 -18
>Disable IOASIC_DEBUG so that autoconfiguration looks normal, by request
>of Jonathan Stone
1996-09-09 21:32:20 +00:00
mycroft
b3ffba62a6 Move strip(1) flags into a separate variable, so that $STRIP can
be passed to subordinate make(1)s.  Remove $TOUCH.  Add HOSTED_CC,
HOSTED_CPPFLAGS, and HOSTED_CFLAGS, and use them when depending genassym.
1996-09-09 21:06:55 +00:00
mycroft
dbacbd3636 Use machine/asm.h. Garbage collect. 1996-09-09 18:42:51 +00:00
cgd
7ba205c37e Sync the 53c94 SCSI driver with the sparc version. Update the DMA code to
match the interfaces required by the driver.
1996-09-09 18:10:35 +00:00
mycroft
379839a0df Make the build process more sane. 1996-09-09 18:07:40 +00:00
cgd
adeb6b4058 replace sequences of 8 spaces with tabs (only one instance). kill
unnecessary newlines after return statements but before function
close-braces.
1996-09-09 18:01:30 +00:00
mycroft
825aca4d5d Oops; include paths are relative to $S. 1996-09-09 17:18:47 +00:00
mycroft
3fbde733bc Sync with version in ../boot. 1996-09-09 16:55:11 +00:00
cgd
2b118fc59b add entries for rd (cdev + bdev), ss (cdev), and uk (cdev). 1996-09-09 16:38:52 +00:00
mycroft
842eae0878 Add a file for local additions to GENERIC. 1996-09-09 16:37:08 +00:00
mycroft
a693d5fcb0 Sync with GENERIC. 1996-09-09 16:33:20 +00:00
cgd
65538ec48d add specs for 'rd' 1996-09-09 16:31:36 +00:00
mycroft
02b3e8d73e Add ss, uk. Minor touchups. 1996-09-09 16:30:47 +00:00
mycroft
97c4dc0c80 Remove old comment about rd, and add to chrtoblk[]. 1996-09-09 15:51:34 +00:00
jtk
4b9b2da0f5 I meant to depend on apm.h, not Makefile 1996-09-09 11:34:01 +00:00
jtk
ec11419661 fix compilation problems when APM not configured 1996-09-09 11:31:40 +00:00
jonathan
de227b74e6 * Add missing printf("\n") at end of attach routine in cfb, sfb, pm drivers. 1996-09-08 19:28:03 +00:00
oki
9682743e21 delete unused prototype. 1996-09-08 18:46:12 +00:00
mycroft
a32047fa0c Add cdev_decl(rd), for previous. 1996-09-08 15:59:56 +00:00
jtk
3b509ead1a whoops, forgot to include flags details in bioscall() comments 1996-09-08 15:51:39 +00:00
jtk
1a1feb3827 change APM to use new almost-generalized BIOS trampoline:
/*
 * void bioscall(int function, struct apmregs *regs):
 * 	call the BIOS interrupt "function" from real mode with
 *	registers as specified in "regs"
 *	(for the flags, though, only these flags are passed to the BIOS;
 *	the remainder come from the flags register at the time of the call:
 *	(PSL_C|PSL_PF|PSL_AF|PSL_Z|PSL_N|PSL_D|PSL_V)
 *
 *	Fills in *regs with registers as returned by BIOS.
 */

Thanks to Charles Hannum for complaining and inspiring me to hack this
together.
1996-09-08 15:43:37 +00:00
jtk
fda7345c98 re-implement BIOS trampoline as a more general-purpose, reusable trampoline.
calling interface (via a grapple in locore.s) is:
/*
 * void bioscall(int function, struct apmregs *regs):
 * 	call the BIOS interrupt "function" from real mode with
 *	registers as specified in "regs"
 *	(for the flags, though, only these flags are passed to the BIOS;
 *	the remainder come from the flags register at the time of the call:
 *	(PSL_C|PSL_PF|PSL_AF|PSL_Z|PSL_N|PSL_D|PSL_V)
 *
 *	Fills in *regs with registers as returned by BIOS.
 */

still some generalization to do (moving this to a better named location,
cleaning up #if tests from NAPM > 0 to something else to allow easy
sharing by other drivers)

Thanks to Charles Hannum for complaining about the previous BIOS grapple
and inspiring me to hack this one together.
1996-09-08 15:36:51 +00:00
jonathan
50326ae738 * Call doshutdownhooks() before rebooting.
* Split the machine-dependent part of  rebooting out into a separate
  function, prom_halt(), making boot() a candidate for moving into
  mips/mips.
1996-09-08 11:49:49 +00:00
is
3efed5ad51 s/reutrn/return/, although in normally inactive code. 1996-09-08 11:21:11 +00:00