riscv/nsbi: unblock up_udelay

This fixes the always zero time in NuttSBI case as the `error` field
contains the correct timestamp. This in turn also fixes the block of
`up_udelay()` which further leads to boot failure of `canmv230:master`
config.

Signed-off-by: Yanfeng Liu <yfliu2008@qq.com>
This commit is contained in:
Yanfeng Liu 2024-07-22 13:14:52 +08:00 committed by Xiang Xiao
parent fa31c1c21b
commit 3b9a346fe7
1 changed files with 1 additions and 1 deletions

View File

@ -111,7 +111,7 @@ uint64_t riscv_sbi_get_time(void)
sbiret_t ret = sbi_ecall(SBI_EXT_FIRMWARE, SBI_EXT_FIRMWARE_GET_MTIME,
0, 0, 0, 0, 0, 0);
return ret.value;
return ret.error;
#elif defined(CONFIG_ARCH_RV64)
return READ_CSR(CSR_TIME);
#else