commit | 639951a89c6c62aa98c054ad40487feb865c0606 | [log] [tgz] |
---|---|---|
author | Maria Yu <aiquny@codeaurora.org> | Thu May 29 14:15:54 2014 +0800 |
committer | Maria Yu <aiquny@codeaurora.org> | Tue Sep 23 18:02:51 2014 +0800 |
tree | 10d55687982987ad36552aa513e9e951cd498e56 | |
parent | 99caaa7a97f6607a93e9677449d2268d47a2e2a9 [diff] [blame] |
lib: debug: add dump frame info in panic Dump frame info when panic occurs. Change-Id: I7332a9dcb31c842ff549e806a1a3acc598ce4681
diff --git a/include/debug.h b/include/debug.h index bcf73c5..d4bce54 100644 --- a/include/debug.h +++ b/include/debug.h
@@ -64,6 +64,8 @@ /* systemwide halts */ void halt(void); +void dump_frame(void *frame); + void _panic(void *caller, const char *fmt, ...) __PRINTFLIKE(2, 3); #define panic(x...) _panic(__GET_CALLER(), x)