summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--linker.ld4
-rw-r--r--src/arch/i386/boot.s10
2 files changed, 4 insertions, 10 deletions
diff --git a/linker.ld b/linker.ld
index be2b44f..92db365 100644
--- a/linker.ld
+++ b/linker.ld
@@ -20,6 +20,10 @@ SECTIONS
{
*(COMMON)
*(.bss)
+
+ stack_bottom = .;
+ . += 16K;
+ stack_top = .;
}
_kernel_end = (. + 0xFFF) & ~0xFFF; /* aligned to 4K */
}
diff --git a/src/arch/i386/boot.s b/src/arch/i386/boot.s
index 74ec312..2578e87 100644
--- a/src/arch/i386/boot.s
+++ b/src/arch/i386/boot.s
@@ -1,13 +1,3 @@
-/* a lil stack TODO move to linker.ld */
-.section .bss
-.global stack_top
-.type stack_top, @object
-.align 16
-stack_bottom:
-.skip 16384
-stack_top:
-
-
.section .text
.global _start
.type _start, @function