Commit Graph

7273 Commits

Author SHA1 Message Date
jonathan
74def7cfa4 fix "#define #define CLKF_USERMODE" typo. 1996-03-31 04:16:46 +00:00
jonathan
5163f64c0f merge mips and pica locore.S, pass 0:
* cut-and-paste all the code for both r2000 (MIPS-I) and r4000 (MIPS-III)
      into both the pica and pmax locore.S.

    * Change the names of the small segments of vector code that are
      bcopied to the machine vector locations, to avoid clashing.
      Get rid of the Sprite MachXXX names for the vector code, and
      use use mips_r2000_xxx and mips_r4000_xxx instead.

      Update the names used in the vector-copying code and trap handlers
      to match.

    * Most of the rest of the pica locore.S was copied from the pmax
      locore.S, and then edited to work on an r4000.  The names of
      functions and of manifest constants stayed the same, although
      both assmbler code and constant values changed.
      cut-and-paste such code into contiguous blocks protected by
      #if / #endif.  Much of the cache and trap-handling code
      needs r3000-only register fields, on the r3000, and r4000-only
      insns and registers on the r4000.

   * change the pmax r2000 exception-handling code to extract a trap
     code with the user/kernel bit at 0x20 rather than 0x10.
     (r2000s have 4-bit execption codes, r4000s have 5-bit.)
     Use the a 16 from-user-space + 16-from-kernel space jump table,
     just like on the r4000 pica port.

   * add NOPs to the common code where required by the r4000 pipeline
     constraints.
   * add _C_LABEL() macros to the r4000 locore.

Comitted to provide a snapshot for others to test, and work on a cleaner merge.
1996-03-31 03:38:21 +00:00
perry
f825488c3c Added (commented out) line for joystick driver. 1996-03-30 23:57:09 +00:00
jtk
7ab53a4163 fix up ddb at boottime for pcvt--device not allocated yet, and not used by pcintr 1996-03-30 23:40:18 +00:00
christos
b646bc023a New md conf.h per Jason's plan. 1996-03-30 21:17:55 +00:00
christos
393ad3332b Don't need this anymore; it's data are moved to <machine/conf.h> and conf.c 1996-03-30 21:15:03 +00:00
christos
2d29d17da3 Deprecate use of *_conf.h and use only <machine/conf.h> and <sys/conf.h> 1996-03-30 21:13:53 +00:00
christos
c3a3efa9e6 Fix db_printf formats. 1996-03-30 21:13:02 +00:00
christos
32fe9b6a79 iUse <machine/conf.h> instead of sparc_conf.h 1996-03-30 21:12:16 +00:00
christos
e4397b82d7 Use machine/conf.h, instead of sparc_conf.h 1996-03-30 21:11:33 +00:00
christos
a1777d0168 Remove u_int casts from the printf %b formats. 1996-03-30 21:10:37 +00:00
christos
933d138841 Change %r -> %: as for recursive printf's 1996-03-30 21:01:21 +00:00
is
62dcb879c0 Typo squished. 1996-03-30 16:22:55 +00:00
mycroft
bd6e60f0d5 Add explicit return types. 1996-03-30 07:51:51 +00:00
mycroft
fba10af524 Add explicit return types. 1996-03-30 07:30:33 +00:00
mycroft
e1ceb9a557 Add wds0 and wds1 to generic kernels. 1996-03-30 05:42:45 +00:00
briggs
8326aadde5 via.h -> machine/viareg.h. 1996-03-29 02:27:42 +00:00
briggs
b39b4939fc Fix minor oversight in a sanity check--caught by Jason, I think, and reported
by Scott.
1996-03-29 02:12:41 +00:00
briggs
08126b5bec via.h -> machine/viareg.h. 1996-03-29 02:06:04 +00:00
briggs
fdcac3b557 via.h -> machine/viareg.h and some other prototyping fixes. 1996-03-29 02:00:38 +00:00
briggs
efa0c4d683 Make NTOH[SL] and HTON[SL] (void) (x) instead of (x) to get around
compiler warnings.  Followed the lead set in the sparc port.
1996-03-29 01:40:31 +00:00
mycroft
df45c0b542 Prototype some internal functions. 1996-03-29 01:15:04 +00:00
mycroft
6424af4c10 Prototype delay(). 1996-03-29 00:23:28 +00:00
mycroft
6e2bbd2d92 Use offsetof() for structure offsets. 1996-03-28 23:44:04 +00:00
mycroft
42bfe3a4f3 Add a return type for main(). 1996-03-28 22:33:10 +00:00
mark
06ae03c8b0 Use the generic mouse ioctl names instead of the quadmouse ones. 1996-03-28 21:56:40 +00:00
mark
e50a0e4440 Support the ARM7500 IOMD as well as the RPC600 IOMD. 1996-03-28 21:55:15 +00:00
leo
4f5cc6fac1 Drop in a more interlligent version check. 1996-03-28 21:53:35 +00:00
mark
910ee34995 Remove definitions of the inb() and outb() macros as they are now
defined in a header file.
1996-03-28 21:52:32 +00:00
mark
ba871a93aa Initial commit of the PS2 mouse driver. 1996-03-28 21:50:19 +00:00
mark
0b89016846 ramdisk is now a psuedo device. 1996-03-28 21:45:40 +00:00
mark
1ff14b3c1f ramdisk is now a psuedo device.
Added pms PS2 mouse device.
1996-03-28 21:44:06 +00:00
mark
e36164c8fa If the irq number passed to irq_claim()/irq_release is -1 extract
the irq number from the irqhandler structure.
1996-03-28 21:43:52 +00:00
mark
c5a198dd29 ramdisk device is now a psuedo device.
Added pms device for PS2 style mouse.
1996-03-28 21:42:00 +00:00
mark
8564f152ec Added character device pms to the device table. 1996-03-28 21:40:22 +00:00
mark
9d048bd529 Define macros for inb() outb() inw() outw() inl() outl(). 1996-03-28 21:35:51 +00:00
mark
93602531a6 Added definitions for RC7500 motherboard interrupt numbers. 1996-03-28 21:29:32 +00:00
mark
044c783484 Added definitions for RC7500 motherboard IO addresses. 1996-03-28 21:28:21 +00:00
mark
7d06b49a23 Added definitions of ARM7500 IOMD. 1996-03-28 21:26:05 +00:00
mark
0ff466e21a Add VIDC20 phase lock loop frequency information for RC7500
motherboards.
1996-03-28 21:22:24 +00:00
mark
4b10d39797 Added support for RC7500 motherboards and non VRAM video systems.
Use frequency lookup table for RC7500 systems.
1996-03-28 21:18:40 +00:00
mark
fba7f55646 Fix printing during attachment now ramdisk is a psuedo device. 1996-03-28 21:14:13 +00:00
is
a0d45384b6 The interrupt routine of the ivsc (and the empsc, which seems to have copied
it) looks truncated. At least the return(1) is missing, which I now add as
a first stopgap. Somebody needs to find out if anything else is missing for
these boards.
1996-03-28 19:23:32 +00:00
is
8435085f72 Adapt to new attach scheme. Fix operator precedence error. Normalize
function name prefixes.
1996-03-28 18:56:08 +00:00
is
fa2b7f8f47 Emplant SCSI driver backend by Sean Riddle and Bo Najdrovsky. 1996-03-28 18:41:45 +00:00
jonathan
d76659a9c6 Update Pica machdep.c and locore.S to work with new, "merged" machdep.h:
* Add a MIPS-I (r3000) exception handler to the Pica locore.S.
      Change the names of the masks used to extract the exception code
      to the new MIPS_xxx names.
    *  Rename the vector code from MachException() to
      mips_r4000_exception, in both locore and in the init_main()
      code that copies it from locore to the exception vector locations.

    * Change the locore and C code to use the new MIPS_SR_INT_IE
      name for the Status register master interrupt-enable bit.

Similar changes to the pmax equivalents are in progress.
1996-03-28 12:50:37 +00:00
jonathan
8b7ade02ab Split Per Fogelstrom's Pica trap handler into two parts:
arch/pica/pica/trap.c, a generic mips trap handler
	arch/pica/pica/pica_trap.c, a  handler for Pica interrupts.

so that the common pmax and pica  trap handling can eventually be
merged and moved to arch/mips/mips/trap.c
1996-03-28 12:40:33 +00:00
jonathan
4b0f110028 Remove lint from pica kernel to compile with -Werror:
* Add cast to hardclock when it's used directly as an interrupt handler.
   * Add a null-interrupt-establish function, to avoid int vs void lint
     in pica/dev/dma.c.
   * fix include in pica/include/pccons.h to work with "standard"
     kernel-compile include path.
1996-03-28 12:26:31 +00:00
jonathan
34ab2734da Resolve all differences between the Pica and pmax versions of machConst.h:
* add "MIPS_3k_" for the MIPS-I r[23]000-specific register definitions.
    * add "MIPS_4k_" for the MIPS-II/III r4000-specific register definitions.
    * add #defines that provide the old values for locore and user
      code, so the existing code continues  to compile.

Regression-tested against the  old headers by grepping for #define's,
editing out the defined symbols, and preprocessing with both the previous
machConst.h headers and this version.

Some unused symbols (CPU and FPU must-be-zero constants) are no longer defined.
Pica interrupt masks are now constant expressions instead of constant
values.

TODO:
    * factor out the common #defines into src/sys/arch/mips.
    * Get rid of the Sprite coding-style names (MACH_xxx).
    * Separate out the r3k/r4k differences from the Pica/pmax differences.
    * Figure out how to have a run-time choice of r3k vs. r4k support,
     instead of a compile-time choice.
