patch-2.4.19 linux-2.4.19/arch/s390x/kernel/time.c
Next file: linux-2.4.19/arch/s390x/kernel/traps.c
Previous file: linux-2.4.19/arch/s390x/kernel/smp.c
Back to the patch index
Back to the overall index
- Lines: 22
- Date:
Fri Aug 2 17:39:43 2002
- Orig file:
linux-2.4.18/arch/s390x/kernel/time.c
- Orig date:
Mon Feb 25 11:37:56 2002
diff -urN linux-2.4.18/arch/s390x/kernel/time.c linux-2.4.19/arch/s390x/kernel/time.c
@@ -55,7 +55,7 @@
{
__u64 now;
- asm ("STCK %0" : "=m" (now));
+ asm ("STCK 0(%0)" : : "a" (&now) : "memory", "cc");
now = (now - init_timer_cc) >> 12;
/* We require the offset from the latest update of xtime */
now -= (__u64) wall_jiffies*USECS_PER_JIFFY;
@@ -173,9 +173,10 @@
int cc;
/* kick the TOD clock */
- asm volatile ("STCK %1\n\t"
+ asm volatile ("STCK 0(%1)\n\t"
"IPM %0\n\t"
- "SRL %0,28" : "=r" (cc), "=m" (init_timer_cc));
+ "SRL %0,28" : "=r" (cc) : "a" (&init_timer_cc)
+ : "memory", "cc");
switch (cc) {
case 0: /* clock in set state: all is fine */
break;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)