mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 07:37:46 +00: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 = .;
|
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>
|
$<TARGET_OBJECTS:boot>
|
||||||
*(.multiboot)
|
*(.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_kernel_text = .;
|
||||||
|
|
||||||
start_of_safemem_text = .;
|
start_of_safemem_text = .;
|
||||||
|
@ -70,8 +79,6 @@ SECTIONS
|
||||||
|
|
||||||
. = ALIGN(4K);
|
. = ALIGN(4K);
|
||||||
*(.heap)
|
*(.heap)
|
||||||
. = ALIGN(4K);
|
|
||||||
*(.super_pages)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
end_of_kernel_image = .;
|
end_of_kernel_image = .;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue