ref: ea564504859b56c23656e4dc520fba282d2be86e
parent: 3ea1c6233b068715ab75e478db05db7571b2b9a2
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Wed Feb 5 14:48:36 EST 2014
pc64: dont 4 byte align stack pointer for amd64 in sysexec()
--- a/sys/src/9/port/sysproc.c
+++ b/sys/src/9/port/sysproc.c
@@ -361,7 +361,7 @@
* 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)
--
⑨