misc.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. #ifndef BOOT_COMPRESSED_MISC_H
  2. #define BOOT_COMPRESSED_MISC_H
  3. /*
  4. * we have to be careful, because no indirections are allowed here, and
  5. * paravirt_ops is a kind of one. As it will only run in baremetal anyway,
  6. * we just keep it from happening
  7. */
  8. #undef CONFIG_PARAVIRT
  9. #ifdef CONFIG_X86_32
  10. #define _ASM_X86_DESC_H 1
  11. #endif
  12. #include <linux/linkage.h>
  13. #include <linux/screen_info.h>
  14. #include <linux/elf.h>
  15. #include <linux/io.h>
  16. #include <asm/page.h>
  17. #include <asm/boot.h>
  18. #include <asm/bootparam.h>
  19. #define BOOT_BOOT_H
  20. #include "../ctype.h"
  21. /* misc.c */
  22. extern struct boot_params *real_mode; /* Pointer to real-mode data */
  23. void __putstr(const char *s);
  24. #define error_putstr(__x) __putstr(__x)
  25. #ifdef CONFIG_X86_VERBOSE_BOOTUP
  26. #define debug_putstr(__x) __putstr(__x)
  27. #else
  28. static inline void debug_putstr(const char *s)
  29. { }
  30. #endif
  31. #ifdef CONFIG_EARLY_PRINTK
  32. /* cmdline.c */
  33. int cmdline_find_option(const char *option, char *buffer, int bufsize);
  34. int cmdline_find_option_bool(const char *option);
  35. /* early_serial_console.c */
  36. extern int early_serial_base;
  37. void console_init(void);
  38. #else
  39. /* early_serial_console.c */
  40. static const int early_serial_base;
  41. static inline void console_init(void)
  42. { }
  43. #endif
  44. #endif