Patrick Rudolph | cb42bc8 | 2024-10-23 15:20:08 +0200 | [diff] [blame] | 1 | /* 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 |
| 15 | save_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 |