[PATCH] riscv: Avoid io read/write cause wrong result

Leo Liang ycliang at andestech.com
Tue Oct 19 10:30:15 CEST 2021


On Mon, Oct 18, 2021 at 11:50:05AM +0800, Nick Hu wrote:
> io read/write may cause wrong result because they may read/write data
> from/to register instead of memory. Add 'volatile' to avoid it.
> 
> Signed-off-by: Nick Hu <nick.hu at sifive.com>
> ---
>  arch/riscv/include/asm/io.h | 18 +++++++++---------
>  1 file changed, 9 insertions(+), 9 deletions(-)
>
Reviewed-by: Leo Yu-Chi Liang <ycliang at andestech.com>


More information about the U-Boot mailing list