summaryrefslogtreecommitdiff
path: root/src/kernel/arch/i386/multiboot.s
blob: 62bc9fd0a1819e57594d5019503f2c8db093a4f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
.set MAGIC, 0x1BADB002

/* 1<<0  - align modules on page boundaries.
   1<<1  - fill the mem_ fields in multiboot_info
   1<<16 - enable manual addressing */
.set FLAGS,        1<<0 | 1<<16
.set CHECKSUM, -(MAGIC + FLAGS)

.section .multiboot
.align 4
multiboot_header:
	.long MAGIC
	.long FLAGS
	.long CHECKSUM
	.long multiboot_header // header_addr
	.long multiboot_header // load_addr
	.long _data_end        // load_end_addr
	.long _bss_end         // bss_end_addr
	.long _start           // entry_addr