PERFORCE change 123645 for review

Attilio Rao attilio at FreeBSD.org
Tue Jul 17 12:09:47 UTC 2007


http://perforce.freebsd.org/chv.cgi?CH=123645

Change 123645 by attilio at attilio_xen on 2007/07/17 12:09:33

	Xen is only runnable on i386

Affected files ...

.. //depot/projects/xen3/src/sys/i386-xen/i386-xen/clock.c#13 edit

Differences ...

==== //depot/projects/xen3/src/sys/i386-xen/i386-xen/clock.c#13 (text+ko) ====

@@ -208,16 +208,13 @@
 scale_delta(uint64_t delta, uint32_t mul_frac, int shift)
 {
 	uint64_t product;
-#ifdef __i386__
 	uint32_t tmp1, tmp2;
-#endif
 
 	if ( shift < 0 )
 		delta >>= -shift;
 	else
 		delta <<= shift;
 
-#ifdef __i386__
 	__asm__ (
 		"mul  %5       ; "
 		"mov  %4,%%eax ; "
@@ -228,11 +225,6 @@
 		"adc  %5,%%edx ; "
 		: "=A" (product), "=r" (tmp1), "=r" (tmp2)
 		: "a" ((uint32_t)delta), "1" ((uint32_t)(delta >> 32)), "2" (mul_frac) );
-#else
-	__asm__ (
-		"mul %%rdx ; shrd $32,%%rdx,%%rax"
-		: "=a" (product) : "0" (delta), "d" ((uint64_t)mul_frac) );
-#endif
 
 	return product;
 }


More information about the p4-projects mailing list