Commit 17a21961 authored by Anton Blanchard's avatar Anton Blanchard

ppc64: move BUG_ILLEGAL_INSTR into asm/bug.h, noted by Milton Miller

parent ed6a59be
......@@ -3,6 +3,16 @@
#include <linux/config.h>
/*
* Define an illegal instr to trap on the bug.
* We don't use 0 because that marks the end of a function
* in the ELF ABI. That's "Boo Boo" in case you wonder...
*/
#define BUG_OPCODE .long 0x00b00b00 /* For asm */
#define BUG_ILLEGAL_INSTR "0x00b00b00" /* For BUG macro */
#ifndef __ASSEMBLY__
#ifdef CONFIG_XMON
struct pt_regs;
extern void xmon(struct pt_regs *excp);
......@@ -20,3 +30,4 @@ extern void xmon(struct pt_regs *excp);
#define PAGE_BUG(page) do { BUG(); } while (0)
#endif
#endif
......@@ -22,13 +22,6 @@
#define SID_MASK 0xfffffffff
#define GET_ESID(x) (((x) >> SID_SHIFT) & SID_MASK)
/* Define an illegal instr to trap on the bug.
* We don't use 0 because that marks the end of a function
* in the ELF ABI. That's "Boo Boo" in case you wonder...
*/
#define BUG_OPCODE .long 0x00b00b00 /* For asm */
#define BUG_ILLEGAL_INSTR "0x00b00b00" /* For BUG macro */
#ifdef __KERNEL__
#ifndef __ASSEMBLY__
#include <asm/naca.h>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment