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

Unified Diff: src/trusted/validator_arm/model.h

Issue 11194045: Change BKPT and UDF encodings on ARM. (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: Update copyright. Created 8 years, 2 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/validator_arm/inst_classes_testers.cc ('k') | src/trusted/validator_arm/validator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/trusted/validator_arm/model.h
diff --git a/src/trusted/validator_arm/model.h b/src/trusted/validator_arm/model.h
index ef66daa5b1770533fe9b48154afa066093f433a8..b1d44e628965a2e0e25734ffad7c265f49adff9d 100644
--- a/src/trusted/validator_arm/model.h
+++ b/src/trusted/validator_arm/model.h
@@ -35,6 +35,7 @@
#include <stdint.h>
#include <cstddef>
#include <string>
+#include "native_client/src/include/arm_sandbox.h"
#include "native_client/src/include/portability_bits.h"
namespace nacl_arm_dec {
@@ -256,8 +257,12 @@ static const int kArm32InstSize = 32;
// The number of bits in a word of a THUMB instruction.
static const int kThumbWordSize = 16;
-// BKPT #0x7777 is used as literal pool head.
-static const uint32_t kLiteralPoolHeadInstruction = 0xE1277777;
+// Special ARM instructions for sandboxing.
+static const uint32_t kLiteralPoolHead = NACL_INSTR_LITERAL_POOL_HEAD;
+static const uint32_t kBreakpoint = NACL_INSTR_BREAKPOINT;
+static const uint32_t kHaltFill = NACL_INSTR_HALT_FILL;
+static const uint32_t kAbortNow = NACL_INSTR_ABORT_NOW;
+static const uint32_t kFailValidation = NACL_INSTR_FAIL_VALIDATION;
// Models an instruction, either a 32-bit ARM instruction of unspecified type,
// or one word (16-bit) and two word (32-bit) THUMB instructions.
« no previous file with comments | « src/trusted/validator_arm/inst_classes_testers.cc ('k') | src/trusted/validator_arm/validator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698