2 * Bug handling for PKUnity SoC and UniCore ISA
4 * Copyright (C) 2001-2012 GUAN Xue-tao
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.
10 #ifndef __UNICORE_BUG_H__
11 #define __UNICORE_BUG_H__
13 #include <asm-generic/bug.h>
18 extern void die(const char *msg
, struct pt_regs
*regs
, int err
);
19 extern void uc32_notify_die(const char *str
, struct pt_regs
*regs
,
20 struct siginfo
*info
, unsigned long err
, unsigned long trap
);
22 extern asmlinkage
void __backtrace(void);
23 extern asmlinkage
void c_backtrace(unsigned long fp
, int pmode
);
25 extern void __show_regs(struct pt_regs
*);
27 #endif /* __UNICORE_BUG_H__ */