1 /* SPDX-License-Identifier: GPL-2.0-only */
6 * This path is for stages that are post bootblock. The gdt is reloaded
7 * to accommodate platforms that are executing out of CAR. In order to
8 * continue with C code execution one needs to set stack pointer and
9 * clear .bss variables that are stage specific.
12 #if CONFIG(RESET_VECTOR_IN_RAM)
13 #define _STACK_TOP _eearlyram_stack
15 #define _STACK_TOP _ecar_stack
24 .section ".text._start", "ax", @progbits
28 /* Migrate GDT to this text segment */
35 /* reset stack pointer to CAR/EARLYRAM stack */
38 /* clear .bss section as it is not shared */
47 #if ((ENV_SEPARATE_VERSTAGE && CONFIG(VERSTAGE_DEBUG_SPINLOOP)) \
48 || (ENV_ROMSTAGE && CONFIG(ROMSTAGE_DEBUG_SPINLOOP)))
50 /* Wait for a JTAG debugger to break in and set EBX non-zero */
58 andl $0xfffffff0, %esp
59 #if CONFIG(IDT_IN_EVERY_STAGE)
63 #if CONFIG(ASAN_IN_ROMSTAGE)
68 /* Expect to never return. */