diff options
| author | Felix Morgner <felix.morgner@ost.ch> | 2025-12-03 14:02:07 +0100 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@ost.ch> | 2025-12-03 14:02:07 +0100 |
| commit | a08847ded5fba25859e7a3ad06ae3fed342d4d6a (patch) | |
| tree | 607addb6a707fc39b39eb69779467841fc6d7356 /arch/x86_64/src/boot/boot32.S | |
| parent | 9331afdcbbe95bc1bd79d657f0d7c5b91a19a375 (diff) | |
| download | teachos-a08847ded5fba25859e7a3ad06ae3fed342d4d6a.tar.xz teachos-a08847ded5fba25859e7a3ad06ae3fed342d4d6a.zip | |
x86_64/boot: move stack to higher half
Diffstat (limited to 'arch/x86_64/src/boot/boot32.S')
| -rw-r--r-- | arch/x86_64/src/boot/boot32.S | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/arch/x86_64/src/boot/boot32.S b/arch/x86_64/src/boot/boot32.S index 27eed4d..79b3ec7 100644 --- a/arch/x86_64/src/boot/boot32.S +++ b/arch/x86_64/src/boot/boot32.S @@ -27,12 +27,9 @@ page_maps_size = page_maps_end - page_maps_start .section .boot_stack, "aw", @nobits .align 16 -.global stack_size -.global stack_bottom - -stack_bottom: .skip 1 << 20 -stack_top: -stack_size = stack_top - stack_bottom +early_stack_bottom: .skip 1 << 8 +early_stack_top: +early_stack_size = early_stack_top - early_stack_bottom /** * @brief Constants for the bootstrapping process. @@ -122,7 +119,7 @@ _start: 0: pop %esi - lea (stack_top - 0b)(%esi), %ecx + lea (early_stack_top - 0b)(%esi), %ecx mov %ecx, %esp mov %esp, %ebp |
