Xtensa: Fix some compilation issues

This commit is contained in:
Gregory Nutt 2016-10-18 12:38:57 -06:00
parent 503a2472e7
commit 6357970c5f
2 changed files with 3 additions and 4 deletions

View File

@ -97,7 +97,7 @@
#define _REG_LOOPS_START (22)
#if CONFIG_XTENSA_HAVE_LOOPS
#ifdef CONFIG_XTENSA_HAVE_LOOPS
# define REG_LBEG (_REG_LOOPS_START + 0)
# define REG_LEND (_REG_LOOPS_START + 1)
# define REG_LCOUNT (_REG_LOOPS_START + 2)

View File

@ -66,7 +66,7 @@
static inline uint32_t xtensa_getsp(void)
{
register uint32_t sp;
#waning Missing logic
#warning Missing logic
return sp;
}
@ -125,7 +125,7 @@ static inline void xtensa_registerdump(void)
(unsigned long)g_current_regs[REG_EXIT],
(unsigned long)g_current_regs[REG_EXCCAUSE],
(unsigned long)g_current_regs[REG_EXCVADDR]);
#if CONFIG_XTENSA_HAVE_LOOPS
#ifdef CONFIG_XTENSA_HAVE_LOOPS
_alert(" LBEG: %08lx LEND: %08lx LCNT: %08lx\n",
(unsigned long)g_current_regs[REG_LBEG],
(unsigned long)g_current_regs[REG_LEND],
@ -137,7 +137,6 @@ static inline void xtensa_registerdump(void)
(unsigned long)g_current_regs[REG_TMP1],
(unsigned long)g_current_regs[REG_TMP2]);
#endif
#ifdef CONFIG_XTENSA_USE_SWPRI
_alert(" VPRI: %08lx\n",
(unsigned long)g_current_regs[REG_VPRI]);