setup.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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. #define PARAM_SIZE 4096
  13. #define OLD_CL_MAGIC_ADDR 0x90020
  14. #define OLD_CL_MAGIC 0xA33F
  15. #define OLD_CL_BASE_ADDR 0x90000
  16. #define OLD_CL_OFFSET 0x90022
  17. #define NEW_CL_POINTER 0x228 /* Relative to real mode data */
  18. #endif /* __i386__ */
  19. #ifndef __ASSEMBLY__
  20. #include <asm/bootparam.h>
  21. /*
  22. * This is set up by the setup-routine at boot-time
  23. */
  24. extern struct boot_params boot_params;
  25. #ifdef __i386__
  26. /*
  27. * Do NOT EVER look at the BIOS memory size location.
  28. * It does not work on many machines.
  29. */
  30. #define LOWMEMSIZE() (0x9f000)
  31. struct e820entry;
  32. char * __init machine_specific_memory_setup(void);
  33. char *memory_setup(void);
  34. int __init copy_e820_map(struct e820entry * biosmap, int nr_map);
  35. int __init sanitize_e820_map(struct e820entry * biosmap, char * pnr_map);
  36. void __init add_memory_region(unsigned long long start,
  37. unsigned long long size, int type);
  38. extern unsigned long init_pg_tables_end;
  39. #ifndef CONFIG_PARAVIRT
  40. #define paravirt_post_allocator_init() do {} while (0)
  41. #endif
  42. #endif /* __i386__ */
  43. #endif /* __ASSEMBLY__ */
  44. #endif /* __KERNEL__ */
  45. #endif /* _ASM_X86_SETUP_H */