Commit Graph

623 Commits

Author SHA1 Message Date
leo 080ee49d98 minimal pci support 1996-10-05 21:41:36 +00:00
leo 3b5c181c8b Checkpointing my et4000 work. Note that the et-console will not be
functional until the minimal pci-support is checked in.
1996-10-04 07:27:52 +00:00
leo f5fd8ff1f9 Additions for the et4000 driver & pci-bus.
Note that there are still missing pieces so both et4000 & pci can not yet
be used.
1996-10-04 07:12:39 +00:00
leo 982a1c25f7 Add the COMPAT_12 options. For GENERIC, also add the ch/ss/uk devices. 1996-10-04 07:08:28 +00:00
leo c2f94265a2 Only prototype the writeback() function when the M68040 option is defined. 1996-10-04 07:04:46 +00:00
leo 8eb8b97265 Grok the broken ICD partition format. This should be part of the 1.2 patches. 1996-10-04 07:02:17 +00:00
leo d8a6bb6779 Add ch/ss/uk devices. 1996-10-04 06:56:25 +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
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
thorpej e469c7beca Use <m68k/cpu.h>. 1996-09-11 00:11:42 +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
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
thorpej de5110f41e Use <m68k/exec.h>. 1996-09-08 01:00:35 +00:00
mycroft e6dd44f034 Use SIGBUS iff we get a legitimate bus fault. Use SIGSEGV for page protection
violations (per Solaris, SVR4, AIX, Linux, Irix, and SunOS).
1996-09-07 22:26:41 +00:00
mycroft 2bc736661a Implement poll(2). 1996-09-07 12:40:22 +00:00
mycroft fc3def4096 Remove duplicate declarations of LKM functions and macros. 1996-09-05 15:46:22 +00:00
mycroft b3eac79b64 tty stop functions really should return void, not int, and certainly not both. 1996-09-02 06:43:16 +00:00
mycroft 30a617c634 Wrap the default definition of `S' in `.ifndef'. 1996-08-31 21:40:47 +00:00
cgd 71ad30d0e9 (1) set scsi_link channel to either the appropriate channel (if a
multi-channel driver), or to SCSI_CHANNEL_ONLY_ONE if a
    single-channel driver.
(2) use scsiprint() rather than a locally-defined autoconfig print
    function, and kill any locally-defined print function.
