]> git.baikalelectronics.ru Git - uboot.git/commit
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)
commitc1e7486d62a84022aa1b7b0b427bb216c74fa8e5
tree40740c92dd528ba7d4ed9633bd1c8c0bc8cee96e
parentcf4a7cbf22b9ebbfc34a5cdabc5ebf2d7de6c248
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