2 * FILE: ntoskrnl/ke/i386/boot.S
3 * COPYRIGHT: See COPYING in the top level directory
4 * PURPOSE: FreeLDR Wrapper Bootstrap Code and Bootstrap Trampoline
5 * PROGRAMMER: Timo Kreuzer (timo.kreuzer@reactos.org)
8 /* INCLUDES ******************************************************************/
11 #include <ksamd64.inc>
13 EXTERN KiSystemStartupBootStack:PROC
15 /* GLOBALS *******************************************************************/
18 /* FUNCTIONS *****************************************************************/
24 * KiSwitchToBootStack(
25 * IN ULONG_PTR InitialStack<rcx>)
27 PUBLIC KiSwitchToBootStack
28 .PROC KiSwitchToBootStack
30 /* Setup the new stack */
34 // Note: 8 bytes extra to compensate for the missing return address on
35 // the stack. On function entry the stack is unaligned by 8!!
36 sub rsp, HEX(308) // FIXME
39 jmp KiSystemStartupBootStack