blob: c997721af95e9b8da6ae44cca773603627f4a160 [file] [log] [blame]
Patrick Rudolphcb42bc82024-10-23 15:20:08 +02001/* SPDX-License-Identifier: GPL-2.0+ */
2/*
3 * (C) Copyright 2016
4 * Cédric Schieli <cschieli@gmail.com>
5 */
6
7#include <config.h>
8
9/*
10 * Routine: save_boot_params (called after reset from start.S)
11 * Description: save ATAG/FDT address provided by the firmware at boot time
12 */
13
14.global save_boot_params
15save_boot_params:
16 /* The firmware provided ATAG/FDT address can be found in r2/x0 */
17 adr x8, fw_dtb_pointer
18 str x0, [x8]
19
20
21 /* Returns */
22 b save_boot_params_ret