libpayload: Turn on thumb interworking in libpayload.

Things work better with it turned on, and the overhead should be negligable.

Built and booted into depthcharge on Snow. Verified that calling between
various bits of thumb and ARM code worked correctly.

Change-Id: I08d1006e113d2cca08634bf19240aca138a449d9
Signed-off-by: Gabe Black <gabeblack@google.com>
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
Reviewed-on: http://review.coreboot.org/2567
Tested-by: build bot (Jenkins)
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
This commit is contained in:
Gabe Black 2013-03-01 03:22:22 -08:00 committed by Stefan Reinauer
parent 9907c6edeb
commit c8e4284acb
1 changed files with 3 additions and 5 deletions

View File

@ -109,11 +109,9 @@ detect_special_flags() {
arm ) arm )
# testcc "$CC" "$CFLAGS -mcpu=cortex-a9" && # testcc "$CC" "$CFLAGS -mcpu=cortex-a9" &&
# CFLAGS="$CFLAGS -mcpu=cortex-a9" # CFLAGS="$CFLAGS -mcpu=cortex-a9"
testcc "$CC" "\ testcc "$CC" \
$CFLAGS -ffixed-r8 -msoft-float -marm -mabi=aapcs-linux \ "$CFLAGS -ffixed-r8 -msoft-float -marm -mabi=aapcs-linux -march=armv7" &&
-mno-thumb-interwork -march=armv7 -mno-thumb-interwork" && CFLAGS="\ CFLAGS="$CFLAGS -ffixed-r8 -msoft-float -marm -mabi=aapcs-linux -march=armv7"
$CFLAGS -ffixed-r8 -msoft-float -marm -mabi=aapcs-linux \
-mno-thumb-interwork -march=armv7 -mno-thumb-interwork"
;; ;;
esac esac
} }