thorpej
73b24faec6
Do a bit of spring cleaning.
1997-05-05 21:02:39 +00:00
thorpej
82cab4fef4
Prototype dio_intr_establish() and dio_intr_disestablish().
1997-05-05 21:01:33 +00:00
thorpej
5bada123f8
- Initialize the DMA controller in dioattach().
...
- Implement dio_intr_establish() and dio_intr_disestablish().
1997-05-05 21:00:32 +00:00
thorpej
0a8e2a9ce8
Use dio_intr_establish().
1997-05-05 20:58:18 +00:00
thorpej
bd2bc06c75
- Make "USELEDS" a defopt'd option, so we can generate dependencies on
...
it. Conditionally compile leds.c on USELEDS.
- Rearrange mainbus and intio declarations slightly.
- Add declaration for the forthcoming "frodo" driver.
1997-05-05 20:57:29 +00:00
thorpej
663cee4555
Pull the LED frobbing code out of machdep.c. Since there is more than
...
one LED on an hp300 SPU, rename the file to indicate plurality.
1997-05-05 20:54:34 +00:00
thorpej
397e92e33c
New-style kgdb_machdep.c, mostly duplicated from the sun3 port, modified
...
slightly by me.
1997-05-05 20:51:05 +00:00
thorpej
95dd345f81
Garbage-collect old KGDB code that is no longer used.
1997-05-05 20:48:26 +00:00
mycroft
94313a874b
Oops; reverse sense of previous test.
1997-05-03 08:46:09 +00:00
mycroft
1dafb51ea6
Eliminate unused variable in '030-only kernels.
1997-05-03 08:41:29 +00:00
mycroft
fc324bb0b9
Eliminate unused variable when !USELEDS.
1997-05-03 07:09:57 +00:00
thorpej
766d429d62
Correct a comment long since outdated.
1997-05-01 16:24:26 +00:00
thorpej
989ed431e1
Oops, the numbers for "t" and "s" got swapped around. No functional
...
difference, just correct now.
1997-05-01 05:26:48 +00:00
thorpej
97a6c32e58
Garbage-collect a bunch of _very_ hp300-specific code, most of which
...
doesn't work anyhow (due to current and future fundamental differences
between NetBSD and HP-UX device semantics). This can probably be shared
with other m68k ports now.
1997-04-27 21:38:57 +00:00
thorpej
ba0a5d5c58
Bump version: Better SPU detection code
1997-04-27 21:18:31 +00:00
thorpej
8b4cae0516
CPU -> SPU
1997-04-27 21:17:13 +00:00
thorpej
3cb561ed9f
Don't define our own machineid values - pull in <machine/hp300spu.h>
1997-04-27 21:15:14 +00:00
thorpej
fbad957c52
Update getmachineid() for new machineid values.
1997-04-27 21:13:55 +00:00
thorpej
767517edcc
Don't even look for a Domain keyboard if we're not a 400, 425, or 433.
1997-04-27 21:12:43 +00:00
thorpej
5b511796c1
Uniquely identify 345 vs. 375 vs. 400 and 380 vs. 425. Adapted by me from
...
code provided by Mike Smith. While I'm here, convert this file to use
macros from <machine/asm.h> rather than making assumptions about how
C labels are handled.
1997-04-27 21:10:06 +00:00
thorpej
cdb54b8d65
Update for new SPU options.
1997-04-27 21:06:29 +00:00
thorpej
b27a863b02
Generate option headers for SPU type options, so that we may generate
...
dependencies on them.
1997-04-27 21:05:49 +00:00
thorpej
772891accd
Use information provided by <machine/hp300spu.h> to determine if we
...
might have a physical address cache.
1997-04-27 21:02:34 +00:00
thorpej
650df29d4d
These files depend on things in <machine/hp300spu.h>
1997-04-27 20:58:55 +00:00
thorpej
18a931000e
Use <machine/hp300spu.h> to determine if we might have a physical address
...
cache.
1997-04-27 20:54:39 +00:00
thorpej
544f501d29
Rewrite identifycpu() to be partially table-driven, and to be more
...
sane in general. Since we can uniquely identify each SPU type
(except for 318/319/330, because there _are_ no differences, really),
require that the appropriate SPU option be configured into the kernel.
1997-04-27 20:53:30 +00:00
thorpej
d62e267a0c
Uniquely identify 345 vs. 375 vs. 400 and 380 vs. 425, useful when
...
looking for hp4xx-only hardware during autoconfiguration. Code
mostly from Mike Smith, with a few changes by me.
1997-04-27 20:50:01 +00:00
thorpej
9d4c5c9106
- Define new machineid and mmuid constants.
...
- Rearrange slightly.
1997-04-27 20:47:23 +00:00
thorpej
fc79829eab
#include <machine/hp300spu.h>
1997-04-27 20:43:37 +00:00
thorpej
80ff0f0f2f
- Move a bunch of hp300 SPU-specific stuff out of cpu.h, and place it
...
in new hp300spu.h file. This includes the code that associates
model number with cpu/mmu/cache combinations.
- Define "mmuid" constants for several models, derived from code
provided by Mike Smith.
1997-04-27 20:37:07 +00:00
thorpej
f5ccce44c8
srt0.s renamed to srt0.S via repository copy Magick - we want this
...
file to be preprocessed before it is assembled.
1997-04-27 20:29:43 +00:00
thorpej
d8b7a2f037
- Don't make assumptions about how C labels are handled, use macros
...
provided by <machine/asm.h> instead.
- Adjust for <m68k/m68k/trap_subr.s>
1997-04-25 02:17:38 +00:00
thorpej
722ead42ca
Don't make assumptions about how C labels are handled, use macros
...
provided by <machine/asm.h> instead.
1997-04-25 02:16:38 +00:00
thorpej
5fddec888d
Add Domain keyboard support source files (oops, forgot to commit this
...
file when I integrated the rest of it!). Fixes PR #3523 , from
Thorsten Frueauf <frueauf@ira.uka.de>.
1997-04-24 20:39:26 +00:00
thorpej
6a2fc99857
STRIP -> STRIPFLAG
1997-04-17 07:27:46 +00:00
scottr
ea528012b3
dcmreadbuf() should not return immediately if the tty hasn't been opened;
...
this fixes a kgdb goof. Found by inspection.
1997-04-15 22:45:14 +00:00
thorpej
4767ae8d9d
Regsiter description for APCI UART found on HP 9000/400-series
...
systems with a Frodo Utility Chip. This is essientially an 8250 with
3 bytes of padding between each register. From mike smith
<miff@spam.frisbee.net.au>.
1997-04-14 20:36:11 +00:00
thorpej
89a63d43fa
Build HIL and Domain keyboard support. Include UK HIL keymap.
1997-04-14 19:09:01 +00:00
thorpej
8f994f2c15
Add support for the Apollo Domain keyboard, from mike smith
...
<miff@spam.frisbee.net.au> with some changes for integration by me.
1997-04-14 19:03:13 +00:00
thorpej
f9cbf4e434
Implement an autoconfiguring indirect keyboard driver, removing explcit
...
dependencies on the HIL keyboard.
1997-04-14 19:00:10 +00:00
scottr
5599d9bc87
Allowing forcing console on dcm with FORCEDCMCONSOLE (c.f. dca.c).
1997-04-14 05:58:32 +00:00
thorpej
a78807e04c
Update for interrupt function and header name changes.
1997-04-14 02:33:16 +00:00
thorpej
6f791ab8b2
Remove unnecssary #include.
1997-04-14 02:31:33 +00:00
thorpej
064d13e0ad
Remove unnecessary softc member.
1997-04-14 02:30:45 +00:00
thorpej
30166b9778
Rearrange the interrupt code slightly:
...
- place all interrupt-related macros, prototypes, etc. into <machine/intr.h>,
like other ports.
- rename isrlink/isrunlink/isrinit, etc. intr_establish/intr_disestablish/
intr_init, etc., and move to intr.c for naming consistency.
- don't call intr_init() twice.
1997-04-14 02:28:43 +00:00
thorpej
f05b58b229
Use common m68k sigcode.
1997-04-13 02:37:15 +00:00
thorpej
81f55f1cc8
regdump() is prototyped in m68k/cpu.h now.
1997-04-09 20:08:25 +00:00
thorpej
7c20e290df
regdump() takes a struct trapframe *
1997-04-09 20:07:13 +00:00
thorpej
9cf4ffce0a
- Garbage-collect signal-related stuff; use m68k/m68k/sig_machdep.c
...
- Garbage-collect regdump() and friends
- Convert hp300 to new crash dump format
1997-04-09 20:05:20 +00:00
thorpej
577dabb739
Use <m68k/m68k/proc_subr.s>
1997-04-09 20:03:21 +00:00
thorpej
f0f9811df2
Use the %x printf format where appropriate
1997-04-09 20:01:04 +00:00
thorpej
62a635ac7e
- Remove redundant file directives
...
- Pull in m68k/m68k/sig_machdep.c
1997-04-09 19:59:57 +00:00
thorpej
c3c59721e2
kcore.h for hp300 - just pulls in the common m68k kcore.h
1997-04-09 19:51: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
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
thorpej
2c0d2cb557
#ifdef DIOVERBOSE a variable needed only in such code.
1997-04-04 09:53:43 +00:00
scottr
aa88a240fe
Fix printf() and other warnings when compiled with DEBUG defined.
1997-04-02 22:37:21 +00:00
christos
e0443987e7
Add netatalk netisr
1997-04-02 21:48:55 +00:00
scottr
40d1c295a2
Specify more aggressive warning options for C code.
1997-04-01 23:16:41 +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
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
gwr
5485e1ff75
Need a common <m68k/pcb.h> for gdb.
1997-03-31 21:39:51 +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
thorpej
3878faec9c
Fix a bogus argument to dmafree(), from Scott Reynolds.
1997-03-31 01:05:19 +00:00
thorpej
6a3ca35ec3
Build these kernels with full debugging symbols.
1997-03-31 00:03:10 +00:00
thorpej
cb24b0200a
Don't allocate mclrefcnt[]; it's dead and gone.
1997-03-27 21:01:20 +00:00
gwr
37b247edde
Renames: /dumpconf/cpu_dumpconf/, /boot/cpu_reboot/
1997-03-26 22:42:13 +00:00
gwr
71e43d14ab
Move findroot/setroot stuff from configure() to cpu_rootconf().
1997-03-26 22:38:40 +00:00
mycroft
e44dc60fc6
Fix editing error in new config changes.
1997-03-22 00:17:59 +00:00
thorpej
12c0a8c5c8
Correct keyboard map references in the default case. From
...
Klaus Klein <kleink@layla.inka.de>, PR #3361 .
1997-03-20 08:07:01 +00:00
mycroft
c14b8539e0
Make active_user_pmap() DTRT while a process is exiting.
1997-03-18 16:39:30 +00:00
mycroft
d19eaa3d4f
Add an active_user_pmap() macro, and use it as appropriate.
1997-03-18 14:13:55 +00:00
mycroft
1068c83731
Check for curproc being null before dereferencing it in more cases.
1997-03-18 13:01:07 +00:00
gwr
08f7a407f9
Separate bcopy and copypage stuff from copy.s
1997-03-17 19:46:36 +00:00
thorpej
1d987a161b
#include <net/if_media.h>
1997-03-17 03:17:34 +00:00
hpeyerl
52cbdd41c4
Lager is now config.new. ya ya, I've been busy.
1997-03-16 18:46:56 +00:00
thorpej
48556a75d2
Use <m68k/m68k/support.s>
1997-03-16 10:49:43 +00:00
thorpej
e93bf2f15b
Garbage-collect hpux_dumpu().
1997-03-16 10:00:45 +00:00
thorpej
701652d81c
In cpu_coredump(), don't bother dumping an HP-UX style u-area. What it
...
produced was useful once, but isn't worth the clutter now.
1997-03-16 09:59:40 +00:00
thorpej
de5a4c2d10
Remove reference to Locore.c
1997-03-16 09:47:48 +00:00
thorpej
611fa5e05b
Old lint helper, not used anymore, and really quite amazingly out of
...
date; this is 4.3 vintage. Just nuke it.
1997-03-16 09:45:38 +00:00
thorpej
5a1149b25d
Nuke MDP_HPUXTRACE.
1997-03-16 09:40:01 +00:00
thorpej
c5b6d5ed07
Prototype hpux_setregs().
1997-03-16 09:14:25 +00:00
thorpej
c9e8e99421
Remove the COMPAT_HPUX stuff from setregs(); the HP-UX compatibility
...
code has its own implementation now.
1997-03-16 09:12:13 +00:00
thorpej
832cc66899
Implement hpux_setregs(). While I'm here, nuke the MDP_HPUXTRACE
...
code. In practice, no one traces NetBSD programs with HP-UX debuggers,
and the evil required to make it work should not be discussed in the
presence of small children.
1997-03-16 09:10:31 +00:00
thorpej
27c7e59344
Define the HP-UX sigcontext structure here, and prototype hpux_sendsig().
1997-03-16 03:45:33 +00:00
thorpej
5a14c36be7
Move all COMPAT_HPUX signal code into hpux_sendsig() and hpux_sys_sigreturn().
1997-03-16 03:43:39 +00:00
thorpej
f5c982a251
In cpu_coredump(), use `fputype' to decide if we dump FP regs.
1997-03-15 23:40:25 +00:00
thorpej
99cc2e1cec
Garbage-collect use of FPCOPROC.
1997-03-15 23:34:32 +00:00
thorpej
bbcda6f26b
- /dev/mem: only allow access to physical RAM
...
- /dev/kmem: disallow access to devices
This is designed to protect device registers from being corrupted
accidentally by "innocent" mem/kmem grovellers.
1997-03-15 23:30:12 +00:00
thorpej
6fa9be2e93
Use `fputype' at run-time rather than FPCOPROC at compile-time.
1997-03-15 23:25:49 +00:00
thorpej
4fd90cefdb
- Garbage-collect doadump(); it hasn't been used for some time.
...
- Supply an `fputype' global. Since all hp300's have an FPU, default
it to FPU_68881, setting it to FPU_68040 if we detect a 68040 CPU.
- Use `fputype' at run-time rathern than FPCOPROC at compile-time.
- Re-arrange locore slightly; move startup code to the beginning, right
after the vector table.
1997-03-15 23:23:55 +00:00
thorpej
2cea1ec9d7
- Make hpux_sys_getcontext() table-driven.
...
- Use `fputype' at run-time rather than FPCOPROC at compile-time.
1997-03-15 23:20:20 +00:00