Make entrypoints Thumb2.
Save the 64bit shifts that are more efficient as ARM code.
Move the standard .S set up code to asm_support_arm.S.
Change-Id: I38b95a88a3658e311020b59abfbe16f843b509ff
diff --git a/runtime/arch/arm/asm_support_arm.S b/runtime/arch/arm/asm_support_arm.S
index 559788f..ee4484b 100644
--- a/runtime/arch/arm/asm_support_arm.S
+++ b/runtime/arch/arm/asm_support_arm.S
@@ -19,7 +19,24 @@
#include "asm_support_arm.h"
+.cfi_sections .debug_frame
+.syntax unified
+.arch armv7-a
+.thumb
+
.macro ENTRY name
+ .thumb_func
+ .type \name, #function
+ .global \name
+ /* Cache alignment for function entry */
+ .balign 16
+\name:
+ .cfi_startproc
+ .fnstart
+.endm
+
+.macro ARM_ENTRY name
+ .arm
.type \name, #function
.global \name
/* Cache alignment for function entry */