6 int stck(unsigned long *addr
)
9 asm volatile ( "stck %0\n"
12 :"=Q" (*addr
), "=d"(cc
)::"memory", "cc");
16 unsigned long clockticks_in_msec(unsigned long b
, unsigned long a
)
18 return (b
- a
) / 4096000UL;
25 unsigned long start
, end
, diff
;
34 diff
= clockticks_in_msec(end
, start
);
35 if (diff
>= 1000 && diff
< 1500)
36 printf("OK.....Testcase passed\n");
38 printf("FAILED.....Testcase failed\n");