u-boot/common
Anton Staaf 155cfb5ef1 common: fix behavior of ROUND macro when input is already rounded
Currently when you call ROUND with a value that is already a
multiple of the second parameter it will return a value that is
one multiple larger, instead of returning the value passed in.

There are only two types of usage of ROUND currently, one in
various config files to round CONFIG_SYS_MALLOC_LEN to a multiple
of 4096 bytes.  The other in cmd_sf.c where the incorrect behavior
of ROUND is worked around be subtracting one from the length argument
before passing it to ROUND.

This patch fixes ROUND and removes the workaround from cmd_sf.  It
also results in all of the malloc pools that use ROUND to compute
their size shrinking by 4KB.

Cc: Lukasz Majewski <l.majewski@samsung.com>
Cc: Mike Frysinger <vapier@gentoo.org>
2011-09-07 23:39:36 +02:00
..
bedbug.c common: Move conditional compilation to Makefile 2008-08-13 01:40:38 +02:00
cmd_ambapp.c various cmd_* files: fixed layout a little bit 2010-08-09 01:07:37 +02:00
cmd_bdinfo.c armv7: rename cache related CONFIG flags 2011-07-04 10:55:25 +02:00
cmd_bedbug.c cmd_usage(): simplify return code handling 2010-07-24 20:43:57 +02:00
cmd_bmp.c cmd_bmp.c: message about compressed formats is debug info only. 2011-02-09 21:32:20 +01:00
cmd_boot.c make go optional 2011-04-13 15:56:39 -04:00
cmd_bootldr.c Blackfin: bootldr: use common defines 2011-04-08 00:44:27 -04:00
cmd_bootm.c Flush cache after the OS image is loaded into the memory. 2011-09-05 16:07:44 +02:00
cmd_cache.c command/cmd_cache.c: Add optional flush arguments 2011-07-26 14:30:08 +02:00
cmd_console.c Make sure that argv[] argument pointers are not modified. 2010-07-04 23:55:42 +02:00
cmd_cplbinfo.c various cmd_* files: fixed layout a little bit 2010-08-09 01:07:37 +02:00
cmd_cramfs.c cramfs: make cramfs usable without a NOR flash 2011-05-10 22:47:32 +02:00
cmd_dataflash_mmc_mux.c various cmd_* files: remove the command name from the help message 2010-08-09 01:06:34 +02:00
cmd_date.c cmd_date: constify 2010-11-28 21:58:24 +01:00
cmd_dcr.c cmd_usage(): simplify return code handling 2010-07-24 20:43:57 +02:00
cmd_df.c cmd_usage(): simplify return code handling 2010-07-24 20:43:57 +02:00
cmd_diag.c Make sure that argv[] argument pointers are not modified. 2010-07-04 23:55:42 +02:00
cmd_display.c led_display: split led display support into generic and hw-dependent parts 2010-10-12 22:44:33 +02:00
cmd_dtt.c hwmon: do not init sensors on startup 2011-08-04 23:30:38 +02:00
cmd_echo.c Make sure that argv[] argument pointers are not modified. 2010-07-04 23:55:42 +02:00
cmd_eeprom.c cosmetic: spell fixes etc. 2011-07-28 16:32:50 +02:00
cmd_elf.c cmd_elf: add an option for loading ELFs according to PHDRs 2010-10-06 22:42:14 +02:00
cmd_exit.c Make sure that argv[] argument pointers are not modified. 2010-07-04 23:55:42 +02:00
cmd_ext2.c cmd_usage(): simplify return code handling 2010-07-24 20:43:57 +02:00
cmd_fat.c fs/fat: Big code cleanup. 2010-07-24 20:54:46 +02:00
cmd_fdc.c autostart: unify duplicated logic into the bootm code 2011-07-25 22:18:26 +02:00
cmd_fdos.c Convert ISO-8859 files to UTF-8 2011-08-04 23:34:02 +02:00
cmd_fdt.c common/cmd_fdt.c: fix wrong data displayed in fdt print 2011-06-01 22:44:50 +02:00
cmd_fitupd.c add command fitupd to run an update from a FIT image 2011-07-26 16:58:48 +02:00
cmd_flash.c cleanup: Fix typos and misspellings in various files. 2011-07-28 21:27:36 +02:00
cmd_fpga.c fpga: constify to fix build warning 2011-08-01 15:19:40 +02:00
cmd_gpio.c gpio: check request result 2011-04-13 15:57:00 -04:00
cmd_help.c Make sure that argv[] argument pointers are not modified. 2010-07-04 23:55:42 +02:00
cmd_i2c.c cosmetic: spell fixes etc. 2011-07-28 16:32:50 +02:00
cmd_ide.c disk/part.c: Make features optional 2011-07-26 14:10:14 +02:00
cmd_immap.c Make sure that argv[] argument pointers are not modified. 2010-07-04 23:55:42 +02:00
cmd_irq.c cmd_usage(): simplify return code handling 2010-07-24 20:43:57 +02:00
cmd_itest.c itest: fix result of string compares 2011-02-15 21:45:55 +01:00
cmd_jffs2.c cmd_jffs2: Fix get_part_sector_size_nor() overflow bug 2011-01-19 00:04:43 +01:00
cmd_ldrinfo.c Blackfin: ldrinfo: new command 2011-04-08 00:44:27 -04:00
cmd_led.c led: Remove state-saving of led for toggle functionality and add toggle option to led command 2011-09-04 11:36:22 +02:00
cmd_license.c various cmd_* files: fixed layout a little bit 2010-08-09 01:07:37 +02:00
cmd_load.c cmd_usage(): simplify return code handling 2010-07-24 20:43:57 +02:00
cmd_log.c cmd_usage(): simplify return code handling 2010-07-24 20:43:57 +02:00
cmd_mac.c cmd_mac: fix help for 'mac read' 2011-07-28 16:41:06 +02:00
cmd_md5sum.c Fix: watchdog timed out, if using md5 command 2011-07-26 14:36:07 +02:00
cmd_mdio.c common/cmd_mdio.c: fix compile warning 2011-04-30 23:09:48 +02:00
cmd_mem.c Fix: if using crc32 command watchdog timed out 2011-07-26 00:40:50 +02:00
cmd_mfsl.c cmd_usage(): simplify return code handling 2010-07-24 20:43:57 +02:00
cmd_mgdisk.c various cmd_* files: remove the command name from the help message 2010-08-09 01:06:34 +02:00
cmd_mii.c miiphy: convert to linux/mii.h 2011-01-09 18:06:50 +01:00
cmd_misc.c cmd_usage(): simplify return code handling 2010-07-24 20:43:57 +02:00
cmd_mmc.c mmc: rescan fails on empty slot 2011-07-15 20:29:22 -05:00
cmd_mmc_spi.c mmc_spi: add mmc_init call 2011-04-29 03:20:01 -05:00
cmd_mp.c cmd_usage(): simplify return code handling 2010-07-24 20:43:57 +02:00
cmd_mtdparts.c Followup fixes on the mtdparts spread patchset 2010-10-11 15:11:01 -05:00
cmd_nand.c autostart: unify duplicated logic into the bootm code 2011-07-25 22:18:26 +02:00
cmd_net.c autostart: unify duplicated logic into the bootm code 2011-07-25 22:18:26 +02:00
cmd_nvedit.c Constify getenv(), setenv() and hash code functions 2011-07-30 01:37:44 +02:00
cmd_onenand.c onenand: add yaffs write command 2010-12-17 14:32:12 -06:00
cmd_otp.c Blackfin: otp: fix build after constification of args[] 2010-10-02 16:00:40 -04:00
cmd_pci.c pci: Clean up PCI info when CONFIG_PCI_SCAN_SHOW 2010-11-14 23:46:46 +01:00
cmd_pcmcia.c Make sure that argv[] argument pointers are not modified. 2010-07-04 23:55:42 +02:00
cmd_portio.c cmd_usage(): simplify return code handling 2010-07-24 20:43:57 +02:00
cmd_reginfo.c mpc85xx: Add reginfo command 2010-07-16 10:55:09 -05:00
cmd_reiser.c cmd_usage(): simplify return code handling 2010-07-24 20:43:57 +02:00
cmd_sata.c disk/part.c: Make features optional 2011-07-26 14:10:14 +02:00
cmd_scsi.c disk/part.c: Make features optional 2011-07-26 14:10:14 +02:00
cmd_setexpr.c cmd_usage(): simplify return code handling 2010-07-24 20:43:57 +02:00
cmd_sf.c common: fix behavior of ROUND macro when input is already rounded 2011-09-07 23:39:36 +02:00
cmd_sha1sum.c Fix: watchdog timed out, if using sha1 command 2011-07-26 14:33:10 +02:00
cmd_source.c Make sure that argv[] argument pointers are not modified. 2010-07-04 23:55:42 +02:00
cmd_spi.c sspi: add options to specify bus and mode 2010-10-06 20:50:38 -04:00
cmd_spibootldr.c various cmd_* files: fixed layout a little bit 2010-08-09 01:07:37 +02:00
cmd_strings.c various cmd_* files: fixed layout a little bit 2010-08-09 01:07:37 +02:00
cmd_terminal.c Make sure that argv[] argument pointers are not modified. 2010-07-04 23:55:42 +02:00
cmd_test.c Make sure that argv[] argument pointers are not modified. 2010-07-04 23:55:42 +02:00
cmd_tsi148.c TSI148: Fix argument parsing 2010-10-12 23:31:10 +02:00
cmd_ubi.c UBI: Fix error code handling in ubi commands 2011-03-21 10:02:16 +01:00
cmd_ubifs.c UBI/UBIFS: Automatically unmount UBIFS volume upon UBI partition change 2010-12-03 18:24:04 +01:00
cmd_universe.c Make sure that argv[] argument pointers are not modified. 2010-07-04 23:55:42 +02:00
cmd_unzip.c md5sum/sha1sum/unzip: split out of mondo mem file 2011-04-13 15:56:47 -04:00
cmd_usb.c autostart: unify duplicated logic into the bootm code 2011-07-25 22:18:26 +02:00
cmd_version.c unify version_string 2011-07-28 17:22:53 +02:00
cmd_ximg.c common/cmd_ximg.c: add ifdef protection for gzip uncompression 2011-07-26 14:11:21 +02:00
cmd_yaffs2.c Make sure that argv[] argument pointers are not modified. 2010-07-04 23:55:42 +02:00
command.c cmd_usage: constify 2011-07-26 16:34:41 +02:00
console.c stdio: constify "name" arg in public api 2010-11-28 21:58:48 +01:00
ddr_spd.c mpc8xxx: DDR2/DDR3: Clean up DIMM-type switch statements 2011-04-04 09:24:43 -05:00
dlmalloc.c malloc: Fix issue with calloc memory possibly being non-zero 2010-11-17 22:06:40 +01:00
dlmalloc.src * Code cleanup: 2003-06-27 21:31:46 +00:00
env_common.c constify default env 2011-07-26 16:34:22 +02:00
env_dataflash.c hashtable: drop all non-reentrant versions 2010-12-17 21:07:14 +01:00
env_eeprom.c hashtable: drop all non-reentrant versions 2010-12-17 21:07:14 +01:00
env_embedded.c env: allow people to force envcrc building 2011-07-26 16:33:49 +02:00
env_flash.c constify default env 2011-07-26 16:34:22 +02:00
env_mgdisk.c New implementation for internal handling of environment variables. 2010-09-19 19:29:48 +02:00
env_mmc.c env_mmc: Allow board code to override the environment address 2011-04-04 22:26:16 -05:00
env_nand.c env_nand: zero-initialize variable nand_erase_options 2011-05-24 16:08:44 -05:00
env_nowhere.c New implementation for internal handling of environment variables. 2010-09-19 19:29:48 +02:00
env_nvram.c hashtable: drop all non-reentrant versions 2010-12-17 21:07:14 +01:00
env_onenand.c hashtable: drop all non-reentrant versions 2010-12-17 21:07:14 +01:00
env_sf.c fix redundant environment for serial flash 2011-04-28 00:46:01 +02:00
exports.c x86: Rename i386 to x86 2011-04-13 19:43:28 +10:00
fdt_support.c fdt: introduce fdt_create_phandle() 2011-07-14 21:43:45 -04:00
flash.c cfi_flash: Simplify dynamic flash bank number detection 2010-09-20 15:08:51 +02:00
hush.c common/hush: make get_local_var visible for other users 2011-05-10 23:19:07 +02:00
hwconfig.c Minor Coding Style Cleanup. 2011-02-02 22:36:10 +01:00
image.c ARM: remove broken "evb4510" board. 2011-09-07 21:46:39 +02:00
iomux.c stdio/device: rework function naming convention 2009-07-18 00:27:46 +02:00
kallsyms.c Add support for Linux-like kallsysms 2009-06-12 20:45:48 +02:00
kgdb.c Make sure that argv[] argument pointers are not modified. 2010-07-04 23:55:42 +02:00
kgdb_stubs.c kgdb: add default generic stubs 2010-01-18 00:23:00 +01:00
lcd.c lcd: align fb writing address for horizontal display offset 2011-01-27 00:20:59 +01:00
lynxkdi.c Fix implicit declaration of function 'eth_[gs]etenv_enetaddr' 2009-03-28 20:16:16 +01:00
main.c unify version_string 2011-07-28 17:22:53 +02:00
Makefile led: added cmd_led to Makefile 2011-09-04 11:36:22 +02:00
memsize.c Remove volatile qualifier in get_ram_size() calls 2011-07-17 17:11:53 +02:00
miiphyutil.c miiphy: use strncpy() not sprintf() 2011-07-26 14:00:24 +02:00
modem.c make MODEM SUPPORT generic instead of duplicate it 2009-06-12 20:45:47 +02:00
s_record.c Initial revision 2002-08-17 09:36:01 +00:00
serial.c Merge branch 'master' of git://git.denx.de/u-boot-blackfin 2011-08-02 21:46:53 +02:00
stdio.c stdio: Fix a possible buffer overflow 2011-09-04 23:27:52 +02:00
system_map.c Add support for Linux-like kallsysms 2009-06-12 20:45:48 +02:00
update.c automatic update from FIT image: add optional address parameter 2011-07-26 16:58:44 +02:00
usb.c USB: Move USB_PRINTF() out of ifdef in usb_scan_devices() 2011-08-08 22:00:12 +02:00
usb_kbd.c USB Consolidate descriptor definitions 2009-12-20 12:47:37 +01:00
usb_storage.c disk/part.c: Make features optional 2011-07-26 14:10:14 +02:00
xyzModem.c cleanup: Fix typos and misspellings in various files. 2011-07-28 21:27:36 +02:00