mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 21:37:15 +02:00
This additional features would avoid FTFBS later as the one found on rngd_darn.c:208:31: error: 'PPC_FEATURE2_DARN' undeclared (first use in this function) if (!(getauxval(AT_HWCAP2) & PPC_FEATURE2_DARN)) {
40 lines
1.4 KiB
Diff
40 lines
1.4 KiB
Diff
From 0fc2f098a496bc5c7379e2330421fcc86988c2ba Mon Sep 17 00:00:00 2001
|
|
From: Szabolcs Nagy <nsz@port70.net>
|
|
Date: Fri, 2 Feb 2018 20:38:15 +0000
|
|
Subject: [PATCH] powerpc: update hwcap.h for linux v4.15
|
|
|
|
PPC_FEATURE2_HTM_NO_SUSPEND is new in linux commit
|
|
cba6ac4869e45cc93ac5497024d1d49576e82666
|
|
PPC_FEATURE2_DARN and PPC_FEATURE2_SCV were new in v4.12 in commit
|
|
a4700a26107241cc7b9ac8528b2c6714ff99983d
|
|
---
|
|
arch/powerpc/bits/hwcap.h | 3 +++
|
|
arch/powerpc64/bits/hwcap.h | 3 +++
|
|
2 files changed, 6 insertions(+)
|
|
|
|
diff --git a/arch/powerpc/bits/hwcap.h b/arch/powerpc/bits/hwcap.h
|
|
index 82c92a93..803de9b5 100644
|
|
--- a/arch/powerpc/bits/hwcap.h
|
|
+++ b/arch/powerpc/bits/hwcap.h
|
|
@@ -38,3 +38,6 @@
|
|
#define PPC_FEATURE2_HTM_NOSC 0x01000000
|
|
#define PPC_FEATURE2_ARCH_3_00 0x00800000
|
|
#define PPC_FEATURE2_HAS_IEEE128 0x00400000
|
|
+#define PPC_FEATURE2_DARN 0x00200000
|
|
+#define PPC_FEATURE2_SCV 0x00100000
|
|
+#define PPC_FEATURE2_HTM_NO_SUSPEND 0x00080000
|
|
diff --git a/arch/powerpc64/bits/hwcap.h b/arch/powerpc64/bits/hwcap.h
|
|
index 82c92a93..803de9b5 100644
|
|
--- a/arch/powerpc64/bits/hwcap.h
|
|
+++ b/arch/powerpc64/bits/hwcap.h
|
|
@@ -38,3 +38,6 @@
|
|
#define PPC_FEATURE2_HTM_NOSC 0x01000000
|
|
#define PPC_FEATURE2_ARCH_3_00 0x00800000
|
|
#define PPC_FEATURE2_HAS_IEEE128 0x00400000
|
|
+#define PPC_FEATURE2_DARN 0x00200000
|
|
+#define PPC_FEATURE2_SCV 0x00100000
|
|
+#define PPC_FEATURE2_HTM_NO_SUSPEND 0x00080000
|
|
--
|
|
2.15.0
|
|
|