lkml.org 
[lkml]   [2003]   [Feb]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Subject[PATCH] Add a v850 config option to pass illegal insn traps to the kernel
Date
From
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.

diff -ruN -X../cludes linux-2.5.62-uc0.orig/arch/v850/Kconfig linux-2.5.62-uc0/arch/v850/Kconfig
--- linux-2.5.62-uc0.orig/arch/v850/Kconfig 2003-02-12 11:26:18.000000000 +0900
+++ linux-2.5.62-uc0/arch/v850/Kconfig 2003-02-19 11:40:02.000000000 +0900
@@ -133,6 +133,11 @@
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
diff -ruN -X../cludes linux-2.5.62-uc0.orig/arch/v850/kernel/rte_cb_multi.c linux-2.5.62-uc0/arch/v850/kernel/rte_cb_multi.c
--- linux-2.5.62-uc0.orig/arch/v850/kernel/rte_cb_multi.c 2002-11-05 11:25:22.000000000 +0900
+++ linux-2.5.62-uc0/arch/v850/kernel/rte_cb_multi.c 2003-02-19 11:41:13.000000000 +0900
@@ -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 */
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2005-03-22 13:33    [W:0.022 / U:0.016 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site