summaryrefslogtreecommitdiff
path: root/check-stack
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2009-04-21 01:17:03 -0700
committerKeith Packard <keithp@keithp.com>2009-04-21 01:17:03 -0700
commitd1887ded41a5bfec8e10e9fd736fa9444b9b6222 (patch)
tree936c2e251c195d80e13a0754931ba188fbf7e5ad /check-stack
parent43c8f7012102cdb591ace899420c10e4a78385ad (diff)
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 <keithp@keithp.com>
Diffstat (limited to 'check-stack')
-rwxr-xr-xcheck-stack3
1 files changed, 2 insertions, 1 deletions
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