-
Notifications
You must be signed in to change notification settings - Fork 12
/
multiboot.h
37 lines (33 loc) · 800 Bytes
/
multiboot.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#ifndef MULTIBOOT_H
#define MULTIBOOT_H
//! The symbol table for a.out format.
typedef struct {
unsigned long tab_size;
unsigned long str_size;
unsigned long address;
unsigned long reserved;
} aout_symbol_table_t;
//! The section header table for ELF format.
typedef struct {
unsigned long num;
unsigned long size;
unsigned long address;
unsigned long shndx;
} elf_section_header_table_t;
struct multiboot_info
{
unsigned long flags;
unsigned long mem_lower;
unsigned long mem_upper;
unsigned long boot_device;
unsigned long cmdline;
unsigned long mods_addr;
union
{
aout_symbol_table_t aout_sym_t;
elf_section_header_table_t elf_sec_t;
} u;
unsigned long mmap_length;
unsigned long mmap_addr;
};
#endif