Fixed a trapframe-initialization bug in sys_exec