Guest User

Multiboot_Info.h

a guest
Mar 17th, 2012
37
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.68 KB | None | 0 0
  1. #ifndef __MULTIBOOT_INFO_HEADER__
  2. #define __MULTIBOOT_INFO_HEADER__
  3. #include "types.h"
  4.  
  5. struct multiboot_info {
  6.         uint32_t    mbs_flags;
  7.         uint32_t    mbs_mem_lower;
  8.         uint32_t    mbs_mem_upper;
  9.         uint32_t    mbs_bootdevice;
  10.         uint32_t    mbs_cmdline;
  11.         uint32_t    mbs_mods_count;
  12.         void*       mbs_mods_addr;
  13.         uint32_t    mbs_sysms[4];
  14.         uint32_t    mbs_mmap_length;
  15.         void*       mbs_mmap_addr;
  16.     }__attribute__((packed));
  17.    
  18.     struct multiboot_mmap {
  19.         uint32_t    entry_size;
  20.         uint64_t    base;
  21.         uint64_t    length;
  22.         uint32_t    type;
  23.     }__attribute__((packed));
  24.    
  25.     struct multiboot_module {
  26.         uint32_t    mod_start;
  27.         uint32_t    mod_end;
  28.         char*       cmdline;
  29.         uint32_t    reserved;
  30.         } __attribute__((packed));
  31. #endif
Advertisement
Add Comment
Please, Sign In to add comment