1996-08-28 18:59:15 +00:00
cgd 2a73ef60b7 change cfprint_t type definition to take a const char *, rather than
a char *, because that's what was really intended, and because
if the print function modifies the string, various things could become
unhappy (so the string should _not_ be modified).
1996-08-27 21:53:46 +00:00
mrg b8e9f36083 add COMPAT_12. 1996-08-26 23:39:36 +00:00
leo 4c996d1a2a Fix a compiler error. 1996-08-23 20:06:29 +00:00
leo 2df99561c9 - Make the Hades a valid machine type
- Add some 68040 specific prototypes.
1996-08-23 11:21:01 +00:00
leo 0f6a2c3cef - Make all definitions relative to 'stio_addr'
- Add the PCI areas.
1996-08-23 11:17:00 +00:00
leo 3a68f68754 Don't use an absolute I/O adress. 1996-08-23 11:14:59 +00:00
leo 26039da980 Fix some compiler warnings. 1996-08-23 11:12:51 +00:00
leo dd183a092a Recognize the Hades as a valid machine type. 1996-08-23 11:11:51 +00:00
leo d546be9627 Make the fpu config info print somewhat nicer. 1996-08-23 11:10:10 +00:00
leo 6ab410f919 - Make it compile & work for the 68040
- Map the various I/O areas just below Sysmap
- Cleanup a bit
- Fix machine-type detection to recognize the Hades.
1996-08-23 11:07:56 +00:00
leo 6aab91675e Revert to polled-DMA on Falcon. 1996-08-16 08:25:46 +00:00
mycroft 558d72128e Put into . Remove hooks for `config-dependent' and
`device-driver' flags.
1996-08-12 00:51:24 +00:00
mycroft cf67f29afe * Add a HOSTED_C_C variable, which strips `-p', `-pg', and
`-nostdinc', and use it when building genassym.
* Use `-nostdinc' just to be sure we're self-contained.
1996-08-10 06:07:57 +00:00
mycroft f94052ed3a * Define CWARNFLAGS and MKDEP in some moderately consistent fashion.
* Make S expand to an absolute path at compile time.
* Use `-S' rather than `-x' to remove debugging symbols.
* Garbage collect unused variables.
* Reverse a handful of port-specific changes that do not correspond to
the common build model and are not needed.
1996-08-10 05:29:24 +00:00
mrg 5abbf990f3 Change reboot(2) to take two arguments: bootopt like normal and also
a boot string for firmware that can do this, such as the SPARC and
the sun3 models.  It is currently silently ignored on all other
hardware now, however.  The MD function "boot()" has been changed to
also take a char *.
1996-08-09 10:30:23 +00:00
leo 1285fe171c Checkpoint integration of 68040 MMU support. Also fix oversight in allocation
of (virtual) I/O area address range.
1996-07-20 20:52:30 +00:00
leo 95c6d227a5 Add a prototype. 1996-07-20 20:48:36 +00:00
leo 5a1a623e41 keymap -> keymaps 1996-07-15 06:35:43 +00:00
leo 50bb4b170b Sync with cleanup of atari_init.c 1996-07-12 13:27:37 +00:00
leo 5d0677fbdf Fix a prototype warning. 1996-07-12 13:17:45 +00:00
leo 38cbb4640f Sync with atari_init cleanup 1996-07-12 13:16:31 +00:00
leo a6a57e8631 - Cleanup a bit
- Remove mapping of page zero
- Remove hackery around the first 8 bytes that were mapped to ROM by hardware
1996-07-12 13:14:23 +00:00
leo f8f011861e - Cleanup a bit
- Remove the kernel-jump-to-zero code as page zero mapping is removed
- Weed out cpu040 usage, use mmutype instead
- Fix doboot code
- add fill for page zero
- use m68k/sigreturn.s
1996-07-12 13:12:40 +00:00
leo 4b5bff0d0f During a rather lengthy debug session with Markus Kilbinger (Thanks again!),
we managed to kill the following SCSI-driver bugs for the Falcon:
   - The Byte_Count_zero bit of the falcon DMA controller does not always
     tell the truth! This caused the SCSI-driver to choke on devices that
     disconnected in the middle of a DMA-transfer (mostly removables).
   - Printing debug info about the 5380 on the Falcon is *only* permitted
     when DMA is not active.
   - Some functions forgot to remove possibly pending sofware interrupts
   - Some debug options didn't allow debugging a single target while they
     could easily be made to do so. This is fixed.
