From 10f8f6c9e3793d597f655b2e1772ba38361bb502 Mon Sep 17 00:00:00 2001 From: Abdelatif Guettouche Date: Mon, 21 Mar 2022 12:20:40 +0100 Subject: [PATCH] xtensa/esp32(s2)_user.c: For EXCCAUSE values, use macros defined in xtensa_corebits.h instead of those defined in core.h as they are deprecated. Signed-off-by: Abdelatif Guettouche --- arch/xtensa/src/esp32/esp32_user.c | 6 +++--- arch/xtensa/src/esp32s2/esp32s2_user.c | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/arch/xtensa/src/esp32/esp32_user.c b/arch/xtensa/src/esp32/esp32_user.c index c699d2d0e3..c0af874424 100644 --- a/arch/xtensa/src/esp32/esp32_user.c +++ b/arch/xtensa/src/esp32/esp32_user.c @@ -26,7 +26,7 @@ #include #include -#include +#include #include #include @@ -337,7 +337,7 @@ uint32_t *xtensa_user(int exccause, uint32_t *regs) * (thus binfo() is used below) */ - if (exccause == XCHAL_EXCCAUSE_LOAD_STORE_ERROR && + if (exccause == EXCCAUSE_LOAD_STORE_ERROR && (uintptr_t)&_siramheap <= regs[REG_EXCVADDR] && (uintptr_t)&_eiramheap > regs[REG_EXCVADDR]) { @@ -346,7 +346,7 @@ uint32_t *xtensa_user(int exccause, uint32_t *regs) uint8_t s; uint8_t t; - binfo("XCHAL_EXCCAUSE_LOAD_STORE_ERROR at %p, pc=%p\n", + binfo("EXCCAUSE_LOAD_STORE_ERROR at %p, pc=%p\n", (void *)regs[REG_EXCVADDR], pc); diff --git a/arch/xtensa/src/esp32s2/esp32s2_user.c b/arch/xtensa/src/esp32s2/esp32s2_user.c index 5ea29e5919..0431752bbd 100644 --- a/arch/xtensa/src/esp32s2/esp32s2_user.c +++ b/arch/xtensa/src/esp32s2/esp32s2_user.c @@ -26,7 +26,7 @@ #include #include -#include +#include #include #include @@ -307,7 +307,7 @@ uint32_t *xtensa_user(int exccause, uint32_t *regs) * (thus binfo() is used below) */ - if (exccause == XCHAL_EXCCAUSE_LOAD_STORE_ERROR && + if (exccause == EXCCAUSE_LOAD_STORE_ERROR && (uintptr_t)&_stextheap <= regs[REG_EXCVADDR] && (uintptr_t)&_etextheap > regs[REG_EXCVADDR]) { @@ -316,7 +316,7 @@ uint32_t *xtensa_user(int exccause, uint32_t *regs) uint8_t s; uint8_t t; - binfo("XCHAL_EXCCAUSE_LOAD_STORE_ERROR at %p, pc=%p\n", + binfo("EXCCAUSE_LOAD_STORE_ERROR at %p, pc=%p\n", (void *)regs[REG_EXCVADDR], pc);