[U-Boot-Users] data abort

Robert Schwebel robert at schwebel.de
Mon Sep 15 15:44:40 CEST 2003


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




More information about the U-Boot mailing list