Message ID | 20230201180235.230933-2-colin.i.king@gmail.com |
---|---|
State | Accepted |
Headers | show |
Series | Add support for 64 bit LoongArch compilation | expand |
On 2/2/23 02:02, Colin Ian King wrote: > From: Huacai Chen <chenhuacai@loongson.cn> > > Add 64 bit LoongArch architecture by defining ACPI_MACHINE_WIDTH to 64. > Useful for acpica tools and incorporating ACPICA into the Firmware Test > Suite. > > Signed-off-by: Huacai Chen <chenhuacai@loongson.cn> > Signed-off-by: Colin Ian King <colin.king@gmail.com> > --- > src/acpica/source/include/platform/aclinux.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/src/acpica/source/include/platform/aclinux.h b/src/acpica/source/include/platform/aclinux.h > index 1c55c659..e9c1954d 100644 > --- a/src/acpica/source/include/platform/aclinux.h > +++ b/src/acpica/source/include/platform/aclinux.h > @@ -329,7 +329,7 @@ > > #if defined(__ia64__) || (defined(__x86_64__) && !defined(__ILP32__)) ||\ > defined(__aarch64__) || defined(__PPC64__) ||\ > - defined(__s390x__) ||\ > + defined(__s390x__) || defined(__loongarch__) ||\ > (defined(__riscv) && (defined(__LP64__) || defined(_LP64))) > #define ACPI_MACHINE_WIDTH 64 > #define COMPILER_DEPENDENT_INT64 long Currently, no platform for testing, let's see if there is any issue. Acked-by: Ivan Hu<ivan.hu@canonical.com>
diff --git a/src/acpica/source/include/platform/aclinux.h b/src/acpica/source/include/platform/aclinux.h index 1c55c659..e9c1954d 100644 --- a/src/acpica/source/include/platform/aclinux.h +++ b/src/acpica/source/include/platform/aclinux.h @@ -329,7 +329,7 @@ #if defined(__ia64__) || (defined(__x86_64__) && !defined(__ILP32__)) ||\ defined(__aarch64__) || defined(__PPC64__) ||\ - defined(__s390x__) ||\ + defined(__s390x__) || defined(__loongarch__) ||\ (defined(__riscv) && (defined(__LP64__) || defined(_LP64))) #define ACPI_MACHINE_WIDTH 64 #define COMPILER_DEPENDENT_INT64 long