fix: code format of serial.c and compile error in aarch64 context_gcc
This commit is contained in:
parent
34fb8d2f10
commit
687eb87a2b
@ -1015,8 +1015,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;
|
||||
@ -1028,8 +1027,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