mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-14 05:49:57 +00:00
d8cc4e4400
Also refreshed patches to resolve patch fuzz QA issue. Bug fix releases https://www.postgresql.org/docs/release/16.13/ https://www.postgresql.org/docs/release/16.14/ Signed-off-by: Ankur Tyagi <ankur.tyagi85@gmail.com> Signed-off-by: Anuj Mittal <anuj.mittal@oss.qualcomm.com>
41 lines
1.3 KiB
Diff
41 lines
1.3 KiB
Diff
From c0f5c3d176baf893658e9534256887633e18e3c4 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.
|
|
|
|
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) */
|