riscv: fix use of incorrectly sized variables
authorLukas Auer <lukas.auer@aisec.fraunhofer.de>
Thu, 22 Nov 2018 10:26:17 +0000 (11:26 +0100)
committerAndes <uboot@andestech.com>
Mon, 26 Nov 2018 05:57:29 +0000 (13:57 +0800)
commitb2c860c6dc5078c710b34a0dec9d6514cf390a85
tree40740c92dd528ba7d4ed9633bd1c8c0bc8cee96e
parent776e6335bf425f6b3cad01a25935dd2b7d4f40b7
riscv: fix use of incorrectly sized variables

The RISC-V arch incorrectly uses 32-bit instead of 64-bit variables in
several places. Fix this.
In addition, BITS_PER_LONG is set to 64 on RV64I systems.

Signed-off-by: Lukas Auer <lukas.auer@aisec.fraunhofer.de>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
arch/riscv/include/asm/io.h
arch/riscv/include/asm/posix_types.h
arch/riscv/include/asm/types.h
arch/riscv/lib/interrupts.c