Subversion Repositories shark

Compare Revisions

Ignore whitespace Rev 592 → Rev 593

/shark/trunk/tracer/newtrace/FTrace_OSD_ll.c
64,11 → 64,15
}
}
 
__asm__("":::"memory");
 
__asm__("cpuid\n\t"
"rdtsc\n\t"
: "=a" (tsclow), "=d" (tschigh) : : "ecx","ebx");
*(DWORD *)current = (DWORD)(par1 << 16 | type);
__asm__("":::"memory");
*(DWORD *)current = (DWORD)((DWORD)(par1) << 16 | (DWORD)(type));
*(DWORD *)(current + 4) = tschigh;
*(DWORD *)(current + 8) = tsclow;
*(DWORD *)(current + 12) = par2;