1 // SPDX-License-Identifier: GPL-2.0-only
4 #include <linux/processor.h>
9 * To avoid rewriting code include asm/archrandom.h and create macros
10 * for the functions that won't be included.
12 #undef riscv_has_extension_unlikely
13 #define riscv_has_extension_likely(...) false
15 #define pr_err_once(...)
17 #include <asm/archrandom.h>
19 u64
get_kaslr_seed_zkr(const uintptr_t dtb_pa
)
21 unsigned long seed
= 0;
23 if (!fdt_early_match_extension_isa((const void *)dtb_pa
, "zkr"))
26 if (!csr_seed_long(&seed
))