pi.h (b3311827155aca72498b8a0dfd0f2499b70d39b8) pi.h (945302df3de156fc367d3b537cec76d4aea0b0d1)
1/* SPDX-License-Identifier: GPL-2.0 */
2#ifndef _RISCV_PI_H_
3#define _RISCV_PI_H_
4
5#include <linux/types.h>
6
7/*
8 * The following functions are exported (but prefixed). Declare them here so
9 * that LLVM does not complain it lacks the 'static' keyword (which, if
10 * added, makes LLVM complain because the function is unused).
11 */
12
13u64 get_kaslr_seed(uintptr_t dtb_pa);
1/* SPDX-License-Identifier: GPL-2.0 */
2#ifndef _RISCV_PI_H_
3#define _RISCV_PI_H_
4
5#include <linux/types.h>
6
7/*
8 * The following functions are exported (but prefixed). Declare them here so
9 * that LLVM does not complain it lacks the 'static' keyword (which, if
10 * added, makes LLVM complain because the function is unused).
11 */
12
13u64 get_kaslr_seed(uintptr_t dtb_pa);
14u64 get_kaslr_seed_zkr(const uintptr_t dtb_pa);
14bool set_nokaslr_from_cmdline(uintptr_t dtb_pa);
15u64 set_satp_mode_from_cmdline(uintptr_t dtb_pa);
16
15bool set_nokaslr_from_cmdline(uintptr_t dtb_pa);
16u64 set_satp_mode_from_cmdline(uintptr_t dtb_pa);
17
18bool fdt_early_match_extension_isa(const void *fdt, const char *ext_name);
19
17#endif /* _RISCV_PI_H_ */
20#endif /* _RISCV_PI_H_ */