projects
/
powerpc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[ARM] 3021/1: Interrupt 0 bug fix for ixp4xx
[powerpc.git]
/
include
/
asm-x86_64
/
bug.h
diff --git
a/include/asm-x86_64/bug.h
b/include/asm-x86_64/bug.h
index
eed7856
..
80ac1fe
100644
(file)
--- a/
include/asm-x86_64/bug.h
+++ b/
include/asm-x86_64/bug.h
@@
-9,10
+9,8
@@
*/
struct bug_frame {
unsigned char ud2[2];
*/
struct bug_frame {
unsigned char ud2[2];
- unsigned char mov;
- /* should use 32bit offset instead, but the assembler doesn't
- like it */
- char *filename;
+ unsigned char push;
+ signed int filename;
unsigned char ret;
unsigned short line;
} __attribute__((packed));
unsigned char ret;
unsigned short line;
} __attribute__((packed));
@@
-25,8
+23,8
@@
struct bug_frame {
The magic numbers generate mov $64bitimm,%eax ; ret $offset. */
#define BUG() \
asm volatile( \
The magic numbers generate mov $64bitimm,%eax ; ret $offset. */
#define BUG() \
asm volatile( \
- "ud2 ;
.byte 0xa3 ; .quad %c1 ; .byte 0xc2 ; .short %c0" ::
\
- "i"(__LINE__), "i" (__
stringify(__FILE__)
))
+ "ud2 ;
pushq $%c1 ; ret $%c0" ::
\
+ "i"(__LINE__), "i" (__
FILE__
))
void out_of_line_bug(void);
#else
static inline void out_of_line_bug(void) { }
void out_of_line_bug(void);
#else
static inline void out_of_line_bug(void) { }