veego
76371b8a9d
include <m68k/db_machdep.h> to get the prototype for kdb_trap if DDB and
...
DEBUG are defined and add a cast for the second argument to the
kdb_trap call.
1997-07-17 06:27:08 +00:00
thorpej
b88b183ab5
Don't have kernel vs. non-kernel versions of _ENTRY(); there's no
...
reason to omit the .type directive in the kernel case.
1997-07-14 07:44:56 +00:00
veego
78996821fa
Move the defines of UPAGES and NPTEPG back to the MD param.h, execpt that
...
the sun3[x] doesn't use NPTEPG.
1997-07-10 08:22:09 +00:00
is
de025de65f
Add support for T-racing of emulated instructions. (Yes, gdb uses this.)
1997-06-27 23:32:09 +00:00
is
f3efbb406a
The recent buserr handler cleanup in the Amiga locore.s made the label
...
_buserr point to the 68020/030 buserr code _only_. This has broken access
error handling in the 060 support code.
This is repaired by jumping to _buserr60 from the 060SP, and by providing
a _buserr60 label identical to the _buserr in the unchanged m68k ports
using the 68060.
1997-06-26 22:28:42 +00:00
thorpej
0404c01c46
#define DB_AOUT_SYMBOLS
1997-06-26 01:26:56 +00:00
scottr
ecc68fd60f
Disassemble the MOVE16 instruction. Also, correct the spelling of
...
`unknown' while were here, as suggested. From Denny Gentry
<denny1@home.com>, PR 3567.
1997-06-19 17:39:38 +00:00
veego
a8536aa57a
Use <sys/param.h> and not <machine/param.h>
1997-06-12 09:57:04 +00:00
veego
f7d1a9f167
Add the 'Mach derived conversion macros' from <arch>/include/param.h.
1997-06-10 18:21:23 +00:00
veego
451bfcbc85
New MI include file. Based on the param.h from all m68k ports.
1997-06-10 07:51:43 +00:00
veego
68bc1316cc
Initialize machine_arch from MACHINE_ARCH.
1997-06-09 00:04:03 +00:00
veego
de7e49a954
Add 'char machine_arch[] = "xxx";' for the new sysctl hw.machine_arch.
1997-06-06 23:26:01 +00:00
veego
d04fe1f439
add src/sys/arch/m68k/m68k/m68k_machdep.c
1997-06-06 23:15:28 +00:00
is
6d6e724440
Reorganize buserr/addrerr stuff, to allow omitting unused code in single-cpu
...
kernels, at the same time getting rid of up to 3 conditional branches and a
bit over one cacheline fetch (for the 68060; the saving is a bit smaller for
040 and yet smaller for the 020/30).
While we're here, also get rid of an redundant lea (using SP-relative
addressing) and of two redundant pushes.
While we're here, also fix a panic which would tear us down on 68060 machines
if a branch prediction error ever occured.
1997-06-04 22:12:43 +00:00
leo
6793c446f0
An attempt to make a generic m68k implementation for cache control operations.
...
Not yet completely finished.
1997-06-02 20:26:37 +00:00
jtc
8ab87a1df9
fix tipo
1997-05-30 01:34:49 +00:00
jtc
9d04fc8ed1
New zeropage() implementation based on code contributed by Hiroshi Horitomo
...
<horimoto@cs-aoi.cs.sist.ac.jp> in PR #3641 . I changed the code slightly.
Instead of clearing 13 registers (d1-d7,a1-a6) and zeroing 512 bytes per
loop iteration, I clear 8 registers (d1-d7,a1) and zero 256 bytes. This
reduces the size and complexity of the function.
On the '020, the simpler code is less than 1% slower. Surprisingly, it
is ~3% faster on the '040.
1997-05-30 01:20:23 +00:00
jtc
9442b0fcda
Use movw when loading countdown registers.
1997-05-29 16:31:33 +00:00
jeremy
8253e6e107
Comment for susword was from fusword and hadn't been changed.
1997-05-21 03:51:04 +00:00
mycroft
fd8daf980e
Add .MAKE to the .OBJDIR hacks, so they work with `make -n'.
1997-05-07 07:15:34 +00:00
mycroft
90f17dd8ab
Oops; put the __attribute__ in the right place.
1997-05-03 12:49:05 +00:00
mycroft
a60739aacf
Make sure struct trapframe is packed tightly.
1997-05-03 10:16:58 +00:00
gwr
7a80e420ed
Remove unused part of sun3_kcore_hdr.
1997-05-01 22:48:09 +00:00
gwr
5e11440dae
Fix printf format vs. arg type warnings (in DEBUG sections).
1997-04-30 23:28:03 +00:00
veego
560544f47c
Add a -I${.CURDIR} to build netbsd.sa with a obj dir
1997-04-25 22:17:33 +00:00
thorpej
1a3df57d81
Preprocess .s files before assembling them.
1997-04-25 02:26:48 +00:00
thorpej
ffd2acc819
Minimalistic changes to not make assumptions about how C labels
...
are handled. This file's ".s" counterpart must now be pre-processed.
1997-04-25 02:26:04 +00:00
thorpej
dcca39c0f1
- Don't make assumptions about how C labels are handled.
...
- Use PANIC() where appropriate.
1997-04-25 02:22:00 +00:00
thorpej
deb6fcac46
Add several common trap vector stubs. Not all of them are here (yet),
...
but several are.
1997-04-25 01:33:18 +00:00
thorpej
658ce85446
Add several useful macros:
...
- ENTRY_NOPROFILE() and ASENTRY_NOPROFILE(), similar to ENTRY() and
ASENTRY(), but without the profiling prologue.
- GLOBAL()/ASGLOBAL() and LOCAL()/ASLOCAL(), for defining global and
local variables with C and ASM labels.
- BSS()/ASBSS(), for defining items in the BSS segment, with C or
ASM labels.
- PANIC("panic message") - shorthand for calling panic() from assembly code.
- VECTOR(), ASVECTOR(), VECTOR_UNUSED - shorthand for defining entries
in the vector table.
Also, change RCSID() to pad out the string to even boundary.
1997-04-24 22:49:39 +00:00
thorpej
434a6008fe
Common m68k sigcode.
1997-04-13 02:30:02 +00:00
thorpej
e59a1e5e15
Garbage-collect some things no longer needed since there are no longer
...
m68k4k ports.
1997-04-09 23:34:29 +00:00
thorpej
c739bf6e79
New kcore.h for m68k, includes all possible m68k formats in a self-describing
...
layout, facilitating sharing libkvm on all m68ks.
NOTE: This changes the crash dump format of all m68k ports that use the
new libkvm!
1997-04-09 19:25:00 +00:00
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
leo
92b96871ea
Turn the 'extern' definition of mcount() into a full prototype.
1997-04-08 20:39:01 +00:00
gwr
b43ee24829
Need a common <m68k/pcb.h> for gdb.
1997-03-31 21:32:26 +00:00
gwr
08f7a407f9
Separate bcopy and copypage stuff from copy.s
1997-03-17 19:46:36 +00:00
gwr
521683f862
Separate bcopy and the copypage/zeropage stuff out of copy.s
...
so they can be used separately, and so the copyrights are
attributed to the right owners. (Catch-all files are bad)
1997-03-17 19:44:33 +00:00
gwr
d531b1ed42
s/fpu_type/fputype/g
1997-03-17 19:03:11 +00:00
thorpej
f88e127939
Some misc. m68k asm support routines. This file currently contains
...
setjmp/longjmp and _insque/_remque. More to come.
1997-03-16 10:47:33 +00:00
is
07b064e02e
New ARP system, supports IPv4 over any hardware link.
...
Some of the stuff (e.g., rarpd, bootpd, dhcpd etc., libsa) still will
only support Ethernet. Tcpdump itself should be ok, but libpcap needs
lot of work.
For the detailed change history, look at the commit log entries for
the is-newarp branch.
1997-03-15 18:09:08 +00:00
gwr
5c553cfd2f
Factor out sendsig() and sys_sigreturn() from $arch/machdep.c
1997-03-13 19:14:35 +00:00
gwr
0a928acbfc
Remove some unnecessary <vm/*> headers. Have to keep <vm/vm_param.h>,
...
at least until boolean_t moves to <sys/types.h> or someplace...
Also make ddb_regs extern here. Closes PR#3213
1997-02-18 22:29:58 +00:00
gwr
25c5ca44ce
Define ddb_regs here (and extern in db_machdep.h)
1997-02-18 22:27:32 +00:00
gwr
2d1b2f72cd
Add m68k/kgdb_m68k.c
1997-02-12 01:01:07 +00:00
gwr
09cc42f318
Add kgdb_reg_t, KGDB_NUMREGS, KGDB_BUFLEN
1997-02-12 00:59:46 +00:00
gwr
64b7559e4f
Machine-dependent KGDB sharable on all m68k machines.
1997-02-12 00:58:01 +00:00