Commit a19f7f45 authored by Miles Bader's avatar Miles Bader Committed by Linus Torvalds

[PATCH] Add a v850 config option to pass illegal insn traps to the kernel

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.
parent 1438f40a
...@@ -133,6 +133,11 @@ menu "Processor type and features" ...@@ -133,6 +133,11 @@ menu "Processor type and features"
depends RTE_CB depends RTE_CB
default y 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 config RTE_CB_MA1_KSRAM
bool "Kernel in SRAM (limits size of kernel)" bool "Kernel in SRAM (limits size of kernel)"
depends RTE_CB_MA1 && RTE_CB_MULTI depends RTE_CB_MA1 && RTE_CB_MULTI
......
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
* include/asm-v850/rte_multi.c -- Support for Multi debugger monitor ROM * include/asm-v850/rte_multi.c -- Support for Multi debugger monitor ROM
* on Midas lab RTE-CB series of evaluation boards * on Midas lab RTE-CB series of evaluation boards
* *
* Copyright (C) 2001,02 NEC Corporation * Copyright (C) 2001,02,03 NEC Corporation
* Copyright (C) 2001,02 Miles Bader <miles@gnu.org> * Copyright (C) 2001,02,03 Miles Bader <miles@gnu.org>
* *
* This file is subject to the terms and conditions of the GNU General * 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 * Public License. See the file COPYING in the main directory of this
...@@ -23,6 +23,9 @@ ...@@ -23,6 +23,9 @@
the table. */ the table. */
static long multi_intv_install_table[] = { static long multi_intv_install_table[] = {
0x40, 0x50, /* trap vectors */ 0x40, 0x50, /* trap vectors */
#ifdef CONFIG_RTE_CB_MULTI_DBTRAP
0x60, /* illegal insn / dbtrap */
#endif
/* Note -- illegal insn trap is used by the debugger. */ /* Note -- illegal insn trap is used by the debugger. */
0xD0, 0xE0, 0xF0, /* GINT1 - GINT3 */ 0xD0, 0xE0, 0xF0, /* GINT1 - GINT3 */
0x240, 0x250, 0x260, 0x270, /* timer D interrupts */ 0x240, 0x250, 0x260, 0x270, /* timer D interrupts */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment