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/compiler.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 src/arch/loong64/include/bits/compiler.h (limited to 'src/arch/loong64/include/bits/compiler.h') diff --git a/src/arch/loong64/include/bits/compiler.h b/src/arch/loong64/include/bits/compiler.h new file mode 100644 index 000000000..8bdaf63fe --- /dev/null +++ b/src/arch/loong64/include/bits/compiler.h @@ -0,0 +1,19 @@ +#ifndef _BITS_COMPILER_H +#define _BITS_COMPILER_H + +FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL ); + +/** Dummy relocation type */ +#define RELOC_TYPE_NONE R_LARCH_NONE + +#ifndef ASSEMBLY + +/** Unprefixed constant operand modifier */ +#define ASM_NO_PREFIX "a" + +#define __asmcall +#define __libgcc + +#endif /* ASSEMBLY */ + +#endif /*_BITS_COMPILER_H */ -- cgit v1.2.3-55-g7522