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

Unified Diff: pnacl/support/nacl_mips_defs.h

Issue 11039026: [MIPS] Untrusted versions of setjmp and longjmp. (Closed) Base URL: http://src.chromium.org/native_client/trunk/src/native_client/
Patch Set: Rebase. 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 | « no previous file | pnacl/support/setjmp_mips32.S » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pnacl/support/nacl_mips_defs.h
diff --git a/pnacl/support/nacl_arm_defs.h b/pnacl/support/nacl_mips_defs.h
similarity index 50%
copy from pnacl/support/nacl_arm_defs.h
copy to pnacl/support/nacl_mips_defs.h
index 5817254d9b9c41172e189911873e5759e7fd9b73..8a179d517ac589b62d8831a52de83e980431036f 100644
--- a/pnacl/support/nacl_arm_defs.h
+++ b/pnacl/support/nacl_mips_defs.h
@@ -4,15 +4,17 @@
* found in the LICENSE file.
*/
-#ifndef __NACL_ARM_DEFS_H__
-#define __NACL_ARM_DEFS_H__
+#ifndef __NACL_MIPS_DEFS_H__
+#define __NACL_MIPS_DEFS_H__
-/* These values are copied from:
+/*
+ * Values NACL_BLOCK_SHIFT and NACL_BLOCK_SIZE are copied from:
* native_client/src/trusted/service_runtime/nacl_config.h
*/
-#define NACL_BLOCK_SHIFT 4
-#define NACL_DATA_FLOW_MASK 0xC0000000
-#define NACL_CONTROL_FLOW_MASK 0xC000000F
+#define NACL_BLOCK_SHIFT 4
+#define NACL_BLOCK_SIZE 16
+#define JUMP_MASK $t6
+#define STORE_MASK $t7
#endif
« no previous file with comments | « no previous file | pnacl/support/setjmp_mips32.S » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698