misc.h (9e87e48f8e5de2146842fd0ff436e0256b52c4a9) misc.h (78cac48c0434c82e860fade3cd0420a7a4adbb08)
1#ifndef BOOT_COMPRESSED_MISC_H
2#define BOOT_COMPRESSED_MISC_H
3
4/*
5 * we have to be careful, because no indirections are allowed here, and
6 * paravirt_ops is a kind of one. As it will only run in baremetal anyway,
7 * we just keep it from happening
8 */

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

52/* cmdline.c */
53int cmdline_find_option(const char *option, char *buffer, int bufsize);
54int cmdline_find_option_bool(const char *option);
55#endif
56
57
58#if CONFIG_RANDOMIZE_BASE
59/* aslr.c */
1#ifndef BOOT_COMPRESSED_MISC_H
2#define BOOT_COMPRESSED_MISC_H
3
4/*
5 * we have to be careful, because no indirections are allowed here, and
6 * paravirt_ops is a kind of one. As it will only run in baremetal anyway,
7 * we just keep it from happening
8 */

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

52/* cmdline.c */
53int cmdline_find_option(const char *option, char *buffer, int bufsize);
54int cmdline_find_option_bool(const char *option);
55#endif
56
57
58#if CONFIG_RANDOMIZE_BASE
59/* aslr.c */
60unsigned char *choose_kernel_location(unsigned char *input,
60unsigned char *choose_kernel_location(struct boot_params *boot_params,
61 unsigned char *input,
61 unsigned long input_size,
62 unsigned char *output,
63 unsigned long output_size);
64/* cpuflags.c */
65bool has_cpuflag(int flag);
66#else
67static inline
62 unsigned long input_size,
63 unsigned char *output,
64 unsigned long output_size);
65/* cpuflags.c */
66bool has_cpuflag(int flag);
67#else
68static inline
68unsigned char *choose_kernel_location(unsigned char *input,
69unsigned char *choose_kernel_location(struct boot_params *boot_params,
70 unsigned char *input,
69 unsigned long input_size,
70 unsigned char *output,
71 unsigned long output_size)
72{
73 return output;
74}
75#endif
76
77#ifdef CONFIG_EARLY_PRINTK
78/* early_serial_console.c */
79extern int early_serial_base;
80void console_init(void);
81#else
82static const int early_serial_base;
83static inline void console_init(void)
84{ }
85#endif
86
87#endif
71 unsigned long input_size,
72 unsigned char *output,
73 unsigned long output_size)
74{
75 return output;
76}
77#endif
78
79#ifdef CONFIG_EARLY_PRINTK
80/* early_serial_console.c */
81extern int early_serial_base;
82void console_init(void);
83#else
84static const int early_serial_base;
85static inline void console_init(void)
86{ }
87#endif
88
89#endif