Would it be possible to change the ‘unsigned portSHORT usStackDepth;’
to ‘unsigned portLONG ulStackDepth;’ in struct tskTaskControlBlock?
(and update the modified references)
First, yes, I did need a stack larger than 64k variables.
2nd, being a short causes some compilers to emit slightly more code
than if the type were the natural integer size.
3rd, being a short in a structure opens up the possibilities
for problems with structure packing (although not likely an issue
with this structure yet).