1996-03-28 11:34:05 +00:00
phil
5f5484b74a tweek to delay (locore.s) and to FPU trap handler(trap.c). 1996-03-28 05:00:06 +00:00
phil
e7b9b54ea3 Remove __SWAP_BROKEN. 1996-03-28 04:53:17 +00:00
phil
6d61867cc0 Remove old files not needed now that the pc532 uses the MI ncr5380 driver. 1996-03-28 04:49:32 +00:00
mark
611837babe RCS Id police. 1996-03-27 22:42:08 +00:00
mark
57dd9b776a Push r4-r6 on the stack at the beginning of the function to avoid
trashing r5 and r6 if copystr() is called with a length of 0.
1996-03-27 22:19:32 +00:00
mark
c8d5b80dea Define name for the floppy interrupt handler.
Fixed declartion of fdopen() now that it does not clash with fdesc open
function.
1996-03-27 22:18:44 +00:00
mark
585c401e02 Define name for the interrupt handler.
Include mouse.h instead of qmouse.h now that there is a generic
interface.
1996-03-27 22:14:45 +00:00
mark
9852119eff Updated to reflect the latest major/minor allocations. 1996-03-27 22:09:30 +00:00
mark
395f0fd59c Define name for the interrupt handler for use with vmstat -i. 1996-03-27 22:08:25 +00:00
mark
8345378c81 Define name for interrupt handler. 1996-03-27 22:07:26 +00:00
mark
b4aaf66b7a Remove prototype for Debugger() as this is defined in systm.h. 1996-03-27 22:05:19 +00:00
mark
6245ffb5e5 Define a name for the sbic interrupt handler. 1996-03-27 21:51:22 +00:00
mark
44d3ebb603 Define a name for the network interrupt handlers for use with vmstat
-i.
1996-03-27 21:49:26 +00:00
mark
30fe804249 Define a name for the vsync interrupt handler. 1996-03-27 21:47:29 +00:00
mark
79ec25c520 Removed #define/#undef of fdopen as clash with fdesc nolonger exists.
Removed local definition of cdev_qm_init. Mouse drivers are now declared
with cdev_mouse_init from sys/conf.h
1996-03-27 21:42:36 +00:00
mark
c1dff5e43e Removed duplicate stores and loads of the stack pointer during context
switches. Removed some dead debugging code from the __FORK_BRAINDAMAGE
days.
1996-03-27 21:24:39 +00:00
mark
02aafe8ddb Define a name for the hardclock timer interrupts. 1996-03-27 21:21:59 +00:00
mark
cf15dd8123 New description of the generic mouse interface structures and ioctls.
This will replace qmouse.h now that we have multiple mouse drivers to
support and want a common interface.
1996-03-27 20:57:18 +00:00
mark
47804c6e17 Table of interrupts names has been padded out to 14 characters so that
it can be filled in when interrupt handlers are attached. Table moved
from the text area to the data area.
1996-03-27 20:42:53 +00:00
mark
6119d33eeb Build the intrnames table from the interrupt name strings for vmstat -i
if IRQSTATS is defined.
1996-03-27 20:16:30 +00:00
mark
2f5136afa9 Added ih_name field to the irq handler structure to point to an ascii
name for the interrupt. Used to build the intrnames table for vmstat -i
1996-03-27 19:42:03 +00:00
perry
ee2fa11baf add joystick driver from Matthieu Herrb (pr #2267) 1996-03-27 19:11:13 +00:00
perry
39ac1f2cad Remove obsolete rd_match_hook and sync with sun3 version again. 1996-03-27 16:38:33 +00:00
leo
ccde176c63 Small nits because of changes in ym2149 handling. 1996-03-27 12:15:28 +00:00
jonathan
999a06cace Update Pica kernel configuration (files.pica, std.pica) and the default
template to use the merged mips code in sys/arch/mips/{conf,mips}.
1996-03-27 11:02:19 +00:00
jonathan
77199aee5c Update Pica kernel makefile template (Makefile.pica) to NetBSD 1.1A
conventions, so that Pica kernel can build libkern and libcompat.
Based on the changes to pmax/conf/Makefile.pmax.
1996-03-27 11:00:38 +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
jonathan
ba9685ceff minial subset of bus.h, from CGD's description:
bus memory and I/O space access functions/macros, to be used by
machine-independent code for more sane access to bus resources.
New functions will be added to this set, in the future, as appropriate,
but this is a good starting set.  Defines:
        bus_{io,mem}_{map,unmap}
        bus_{io,mem}_{read,write}_{1,2,4,8}
functions, and several types to go with them.
1996-03-27 10:09:10 +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
jonathan
5cb9a24e79 Fixup after "New device attachment scheme": Fix cfattach typos.
"struct cfattch pms_ca" (should be "cfattach"), and
"struct cfattach fd_cd" ("should be fd_ca").
1996-03-27 10:02:56 +00:00
mycroft
30c174cdcf Use a more standard and more sane error cleanup convention... 1996-03-27 06:49:54 +00:00
cgd
da3136aba8 modify these to provide a new, better-specified PCI interface
(soon to be documented on mailing lists; eventually in section 9 manual
pages), most importantly:
	(1) support interrupt pin swizzling on non-i386 systems with
	    PCI-PCI bridges (per PPB spec; done, but meaningless, on i386).
	(2) provide pci_{io,mem}_find(), to determine what I/O or memory
	    space is described by a given PCI configuration space
	    mapping register.
	(3) provide pci_intr_map(), pci_intr_string(), and
	    pci_intr_{,dis}establish() to manipulate and print info about
	    PCI interrupts.
	(4) deprecate the pci_map_* functions, and provide them only
	    as compatibility interfaces (in pci_compat.c) which will
	    eventually go away, implemented as wrappers around
	    the functions described above.
	(5) make pci functions take as an argument a machine-dependent
	    cookie, to allow more flexibility in implementation.
1996-03-27 04:01:10 +00:00
scottr
360590468a Remove bogus reference to BSDSRCDIR here; still doesn't work, though. 1996-03-27 03:56:22 +00:00
gwr
a77bcc1072 replaced by if_levar.h 1996-03-26 23:17:13 +00:00
gwr
f8a1588bfc This was carved up and reincarnated as si* 1996-03-26 22:08:24 +00:00
gwr
96918eaac2 obsolete 1996-03-26 22:05:53 +00:00
gwr
2e7e6c537d Use the traditional names (*reg.h, *var.h) 1996-03-26 22:04:14 +00:00
christos
564084ce99 - add the GETHRTIME and GETHRVTIME traps. Do the best we can for them.
- getcontext() fills the stack_t portion of the context with an 8k size
  stack, 0 flags, and below our current stack pointer. I am not sure where
  to set the pointer. Thanks pk [2-2] for noticing that.

Now netscape and java work...
1996-03-26 19:09:31 +00:00
christos
70e15a2ba9 Make fpu_regs a union of doubles and ints to get the alignment of the
machine dependent portion of the context correct. Thanks pk [1 of 2]!
1996-03-26 19:04:48 +00:00
is
77e56e826d Yet more MC68060 bits. 1996-03-26 16:55:37 +00:00
gwr
92d7925a57 No longer used. 1996-03-26 15:23:35 +00:00
gwr
fa59facc05 New autoconfig design that controls attach order. 1996-03-26 15:15:46 +00:00
gwr
3bc57e3794 Document how to configure a kernel with ttyc,ttyd instead of kbd/ms 1996-03-26 15:14:27 +00:00
gwr
c5ea521ed9 New "mainbus" driver allows control over autoconfig order. 1996-03-26 15:03:58 +00:00
gwr
c0a60cd87b New driver to handle the "interrupt register". 1996-03-26 15:03:11 +00:00
gwr
e4b4200e43 Take advantage of the new config attach stuff by
splitting out the obio and vme support code.
Also move it back to the traditional name (si).
1996-03-26 15:01:10 +00:00
gwr
3d58330322 No longer need rd_match_hook. 1996-03-26 14:58:47 +00:00
gwr
fa2d8c6e76 New driver for handling the memory error interrupt. 1996-03-26 14:57:43 +00:00
gwr
5ea3281a61 Adapt to redesigned autoconfig scheme for obio, and
define a fast ETHER_CMP routine for dev/ic/am7990.c
1996-03-26 14:42:18 +00:00
gwr
8eb8bb83b4 Take advantage of the new config attach stuff by
splitting out the obio and vme support code.
1996-03-26 14:38:29 +00:00
jonathan
449a7f5b59 Remove files moved to mips/mips; they are included in mips/conf/files.mips.
Add the pmax-specific portion of trap handler, pmax/pmax_trap.c, which
was split off from pmax/trap.c.
1996-03-26 12:21:39 +00:00
jonathan
bfa1f425bc Add mips/mips/mem.c and mips/mips/process_machdep.c 1996-03-26 11:45:59 +00:00
jonathan
467aeaf9f5 Remove src/sys/arch{pmax/pmax,pica/pica}cpu_exec.c; no significant differences,
or for which the Pica port is an older revision of the pmax branch.

A merged version with the NetBSD/pmax revision history is in mips/mips/.
	cpu_exec.c
	elf.c
	mem.c
	process_machdep.c
1996-03-26 11:43:41 +00:00
pk
c299fd2d61 Bitfields are unsigned. 1996-03-26 01:28:50 +00:00
pk
a8564828ee Back to normal printf()s, now that gcc understands `%b'. 1996-03-26 00:35:25 +00:00
mrg
8d14f53bd0 install stand tools. 1996-03-25 22:48:09 +00:00
pk
3d5031d609 PROM does not like %p's.. 1996-03-25 20:46:56 +00:00
perry
0e05503b1b added to support rd (ramdisk) pseudodevice needed for new install system. 1996-03-25 18:49:18 +00:00
perry
0c01ef4333 Add changes to support rd (ramdisk) pseudodevice, needed for new
install system.
1996-03-25 18:47:47 +00:00
perry
4a9fd2c5f4 Added support for rd (ramdisk) pseudodevice, needed for new install system. 1996-03-25 18:44:29 +00:00
jonathan
97f32908b1 Split trap handler into mips-generic and port-specific functions:
* Delete pmax-specific functions and declarations from trap.c

* Delete mips-geeneric functions and declaratinos from pmax_trap.c

* Rename the function pointer used to handle hardware interrupts to
 "mips_hardware_intr".  Define it in trap.c. Change references elsewhere,
  including machdep.c.

Verified to boot on a 5000/200.
1996-03-25 06:44:17 +00:00
jonathan
458024d39d Random additions from the Pica r4k port:
* Add spl4() and spl5() functions from the Pica port.
* Add MachFPTrap() as an alternate entry point for MachFPInterrupt.
  The r4k reports floating-point execptions as a trap, not an interrupt,
  and the Pica port uses the name MachFPTrap().
* Add nops to the Mach_spl?() functions and MachFPInterrupt, as required
   for the r4k port.
Commit "floppy"  interrupt counter for vmstat -i.
1996-03-25 06:40:39 +00:00
jonathan
522f8705a1 Copy src/sys/arch/pmax/pmax/trap.c to pmax_trap.c.
trap.c will contain the port-independent mips trap-handling functions.
pmax_trap.h will contain the pmax-specific interrupt handlers.
1996-03-25 05:55:30 +00:00
perry
3a7ebace87 Add COMPAT_11 option. 1996-03-25 05:45:08 +00:00
briggs
b329936803 Fix for more pedantic -W options. 1996-03-25 03:27:51 +00:00
jonathan
e920e8f829 Force reporting of memory errors for the 3MAX (aka kn02 aka 5000/200) to
always be eight digits.
Copy the kn02 memory-interrupt reporting function to the kn03 (5k/240)
memory-error handler, since the 3MAXPLUS seems to use the same ECC hardware
as the 3MAX.
1996-03-25 03:18:15 +00:00
jonathan
36424c73cf Rename the original pmax/include/machAsmDefs.h file, with CVS history,
to mips/include/asm.h.

Until all references to <machine/machAsmDefs.h> in the pmax and
pica tree are changed  to use <mips/asm.h> directly, just do
#include <mips/asm.h>, for compatibility.
1996-03-25 02:55:18 +00:00
jonathan
3b5a818c4e Rename from pmax/include/machAsmDefs.h to mips/include/asm.h.
Update the include-idempotency preprocessor token to match.

References to machAsmDefs in vendor (sprite, 4.4bsd) headers left unchanged,
for historical accuracy.
1996-03-25 02:50:50 +00:00
briggs
2422f1bc4e Get rid of a compiler warning about Debugger(); 1996-03-24 16:58:46 +00:00
jonathan
29aa0d22ca Replace pica and pmax include/trap.h with versions that #include <mips/cpu.h>,
after merging the definition of T_USER in the pmax port, and moving
the result to mips/cpu.h.
1996-03-24 08:17:04 +00:00
jonathan
71b212b66a Change pmax T_USER bit (software only) to be 0x20, the same as the
Pica port. (The r4000 CPU used in the pica has more hardware execption types.)
1996-03-24 08:12:53 +00:00
jonathan
c5f3b155a3 Replace pica and pmax include/cpu.h with versions that #include <mips/cpu.h>,
and add port-specific and r3k vs. r4k definitions.
1996-03-24 07:54:42 +00:00
mhitch
e1d4601b24 Fix for SCSI mode sense disk_pages structure change, and use the _lto3b()
conversion function.
1996-03-24 04:12:27 +00:00
pk
2dd9317452 Remove reference to sense code "internals". 1996-03-23 21:09:04 +00:00
jonathan
893a0b508b fix case typo: CLKF_BASEPRI_R4k to _R4K 1996-03-23 20:28:19 +00:00
jonathan
cd58cb9caa Factor out r3000 versus r4000 differences (CLKF_USERMODE() and CLKF_BASEPRI()),
provide r3k and r4k versions of each, and move to sys/arch/mips/include.

Note in comments where each mips-based port should provide
definitions in its own cpu.h after including this file.
1996-03-23 20:21:49 +00:00
jonathan
cc54da72aa Just include the merged pica/pmax r2000/r4000 mips_opcode.h from
mips/include/mips_opcode.h.
1996-03-23 19:10:06 +00:00
jonathan
78aac1c7b9 Merge in additions of missing MIPS-I opcodes, and r4000-in-32-bit mode
opcodes from the Pica port.   Per Fogelstrom claims the latter are all
supposedly  MIPS-II (r6000) instructions, rather than MIPS-III (R4000),
but we haven't checked to be sure.  Are LL/SC really in MIPS-II?
CVS:: ----------------------------------------------------------------------
1996-03-23 18:49:29 +00:00
is
a6a8779b4e It looks like the sense_data structure lost the extended_ prefix in the
name of some of its members. Adapt sbic.c to this. (Fixes PR 2245)
1996-03-23 15:09:54 +00:00
scottr
ecd20bc823 Add PPP compression options 1996-03-23 06:12:11 +00:00
jonathan
bfb10e5bdf Rename "pmax_elf_makecmds()" to "mips_elf_makecmds()".x 1996-03-23 04:59:00 +00:00
jonathan
8fb3add520 * Change setregs() to copy the initial entry point to $t9, to support PIC
code following the MIPS ELF abi.
* Move the kn01 interrupt handler outside of #ifdef DS5000, to support
  3100-only kernels.
* Add #ifdef DS3100 around kn01_enable_intr() to allow configuring
  turbochannel-only kernels.

Configuration-time support for specific models of DECstation still needs
more thought/work.
1996-03-23 04:35:03 +00:00
jonathan
1ca217b445 Replace the following header files from src/sys/arch/pica/include/
with versions that  include  equivalent files from <mips/include>.
(cvs magic copied the previous revisions, with history, to
 src/sys/arch/mips/include).

ansi.h bsd-aout.h cdefs.h ecoff.h elf.h endian.h exec.h float.h ieeefp.h
kdbparam.h limits.h pcb.h pmap.h proc.h profile.h ptrace.h reg.h regdef.h
regnum.h reloc.h setjmp.h signal.h stdarg.h types.h varargs.h vmparam.h

NB: Some files (e.g., limits.h reloc.h pmap.h) add pica-specific #defines
to the  generic mips support.
1996-03-23 03:42:25 +00:00
leo
634f5ade49 Correct #ifdef that survived the after-debug cleanup (Thanks Chris). 1996-03-22 09:07:03 +00:00
gwr
ac302c84e6 Correct type of the nofault pointer. 1996-03-21 23:03:49 +00:00
gwr
edf28f2285 Catch-up with cf_driver/cf_attach changes. 1996-03-21 23:01:21 +00:00
is
2ecf0a7b85 Interupts must be disabled and cleared before the PROM is read, as the int
line is shared with one of the PROMs address lines.
From PR #1478 by Jukka Marin.
1996-03-21 21:00:21 +00:00
scottr
32a38f24e7 DEBUG -> SBC_DEBUG, and fix comment regarding sbc_options 1996-03-21 04:49:20 +00:00
mark
cb3bacff44 Added abort function that just hangs in an infinite loop.
GCC/arm addeds calls to abort to the end of functioned declared
as not returning e.g. panic().
1996-03-20 18:57:58 +00:00
mark
9adb4b41cb Make this work following the attachment changes. 1996-03-20 18:49:56 +00:00
mark
6973956563 Fixed references to match function. 1996-03-20 18:46:58 +00:00
mark
c8d47951ba Fix references to the match function. 1996-03-20 18:38:00 +00:00
is
ab622e51f5 - Zeroth version of M68060 support (dont want to cause emulation traps for
the "Fast Assembler Version of the copy loop)
- Yet another sanity check included: initialize unused receive buffers to
  zero sender id; and test for sender hardware id of zero in the receiver.
  Gives us better error messages in case flaky hardware causes spurious
  receive interupts.
1996-03-20 13:28:50 +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
jonathan
212f41c0da Merge more header files with arch/mips/include, by replacing
with versions that #inlude the <mips/XXX.h> file:
	reloc.h regnum.h varargs.h
1996-03-20 09:49:29 +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
scottr
0b59005d3d Fix a long-standing bug uncovered by the new device attachment
model.  Thanks to Jason Thorpe for the fix (fixed PR 2235).
1996-03-20 05:10:54 +00:00
jonathan
69a70ec129 Merge in changes from the Pica port.
Still needs more thought for single-stepping and process_write_regs().
1996-03-20 01:30:49 +00:00
jonathan
5d4883f9ed Add "mips" to the machine line, to make config create a link
compile/XXXX/mips ->  mips/include, and to use mips/conf/files.mips.
1996-03-20 01:17:06 +00:00
thorpej
5c98887b14 Fix typo. 1996-03-19 22:56:53 +00:00
jonathan
e3bc270a69 Change "XXX_pmax" to "XXX_mips" in preparation for merging with
Pica reloc.h.
1996-03-19 22:18:45 +00:00
jonathan
f8342fcf97 Remove #ifdef LANGUAGE_C - protected definition of "struct reg".
(It was a duplicate of the real definition reg.h and was never used.)
1996-03-19 15:20:39 +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
is
f6ff8b93d4 Add clobber lists at the appropriate places. The MMU initialization would
brake with gcc272 -O2.
1996-03-19 11:12:10 +00:00
jonathan
4758b69e7b Replace ansi.h with a version that just does #include <mips/ansi.h>. 1996-03-19 11:00:16 +00:00
jonathan
53143b46f1 more merged pmax/mips header files: types.h
Replace header files from src/sys/arch/pmax/include/ with versions that
include  equivalent files from <mips/include>.
(cvs magic copied the previous revisions, with history, to
 src/sys/arch/mips/include).
1996-03-19 05:18:26 +00:00
jonathan
e1373a1fbf Replace the following additional header files from src/sys/arch/pmax/include/
with versions that  include equivalent files from <mips/include>,
after merging changes from the pmax and pica ports into the
src/sys/arch/mips/include tree.

	ptrace.h cdefs.h pmap.h signal.h kdbparam.h
1996-03-19 04:39:01 +00:00
jonathan
d2c42783a3 Add trap definitions added for the r4000 port.
Note: T_USER is different in the pmax and pica ports!
1996-03-19 04:34:57 +00:00
jonathan
ac7c6304db Add eight 32-bit (XXX) words of reserved space to struct sigcontext,
for binary compatibilty with the pica port.
1996-03-19 04:22:04 +00:00
jonathan
ad4d94c4f3 Change "pmax_xxx" macros to "mips_xxx" macros, in preparation
for moving to src/sys/arch/mips/include/pmap.h.
1996-03-19 04:15:15 +00:00
jonathan
648169b854 Kernel config file for source code shared by mips-based NetBSD ports. 1996-03-19 03:26:29 +00:00
jonathan
ed6c35ae96 Replace the following header files from src/sys/arch/pmax/include/
with versions that  include  equivalent files from <mips/include>.
(cvs magic copied the previous revisions, with history, to
 src/sys/arch/mips/include).

bsd-aout.h elf.h endian.h exec.h float.h ieeefp.h limit.h pcb.h proc.h
profile.h reg.h regdef.h setjmp.h stdarg.h vmparam.h
1996-03-19 03:06:28 +00:00
jonathan
23e6b87149 Replace the following header files from src/sys/arch/pmax/include/
with versions that  include  equivalent files from <mips/include>.
(cvs magic copied the previous revisions, with history, to
 src/sys/arch/mips/include).

 [bsd-aout.h elf.h endian.h exec.h float.h ieeefp.h limit.h pcb.h proc.h]
 [profile.h reg.h regdef.h setjmp.h stdarg.h vmparam.h]

plus  (missed one:)
ecoff.h
1996-03-19 03:06:27 +00:00
jonathan
234b085111 Replace the following header files from src/sys/arch/pmax/include/
with versions that  include  equivalent files from <mips/include>.
(cvs magic copied the previous revisions, with history, to
 src/sys/arch/mips/include).

bsd-aout.h elf.h endian.h exec.h float.h ieeefp.h limit.h pcb.h proc.h
profile.h reg.h regdef.h setjmp.h stdarg.h vmparam.h
1996-03-19 03:06:27 +00:00
jonathan
dcb272ef6e Remove pmax-specific CLK_TICK to prepare for moving to sys/arch/mips. 1996-03-19 02:45:48 +00:00
jonathan
b495cef581 Add additional mips CPU and FPU ids from Pica port:
IDT r3081 family, r4600, MIPS-IV architecture, others.
1996-03-19 02:42:28 +00:00
jonathan
1cc17fc971 Change "pmax" -> "mips" before moving to sys/arch/mips/include. 1996-03-19 02:12:05 +00:00
jonathan
c29eb3ea76 NetBSD's ieee FP definitions for the pmax are valid for other mips cpus;
change preprocessor XXX_PMAX_YYY #defines to XXX_MIPS_YYY.
1996-03-18 22:40:21 +00:00
christos
3c3a955cf2 Avoid unused label warning. 1996-03-18 21:48:19 +00:00
mark
11e435f55e Declaration of Debugger() now matches the prototype in systm.h 1996-03-18 21:33:05 +00:00
mark
8ac78e8698 RCS Id police. 1996-03-18 21:23:09 +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
mark
4973a32e6d RCS Id police. 1996-03-18 19:54:53 +00:00
mark
3689687703 RCS Id police. 1996-03-18 19:33:04 +00:00
ragge
8fa15eb73f Ubareset are now possible, devices that wants it now set it up
during autoconfig. ifubareset (if_reset) no longer used, actually
it's just a normal ubareset and is now handled like that.
1996-03-18 16:47:24 +00:00
scottr
2d7b856ea6 Update to NetBSD 1.1B struct cfdriver naming conventions. 1996-03-18 06:52:54 +00:00
mhitch
d2ac60afc0 A couple more misses from the device attachment changes:
afcd_cd --> afsc_cd
atzsccd --> atzsc_cd
1996-03-18 04:58:36 +00:00
jonathan
69f4059642 Change kn01 (pmax,3100) interrupt-enable signature to match
the NetBSD-1.1 convention.  Change the mainbus `struct confargs'
and the "generic" interrupt-establish method, used by devices that
appear on both a kn01 and TC decstations, to match.

Change the macros in autconf.h accordingly.
1996-03-18 01:47:06 +00:00
jtk
5e4b11dfc1 updated spkr attachment to use new pckbd attribute 1996-03-18 01:46:23 +00:00
jtk
83bdfcf5c9 attach the speaker device to pckbd (it falls in the I/O range of the
keyboard/console device cluster)
1996-03-18 01:26:10 +00:00
jonathan
2d2bc47dae Additional fixes to complete the NetBSD/1.1B config changes:
Add new device-attach struct cfattach le_tc_ca and struct cfdriver le_cd.
Change IOASIC cfdriver references  from "ioasiccd" to "ioasic_cd".
Change  "mainbuscd" to "mainbus_cd"
1996-03-18 01:22:27 +00:00
ragge
6275c70064 Convert all devices according to the changes to config. 1996-03-17 22:56:15 +00:00
ragge
dfaa8f2e96 Update from Ken Wellsch: The DHU driver can now handle DMA transfers. 1996-03-17 22:51:48 +00:00
ragge
3b5cb56887 Do not have debugging enabled by default. 1996-03-17 22:49:55 +00:00
ragge
b7cf2432a0 Fix type clashes. 1996-03-17 22:44:48 +00:00
jonathan
f7af868d1f Additional fixes to complete the NetBSD/1.1B config changes:
change IOASIC cfdriver references  from "ioasiccd" to "ioasic_cd"
1996-03-17 22:20:08 +00:00
jonathan
077638548b Additional fixes to complete the NetBSD/1.1B config changes:
update the old-config to new-config glue used with the 4.4bsd/pmax
SCSI drivers to use new device attach declarations and names for
the "oldscsibus", "tz" and "rz" drivers.
1996-03-17 22:14:21 +00:00
jonathan
ffd8d4cdc7 Additional fixes to complete the NetBSD/1.1B config changes:
Update the kn01 (3100 aka pmax) interrupt handler to use XXX_cd instead
of XXXcd.
1996-03-17 22:12:13 +00:00
jonathan
cdf4e87e7a Additional fixes to complete the NetBSD/1.1B config changes:
add missing structure name in the definition of `struct cfattach sfb_ca'.
1996-03-17 22:02:59 +00:00
christos
4d4d2d999a Remove 'volatile' from the romhalt and romboot routines, and local prototype
declarations.
1996-03-17 21:40:11 +00:00
is
ecc1ccd3cd These should be and clauses, after cgd's recent config change (the second
one). Should probably also be done to the view packet, but I'm not 100% sure.
1996-03-17 19:36:33 +00:00
cgd
94907fa254 adjust to deal with expression support for optional file specs 1996-03-17 13:21:09 +00:00
cgd
1f7332bada fix typo in recent attachment changes: (interface) attributes for asc
specified twice.
1996-03-17 06:09:10 +00:00
cgd
0cfd94f31d fix typos in recent attachment changes. 1996-03-17 06:08:12 +00:00
mhitch
b00a2c1e30 Clean up typos and other errors from new device attachment changes. 1996-03-17 05:53:57 +00:00
pk
59ff996be6 Avoid "unused variable" warning. 1996-03-17 03:19:34 +00:00
thorpej
3cd14f7597 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 02:00:30 +00:00
thorpej
77abd102b7 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:38:52 +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
thorpej
08607bc611 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:03:02 +00:00
mrg
4fe3a900f3 comment: LEAPYEAR is not entirely correct 1996-03-17 00:56:24 +00:00
christos
5b2bf5a548 add rom routines declarations 1996-03-16 23:51:44 +00:00
christos
64356e6df3 fix printf format strings 1996-03-16 23:31:45 +00:00
christos
dafa7f2c60 fix format strings. move rom routine decls in bsd_openprom.h 1996-03-16 23:31:42 +00:00
christos
ed2239daea Fix format strings in panic() 1996-03-16 23:31:40 +00:00
christos
0c4805af23 Fix typo in fsrtoname() use && as intended instead of & 1996-03-16 23:31:36 +00:00
christos
4b636d71eb cast argument to probeget() 1996-03-16 23:28:37 +00:00
christos
2cb7b87853 fix formats in printf() and panic() 1996-03-16 23:28:35 +00:00
christos
5c32202b7e fix format in printf() 1996-03-16 23:28:33 +00:00
christos
fe4bb997c9 fix format in panic() 1996-03-16 23:28:30 +00:00
christos
09ff5d56a7 fix format in printf() 1996-03-16 23:28:28 +00:00
christos
aab8906300 fix format in log() 1996-03-16 23:28:27 +00:00
christos
f2b8b6e73e include <sys/systm.h> 1996-03-16 23:28:25 +00:00
christos
02bcb06a88 This could have never worked (fb in attach was never initialized); include <sys/systm.h> 1996-03-16 23:28:23 +00:00
mhitch
ae815da330 change Debugger() from an int function to a void function to match the
prototype in sys/systm.h.
1996-03-16 18:45:44 +00:00
ragge
f9ee92c45a Support installation of /usr/mdec files. 1996-03-16 11:03:11 +00:00
ragge
33aad32f37 Accept adapter numbering in boot. 1996-03-16 11:02:28 +00:00
mhitch
a5c0ced572 Removed Debugger() declaration - the prototype is in sys/systm.h. 1996-03-16 08:19:43 +00:00
thorpej
0c71728320 Change the PS/2 mouse driver to be a child of the "pckbd" attribute,
which represents the "keyboard controller".  Give "pc" and "vt" drivers
the "pckbd" attribute.  In pcattach() (pccons and pcvt), attach children
of the keyboard controller.
1996-03-16 06:08:46 +00:00
jtc
2ce5f1478b Add _BSD_WINT_T_ definition so we can handle wint_t type added in NA1. 1996-03-16 01:31:45 +00:00
thorpej
58a3d4e742 RCS id police. 1996-03-16 00:17:52 +00:00
thorpej
0bbcd292a1 RCS id police. 1996-03-16 00:07:07 +00:00
mhitch
48118d719d Correct 53c710 initialization for the A4000T. Remove the A4000T probe
debugging output.
1996-03-15 22:11:09 +00:00
is
1c6c1c4af9 If compiling with "options M68060", tell compiler not to use
instructions which have to be emulated by the operating system on that
chip.  This code will still run on M68020, M68030 and M68040, but
might be a bit slower on those chips.
1996-03-15 20:09:52 +00:00
is
ed24bc5ba8 AMIGA_68060 flag in cpu.h and genassym.c. 1996-03-15 19:47:45 +00:00
chuck
1079c8c2aa change Debugger() from an int function to a void function to match the
prototype in sys/systm.h (which was just put in in by christos)
with revision 1.43 of sys/systm.h
	revision 1.43
	date: 1996/03/14 18:59:12;  author: christos;  state: Exp;  lines: +1 -3
	systm.h: Bring Debugger() prototype into scope.
1996-03-15 00:07:18 +00:00
christos
6d492269e0 Add -Wall -Wstrict-prototypes -Wmissing-prototypes
to the kernel build. The sparc is clean now!
1996-03-15 00:02:28 +00:00
christos
9af46afa21 Fix prototypes for the latest kpc changes. 1996-03-15 00:01:21 +00:00
christos
9673aca601 Fix prototypes that were added with the latest kpc changes. 1996-03-15 00:00:39 +00:00
mark
6cb2a43b5e RCS Id police. 1996-03-14 23:10:59 +00:00
christos
99fff354c6 fdopen -> filedescopen 1996-03-14 22:18:02 +00:00
leo
55b65fb49a Switch to the mi ramdisk driver. 1996-03-14 21:41:04 +00:00
christos
25b31cbc91 fdopen -> filedescopen 1996-03-14 21:31:56 +00:00
christos
ab0e60a42f fdopen -> filedescopen 1996-03-14 21:20:59 +00:00
christos
9c75606e8c Add prototypes and fix bugs:
- softclock was called with extra argument.
    - missing %x formats in printf's
    - kgdb_copy called with only two arguments.

Fix conf.c so that it used the _conf.h files from other places instead of
rolling its own.
1996-03-14 21:08:50 +00:00
christos
9a07d9dec9 Add missing prototypes and fix the fp struct for svr4. 1996-03-14 19:49:04 +00:00
christos
03b701e393 Bring prototypes into scope and fix compiler warnings. 1996-03-14 19:44:30 +00:00
christos
ab59f984ab Add and bring prototypes into scope. 1996-03-14 19:41:49 +00:00
scottr
2a5cf25e29 Back out previous change; kernel longjmp() has 1 arg. 1996-03-14 16:42:44 +00:00
scottr
24dcca72bd Optimize user-side TLB invalidation when !defined(M68020). 1996-03-14 05:50:06 +00:00
cgd
0926920201 (1) remove the #ifdef i386 from pci.c, and provide a machine-dependent
hook (pci_md_attach_hook()) to do any machine-dependent attachment
    gunk, e.g. on the i386 printing out the configuration mode (if bus 0)
(2) don't pass max device number for a given bus in, use
    PCI_MAX_DEVICE_NUMBER, which can be defined on a per-machine basis.
    (defaults to 32.  on i386, it's 32 if pci conf mode == 1, 16 if 2.)
1996-03-14 02:37:59 +00:00
cgd
20af97b2c0 don't pass max device number for a given bus in, use
PCI_MAX_DEVICE_NUMBER, which can be defined on a per-machine basis.
(defaults to 32.  on i386, it's 32 if pci conf mode == 1, 16 if 2.)
1996-03-14 02:37:28 +00:00
pk
485ccae478 Insert child_return() for the benefit of child return path from cpu_fork(). 1996-03-14 00:55:59 +00:00