to support sw64 mips64 arch

(cherry picked from commit 0bab38d6290083946867d294dc1f2e3d93602dcb)
This commit is contained in:
kkz 2025-02-27 16:04:34 +08:00 committed by openeuler-sync-bot
parent e4dcd1db6f
commit b8fe1c8a8b
2 changed files with 30 additions and 1 deletions

View File

@ -0,0 +1,25 @@
From b57d5419e8eeef15a7b5192f64c89b9989b36d6a Mon Sep 17 00:00:00 2001
From: kkz <zhaoshuang@uniontech.com>
Date: Tue, 7 Jan 2025 15:11:07 +0800
Subject: [PATCH] to support sw64 mips64el
---
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 20680d0..ec1889e 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(__s390x__) || defined(__sw_64__) || defined(__mips__) || \
(defined(__riscv) && (defined(__LP64__) || defined(_LP64))) || defined(__loongarch64)
#define ACPI_MACHINE_WIDTH 64
#define COMPILER_DEPENDENT_INT64 long
--
2.43.0

View File

@ -1,6 +1,6 @@
Name: acpica-tools
Version: 20210604
Release: 6
Release: 7
Summary: Tools for OS-independent reference implementation of ACPI
License: GPLv2
@ -17,6 +17,7 @@ Patch0004: openEuler-harden.patch
Patch0005: 0001-add-loongarch64-support-for-acpica-tools.patch
Patch0006: 0001-Fix-GCC-12-dangling-pointer-warning.patch
Patch0007: 0001-fix-building-error-caused-by-variable-CurrentSp.patch
Patch0008: 9000-to-support-sw64-mips64el.patch
BuildRequires: bison patchutils flex gcc
Provides: acpixtract >= 20120913-7 iasl = %{version}-%{release} acpidump >= 20100513-5
@ -92,6 +93,9 @@ fi
%{_docdir}/*
%changelog
* Thu Feb 27 2025 zhaoshuang <zhaoshuang@uniontech.com> - 20210604-7
- arch: to support sw64 mips64 arch
* Thu Mar 7 2024 guojunding <guojunding@kylinos.cn> - 20210604-6
- fix building error caused by variable 'CurrentSp'