summaryrefslogtreecommitdiff
path: root/src/arch/riscv/include
diff options
context:
space:
mode:
authorMaximilian Brune <maximilian.brune@9elements.com>2024-06-08 20:22:45 +0200
committerFelix Held <felix-coreboot@felixheld.de>2024-08-11 17:10:45 +0000
commiteb28f3da7de7f1ba0203046c00254fb602080ab0 (patch)
treebaa79b82beb4b9326d5b5f56af85c9e4aee84609 /src/arch/riscv/include
parent96719adda3f5e96cc5af537f3d9c70ae75073b46 (diff)
arch/riscv: Add PMP print function
For easier debugging it is useful to have a function that prints the PMP regions. Signed-off-by: Maximilian Brune <maximilian.brune@9elements.com> Change-Id: I6ab1531c65b14690e37aecf57ff441bf22db1ce5 Reviewed-on: https://review.coreboot.org/c/coreboot/+/83283 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Elyes Haouas <ehaouas@noos.fr> Reviewed-by: ron minnich <rminnich@gmail.com>
Diffstat (limited to 'src/arch/riscv/include')
-rw-r--r--src/arch/riscv/include/arch/pmp.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/arch/riscv/include/arch/pmp.h b/src/arch/riscv/include/arch/pmp.h
index f98adf724a..273ccfe514 100644
--- a/src/arch/riscv/include/arch/pmp.h
+++ b/src/arch/riscv/include/arch/pmp.h
@@ -11,6 +11,8 @@
*/
int pmp_entries_num(void);
+void print_pmp_regions(void);
+
/* reset PMP setting */
void reset_pmp(void);