setup.h 1.5 KB

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