From d1887ded41a5bfec8e10e9fd736fa9444b9b6222 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Tue, 21 Apr 2009 01:17:03 -0700 Subject: Fix up fancy dbg stuff. Add teleterra initial bits. The dbg stuff needed a bit of help to actually walk the tables; it appears that complex expressions confuse sdcc. This also adds primitive teleterra bits, but no UI, etc. Signed-off-by: Keith Packard --- check-stack | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'check-stack') diff --git a/check-stack b/check-stack index 6d3106a8..82680b88 100755 --- a/check-stack +++ b/check-stack @@ -6,7 +6,8 @@ HEADER_STACK=`awk '/#define AO_STACK_START/ {print $3}' $HEADER | nickle` MEM_STACK=`awk '/Stack starts at/ {print $4}' $MEM | nickle` if [ "$HEADER_STACK" -lt "$MEM_STACK" ]; then - echo "Set AO_STACK_START to at least $MEM_STACK" + MIN=0x`nickle -e "$MEM_STACK # 16"` + echo "Set AO_STACK_START to at least $MIN" exit 1 else exit 0 -- cgit v1.2.3