mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 04:13:34 +00:00
Align stack to 16 bytes on mips
svn path=/trunk/; revision=28810
This commit is contained in:
Vendored
+7
@@ -215,9 +215,16 @@ __mingw_CRTStartup (void)
|
||||
/* Adust references to dllimported data that have non-zero offsets. */
|
||||
_pei386_runtime_relocator ();
|
||||
|
||||
#if defined(__i386__)
|
||||
/* Align the stack to 16 bytes for the sake of SSE ops in main
|
||||
or in functions inlined into main. */
|
||||
asm __volatile__ ("andl $-16, %%esp" : : : "%esp");
|
||||
#elif defined(__mips__)
|
||||
/* Align the stack to 16 bytes */
|
||||
asm __volatile__ ("andi %sp,%sp,-16" : : : "%sp");
|
||||
#else
|
||||
#error Unsupported architecture
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Call the main function. If the user does not supply one
|
||||
|
||||
Vendored
+4
-1
@@ -216,10 +216,13 @@ __mingw_wCRTStartup (void)
|
||||
/* Adust references to dllimported data that have non-zero offsets. */
|
||||
_pei386_runtime_relocator ();
|
||||
|
||||
#if defined(__i386__)
|
||||
/* Align the stack to 16 bytes for the sake of SSE ops in main
|
||||
or in functions inlined into main. */
|
||||
#if defined(__i386__)
|
||||
asm __volatile__ ("andl $-16, %%esp" : : : "%esp");
|
||||
#elif defined(__mips__)
|
||||
/* Align the stack to 16 bytes */
|
||||
asm __volatile__ ("andi %sp,%sp,-16" : : : "%sp");
|
||||
#else
|
||||
#error Unsupported architecture
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user