Unifying the Lunaix's Physical Memory Model (#28)
[lunaix-os.git] / lunaix-os / link / linker.ld
index a409542624fbe546ab7907b7d4840a1c6f25b391..93c9693961b039b2678a1aff7a9898d7dfe0bba4 100644 (file)
@@ -2,6 +2,7 @@ ENTRY(start_)
 
 SECTIONS {
     . = 0x100000;
 
 SECTIONS {
     . = 0x100000;
+    __kboot_start = .;
 
     /* 这里是我们的高半核初始化代码段和数据段 */
     .boot.text BLOCK(4K) : 
 
     /* 这里是我们的高半核初始化代码段和数据段 */
     .boot.text BLOCK(4K) : 
@@ -29,7 +30,7 @@ SECTIONS {
     {
         *(.boot.rodata)
     }
     {
         *(.boot.rodata)
     }
-    __kexec_boot_end = ALIGN(4K);
+    __kboot_end = ALIGN(4K);
 
     /* ---- boot end ---- */
 
 
     /* ---- boot end ---- */
 
@@ -184,5 +185,14 @@ SECTIONS {
         *(.bss)
     }
 
         *(.bss)
     }
 
+    .bss.kstack BLOCK(4K) : AT ( ADDR(.bss.kstack) - 0xC0000000)
+    {
+        PROVIDE(__bsskstack_start = .);
+
+        *(.bss.kstack)
+
+        PROVIDE(__bsskstack_end = .);
+    }
+
     __kexec_end = ALIGN(4K);
 }
\ No newline at end of file
     __kexec_end = ALIGN(4K);
 }
\ No newline at end of file