diff options
author | Nick Hu <nick.hu@sifive.com> | 2021-10-18 11:50:05 +0800 |
---|---|---|
committer | Leo Yu-Chi Liang <ycliang@andestech.com> | 2021-10-20 10:59:17 +0800 |
commit | ddf4972834fdf33f0a3360ff4a68fde333995113 (patch) | |
tree | c704b0558d4ab6a32c95327865ebb7fa6b37208f /drivers/ddr/microchip/ddr2_regs.h | |
parent | b18c4ae82f266d81281d63ac58945d92ed67afde (diff) |
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: Nick Hu <nick.hu@sifive.com>
Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'drivers/ddr/microchip/ddr2_regs.h')
0 files changed, 0 insertions, 0 deletions