Fixed bugs with scheduler, run queue, asm swi handler, and syscalls