setup.h 1.3 KB

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