aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristophe Leroy <christophe.leroy@c-s.fr>2019-04-04 08:20:05 -0400
committerMichael Ellerman <mpe@ellerman.id.au>2019-04-07 16:57:19 -0400
commitdd9a994fc68d196a052b73747e3366c57d14a09e (patch)
tree9efe2bd04bd1b13af611d8ef231a145b7396231b
parentfd427103e8dfcb4b438269afd710b63e7af61463 (diff)
powerpc/vdso32: fix CLOCK_MONOTONIC on PPC64
Commit b5b4453e7912 ("powerpc/vdso64: Fix CLOCK_MONOTONIC inconsistencies across Y2038") changed the type of wtom_clock_sec to s64 on PPC64. Therefore, VDSO32 needs to read it with a 4 bytes shift in order to retrieve the lower part of it. Fixes: b5b4453e7912 ("powerpc/vdso64: Fix CLOCK_MONOTONIC inconsistencies across Y2038") Reported-by: Christian Zigotzky <chzigotzky@xenosoft.de> Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
-rw-r--r--arch/powerpc/kernel/vdso32/gettimeofday.S2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/kernel/vdso32/gettimeofday.S b/arch/powerpc/kernel/vdso32/gettimeofday.S
index 1e0bc5955a40..afd516b572f8 100644
--- a/arch/powerpc/kernel/vdso32/gettimeofday.S
+++ b/arch/powerpc/kernel/vdso32/gettimeofday.S
@@ -98,7 +98,7 @@ V_FUNCTION_BEGIN(__kernel_clock_gettime)
98 * can be used, r7 contains NSEC_PER_SEC. 98 * can be used, r7 contains NSEC_PER_SEC.
99 */ 99 */
100 100
101 lwz r5,WTOM_CLOCK_SEC(r9) 101 lwz r5,(WTOM_CLOCK_SEC+LOPART)(r9)
102 lwz r6,WTOM_CLOCK_NSEC(r9) 102 lwz r6,WTOM_CLOCK_NSEC(r9)
103 103
104 /* We now have our offset in r5,r6. We create a fake dependency 104 /* We now have our offset in r5,r6. We create a fake dependency