Attention is currently required from: Philipp Hug, Arthur Heymans, ron minnich.
Hello Arthur Heymans,
I'd like you to do a code review. Please visit
https://review.coreboot.org/c/coreboot/+/63073
to review the following change.
Change subject: arch/riscv: Use updated name for sbadaddr
......................................................................
arch/riscv: Use updated name for sbadaddr
The riscv spec v1.10.0 updated this name.
This fixes building with clang.
Change-Id: Ic86e5070b084bf1ce03fe30d46abbbd0c88b9532
Signed-off-by: Arthur Heymans <arthur(a)aheymans.xyz>
---
M src/arch/riscv/trap_handler.c
M src/arch/riscv/trap_util.S
2 files changed, 2 insertions(+), 2 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/73/63073/1
diff --git a/src/arch/riscv/trap_handler.c b/src/arch/riscv/trap_handler.c
index f940f63..a3aad48 100644
--- a/src/arch/riscv/trap_handler.c
+++ b/src/arch/riscv/trap_handler.c
@@ -150,7 +150,7 @@
/* This function used to redirect trap to s-mode. */
void redirect_trap(void)
{
- write_csr(sbadaddr, read_csr(mbadaddr));
+ write_csr(mtval, read_csr(mtval));
write_csr(sepc, read_csr(mepc));
write_csr(scause, read_csr(mcause));
write_csr(mepc, read_csr(stvec));
diff --git a/src/arch/riscv/trap_util.S b/src/arch/riscv/trap_util.S
index f1c4c4d..c106d5b 100644
--- a/src/arch/riscv/trap_util.S
+++ b/src/arch/riscv/trap_util.S
@@ -80,7 +80,7 @@
csrrw t0,mscratch,x0
csrr s0,mstatus
csrr t1,mepc
- csrr t2,mbadaddr
+ csrr t2,mtval
csrr t3,mcause
STORE t0,2*REGBYTES(x2)
STORE s0,32*REGBYTES(x2)
--
To view, visit https://review.coreboot.org/c/coreboot/+/63073
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Ic86e5070b084bf1ce03fe30d46abbbd0c88b9532
Gerrit-Change-Number: 63073
Gerrit-PatchSet: 1
Gerrit-Owner: Arthur Heymans <arthur.heymans(a)9elements.com>
Gerrit-Reviewer: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-Reviewer: Philipp Hug <philipp(a)hug.cx>
Gerrit-Reviewer: ron minnich <rminnich(a)gmail.com>
Gerrit-Attention: Philipp Hug <philipp(a)hug.cx>
Gerrit-Attention: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-Attention: ron minnich <rminnich(a)gmail.com>
Gerrit-MessageType: newchange
Attention is currently required from: Philipp Hug, Arthur Heymans, ron minnich.
Hello Arthur Heymans,
I'd like you to do a code review. Please visit
https://review.coreboot.org/c/coreboot/+/63072
to review the following change.
Change subject: arch/riscv/mcall.h: Fix building with clang
......................................................................
arch/riscv/mcall.h: Fix building with clang
Having multiple statements hidden inside a macro that supposedly
returns a pointer does not work well with clang. Moving the stack
register to a global variable fixes this.
Change-Id: If24b2766404b892a006926f0cd45771ceebf1275
Signed-off-by: Arthur Heymans <arthur(a)aheymans.xyz>
---
M src/arch/riscv/include/mcall.h
1 file changed, 3 insertions(+), 2 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/72/63072/1
diff --git a/src/arch/riscv/include/mcall.h b/src/arch/riscv/include/mcall.h
index 803ee3e..12483ca 100644
--- a/src/arch/riscv/include/mcall.h
+++ b/src/arch/riscv/include/mcall.h
@@ -54,9 +54,10 @@
sizeof(hls_t) == HLS_SIZE,
"HLS_SIZE must equal to sizeof(hls_t)");
-#define MACHINE_STACK_TOP() ({ \
+register uintptr_t sp asm("sp");
+
+#define MACHINE_STACK_TOP() ({ \
/* coverity[uninit_use] : FALSE */ \
- register uintptr_t sp asm ("sp"); \
(void*)((sp + RISCV_PGSIZE) & -RISCV_PGSIZE); })
// hart-local storage, at top of stack
--
To view, visit https://review.coreboot.org/c/coreboot/+/63072
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: If24b2766404b892a006926f0cd45771ceebf1275
Gerrit-Change-Number: 63072
Gerrit-PatchSet: 1
Gerrit-Owner: Arthur Heymans <arthur.heymans(a)9elements.com>
Gerrit-Reviewer: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-Reviewer: Philipp Hug <philipp(a)hug.cx>
Gerrit-Reviewer: ron minnich <rminnich(a)gmail.com>
Gerrit-Attention: Philipp Hug <philipp(a)hug.cx>
Gerrit-Attention: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-Attention: ron minnich <rminnich(a)gmail.com>
Gerrit-MessageType: newchange
Attention is currently required from: Christian Walter, Arthur Heymans.
Hello Arthur Heymans,
I'd like you to do a code review. Please visit
https://review.coreboot.org/c/coreboot/+/63070
to review the following change.
Change subject: security/tpm/crtm.c: Remove set but unused variable
......................................................................
security/tpm/crtm.c: Remove set but unused variable
Change-Id: I3c97cb57fe13adee217783973691748d6c542abe
Signed-off-by: Arthur Heymans <arthur(a)aheymans.xyz>
---
M src/security/tpm/tspi/crtm.c
1 file changed, 0 insertions(+), 6 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/70/63070/1
diff --git a/src/security/tpm/tspi/crtm.c b/src/security/tpm/tspi/crtm.c
index 8cd0793..2d0901d 100644
--- a/src/security/tpm/tspi/crtm.c
+++ b/src/security/tpm/tspi/crtm.c
@@ -140,7 +140,6 @@
int tspi_measure_cache_to_pcr(void)
{
int i;
- enum vb2_hash_algorithm hash_alg;
struct tcpa_table *tclt = tcpa_log_init();
/* This means the table is empty. */
@@ -151,11 +150,6 @@
printk(BIOS_WARNING, "TCPA: Log non-existent!\n");
return VB2_ERROR_UNKNOWN;
}
- if (CONFIG(TPM1)) {
- hash_alg = VB2_HASH_SHA1;
- } else { /* CONFIG_TPM2 */
- hash_alg = VB2_HASH_SHA256;
- }
printk(BIOS_DEBUG, "TPM: Write digests cached in TCPA log to PCR\n");
for (i = 0; i < tclt->num_entries; i++) {
--
To view, visit https://review.coreboot.org/c/coreboot/+/63070
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I3c97cb57fe13adee217783973691748d6c542abe
Gerrit-Change-Number: 63070
Gerrit-PatchSet: 1
Gerrit-Owner: Arthur Heymans <arthur.heymans(a)9elements.com>
Gerrit-Reviewer: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-Reviewer: Christian Walter <christian.walter(a)9elements.com>
Gerrit-Attention: Christian Walter <christian.walter(a)9elements.com>
Gerrit-Attention: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-MessageType: newchange
Attention is currently required from: Julius Werner, Arthur Heymans.
Hello Arthur Heymans,
I'd like you to do a code review. Please visit
https://review.coreboot.org/c/coreboot/+/63068
to review the following change.
Change subject: soc/*: Use __fallthrough statement
......................................................................
soc/*: Use __fallthrough statement
Clang needs an attribute not a comment.
Change-Id: I78f87d80bd4f366ed6cfa74619dd107ac61bc935
Signed-off-by: Arthur Heymans <arthur(a)aheymans.xyz>
---
M src/soc/nvidia/tegra210/bootblock.c
M src/soc/rockchip/rk3288/display.c
2 files changed, 3 insertions(+), 3 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/68/63068/1
diff --git a/src/soc/nvidia/tegra210/bootblock.c b/src/soc/nvidia/tegra210/bootblock.c
index 1657d7c..e8c4324 100644
--- a/src/soc/nvidia/tegra210/bootblock.c
+++ b/src/soc/nvidia/tegra210/bootblock.c
@@ -137,7 +137,7 @@
break;
case OP_UDELAY:
udelay(wa_op->val);
- /* fall thru */
+ __fallthrough;
default:
continue;
}
diff --git a/src/soc/rockchip/rk3288/display.c b/src/soc/rockchip/rk3288/display.c
index 19a75de..9d6cca1 100644
--- a/src/soc/rockchip/rk3288/display.c
+++ b/src/soc/rockchip/rk3288/display.c
@@ -63,7 +63,7 @@
if (conf->vop_mode == VOP_MODE_EDP)
return;
}
- /* fall thru */
+ __fallthrough;
case VOP_MODE_HDMI:
printk(BIOS_DEBUG, "Attempting to setup HDMI display.\n");
rkclk_configure_hdmi();
@@ -78,7 +78,7 @@
if (conf->vop_mode == VOP_MODE_HDMI)
return;
}
- /* fall thru */
+ __fallthrough;
default:
printk(BIOS_WARNING, "Cannot read any edid info, aborting.\n");
return;
--
To view, visit https://review.coreboot.org/c/coreboot/+/63068
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I78f87d80bd4f366ed6cfa74619dd107ac61bc935
Gerrit-Change-Number: 63068
Gerrit-PatchSet: 1
Gerrit-Owner: Arthur Heymans <arthur.heymans(a)9elements.com>
Gerrit-Reviewer: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-Reviewer: Julius Werner <jwerner(a)chromium.org>
Gerrit-Attention: Julius Werner <jwerner(a)chromium.org>
Gerrit-Attention: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-MessageType: newchange
Attention is currently required from: Arthur Heymans.
Hello Arthur Heymans,
I'd like you to do a code review. Please visit
https://review.coreboot.org/c/coreboot/+/63064
to review the following change.
Change subject: Kconfig: Have CONFIG_ASAN depend on COMPILER_GCC
......................................................................
Kconfig: Have CONFIG_ASAN depend on COMPILER_GCC
-fsanitize=kernel-address is not implemented in clang
Change-Id: Ib8660bf99b940ff9eac7461f5946df0891dd3a4f
Signed-off-by: Arthur Heymans <arthur(a)aheymans.xyz>
---
M src/Kconfig
1 file changed, 1 insertion(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/64/63064/1
diff --git a/src/Kconfig b/src/Kconfig
index d57ce90..3811efc 100644
--- a/src/Kconfig
+++ b/src/Kconfig
@@ -312,6 +312,7 @@
default n
select ASAN_IN_ROMSTAGE if HAVE_ASAN_IN_ROMSTAGE
select ASAN_IN_RAMSTAGE if HAVE_ASAN_IN_RAMSTAGE
+ depends on COMPILER_GCC
help
Enable address sanitizer - runtime memory debugger,
designed to find out-of-bounds accesses and use-after-scope bugs.
--
To view, visit https://review.coreboot.org/c/coreboot/+/63064
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Ib8660bf99b940ff9eac7461f5946df0891dd3a4f
Gerrit-Change-Number: 63064
Gerrit-PatchSet: 1
Gerrit-Owner: Arthur Heymans <arthur.heymans(a)9elements.com>
Gerrit-Reviewer: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-Attention: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-MessageType: newchange