Received: with ECARTIS (v1.0.0; list linux-mips); Sun, 13 Jan 2013 00:38:34 +0100 (CET) Received: from home.bethel-hill.org ([63.228.164.32]:33370 "EHLO home.bethel-hill.org" rhost-flags-OK-OK-OK-OK) by eddie.linux-mips.org with ESMTP id S6824793Ab3ALXiQvPRnP (ORCPT ); Sun, 13 Jan 2013 00:38:16 +0100 Received: by home.bethel-hill.org with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.72) (envelope-from ) id 1TuAeQ-0006pH-SO; Sat, 12 Jan 2013 17:38:10 -0600 From: "Steven J. Hill" To: linux-mips@linux-mips.org Cc: "Steven J. Hill" , ralf@linux-mips.org Subject: [PATCH v2] MIPS: microMIPS: Add breakpoints. Date: Sat, 12 Jan 2013 17:38:06 -0600 Message-Id: <1358033886-18686-1-git-send-email-sjhill@mips.com> X-Mailer: git-send-email 1.7.9.5 X-archive-position: 35413 X-ecartis-version: Ecartis v1.0.0 Sender: linux-mips-bounce@linux-mips.org Errors-to: linux-mips-bounce@linux-mips.org X-original-sender: sjhill@mips.com Precedence: bulk List-help: List-unsubscribe: List-software: Ecartis version 1.0.0 List-Id: linux-mips X-List-ID: linux-mips List-subscribe: List-owner: List-post: List-archive: X-list: linux-mips Return-Path: From: "Steven J. Hill" Redefine BRK_BUG and BRK_KDB values for a pure microMIPS kernel. Signed-off-by: Steven J. Hill --- arch/mips/include/asm/break.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/arch/mips/include/asm/break.h b/arch/mips/include/asm/break.h index 9161e68..487feb8 100644 --- a/arch/mips/include/asm/break.h +++ b/arch/mips/include/asm/break.h @@ -27,9 +27,16 @@ #define BRK_STACKOVERFLOW 9 /* For Ada stackchecking */ #define BRK_NORLD 10 /* No rld found - not used by Linux/MIPS */ #define _BRK_THREADBP 11 /* For threads, user bp (used by debuggers) */ + +#ifdef CONFIG_CPU_MICROMIPS +#define BRK_BUG 12 /* Used by BUG() */ +#define BRK_KDB 13 /* Used in KDB_ENTER() */ +#define BRK_MEMU 14 /* Used by FPU emulator */ +#else #define BRK_BUG 512 /* Used by BUG() */ #define BRK_KDB 513 /* Used in KDB_ENTER() */ #define BRK_MEMU 514 /* Used by FPU emulator */ +#endif #define BRK_KPROBE_BP 515 /* Kprobe break */ #define BRK_KPROBE_SSTEPBP 516 /* Kprobe single step software implementation */ #define BRK_MULOVF 1023 /* Multiply overflow */ -- 1.7.9.5