Xtensa port: Enable long calls for Xtensa vector table.

Change-Id: I2e4c9ca0742988eb9ab4ec2db7c81bc988212f2c
Signed-off-by: Mazen NEIFER <mazen@nestwave.com>
This commit is contained in:
Mazen NEIFER 2017-01-26 16:47:07 +01:00 committed by Andrew Boie
commit b8cbd05e6b
3 changed files with 2 additions and 9 deletions

View file

@ -21,13 +21,6 @@ ifeq ($(CONFIG_SIMULATOR_XTENSA),y)
flagBoardType= -DXT_SIMULATOR flagBoardType= -DXT_SIMULATOR
endif endif
flagLongCall=
flagALongCall=
ifeq ($(CONFIG_LONG_CALL),y)
flagLongCall=-mlongcalls
flagALongCall=--longcalls
endif
# Remove compilation flags added by top makefile and which are not supported by xcc and enable. # Remove compilation flags added by top makefile and which are not supported by xcc and enable.
KBUILD_CFLAGS := $(filter-out -fno-asynchronous-unwind-tables -fno-omit-frame-pointer,${KBUILD_CFLAGS}) KBUILD_CFLAGS := $(filter-out -fno-asynchronous-unwind-tables -fno-omit-frame-pointer,${KBUILD_CFLAGS})
# Add Xtensa pecific flags # Add Xtensa pecific flags

View file

@ -1,5 +1,5 @@
ccflags-y += -I$(srctree)/kernel/unified/include ccflags-y += -I$(srctree)/kernel/unified/include
asflags-y += -I$(srctree)/kernel/unified/include asflags-y += -I$(srctree)/kernel/unified/include --longcalls
ifdef CONFIG_ATOMIC_OPERATIONS_C ifdef CONFIG_ATOMIC_OPERATIONS_C
# Use C routines from kernel/nanokernel/atomic.c # Use C routines from kernel/nanokernel/atomic.c

View file

@ -1,2 +1,2 @@
asflags-y := -c -xassembler-with-cpp $(XTENSA_INCLUDE) $(flagBoardType) $(flagALongCall) -mtext-section-literals asflags-y := -c -xassembler-with-cpp $(XTENSA_INCLUDE) $(flagBoardType) -mtext-section-literals --longcalls
obj-y = reset-vector.o obj-y = reset-vector.o