setup.h 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  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. char *machine_specific_memory_setup(void);
  8. #ifndef CONFIG_PARAVIRT
  9. #define paravirt_post_allocator_init() do {} while (0)
  10. #endif
  11. #endif /* __ASSEMBLY__ */
  12. #ifdef __KERNEL__
  13. #ifdef __i386__
  14. #include <linux/pfn.h>
  15. /*
  16. * Reserved space for vmalloc and iomap - defined in asm/page.h
  17. */
  18. #define MAXMEM_PFN PFN_DOWN(MAXMEM)
  19. #define MAX_NONPAE_PFN (1 << 20)
  20. #endif /* __i386__ */
  21. #define PARAM_SIZE 4096 /* sizeof(struct boot_params) */
  22. #define OLD_CL_MAGIC 0xA33F
  23. #define OLD_CL_ADDRESS 0x020 /* Relative to real mode data */
  24. #define NEW_CL_POINTER 0x228 /* Relative to real mode data */
  25. #ifndef __ASSEMBLY__
  26. #include <asm/bootparam.h>
  27. #ifndef _SETUP
  28. /*
  29. * This is set up by the setup-routine at boot-time
  30. */
  31. extern struct boot_params boot_params;
  32. #ifdef __i386__
  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. struct e820entry;
  39. char * __init machine_specific_memory_setup(void);
  40. char *memory_setup(void);
  41. int __init copy_e820_map(struct e820entry *biosmap, int nr_map);
  42. int __init sanitize_e820_map(struct e820entry *biosmap, char *pnr_map);
  43. void __init add_memory_region(unsigned long long start,
  44. unsigned long long size, int type);
  45. extern unsigned long init_pg_tables_end;
  46. #endif /* __i386__ */
  47. #endif /* _SETUP */
  48. #endif /* __ASSEMBLY__ */
  49. #endif /* __KERNEL__ */
  50. #endif /* _ASM_X86_SETUP_H */