Changes in kernel/genarch/include/multiboot/multiboot.h [1f5c9c96:d99c1d2] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/genarch/include/multiboot/multiboot.h
r1f5c9c96 rd99c1d2 36 36 #define KERN_MULTIBOOT_H_ 37 37 38 #define MULTIBOOT_HEADER_MAGIC 0x1badb00239 #define MULTIBOOT_HEADER_FLAGS 0x0001000340 41 #define MULTIBOOT_LOADER_MAGIC 0x2badb00242 43 #ifndef __ASM__44 45 38 #include <typedefs.h> 46 39 #include <arch/boot/memmap.h> 47 48 /** Convert 32-bit multiboot address to a pointer. */49 #define MULTIBOOT_PTR(mba) ((void *) (uintptr_t) (mba))50 40 51 41 /** Multiboot 32-bit address. */ 52 42 typedef uint32_t mbaddr_t; 53 43 54 /** Multiboot mod ulestructure */44 /** Multiboot mod structure */ 55 45 typedef struct { 56 46 mbaddr_t start; … … 58 48 mbaddr_t string; 59 49 uint32_t reserved; 60 } __attribute__ ((packed)) multiboot_module_t;50 } __attribute__ ((packed)) multiboot_mod_t; 61 51 62 52 /** Multiboot mmap structure */ … … 64 54 uint32_t size; 65 55 e820memmap_t mm_info; 66 } __attribute__ ((packed)) multiboot_memmap_t;56 } __attribute__ ((packed)) multiboot_mmap_t; 67 57 68 58 /** Multiboot information structure */ … … 84 74 85 75 /* ... */ 86 } __attribute__ ((packed)) multiboot_info_t;76 } __attribute__ ((packed)) multiboot_info_t; 87 77 88 78 enum multiboot_info_flags { 89 M ULTIBOOT_INFO_FLAGS_MEM = 0x01,90 M ULTIBOOT_INFO_FLAGS_BOOT = 0x02,91 M ULTIBOOT_INFO_FLAGS_CMDLINE = 0x04,92 M ULTIBOOT_INFO_FLAGS_MODS = 0x08,93 M ULTIBOOT_INFO_FLAGS_SYMS1 = 0x10,94 M ULTIBOOT_INFO_FLAGS_SYMS2 = 0x20,95 M ULTIBOOT_INFO_FLAGS_MMAP = 0x4079 MBINFO_FLAGS_MEM = 0x01, 80 MBINFO_FLAGS_BOOT = 0x02, 81 MBINFO_FLAGS_CMDLINE = 0x04, 82 MBINFO_FLAGS_MODS = 0x08, 83 MBINFO_FLAGS_SYMS1 = 0x10, 84 MBINFO_FLAGS_SYMS2 = 0x20, 85 MBINFO_FLAGS_MMAP = 0x40 96 86 97 87 /* ... */ 98 88 }; 99 89 100 extern void multiboot_extract_command(char *, size_t, const char *); 90 #define MULTIBOOT_LOADER_MAGIC 0x2BADB002 91 92 /** Convert 32-bit multiboot address to a pointer. */ 93 #define MULTIBOOT_PTR(mba) ((void *)(uintptr_t) (mba)) 94 101 95 extern void multiboot_info_parse(uint32_t, const multiboot_info_t *); 102 103 #endif /* __ASM__ */104 96 105 97 #endif
Note:
See TracChangeset
for help on using the changeset viewer.