[U-Boot-Users] what is wrong when calloc return bogus?

Holger Schurig h.schurig at mn-logistik.de
Mon Aug 18 10:59:56 CEST 2003


> If the PXA is broken, then it should be fixed, but NOT by  making  it
> like  the  other ARM boards which are (IMHO) broken by design.

The PXA is broken, AFAIK. mem_malloc_init() get's called with 0x0badc0de.

And at least one board (wepep250) contains a workaround in board_init():

-----------------------------------
/*
 * Following code is just bug workaround, remove it if not neccessary
 */

  /* cpu/xscale/cpu.c do not set armboot_real_end that is used for
     malloc pool.*/
  if( _armboot_real_end == 0xbadc0de ){
    _armboot_real_end = _armboot_end;
  }
-----------------------------------





More information about the U-Boot mailing list