boot.h 773 B

12345678910111213141516171819202122232425262728
  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_INITSEG 0x9000
  5. #define DEF_SYSSEG 0x1000
  6. #define DEF_SETUPSEG 0x9020
  7. #define DEF_SYSSIZE 0x7F00
  8. /* Internal svga startup constants */
  9. #define NORMAL_VGA 0xffff /* 80x25 mode */
  10. #define EXTENDED_VGA 0xfffe /* 80x50 mode */
  11. #define ASK_VGA 0xfffd /* ask for it at bootup */
  12. /* Physical address where kernel should be loaded. */
  13. #define LOAD_PHYSICAL_ADDR ((CONFIG_PHYSICAL_START \
  14. + (CONFIG_PHYSICAL_ALIGN - 1)) \
  15. & ~(CONFIG_PHYSICAL_ALIGN - 1))
  16. #ifdef CONFIG_X86_64
  17. #define BOOT_HEAP_SIZE 0x7000
  18. #define BOOT_STACK_SIZE 0x4000
  19. #else
  20. #define BOOT_HEAP_SIZE 0x4000
  21. #define BOOT_STACK_SIZE 0x1000
  22. #endif
  23. #endif /* ASM_X86__BOOT_H */