Xtensa: Fix some compilation issues
This commit is contained in:
parent
1166d44441
commit
a41c98952c
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user