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

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: Update per codereview. Created 7 years, 10 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: 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..8fcaa0896d29a4918640c05bc014f1f756538ad1 100644
--- a/tests/stack_alignment/stack_alignment_asm_test.c
+++ b/tests/stack_alignment/stack_alignment_asm_test.c
@@ -60,6 +60,19 @@ __asm__(
static const int kStackAlignment = 8;
static const int kStackPadBelowAlign = 0;
+#elif defined(__mips__)
+__asm__(
Mark Seaborn 2013/03/11 15:54:38 Add empty line before this for spacing consistency
petarj 2013/03/14 01:13:03 Done.
+ ".pushsection .text, \"ax\", %progbits\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

Powered by Google App Engine
This is Rietveld 408576698