From 8d262dd954cf0d16acc726d3eeacefb241360962 Mon Sep 17 00:00:00 2001 From: Art Yerkes Date: Mon, 3 Sep 2007 10:29:14 +0000 Subject: [PATCH] Add 16-byte alignment for ppc (required by eabi too) svn path=/trunk/; revision=28811 --- reactos/lib/3rdparty/mingw/crt1.c | 3 +++ reactos/lib/3rdparty/mingw/wcrt1.c | 3 +++ 2 files changed, 6 insertions(+) diff --git a/reactos/lib/3rdparty/mingw/crt1.c b/reactos/lib/3rdparty/mingw/crt1.c index d7961b8b0eb..6c54bebe9b2 100644 --- a/reactos/lib/3rdparty/mingw/crt1.c +++ b/reactos/lib/3rdparty/mingw/crt1.c @@ -222,6 +222,9 @@ __mingw_CRTStartup (void) #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 diff --git a/reactos/lib/3rdparty/mingw/wcrt1.c b/reactos/lib/3rdparty/mingw/wcrt1.c index 25a6306e3d6..2f163cb0791 100644 --- a/reactos/lib/3rdparty/mingw/wcrt1.c +++ b/reactos/lib/3rdparty/mingw/wcrt1.c @@ -223,6 +223,9 @@ __mingw_wCRTStartup (void) #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