misc.h 956 B

1234567891011121314151617181920212223242526272829303132333435363738
  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. /* misc.c */
  21. extern struct boot_params *real_mode; /* Pointer to real-mode data */
  22. void __putstr(int error, const char *s);
  23. #define putstr(__x) __putstr(0, __x)
  24. #define puts(__x) __putstr(0, __x)
  25. /* cmdline.c */
  26. int cmdline_find_option(const char *option, char *buffer, int bufsize);
  27. int cmdline_find_option_bool(const char *option);
  28. /* early_serial_console.c */
  29. extern int early_serial_base;
  30. void console_init(void);
  31. #endif