1. recover correctly from invalid sys call number 2. don't rely on host order for vlong 3. initialise stack with area for Tos so libc will work