1996-07-05 19:35:35 +00:00
leo f1af6a2252 Add missing spl0() call. 1996-07-05 19:22:21 +00:00
leo ec3f2031a8 Change accesses to 'ssir' to inline asm macro's. 1996-07-04 07:25:13 +00:00
leo 3fa481b30d Update to match NetBSD version. 1996-06-29 20:51:58 +00:00
leo 1ed5af88ee Define LIBCRT0. This tries to defeat the attempts of bsd.prog.mk to add
${DESTDIR}/....crt0 to the link rule when $DESTDIR is set.
1996-06-29 20:48:41 +00:00
leo 4b558a4b6a Remove references to kern_extern.h 1996-06-29 20:24:25 +00:00
leo 1cf023be2b s/keymaps/keymap/ 1996-06-22 21:01:29 +00:00
leo d7160491e3 Install loadkmap in the default distribution. The keymap files are moved
to ..../stand/keymaps and have their own Makefiles there.
1996-06-22 20:21:55 +00:00
leo 323c486e74 Add the subdirs: binpatch, keymaps and loadkmap. 1996-06-22 20:18:15 +00:00
leo 1a5ae2120a Atari keyboard maps 1996-06-22 20:14:09 +00:00
leo e07a535f4e Some minor nits. 1996-06-20 19:41:01 +00:00
leo 2c4c524e54 Use -S rather than -x for "normal" link flags. 1996-06-18 11:12:32 +00:00
leo 1301d25702 Pull down from release. Sorry, should have been the other way around.... 1996-06-18 11:10:04 +00:00
leo cf50b9a115 Add fpfault & bus error handling corrections from Ignatios Souvatzis. 1996-06-18 06:13:46 +00:00
leo d84f4c4b18 Add tty_attach() calls. 1996-06-18 05:54:59 +00:00
cgd 352d972c94 locc() is unused. Remove it from the machine-independent kernel interface. 1996-06-10 15:33:33 +00:00
leo e81bea0de0 Add loadkmap 1996-05-30 13:44:36 +00:00
leo 0b59a91269 Add missing spl(x). (Jason Thorpe) 1996-05-30 13:41:58 +00:00
leo 5d8d243a6e Add UCONSOLE option. 1996-05-29 12:28:06 +00:00
leo d48f93eef5 Add 'kernel_text' symbol (Gordon Ross). 1996-05-26 20:50:53 +00:00
leo c4b5129d5d Add edahdi to the subdirs. 1996-05-16 20:03:53 +00:00
leo 9e086936f3 Remove files commited in the wrong directory. Sorry. 1996-05-16 20:02:33 +00:00
leo 15f7f8dcfd edahdi, an AHDI partition-id editor 1996-05-16 19:51:25 +00:00
leo 4001987d06 Make a BOOTX(tra) config file. It suits more people than BOOT and it allows
me to keep the BOOT config small.
1996-05-15 12:57:32 +00:00
leo b4ca145026 Get in sync with the mac68k version of the 5380 driver. Also increase
the maximum values of wait_req_xx() functions so some old (slow) scsi-1 drives
will work.
1996-05-15 09:21:29 +00:00
leo b0db2f6250 French keyboard map (Cedric Moreau). 1996-05-15 09:15:14 +00:00
leo dd8fd30935 Prototype + -Wall fixes. 1996-05-15 07:28:51 +00:00
leo 5f0e599c40 Remove a line of debugging code. 1996-05-14 10:25:01 +00:00
leo de6b7f34fc Make dk_establish() a void function. 1996-05-14 10:23:29 +00:00
leo c1381aa33f Document some more interesting options. 1996-05-14 10:21:48 +00:00
leo 1dd829a703 Update to make this work correctly when using an obj-directory. 1996-05-14 10:16:13 +00:00
mycroft 540f9550c0 Make `make depend' work for libraries. 1996-05-11 16:11:30 +00:00
leo b926918576 There seem to be 2 types for a trap frame.... 1996-04-29 20:55:44 +00:00
leo b26b45a14d Corrections for removed <sys/cpu.h> and some more prototypes. 1996-04-26 06:59:15 +00:00
leo 7f0e5ecf77 - Fixup the ipending function for the Falcon. This seemed to be the source
of a lot of instability problems on the Falcon. I also enabled DMA on
  interrupt basis for the Falcon.
- Try to handle targets that request too much data more sanely.
- Some fixups for strict prototypes + -Wall

Thanks to Markus Kilbinger for providing the debugging support.
1996-04-26 06:50:12 +00:00
leo df8c6afda1 Ignore joystick packages when running in 3b. emulation mode. 1996-04-23 11:02:01 +00:00
leo 18dd6b0909 Prototypes. 1996-04-19 20:35:31 +00:00
leo f4e4aeed3c Check for curproc being NULL in pmap_remove(). 1996-04-19 20:33:01 +00:00
leo b3fadef7e0 Yet more prototyping and -Wall fixes. 1996-04-18 08:51:11 +00:00
leo 6e40f439fc Part of restructuring done for 3-button mouse support. 1996-04-12 19:55:28 +00:00
leo 658385632c Prototyping. 1996-04-12 09:05:14 +00:00
leo e7ad591a96 misc.c ->stalloc.c 1996-04-12 08:57:43 +00:00
leo 7a18bb9542 Just give them more descriptive names. 1996-04-12 08:46:44 +00:00
leo 9402dcae81 Add 3-button mouse support. 1996-04-12 08:39:22 +00:00
leo e4a9d09efb Add 3-button mouse support. 1996-04-12 08:37:03 +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
christos 933d138841 Change %r -> %: as for recursive printf's 1996-03-30 21:01:21 +00:00
leo 4f5cc6fac1 Drop in a more interlligent version check. 1996-03-28 21:53:35 +00:00
leo ccde176c63 Small nits because of changes in ym2149 handling. 1996-03-27 12:15:28 +00:00
leo 202c5712f6 - Add printer device
- Add ym2149 files
- Make ramdisk a pseudo-device
1996-03-27 10:31:09 +00:00
leo 28e46e648f Add centronics printer driver. 1996-03-27 10:20:44 +00:00
leo 8526e9844c Allow call-back functions to drop to spl0(). 1996-03-27 10:16:04 +00:00
leo 72e826cbd4 Remove rd_match_hook(). 1996-03-27 10:13:09 +00:00
leo c5a7f4e977 Take out direct access to the YM2149. The chip definitions are moved
from video.h to ym2149reg.h.
1996-03-27 10:07:45 +00:00
leo 634f5ade49 Correct #ifdef that survived the after-debug cleanup (Thanks Chris). 1996-03-22 09:07:03 +00:00
leo 8106a55133 And more proto's..... 1996-03-20 13:11:56 +00:00
leo e0aeb3dc13 Another bit of prototyping... 1996-03-20 12:41:30 +00:00
leo 083fa0d1b9 Belongs to the last changes made to the ??boot/??boot.s files I did
yesterday.
1996-03-20 08:23:35 +00:00
leo 7b7df70d77 Fix typo in neew config changes. 1996-03-20 08:17:48 +00:00
leo 414369f5c6 Use the right cd-names. 1996-03-19 13:16:47 +00:00
leo 38432e7448 Debugger() prototype is in systm.h, don't define Debugger() here. 1996-03-19 13:15:34 +00:00
leo 39a234873d Build the 'stand' directory. 1996-03-18 21:08:36 +00:00
leo d36f15a208 Take care of the case that <start_of_video> < <memtop> 1996-03-18 21:06:19 +00:00
cgd 94907fa254 adjust to deal with expression support for optional file specs 1996-03-17 13:21:09 +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
thorpej 5c67e5fad9 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:16:48 +00:00
leo 55b65fb49a Switch to the mi ramdisk driver. 1996-03-14 21:41:04 +00:00
christos ab0e60a42f fdopen -> filedescopen 1996-03-14 21:20:59 +00:00
leo 2273338717 Add the include files and the atari kernel support for new format panic
dumps.
1996-03-10 21:54:44 +00:00
leo 7da79507e9 Take the type of the attached monitor into account when selecting a
display-mode. Includes hack to make things work on non-VGA monitors.
1996-03-10 11:42:35 +00:00
leo 77e4824146 Just prototyping. 1996-03-08 21:54:53 +00:00
leo a91a46bc0f When having a perfect match on the resolution, try to match the screen
depth as best we can.
1996-03-08 21:52:50 +00:00
leo bb2b6106da Fix a bug in the DCD handling. Because the state of the DCD line was
kept in a soft-copy that wasn't initialized on open, it sometimes happend
that a change of the carrier got lost. Also fixed some prototypes.
1996-03-08 21:50:40 +00:00
leo 957e1c5c7d Use files.scsi 1996-03-06 14:47:44 +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
leo e800077389 Added to build the bootloader stuff. 1996-02-29 11:41:31 +00:00
leo 48f5b02304 NetBSD/Atari bootcode by Waldi Ravens. 1996-02-29 11:35:46 +00:00
leo e538eed242 NetBSD/Atari bootcode by Waldi Ravens. 1996-02-29 11:35:05 +00:00
mycroft 2ce52ae489 Define build programs with `?=', so they can be overridden with `makeoptions'. 1996-02-26 02:53:20 +00:00
leo db7d722c4b A bit of reshuffling. Also some stricter prototyping. 1996-02-22 21:07:05 +00:00
leo c9dfd5cb44 First bunch of changes due to stricter prototype checking. 1996-02-22 10:10:44 +00:00
leo dc321cad51 New disklabel handling code (Waldi Ravens).
These are the final (?) modifications to the layout of the NetBSD/Atari
bootblock. The bootblock handling can be made backwards compatible using
the right config options (COMPAT_11 + DISKLABEL_AHDI).
1996-02-19 09:05:31 +00:00
leo 7992289e54 Fix unterminated comment. 1996-02-14 08:10:51 +00:00
leo 2708c1593e Oops, should have been updated in conjunction with ncr5380.c . 1996-02-14 08:09:47 +00:00
leo 35d120d71d Some extra range-tests on the RTC values. 1996-02-11 12:42:19 +00:00
leo 2bbdc4b9c7 Be a bit more carefull when accessing the proc structure on a kernel buserror. 1996-02-11 12:41:25 +00:00
leo 8d7918526b Various small fixes. 1996-02-10 22:10:45 +00:00
leo 063216ccfd Remove reference to setjmp.h 1996-02-09 20:53:59 +00:00
leo 89bbb8b2fb Catchup with the future. 1996-02-09 20:52:04 +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 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 9d9a70a5a2 Fix #includes. 1996-02-02 18:05:36 +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
gwr c2c1c1b11a Move struct definitions to MD code. 1996-01-24 19:21:40 +00:00
leo ae2b8aaf1f STANDALONE -> TOSTOOLS 1996-01-23 20:34:07 +00:00
leo 1481622cdb Fixes 'hanging' problem when closing a serial port. 1996-01-23 09:35:15 +00:00
leo 88a221b7fb BBSIZE -> BBMINSIZE 1996-01-20 13:54:46 +00:00
leo 567396ea78 Use symbolic constants for ATARI_ANYCPU instead of dropping in a hex-value. 1996-01-19 13:54:12 +00:00
leo a946c7f421 Special handling for 2 and 4 byte sized transfers. The makes accessing
device registers work in a sane way. (gwr)
1996-01-19 13:51:11 +00:00
leo 58758809e5 - Remove FPU defines, the FPU-type is no longer determined by the loader.
- Add some forgotten CPU-types (Waldi Ravens).
1996-01-19 13:46:56 +00:00
leo cb560ce386 Move things around a bit to make all names fit into the [8.3] namespace
of msdosfs.
1996-01-16 15:14:53 +00:00
thorpej 57219ebad3 Remove vnode_if.[ch] during a "make clean", per PR#536 from
Dan Carosone <danielce@ee.mu.oz.au>.
1996-01-14 21:06:47 +00:00
leo 9186c7668f The changes frpm Paul Goyette with respect to the driver trace require
DBG_PID to be defined to an interger value....make it so.
1996-01-14 13:06:37 +00:00
leo 485b90b6f1 Fix the same typo in all files. Yanking is soooo beautiful.... 1996-01-09 09:55:06 +00:00
leo 7ab5688547 Remove a stray MAXPARTITIONS definition. 1996-01-07 22:30:41 +00:00
leo 783817cc8b Part of the tostools reorganization. All directories now contain a Makefile
and the user interface to the various tools has been standarized.
1996-01-07 22:05:31 +00:00
thorpej 5b39541e48 New generic disk framework. Highlights:
- New metrics handling.  Metrics are now kept in the new
	  `struct disk'.  Busy time is now stored as a timeval, and
	  transfer count in bytes.

	- Storage for disklabels is now dynamically allocated, so that
	  the size of the disk structure is not machine-dependent.

	- Several new functions for attaching and detaching disks, and
	  handling metrics calculation.

Old-style instrumentation is still supported in drivers that did it before.
However, old-style instrumentation is being deprecated, and will go away
once the userland utilities are updated for the new framework.

For usage and architectural details, see the forthcoming disk(9) manual
page.
1996-01-07 22:01:38 +00:00
leo 94bf233ae9 Atari partion table checker. Checks the validity of AHDI and/or NetBSD/Atari
partition tables. (Waldi Ravens)
1996-01-07 21:54:15 +00:00
leo b24ea33cac Common library for all tostools. (Waldi Ravens and myself) 1996-01-07 21:50:49 +00:00
leo 125fcfc979 These files can now be found in tostools. 1996-01-07 21:10:37 +00:00
leo aadb005f6a Reorganization of the stand-directory. All tools that are TOS specific and
can (probably) only be compiled under TOS are now being grouped in the
sub-directory 'tostools'.
1996-01-07 20:57:03 +00:00
leo 57a3b5b00c Keep more debugging history (Paul Goyette). Synced with mac68k version. 1996-01-06 20:17:15 +00:00
leo 356a61ab95 Add an nvram-driver. This driver makes it possible to read/write the
configuration info stored in the nvram on the mc146818.
1996-01-06 20:10:41 +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
leo c8574c59f7 Allow selection of Falcon (videl) video modes other than the mode selected
on startup (Thomas Gerner).
1996-01-02 20:59:20 +00:00
leo b46db7160c - Remove an unwanted interference between the 2 channels.
- Allocate the ringbuffer on a channel's first open.
1995-12-25 14:16:50 +00:00
leo 608b4cc605 Fix possible integer overflow when allocating PT map. 1995-12-25 14:13:53 +00:00
leo 7682dd538b Add doshutdownhooks 1995-12-25 14:09:13 +00:00
mycroft ce000f04ef Remove deprecated cpu_setstack(). 1995-12-21 05:01:32 +00:00
leo ea5c7dd80d Oops, forgot to change one fixed address into a define. 1995-12-18 20:40:59 +00:00
leo 1e5442c0ba Fixes for devices that don't support linked commands. (Paul Goyette) 1995-12-18 20:37:51 +00:00
leo 64f1b42bb4 Correct PCLK value. 1995-12-16 21:45:31 +00:00
leo 987f8774c3 Make an NMI activate the debugger. This only works on a TT and needs a small
hardware patch. This makes it easier to debug drivers that hang on an ipl
> splsoft.
1995-12-16 21:40:28 +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
leo 8dff161947 Make sure that the motor will be turned off when a floppy is inserted. 1995-12-10 14:25:12 +00:00
mycroft 0e0ac5ed68 cpu_fork() now returns void. 1995-12-09 04:37:23 +00:00
leo fc587cf917 Something forgotten in the namespace changes. 1995-12-03 14:34:24 +00:00
leo 70875fa68f Return a more sensible errno when someone is trying to set the unsupported
mdmbuf option.
1995-12-03 14:32:39 +00:00
leo 5f2ab2109f Use files.fpe 1995-12-01 19:53:07 +00:00
leo ca1cc64e20 Remove forgotten #endif 1995-12-01 19:51:53 +00:00
leo e267646321 KNF-ify 1995-11-30 21:55:01 +00:00
leo 291d8cbf3a Add kernel option for separate {stat,prof}clock 1995-11-30 21:52:46 +00:00
jtc 0cd793449e merge in changes from 1.1 release branch 1995-11-30 00:56:23 +00:00
leo 3b8542c63a The Falcon needs a delay after writing the dma_data register (Thomas Gerner) 1995-11-06 21:13:38 +00:00
leo ebc6d5a705 Use general bound-check function. 1995-10-14 20:17:46 +00:00
leo 79053fd0de Allow only transfers that are a multiple of DEV_BSIZE when doing 'raw' I/O. 1995-10-14 13:04:19 +00:00
leo 0e5fe20560 - Cleanup the arbitration
- Make sure the MON_BUSY flag is cleared after a DMA transfer. Otherwise
  we might end up with a 'lost-busy' situation unexpectedly. This will
  prevent the 5380 from driving the bus, which is not funny during
  reselections.
1995-10-08 13:34:23 +00:00
mycroft 245f292fed Prefix names of system call implementation functions with `sys_'. 1995-10-07 06:25:19 +00:00
leo 7d3bc89420 Get in sync with the mac68k version to incorporate Allen Briggs' changes
- emit MSG_ABORT/MSG_REJECT at the right times:
 - make MIN_PHYS machine dependent.
