diff options
author | Jan Beulich <jbeulich@novell.com> | 2008-12-16 11:40:27 +0000 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-12-16 18:40:32 +0100 |
commit | b93a531e315e97ef00367099e6b5f19651936e20 (patch) | |
tree | 231e6d626fbf85dd80d7cbac49a9c9a14282f898 /include | |
parent | 85072bd55219231b8ca5d9d3fa3492eb4fa6635f (diff) |
allow bug table entries to use relative pointers (and use it on x86-64)
Impact: reduce bug table size
This allows reducing the bug table size by half. Perhaps there are
other 64-bit architectures that could also make use of this.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include')
-rw-r--r-- | include/asm-generic/bug.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/asm-generic/bug.h b/include/asm-generic/bug.h index 12c07c1866b..4c794d73fb8 100644 --- a/include/asm-generic/bug.h +++ b/include/asm-generic/bug.h @@ -8,9 +8,17 @@ #ifdef CONFIG_GENERIC_BUG #ifndef __ASSEMBLY__ struct bug_entry { +#ifndef CONFIG_GENERIC_BUG_RELATIVE_POINTERS unsigned long bug_addr; +#else + signed int bug_addr_disp; +#endif #ifdef CONFIG_DEBUG_BUGVERBOSE +#ifndef CONFIG_GENERIC_BUG_RELATIVE_POINTERS const char *file; +#else + signed int file_disp; +#endif unsigned short line; #endif unsigned short flags; |