Commit Graph

11213 Commits

Author SHA1 Message Date
thorpej 309169617d Factor out a few process manipulation routines found in all m68k
locore.s's.  Currently includes run queue manipulation.
1997-04-09 19:22:49 +00:00
thorpej 175da6b4a7 Factor out the regdump() function used by all m68k ports. 1997-04-09 19:21:47 +00:00
thorpej 2f5b398ad4 Prototype regdump(). 1997-04-09 19:21:06 +00:00
thorpej 0a089bceec Add bcopy.s, copy.s, copypage.s, and regdump.c; they're common to all
m68k ports.
1997-04-09 19:20:23 +00:00
mrg bb07095632 as per discussion with torek, allow TC=1. also add option
to allow TC=0.  the zilog documentation says not to allow
TC=0 -- however, i tested this and it "does work", as far
as i could tell, so, allow this use if so desired.
1997-04-09 13:15:13 +00:00
scottr a2a2afbe56 Sigh. Bracket a label used only #ifdef COMPAT_SUNOS. 1997-04-09 07:22:12 +00:00
jeremy fa9f5b2448 Constants for the p4 register. 1997-04-09 04:50:43 +00:00
jeremy 3c962bb544 First working version. 1997-04-09 04:49:09 +00:00
scottr 63d0d33c86 Make C-\\ work; from Bill Studenmund, who noticed the swapped keycodes.
Closes PR #3294.
1997-04-09 04:48:57 +00:00
jeremy 5efd258691 Add p4 register pointer to softc struct. 1997-04-09 04:47:13 +00:00
jeremy 085494c2d9 Add location of P4 register. Maybe this should go in obmem.h? 1997-04-09 04:46:11 +00:00
jeremy d4285e0617 Add needed support for P4 register. Works with X now. 1997-04-09 04:43:52 +00:00
jeremy b7dd41d4e2 Location of printer port registers for 3/80 was off. 1997-04-09 04:42:25 +00:00
jeremy ee8819cf64 Obio and obmem busses now support devices with vectored interrupts. Needed
for floppy driver.
Made comments about soon-to-be introduced parallel port driver more specific.
1997-04-09 04:38:49 +00:00
jeremy 60d41bb34e Add floppy controller and floppy drive. Also add MS-DOS filesystem for
use with floppies.  Remove 'SYMTAB_SPACE' now that we have our own
bootloader.
1997-04-09 04:36:56 +00:00
gwr 69b70455c9 Zap AFLAGS 1997-04-08 22:04:16 +00:00
leo 92b96871ea Turn the 'extern' definition of mcount() into a full prototype. 1997-04-08 20:39:01 +00:00
pk 242d365b70 Move "range" property description out of generic `romaux'.
Add getproplen() function.
1997-04-08 20:08:53 +00:00
pk cc7899605a Move "range" property description out of generic `romaux'.
Allocate room for this property when needed in bus attachment.
1997-04-08 20:08:20 +00:00
pk bb1d4e0540 Move "range" property description out of generic `romaux'. 1997-04-08 20:06:26 +00:00
scottr 58d41d0f98 Fix several more instances where the volatile modifier was needed.
From Allen.
1997-04-08 06:53:28 +00:00
scottr a051dc4e0f Fix typo: MRG_DEBUG -> MRG_ADB 1997-04-08 06:16:07 +00:00
scottr 042e6d3b98 Add 'done' symbol for last change. (oops.) 1997-04-08 06:02:04 +00:00
scottr bd9967862f Clean up unused code, KNF bus_probe() 1997-04-08 05:27:28 +00:00
briggs df0a7e0440 Changes from Michael R. Zucca <mrz5149@cs.rit.edu> for 16-bit and 32-bit
console support.
1997-04-08 04:47:08 +00:00
scottr f1c1f7e54d Make new ADB driver the default. 1997-04-08 04:21:15 +00:00
scottr 4d9095b0b0 Updates from John Wittkoski for new ADB driver. 1997-04-08 03:19:04 +00:00
scottr 76c66a06b3 Direct-to-hardware ADB interface/driver, written by John P. Wittkoski. 1997-04-08 03:16:18 +00:00
scottr 484820c623 Power Manager interface/driver, written by Takashi Hamada. 1997-04-08 03:11:37 +00:00
scottr bf23759b27 Add MRG_ADB option. 1997-04-08 03:00:37 +00:00
scottr b6a4a3826c Update for current configuration, including sbc reselect mode. 1997-04-08 02:59:16 +00:00
cgd f2b60ad624 align after RCS ID strings if placing them in text 1997-04-08 00:24:16 +00:00
cgd 519551a681 include RCS IDs for assembler files, disabled with NO_KERNEL_RCSIDS 1997-04-08 00:19:01 +00:00
cgd 25ba9df324 clean up some wording 1997-04-08 00:18:25 +00:00
cgd effe625a3a note NetBSD/alpha's (intentional) deviations from KNF 1997-04-07 23:57:10 +00:00
cgd fa0c4d6cb1 clean up options.h inclusion slightly 1997-04-07 23:56:39 +00:00
cgd 90789b53dd by default, provide RCS IDs for NetBSD/alpha kernel files in kernel binaries.
This can be disabled (to save a bit of space) with the NO_KERNEL_RCSIDS
options, which is present but commented out in the ALPHA config file.
In ELF-format kernels, these strings are present in the kernel binary but
are not loaded into memory.  (In ECOFF-format kernels, there's no easy way
to keep them from being loaded, so they _are_ loaded into memory.)
1997-04-07 23:39:37 +00:00
scottr 396cf17033 Fix SunOS user trace trap handling, from Gordon. 1997-04-07 22:54:44 +00:00
jeremy eabfcc3f00 Removed spurrious ``#ifdef ISO''. 1997-04-07 21:26:19 +00:00
pk efeeba419f sun4c and sun4m `aux' register bits differ slightly. 1997-04-07 21:00:34 +00:00
cgd 80c27e8c49 include machine/options.h 1997-04-07 06:36:24 +00:00
cgd f9f2e742af include machine/options.h 1997-04-07 06:24:24 +00:00
cgd 21598de043 use machine/conf.h instead of sys/conf.h and/or machine/cpuconf.h 1997-04-07 06:09:00 +00:00
scottr f65f7e9b21 Always enable SCSI IRQ interrupt; the SBC_INTR flag now controls only
the SCSI DRQ interrupt, for "blind" transfers.
1997-04-07 05:56:28 +00:00
cgd 98f47c009f add machine/conf.h, right now a minimal placeholder 1997-04-07 05:52:34 +00:00
scottr 29c981b924 Rework PDMA read/write functions based on Matthias Pfaller's pc532 ncr
driver.  Major highlights:

 - Protect with splbio(), now that interrupts from the chip might be
   enabled by default;
 - Wait for current transfer to complete before returning, rather than
   wait for previous transfer to complete before starting another;
 - Instead of logging a "timeout" message when a target disconnects,
   just return, letting the sbc_ready() and sbc_wait_not_req() print
   timeout messages if such really did occur.

