MIPS: Add microMIPS breakpoints and DSP support.
PATCH v2 1/9 MIPS: Add microMIPS breakpoints and DSP support.
From: "Steven J. Hill" <[email protected]>
Signed-off-by Steven J. Hill <[email protected]>
--- arch/mips/include/asm/break.h | 7 + arch/mips/include/asm/dsp.h | 4 + arch/mips/include/asm/mipsregs.h | 333 ++++++++++++++++----------------------- 3 files changed, 143 insertions(+), 201 deletions(-)
arch/mips/include/asm/break.h +7 -0
@@ -27,8 +27,15 @@#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 MM_BRK_MEMU 14/* Used by FPU emulator (microMIPS) */ #define BRK_MEMU 514/* Used by FPU emulator */ #define BRK_KPROBE_BP 515/* Kprobe break */ #define BRK_KPROBE_SSTEPBP 516/* Kprobe single step software implementation */
arch/mips/include/asm/dsp.h +4 -0
@@ -16,7 +16,11 @@#include <asm/mipsregs.h> #define DSP_DEFAULT 0x00000000 +#ifdef CONFIG_CPU_MICROMIPS +#define DSP_MASK 0x7f +#else #define DSP_MASK 0x3ff +#endif #define __enable_dsp_hazard () \ do { \
arch/mips/include/asm/mipsregs.h +132 -201
410 lines not on this page · raw message
Signature · 1 line
1.7.11.1