diff options
author | Wu Xiaotian <wuxiaotian@loongson.cn> | 2020-09-01 12:13:18 +0800 |
---|---|---|
committer | Xiaotian Wu <wuxiaotian@loongson.cn> | 2021-11-30 23:34:20 +0800 |
commit | 5c0968a2d14d5e1afb40a36c55d3f89805712904 (patch) | |
tree | 9c52d98f7b66b62319db7f8fa206c0343b6c736e /src/basic/architecture.h | |
parent | 3d170ca5809639b0ca43b2014a9f745df4b32926 (diff) | |
download | systemd-5c0968a2d14d5e1afb40a36c55d3f89805712904.tar.gz |
architecture: Add support for the LoongArch architecture
Diffstat (limited to 'src/basic/architecture.h')
-rw-r--r-- | src/basic/architecture.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/basic/architecture.h b/src/basic/architecture.h index eaee01348e..0b91c69c0b 100644 --- a/src/basic/architecture.h +++ b/src/basic/architecture.h @@ -20,6 +20,7 @@ typedef enum { ARCHITECTURE_ARM_BE, ARCHITECTURE_CRIS, ARCHITECTURE_IA64, + ARCHITECTURE_LOONGARCH64, ARCHITECTURE_M68K, ARCHITECTURE_MIPS, ARCHITECTURE_MIPS64, @@ -197,6 +198,10 @@ int uname_architecture(void); # elif defined(__SH4A__) # define LIB_ARCH_TUPLE "sh4a-linux-gnu" # endif +#elif defined(__loongarch64) +# pragma message "Please update the Arch tuple of loongarch64 after psABI is stable" +# define native_architecture() ARCHITECTURE_LOONGARCH64 +# define LIB_ARCH_TUPLE "loongarch64-linux-gnu" #elif defined(__m68k__) # define native_architecture() ARCHITECTURE_M68K # define LIB_ARCH_TUPLE "m68k-linux-gnu" |