xref: /openbmc/u-boot/arch/x86/cpu/start64.S (revision 2399e401)
1/*
2 * 64-bit x86 Startup Code
3 *
4 * (C) Copyright 216 Google, Inc
5 * Written by Simon Glass <sjg@chromium.org>
6 *
7 * SPDX-License-Identifier:	GPL-2.0+
8 */
9
10#include <config.h>
11
12.section .text
13.code64
14.globl _start
15.type _start, @function
16_start:
17	/* Set up memory using the existing stack */
18	mov	%rsp, %rdi
19	call	board_init_f_alloc_reserve
20	mov	%rax, %rsp
21
22	call	board_init_f_init_reserve
23
24	call	board_init_f
25	call	board_init_f_r
26
27	/* Should not return here */
28	jmp	.
29