* Copyright (c) 1992 OMRON Corporation.
* Copyright (c) 1992 The Regents of the University of California.
* This code is derived from software contributed to Berkeley by
* %sccs.include.redist.c%
* @(#)trap.c 7.1 (Berkeley) %G%
#include <machine/frame.h>
#include <luna68k/stand/romvec.h>
#define USER 040 /* user-mode flag added to type */
#define TRAP_TYPES (sizeof trap_type / sizeof trap_type[0])
* Called from the trap handler when a processor trap occurs.
trap(type
, code
, v
, frame
)
printf("trap type %d, code = %x, v = %x\n", type
, code
, v
);
regdump(frame
.f_regs
, 128);
if ((unsigned)type
< TRAP_TYPES
)