boot.h 846 B

123456789101112131415161718192021222324252627282930313233343536
  1. #ifndef _ASM_X86_BOOT_H
  2. #define _ASM_X86_BOOT_H
  3. /* Don't touch these, unless you really know what you're doing. */
  4. #define DEF_SYSSEG 0x1000
  5. #define DEF_SYSSIZE 0x7F00
  6. /* Internal svga startup constants */
  7. #define NORMAL_VGA 0xffff /* 80x25 mode */
  8. #define EXTENDED_VGA 0xfffe /* 80x50 mode */
  9. #define ASK_VGA 0xfffd /* ask for it at bootup */
  10. /* Physical address where kernel should be loaded. */
  11. #define LOAD_PHYSICAL_ADDR ((CONFIG_PHYSICAL_START \
  12. + (CONFIG_PHYSICAL_ALIGN - 1)) \
  13. & ~(CONFIG_PHYSICAL_ALIGN - 1))
  14. #if (defined CONFIG_KERNEL_BZIP2)
  15. #define BOOT_HEAP_SIZE 0x400000
  16. #else
  17. #ifdef CONFIG_X86_64
  18. #define BOOT_HEAP_SIZE 0x7000
  19. #else
  20. #define BOOT_HEAP_SIZE 0x4000
  21. #endif
  22. #endif
  23. #ifdef CONFIG_X86_64
  24. #define BOOT_STACK_SIZE 0x4000
  25. #else
  26. #define BOOT_STACK_SIZE 0x1000
  27. #endif
  28. #endif /* _ASM_X86_BOOT_H */