]> git.hungrycats.org Git - linux/commitdiff
[PATCH] Add a v850 config option to pass illegal insn traps to the kernel
authorMiles Bader <miles@lsi.nec.co.jp>
Tue, 18 Feb 2003 13:39:50 +0000 (05:39 -0800)
committerLinus Torvalds <torvalds@home.transmeta.com>
Tue, 18 Feb 2003 13:39:50 +0000 (05:39 -0800)
On the v850 RTE-MA1-CB-MULTI platform, these are normally intercepted by
the monitor for the use of an external debugger, but if you want to use
a linux-resident debugger, the kernel has to see them.

arch/v850/Kconfig
arch/v850/kernel/rte_cb_multi.c

index 513494ffb85b75591b0d6045061b50a26a06508d..312d5f93b35d4891e746b72b4f7094f71e514d96 100644 (file)
@@ -133,6 +133,11 @@ menu "Processor type and features"
          depends RTE_CB
          default y
 
+   config RTE_CB_MULTI_DBTRAP
+         bool "Pass illegal insn trap / dbtrap to kernel"
+         depends RTE_CB_MULTI
+         default n
+
    config RTE_CB_MA1_KSRAM
          bool "Kernel in SRAM (limits size of kernel)"
          depends RTE_CB_MA1 && RTE_CB_MULTI
index de5ba57ec2d0ceefb687d8839493c9b171f538ea..13db814a89197a3f4c073b2050c78025aa2c2301 100644 (file)
@@ -2,8 +2,8 @@
  * include/asm-v850/rte_multi.c -- Support for Multi debugger monitor ROM
  *     on Midas lab RTE-CB series of evaluation boards
  *
- *  Copyright (C) 2001,02  NEC Corporation
- *  Copyright (C) 2001,02  Miles Bader <miles@gnu.org>
+ *  Copyright (C) 2001,02,03  NEC Corporation
+ *  Copyright (C) 2001,02,03  Miles Bader <miles@gnu.org>
  *
  * This file is subject to the terms and conditions of the GNU General
  * Public License.  See the file COPYING in the main directory of this
@@ -23,6 +23,9 @@
    the table.  */
 static long multi_intv_install_table[] = {
        0x40, 0x50,             /* trap vectors */
+#ifdef CONFIG_RTE_CB_MULTI_DBTRAP
+       0x60,                   /* illegal insn / dbtrap */
+#endif
        /* Note -- illegal insn trap is used by the debugger.  */
        0xD0, 0xE0, 0xF0,       /* GINT1 - GINT3 */
        0x240, 0x250, 0x260, 0x270, /* timer D interrupts */