summaryrefslogtreecommitdiff
path: root/sys/src/9/port/sysproc.c
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2014-02-05 19:48:36 +0100
committercinap_lenrek <cinap_lenrek@felloff.net>2014-02-05 19:48:36 +0100
commit868a262bb849dcdfbf5be6f15f2942421d5a2223 (patch)
treed7cebead9c6b2073cf90243a812ec65a012ff1ff /sys/src/9/port/sysproc.c
parentc76243e7e59ffdbcc1a7785f2ca6237128569919 (diff)
pc64: dont 4 byte align stack pointer for amd64 in sysexec()
Diffstat (limited to 'sys/src/9/port/sysproc.c')
-rw-r--r--sys/src/9/port/sysproc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/9/port/sysproc.c b/sys/src/9/port/sysproc.c
index 05e590da0..5a602112a 100644
--- a/sys/src/9/port/sysproc.c
+++ b/sys/src/9/port/sysproc.c
@@ -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)