mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-09-13 00:03:26 +09:00
![Stephen Warren](/assets/img/avatar_default.png)
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>
22 lines
379 B
ArmAsm
22 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)
|