lib: sbi: fix hart_shmem_base
authorXiang W <wxjstz@126.com>
Fri, 3 May 2024 13:53:33 +0000 (21:53 +0800)
committerAnup Patel <anup@brainfault.org>
Mon, 13 May 2024 11:05:20 +0000 (16:35 +0530)
commit4953bd721a917768ce11a35961ff74f75d83afe7
tree880f53964b9655fd34f3efc43128ad2aaf90ee86
parent019a8e69a1dc0c0f011fabd0372e1ba80e40dd7c
lib: sbi: fix hart_shmem_base

When only phys_hi is equal to SBI_DBTR_SHMEM_INVALID_ADDR, it may be
a legal address. The old code would modify the legal address.

Signed-off-by: Xiang W <wxjstz@126.com>
Reviewed-by: Himanshu Chauhan <hchauhan@ventanamicro.com>
lib/sbi/sbi_dbtr.c