1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * 64-bit x86 Startup Code
5 * Copyright 2019 Google, Inc
6 * Written by Simon Glass <sjg@chromium.org>
14 .type _start, @function
16 /* Set up memory using the existing stack */
18 call board_init_f_alloc_reserve
21 call board_init_f_init_reserve
27 /* Should not return here */
30 .globl board_init_f_r_trampoline64
31 .type board_init_f_r_trampoline64, @function
32 board_init_f_r_trampoline64:
34 * SDRAM has been initialised, U-Boot code has been copied into
35 * RAM, BSS has been cleared and relocation adjustments have been
36 * made. It is now time to jump into the in-RAM copy of U-Boot
38 * %eax = Address of top of new stack
41 /* Stack grows down from top of SDRAM */
44 /* New gd is in rdi */
46 /* Re-enter U-Boot by calling board_init_f_r() */