misc.h 978 B

12345678910111213141516171819202122232425262728293031323334353637383940
  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(int error, const char *s);
  24. #define putstr(__x) __putstr(0, __x)
  25. #define puts(__x) __putstr(0, __x)
  26. /* cmdline.c */
  27. int cmdline_find_option(const char *option, char *buffer, int bufsize);
  28. int cmdline_find_option_bool(const char *option);
  29. /* early_serial_console.c */
  30. extern int early_serial_base;
  31. void console_init(void);
  32. #endif