diff options
| author | Stefan Roese <sr@denx.de> | 2008-10-21 11:43:08 +0200 | 
|---|---|---|
| committer | Stefan Roese <sr@denx.de> | 2008-10-21 11:43:08 +0200 | 
| commit | f61f1e150c84f5b9347fca79a4bc5f2286c545d2 (patch) | |
| tree | ab90f076f18e56b2b3e8c9375b95917daa78c1d9 /lib_m68k/bootm.c | |
| parent | ec081c2c190148b374e86a795fb6b1c49caeb549 (diff) | |
| parent | f82642e33899766892499b163e60560fbbf87773 (diff) | |
| download | olio-uboot-2014.01-f61f1e150c84f5b9347fca79a4bc5f2286c545d2.tar.xz olio-uboot-2014.01-f61f1e150c84f5b9347fca79a4bc5f2286c545d2.zip  | |
Merge branch 'master' of /home/stefan/git/u-boot/u-boot
Diffstat (limited to 'lib_m68k/bootm.c')
| -rw-r--r-- | lib_m68k/bootm.c | 33 | 
1 files changed, 18 insertions, 15 deletions
diff --git a/lib_m68k/bootm.c b/lib_m68k/bootm.c index 6504cc917..c52dd2fba 100644 --- a/lib_m68k/bootm.c +++ b/lib_m68k/bootm.c @@ -43,28 +43,16 @@ DECLARE_GLOBAL_DATA_PTR;  static ulong get_sp (void);  static void set_clocks_in_mhz (bd_t *kbd); -int do_bootm_linux(int flag, int argc, char *argv[], bootm_headers_t *images) +void arch_lmb_reserve(struct lmb *lmb)  {  	ulong sp; -	ulong rd_len; -	ulong initrd_start, initrd_end; -	int ret; - -	ulong cmd_start, cmd_end; -	ulong bootmap_base; -	bd_t  *kbd; -	void  (*kernel) (bd_t *, ulong, ulong, ulong, ulong); -	struct lmb *lmb = &images->lmb; - -	bootmap_base = getenv_bootm_low(); -  	/*  	 * Booting a (Linux) kernel image  	 *  	 * Allocate space for command line and board info - the  	 * address should be as high as possible within the reach of -	 * the kernel (see CFG_BOOTMAPSZ settings), but in unused +	 * the kernel (see CONFIG_SYS_BOOTMAPSZ settings), but in unused  	 * memory, which means far enough below the current stack  	 * pointer.  	 */ @@ -73,7 +61,22 @@ int do_bootm_linux(int flag, int argc, char *argv[], bootm_headers_t *images)  	/* adjust sp by 1K to be safe */  	sp -= 1024; -	lmb_reserve(lmb, sp, (CFG_SDRAM_BASE + gd->ram_size - sp)); +	lmb_reserve(lmb, sp, (CONFIG_SYS_SDRAM_BASE + gd->ram_size - sp)); +} + +int do_bootm_linux(int flag, int argc, char *argv[], bootm_headers_t *images) +{ +	ulong rd_len; +	ulong initrd_start, initrd_end; +	int ret; + +	ulong cmd_start, cmd_end; +	ulong bootmap_base; +	bd_t  *kbd; +	void  (*kernel) (bd_t *, ulong, ulong, ulong, ulong); +	struct lmb *lmb = &images->lmb; + +	bootmap_base = getenv_bootm_low();  	/* allocate space and init command line */  	ret = boot_get_cmdline (lmb, &cmd_start, &cmd_end, bootmap_base);  |