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

Unified Diff: src/trusted/service_runtime/nacl_config.h

Issue 10919162: [MIPS] Implementation of sel_ldr for MIPS architecture. (Closed) Base URL: http://src.chromium.org/native_client/trunk/src/native_client/
Patch Set: Second update per Mark's comments. Created 8 years, 3 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
Index: src/trusted/service_runtime/nacl_config.h
diff --git a/src/trusted/service_runtime/nacl_config.h b/src/trusted/service_runtime/nacl_config.h
index 0d9fc0f5a2cf2e7703f472c736bab21872a43509..d31502847903a23fcf64fb491aebccda7827d499 100644
--- a/src/trusted/service_runtime/nacl_config.h
+++ b/src/trusted/service_runtime/nacl_config.h
@@ -252,6 +252,29 @@
*/
# define NACL_CALLEE_SAVE_LIST {r4, r5, r6, r7, r8, r9, r10, fp, sp}
+#elif NACL_ARCH(NACL_BUILD_ARCH) == NACL_mips
+
+#undef NACL_KERN_STACK_SIZE // Mips needs 128k pthread stack size
+#define NACL_KERN_STACK_SIZE (128 << 10)
+
+#define NACL_BLOCK_SHIFT 4
+
+/* 16-byte bundles, 256MB code segment*/
+# define NACL_CONTROL_FLOW_MASK (NACL_DATA_SEGMENT_START -1) & ~0xf;
+# define NACL_DATA_FLOW_MASK (1U * (1 << NACL_MAX_ADDR_BITS) -1);
Mark Seaborn 2012/09/18 03:24:34 Nit: put spaces around '-' operator
+# define NACL_USERRET_FIX (0x4)
+# define NACL_SYSARGS_FIX (NACL_USERRET_FIX + 0x4)
+# define NACL_SYSCALLRET_FIX (NACL_USERRET_FIX + 0x4)
+# define NACL_STACK_ALIGN_MASK (0x7)
+# define NACL_STACK_GETS_ARG (0)
+# define NACL_STACK_PAD_BELOW_ALIGN (0)
+# define NACL_STACK_RED_ZONE (0)
+/* 16 byte bundles */
+# define NACL_MIPS_BUNDLE_SIZE_LOG 4
Mark Seaborn 2012/09/18 03:24:34 You don't use this #define, so you can remove it
petarj 2012/09/19 17:27:51 Done.
+
+# define NACL_CALLEE_SAVE_LIST {t0, t1, t2, t3, t4, t5, t6, t7, s0, s1, s2, \
Mark Seaborn 2012/09/18 03:24:34 You don't use this as a macro (unlike ARM code), s
petarj 2012/09/19 17:27:51 Done.
+ s3, s4, s5, s6, s7, t8, t9, gp, sp, fp}
+
#else /* NACL_ARCH(NACL_BUILD_ARCH) */
# error Unknown platform!

Powered by Google App Engine
This is Rietveld 408576698