MIPS: microMIPS: Redefine value of BRK_BUG.
PATCH v3 1/1 MIPS: microMIPS: Redefine value of BRK_BUG.
From: "Steven J. Hill" <[email protected]>
The BRK_BUG value is used in the BUG and __BUG_ON inline macros. For standard MIPS cores the code in the 'tne' instruction is 10-bits long. In microMIPS, the 'tne' instruction is recoded and the code can only be 4-bits long. We change the value to 12 instead of 512 so that both classic and microMIPS kernels build.
Signed-off-by Steven J. Hill <[email protected]>
--- arch/mips/include/uapi/asm/break.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/mips/include/uapi/asm/break.h +1 -1
@@ -27,7 +27,7 @@#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) */ -#define BRK_BUG 512/* Used by BUG() */ +#define BRK_BUG 12/* Used by BUG() */ #define BRK_KDB 513/* Used in KDB_ENTER() */ #define BRK_MEMU 514/* Used by FPU emulator */ #define BRK_KPROBE_BP 515/* Kprobe break */
Signature · 1 line
1.7.9.5