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:
parent
004e68ccea
commit
711622cbba
1 changed files with 0 additions and 11 deletions
|
@ -21,17 +21,6 @@ LOG_MODULE_DECLARE(os, CONFIG_KERNEL_LOG_LEVEL);
|
|||
#include <xtensa/simcall.h>
|
||||
#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)
|
||||
{
|
||||
#if defined(CONFIG_PRINTK) || defined(CONFIG_LOG)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue