summaryrefslogtreecommitdiffstats
path: root/common/startup.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2009-12-15 09:11:09 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2009-12-15 10:18:30 +0100
commita3ffa97f40dc81f2d6b07ee964f2340fe0c1ba97 (patch)
tree7a9076c1a20df00baeadca9a07d4c1f5cd0611e2 /common/startup.c
parentcaa5cec7b1c93d660aa89d24eb160ab18e4eb628 (diff)
downloadbarebox-a3ffa97f40dc81f2d6b07ee964f2340fe0c1ba97.tar.gz
barebox-a3ffa97f40dc81f2d6b07ee964f2340fe0c1ba97.tar.xz
rename U-Boot-v2 project to barebox
This has been done with the following script: find -path ./.git -prune -o -type f -print0 | xargs -0 -r sed -i \ -e 's/u2boot/barebox/g' \ -e 's/U2Boot/barebox/g' \ -e 's/U-boot V2/barebox/g' \ -e 's/u-boot v2/barebox/g' \ -e 's/U-Boot V2/barebox/g' \ -e 's/U-Boot-v2/barebox/g' \ -e 's/U_BOOT/BAREBOX/g' \ -e 's/UBOOT/BAREBOX/g' \ -e 's/uboot/barebox/g' \ -e 's/u-boot/barebox/g' \ -e 's/u_boot/barebox/g' \ -e 's/U-Boot/barebox/g' \ -e 's/U-boot/barebox/g' \ -e 's/U-BOOT/barebox/g' find -path ./.git -prune -o \( -name "*u-boot*" -o -name "*uboot*" -o -name "*u_boot*" \) -print0 | \ xargs -0 -r rename 's/u[-_]?boot/barebox/' It needs some manual fixup following in the next patch Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common/startup.c')
-rw-r--r--common/startup.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/common/startup.c b/common/startup.c
index e40759d2c6..6dca2702a9 100644
--- a/common/startup.c
+++ b/common/startup.c
@@ -27,7 +27,7 @@
/**
* @file
- * @brief Main entry into the C part of U-Boot-v2
+ * @brief Main entry into the C part of barebox
*/
#include <common.h>
#include <init.h>
@@ -41,8 +41,8 @@
#include <reloc.h>
#include <asm-generic/memory_layout.h>
-extern initcall_t __u_boot_initcalls_start[], __u_boot_early_initcalls_end[],
- __u_boot_initcalls_end[];
+extern initcall_t __barebox_initcalls_start[], __barebox_early_initcalls_end[],
+ __barebox_initcalls_end[];
static void display_meminfo(void)
{
@@ -50,8 +50,8 @@ static void display_meminfo(void)
ulong mend = mem_malloc_end();
ulong msize = mend - mstart + 1;
- debug("U-Boot code : 0x%08lX -> 0x%08lX BSS: -> 0x%08lX\n",
- _u_boot_start, _bss_start, _bss_end);
+ debug("barebox code : 0x%08lX -> 0x%08lX BSS: -> 0x%08lX\n",
+ _barebox_start, _bss_start, _bss_end);
printf("Malloc space: 0x%08lx -> 0x%08lx (size %s)\n",
mstart, mend, size_human_readable(msize));
#ifdef CONFIG_ARM
@@ -79,7 +79,7 @@ void early_init (void)
#endif /* CONFIG_HAS_EARLY_INIT */
#ifdef CONFIG_DEFAULT_ENVIRONMENT
-#include <uboot_default_env.h>
+#include <barebox_default_env.h>
static struct memory_platform_data default_env_platform_data = {
.name = "defaultenv",
@@ -110,7 +110,7 @@ static int mount_root(void)
}
fs_initcall(mount_root);
-void start_uboot (void)
+void start_barebox (void)
{
initcall_t *initcall;
int result;
@@ -126,8 +126,8 @@ void start_uboot (void)
init_data_ptr = &__early_init_data_begin;
#endif /* CONFIG_HAS_EARLY_INIT */
- for (initcall = __u_boot_initcalls_start;
- initcall < __u_boot_initcalls_end; initcall++) {
+ for (initcall = __barebox_initcalls_start;
+ initcall < __barebox_initcalls_end; initcall++) {
PUTHEX_LL(*initcall);
PUTC_LL('\n');
result = (*initcall)();
@@ -167,11 +167,11 @@ void hang (void)
for (;;);
}
-/* Everything needed to cleanly shutdown U-Boot.
+/* Everything needed to cleanly shutdown barebox.
* Should be called before starting an OS to get
* the devices into a clean state
*/
-void shutdown_uboot(void)
+void shutdown_barebox(void)
{
devices_shutdown();
}