misc.h (549f90db68c9f8e21a40ec21c8047441984e7164) misc.h (3a94707d7a7bb1eb82acae5fbc035247dd1ba8a5)
1#ifndef BOOT_COMPRESSED_MISC_H
2#define BOOT_COMPRESSED_MISC_H
3
4/*
5 * Special hack: we have to be careful, because no indirections are allowed here,
6 * and paravirt_ops is a kind of one. As it will only run in baremetal anyway,
7 * we just keep it from happening. (This list needs to be extended when new
8 * paravirt and debugging variants are added.)

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

79 unsigned long input_size,
80 unsigned long output_ptr,
81 unsigned long output_size)
82{
83 return (unsigned char *)output_ptr;
84}
85#endif
86
1#ifndef BOOT_COMPRESSED_MISC_H
2#define BOOT_COMPRESSED_MISC_H
3
4/*
5 * Special hack: we have to be careful, because no indirections are allowed here,
6 * and paravirt_ops is a kind of one. As it will only run in baremetal anyway,
7 * we just keep it from happening. (This list needs to be extended when new
8 * paravirt and debugging variants are added.)

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

79 unsigned long input_size,
80 unsigned long output_ptr,
81 unsigned long output_size)
82{
83 return (unsigned char *)output_ptr;
84}
85#endif
86
87#ifdef CONFIG_X86_64
88void add_identity_map(unsigned long start, unsigned long size);
89void finalize_identity_maps(void);
90extern unsigned char _pgtable[];
91#else
92static inline void add_identity_map(unsigned long start, unsigned long size)
93{ }
94static inline void finalize_identity_maps(void)
95{ }
96#endif
97
87#ifdef CONFIG_EARLY_PRINTK
88/* early_serial_console.c */
89extern int early_serial_base;
90void console_init(void);
91#else
92static const int early_serial_base;
93static inline void console_init(void)
94{ }
95#endif
96
97#endif
98#ifdef CONFIG_EARLY_PRINTK
99/* early_serial_console.c */
100extern int early_serial_base;
101void console_init(void);
102#else
103static const int early_serial_base;
104static inline void console_init(void)
105{ }
106#endif
107
108#endif