bootstage: Copy bootstage strings post-relocation
authorDoug Anderson <dianders@chromium.org>
Wed, 17 Apr 2013 16:13:41 +0000 (16:13 +0000)
committerSimon Glass <sjg@chromium.org>
Mon, 13 May 2013 20:33:21 +0000 (13:33 -0700)
commit150678a5820bed338c1c8de570c451bc77c15900
treea988ef54d38a9e55c064a75456156b5bfd8d5cc5
parente802ee0f990b634138d55844ee36e4125a0fa0fc
bootstage: Copy bootstage strings post-relocation

Any pointers to name strings that were passed to bootstage_mark_name()
pre-relocation should be copied post-relocation so that they don't get
trashed as the original location of U-Boot is re-used for other
purposes.

This change introduces a new API call that should be called from
board_init_r() after malloc has been initted on any board that uses
bootstage.

Signed-off-by: Doug Anderson <dianders@chromium.org>
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
common/bootstage.c
include/bootstage.h