Skip to content

Commit

Permalink
Add support for 64 bit LoongArch compilation
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
chenhuacai committed Jan 3, 2023
1 parent d9a0d78 commit d809b69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/include/platform/aclinux.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d809b69

Please sign in to comment.