1
0
mirror of https://xff.cz/git/u-boot/ synced 2025-09-02 09:12:08 +02:00

Nokia RX-51: Use ENTRY/ENDPROC for save_boot_params

ENTRY/ENDPROC macros from linux/linkage.h will make code more readable and
also will properly mark assembly symbol in ELF binary as function symbol.

Signed-off-by: Pali Rohár <pali@kernel.org>
This commit is contained in:
Pali Rohár
2022-11-24 00:45:00 +01:00
committed by Tom Rini
parent 0494ab37c2
commit 544071ac4a

View File

@@ -5,6 +5,7 @@
*/ */
#include <config.h> #include <config.h>
#include <linux/linkage.h>
kernoffs: /* offset of kernel image from this address */ kernoffs: /* offset of kernel image from this address */
.word . - CONFIG_TEXT_BASE - KERNEL_OFFSET .word . - CONFIG_TEXT_BASE - KERNEL_OFFSET
@@ -29,8 +30,7 @@ z_magic: /* LINUX_ARM_ZIMAGE_MAGIC */
* Description: Copy attached kernel to address KERNEL_ADDRESS * Description: Copy attached kernel to address KERNEL_ADDRESS
*/ */
.global save_boot_params ENTRY(save_boot_params)
save_boot_params:
/* /*
* Copy valid attached kernel to absolute address KERNEL_ADDRESS * Copy valid attached kernel to absolute address KERNEL_ADDRESS
@@ -93,3 +93,5 @@ skip_copy:
/* Returns */ /* Returns */
b save_boot_params_ret b save_boot_params_ret
ENDPROC(save_boot_params)