1 /*
2  * (C) Copyright 2017 NVIDIA Corporation <www.nvidia.com>
3  *
4  * Derived from Linux kernel v4.14 files:
5  *
6  * arch/arm64/include/asm/assembler.h:
7  * Based on arch/arm/include/asm/assembler.h, arch/arm/mm/proc-macros.S
8  * Copyright (C) 1996-2000 Russell King
9  * Copyright (C) 2012 ARM Ltd.
10  *
11  * arch/arm64/kernel/head.S:
12  * Based on arch/arm/kernel/head.S
13  * Copyright (C) 1994-2002 Russell King
14  * Copyright (C) 2003-2012 ARM Ltd.
15  * Authors:	Catalin Marinas <catalin.marinas@arm.com>
16  *		Will Deacon <will.deacon@arm.com>
17  *
18  * arch/arm64/kernel/image.h:
19  * Copyright (C) 2014 ARM Ltd.
20  *
21  * SPDX-License-Identifier:     GPL-2.0
22  */
23 
24 	/*
25 	 * Emit a 64-bit absolute little endian symbol reference in a way that
26 	 * ensures that it will be resolved at build time, even when building a
27 	 * PIE binary. This requires cooperation from the linker script, which
28 	 * must emit the lo32/hi32 halves individually.
29 	 */
30 	.macro	le64sym, sym
31 	.long	\sym\()_lo32
32 	.long	\sym\()_hi32
33 	.endm
34 
35 .globl _start
36 _start:
37 	/*
38 	 * DO NOT MODIFY. Image header expected by Linux boot-loaders.
39 	 */
40 	b	reset				/* branch to kernel start, magic */
41 	.long	0				/* reserved */
42 	le64sym	_kernel_offset_le		/* Image load offset from start of RAM, little-endian */
43 	le64sym	_kernel_size_le			/* Effective size of kernel image, little-endian */
44 	le64sym	_kernel_flags_le		/* Informative flags, little-endian */
45 	.quad	0				/* reserved */
46 	.quad	0				/* reserved */
47 	.quad	0				/* reserved */
48 	.ascii	"ARM\x64"			/* Magic number */
49 	.long	0				/* reserved */
50