mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-11 13:56:30 +00:00
770a8eef3e
Introduce a minimal Xen guest board running as a virtual machine under Xen Project's hypervisor [1], [2]. Part of the code is ported from Xen mini-os and also uses work initially done by different authors from NXP: please see relevant files for their copyrights. [1] https://xenbits.xen.org [2] https://wiki.xenproject.org/ Signed-off-by: Andrii Anisov <andrii_anisov@epam.com> Signed-off-by: Oleksandr Andrushchenko <oleksandr_andrushchenko@epam.com> Signed-off-by: Anastasiia Lukianenko <anastasiia_lukianenko@epam.com>
33 lines
577 B
ArmAsm
33 lines
577 B
ArmAsm
/* SPDX-License-Identifier: GPL-2.0+
|
|
*
|
|
* (C) 2017 NXP
|
|
* (C) 2020 EPAM Systems Inc.
|
|
*/
|
|
|
|
#include <config.h>
|
|
|
|
.align 8
|
|
.global rom_pointer
|
|
rom_pointer:
|
|
.space 32
|
|
|
|
/*
|
|
* Routine: save_boot_params (called after reset from start.S)
|
|
*/
|
|
|
|
.global save_boot_params
|
|
save_boot_params:
|
|
/* The firmware provided ATAG/FDT address can be found in r2/x0 */
|
|
adr x1, rom_pointer
|
|
stp x0, x2, [x1], #16
|
|
stp x3, x4, [x1], #16
|
|
|
|
/* Returns */
|
|
b save_boot_params_ret
|
|
|
|
.global restore_boot_params
|
|
restore_boot_params:
|
|
adr x1, rom_pointer
|
|
ldp x0, x2, [x1], #16
|
|
ldp x3, x4, [x1], #16
|
|
ret
|