
HI all,
2010/12/24 Macpaul Lin macpaul@gmail.com:
Dear Wolfgang,
2010/12/23 Wolfgang Denk wd@denx.de:
Dear Macpaul Lin,
In message macpaul@gmail.com you wrote:
The problem is that, after the command "reset" under u-boot console. The cpu will do flush I/D cache , disable interrupt , redo mem_malloc_init(). Then redo the init process.
I'm not sure I understand what you mean. This shouds as if the "reset" command in U-Boot woul perform just apartial re-initialization of the software, but not a real hardware reset of the board?
Yes, the "reset" in this problem is meant to the software reset "command" which could be manually executed from console.
If the "reset" command in u-boot just do apartial re-initialization, then I think the problem could not to allocate memory might be some static variable wasn't cleared after the reset process.
This problem (couldn't do malloc after reset) has been solved with patch "[PATCH] common/dlmalloc: support reinit bin for fast reset" for platforms enabled "CONFIG_SKIP_LOWLEVEL_INIT" and do reset_cpu(CONFIG_SYS_TEXT_BASE).