]> git.sur5r.net Git - u-boot/commitdiff
load_addr: move to common env code
authorMike Frysinger <vapier@gentoo.org>
Tue, 21 Dec 2010 19:08:27 +0000 (14:08 -0500)
committerWolfgang Denk <wd@denx.de>
Sun, 9 Jan 2011 17:02:06 +0000 (18:02 +0100)
Rather than keep the load_addr definition with the bootm code (which
just happens to use this), move it to the common env code.  This way
we can disable bootm support completely while retaining load_addr
usage with many other commands.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
common/cmd_bootm.c
common/cmd_nvedit.c

index 9873ee7de8822cba4838e732df3f3680c9c28cf3..18019d65263ca55086f8b2a412cd0e0de9fcf36f 100644 (file)
@@ -156,7 +156,6 @@ static boot_os_fn *boot_os[] = {
 #endif
 };
 
-ulong load_addr = CONFIG_SYS_LOAD_ADDR;        /* Default Load Address */
 static bootm_headers_t images;         /* pointers to os/initrd/fdt images */
 
 /* Allow for arch specific config before we boot */
index f8c79763bf97a5b270257c0f24beda5e554397c7..fb69c242f1c890c5febd75a92afa9b304fe42585 100644 (file)
@@ -76,6 +76,8 @@ SPI_FLASH|MG_DISK|NVRAM|MMC|NOWHERE}
  */
 #define        MAX_ENV_SIZE    (1 << 20)       /* 1 MiB */
 
+ulong load_addr = CONFIG_SYS_LOAD_ADDR;        /* Default Load Address */
+
 /*
  * Table with supported baudrates (defined in config_xyz.h)
  */