Author: arty
Date: Mon Sep  3 14:29:14 2007
New Revision: 28811
URL: 
http://svn.reactos.org/svn/reactos?rev=28811&view=rev
Log:
Add 16-byte alignment for ppc (required by eabi too)
Modified:
    trunk/reactos/lib/3rdparty/mingw/crt1.c
    trunk/reactos/lib/3rdparty/mingw/wcrt1.c
Modified: trunk/reactos/lib/3rdparty/mingw/crt1.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/3rdparty/mingw/crt1.c?…
==============================================================================
--- trunk/reactos/lib/3rdparty/mingw/crt1.c (original)
+++ trunk/reactos/lib/3rdparty/mingw/crt1.c Mon Sep  3 14:29:14 2007
@@ -222,6 +222,9 @@
 #elif defined(__mips__)
   /* Align the stack to 16 bytes */
   asm  __volatile__  ("andi %sp,%sp,-16" : : : "%sp");
+#elif defined(__PowerPC__)
+  /* Align the stack to 16 bytes */
+  asm  __volatile__  ("li 0,15\n\tandc 1,1,0" : : : "r1");
 #else
 #error Unsupported architecture
 #endif
Modified: trunk/reactos/lib/3rdparty/mingw/wcrt1.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/3rdparty/mingw/wcrt1.c…
==============================================================================
--- trunk/reactos/lib/3rdparty/mingw/wcrt1.c (original)
+++ trunk/reactos/lib/3rdparty/mingw/wcrt1.c Mon Sep  3 14:29:14 2007
@@ -223,6 +223,9 @@
 #elif defined(__mips__)
   /* Align the stack to 16 bytes */
   asm  __volatile__  ("andi %sp,%sp,-16" : : : "%sp");
+#elif defined(__PowerPC__)
+  /* Align the stack to 16 bytes */
+  asm  __volatile__  ("li 0,15\n\tandc 1,1,0" : : : "r1");
 #else
 #error Unsupported architecture
 #endif