1
0
mirror of https://github.com/taigrr/gopher-os synced 2025-01-18 04:43:13 -08:00

Pass kernel start/end physical address to Kmain

This commit is contained in:
Achilleas Anagnostopoulos
2017-06-17 08:18:07 +01:00
parent ad0bf0a4ca
commit c81fd8b758
4 changed files with 14 additions and 3 deletions

View File

@@ -7,6 +7,8 @@ SECTIONS {
* but load it at physical address 1M */
. = VMA;
_kernel_start = .;
.text BLOCK(4K) : AT(ADDR(.text) - PAGE_OFFSET)
{
/* The multiboot header must be present in the first 4K of the kernel
@@ -36,4 +38,6 @@ SECTIONS {
*(COMMON)
*(.bss)
}
_kernel_end = ALIGN(4K);
}