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

Bin Meng bmeng.cn at gmail.com
Tue Oct 19 10:59:25 CEST 2021


On Mon, Oct 18, 2021 at 7:31 PM Nick Hu <nick.hu at sifive.com> 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: Bin Meng <bmeng.cn at gmail.com>


More information about the U-Boot mailing list