mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 23:07:35 +00:00
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:
parent
be795d5812
commit
5188185374
4 changed files with 8 additions and 8 deletions
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue