diff options
| author | Jesse Taube <[email protected]> | 2025-05-28 08:46:04 -0700 |
|---|---|---|
| committer | Anup Patel <[email protected]> | 2025-06-16 17:01:52 +0530 |
| commit | 324021423d063702a5cb2d4207a3a9c4e999549f (patch) | |
| tree | 661829a1c149a748f912383f8fa835063e36e419 /include | |
| parent | 03f44e6b82a4debd0e5a3a67cf7f2da9f4a7dfca (diff) | |
lib: sbi: dbtr: Fix update_triggers to match SBI
OpenSBI implements sbi_dbtr_update_trig as
`sbi_dbtr_update_trig(unsigned long trig_idx_base,
unsigned long trig_idx_mask)`
yet SBI v3.0-rc7 Chapter 19. Debug Triggers Extension [0] declares it as
`sbi_debug_update_triggers(unsigned long trig_count)`
Change update_triggers to match 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: Himanshu Chauhan <[email protected]>
Tested-by: Charlie Jenkins <[email protected]>
Reviewed-by: Charlie Jenkins <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Anup Patel <[email protected]>
Diffstat (limited to 'include')
| -rw-r--r-- | include/sbi/sbi_dbtr.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/sbi/sbi_dbtr.h b/include/sbi/sbi_dbtr.h index 9b879680..5e0bf84e 100644 --- a/include/sbi/sbi_dbtr.h +++ b/include/sbi/sbi_dbtr.h @@ -115,8 +115,7 @@ int sbi_dbtr_uninstall_trig(unsigned long trig_idx_base, int sbi_dbtr_enable_trig(unsigned long trig_idx_base, unsigned long trig_idx_mask); int sbi_dbtr_update_trig(unsigned long smode, - unsigned long trig_idx_base, - unsigned long trig_idx_mask); + unsigned long trig_count); int sbi_dbtr_disable_trig(unsigned long trig_idx_base, unsigned long trig_idx_mask); |
