setup.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. #ifndef _ASM_X86_SETUP_H
  2. #define _ASM_X86_SETUP_H
  3. #define COMMAND_LINE_SIZE 2048
  4. #ifndef __ASSEMBLY__
  5. /* Interrupt control for vSMPowered x86_64 systems */
  6. void vsmp_init(void);
  7. /* Crashkernel reservation */
  8. void reserve_crashkernel(void);
  9. #ifndef CONFIG_PARAVIRT
  10. #define paravirt_post_allocator_init() do {} while (0)
  11. #endif
  12. #endif /* __ASSEMBLY__ */
  13. #ifdef __KERNEL__
  14. #ifdef __i386__
  15. #include <linux/pfn.h>
  16. /*
  17. * Reserved space for vmalloc and iomap - defined in asm/page.h
  18. */
  19. #define MAXMEM_PFN PFN_DOWN(MAXMEM)
  20. #define MAX_NONPAE_PFN (1 << 20)
  21. #endif /* __i386__ */
  22. #define PARAM_SIZE 4096 /* sizeof(struct boot_params) */
  23. #define OLD_CL_MAGIC 0xA33F
  24. #define OLD_CL_ADDRESS 0x020 /* Relative to real mode data */
  25. #define NEW_CL_POINTER 0x228 /* Relative to real mode data */
  26. #ifndef __ASSEMBLY__
  27. #include <asm/bootparam.h>
  28. #ifndef _SETUP
  29. /*
  30. * This is set up by the setup-routine at boot-time
  31. */
  32. extern struct boot_params boot_params;
  33. /*
  34. * Do NOT EVER look at the BIOS memory size location.
  35. * It does not work on many machines.
  36. */
  37. #define LOWMEMSIZE() (0x9f000)
  38. #ifdef __i386__
  39. void __init i386_start_kernel(void);
  40. extern void probe_roms(void);
  41. extern unsigned long init_pg_tables_start;
  42. extern unsigned long init_pg_tables_end;
  43. #endif /* __i386__ */
  44. #endif /* _SETUP */
  45. #endif /* __ASSEMBLY__ */
  46. #endif /* __KERNEL__ */
  47. #endif /* _ASM_X86_SETUP_H */