Skip to content

Commit

Permalink
x86: unify include/asm/kdebug_32/64.h
Browse files Browse the repository at this point in the history
The 64 bit variant has additional function prototypes which do no harm
for 32 bit.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
  • Loading branch information
Thomas Gleixner authored and Thomas Gleixner committed Oct 17, 2007
1 parent 612d26a commit 35cc461
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 63 deletions.
36 changes: 32 additions & 4 deletions include/asm-x86/kdebug.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,33 @@
#ifdef CONFIG_X86_32
# include "kdebug_32.h"
#else
# include "kdebug_64.h"
#ifndef _ASM_X86_KDEBUG_H
#define _ASM_X86_KDEBUG_H

#include <linux/notifier.h>

struct pt_regs;

/* Grossly misnamed. */
enum die_val {
DIE_OOPS = 1,
DIE_INT3,
DIE_DEBUG,
DIE_PANIC,
DIE_NMI,
DIE_DIE,
DIE_NMIWATCHDOG,
DIE_KERNELDEBUG,
DIE_TRAP,
DIE_GPF,
DIE_CALL,
DIE_NMI_IPI,
DIE_PAGE_FAULT,
};

extern void printk_address(unsigned long address);
extern void die(const char *,struct pt_regs *,long);
extern void __die(const char *,struct pt_regs *,long);
extern void show_registers(struct pt_regs *regs);
extern void dump_pagetable(unsigned long);
extern unsigned long oops_begin(void);
extern void oops_end(unsigned long);

#endif
27 changes: 0 additions & 27 deletions include/asm-x86/kdebug_32.h

This file was deleted.

32 changes: 0 additions & 32 deletions include/asm-x86/kdebug_64.h

This file was deleted.

0 comments on commit 35cc461

Please sign in to comment.