
31 Oct
2018
31 Oct
'18
3:13 a.m.
On Tue, Oct 30, 2018 at 8:57 PM Lukas Auer lukas.auer@aisec.fraunhofer.de wrote:
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
Changes in v2:
- Remove 0-padding in the format string to avoid printing 16 digits on
RV32I systems
arch/riscv/include/asm/io.h | 6 +++--- arch/riscv/include/asm/posix_types.h | 6 +++--- arch/riscv/include/asm/types.h | 4 ++++ arch/riscv/lib/interrupts.c | 10 +++++----- 4 files changed, 15 insertions(+), 11 deletions(-)
Reviewed-by: Bin Meng bmeng.cn@gmail.com