Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
17a21961
Commit
17a21961
authored
Jan 16, 2003
by
Anton Blanchard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ppc64: move BUG_ILLEGAL_INSTR into asm/bug.h, noted by Milton Miller
parent
ed6a59be
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
7 deletions
+11
-7
include/asm-ppc64/bug.h
include/asm-ppc64/bug.h
+11
-0
include/asm-ppc64/page.h
include/asm-ppc64/page.h
+0
-7
No files found.
include/asm-ppc64/bug.h
View file @
17a21961
...
@@ -3,6 +3,16 @@
...
@@ -3,6 +3,16 @@
#include <linux/config.h>
#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
#ifdef CONFIG_XMON
struct
pt_regs
;
struct
pt_regs
;
extern
void
xmon
(
struct
pt_regs
*
excp
);
extern
void
xmon
(
struct
pt_regs
*
excp
);
...
@@ -20,3 +30,4 @@ 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)
#define PAGE_BUG(page) do { BUG(); } while (0)
#endif
#endif
#endif
include/asm-ppc64/page.h
View file @
17a21961
...
@@ -22,13 +22,6 @@
...
@@ -22,13 +22,6 @@
#define SID_MASK 0xfffffffff
#define SID_MASK 0xfffffffff
#define GET_ESID(x) (((x) >> SID_SHIFT) & SID_MASK)
#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__
#ifdef __KERNEL__
#ifndef __ASSEMBLY__
#ifndef __ASSEMBLY__
#include <asm/naca.h>
#include <asm/naca.h>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment