[U-Boot] [PATCH v2 09/29] riscv: fix use of incorrectly sized variables

Bin Meng bmeng.cn at gmail.com
Wed Oct 31 02:13:56 UTC 2018


On Tue, Oct 30, 2018 at 8:57 PM Lukas Auer
<lukas.auer at 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 at 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 at gmail.com>


More information about the U-Boot mailing list