2 * Multiboot OS definitions and structures.
\r
5 #ifndef _MULTIBOOT_H_
\r
6 #define _MULTIBOOT_H_
\r
8 #define MULTIBOOT_HEADER_MAGIC 0x1BADB002
\r
9 #define MULTIBOOT_HEADER_FLAGS 0x00010003
\r
10 #define MULTIBOOT_BOOTLOADER_MAGIC 0x2BADB002
\r
12 typedef unsigned long t_32 ;
\r
14 typedef struct multiboot_header
\r
28 } multiboot_header_t;
\r
30 /* Symbol table for a.out. */
\r
31 typedef struct aout_symbol_table
\r
37 } aout_symbol_table_t;
\r
39 /* Section header table for ELF. */
\r
40 typedef struct elf_section_header_table
\r
46 } elf_section_header_table_t;
\r
48 /* Multiboot information. */
\r
49 typedef struct multiboot_info
\r
60 aout_symbol_table_t aout_sym;
\r
61 elf_section_header_table_t elf_sec;
\r
67 /* Module structure. */
\r
68 typedef struct module
\r
76 /* Memory map. Offset 0 is base_addr_low -no size. */
\r
77 typedef struct memory_map
\r
81 t_32 base_addr_high;
\r
87 #define CHECK_FLAG(flags,bit) ((flags) & (1 << (bit)))
\r
89 #endif /* _MULTIBOOT_H_ */
\r