--- zzzz-none-000/linux-3.10.107/arch/powerpc/kernel/vdso32/gettimeofday.S 2017-06-27 09:49:32.000000000 +0000 +++ scorpion-7490-727/linux-3.10.107/arch/powerpc/kernel/vdso32/gettimeofday.S 2021-02-04 17:41:59.000000000 +0000 @@ -232,9 +232,15 @@ lwz r6,(CFG_TB_ORIG_STAMP+4)(r9) /* Get a stable TB value */ +#ifdef CONFIG_8xx 2: mftbu r3 mftbl r4 mftbu r0 +#else +2: mfspr r3, SPRN_TBRU + mfspr r4, SPRN_TBRL + mfspr r0, SPRN_TBRU +#endif cmplw cr0,r3,r0 bne- 2b