Added last part of paging, print_hex function and updated linker script

This commit is contained in:
ice-bit
2019-09-23 17:27:21 +02:00
parent 3eacf3ea21
commit 9b5bf087b5
7 changed files with 168 additions and 23 deletions

33
link.ld
View File

@@ -1,35 +1,28 @@
ENTRY(kernel_loader)
SECTIONS
{
. = 0x00100000;
SECTIONS {
.boot ALIGN (0x1000):
{
*(.multiboot)
}
.text ALIGN (0x1000):
.text 0x100000 :
{
code = .; _code = .; __code = .;
*(.text)
. = ALIGN(4096);
}
.rodata ALIGN (0x1000):
{
*(.rodata*)
}
.data ALIGN (0x1000):
.data :
{
data = .; _data = .; __data = .;
*(.data)
*(.rodata)
. = ALIGN(4096);
}
.bss ALIGN (0x1000):
.bss :
{
*(COMMON)
bss = .; _bss = .; __bss = .;
*(.bss)
. = ALIGN(4096);
}
end = .; _end = .; __end = .;
}
end = .;