From: "Steven J. Hill" <sjhill@mips.com>
Redefine BRK_BUG and BRK_KDB values when using a pure microMIPS
kernel. Add MM_BRK_MEMU for running microMIPS user binaries on
a standard kernel.
Signed-off-by: Steven J. Hill <sjhill@mips.com>
---
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..c4744aa 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() */
+#else
#define BRK_BUG 512 /* Used by BUG() */
#define BRK_KDB 513 /* Used in KDB_ENTER() */
+#endif
#define BRK_MEMU 514 /* Used by FPU emulator */
+#define MM_BRK_MEMU 14 /* Used by FPU emulator for microMIPS */
#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
|