Xtensa: Correct some compile issues
This commit is contained in:
parent
2514ddec8b
commit
4cf60022ca
@ -1182,6 +1182,7 @@
|
|||||||
# endif
|
# endif
|
||||||
90:
|
90:
|
||||||
#endif
|
#endif
|
||||||
|
.endm
|
||||||
|
|
||||||
/* Macro that expands to the body of a function that loads the selected coprocessor's state
|
/* Macro that expands to the body of a function that loads the selected coprocessor's state
|
||||||
* (registers etc).
|
* (registers etc).
|
||||||
|
@ -126,20 +126,6 @@
|
|||||||
and a2, a2, a4
|
and a2, a2, a4
|
||||||
beqz a2, 5f /* Nothing to do */
|
beqz a2, 5f /* Nothing to do */
|
||||||
|
|
||||||
/* This bit of code provides a nice debug backtrace in the debugger.
|
|
||||||
* It does take a few more instructions, so undef XT_DEBUG_BACKTRACE
|
|
||||||
* if you want to save the cycles.
|
|
||||||
* /
|
|
||||||
|
|
||||||
#if XT_DEBUG_BACKTRACE
|
|
||||||
#ifndef CONFIG_XTENSA_CALL0_ABI
|
|
||||||
rsr a0, EPC_1 + \level - 1 /* Return address */
|
|
||||||
movi a4, 0xC0000000 /* Constant with top 2 bits set (call size) */
|
|
||||||
or a0, a0, a4 /* Set top 2 bits */
|
|
||||||
addx2 a0, a4, a0 /* Clear top bit -- simulating call4 size */
|
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef XT_INTEXC_HOOKS
|
#ifdef XT_INTEXC_HOOKS
|
||||||
/* Call interrupt hook if present to (pre)handle interrupts. */
|
/* Call interrupt hook if present to (pre)handle interrupts. */
|
||||||
|
|
||||||
|
@ -59,12 +59,10 @@
|
|||||||
|
|
||||||
#include <nuttx/config.h>
|
#include <nuttx/config.h>
|
||||||
|
|
||||||
#include <arch/irq.h>
|
|
||||||
#include <arch/chip/core-isa.h>
|
#include <arch/chip/core-isa.h>
|
||||||
#include <arch/xtensa/xtensa_specregs.h>
|
#include <arch/xtensa/xtensa_specregs.h>
|
||||||
|
|
||||||
#include "xtensa_macros.h"
|
#include "xtensa_macros.h"
|
||||||
#include "xtensa_timer.h"
|
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Assembly Language Macros
|
* Assembly Language Macros
|
||||||
|
@ -34,7 +34,7 @@
|
|||||||
#define __ARCH_XTENSA_SRC_COMMON_XTENSA_TIMER_H
|
#define __ARCH_XTENSA_SRC_COMMON_XTENSA_TIMER_H
|
||||||
|
|
||||||
#ifdef __ASSEMBLER__
|
#ifdef __ASSEMBLER__
|
||||||
# include <xtensa/coreasm.h>
|
//# include <xtensa/coreasm.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <arch/xtensa/core.h>
|
#include <arch/xtensa/core.h>
|
||||||
|
@ -89,24 +89,6 @@ static void esp32_irq_dump(const char *msg, int irq)
|
|||||||
# define esp32_irq_dump(msg, irq)
|
# define esp32_irq_dump(msg, irq)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/****************************************************************************
|
|
||||||
* Name: esp32_nmi
|
|
||||||
*
|
|
||||||
* Description:
|
|
||||||
* Handlers for various execptions. None are handled and all are fatal
|
|
||||||
* error conditions. The only advantage these provided over the default
|
|
||||||
* unexpected interrupt handler is that they provide a diagnostic output.
|
|
||||||
*
|
|
||||||
****************************************************************************/
|
|
||||||
|
|
||||||
static int esp32_nmi(int irq, FAR void *context)
|
|
||||||
{
|
|
||||||
(void)up_irq_save();
|
|
||||||
_err("PANIC!!! NMI received\n");
|
|
||||||
PANIC();
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Public Functions
|
* Public Functions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user