mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-19 11:18:28 +00:00
6db8e17892
nvtboot_boot_x0 is a 64-bit variable and hence must be 64-bit aligned. So far this has happened by accident! Fix the code so this is guaranteed. This fixes the following build error: ... relocation truncated to fit: R_AARCH64_LDST64_ABS_LO12_NC against symbol `nvtboot_boot_x0' ... Signed-off-by: Stephen Warren <swarren@nvidia.com> Signed-off-by: Tom Warren <twarren@nvidia.com>
21 lines
379 B
ArmAsm
21 lines
379 B
ArmAsm
/*
|
|
* Save nvtboot-related boot-time CPU state
|
|
*
|
|
* (C) Copyright 2015-2016 NVIDIA Corporation <www.nvidia.com>
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0+
|
|
*/
|
|
|
|
#include <config.h>
|
|
#include <linux/linkage.h>
|
|
|
|
.align 8
|
|
.globl nvtboot_boot_x0
|
|
nvtboot_boot_x0:
|
|
.dword 0
|
|
|
|
ENTRY(save_boot_params)
|
|
adr x8, nvtboot_boot_x0
|
|
str x0, [x8]
|
|
b save_boot_params_ret
|
|
ENDPROC(save_boot_params)
|