projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add monitor task to flight software
[fw/altos]
/
check-stack
diff --git
a/check-stack
b/check-stack
index d93e8e444fad5324bedc88e53a729200f9959f2a..82680b88647e4ab8436753caf04d23b27fade369 100755
(executable)
--- a/
check-stack
+++ b/
check-stack
@@
-2,11
+2,12
@@
HEADER=$1
MEM=$2
HEADER=$1
MEM=$2
-HEADER_STACK=`awk '/#define AO_STACK_START/ {print $3}' $HEADER`
-MEM_STACK=`awk '/Stack starts at/ {print $4}' $MEM`
+HEADER_STACK=`awk '/#define AO_STACK_START/ {print $3}' $HEADER
| nickle
`
+MEM_STACK=`awk '/Stack starts at/ {print $4}' $MEM
| nickle
`
-if [ "$HEADER_STACK" != "$MEM_STACK" ]; then
- echo "Set AO_STACK_START to $MEM_STACK"
+if [ "$HEADER_STACK" -lt "$MEM_STACK" ]; then
+ MIN=0x`nickle -e "$MEM_STACK # 16"`
+ echo "Set AO_STACK_START to at least $MIN"
exit 1
else
exit 0
exit 1
else
exit 0