Commit Graph

332 Commits

Author SHA1 Message Date
is 3f894ade50 - only convert real hex constants to 0x form, not $NetBSD...
- protect comment lines from future uses of CPP by putting a | in front
1997-09-30 21:47:22 +00:00
is 81fb4c961d Forgot to remove this yesterday... this was renamed to netbsd060sp.S. 1997-09-29 22:28:14 +00:00
is d5e867bb03 Build the 68060 support package in the kernel build dir.
XXX PCB_ONFAULT is still hardwired to 64 in netbsd060sp.S.
1997-09-28 20:49:56 +00:00
is 8e9fc838dc In the OS glue code for the 060SP, replace the copyin()/copyout() glue by
movs.
XXX As our CPP seems to hate the 060SP, I couldn't use assym.h for the
PCB_ONFAULT definition, but had to hardwire 64 in the code. This needs
to  be fixed ASAP, and will be done in the upcoming reorganization of
the 060sp Makefiles.
1997-09-28 12:57:57 +00:00
is b325cdd771 Build this in ${KERNEL_BUILD_DIRECTORY}/lib/fpsp, similar to libkern. 1997-09-21 17:33:36 +00:00
leo c5ba7a3102 Move the definition of MSGBUFSIZE up to the machine-arch level if
possible. Pointed out by Bernd Ernesti.
1997-09-20 12:06:37 +00:00
jeremy f5c0dfebd6 Use ${CC} instead of cc and don't explicitly set AR and LD unless they are
unset.
1997-09-18 22:55:56 +00:00
leo 00a1b6300f Add DCFA() definitions. 1997-09-15 11:12:13 +00:00
is d8e09ca5ea Align some comments, so that I'll be able to track changes better. 1997-07-28 19:01:13 +00:00
is 95370c73b8 Make us pass the full ieeefp except regression test.
XXX This is probably a horrible hack, and wrong. FPU signal handling needs
to be further evaluated.
1997-07-20 12:39:17 +00:00
is f8ce8a3693 Fix my own PR port-m68k/3871, nee port-amiga/3871:
- don't erase FPSR exception bits _after_ doing most of the operations in
fpu_implode(), erase them before doing arith and store operations. This fixes
losing the DZ bit.
- create FPSR_OVFL and FPSR_UNFL bits in fpu_implode(). This showed up when
the first error was fixed.
XXX some more work needs to be done. E.g., creating OPERR together with
OVFL looks bogus, but I'm too tired know to re-check docs; and at least we
pass our own regression tests know.
1997-07-19 22:28:48 +00:00
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