diff options
author | Jens Wiklander <jens.wiklander@linaro.org> | 2014-12-02 10:57:09 +0100 |
---|---|---|
committer | Jens Wiklander <jens.wiklander@linaro.org> | 2014-12-12 10:03:05 +0100 |
commit | 820f30dbf0bb6013e6f61061b91c3a5c5a987741 (patch) | |
tree | 6812f98f738dd0383a92c0acbda930caed447c46 /core | |
parent | f69755b7e7795c4de11ca50530479dbe24224f10 (diff) |
arm32: assembly routines in separate sections
Moves some assembly routines into separate sections. This helps the garbage
collecting with the linker when separating what's must be unpaged from the
rest of the code. The garbage collector in the linker works on dependencies
between sections.
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
Reviewed-by: Pascal Brand <pascal.brand@linaro.org>
Diffstat (limited to 'core')
-rw-r--r-- | core/arch/arm32/sm/sm_asm.S | 2 | ||||
-rw-r--r-- | core/arch/arm32/tee/arch_svc_asm.S | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/core/arch/arm32/sm/sm_asm.S b/core/arch/arm32/sm/sm_asm.S index 6783cbd..c4da5bf 100644 --- a/core/arch/arm32/sm/sm_asm.S +++ b/core/arch/arm32/sm/sm_asm.S @@ -30,6 +30,8 @@ #include <arm32_macros.S> #include <sm/teesmc.h> + .section .text.sm_asm + LOCAL_FUNC sm_save_modes_regs , : /* User mode registers has to be saved from system mode */ cps #CPSR_MODE_SYS diff --git a/core/arch/arm32/tee/arch_svc_asm.S b/core/arch/arm32/tee/arch_svc_asm.S index 3a81129..784f954 100644 --- a/core/arch/arm32/tee/arch_svc_asm.S +++ b/core/arch/arm32/tee/arch_svc_asm.S @@ -31,9 +31,7 @@ #include <tee_api_defines.h> #include <kernel/thread.h> -.section .text -.balign 4 -.code 32 + .section .text.arch_svc_asm /* * Below are low level routines handling entry and return from user mode. |