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>
*/
#include <config.h>
+#include <linux/linkage.h>
kernoffs: /* offset of kernel image from this address */
.word . - CONFIG_TEXT_BASE - KERNEL_OFFSET
* Description: Copy attached kernel to address KERNEL_ADDRESS
*/
-.global save_boot_params
-save_boot_params:
+ENTRY(save_boot_params)
/*
* Copy valid attached kernel to absolute address KERNEL_ADDRESS
/* Returns */
b save_boot_params_ret
+
+ENDPROC(save_boot_params)