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