panic_reason.h 636 B

1234567891011121314151617181920
  1. /*
  2. * SPDX-FileCopyrightText: 2020-2023 Espressif Systems (Shanghai) CO LTD
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. */
  6. #pragma once
  7. #include "soc/soc_caps.h"
  8. /* Need a way to signal which core caused the INT WDT like we do with EXCAUSE on xtensa.
  9. Choosing a large number that is unlikely to conflict with any actual riscv mcauses
  10. bit 12 and above are always zero on the CPU used by P4
  11. */
  12. #define PANIC_RSN_INTWDT_CPU0 ETS_INT_WDT_INUM
  13. #if SOC_CPU_CORES_NUM > 1
  14. #define PANIC_RSN_INTWDT_CPU1_FLAG (1 << 12)
  15. #define PANIC_RSN_INTWDT_CPU1 (PANIC_RSN_INTWDT_CPU1_FLAG | ETS_INT_WDT_INUM)
  16. #endif
  17. #define PANIC_RSN_CACHEERR 3