Skip to content

Commit b399ee2

Browse files
Goran Ferencralfbaechle
authored andcommitted
MIPS: VDSO: Fix clobber lists in fallback code paths
Extend clobber lists to include all GP registers. Fixes: 0b523a8 ("MIPS: VDSO: Add implementation of gettimeofday() fallback") Signed-off-by: Miodrag Dinic <[email protected]> Signed-off-by: Goran Ferenc <[email protected]> Signed-off-by: Aleksandar Markovic <[email protected]> Reviewed-by: James Hogan <[email protected]> Cc: Bo Hu <[email protected]> Cc: Douglas Leung <[email protected]> Cc: James Hogan <[email protected]> Cc: Jin Qian <[email protected]> Cc: Paul Burton <[email protected]> Cc: Petar Jovanovic <[email protected]> Cc: Raghu Gandham <[email protected]> Cc: [email protected] Cc: [email protected] Patchwork: https://patchwork.linux-mips.org/patch/16879/ Signed-off-by: Ralf Baechle <[email protected]>
1 parent ae5b067 commit b399ee2

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

arch/mips/vdso/gettimeofday.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ static __always_inline long gettimeofday_fallback(struct timeval *_tv,
3535
" syscall\n"
3636
: "=r" (ret), "=r" (error)
3737
: "r" (tv), "r" (tz), "r" (nr)
38-
: "memory");
38+
: "$1", "$3", "$8", "$9", "$10", "$11", "$12", "$13",
39+
"$14", "$15", "$24", "$25", "hi", "lo", "memory");
3940

4041
return error ? -ret : ret;
4142
}
@@ -55,7 +56,8 @@ static __always_inline long clock_gettime_fallback(clockid_t _clkid,
5556
" syscall\n"
5657
: "=r" (ret), "=r" (error)
5758
: "r" (clkid), "r" (ts), "r" (nr)
58-
: "memory");
59+
: "$1", "$3", "$8", "$9", "$10", "$11", "$12", "$13",
60+
"$14", "$15", "$24", "$25", "hi", "lo", "memory");
5961

6062
return error ? -ret : ret;
6163
}

0 commit comments

Comments
 (0)