summaryrefslogtreecommitdiffstats
path: root/common/memsize.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2013-02-13 18:14:38 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2013-02-13 18:14:38 +0100
commita40e76cebcbe8b025bafdefdc6e27b7553209ed7 (patch)
treef69839bfcddde5a1f9a83a80032b5be06243850f /common/memsize.c
parent2ccd4510bd74d01ad20b276f0e2e51ced0c475a8 (diff)
downloadbarebox-a40e76cebcbe8b025bafdefdc6e27b7553209ed7.tar.gz
Add warning above get_ram_size
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common/memsize.c')
-rw-r--r--common/memsize.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/common/memsize.c b/common/memsize.c
index d149e41..ef6381b 100644
--- a/common/memsize.c
+++ b/common/memsize.c
@@ -33,6 +33,9 @@
* Check memory range for valid RAM. A simple memory test determines
* the actually available RAM size between addresses `base' and
* `base + maxsize'.
+ *
+ * This function modifies the RAM. Do not use it if you're running from
+ * the RAM you are going to detect!
*/
long get_ram_size(volatile long *base, long maxsize)
{