Files
android_kernel_xiaomi_sm8450/arch/riscv/include/asm
Anup Patel aa9887608e RISC-V: Check clint_time_val before use
The NoMMU kernel is broken for QEMU virt machine from Linux-5.9-rc6
because clint_time_val is used even before CLINT driver is probed
at following places:
1. rand_initialize() calls get_cycles() which in-turn uses
   clint_time_val
2. boot_init_stack_canary() calls get_cycles() which in-turn
   uses clint_time_val

The issue#1 (above) is fixed by providing custom random_get_entropy()
for RISC-V NoMMU kernel. For issue#2 (above), we remove dependency of
boot_init_stack_canary() on get_cycles() and this is aligned with the
boot_init_stack_canary() implementations of ARM, ARM64 and MIPS kernel.

Fixes: d5be89a8d1 ("RISC-V: Resurrect the MMIO timer implementation for M-mode systems")
Signed-off-by: Anup Patel <anup.patel@wdc.com>
Tested-by: Damien Le Moal <damien.lemoal@wdc.com>
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
2020-09-30 11:05:14 -07:00
..
2017-09-26 15:26:46 -07:00
2019-11-17 15:17:39 -08:00
2020-03-31 11:28:30 -07:00
2019-11-17 15:17:39 -08:00
2020-05-18 11:38:10 -07:00
2019-11-17 15:17:39 -08:00
2020-06-03 20:09:50 -07:00
2020-01-22 13:09:58 -08:00
2019-11-17 15:17:39 -08:00
2020-08-12 10:57:58 -07:00