summaryrefslogtreecommitdiffstats
path: root/common/meminfo.c
Commit message (Collapse)AuthorAgeFilesLines
* meminfo: avoid out-of-bounds compiler warningAhmad Fatoum2023-05-231-2/+2
| | | | | | | | | | | GCC warns about _etext and __bss_stop being arrays whose starting address is subtracted by one. The arrays are linker defined and subtracting them is fine, so silence the warning by casting the pointer to an equally sized integer with no limitations on arithmetic. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Link: https://lore.barebox.org/20230522052222.1037931-6-a.fatoum@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* meminfo: support SANDBOX build with DEBUG log levelAhmad Fatoum2022-09-121-2/+4
| | | | | | | | | We don't necessarily have _[se]text, __bss_(start|stop) symbols on sandbox, so we shouldn't reference these there in the debug prints. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Link: https://lore.barebox.org/20220905095557.596891-4-a.fatoum@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* treewide: add SPDX-License-Identifier for files without explicit licenseAhmad Fatoum2022-01-051-0/+2
| | | | | | | | | Record GPL-2.0-only as license for all files lacking an explicit license statement. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Link: https://lore.barebox.org/20220103120539.1730644-12-a.fatoum@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/pr_print'Sascha Hauer2013-04-041-3/+3
|\
| * meminfo: switch to pr_xxxJean-Christophe PLAGNIOL-VILLARD2013-03-091-3/+3
| | | | | | | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | include asm/sections.h instead of asm-generic/sections.hSascha Hauer2013-03-101-1/+1
|/ | | | | | To let the architectures override asm-generic/sections.h Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: Setup stack at end of SDRAMSascha Hauer2013-02-041-5/+0
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* meminfo: fix display of allocated addressesAlexander Aring2013-01-141-3/+3
| | | | | | | Fix display to stdout of allocated addresses. Signed-off-by: Alexander Aring <alex.aring@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* meminfo: fix missing includeAlexander Aring2013-01-141-0/+1
| | | | | | | | Fix include for linkerscript variables like _etext. Otherwise build with #define DEBUG will fail. Signed-off-by: Alexander Aring <alex.aring@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* common: split out meminfo output and make it optionalJan Luebbe2012-09-061-0/+23
Signed-off-by: Jan Luebbe <jlu@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>