summaryrefslogtreecommitdiffstats
path: root/common/memsize.c
Commit message (Collapse)AuthorAgeFilesLines
* common: replace license statements with SPDX-License-IdentifiersAhmad Fatoum2020-11-271-11/+1
| | | | | | | | | | | | | For all files in common/ that already have a license text: - Replace with appropriate SPDX-License-Identifier - Remove empty comment lines around replacement - remove comment completely if only thing remaining is name of file without description Reviewed-by: Roland Hieber <rhi@pengutronix.de> Reviewed-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* common: memsize: eliminate dead storeAhmad Fatoum2020-10-021-1/+1
| | | | | | | | | The assignment to val at this location serves no purpose, drop it to reduce clutter. Reported-by: clang-analyzer-10 Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* treewide: remove references to CREDITSUwe Kleine-König2020-04-271-3/+0
| | | | | | | | The CREDITS file was removed from barebox in 2015 by commit 6570288f2d97 ("Remove the CREDITS file"). Remove references to it from several files. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Add warning above get_ram_sizeSascha Hauer2013-02-131-0/+3
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Treewide: remove address of the Free Software FoundationSascha Hauer2012-09-171-4/+0
| | | | | | | The FSF address has changed in the past. Instead of updating it each time the address changes, just drop it completely treewide. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* common/memsize.c: add missing includeSascha Hauer2010-10-211-0/+1
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* [sandbox] add propper sandbox detectionMarc Kleine-Budde2007-11-291-1/+1
| | | | | | | | | | | | | | | This patch adds a __SANDBOX__ define to identify compiling for the sandbox. When building for sandbox, don't use sync() workaround. Fixes this error for sandbox on PPC: CC common/memsize.o common/memsize.c:30:38: error: asm/io.h: No such file or directory common/memsize.c: In function 'get_ram_size': common/memsize.c:51: warning: implicit declaration of function 'sync' Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* Sequential accesses to non-existent memory must be synchronized,Wolfgang Denk2006-11-061-0/+17
| | | | | | at least on G2 cores. This fixes get_ram_size() problems on MPC5200 Rev. B boards.
* Add a common get_ram_size() function and modify the thewdenk2004-01-061-0/+77
board-specific files to invoke that common implementation.