fixed rdtsc and implemented minimal system call