Displaying 1 result from an estimated 1 matches for "skip_rdtsc".
2004 Mar 01
0
[PATCH] pxelinux corrupts ipappend-ed paramaters...
...Seed NextSocket...
+;
+%if 1
+ push ebx
+ push edx
+ push ecx
+ xor eax,eax
+
+ pushfd
+ pop eax
+ mov edx,eax
+ xor eax,1<<21 ; EFLAGS.ID
+ push eax
+ popfd
+ pushfd
+ pop eax
+ xor eax,edx
+ and eax,1<<21
+ jz .skip_rdtsc
+ mov eax,1
+ cpuid
+ and edx,1<<4 ; TSC
+ jz .skip_rdtsc
+ rdtsc
+ or [NextSocket],ax
+.skip_rdtsc
+ pop ecx
+ pop edx
+ pop ebx
+%endif
+%macro udelay 0
+ jmp short %%skip
+%%skip: rep nop
+%endmacro
+ xor eax,eax
+ cli ; disable interrupts
+ or al, 80h...