mirror of
https://github.com/riscv-software-src/opensbi.git
synced 2025-08-25 07:41:42 +01:00
lib: sbi: Allow forceful queueing of data in sbi_fifo_enqueue()
Extend sbi_fifo_enqueue() to allow forceful queueing by droping data from the tail. Signed-off-by: Anup Patel <apatel@ventanamicro.com> Reviewed-By: Himanshu Chauhan <hchauhan@ventanamicro.com>
This commit is contained in:
@@ -667,7 +667,7 @@ static int sse_ipi_inject_send(unsigned long hartid, uint32_t event_id)
|
||||
sse_inject_fifo_r =
|
||||
sbi_scratch_offset_ptr(remote_scratch, sse_inject_fifo_off);
|
||||
|
||||
ret = sbi_fifo_enqueue(sse_inject_fifo_r, &evt);
|
||||
ret = sbi_fifo_enqueue(sse_inject_fifo_r, &evt, false);
|
||||
if (ret)
|
||||
return SBI_EFAIL;
|
||||
|
||||
|
Reference in New Issue
Block a user