pc64: dont 4 byte align stack pointer for amd64 in sysexec()

This commit is contained in:
cinap_lenrek 2014-02-05 19:48:36 +01:00
parent c76243e7e5
commit 868a262bb8

View file

@ -361,7 +361,7 @@ sysexec(va_list list)
* 8-byte align SP for those (e.g. sparc) that need it.
* execregs() will subtract another 4 bytes for argc.
*/
if((ssize+4) & 7)
if(BY2WD == 4 && (ssize+4) & 7)
ssize += 4;
if(PGROUND(ssize) >= USTKSIZE)