pub fn sys_thread_set_trap_state( target: ObjID, trap_state: u64, ) -> Result<(), TwzError>
Set the Trap State for the thread.