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

Unified Diff: tests/stack_alignment/stack_alignment_asm_test.c

Issue 12256018: [MIPS] Add remaining parts for building tests for MIPS (Closed) Base URL: http://src.chromium.org/native_client/trunk/src/native_client/
Patch Set: Minor cleanup. Created 7 years, 9 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 | « tests/exception_test/nacl.scons ('k') | tests/stubout_mode/nacl.scons » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/stack_alignment/stack_alignment_asm_test.c
diff --git a/tests/stack_alignment/stack_alignment_asm_test.c b/tests/stack_alignment/stack_alignment_asm_test.c
index f6cc6857177e31c45100727451276dd86dfb3e84..85e0beb60e27359d3bdc3d606b20f26dfc873322 100644
--- a/tests/stack_alignment/stack_alignment_asm_test.c
+++ b/tests/stack_alignment/stack_alignment_asm_test.c
@@ -60,6 +60,21 @@ __asm__(
static const int kStackAlignment = 8;
static const int kStackPadBelowAlign = 0;
+#elif defined(__mips__)
+
+__asm__(
+ ".pushsection .text, \"ax\", %progbits\n"
+ ".global ThreadStartWrapper\n"
+ "ThreadStartWrapper:\n"
+ "move $a0, $sp\n" /* Set argument. */
+ "nop\n"
+ "bal ThreadStart\n"
+ "nop\n"
+ ".popsection\n");
+
+static const int kStackAlignment = 8;
+static const int kStackPadBelowAlign = 0;
+
#else
# error Unsupported architecture
#endif
« no previous file with comments | « tests/exception_test/nacl.scons ('k') | tests/stubout_mode/nacl.scons » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698