This is an automated email from Gerrit. Дмитрий Шпак (dis...@yandex.ru) just uploaded a new patch set to Gerrit, which you can find at http://openocd.zylin.com/2657
-- gerrit commit a7c4bd5a99b6fda06a6bbb73b20c83a74da5c953 Author: DmitryShpak <dis...@yandex.ru> Date: Wed Mar 25 14:31:16 2015 +0300 target/target.c: fixed rp check bug in asynchronous flash write algorithm. Bug in read pointer check within flash write algorithm made incorrect check if block size is more than 4 bytes (bug was detected with 16 bytes block size). Change-Id: I5b8e7ebca619a0a85ae6e9e496ff792248134d81 Signed-off-by: DmitryShpak <dis...@yandex.ru> diff --git a/src/target/target.c b/src/target/target.c index 5c88384..7b7d870 100644 --- a/src/target/target.c +++ b/src/target/target.c @@ -936,7 +936,7 @@ int target_run_flash_async_algorithm(struct target *target, break; } - if ((rp & (block_size - 1)) || rp < fifo_start_addr || rp >= fifo_end_addr) { + if (((rp - fifo_start_addr) & (block_size - 1)) || rp < fifo_start_addr || rp >= fifo_end_addr) { LOG_ERROR("corrupted fifo read pointer 0x%" PRIx32, rp); break; } -- ------------------------------------------------------------------------------ Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ _______________________________________________ OpenOCD-devel mailing list OpenOCD-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openocd-devel