From 0e5a785ae7867e8191dc380cd63efeb6695ff254 Mon Sep 17 00:00:00 2001
From: Wenlong Zhang <zhangwenlong@loongson.cn>
Date: Thu, 25 May 2023 06:45:22 +0000
Subject: [PATCH] add loongarch64 support for acpica-tools

---
 source/include/platform/aclinux.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/source/include/platform/aclinux.h b/source/include/platform/aclinux.h
index 69eb962..52a3293 100644
--- a/source/include/platform/aclinux.h
+++ b/source/include/platform/aclinux.h
@@ -217,7 +217,7 @@
 #if defined(__ia64__)    || (defined(__x86_64__) && !defined(__ILP32__)) ||\
     defined(__aarch64__) || defined(__PPC64__) ||\
     defined(__s390x__) ||\
-    (defined(__riscv) && (defined(__LP64__) || defined(_LP64)))
+    (defined(__riscv) && (defined(__LP64__) || defined(_LP64))) || defined(__loongarch64)
 #define ACPI_MACHINE_WIDTH          64
 #define COMPILER_DEPENDENT_INT64    long
 #define COMPILER_DEPENDENT_UINT64   unsigned long
-- 
2.33.0

