mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-01-01 13:58:06 +00:00
* add Pending to .patch files where it was accidentally droped with upgrades or modifications in:f88e5b146epostgresql: upgrade 15.5 -> 16.2c904e169dbmultipath-tools: upgrade 0.9.3 -> 0.9.8105be9b3d9unionfs-fuse: upgrade 2.2 --> 3.4 or new patches where the author didn't notice/care:2a7f74cdb0dropwatch: Use header files from sysroot instead of build hostf5cc9f272ayasm: improve reproducibility39028d0d9dpython3-pybind11: Restore strip prevention patch authors of these added to CC, please be more careful with removing or not adding these or enable patch-status in ERROR_QA for your builds, see: https://lists.openembedded.org/g/openembedded-core/topic/104922136#197113 * added with: for p in `/OE/layers/openembedded-core/scripts/contrib/patchreview.py -v . | grep Missing.Upstream-Status.tag | sed 's/.*(//g;s/)$//g'`; do grep -q ^Upstream-Status: $p || sed -i "s/^---$/\nUpstream-Status: Pending\n---/g" $p; grep -q ^Upstream-Status: $p || sed -i "1iUpstream-Status: Pending\n" $p; done Signed-off-by: Martin Jansa <martin.jansa@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
44 lines
1.3 KiB
Diff
44 lines
1.3 KiB
Diff
From ba079b8d6a50796db41bb0ddf4c22bfe022ef898 Mon Sep 17 00:00:00 2001
|
|
From: "Richard W.M. Jones" <rjones@redhat.com>
|
|
Date: Sun, 20 Nov 2016 15:04:52 +0000
|
|
Subject: [PATCH 1/5] Add support for RISC-V.
|
|
|
|
The architecture is sufficiently similar to aarch64 that simply
|
|
extending the existing aarch64 macro works.
|
|
|
|
Upstream-Status: Pending
|
|
---
|
|
src/include/storage/s_lock.h | 5 +++--
|
|
1 file changed, 3 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/src/include/storage/s_lock.h b/src/include/storage/s_lock.h
|
|
index c9fa84c..9b491e8 100644
|
|
--- a/src/include/storage/s_lock.h
|
|
+++ b/src/include/storage/s_lock.h
|
|
@@ -252,11 +252,12 @@ spin_delay(void)
|
|
|
|
/*
|
|
* On ARM and ARM64, we use __sync_lock_test_and_set(int *, int) if available.
|
|
+ * On RISC-V, the same.
|
|
*
|
|
* We use the int-width variant of the builtin because it works on more chips
|
|
* than other widths.
|
|
*/
|
|
-#if defined(__arm__) || defined(__arm) || defined(__aarch64__)
|
|
+#if defined(__arm__) || defined(__arm) || defined(__aarch64__) || defined(__riscv)
|
|
#ifdef HAVE_GCC__SYNC_INT32_TAS
|
|
#define HAS_TEST_AND_SET
|
|
|
|
@@ -290,7 +291,7 @@ spin_delay(void)
|
|
|
|
#endif /* __aarch64__ */
|
|
#endif /* HAVE_GCC__SYNC_INT32_TAS */
|
|
-#endif /* __arm__ || __arm || __aarch64__ */
|
|
+#endif /* __arm__ || __arm || __aarch64__ || __riscv */
|
|
|
|
|
|
/* S/390 and S/390x Linux (32- and 64-bit zSeries) */
|
|
--
|
|
2.25.1
|
|
|