misc.h (69add17a7c1992593a7cf775a66e0256ad4b3ef8) misc.h (f5ed777586e08e09c4b6f1e87161a145ee1431cf)
1/* SPDX-License-Identifier: GPL-2.0 */
2#ifndef BOOT_COMPRESSED_MISC_H
3#define BOOT_COMPRESSED_MISC_H
4
5/*
6 * Special hack: we have to be careful, because no indirections are allowed here,
7 * and paravirt_ops is a kind of one. As it will only run in baremetal anyway,
8 * we just keep it from happening. (This list needs to be extended when new

--- 71 unchanged lines hidden (view full) ---

80
81#if CONFIG_RANDOMIZE_BASE
82/* kaslr.c */
83void choose_random_location(unsigned long input,
84 unsigned long input_size,
85 unsigned long *output,
86 unsigned long output_size,
87 unsigned long *virt_addr);
1/* SPDX-License-Identifier: GPL-2.0 */
2#ifndef BOOT_COMPRESSED_MISC_H
3#define BOOT_COMPRESSED_MISC_H
4
5/*
6 * Special hack: we have to be careful, because no indirections are allowed here,
7 * and paravirt_ops is a kind of one. As it will only run in baremetal anyway,
8 * we just keep it from happening. (This list needs to be extended when new

--- 71 unchanged lines hidden (view full) ---

80
81#if CONFIG_RANDOMIZE_BASE
82/* kaslr.c */
83void choose_random_location(unsigned long input,
84 unsigned long input_size,
85 unsigned long *output,
86 unsigned long output_size,
87 unsigned long *virt_addr);
88/* cpuflags.c */
89bool has_cpuflag(int flag);
90#else
91static inline void choose_random_location(unsigned long input,
92 unsigned long input_size,
93 unsigned long *output,
94 unsigned long output_size,
95 unsigned long *virt_addr)
96{
97}
98#endif
99
88#else
89static inline void choose_random_location(unsigned long input,
90 unsigned long input_size,
91 unsigned long *output,
92 unsigned long output_size,
93 unsigned long *virt_addr)
94{
95}
96#endif
97
98/* cpuflags.c */
99bool has_cpuflag(int flag);
100
100#ifdef CONFIG_X86_64
101extern int set_page_decrypted(unsigned long address);
102extern int set_page_encrypted(unsigned long address);
103extern int set_page_non_present(unsigned long address);
104extern unsigned char _pgtable[];
105#endif
106
107#ifdef CONFIG_EARLY_PRINTK

--- 54 unchanged lines hidden ---
101#ifdef CONFIG_X86_64
102extern int set_page_decrypted(unsigned long address);
103extern int set_page_encrypted(unsigned long address);
104extern int set_page_non_present(unsigned long address);
105extern unsigned char _pgtable[];
106#endif
107
108#ifdef CONFIG_EARLY_PRINTK

--- 54 unchanged lines hidden ---