Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2d191233 authored by Mike Frysinger's avatar Mike Frysinger Committed by Bryan Wu
Browse files

[Blackfin] arch: define our own BUG() so we can dump the blackfin hardware trace buffer

parent 8e9d5c7d
Loading
Loading
Loading
Loading
+13 −0
Original line number Diff line number Diff line
#ifndef _BLACKFIN_BUG_H
#define _BLACKFIN_BUG_H

#ifdef CONFIG_BUG
#define HAVE_ARCH_BUG

#define BUG() do { \
	dump_bfin_trace_buffer(); \
	printk(KERN_EMERG "BUG: failure at %s:%d/%s()!\n", __FILE__, __LINE__, __func__); \
	panic("BUG!"); \
} while (0)

#endif

#include <asm-generic/bug.h>

#endif