From: Robert Schwebel Date: Mon, 15 Sep 2003 15:44:40 +0200 Subject: [U-Boot-Users] data abort In-Reply-To: References: <20030915112918.28A8CC59E4@atlas.denx.de> <20030915125130.GX8367@pengutronix.de> Message-ID: <20030915134440.GZ8367@pengutronix.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 -- Dipl.-Ing. Robert Schwebel | http://www.pengutronix.de Pengutronix - Linux Solutions for Science and Industry Handelsregister: Amtsgericht Hildesheim, HRA 2686 Hornemannstra?e 12, 31137 Hildesheim, Germany Phone: +49-5121-28619-0 | Fax: +49-5121-28619-4