1995-10-05 08:52:53 +00:00
leo 1c107bd3e6 Add CD9660 option. 1995-09-30 12:48:12 +00:00
leo 44561deb01 Add support for the FX-card - Falcon mem. extension - (Nat!) 1995-09-23 20:31:21 +00:00
leo 7af927b56d Make sure the prototypes and inline definitions are included. 1995-09-23 20:29:16 +00:00
leo afea10f476 Correct mapping for new (iso-8859-1) fontsets (Thomas Gerner). 1995-09-23 20:27:15 +00:00
leo f28a41635b Make them compliant to iso-8859-1 (Thomas Gerner). 1995-09-23 20:25:34 +00:00
leo c150cc4d37 PROF -> GPROF 1995-09-23 20:23:28 +00:00
leo e44fc4282e Use -msoft-float as suggested by Gordon Ross. 1995-09-23 20:22:01 +00:00
thorpej 2d61359f60 Compile the kernel with -Werror and -fno-builtin. 1995-09-19 23:33:12 +00:00
thorpej 7d7396c414 Make system calls conform to a standard prototype and bring those
prototypes into scope.
1995-09-19 22:53:47 +00:00
leo dff8e2275e Fix segment table reference bug (Michael Hitch) 1995-09-16 14:18:09 +00:00
leo a2a0fe9c66 - Handle devices that do not support identify messages (Allen Briggs)
- Add pdma_ready() hook (Allen Briggs)
- Increase timeout to 1000 (Matthias Pfaller)
1995-09-16 14:15:10 +00:00
leo e34d65cb12 - Fix a timing bug in the loop, that was introduced in the previous version.
- Added some code to reject unsupported messages correctly.
1995-09-12 19:58:53 +00:00
leo 7640742d5b Fix possibly endless loop (mycroft) and add fix requested by Allen Briggs. 1995-09-05 07:02:21 +00:00
leo eb9d1db57a Right align color values in the bytes. 1995-09-04 19:41:39 +00:00
leo eee0dbbda7 Allow chars > 0x7f to be displayed on the ite's 1995-09-04 19:39:21 +00:00
leo 75dfa4a054 Add memcpy entry as suggested by gwr. 1995-09-04 19:37:45 +00:00
leo 4eb595b1d2 Fix missing clock-ticks in child after fork as suggested by cgd & Allan Briggs. 1995-09-02 19:44:45 +00:00
mycroft 29053c58b2 SA_ONSTACK --> SS_ONSTACK 1995-09-01 20:05:59 +00:00
leo 33a26fbd65 Remove FPU detection and report on stdout instead of stderr. 1995-08-29 20:35:15 +00:00
leo 8f5551f5fd Fix rule for manual page. 1995-08-29 20:26:39 +00:00
leo bd699fca29 Fix typo in previous commit 1995-08-28 20:07:04 +00:00
leo dd73a31ed8 Detect type and precence of an FPU in the kernel instead of relying on GEM. 1995-08-28 19:31:06 +00:00
leo 9c9abeb6c3 Add Falcon video support. Thanks to Thomas Gerner. 1995-08-20 18:17:09 +00:00
leo 34e65502e7 - make sure that there is 1 pending software interrupt max.
- read status before character, so the status won't be lost (Thomas Gerner)
- accumulate as much interrupts as possible in zshard()
1995-08-20 13:28:10 +00:00
leo 6b9a15416a - Add 'restbyte' handling for TT.
- Don't _ever_ do DMA for less than 512 bytes on the Falcon
- Fix bug in autosense-handling. Now asks for the correct number of bytes.
  Now it won't read ghost bytes on the tape anymore.
