diff options
author | Wolfgang Denk <wd@denx.de> | 2008-08-09 23:26:26 (GMT) |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2008-08-09 23:26:26 (GMT) |
commit | 0bf202ec586d4466c900e987720fa635c594d689 (patch) | |
tree | 134122e0c27026445777a6d3286638d7d8e35ce2 /common/image.c | |
parent | dedec4cfc88eeadac616d558f6104cbe2e0d46aa (diff) | |
download | u-boot-fsl-qoriq-0bf202ec586d4466c900e987720fa635c594d689.tar.xz |
Revert "[new uImage] Add autostart flag to bootm_headers structure"
This reverts commit f5614e7926863bf0225ec860d9b319741a9c4004.
The commit was based on a misunderstanding of the (documented)
meaning of the 'autostart' environment variable. It might cause
boards to hang if 'autostart' was used, with the potential to brick
them. Go back to the documented behaviour.
Conflicts:
common/cmd_bootm.c
common/image.c
include/image.h
Signed-off-by: Wolfgang Denk <wd@denx.de>
Diffstat (limited to 'common/image.c')
-rw-r--r-- | common/image.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/common/image.c b/common/image.c index c3545a7..1807348 100644 --- a/common/image.c +++ b/common/image.c @@ -189,6 +189,22 @@ int image_check_dcrc (image_header_t *hdr) return (dcrc == image_get_dcrc (hdr)); } +void memmove_wd (void *to, void *from, size_t len, ulong chunksz) +{ +#if defined(CONFIG_HW_WATCHDOG) || defined(CONFIG_WATCHDOG) + while (len > 0) { + size_t tail = (len > chunksz) ? chunksz : len; + WATCHDOG_RESET (); + memmove (to, from, tail); + to += tail; + from += tail; + len -= tail; + } +#else /* !(CONFIG_HW_WATCHDOG || CONFIG_WATCHDOG) */ + memmove (to, from, len); +#endif /* CONFIG_HW_WATCHDOG || CONFIG_WATCHDOG */ +} +#endif /* USE_HOSTCC */ /** * image_multi_count - get component (sub-image) count |