diff options
| author | guozhanxin <[email protected]> | 2022-03-29 20:50:38 +0800 |
|---|---|---|
| committer | guozhanxin <[email protected]> | 2022-03-29 20:50:38 +0800 |
| commit | f9245ef6fbcf2288309820930d473db39ef95cfa (patch) | |
| tree | d81b381046152b9bf5fc373a8130c10cadc8b5d4 /libcpu/arm | |
| parent | 61f1f698ec60db75d314b3782800514c706d7980 (diff) | |
| parent | a4a5ec0232ad32b70fed704b2a71803849e610f4 (diff) | |
Merge branch 'master' of https://github.com/RT-Thread/rt-thread
Diffstat (limited to 'libcpu/arm')
| -rw-r--r-- | libcpu/arm/cortex-m33/syscall_iar.S | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/libcpu/arm/cortex-m33/syscall_iar.S b/libcpu/arm/cortex-m33/syscall_iar.S index 53a6790ec1..7a058617ae 100644 --- a/libcpu/arm/cortex-m33/syscall_iar.S +++ b/libcpu/arm/cortex-m33/syscall_iar.S @@ -6,22 +6,25 @@ ; * Change Logs: ; * Date Author Notes ; * 2019-10-25 tyx first version +; * 2021-03-26 lxf modify bad instruction ; */ ;/* ; * @addtogroup cortex-m33 ; */ + SECTION .text:CODE(2) THUMB REQUIRE8 PRESERVE8 + IMPORT rt_secure_svc_handle + ;/* ; * int tzcall(int id, rt_ubase_t arg0, rt_ubase_t arg1, rt_ubase_t arg2); ; */ -.global tzcall -.type tzcall, %function + EXPORT tzcall tzcall: SVC 1 ;/* call SVC 1 */ BX LR @@ -39,8 +42,7 @@ tzcall_entry: syscall_entry: BX LR ;/* return to user app */ -.global SVC_Handler -.type SVC_Handler, %function + EXPORT SVC_Handler SVC_Handler: ;/* get SP, save to R1 */ @@ -61,3 +63,5 @@ get_sp_done: ;/* if svc == 1, do TrustZone call */ CMP R0, #0x1 BEQ tzcall_entry + + END |
