copying trapframe and address space