aboutsummaryrefslogtreecommitdiff
path: root/src/arch/aarch64/boot_flow/linux.S
blob: 79ac380461ccc800283684436d8c945ecc68f681 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/*
 * Copyright 2019 The Hafnium Authors.
 *
 * Use of this source code is governed by a BSD-style
 * license that can be found in the LICENSE file or at
 * https://opensource.org/licenses/BSD-3-Clause.
 */

.section .init.plat_boot_flow_hook, "ax"
.global plat_boot_flow_hook
plat_boot_flow_hook:
	/* Save the FDT pointer to a global variable. */
	adrp x25, plat_boot_flow_fdt_addr
	add x25, x25, :lo12:plat_boot_flow_fdt_addr
	str x0, [x25]
	ret