Jonathan Neuschäfer has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/31179 )
Change subject: riscv: Simplify payload handling
......................................................................
Patch Set 3: Code-Review+1
(1 comment)
From a quick read, this looks good.
I'm slightly worried about the multiple asm blocks, though
https://review.coreboot.org/#/c/31179/3/src/arch/riscv/payload.c
File src/arch/riscv/payload.c:
https://review.coreboot.org/#/c/31179/3/src/arch/riscv/payload.c@45
PS3, Line 45: asm volatile("mv a0, %0" ::"r"(hart_id)
: : "a0");
: asm volatile("mv a1, %0" ::"r"(fdt)
: : "a1");
: asm volatile("mret");
I'd prefer to have this in one asm block, because I'd slightly paranoid that the compiler might move instructions between the asm blocks.
--
To view, visit
https://review.coreboot.org/c/coreboot/+/31179
To unsubscribe, or for help writing mail filters, visit
https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I32bf2a99e07a65358a7f19b899259f0816eb45e8
Gerrit-Change-Number: 31179
Gerrit-PatchSet: 3
Gerrit-Owner: Philipp Hug
philipp@hug.cx
Gerrit-Reviewer: Jonathan Neuschäfer
j.neuschaefer@gmx.net
Gerrit-Reviewer: Martin Roth
martinroth@google.com
Gerrit-Reviewer: Patrick Georgi
pgeorgi@google.com
Gerrit-Reviewer: Philipp Hug
philipp@hug.cx
Gerrit-Reviewer: Xiang Wang
wxjstz@126.com
Gerrit-Reviewer: build bot (Jenkins)
no-reply@coreboot.org
Gerrit-Reviewer: ron minnich
rminnich@gmail.com
Gerrit-CC: Paul Menzel
paulepanter@users.sourceforge.net
Gerrit-Comment-Date: Sat, 02 Feb 2019 16:01:28 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment