boot.h 937 B

12345678910111213141516171819202122232425262728293031323334353637383940
  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. #ifdef __KERNEL__
  11. /* Physical address where kernel should be loaded. */
  12. #define LOAD_PHYSICAL_ADDR ((CONFIG_PHYSICAL_START \
  13. + (CONFIG_PHYSICAL_ALIGN - 1)) \
  14. & ~(CONFIG_PHYSICAL_ALIGN - 1))
  15. #ifdef CONFIG_KERNEL_BZIP2
  16. #define BOOT_HEAP_SIZE 0x400000
  17. #else /* !CONFIG_KERNEL_BZIP2 */
  18. #ifdef CONFIG_X86_64
  19. #define BOOT_HEAP_SIZE 0x7000
  20. #else
  21. #define BOOT_HEAP_SIZE 0x4000
  22. #endif
  23. #endif /* !CONFIG_KERNEL_BZIP2 */
  24. #ifdef CONFIG_X86_64
  25. #define BOOT_STACK_SIZE 0x4000
  26. #else
  27. #define BOOT_STACK_SIZE 0x1000
  28. #endif
  29. #endif /* __KERNEL__ */
  30. #endif /* _ASM_X86_BOOT_H */