From 24c904f309f820f8aef4d6364e7bf584d70c0cad Mon Sep 17 00:00:00 2001 From: Tom Rini Date: Wed, 6 Apr 2022 10:33:32 -0400 Subject: Convert CONFIG_SYS_MEM_TOP_HIDE to Kconfig This converts the following to Kconfig: CONFIG_SYS_MEM_TOP_HIDE Signed-off-by: Tom Rini --- Kconfig | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'Kconfig') diff --git a/Kconfig b/Kconfig index b45e60a75b..e269856f7e 100644 --- a/Kconfig +++ b/Kconfig @@ -489,6 +489,17 @@ config STACK_SIZE by the UEFI sub-system. On some boards initrd_high is calculated as base stack pointer minus this stack size. +config SYS_MEM_TOP_HIDE + hex "Exclude some memory from U-Boot / OS information" + default 0x0 + help + If set, this specified memory area will get subtracted from the top + (end) of RAM and won't get "touched" at all by U-Boot. By fixing up + gd->ram_size the OS / next stage should gets passed the now + "corrected" memory size and won't touch it either. + WARNING: Please make sure that this value is a multiple of the OS + page size. + config SYS_HAS_SRAM bool default y if TARGET_PIC32MZDASK -- cgit v1.2.3