postgresql/src/include/storage
Tom Lane 7915a9515c Add RISC-V spinlock support in s_lock.h.
Like the ARM case, just use gcc's __sync_lock_test_and_set();
that will compile into AMOSWAP.W.AQ which does what we need.

At some point it might be worth doing some work on atomic ops
for RISC-V, but this should be enough for a creditable port.

Back-patch to all supported branches, just in case somebody
wants to try them on RISC-V.

Marek Szuba

Discussion: https://postgr.es/m/dea97b6d-f55f-1f6d-9109-504aa7dfa421@gentoo.org
2021-08-13 13:59:25 -04:00
..
.gitignore When trace_lwlocks is used, identify individual lwlocks by name. 2015-09-11 14:01:39 -04:00
backendid.h Phase 2 of pgindent updates. 2017-06-21 15:19:25 -04:00
block.h Phase 2 of pgindent updates. 2017-06-21 15:19:25 -04:00
buf.h Phase 2 of pgindent updates. 2017-06-21 15:19:25 -04:00
buf_internals.h C comment: correct use of 64-"byte" cache line size 2020-09-04 13:27:52 -04:00
buffile.h Phase 2 of pgindent updates. 2017-06-21 15:19:25 -04:00
bufmgr.h Revert "Skip WAL for new relfilenodes, under wal_level=minimal." 2020-03-22 09:24:14 -07:00
bufpage.h Phase 2 of pgindent updates. 2017-06-21 15:19:25 -04:00
checksum.h Phase 2 of pgindent updates. 2017-06-21 15:19:25 -04:00
checksum_impl.h Make checksum_impl.h safe to compile with -fstrict-aliasing. 2018-08-31 12:26:47 -04:00
condition_variable.h Phase 2 of pgindent updates. 2017-06-21 15:19:25 -04:00
copydir.h Phase 2 of pgindent updates. 2017-06-21 15:19:25 -04:00
dsm.h Phase 2 of pgindent updates. 2017-06-21 15:19:25 -04:00
dsm_impl.h Phase 2 of pgindent updates. 2017-06-21 15:19:25 -04:00
fd.h PANIC on fsync() failure. 2018-11-19 13:40:57 +13:00
freespace.h Phase 2 of pgindent updates. 2017-06-21 15:19:25 -04:00
fsm_internals.h Phase 2 of pgindent updates. 2017-06-21 15:19:25 -04:00
indexfsm.h Phase 2 of pgindent updates. 2017-06-21 15:19:25 -04:00
ipc.h Consistently test for in-use shared memory. 2019-04-12 22:36:42 -07:00
item.h Phase 2 of pgindent updates. 2017-06-21 15:19:25 -04:00
itemid.h Phase 2 of pgindent updates. 2017-06-21 15:19:25 -04:00
itemptr.h Phase 2 of pgindent updates. 2017-06-21 15:19:25 -04:00
large_object.h Phase 2 of pgindent updates. 2017-06-21 15:19:25 -04:00
latch.h Fix misc typos, mostly in comments. 2018-07-18 16:18:27 +03:00
lmgr.h Prevent concurrent SimpleLruTruncate() for any given SLRU. 2020-08-15 10:15:57 -07:00
lock.h Fix CREATE INDEX CONCURRENTLY for simultaneous prepared transactions. 2021-01-30 00:02:11 -08:00
lockdefs.h Phase 2 of pgindent updates. 2017-06-21 15:19:25 -04:00
lwlock.h Phase 2 of pgindent updates. 2017-06-21 15:19:25 -04:00
off.h Phase 2 of pgindent updates. 2017-06-21 15:19:25 -04:00
pg_sema.h Phase 2 of pgindent updates. 2017-06-21 15:19:25 -04:00
pg_shmem.h Consistently test for in-use shared memory. 2019-04-12 22:36:42 -07:00
pmsignal.h Phase 2 of pgindent updates. 2017-06-21 15:19:25 -04:00
predicate.h Phase 2 of pgindent updates. 2017-06-21 15:19:25 -04:00
predicate_internals.h Phase 2 of pgindent updates. 2017-06-21 15:19:25 -04:00
proc.h Add GUC variables for stat tracking and timeout as PGDLLIMPORT 2020-01-21 13:47:05 +09:00
procarray.h Detect the deadlocks between backends and the startup process. 2021-01-06 12:32:32 +09:00
proclist.h Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
proclist_types.h Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
procsignal.h Phase 2 of pgindent updates. 2017-06-21 15:19:25 -04:00
reinit.h Phase 2 of pgindent updates. 2017-06-21 15:19:25 -04:00
relfilenode.h Phase 2 of pgindent updates. 2017-06-21 15:19:25 -04:00
s_lock.h Add RISC-V spinlock support in s_lock.h. 2021-08-13 13:59:25 -04:00
shm_mq.h Clean up shm_mq cleanup. 2017-08-31 15:10:24 -04:00
shm_toc.h Phase 2 of pgindent updates. 2017-06-21 15:19:25 -04:00
shmem.h Phase 2 of pgindent updates. 2017-06-21 15:19:25 -04:00
sinval.h Phase 3 of pgindent updates. 2017-06-21 15:35:54 -04:00
sinvaladt.h Phase 2 of pgindent updates. 2017-06-21 15:19:25 -04:00
smgr.h Revert "Skip WAL for new relfilenodes, under wal_level=minimal." 2020-03-22 09:24:14 -07:00
spin.h Phase 2 of pgindent updates. 2017-06-21 15:19:25 -04:00
standby.h Phase 2 of pgindent updates. 2017-06-21 15:19:25 -04:00
standbydefs.h Fix bugs in vacuum of shared rels, by keeping their relcache entries current. 2018-06-12 11:13:21 -07:00