diff options
author | Steven J. Hill <sjhill@mips.com> | 2013-01-24 11:26:35 -0500 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2013-02-15 17:07:38 -0500 |
commit | 8e8dc33543504830e6444607ba856e60679995f1 (patch) | |
tree | 2f3868c67012442dbadf494150745ddc7b623a2a | |
parent | a96102be700f87283f168942cd09a2b30f86f324 (diff) |
MIPS: Redefine value of BRK_BUG.
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.
[ralf@linux-mips.org: Many of the break codes starting from 0 are used
across many MIPS UNIX variants. Codes starting from 512 are operating
system specific additions. 1023 again is also used by other operating
systems]
Signed-off-by: Steven J. Hill <sjhill@mips.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
-rw-r--r-- | arch/mips/include/uapi/asm/break.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/include/uapi/asm/break.h b/arch/mips/include/uapi/asm/break.h index e5fa7b5b0556..73455e9be7a8 100644 --- a/arch/mips/include/uapi/asm/break.h +++ b/arch/mips/include/uapi/asm/break.h | |||
@@ -27,7 +27,7 @@ | |||
27 | #define BRK_STACKOVERFLOW 9 /* For Ada stackchecking */ | 27 | #define BRK_STACKOVERFLOW 9 /* For Ada stackchecking */ |
28 | #define BRK_NORLD 10 /* No rld found - not used by Linux/MIPS */ | 28 | #define BRK_NORLD 10 /* No rld found - not used by Linux/MIPS */ |
29 | #define _BRK_THREADBP 11 /* For threads, user bp (used by debuggers) */ | 29 | #define _BRK_THREADBP 11 /* For threads, user bp (used by debuggers) */ |
30 | #define BRK_BUG 512 /* Used by BUG() */ | 30 | #define BRK_BUG 12 /* Used by BUG() */ |
31 | #define BRK_KDB 513 /* Used in KDB_ENTER() */ | 31 | #define BRK_KDB 513 /* Used in KDB_ENTER() */ |
32 | #define BRK_MEMU 514 /* Used by FPU emulator */ | 32 | #define BRK_MEMU 514 /* Used by FPU emulator */ |
33 | #define BRK_KPROBE_BP 515 /* Kprobe break */ | 33 | #define BRK_KPROBE_BP 515 /* Kprobe break */ |