From 687eb87a2bcdea48b8e50f8b4db23c24bba657c8 Mon Sep 17 00:00:00 2001 From: zhao maosheng Date: Tue, 2 Apr 2024 15:43:50 +0800 Subject: fix: code format of serial.c and compile error in aarch64 context_gcc --- libcpu/aarch64/common/context_gcc.S | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'libcpu') 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 -- cgit v1.3.1