blob: 651f16ac89cb23d97982bbf7c00550fabab8b3aa [file] [log] [blame]
Simon Glassdca92202017-01-16 07:03:48 -07001/*
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 .