summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2008-06-04 11:43:10 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2008-06-04 11:54:03 +0200
commit596c8450727ff2c9e2a8053e83280682d813c82f (patch)
treeb1623de1d69f75765cffd8db50083a6faa64c8b4 /common
parent9e6ee5e79516f5af5366bd95fab801a692728373 (diff)
downloadbarebox-596c8450727ff2c9e2a8053e83280682d813c82f.tar.gz
barebox-596c8450727ff2c9e2a8053e83280682d813c82f.tar.xz
[memory layout]: streamline memory layout
Memory layout can now be specified via kconfig options. Two possibilities exist: default layout means the layout is stack / malloc heap / U-Boot. The user can also specify fixed addresses for each TEXT_BASE / stack / malloc heap.
Diffstat (limited to 'common')
-rw-r--r--common/Kconfig56
1 files changed, 56 insertions, 0 deletions
diff --git a/common/Kconfig b/common/Kconfig
index 79a3684867..c7ec266a40 100644
--- a/common/Kconfig
+++ b/common/Kconfig
@@ -19,13 +19,69 @@ menu "General Settings "
config BOARDINFO
string
+menu "memory layout "
+
+config HAVE_CONFIGURABLE_TEXT_BASE
+ bool
+
config TEXT_BASE
+ depends on HAVE_CONFIGURABLE_TEXT_BASE
prompt "TEXT_BASE"
hex
default ARCH_TEXT_BASE
help
The Address U-Boot gets linked at.
+config HAVE_CONFIGURABLE_MEMORY_LAYOUT
+ bool
+
+choice
+ prompt "select memory layout"
+ depends on HAVE_CONFIGURABLE_MEMORY_LAYOUT
+ default MEMORY_LAYOUT_DEFAULT
+
+config MEMORY_LAYOUT_DEFAULT
+ bool "use default memory layout"
+ help
+ select this option to use U-Boots standard memory layout:
+
+ stack
+ -----
+ malloc heap
+ -----
+ TEXT_BASE
+
+config MEMORY_LAYOUT_FIXED
+ bool "manually assign a memory layout"
+ help
+ select this option to manually assign stack base and malloc
+ heap base
+
+endchoice
+
+config STACK_BASE
+ depends on MEMORY_LAYOUT_FIXED
+ hex
+ prompt "STACK_BASE"
+
+config STACK_SIZE
+ hex
+ depends on HAVE_CONFIGURABLE_MEMORY_LAYOUT
+ default 0x8000
+ prompt "Stack size"
+
+config MALLOC_BASE
+ depends on MEMORY_LAYOUT_FIXED
+ hex
+ prompt "MALLOC_BASE"
+
+config MALLOC_SIZE
+ hex
+ depends on HAVE_CONFIGURABLE_MEMORY_LAYOUT
+ default 0x400000
+ prompt "malloc area size"
+endmenu
+
config BROKEN
bool
prompt "Prompt for broken or incomplete code"