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

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: Rebase (Saturday morning). 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
« no previous file with comments | « src/trusted/service_runtime/nacl.scons ('k') | src/trusted/service_runtime/nacl_signal.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..7e0bd1611c2f5dce3cd348237c3d0cbde1b68ea1 100644
--- a/src/trusted/service_runtime/nacl_config.h
+++ b/src/trusted/service_runtime/nacl_config.h
@@ -252,6 +252,25 @@
*/
# 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 0x0FFFFFF0
+# define NACL_DATA_FLOW_MASK 0x3FFFFFFF
+# 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 */
+
#else /* NACL_ARCH(NACL_BUILD_ARCH) */
# error Unknown platform!
« no previous file with comments | « src/trusted/service_runtime/nacl.scons ('k') | src/trusted/service_runtime/nacl_signal.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698