|
@@ -64,9 +64,6 @@
|
|
#define REG_SIZE "4" /* In bytes */
|
|
#define REG_SIZE "4" /* In bytes */
|
|
#endif
|
|
#endif
|
|
|
|
|
|
-static struct pt_regs die_regs;
|
|
|
|
-static bool have_die_regs;
|
|
|
|
-
|
|
|
|
static void register_panic_notifier(void);
|
|
static void register_panic_notifier(void);
|
|
static int panic_handler(struct notifier_block *notifier_block,
|
|
static int panic_handler(struct notifier_block *notifier_block,
|
|
unsigned long event, void *cause_string);
|
|
unsigned long event, void *cause_string);
|
|
@@ -218,24 +215,6 @@ static int panic_handler(struct notifier_block *notifier_block,
|
|
return NOTIFY_DONE;
|
|
return NOTIFY_DONE;
|
|
}
|
|
}
|
|
|
|
|
|
-/**
|
|
|
|
- * Platform-specific handling of oops
|
|
|
|
- * @str: Pointer to the oops string
|
|
|
|
- * @regs: Pointer to the oops registers
|
|
|
|
- * All we do here is to save the registers for subsequent printing through
|
|
|
|
- * the panic notifier.
|
|
|
|
- */
|
|
|
|
-void platform_die(const char *str, const struct pt_regs *regs)
|
|
|
|
-{
|
|
|
|
- /* If we already have saved registers, don't overwrite them as they
|
|
|
|
- * they apply to the initial fault */
|
|
|
|
-
|
|
|
|
- if (!have_die_regs) {
|
|
|
|
- have_die_regs = true;
|
|
|
|
- die_regs = *regs;
|
|
|
|
- }
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
/* Information about the RF MAC address, if one was supplied on the
|
|
/* Information about the RF MAC address, if one was supplied on the
|
|
* command line. */
|
|
* command line. */
|
|
static bool have_rfmac;
|
|
static bool have_rfmac;
|