riscv: Add KASAN support
[sfrench/cifs-2.6.git] / arch / riscv / kernel / head.S
index a4242be66966b2bdbfaee559b93b905e8a0e0d45..271860fc2c3f02a5d50552339a005004444ab456 100644 (file)
@@ -121,6 +121,9 @@ clear_bss_done:
        sw zero, TASK_TI_CPU(tp)
        la sp, init_thread_union + THREAD_SIZE
 
+#ifdef CONFIG_KASAN
+       call kasan_early_init
+#endif
        /* Start the kernel */
        call parse_dtb
        tail start_kernel