Debugging some scheduling bug

Something seems to cause scheduling to hang after some time. Usually it
just hangs but occasionally something seems to also cause DAB and kernel
panic.

This commit adds some fixes that seemed to help very little and it also
add some minor fixes and printing of more debug data.

This also adds mission gpio and jtag files.