[Linux-hls-cvs] hls/tests ppc-rdtsc.h,1.1.1.1,1.2
Status: Pre-Alpha
Brought to you by:
lucabe
|
From: Luca A. <lu...@us...> - 2004-11-02 07:39:38
|
Update of /cvsroot/linux-hls/hls/tests In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5235/tests Modified Files: ppc-rdtsc.h Log Message: - Update the 2.6 backend... Now it inserts without big crashes, but still does not work Check if it breaks 2.4 (there is a pre_26 tag) Index: ppc-rdtsc.h =================================================================== RCS file: /cvsroot/linux-hls/hls/tests/ppc-rdtsc.h,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** ppc-rdtsc.h 27 Aug 2002 11:26:20 -0000 1.1.1.1 --- ppc-rdtsc.h 2 Nov 2004 07:39:29 -0000 1.2 *************** *** 6,14 **** unsigned long chk; ! __asm__ __volatile__ ("1: mftbu %0; ! mftb %1; ! mftbu %2; ! cmpw %2, %0; ! bne 1b" : "=r" (((unsigned long int *)&ts)[0]), "=r" (((unsigned long int *)&ts)[1]), "=r" (chk)); --- 6,14 ---- unsigned long chk; ! __asm__ __volatile__ ("1: mftbu %0;\n\t" ! " mftb %1;\n\t" ! " mftbu %2;\n\t" ! " cmpw %2, %0;\n\t" ! " bne 1b" : "=r" (((unsigned long int *)&ts)[0]), "=r" (((unsigned long int *)&ts)[1]), "=r" (chk)); |