From 62a1d5c0f5bc52227ba43ccb7924694d661449a2 Mon Sep 17 00:00:00 2001 From: Xiaotian Wu Date: Mon, 6 Feb 2023 12:48:50 +0000 Subject: [loong64] Add initial support for LoongArch64 Add support for building a LoongArch64 Linux userspace binary. Signed-off-by: Xiaotian Wu Modified-by: Michael Brown Signed-off-by: Michael Brown --- src/arch/loong64/include/bits/tcpip.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 src/arch/loong64/include/bits/tcpip.h (limited to 'src/arch/loong64/include/bits/tcpip.h') diff --git a/src/arch/loong64/include/bits/tcpip.h b/src/arch/loong64/include/bits/tcpip.h new file mode 100644 index 000000000..fc3c5b3ff --- /dev/null +++ b/src/arch/loong64/include/bits/tcpip.h @@ -0,0 +1,19 @@ +#ifndef _BITS_TCPIP_H +#define _BITS_TCPIP_H + +/** @file + * + * Transport-network layer interface + * + */ + +FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL ); + +static inline __attribute__ (( always_inline )) uint16_t +tcpip_continue_chksum ( uint16_t partial, const void *data, size_t len ) { + + /* Not yet optimised */ + return generic_tcpip_continue_chksum ( partial, data, len ); +} + +#endif /* _BITS_TCPIP_H */ -- cgit v1.2.3-55-g7522