Compare commits

...

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
c8a455562f
!52 [sync] PR-50: to support sw64 mips64 arch
From: @openeuler-sync-bot 
Reviewed-by: @dillon_chen 
Signed-off-by: @dillon_chen
2025-03-21 09:14:32 +00:00
kkz
b8fe1c8a8b to support sw64 mips64 arch
(cherry picked from commit 0bab38d6290083946867d294dc1f2e3d93602dcb)
2025-03-21 16:16:04 +08:00
openeuler-ci-bot
e4dcd1db6f
!48 fixed compilation errors
From: @guojunding 
Reviewed-by: @dillon_chen 
Signed-off-by: @dillon_chen
2024-03-07 04:10:18 +00:00
guojunding
9f5abf02db fixed compilation errors 2024-03-07 09:53:20 +08:00
openeuler-ci-bot
3d03ee9348
!44 support clang build
From: @guojunding 
Reviewed-by: @dillon_chen 
Signed-off-by: @dillon_chen
2024-03-06 09:52:14 +00:00
guojunding
fc34503fc3 support clang build 2024-03-06 14:44:03 +08:00
openeuler-ci-bot
a6cde0cda6
!41 fix invalid date
From: @guojunding 
Reviewed-by: @dillon_chen 
Signed-off-by: @dillon_chen
2024-03-06 06:15:36 +00:00
guojunding
6a01e17f3b fix invalid date 2024-03-05 16:13:41 +08:00
openeuler-ci-bot
71f94e0d5e
!30 fix building error caused by gcc 12 dangling pointer warning
From: @ni-cunshu 
Reviewed-by: @wangbin224 
Signed-off-by: @wangbin224
2023-07-18 06:10:20 +00:00
Ni Cunshu
b99e4d12c5 fix build error caused by gcc 12 dangling pointer warning 2023-07-18 11:26:41 +08:00
4 changed files with 132 additions and 6 deletions

View File

@ -0,0 +1,54 @@
From aea0a5cfce262ce2ab16fd96d87c12cf5e756380 Mon Sep 17 00:00:00 2001
From: Philip Prindeville <philipp@redfish-solutions.com>
Date: Wed, 12 Apr 2023 10:18:20 -0600
Subject: [PATCH] Fix GCC 12 dangling-pointer warning
We're storing a persistent pointer to an ephemeral local variable
which technically is a dangling pointer and the compiler is correct.
However, since we never indirect the pointer, this is a safe
operation and we can suppress the warning.
Also, some C run-times (like MUSL) aren't including <stdint.h>
indirectly so we must include it explicitly or we won't have the
type definition for uintptr_t.
Fixes issue #867.
Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
---
source/components/utilities/utdebug.c | 5 +++++
source/include/platform/aclinux.h | 1 +
2 files changed, 6 insertions(+)
diff --git a/source/components/utilities/utdebug.c b/source/components/utilities/utdebug.c
index 0060fdf..2f60bca 100644
--- a/source/components/utilities/utdebug.c
+++ b/source/components/utilities/utdebug.c
@@ -77,7 +77,12 @@ AcpiUtInitStackPtrTrace (
ACPI_SIZE CurrentSp;
+#pragma GCC diagnostic push
+#if defined(__GNUC__) && __GNUC__ >= 12
+#pragma GCC diagnostic ignored "-Wdangling-pointer="
+#endif
AcpiGbl_EntryStackPointer = &CurrentSp;
+#pragma GCC diagnostic pop
}
diff --git a/source/include/platform/aclinux.h b/source/include/platform/aclinux.h
index 52a3293..20680d0 100644
--- a/source/include/platform/aclinux.h
+++ b/source/include/platform/aclinux.h
@@ -198,6 +198,7 @@
#ifdef ACPI_USE_STANDARD_HEADERS
#include <unistd.h>
+#include <stdint.h>
#endif
/* Define/disable kernel-specific declarators */
--
2.33.0

View File

@ -0,0 +1,25 @@
From dd222c68bcab456f0230e6cd737969ccd84307fd Mon Sep 17 00:00:00 2001
From: guojunding <guojunding@kylinos.cn>
Date: Thu, 7 Mar 2024 09:27:56 +0800
Subject: [PATCH] fix building error caused by variable 'CurrentSp'
---
source/components/utilities/utdebug.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/source/components/utilities/utdebug.c b/source/components/utilities/utdebug.c
index 2f60bca..509815f 100644
--- a/source/components/utilities/utdebug.c
+++ b/source/components/utilities/utdebug.c
@@ -74,7 +74,7 @@ void
AcpiUtInitStackPtrTrace (
void)
{
- ACPI_SIZE CurrentSp;
+ static ACPI_SIZE CurrentSp;
#pragma GCC diagnostic push
--
2.27.0

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 Name: acpica-tools
Version: 20210604 Version: 20210604
Release: 2 Release: 7
Summary: Tools for OS-independent reference implementation of ACPI Summary: Tools for OS-independent reference implementation of ACPI
License: GPLv2 License: GPLv2
@ -15,6 +15,9 @@ Patch0002: cve-2017-13694.patch
Patch0003: cve-2017-13695.patch Patch0003: cve-2017-13695.patch
Patch0004: openEuler-harden.patch Patch0004: openEuler-harden.patch
Patch0005: 0001-add-loongarch64-support-for-acpica-tools.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 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
@ -55,6 +58,10 @@ CWARNINGFLAGS="\
export OPT_CFLAGS="%{optflags} $CWARNINGFLAGS" export OPT_CFLAGS="%{optflags} $CWARNINGFLAGS"
export OPT_LDFLAGS="%{__global_ldflags}" export OPT_LDFLAGS="%{__global_ldflags}"
%if "%{?toolchain}" == "clang"
CFLAGS="${CFLAGS:-%{?build_cflags}}"; export CFLAGS;
%endif
%make_build %make_build
%install %install
@ -86,10 +93,25 @@ fi
%{_docdir}/* %{_docdir}/*
%changelog %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'
* Wed Mar 6 2024 guojunding <guojunding@kylinos.cn> - 20210604-5
- support clang build
* Tue Mar 5 2024 guojunding <guojunding@kylinos.cn> - 20210604-4
- fix invalid dates
* Tue Jul 18 2023 Ni Cunshu <nicunshu@huawei.com> - 20210604-3
- fix building error caused by gcc 12 dangling pointer warning
* Mon May 8 2023 Wenlong Zhang <zhangwenlong@loongson.cn> - 20210604-2 * Mon May 8 2023 Wenlong Zhang <zhangwenlong@loongson.cn> - 20210604-2
- add loongarch64 support - add loongarch64 support
* Wed Dec 30 2021 zhouwenpei <zhouwenpei1@huawei.com> - 20210604-1 * Thu Dec 30 2021 zhouwenpei <zhouwenpei1@huawei.com> - 20210604-1
- Upgrade to version 20210604 - Upgrade to version 20210604
* Sat Jan 30 2021 xinghe <xinghe1@huawei.com> - 20210105-1 * Sat Jan 30 2021 xinghe <xinghe1@huawei.com> - 20210105-1