diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2011-09-26 18:55:07 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2011-09-27 10:27:18 +0200 |
commit | d01070c8af7588337fd79bc37d63a8de6435d771 (patch) | |
tree | c52187758b7e99841cd4cb5c4c6f30131364a105 /common/startup.c | |
parent | bbbfb9f4f8a4951137ccd8495b97dfee927e7d80 (diff) | |
download | barebox-d01070c8af7588337fd79bc37d63a8de6435d771.tar.gz barebox-d01070c8af7588337fd79bc37d63a8de6435d771.tar.xz |
remove EARLY_INIT and EARLY_CONSOLE support
Bitrotted over time and nearly unused, so remove it.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common/startup.c')
-rw-r--r-- | common/startup.c | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/common/startup.c b/common/startup.c index 7a1b6024f4..13783fb27a 100644 --- a/common/startup.c +++ b/common/startup.c @@ -38,7 +38,6 @@ #include <fs.h> #include <linux/stat.h> #include <environment.h> -#include <reloc.h> #include <asm-generic/memory_layout.h> #include <asm/sections.h> @@ -62,23 +61,6 @@ static void display_meminfo(void) #endif } -#ifdef CONFIG_HAS_EARLY_INIT - -#define EARLY_INITDATA (CFG_INIT_RAM_ADDR + CFG_INIT_RAM_SIZE \ - - CONFIG_EARLY_INITDATA_SIZE) - -void *init_data_ptr = (void *)EARLY_INITDATA; - -void early_init (void) -{ - /* copy the early initdata segment to early init RAM */ - memcpy((void *)EARLY_INITDATA, RELOC(&__early_init_data_begin), - (ulong)&__early_init_data_end - - (ulong)&__early_init_data_begin); -} - -#endif /* CONFIG_HAS_EARLY_INIT */ - #ifdef CONFIG_DEFAULT_ENVIRONMENT #include <generated/barebox_default_env.h> @@ -112,16 +94,6 @@ void start_barebox (void) struct stat s; #endif -#ifdef CONFIG_HAS_EARLY_INIT - /* We are running from RAM now, copy early initdata from - * early RAM to RAM - */ - memcpy(&__early_init_data_begin, init_data_ptr, - (ulong)&__early_init_data_end - - (ulong)&__early_init_data_begin); - init_data_ptr = &__early_init_data_begin; -#endif /* CONFIG_HAS_EARLY_INIT */ - for (initcall = __barebox_initcalls_start; initcall < __barebox_initcalls_end; initcall++) { PUTS_LL("<<"); |