- Add missing braces as suggested by Matthias Pfaller
- Make it possible to debug requests on a specified number of targets
- Add debug option to show only transaction with error code != 0
1995-08-19 12:36:21 +00:00
leo db846246ba Add video registers and other defines for Falcon video. 1995-08-17 20:34:04 +00:00
leo 44d433786d Remove 2 wrong proto-types. 1995-08-17 20:32:50 +00:00
leo a1fe704278 Initialize the YM sound-chip to a sane state. 1995-08-17 20:31:31 +00:00
thorpej 66dcd8fd69 Add entries for the ccd. 1995-08-17 17:40:42 +00:00
mycroft ddd123a7c5 Replace splnet() with splsoftnet(). Add splnet(). Make splimp() > spltty(). 1995-08-13 00:21:54 +00:00
mycroft c5ec5c3003 Add splsoftnet(). 1995-08-13 00:03:11 +00:00
mycroft 80d7b0695a minphys() functions really should return void. 1995-08-12 20:30:45 +00:00
leo 24644e5151 New version of NCR5380-SCSI driver. This version is far more generic than
the previous version. The machine dependent part contains the configuration
for both the TT and FALCON. The configuration files have been changed to
select SCSI-support for either TT, Falcon or both.
The configuration file for the Atari-Falcon will only get _really_ usefull
when the Falcon video part is finished.
1995-08-11 20:01:15 +00:00
leo 3f76d2e7eb Add disklabel support. In addition to the 'faked' disklables NetBSD/Atari
now also supports native NetBSD labels. When a NetBSD label is found it
overrules the Atari AHDI-partitioning.
1995-08-05 20:24:16 +00:00
leo cd73c9f0cb Add middle button emulation. 1995-07-27 06:35:46 +00:00
leo 2826d4fa30 A forgotten file for the kbdmap fixes. 1995-07-25 13:49:26 +00:00
cgd ffe4785a58 update SCSI minphys routines' definitions to match standard minphys()
definition and usage.
1995-07-24 07:33:32 +00:00
cgd da9c1b5e48 fix minphys so that it actually works properly 1995-07-24 07:31:45 +00:00
leo 052e19d7fd Change and fix the way of keyboard mapping. Each virtual console has it's
own private keymap, initialized on open from the system-keymap. Both
system and private keymaps are settable.
1995-07-24 05:56:06 +00:00
leo a4578576c6 Added -f option to reload system-wide keymap (instead of current screen one). 1995-07-24 05:47:48 +00:00
leo 5f98065492 Use the right includes 1995-07-24 05:44:43 +00:00
leo c6e852a141 The mappings for the german keyboard layout. 1995-07-19 20:45:27 +00:00
leo 14ac72899c Add pppintr() to netintr(). 1995-07-13 21:36:09 +00:00
leo 8e01fc80af Update raw-io functions as suggested by Charles. 1995-07-12 21:41:03 +00:00
leo be029faea0 Use -O2 1995-07-11 21:28:38 +00:00
leo b57f0c784d Oops, this one is also needed to make dumping work. 1995-07-11 21:27:35 +00:00
leo c98355931a Remove some bogus comment. 1995-07-11 21:25:32 +00:00
leo 0343d208c4 Fix pseudo tty's 1995-07-11 21:24:29 +00:00
leo b87c200b08 - Change character interface as suggested by Charles
- HD floppies really have 2 sides ;-)
- Cleanup drive/density selection
1995-07-11 18:32:07 +00:00
leo 2cad659038 Make DD/HD selection do anything sensible. 1995-07-11 18:27:31 +00:00
leo a5b73613fc Dumping works, now if there were tools to handle it... 1995-07-11 18:24:57 +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
leo d9019191a0 NetBSD/Atari keyboard mappings 1995-07-03 20:49:40 +00:00
cgd 2b71eae2c7 note that most of dev/ic's contents have changed names 1995-06-28 04:30:30 +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 d4a54b73d2 kill user-land DELAY macro, as suggested by gwr. 1995-06-28 02:43:36 +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 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 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
leo 4abd54fe69 Mouse driver added. 1995-06-25 19:05:23 +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
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
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
leo 633db03b5b Check for a different year-base in the RTC. 1995-05-28 10:56:16 +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
jtc f90f8d10aa Removing -DKERNEL, transition to _KERNEL has been completed 1995-05-16 22:24:17 +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