[coreboot-gerrit] Change in coreboot[master]: riscv: add spin lock support
Jonathan Neuschäfer (Code Review)
gerrit at coreboot.org
Thu Jul 5 12:46:56 CEST 2018
Jonathan Neuschäfer has posted comments on this change. ( https://review.coreboot.org/27356 )
Change subject: riscv: add spin lock support
......................................................................
Patch Set 2:
(2 comments)
https://review.coreboot.org/#/c/27356/2/src/arch/riscv/include/arch/smp/spinlock.h
File src/arch/riscv/include/arch/smp/spinlock.h:
https://review.coreboot.org/#/c/27356/2/src/arch/riscv/include/arch/smp/spinlock.h@30
PS2, Line 30: } while (atomic_cas(&lock->lock, 0, -1));
As far as I understand it, CAS is not a native operation on RISC-V. What does this compile to?
https://review.coreboot.org/#/c/27356/2/src/arch/riscv/include/arch/smp/spinlock.h@39
PS2, Line 39:
Some primitives are missing, compared to the x86 pendant, but I think it's ok to add them later, when they're needed.
--
To view, visit https://review.coreboot.org/27356
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I7e93fb8b35c4452f0fe3f7f4bcc6f7aa4e042451
Gerrit-Change-Number: 27356
Gerrit-PatchSet: 2
Gerrit-Owner: Anonymous Coward (1001664)
Gerrit-Reviewer: Jonathan Neuschäfer <j.neuschaefer at gmx.net>
Gerrit-Reviewer: Shawn Chang <citypw at gmail.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply at coreboot.org>
Gerrit-Comment-Date: Thu, 05 Jul 2018 10:46:56 +0000
Gerrit-HasComments: Yes
Gerrit-HasLabels: No
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.coreboot.org/pipermail/coreboot-gerrit/attachments/20180705/9f80657f/attachment.html>
More information about the coreboot-gerrit
mailing list