summaryrefslogtreecommitdiff
path: root/stage2
diff options
context:
space:
mode:
Diffstat (limited to 'stage2')
-rw-r--r--stage2/main.asm4
1 files changed, 4 insertions, 0 deletions
diff --git a/stage2/main.asm b/stage2/main.asm
index 7eec56d..3cfb5d2 100644
--- a/stage2/main.asm
+++ b/stage2/main.asm
@@ -44,4 +44,8 @@ long_mode:
mov gs, ax
mov ss, ax
+ ; align stack
+ and rsp, ~(0x0f)
+ sub rsp, 8
+
; kernel begins here