With interrupt changes to sbc_obio.c, disconnect/reselect now works if
configured into the kernel.
1997-04-07 05:48:35 +00:00
cgd b2f768130d include machine/options.h 1997-04-07 05:46:48 +00:00
cgd 3775a7d0a0 more correctly conditionalize ARP code use 1997-04-07 05:40:45 +00:00
cgd 6093a85bde clean up eb164 #ifdefs 1997-04-07 05:40:10 +00:00
cgd 831292c29e clean up NetBSD RCS ID strings 1997-04-07 05:34:39 +00:00
cgd 8c56b1a0c9 clean up NetBSD RCS ID strings 1997-04-07 05:19:01 +00:00
cgd a60b90caa9 clean up NetBSD RCS ID strings, include machine/options.h 1997-04-07 02:01:16 +00:00
cgd 51f119d429 clean up NetBSD RCS ID strings 1997-04-07 01:59:51 +00:00
cgd aa2b0a7f9f clean up NetBSD RCS ID strings, include machine/options.h 1997-04-07 00:19:11 +00:00
cgd 2677cb7ed8 clean up NetBSD RCS ID strings 1997-04-07 00:18:51 +00:00
cgd a145382bd2 clean up some #ifdefs 1997-04-06 23:32:18 +00:00
cgd cf01fa7db7 clean up NetBSD RCS ID strings, include machine/options.h 1997-04-06 23:22:26 +00:00
cgd cca70e8ea5 clean up NetBSD RCS ID strings 1997-04-06 23:17:52 +00:00
cgd 84fb4bbf51 fix bogon in comment (s/PCI/ISA/) 1997-04-06 23:13:10 +00:00
cgd f3ca02ac35 add options NETATALK 1997-04-06 23:11:22 +00:00
cgd 4c72137737 clean up NetBSD RCS ID strings 1997-04-06 23:03:02 +00:00
cgd 38d98acc9f clean up NetBSD RCS ID strings, include machine/options.h 1997-04-06 22:55:59 +00:00
cgd 23e6c43870 clean up NetBSD RCS ID strings 1997-04-06 22:55:46 +00:00
cgd 059aaedd65 clean up NetBSD RCS ID strings, include machine/options.h 1997-04-06 22:31:45 +00:00
cgd aca6fadc11 clean up NetBSD RCS ID strings 1997-04-06 22:30:21 +00:00
pk fab7831bfc sun4c `nbuf' workaround: make threshold dependend on value of MAXBSIZ. 1997-04-06 21:41:36 +00:00
mycroft 1929ddf09c Fix some #ifdef lossage if HP340, HP360, or HP375 is defined, but HP370 is not. 1997-04-06 21:40:35 +00:00
ragge b7973034b4 & should be |. 1997-04-06 20:37:05 +00:00
cgd d6292c87e8 clean up NetBSD RCS ID strings, include machine/options.h 1997-04-06 20:09:04 +00:00
cgd af228d12ab clean up NetBSD RCS ID strings 1997-04-06 20:08:28 +00:00
cgd 1d4f43d56f add <machine/options.h>, to allow 'defopt' option headers to be easily
included.
1997-04-06 20:07:17 +00:00
leo 9c9b9aefc9 Make Hades DMA transfers work in polling mode with all interrupts
disabled. This makes dumps to scsi work.
1997-04-06 12:42:44 +00:00
leo 79987d75ee Calculate dumpsize correctly (in pages). 1997-04-06 12:39:41 +00:00
cgd 562fa9b97d clean up NetBSD RCS ID strings 1997-04-06 08:39:37 +00:00
leo c3d261e977 Add chrtoblk table entry for wd device. 1997-04-04 21:02:39 +00:00
pk c124058e0b Undo previous change; it can't have any effect (thinko..) 1997-04-04 21:01:49 +00:00
mycroft 925f3b37f7 comdefaultrate -> comconsrate
comconsbah -> comconsioh
1997-04-04 20:50:58 +00:00
gwr b5f838ad77 Add a comment. 1997-04-04 20:48:59 +00:00
pk d1603d004b Use sc_hwreset() hook to reset ledma (if applicable). 1997-04-04 20:29:23 +00:00
scottr be3e57de4a Changes to make a dcm-based console work properly:
- While servicing an rx, tx, or modem status interrupt:  if we have a
   NULL struct tty * or if the tty isn't open, just return.
 - Skip the self test if we are the console; it manages to do funny
   things to autoconfig messages.  (XXX - this should be fixed)
1997-04-04 18:16:07 +00:00
augustss 56f33727b5 Include OSS audio emulation. 1997-04-04 15:35:06 +00:00
briggs 99d2687e23 Mask off 'internal slot' in check to see if we should enable nubus intrs. 1997-04-04 15:33:30 +00:00
briggs 28af7de8a4 Do not set DCR_SYNC for the C/Q[68]xx systems.
Thanks to Steve Brown <sbrown@best.com> for working with me to find this.
1997-04-04 14:54:44 +00:00
thorpej 2c0d2cb557 #ifdef DIOVERBOSE a variable needed only in such code. 1997-04-04 09:53:43 +00:00
matthias 9fea258541 * if queues have to be protected by splimp. Back out last change. Thank's
to Charles for watching out and notifying me about my mistake.
1997-04-04 09:51:26 +00:00
leo fd52d826aa Add IDE driver (Markus Kilbinger). 1997-04-04 08:17:30 +00:00
is e60bbb3b89 Actually ask for ARP initialization on this interface.
Somehow this commit was forgotten. Sorry folks.
1997-04-04 06:27:32 +00:00
mycroft c50b8e4fa8 Make the names of the member of struct __va_list namespace-clean. 1997-04-04 04:17:06 +00:00
christos eb6be97252 Add netatalk netisr 1997-04-03 17:49:08 +00:00
christos 738cdfd351 Add netatalk netisr 1997-04-03 17:35:56 +00:00
christos ad36b6970e Add netatalk netisr 1997-04-03 17:25:18 +00:00
christos dcb36500b8 Add netatalk netisr 1997-04-03 17:14:39 +00:00
christos 6c015f3a49 Add netatalk netisr 1997-04-03 15:59:54 +00:00
perry e32bb7d002 fix bad size calculation for kernel memory mappings, as in when
allocating 1 byte from a page alligned address.
reported (with fix) in pr-3441 from Matthias Drochner
1997-04-02 23:44:44 +00:00
scottr aa88a240fe Fix printf() and other warnings when compiled with DEBUG defined. 1997-04-02 22:37:21 +00:00
christos 206e950042 Add netatalk netisr 1997-04-02 21:59:02 +00:00
christos e0443987e7 Add netatalk netisr 1997-04-02 21:48:55 +00:00
pk 332d00ad1d Take another register snapshot at the end of dumpsys() to refresh the PCB
which may have been altered while writing the dump. Also, save PC in
the PCB.
1997-04-02 20:56:28 +00:00
leo ff152e48d5 The atari-TT really has no IDE-interface. 1997-04-02 20:33:10 +00:00
oki ecae3f3421 Add bits[64] declaration 1997-04-02 17:10:41 +00:00
matthias b7624c248a * Add missing & in plipioctl.
* Remove some dead code in plipioctl.
* Use splnet, not splimp to protect IF_PREPEND/IF_DEQUEUE.
1997-04-02 16:36:25 +00:00
scottr 40d1c295a2 Specify more aggressive warning options for C code. 1997-04-01 23:16:41 +00:00
gwr 0faac5faf2 Back-out the CWD hack... 1997-04-01 23:11:28 +00:00
leo a6f5608814 Make it possible to remove the lpt device by making it 'needs-flag'.
Remove lpt-device from the BOOT kernel.
1997-04-01 20:14:06 +00:00
scottr 6c7f504b20 Add forward declarations for struct exec_package and struct exec_vmcmd,
to minimize the number of unnecessary #includes.
1997-04-01 20:05:14 +00:00
scottr 54c4c9b37f Catch up with COMPAT_HPUX changes, and make this compile with -Wall. 1997-04-01 19:59:59 +00:00
scottr 5be5fe416e Relocate some prototypes needed for COMPAT_HPUX to hilvar.h 1997-04-01 19:29:09 +00:00
cgd 044c6288bf slightly relax the block size checks; they were a bit to paranoid 1997-04-01 17:27:33 +00:00
cgd 776b6dcbca hack to fake up disklabel 1997-04-01 17:23:04 +00:00
matthias e034d53f13 * Add new sysctl "machdep.ieee_disable". This can be used to disable the
in kernel ieee trap handler. Then a usermode version of the code can be
  used for debugging. Thank's to Ian Dall for this suggestion.
1997-04-01 16:37:43 +00:00
matthias af88eb9d75 * Fixes from Ian Dall. Make the ieee handler compile with the new gcc warning
options, make it compile into a user mode library again and update the
  README.
1997-04-01 16:35:08 +00:00
matthias d0c4177d0c * Add new sysctl "machdep.ieee_disable". This can be used to disable the
in kernel ieee trap handler. Then a usermode version of the code can be
  used for debugging. Thank's to Ian Dall for this suggestion.
1997-04-01 16:33:04 +00:00
matthias d89b0839dc * Use movsdnu to copy pages.
* Just invalidate the tlbs for the affected mappings in pmap_zero_page
  and pmap_copy_page.
1997-04-01 16:32:58 +00:00
matthias 43064ade71 * Apply optimizations suggested by gwr & mycroft. 1997-04-01 16:32:52 +00:00
matthias 6231519c48 * Initialize the icu with a table driven method again. 1997-04-01 16:32:47 +00:00
matthias 88128328a9 * Only cosmetic changes. 1997-04-01 16:32:31 +00:00
matthias 9e6c9efed8 * Initialize the icu with a table driven method again. 1997-04-01 16:32:25 +00:00
matthias 9046ff4c6f * Initialize the icu with a table driven method again.
* Fix a bug in microtime that caused the generation of invalid timevals.
  Thank's to Ian Dall for finding and fixing this.
1997-04-01 16:32:16 +00:00
matthias 821b15ab3b * Add some missing casts to make this compile with -Werror when KGDB is
defined.
1997-04-01 16:31:53 +00:00
matthias e2a1653bf0 * Only cosmetic changes. 1997-04-01 16:31:45 +00:00
matthias b14adada8f * Include <sys/systm.h> to get printf prototype. 1997-04-01 16:31:37 +00:00
matthias 8a56a74823 * Add versions of movs{d,w,b} that do not update the source and destination
pointers.
* Add tlbflush_entry to flush a single tlb entry.
1997-04-01 16:31:19 +00:00
matthias b78841616b * Add prototype for icu_init.
* Add new sysctl "machdep.ieee_disable". This can be used to disable the
  in kernel ieee trap handler. Then a usermode version of the code can be
  used for debugging. Thank's to Ian Dall for this suggestion.
1997-04-01 16:31:14 +00:00
matthias b3d60fed7c * Add -Werror again. 1997-04-01 16:30:48 +00:00
matthias 6228d0c501 * Add Cabletron EA412/EA419 driver. 1997-04-01 16:30:35 +00:00
briggs ca0531b7f4 Add DrHW for RasterOps CB264--From Scott Reynolds--and link it in to the
proper interrupt routine.
1997-04-01 13:31:38 +00:00
briggs 71bf5ccd79 Remove tag. 1997-04-01 13:31:03 +00:00
mycroft 3018d16337 Enable wdc1 at IRQ 15. 1997-04-01 13:12:13 +00:00
leo 061e737731 Add wd-driver. The driver is basically the driver present in the arm32
port (Thanks Mark!) with a few atari specific things and the bad block
handling disabled.
1997-04-01 08:17:44 +00:00
briggs a3d5b32614 - Support DAFB machines mo' better. Actually detect if a monitor is
present and initialize a few things.  No color support, yet.
  - Properly disable interrupts for DAFB.
  - Rearrange for better nubus display card interrupt support.  Only register
    an interrupt if we know how to clear it.
  - Complain if we don't know about a given display card and can not install
    an interrupt handler.
  - Change MYSTERY stuff to cb264--still need to get the DrSW so we can
    actually call the routine to clear an interrupt from this card.
1997-04-01 05:41:59 +00:00
mycroft 3a5d048d44 #ifdef DEBUG a variable to prevent compiler warning. 1997-04-01 03:38:50 +00:00
scottr 698c8410a2 Add prototypes, and make this compile with -Wall. Remove register
modifier from all declarations.
1997-04-01 03:12:06 +00:00
scottr 66c9485803 Add prototypes, and make this compile with -Wall. 1997-04-01 03:10:57 +00:00
scottr 43b1b8c08a Relocate some prototypes needed by other MD code. 1997-04-01 03:07:19 +00:00
scottr 4c6e335897 Add prototypes as appropriate. 1997-04-01 03:03:56 +00:00
jeremy 68755b199e Physical page status functions pmap_clear_reference()
and pmap_clear_modify() weren't testing if the page whose status was being
changed was being managed.  This caused kernel panics with X11.
1997-04-01 02:15:33 +00:00
pk 102497370d Garbage-collect a few items. 1997-03-31 22:03:11 +00:00
pk 9c2ddb4a59 `*_get_fault_status' should not get profiled; use ALTENTRY for now. 1997-03-31 22:00:39 +00:00
gwr 5485e1ff75 Need a common <m68k/pcb.h> for gdb. 1997-03-31 21:39:51 +00:00
gwr a09110f073 Use <m68k/pcb.h> 1997-03-31 21:35:39 +00:00
gwr b43ee24829 Need a common <m68k/pcb.h> for gdb. 1997-03-31 21:32:26 +00:00
pk cd9e3a7b59 Remove bogon from otherwise unused fdchwintr() function. 1997-03-31 20:27:32 +00:00
pk b8cc0f044e Deal differently with physical memory gaps resulting from alignment
restrictions.
1997-03-31 19:53:41 +00:00
mycroft 9bc200ea19 Fix formatting error in Sun 4 printf(). 1997-03-31 17:21:00 +00:00
mycroft ac89281245 Fix bogus preprocessor conditional that caused the trap page to
not be rounded up when it should be.
1997-03-31 16:42:52 +00:00
scottr c008fc0aa0 Add prototypes, and make this compile with -Wall. Remove register
modifier from all declarations.
1997-03-31 07:32:14 +00:00
scottr ea23ab53c3 Add missing argument to diagnostic printf() 1997-03-31 07:30:41 +00:00
scottr 52cb2d2955 Add prototypes, and make this compile with -Wall. Remove register
modifier from all declarations.

Also, handle sc_flags better so that we don't lose track of the
DCM_ISCONSOLE bit.
1997-03-31 07:29:49 +00:00
jeremy b572daa4dc In-tree GNU ``as'' does not know of 'pmove <reg>,tt0' instruction. Changed
instances of this instruction to hardcoded opcode statements.  Thanks to
jthorpe for pointing this out.
1997-03-31 02:22:25 +00:00
thorpej 80631ee3b7 Keep the compile/ directory in the distribution. 1997-03-31 01:23:37 +00:00