setup.h 1.4 KB

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