Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(132)

Unified Diff: linux_syscall_support.h

Issue 1903833002: Put r7 back into clobber registers in sys_clone() for thumb2. (Closed) Base URL: https://chromium.googlesource.com/linux-syscall-support/@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: linux_syscall_support.h
diff --git a/linux_syscall_support.h b/linux_syscall_support.h
index 8a42c1c8687b2af252811c28581cabfd89a3a3ae..93fdad751b4ce411b51db26af1f01090a1cbc82a 100644
--- a/linux_syscall_support.h
+++ b/linux_syscall_support.h
@@ -2377,9 +2377,6 @@ struct kernel_statfs {
__asm__ __volatile__(/* if (fn == NULL || child_stack == NULL)
* return -EINVAL;
*/
-#ifdef __thumb2__
- "push {r7}\n"
-#endif
"cmp %2,#0\n"
"it ne\n"
"cmpne %3,#0\n"
@@ -2435,19 +2432,12 @@ struct kernel_statfs {
"mov r7, %10\n"
"swi 0x0\n"
"1:\n"
-#ifdef __thumb2__
- "pop {r7}"
-#endif
: "=r" (__res)
: "i"(-EINVAL),
"r"(fn), "r"(__stack), "r"(__flags), "r"(arg),
"r"(__ptid), "r"(__tls), "r"(__ctid),
"i"(__NR_clone), "i"(__NR_exit)
-#ifdef __thumb2__
- : "cc", "lr", "memory");
-#else
: "cc", "r7", "lr", "memory");
-#endif
}
LSS_RETURN(int, __res);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698