mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-04-02 02:49:12 +00:00
This is a minor release to address CVEs and other bug fixes without new features. Remove patches that are fixed in this release. Release notes are available at: https://www.postgresql.org/docs/release/14.6/ https://www.postgresql.org/docs/release/14.7/ https://www.postgresql.org/docs/release/14.8/ https://www.postgresql.org/docs/release/14.9/ License-Update: Copyright year updated Signed-off-by: Robert Joslyn <robert.joslyn@redrectangle.org> [Fixup patch fuzzy] Signed-off-by: Armin Kuster <akuster808@gmail.com>
40 lines
1.4 KiB
Diff
40 lines
1.4 KiB
Diff
From 0801befde991250b4502954fdec61bec8c33da3b 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] Add support for RISC-V.
|
|
|
|
The architecture is sufficiently similar to aarch64 that simply
|
|
extending the existing aarch64 macro works.
|
|
|
|
---
|
|
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 95049f0..e08c963 100644
|
|
--- a/src/include/storage/s_lock.h
|
|
+++ b/src/include/storage/s_lock.h
|
|
@@ -317,11 +317,12 @@ tas(volatile slock_t *lock)
|
|
|
|
/*
|
|
* 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__) || defined(__aarch64)
|
|
+#if defined(__arm__) || defined(__arm) || defined(__aarch64__) || defined(__aarch64) || defined(__riscv)
|
|
#ifdef HAVE_GCC__SYNC_INT32_TAS
|
|
#define HAS_TEST_AND_SET
|
|
|
|
@@ -338,7 +339,7 @@ tas(volatile slock_t *lock)
|
|
#define S_UNLOCK(lock) __sync_lock_release(lock)
|
|
|
|
#endif /* HAVE_GCC__SYNC_INT32_TAS */
|
|
-#endif /* __arm__ || __arm || __aarch64__ || __aarch64 */
|
|
+#endif /* __arm__ || __arm || __aarch64__ || __aarch64 || __riscv */
|
|
|
|
|
|
/* S/390 and S/390x Linux (32- and 64-bit zSeries) */
|