Skip to content

Commit bcc5bbc

Browse files
committed
Fix
1 parent 5dea49a commit bcc5bbc

2 files changed

Lines changed: 8 additions & 3 deletions

File tree

linker.ld

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,16 @@ ENTRY(_start)
22

33
SECTIONS
44
{
5+
/* The kernel starts at 1MB */
56
. = 1M;
6-
kernel_start = .;
77

8-
.text BLOCK(4K) : ALIGN(4K)
8+
.multiboot BLOCK(4K) : ALIGN(4K)
99
{
10-
/* MUST be at the very top of the binary */
1110
KEEP(*(.multiboot))
11+
}
12+
13+
.text BLOCK(4K) : ALIGN(4K)
14+
{
1215
*(.text)
1316
}
1417

src/boot.asm

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
[bits 32]
2+
13
section .multiboot
24
align 4
35
dd 0x1BADB002 ; Magic number

0 commit comments

Comments
 (0)