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

Unified Diff: src/trusted/validator_x86/nccopycode.h

Issue 5738003: Resurrect Petr's 64-bit dynamic code modification CL:... (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client/
Patch Set: added test for double-break condition Created 10 years 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
Index: src/trusted/validator_x86/nccopycode.h
===================================================================
--- src/trusted/validator_x86/nccopycode.h (revision 3931)
+++ src/trusted/validator_x86/nccopycode.h (working copy)
@@ -9,9 +9,17 @@
#include "native_client/src/trusted/validator_x86/types_memory_model.h"
+#if NACL_TARGET_SUBARCH == 32
/* copies code from src to dest in a thread safe way, returns 0 on success */
bsy 2011/01/05 00:56:22 what do non-zero values mean?
int NCCopyCode(uint8_t *dst, uint8_t *src, NaClPcAddress vbase,
size_t sz, int bundle_size);
+#elif NACL_TARGET_SUBARCH == 64
+int NaClCopyCodeIter(uint8_t *dst, uint8_t *src,
bsy 2011/01/05 00:56:22 plz add comment on return value convention. this
elijahtaylor (use chromium) 2011/01/05 21:08:48 Changed to the bool style, would like someone to l
+ NaClPcAddress vbase, size_t size);
+#else
+#error "Unknown Platform"
+#endif
+
#endif /* NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_X86_COPYCODE_H_ */

Powered by Google App Engine
This is Rietveld 408576698