diff options
author | Xiaotian Wu <wuxiaotian@loongson.cn> | 2023-08-09 14:52:27 +0200 |
---|---|---|
committer | Xiaotian Wu <wuxiaotian@loongson.cn> | 2023-08-09 14:44:57 +0200 |
commit | f106a639525c959cf791d5c9e58131a5efd19df6 (patch) | |
tree | 39ff9d8cfc627cdeab4e9705148f9b0b53457b7e /src/basic/virt.c | |
parent | seccomp: add LoongArch 64bit support (diff) | |
download | systemd-f106a639525c959cf791d5c9e58131a5efd19df6.tar.xz systemd-f106a639525c959cf791d5c9e58131a5efd19df6.zip |
LoongArch: Replace __loongarch64 with __loongarch_lp64
`__loongarch64` is no longer used for historical reasons and should be replaced by `__loongarch_lp64` in new code.
https://loongson.github.io/LoongArch-Documentation/LoongArch-toolchain-conventions-EN.html#_cc_preprocessor_built_in_macro_definitions
Diffstat (limited to 'src/basic/virt.c')
-rw-r--r-- | src/basic/virt.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/basic/virt.c b/src/basic/virt.c index e8f6a2fe47..4e2a4f7fcd 100644 --- a/src/basic/virt.c +++ b/src/basic/virt.c @@ -153,7 +153,7 @@ static Virtualization detect_vm_device_tree(void) { #endif } -#if defined(__i386__) || defined(__x86_64__) || defined(__arm__) || defined(__aarch64__) || defined(__loongarch64) +#if defined(__i386__) || defined(__x86_64__) || defined(__arm__) || defined(__aarch64__) || defined(__loongarch_lp64) static Virtualization detect_vm_dmi_vendor(void) { static const char* const dmi_vendors[] = { "/sys/class/dmi/id/product_name", /* Test this before sys_vendor to detect KVM over QEMU */ @@ -243,10 +243,10 @@ static int detect_vm_smbios(void) { log_debug("DMI BIOS Extension table does not indicate virtualization."); return SMBIOS_VM_BIT_UNSET; } -#endif /* defined(__i386__) || defined(__x86_64__) || defined(__arm__) || defined(__aarch64__) || defined(__loongarch64) */ +#endif /* defined(__i386__) || defined(__x86_64__) || defined(__arm__) || defined(__aarch64__) || defined(__loongarch_lp64) */ static Virtualization detect_vm_dmi(void) { -#if defined(__i386__) || defined(__x86_64__) || defined(__arm__) || defined(__aarch64__) || defined(__loongarch64) +#if defined(__i386__) || defined(__x86_64__) || defined(__arm__) || defined(__aarch64__) || defined(__loongarch_lp64) int r; r = detect_vm_dmi_vendor(); |