FreeNOS
IntelBoot.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2009 Niek Linnenbank
3 *
4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 3 of the License, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
16 */
17
18#ifndef __LIBARCH_INTEL_BOOT_H
19#define __LIBARCH_INTEL_BOOT_H
20
33#define MULTIBOOT_HEADER_MAGIC 0x1BADB002
34
36#define MULTIBOOT_HEADER_FLAGS 0x00000003
37
39#define MULTIBOOT_HEADER_SIZE 52
40
42#define MULTIBOOT_BOOTLOADER_MAGIC 0x2BADB002
43
50/* Do not include in assembler source. */
51#ifndef __ASSEMBLER__
52
53#include <Types.h>
54
77
89
112
124
140
143
147extern C void bootEntry16();
148
152extern C void bootEntry32();
153
163extern C void multibootEntry();
164
168extern C void multibootToCoreInfo(MultibootInfo *info);
169
176#endif /* !__ASSEMBLER__ */
177#endif /* __LIBARCH_INTEL_BOOT_H */
MultibootInfo multibootInfo
Fill in by the early boot process.
C void bootEntry16()
Entry point in 16-bit real mode.
C void multibootEntry()
Entry point from GRUB multiboot.
C void bootEntry32()
Entry point in 32-bit protected mode.
C void multibootToCoreInfo(MultibootInfo *info)
Convert multiboot info to a CoreInfo struct.
Definition IntelBoot.cpp:25
unsigned int u32
Unsigned 32-bit number.
Definition Types.h:53
#define C
Used to define external C functions.
Definition Macros.h:134
The symbol table for a.out.
Definition IntelBoot.h:70
The section header table for ELF.
Definition IntelBoot.h:82
The Multiboot information.
Definition IntelBoot.h:94
ElfSectionHeaderTable elf
Definition IntelBoot.h:106
AoutSymbolTable aout
Definition IntelBoot.h:105
The MultiBoot memory map.
Definition IntelBoot.h:131
The module class.
Definition IntelBoot.h:117