From 8aa1a2d115420b1eb126f69f3547b54d275c3228 Mon Sep 17 00:00:00 2001 From: wdenk Date: Mon, 4 Apr 2005 12:44:11 +0000 Subject: Patch by Steven Scholz, 4 Apr 2005: - remove all references to CONFIG_INIT_CRITICAL for ARM based boards - introduce two new configuration options instead: CONFIG_SKIP_LOWLEVEL_INIT and CONFIG_SKIP_RELOCATE_UBOOT --- cpu/lh7a40x/start.S | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'cpu/lh7a40x') diff --git a/cpu/lh7a40x/start.S b/cpu/lh7a40x/start.S index 5dca77363f..fb748cffc6 100644 --- a/cpu/lh7a40x/start.S +++ b/cpu/lh7a40x/start.S @@ -145,10 +145,11 @@ reset: * we do sys-critical inits only at reboot, * not when booting from ram! */ -#ifdef CONFIG_INIT_CRITICAL +#ifndef CONFIG_SKIP_LOWLEVEL_INIT bl cpu_init_crit #endif +#ifndef CONFIG_SKIP_RELOCATE_UBOOT relocate: /* relocate U-Boot to RAM */ adr r0, _start /* r0 <- current position of code */ ldr r1, _TEXT_BASE /* test if we run from flash or RAM */ @@ -166,6 +167,7 @@ copy_loop: cmp r0, r2 /* until source end addreee [r2] */ blt copy_loop /* a 'ble' here actually copies */ /* four bytes of bss */ +#endif /* CONFIG_SKIP_RELOCATE_UBOOT */ /* Set up the stack */ stack_setup: -- cgit v1.2.3