From 0644d1da7f547ba1b49ca95553ba65695ce9a3c3 Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Tue, 26 Nov 2013 10:17:00 +0100 Subject: ARM: Make ENTRY_FUNCTION more robust An entry function should begin with a exception header. For this to work properly the entry function should not contain any code which gcc might put before the header. To make this sure change the ENTRY_FUNCTION macro so that it generates one function which only contains the exception header and a second function which contains the original body of the entry function. Signed-off-by: Sascha Hauer --- arch/arm/boards/gk802/lowlevel.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'arch/arm/boards/gk802/lowlevel.c') diff --git a/arch/arm/boards/gk802/lowlevel.c b/arch/arm/boards/gk802/lowlevel.c index 95b218d2d2..e159ddbb23 100644 --- a/arch/arm/boards/gk802/lowlevel.c +++ b/arch/arm/boards/gk802/lowlevel.c @@ -5,12 +5,10 @@ extern char __dtb_imx6q_gk802_start[]; -ENTRY_FUNCTION(start_imx6_gk802)(void) +ENTRY_FUNCTION(start_imx6_gk802, r0, r1, r2) { uint32_t fdt; - __barebox_arm_head(); - arm_cpu_lowlevel_init(); fdt = (uint32_t)__dtb_imx6q_gk802_start - get_runtime_offset(); -- cgit v1.2.3