diff options
| author | Jesse Taube <[email protected]> | 2025-06-04 06:52:25 -0700 |
|---|---|---|
| committer | Anup Patel <[email protected]> | 2025-06-16 10:14:20 +0530 |
| commit | 033e0e2353ddab76039e62b46c9f77e178bac689 (patch) | |
| tree | c70d52800485790ddf2c6b23eadc3b7b848315a1 /lib/utils/cppc | |
| parent | 9f64f0619334eea34df66a1816b1be589870ac4e (diff) | |
lib: sbi: dbtr: Fix shared memory layout
The existing sbi_dbtr_shmem_entry has a size of 5 * XLEN with the final
entry being idx. This is in contrast to the SBI v3.0-rc7 Chapter 19.
Debug Triggers Extension [0] where idx and trig_state share the same
offset (0) in shared memory, with a total size of 4 * XLEN for all the
SBI calls.
Replace struct with union to match memory layout described in SBI.
[0] https://github.com/riscv-non-isa/riscv-sbi-doc/tree/v3.0-rc7/src/ext-debug-triggers.adoc
Fixes: 97f234f15c96 ("lib: sbi: Introduce the SBI debug triggers extension support")
Signed-off-by: Jesse Taube <[email protected]>
Reviewed-by: Charlie Jenkins <[email protected]>
Tested-by: Charlie Jenkins <[email protected]>
Reviewed-by: Himanshu Chauhan <[email protected]>
Tested-by: Himanshu Chauhan <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Anup Patel <[email protected]>
Diffstat (limited to 'lib/utils/cppc')
0 files changed, 0 insertions, 0 deletions
