From 6e809753b1678305bcdef617e820be6353791e0f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Revol?= Date: Sat, 9 Mar 2013 03:22:41 +0100 Subject: [PATCH] U-Boot: PPC: Include asm macros header Use the macros from the header instead of hardcoding. Add FUNCTION_END() call to help gdb. --- src/system/boot/platform/u-boot/arch/ppc/arch_start_kernel.S | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/system/boot/platform/u-boot/arch/ppc/arch_start_kernel.S b/src/system/boot/platform/u-boot/arch/ppc/arch_start_kernel.S index 2156e1d7a8..59d16fe9d0 100644 --- a/src/system/boot/platform/u-boot/arch/ppc/arch_start_kernel.S +++ b/src/system/boot/platform/u-boot/arch/ppc/arch_start_kernel.S @@ -3,7 +3,8 @@ * All rights reserved. Distributed under the terms of the MIT License. */ -#define FUNCTION(x) .global x; .type x,@function; x +#include + /* status_t arch_start_kernel(struct kernel_args *kernelArgs, addr_t kernelEntry, addr_t kernelStackTop); @@ -46,4 +47,5 @@ FUNCTION(arch_start_kernel): mtlr %r0 addi %r1, %r1, 32 blr +FUNCTION_END(arch_start_kernel)