Skip to content

Commit 416482d

Browse files
committed
修复 Loongarch64 架构宏定义缺失导致 ACPICA 宽度不一致问题.
1 parent fa7b0b8 commit 416482d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/include/lib/acpica/platform/accpos.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,12 @@ int acpi_sprintf(char *String, const char *Format, ...);
2626

2727
/* ACPICA global variable declaration helpers */
2828
#ifdef DEFINE_ACPI_GLOBALS
29+
# ifndef ACPI_GLOBAL
2930
# define ACPI_GLOBAL(type, name) type name
31+
#endif
32+
# ifndef ACPI_INIT_GLOBAL
3033
# define ACPI_INIT_GLOBAL(type, name, value) type name = value
34+
#endif
3135
#else
3236
# ifndef ACPI_GLOBAL
3337
# define ACPI_GLOBAL(type, name) extern type name
@@ -89,7 +93,7 @@ int acpi_sprintf(char *String, const char *Format, ...);
8993
#endif
9094

9195
/* Host-dependent types and defines */
92-
#if defined(__x86_64__) || defined(__aarch64__) || defined(__loongarch64__) || \
96+
#if defined(__x86_64__) || defined(__aarch64__) || defined(__loongarch64__) || defined(__loongarch__) || defined(__loongarch64) || \
9397
(defined(__riscv) && (defined(__LP64__) || defined(_LP64))) || defined(__PPC64__) || \
9498
defined(__s390x__) || defined(__ia64__)
9599
# define ACPI_MACHINE_WIDTH 64

0 commit comments

Comments
 (0)