From de0277bdda349ba3fa46af00d362ae8ecf16a07f Mon Sep 17 00:00:00 2001 From: Atish Patra Date: Fri, 12 Jan 2024 11:47:29 -0800 Subject: [PATCH] Clarify the PMU snapshot set memory funciton The *_set_shmem calls set up the shared memory on the calling hart only. Every active hart intend to use the shared memory must invoke this once to set it up. Clarify it in the PMU snapshot function. Signed-off-by: Atish Patra --- src/ext-pmu.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ext-pmu.adoc b/src/ext-pmu.adoc index 004f9f9..a7ad196 100644 --- a/src/ext-pmu.adoc +++ b/src/ext-pmu.adoc @@ -515,7 +515,7 @@ struct sbiret sbi_pmu_snapshot_set_shmem(unsigned long shmem_phys_lo, unsigned long flags) ---- -Set and enable the PMU snapshot shared memory. +Set and enable the PMU snapshot shared memory on the calling hart. If both `shmem_phys_lo` and `shmem_phys_hi` parameters are not all-ones bitwise then `shmem_phys_lo` specifies the lower XLEN bits and `shmem_phys_hi`