Fix scheduling bug in rtosint_tick.
Add and call list assertion functions.
Syscall return values are now properly returned to caller.