Kernel: Rename .boot_bss to .super_pages to better reflect what it is

This also removes the section attribute for kernel_base which had no
effect because the section wasn't included in the linker script.
This commit is contained in:
Gunnar Beutner 2021-07-19 18:52:01 +02:00 committed by Andreas Kling
parent be795d5812
commit 5188185374
Notes: sideshowbarker 2024-07-18 08:41:53 +09:00
4 changed files with 8 additions and 8 deletions

View File

@ -12,7 +12,7 @@
extern "C" PhysicalAddress start_of_prekernel_image;
extern "C" PhysicalAddress end_of_prekernel_image;
extern "C" __attribute__((section(".boot_bss"))) FlatPtr kernel_base;
extern "C" FlatPtr kernel_base;
#if ARCH(X86_64)
extern "C" u32 gdt64ptr;
extern "C" u16 code64_sel;

View File

@ -109,7 +109,7 @@ static Processor s_bsp_processor; // global but let's keep it "private"
extern "C" {
PhysicalAddress start_of_prekernel_image;
PhysicalAddress end_of_prekernel_image;
__attribute__((section(".boot_bss"))) FlatPtr kernel_base;
FlatPtr kernel_base;
#if ARCH(X86_64)
PhysicalAddress boot_pml4t;
#endif

View File

@ -4,7 +4,7 @@ KERNEL_VIRTUAL_BASE = 0x2000000000;
PHDRS
{
boot_bss PT_LOAD ;
super_pages PT_LOAD ;
text PT_LOAD ;
data PT_LOAD ;
bss PT_LOAD ;
@ -17,10 +17,10 @@ SECTIONS
start_of_kernel_image = .;
.boot_bss ALIGN(4K) (NOLOAD) : AT (ADDR(.boot_bss) - KERNEL_VIRTUAL_BASE)
.super_pages ALIGN(4K) (NOLOAD) : AT (ADDR(.super_pages) - KERNEL_VIRTUAL_BASE)
{
*(.super_pages)
} :boot_bss
} :super_pages
.text ALIGN(4K) : AT (ADDR(.text) - KERNEL_VIRTUAL_BASE)
{

View File

@ -4,7 +4,7 @@ KERNEL_VIRTUAL_BASE = 0xc0000000;
PHDRS
{
boot_bss PT_LOAD ;
super_pages PT_LOAD ;
text PT_LOAD ;
data PT_LOAD ;
bss PT_LOAD ;
@ -17,10 +17,10 @@ SECTIONS
start_of_kernel_image = .;
.boot_bss ALIGN(4K) (NOLOAD) : AT (ADDR(.boot_bss) - KERNEL_VIRTUAL_BASE)
.super_pages ALIGN(4K) (NOLOAD) : AT (ADDR(.super_pages) - KERNEL_VIRTUAL_BASE)
{
*(.super_pages)
} :boot_bss
} :super_pages
.text ALIGN(4K) : AT (ADDR(.text) - KERNEL_VIRTUAL_BASE)
{