6 unsigned long buffer[2];
9 unsigned long long time;
12 } __attribute__ ((packed)) reader;
15 int stcke(unsigned long *addr)
19 asm volatile ( "stcke %0\n"
22 :"+Q" (*addr), "=d"(cc)::"cc");
27 unsigned long clockticks_in_msec(unsigned long b, unsigned long a)
29 return (b -a ) / 4096000UL;
34 union stcke start, end;
37 cc = stcke(start.buffer);
42 cc = stcke(end.buffer);
46 unsigned long c = clockticks_in_msec(end.reader.time,
49 if (c >= 1000 && c < 1500)
50 printf("OK.....Testcase passed\n");
52 printf("FAILED.....Testcase failed\n");