mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-03-06 05:07:56 +08:00
fix: code format of serial.c and compile error in aarch64 context_gcc
This commit is contained in:
parent
e9133d5660
commit
4e7d13b2db
@ -1019,8 +1019,7 @@ static void _tc_flush(struct rt_serial_device *serial, int queue)
|
||||
|
||||
}
|
||||
|
||||
static inline int _termio_to_termios(const struct termio *termio,
|
||||
struct termios *termios)
|
||||
static inline int _termio_to_termios(const struct termio *termio, struct termios *termios)
|
||||
{
|
||||
termios->c_iflag = termio->c_iflag;
|
||||
termios->c_oflag = termio->c_oflag;
|
||||
@ -1032,8 +1031,7 @@ static inline int _termio_to_termios(const struct termio *termio,
|
||||
return 0;
|
||||
}
|
||||
|
||||
static inline int _termios_to_termio(const struct termios *termios,
|
||||
struct termio *termio)
|
||||
static inline int _termios_to_termio(const struct termios *termios, struct termio *termio)
|
||||
{
|
||||
termio->c_iflag = (unsigned short)termios->c_iflag;
|
||||
termio->c_oflag = (unsigned short)termios->c_oflag;
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user