
On Mon, Sep 15, 2003 at 02:58:51PM +0200, Anders Larsen wrote:
start_armboot() references _armboot_real_end *regardless* of the setting of CONFIG_VFD, see lib_arm/board.c:
#ifdef CONFIG_VFD # ifndef PAGE_SIZE # define PAGE_SIZE 4096 # endif /* * reserve memory for VFD display (always full pages) */ /* armboot_real_end is defined in the board-specific linker script */ ! addr = (_armboot_real_end + (PAGE_SIZE - 1)) & ~(PAGE_SIZE - 1); size = vfd_setmem (addr); gd->fb_base = addr; /* round to the next page boundary */ addr += size; addr = (addr + (PAGE_SIZE - 1)) & ~(PAGE_SIZE - 1); mem_malloc_init (addr); #else /* armboot_real_end is defined in the board-specific linker script */ ! mem_malloc_init (_armboot_real_end); #endif /* CONFIG_VFD */
Not in -ptx:
#ifdef CONFIG_VFD [...] #else /* FIXME: shouldn't the board info structure be between malloc */ /* area and u-boot code? */
/* malloc area is below startaddress of u-boot in RAM */ mem_malloc_init(_armboot_start - CFG_MALLOC_LEN); #endif /* CONFIG_VFD */
Robert