panic on RISC-V: Take into account Merge Request comments

This commit is contained in:
Omar Chebib
2020-12-28 11:39:25 +08:00
parent 5962b1dc56
commit c218f669ba
8 changed files with 38 additions and 41 deletions
@@ -13,8 +13,12 @@
// limitations under the License.
#pragma once
#define PANIC_RSN_NONE 0
#define PANIC_RSN_INTWDT_CPU0 1
#define PANIC_RSN_INTWDT_CPU1 2
#define PANIC_RSN_CACHEERR 3
#define PANIC_RSN_MAX 3
enum _panic_reasons {
PANIC_RSN_NONE = 0,
PANIC_RSN_INTWDT_CPU0,
#if SOC_CPU_NUM > 1
PANIC_RSN_INTWDT_CPU1,
#endif
PANIC_RSN_CACHEERR,
PANIC_RSN_COUNT
} panic_reasons;