diff options
author | Dong Du <Dd_nirvana@sjtu.edu.cn> | 2021-08-28 14:45:02 +0800 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2021-08-30 09:12:37 +0530 |
commit | c2623065331a9ae93f7dbd9d1bc7b4d46d0415a6 (patch) | |
tree | 92b999cbb1209ea4e2ed863630db7bb839d38914 /lib/sbi/sbi_fifo.c | |
parent | bd316e2c9bf855b7b7918e71622a9cded6a176ad (diff) |
lib: sbi: protect dprintf output with spinlock
Avoid getting messages from multiple harts (using dprintf and printf)
concurrently with a spinlock serializaing calls to sbi_dprintf(),
sbi_printf() and sbi_puts()
Signed-off-by: Dong Du <Dd_nirvana@sjtu.edu.cn>
Reviewed-by: Xiang W <wxjstz@126.com>
Reviewed-by: Anup Patel <anup.patel@wdc.com>
Diffstat (limited to 'lib/sbi/sbi_fifo.c')
0 files changed, 0 insertions, 0 deletions