Index: src/trusted/validator_mips/ncvalidate.h |
diff --git a/src/trusted/validator_arm/ncvalidate.h b/src/trusted/validator_mips/ncvalidate.h |
similarity index 52% |
copy from src/trusted/validator_arm/ncvalidate.h |
copy to src/trusted/validator_mips/ncvalidate.h |
index a4a319ac63b700cf621a9d0aab2de72a45f756a0..9c511dfd966bbdd34ad6fe02225bd19c1a936982 100644 |
--- a/src/trusted/validator_arm/ncvalidate.h |
+++ b/src/trusted/validator_mips/ncvalidate.h |
@@ -1,12 +1,11 @@ |
/* |
- * Copyright 2009 The Native Client Authors. All rights reserved. |
+ * Copyright 2012 The Native Client Authors. All rights reserved. |
* Use of this source code is governed by a BSD-style license that can |
* be found in the LICENSE file. |
- * Copyright 2009, Google Inc. |
*/ |
-#ifndef NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_ARM_V2_NCVALIDATE_H |
-#define NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_ARM_V2_NCVALIDATE_H |
+#ifndef NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_MIPS_NCVALIDATE_H |
+#define NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_MIPS_NCVALIDATE_H |
/* |
* The C interface to the validator, for use by the sel_ldr (which isn't |
@@ -24,13 +23,15 @@ EXTERN_C_BEGIN |
/* |
* Validates a complete code segment. |
* Arguments: |
- * mbase location of the code in memory right now. |
- * vbase virtual address where the code will appear at runtime. |
- * size number of bytes of code provided. |
+ * mbase location of the code in memory right now. |
+ * vbase virtual address where the code will appear at runtime. |
+ * size number of bytes of code provided. |
+ * stubout_mode info if the validator should stub-out functions. |
* Result: 0 if validation succeeded, non-zero if we found problems. |
*/ |
-int NCValidateSegment(uint8_t *mbase, uint32_t vbase, size_t size); |
+int NCValidateSegment(uint8_t *mbase, uint32_t vbase, size_t size, |
+ bool stubout_mode = false); |
EXTERN_C_END |
-#endif // NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_ARM_V2_NCVALIDATE_H |
+#endif // NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_MIPS_NCVALIDATE_H |