diff options
author | wdenk <wdenk> | 2004-03-13 23:29:43 +0000 |
---|---|---|
committer | wdenk <wdenk> | 2004-03-13 23:29:43 +0000 |
commit | c40b29568232761e33400e58be86b15a167d3422 (patch) | |
tree | c306e01e8cf535467fb448499304020d251a763a /common/env_flash.c | |
parent | 6629d2f22b4af180dc41defe2396bafcd8fe4093 (diff) | |
download | u-boot-imx-c40b29568232761e33400e58be86b15a167d3422.zip u-boot-imx-c40b29568232761e33400e58be86b15a167d3422.tar.gz u-boot-imx-c40b29568232761e33400e58be86b15a167d3422.tar.bz2 |
* Patch by Rune Torgersen, 27 Feb 2004:
- Added LBA48 support (CONFIG_LBA48 & CFG_64BIT_LBA)
- Added support for 64bit printing in vsprintf (CFG_64BIT_VSPRINTF)
- Added support for 64bit strtoul (CFG_64BIT_STRTOUL)
* Patch by Masami Komiya, 27 Feb 2004:
Fix rarpboot: add autoload by NFS
* Patch by Dan Eisenhut, 26 Feb 2004:
fix flash_write return value in saveenv
* Patch by Stephan Linz, 11 Dec 2003
expand config.mk to avoid trigraph warnings on NIOS
* Rename "BMS2003" board into "HMI10"
Diffstat (limited to 'common/env_flash.c')
-rw-r--r-- | common/env_flash.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/common/env_flash.c b/common/env_flash.c index af99880..079f84d 100644 --- a/common/env_flash.c +++ b/common/env_flash.c @@ -207,21 +207,21 @@ int saveenv(void) debug (" %08lX ... %08lX ...", (ulong)&(flash_addr_new->data), sizeof(env_ptr->data)+(ulong)&(flash_addr_new->data)); - if (flash_write(env_ptr->data, + if ((rc = flash_write(env_ptr->data, (ulong)&(flash_addr_new->data), - sizeof(env_ptr->data)) || + sizeof(env_ptr->data))) || - flash_write((char *)&(env_ptr->crc), + (rc = flash_write((char *)&(env_ptr->crc), (ulong)&(flash_addr_new->crc), - sizeof(env_ptr->crc)) || + sizeof(env_ptr->crc))) || - flash_write((char *)&obsolete_flag, + (rc = flash_write((char *)&obsolete_flag, (ulong)&(flash_addr->flags), - sizeof(flash_addr->flags)) || + sizeof(flash_addr->flags))) || - flash_write((char *)&active_flag, + (rc = flash_write((char *)&active_flag, (ulong)&(flash_addr_new->flags), - sizeof(flash_addr_new->flags))) + sizeof(flash_addr_new->flags)))) { flash_perror (rc); goto Done; |