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

Side by Side 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, 4 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 unified diff | Download patch | Annotate | Revision Log
« 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2012 The Native Client Authors. All rights reserved. 2 * Copyright (c) 2012 The Native Client Authors. All rights reserved.
3 * Use of this source code is governed by a BSD-style license that can be 3 * Use of this source code is governed by a BSD-style license that can be
4 * found in the LICENSE file. 4 * found in the LICENSE file.
5 */ 5 */
6 6
7 #ifndef NATIVE_CLIENT_TESTS_COMMON_REGISTER_SET_H_ 7 #ifndef NATIVE_CLIENT_TESTS_COMMON_REGISTER_SET_H_
8 #define NATIVE_CLIENT_TESTS_COMMON_REGISTER_SET_H_ 8 #define NATIVE_CLIENT_TESTS_COMMON_REGISTER_SET_H_
9 9
10 #include "native_client/src/include/nacl_macros.h" 10 #include "native_client/src/include/nacl_macros.h"
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 /* Initialize the register set with arbitrary test data. */ 239 /* Initialize the register set with arbitrary test data. */
240 void RegsFillTestValues(struct NaClSignalContext *regs); 240 void RegsFillTestValues(struct NaClSignalContext *regs);
241 241
242 /* Adjust registers to follow the sandbox's constraints. */ 242 /* Adjust registers to follow the sandbox's constraints. */
243 void RegsApplySandboxConstraints(struct NaClSignalContext *regs); 243 void RegsApplySandboxConstraints(struct NaClSignalContext *regs);
244 244
245 /* This compares for equality all registers saved by REGS_SAVER_FUNC. */ 245 /* This compares for equality all registers saved by REGS_SAVER_FUNC. */
246 void RegsAssertEqual(const struct NaClSignalContext *actual, 246 void RegsAssertEqual(const struct NaClSignalContext *actual,
247 const struct NaClSignalContext *expected); 247 const struct NaClSignalContext *expected);
248 248
249 /* Zero out registers that are clobbered by function calls. */
250 void RegsUnsetNonCalleeSavedRegisters(struct NaClSignalContext *regs);
251
249 #endif 252 #endif
OLDNEW
« 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