Skip to content
Commit ddf49728 authored by Nick Hu's avatar Nick Hu Committed by Leo Yu-Chi Liang
Browse files

riscv: Avoid io read/write cause wrong result



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: default avatarNick Hu <nick.hu@sifive.com>
Reviewed-by: default avatarLeo Yu-Chi Liang <ycliang@andestech.com>
Reviewed-by: default avatarBin Meng <bmeng.cn@gmail.com>
parent b18c4ae8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment