summaryrefslogtreecommitdiff
path: root/libcpu/aarch64/common
diff options
context:
space:
mode:
authorzhao maosheng <[email protected]>2024-04-02 15:43:50 +0800
committerMeco Man <[email protected]>2024-04-02 08:07:21 -0400
commit687eb87a2bcdea48b8e50f8b4db23c24bba657c8 (patch)
tree092fdcfbf83567318a109b2fc03367ab4a1dfbcb /libcpu/aarch64/common
parent34fb8d2f10f4671fea8a39f3f7a724e989ba4ce6 (diff)
fix: code format of serial.c and compile error in aarch64 context_gcc
Diffstat (limited to 'libcpu/aarch64/common')
-rw-r--r--libcpu/aarch64/common/context_gcc.S9
1 files changed, 4 insertions, 5 deletions
diff --git a/libcpu/aarch64/common/context_gcc.S b/libcpu/aarch64/common/context_gcc.S
index 9dd3c5e4b0..c425460029 100644
--- a/libcpu/aarch64/common/context_gcc.S
+++ b/libcpu/aarch64/common/context_gcc.S
@@ -20,11 +20,10 @@
#include "armv8.h"
#ifndef RT_USING_SMP
-.bss
- .align 3
-rt_interrupt_from_thread: .comm 8, 8
-rt_interrupt_to_thread: .comm 8, 8
-rt_thread_switch_interrupt_flag: .comm 8, 8
+.section .data
+rt_interrupt_from_thread: .zero 8
+rt_interrupt_to_thread: .zero 8
+rt_thread_switch_interrupt_flag: .zero 8
#endif
.text