xtensa: remove get_sreg macro from fatal.c

There is no in-file user. So remove it.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
This commit is contained in:
Daniel Leung 2023-12-07 14:48:58 -08:00 committed by Carles Cufí
commit 711622cbba

View file

@ -21,17 +21,6 @@ LOG_MODULE_DECLARE(os, CONFIG_KERNEL_LOG_LEVEL);
#include <xtensa/simcall.h> #include <xtensa/simcall.h>
#endif #endif
/* Need to do this as a macro since regnum must be an immediate value */
#define get_sreg(regnum_p) ({ \
unsigned int retval; \
__asm__ volatile( \
"rsr %[retval], %[regnum]\n\t" \
: [retval] "=r" (retval) \
: [regnum] "i" (regnum_p)); \
retval; \
})
char *z_xtensa_exccause(unsigned int cause_code) char *z_xtensa_exccause(unsigned int cause_code)
{ {
#if defined(CONFIG_PRINTK) || defined(CONFIG_LOG) #if defined(CONFIG_PRINTK) || defined(CONFIG_LOG)