mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-23 01:41:59 -05:00
Kernel: Move super_pages section into the bottom 16MB
This ensures that pages returned by MM.allocate_supervisor_physical_page() have a physical address that is in the bottom 16MB and can thus be used by the SB16 driver for DMA. Fixes #8092.
This commit is contained in:
parent
b007898c35
commit
017c5fc7d9
1 changed files with 10 additions and 3 deletions
|
@ -8,10 +8,19 @@ SECTIONS
|
|||
|
||||
start_of_kernel_image = .;
|
||||
|
||||
.text ALIGN(4K) : AT (ADDR(.text) - KERNEL_VIRTUAL_BASE)
|
||||
.boot ALIGN(4K) : AT (ADDR(.boot) - KERNEL_VIRTUAL_BASE)
|
||||
{
|
||||
$<TARGET_OBJECTS:boot>
|
||||
*(.multiboot)
|
||||
}
|
||||
|
||||
.super_pages ALIGN(4K) : AT (ADDR(.super_pages) - KERNEL_VIRTUAL_BASE)
|
||||
{
|
||||
*(.super_pages)
|
||||
}
|
||||
|
||||
.text ALIGN(4K) : AT (ADDR(.text) - KERNEL_VIRTUAL_BASE)
|
||||
{
|
||||
start_of_kernel_text = .;
|
||||
|
||||
start_of_safemem_text = .;
|
||||
|
@ -70,8 +79,6 @@ SECTIONS
|
|||
|
||||
. = ALIGN(4K);
|
||||
*(.heap)
|
||||
. = ALIGN(4K);
|
||||
*(.super_pages)
|
||||
}
|
||||
|
||||
end_of_kernel_image = .;
|
||||
|
|
Loading…
Reference in a new issue