summaryrefslogtreecommitdiff
path: root/nuttx/arch
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2007-12-29 20:18:34 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2007-12-29 20:18:34 +0000
commite4186520020237dadb64f2dd4340ec763f126286 (patch)
treec2c93ee40768d18218e150964d9db78902a3d984 /nuttx/arch
parentb0bf2ce1fa51959694cb396fb356e64e877e8ff4 (diff)
downloadpx4-nuttx-e4186520020237dadb64f2dd4340ec763f126286.tar.gz
px4-nuttx-e4186520020237dadb64f2dd4340ec763f126286.tar.bz2
px4-nuttx-e4186520020237dadb64f2dd4340ec763f126286.zip
Fix size calculation error
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@459 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch')
-rw-r--r--nuttx/arch/z80/src/Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/nuttx/arch/z80/src/Makefile b/nuttx/arch/z80/src/Makefile
index b03935af9..e822fd05a 100644
--- a/nuttx/arch/z80/src/Makefile
+++ b/nuttx/arch/z80/src/Makefile
@@ -86,7 +86,9 @@ VPATH = chip:common
LIBGCC = ${shell $(CC) -print-libgcc-file-name}
-# Supports dynamic sizing of HEAP
+# Supports dynamic sizing of HEAP. This adds up the size of each memory area.
+# This does not account for the alignment of the _CODE area to 0x0100 (hence
+# the fudge factor 196 is added).
HEAP_BASE = ${shell \
if [ -e pass1.map ]; then \
@@ -103,7 +105,7 @@ HEAP_BASE = ${shell \
fi; \
fi; \
done; \
- echo "$${result})"; \
+ echo "$${result} + 196)"; \
else \
echo "(UP_HEAP1_END - 8192)"; \
fi; \