boot.h 816 B

123456789101112131415161718192021222324252627282930313233343536
  1. #ifndef _ASM_X86_BOOT_H
  2. #define _ASM_X86_BOOT_H
  3. /* Internal svga startup constants */
  4. #define NORMAL_VGA 0xffff /* 80x25 mode */
  5. #define EXTENDED_VGA 0xfffe /* 80x50 mode */
  6. #define ASK_VGA 0xfffd /* ask for it at bootup */
  7. #ifdef __KERNEL__
  8. /* Physical address where kernel should be loaded. */
  9. #define LOAD_PHYSICAL_ADDR ((CONFIG_PHYSICAL_START \
  10. + (CONFIG_PHYSICAL_ALIGN - 1)) \
  11. & ~(CONFIG_PHYSICAL_ALIGN - 1))
  12. #ifdef CONFIG_KERNEL_BZIP2
  13. #define BOOT_HEAP_SIZE 0x400000
  14. #else /* !CONFIG_KERNEL_BZIP2 */
  15. #ifdef CONFIG_X86_64
  16. #define BOOT_HEAP_SIZE 0x7000
  17. #else
  18. #define BOOT_HEAP_SIZE 0x4000
  19. #endif
  20. #endif /* !CONFIG_KERNEL_BZIP2 */
  21. #ifdef CONFIG_X86_64
  22. #define BOOT_STACK_SIZE 0x4000
  23. #else
  24. #define BOOT_STACK_SIZE 0x1000
  25. #endif
  26. #endif /* __KERNEL__ */
  27. #endif /* _ASM_X86_BOOT_H */