mirror of
https://github.com/riscv-software-src/opensbi.git
synced 2025-08-25 07:41:42 +01:00
lib: sbi: sse: fix typos, comments and spacing errors
Fix some errors spotted by Samuel while reviewing the SSE implementation. Signed-off-by: Clément Léger <cleger@rivosinc.com> Reported-by: Samuel Holland <samuel.holland@sifive.com> Reviewed-by: Anup Patel <anup@brainfault.org>
This commit is contained in:

committed by
Anup Patel

parent
7b1ed968e4
commit
c21c99db6a
@@ -128,7 +128,7 @@ struct sse_hart_state {
|
|||||||
*
|
*
|
||||||
* When an event is in a state >= ENABLED, then it is inserted in the
|
* When an event is in a state >= ENABLED, then it is inserted in the
|
||||||
* this enabled_event_list and thus can only be removed from this
|
* this enabled_event_list and thus can only be removed from this
|
||||||
* list upon disable ecall or on complete with ONE_SHOT flag.
|
* list upon disable ecall or on complete with ONESHOT flag.
|
||||||
*/
|
*/
|
||||||
struct sbi_dlist enabled_event_list;
|
struct sbi_dlist enabled_event_list;
|
||||||
|
|
||||||
@@ -882,10 +882,10 @@ int sbi_sse_read_attrs(uint32_t event_id, uint32_t base_attr_id,
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* Copy all attributes at once since struct sse_event_attrs is matching
|
* Copy all attributes at once since struct sse_event_attrs is matching
|
||||||
* the SBI_SSE_ATTR_* attributes. While WRITE_ATTR attribute is not used
|
* the SBI_SSE_ATTR_* attributes. READ_ATTR is used in SSE handling path
|
||||||
* in s-mode sse handling path, READ_ATTR is used to retrieve the value
|
* to retrieve the value of registers when interrupted. Rather than
|
||||||
* of registers when interrupted. Rather than doing multiple SBI calls,
|
* doing multiple SBI calls a single one is done allowing to retrieve
|
||||||
* a single one is done allowing to retrieve them all at once.
|
* them all at once.
|
||||||
*/
|
*/
|
||||||
e_attrs = (unsigned long *)&e->attrs;
|
e_attrs = (unsigned long *)&e->attrs;
|
||||||
attrs = (unsigned long *)output_phys_lo;
|
attrs = (unsigned long *)output_phys_lo;
|
||||||
|
Reference in New Issue
Block a user