lib: utils/sys: Allow custom HTIF base address for RV32
authorBin Meng <bmeng@tinylab.org>
Mon, 26 Dec 2022 03:36:03 +0000 (11:36 +0800)
committerAnup Patel <anup@brainfault.org>
Fri, 6 Jan 2023 12:31:36 +0000 (18:01 +0530)
commit65638f8d6b1f438ae442bad7a4f77b188d3d3689
treea6f0b4a55f7cace05acb10848a5c7b18032b502c
parent6509127ad620748c90c02b4bd32fa91df165ee82
lib: utils/sys: Allow custom HTIF base address for RV32

commit 6dde43584f18 ("lib: utils/sys: Extend HTIF library to allow custom base address")
forgot to update do_tohost_fromhost() codes for RV32, which still
accesses the HTIF registers using the ELF symbol address directly.

Fixes: 6dde43584f18 ("lib: utils/sys: Extend HTIF library to allow custom base address")
Signed-off-by: Bin Meng <bmeng@tinylab.org>
Tested-by: Daniel Henrique Barboza <dbarboza@ventanamicro.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
lib/utils/sys/htif.c