setup_32.h 1.4 KB

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