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

Side by Side Diff: src/trusted/validator_x86/nccopycode.h

Issue 3975001: Dynamic code modification support for x64 NaCl modules... (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client/
Patch Set: '' Created 10 years, 1 month 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
OLDNEW
1 /* 1 /*
2 * Copyright 2010 The Native Client Authors. All rights reserved. 2 * Copyright 2010 The Native Client Authors. All rights reserved.
3 * Use of this source code is governed by a BSD-style license that can 3 * Use of this source code is governed by a BSD-style license that can
4 * be found in the LICENSE file. 4 * be found in the LICENSE file.
5 */ 5 */
6 6
7 #ifndef NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_X86_NCCOPYCODE_H_ 7 #ifndef NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_X86_NCCOPYCODE_H_
8 #define NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_X86_NCCOPYCODE_H_ 8 #define NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_X86_NCCOPYCODE_H_
9 9
10 #include "native_client/src/trusted/validator_x86/types_memory_model.h" 10 #include "native_client/src/trusted/validator_x86/types_memory_model.h"
11 11
12 #if NACL_TARGET_SUBARCH == 32
12 /* copies code from src to dest in a thread safe way, returns 0 on success */ 13 /* copies code from src to dest in a thread safe way, returns 0 on success */
13 int NCCopyCode(uint8_t *dst, uint8_t *src, NaClPcAddress vbase, 14 int NCCopyCode(uint8_t *dst, uint8_t *src, NaClPcAddress vbase,
14 size_t sz, int bundle_size); 15 size_t sz, int bundle_size);
15 16
17 #elif NACL_TARGET_SUBARCH == 64
18 int NaClCopyCodeIter(uint8_t *dst, uint8_t *src,
19 NaClPcAddress vbase, size_t size);
20 #else
21 #error "Unknown Platform"
22 #endif
23
16 #endif /* NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_X86_COPYCODE_H_ */ 24 #endif /* NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_X86_COPYCODE_H_ */
17 25
OLDNEW
« no previous file with comments | « src/trusted/service_runtime/sel_validate_image.c ('k') | src/trusted/validator_x86/nccopycode.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698