Re: [PATCH] Native spinlock support on RISC-V

Tom Lane <tgl@sss.pgh.pa.us>

From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andres Freund <andres@anarazel.de>
Cc: Marek Szuba <marecki@gentoo.org>, pgsql-hackers@postgresql.org
Date: 2021-08-13T16:03:28Z
Lists: pgsql-hackers
Andres Freund <andres@anarazel.de> writes:
> On 2021-08-13 11:09:04 -0400, Tom Lane wrote:
>> Marek Szuba <marecki@gentoo.org> writes:
>>> Tested against PostgreSQL 13.3 on a physical rv64gc system (BeagleV
>>> Starlight beta board) - builds and installs fine, all tests pass.

> Should we backpatch this? It's not like we're going to break existing
> risc-v systems by enabling spinlock support...

Yeah, why not?  If you were building with --disable-spinlocks before,
this shouldn't change anything for you.

(I haven't actually looked at the patch, mind you, but in principle
it shouldn't break anything that worked before.)

			regards, tom lane



Commits

  1. Add RISC-V spinlock support in s_lock.h.