U-Boot: PPC: Include asm macros header

Use the macros from the header instead of hardcoding.
Add FUNCTION_END() call to help gdb.
This commit is contained in:
François Revol
2013-03-09 03:22:41 +01:00
parent 80859e45b4
commit 6e809753b1
@@ -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 <asm_defs.h>
/* 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)