Fix size calculation error
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@459 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
parent
9b9aa7fd9e
commit
8cd5eddc98
@ -86,7 +86,9 @@ VPATH = chip:common
|
|||||||
|
|
||||||
LIBGCC = ${shell $(CC) -print-libgcc-file-name}
|
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 \
|
HEAP_BASE = ${shell \
|
||||||
if [ -e pass1.map ]; then \
|
if [ -e pass1.map ]; then \
|
||||||
@ -103,7 +105,7 @@ HEAP_BASE = ${shell \
|
|||||||
fi; \
|
fi; \
|
||||||
fi; \
|
fi; \
|
||||||
done; \
|
done; \
|
||||||
echo "$${result})"; \
|
echo "$${result} + 196)"; \
|
||||||
else \
|
else \
|
||||||
echo "(UP_HEAP1_END - 8192)"; \
|
echo "(UP_HEAP1_END - 8192)"; \
|
||||||
fi; \
|
fi; \
|
||||||
|
Loading…
Reference in New Issue
Block a user