[CRT] Remove useless #undef abort from process.h
[reactos.git] / ntoskrnl / ke / amd64 / boot.S
index 2c77c51..f4a4b40 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * FILE:            ntoskrnl/ke/i386/boot.S
+ * FILE:            ntoskrnl/ke/amd64/boot.S
  * COPYRIGHT:       See COPYING in the top level directory
  * PURPOSE:         FreeLDR Wrapper Bootstrap Code and Bootstrap Trampoline
  * PROGRAMMER:      Timo Kreuzer (timo.kreuzer@reactos.org)
@@ -31,7 +31,9 @@ PUBLIC KiSwitchToBootStack
     mov ax, HEX(18)
     mov ss, ax
     mov rsp, rcx
-    sub rsp, HEX(300) // FIXME
+    // Note: 8 bytes extra to compensate for the missing return address on
+    // the stack. On function entry the stack is unaligned by 8!!
+    sub rsp, HEX(308) // FIXME
     .ENDPROLOG
 
     jmp KiSystemStartupBootStack