boot_info.h 537 B

1234567891011121314151617181920212223
  1. /**
  2. * @file boot_info.h
  3. * @brief 启动信息接口
  4. */
  5. #pragma once
  6. #include "glib.h"
  7. /**
  8. * @brief 启动信息接口
  9. * 由引导传递的机器信息处理
  10. * 如 grub2 传递的 multiboot2 结构
  11. * 注意这部分是通过内存传递的,在重新保存之前不能被覆盖
  12. * 架构专有的数据在 dtb.h 或 multiboot2.h
  13. * 实现在 dtb.cpp 或 multiboot2.cpp
  14. */
  15. /// 声明,定义在具体的实现中
  16. /// 地址
  17. extern uintptr_t boot_info_addr;
  18. /// 长度
  19. extern unsigned int boot_info_size;