Xtensa: Fix some compilation issues

This commit is contained in:
Gregory Nutt 2016-10-23 13:33:48 -06:00
parent 1166d44441
commit a41c98952c
2 changed files with 23 additions and 1 deletions

View File

@ -219,7 +219,7 @@ static inline uint32_t up_irq_save(void)
__asm__ __volatile__
(
"psil %0, %1" : "=r"(ps) : "I"(XCHAL_EXCM_LEVEL)
"rsil %0, %1" : "=r"(ps) : "I"(XCHAL_EXCM_LEVEL)
);
/* Return the previous PS value so that it can be restored with

View File

@ -33,4 +33,26 @@
#
############################################################################
# Supported toolchains
#
# Each toolchain definition should set:
#
# CROSSDEV The GNU toolchain triple (command prefix)
# ARCROSSDEV If required, an alternative prefix used when
# invoking ar and nm.
# ARCHCPUFLAGS CPU-specific flags selecting the instruction set
# FPU options, etc.
# MAXOPTIMIZATION The maximum optimization level that results in
# reliable code generation.
#
CROSSDEV = xtensa-esp32-elf-
ARCHCPUFLAGS =
ifeq ($(CONFIG_DEBUG_CUSTOMOPT),y)
MAXOPTIMIZATION := $(CONFIG_DEBUG_OPTLEVEL)
else
MAXOPTIMIZATION := -Os
endif