x86_64: initialise memblock using e820

This commit is contained in:
2023-02-05 10:50:13 +00:00
parent 21907010bd
commit b9b3794aee
5 changed files with 111 additions and 9 deletions

View File

@@ -4,19 +4,22 @@ KERNEL_LMA = 1M;
KERNEL_VMA = 0xFFFFFFFF80000000;
SECTIONS {
. = KERNEL_LMA;
. = KERNEL_LMA;
.boot.text ALIGN(4K) : {
*(.boot.text)
*(.boot.rodata)
}
.boot.text ALIGN(4K) : {
*(.boot.text)
*(.boot.rodata)
}
.boot.bss ALIGN(4K) : {
*(.boot.bss)
}
.boot.bss ALIGN(4K) : {
*(.boot.bss)
}
. += KERNEL_VMA;
__start = .;
__pstart = . - KERNEL_VMA;
.text ALIGN(4K) : AT(ADDR(.text) - KERNEL_VMA)
{
*(.text)
@@ -47,7 +50,8 @@ SECTIONS {
*(COMMON)
}
_end = .;
__end = .;
__pend = . - KERNEL_VMA;
/DISCARD/ :
{