!20 添加sw架构

From: @wuzx065891 
Reviewed-by: @overweight 
Signed-off-by: @overweight
This commit is contained in:
openeuler-ci-bot 2022-08-04 02:47:43 +00:00 committed by Gitee
commit 46a1cec50e
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 17 additions and 1 deletions

View File

@ -1,6 +1,6 @@
Name: acpica-tools Name: acpica-tools
Version: 20210604 Version: 20210604
Release: 1 Release: 2
Summary: Tools for OS-independent reference implementation of ACPI Summary: Tools for OS-independent reference implementation of ACPI
License: GPLv2 License: GPLv2
@ -14,6 +14,7 @@ Patch0001: cve-2017-13693.patch
Patch0002: cve-2017-13694.patch Patch0002: cve-2017-13694.patch
Patch0003: cve-2017-13695.patch Patch0003: cve-2017-13695.patch
Patch0004: openEuler-harden.patch Patch0004: openEuler-harden.patch
Patch0005: acpica-unix2-20210604-sw.patch
BuildRequires: bison patchutils flex gcc BuildRequires: bison patchutils flex gcc
Provides: acpixtract >= 20120913-7 iasl = %{version}-%{release} acpidump >= 20100513-5 Provides: acpixtract >= 20120913-7 iasl = %{version}-%{release} acpidump >= 20100513-5
@ -85,6 +86,9 @@ fi
%{_docdir}/* %{_docdir}/*
%changelog %changelog
* Wed Jul 20 2022 wuzx<wuzx1226@qq.com> - 20210604-2
- add sw64 patch
* Wed Dec 30 2021 zhouwenpei <zhouwenpei1@huawei.com> - 20210604-1 * Wed Dec 30 2021 zhouwenpei <zhouwenpei1@huawei.com> - 20210604-1
- Upgrade to version 20210604 - Upgrade to version 20210604

12
acpica-unix2-20210604-sw.patch Executable file
View File

@ -0,0 +1,12 @@
diff -Naur acpica-unix2-20210604.org/source/include/platform/aclinux.h acpica-unix2-20210604.sw/source/include/platform/aclinux.h
--- acpica-unix2-20210604.org/source/include/platform/aclinux.h 2022-03-14 07:35:19.998814120 +0000
+++ acpica-unix2-20210604.sw/source/include/platform/aclinux.h 2022-03-14 07:56:03.958814120 +0000
@@ -215,7 +215,7 @@
#define ACPI_CAST_PTHREAD_T(Pthread) ((ACPI_THREAD_ID) (Pthread))
#if defined(__ia64__) || (defined(__x86_64__) && !defined(__ILP32__)) ||\
- defined(__aarch64__) || defined(__PPC64__) ||\
+ defined(__aarch64__) || defined(__sw_64__) || defined(__PPC64__) ||\
defined(__s390x__) ||\
(defined(__riscv) && (defined(__LP64__) || defined(_LP64)))
#define ACPI_MACHINE_WIDTH 64