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

Unified Diff: tests/common/register_set.h

Issue 10829110: Fix two register leaks in the trusted->untrusted context switch (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: Fix comment Created 8 years, 5 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 | « src/trusted/service_runtime/arch/x86_64/nacl_syscall_64.S ('k') | tests/common/register_set.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/common/register_set.h
diff --git a/tests/common/register_set.h b/tests/common/register_set.h
index 9654753ef9de4cb9d6e69713e6ea330978c1c9a8..11cd6afa3952fc415c7ada20519ac22af8daaa7d 100644
--- a/tests/common/register_set.h
+++ b/tests/common/register_set.h
@@ -246,4 +246,7 @@ void RegsApplySandboxConstraints(struct NaClSignalContext *regs);
void RegsAssertEqual(const struct NaClSignalContext *actual,
const struct NaClSignalContext *expected);
+/* Zero out registers that are clobbered by function calls. */
+void RegsUnsetNonCalleeSavedRegisters(struct NaClSignalContext *regs);
+
#endif
« no previous file with comments | « src/trusted/service_runtime/arch/x86_64/nacl_syscall_64.S ('k') | tests/common/register_set.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698