diff options
author | ludwig <ludwig@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2007-07-03 08:16:21 +0000 |
---|---|---|
committer | ludwig <ludwig@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2007-07-03 08:16:21 +0000 |
commit | f52dd64512014eebd84effe237f71bae8e70e8f3 (patch) | |
tree | 8bbd77f4cc9bcd4220671798469b8f3d05cedf4d /code/qcommon | |
parent | 6215e491279947857385da038b43e4d3cec1334a (diff) | |
download | ioquake3-aero-f52dd64512014eebd84effe237f71bae8e70e8f3.tar.gz ioquake3-aero-f52dd64512014eebd84effe237f71bae8e70e8f3.zip |
fix stack alignment
git-svn-id: svn://svn.icculus.org/quake3/trunk@1104 edf5b092-35ff-0310-97b2-ce42778d08ea
Diffstat (limited to 'code/qcommon')
-rw-r--r-- | code/qcommon/vm_x86_64.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/code/qcommon/vm_x86_64.c b/code/qcommon/vm_x86_64.c index 128ddfa..b549c0e 100644 --- a/code/qcommon/vm_x86_64.c +++ b/code/qcommon/vm_x86_64.c @@ -991,7 +991,9 @@ int VM_CallCompiled( vm_t *vm, int *args ) { " movl %4,%%edi \r\n" \ " movq %2,%%r10 \r\n" \ " movq %3,%%r8 \r\n" \ + " subq $8, %%rsp # fix alignment as call pushes one value \r\n" \ " callq *%%r10 \r\n" \ + " addq $8, %%rsp \r\n" \ " movl %%edi, %0 \r\n" \ " movq %%rsi, %1 \r\n" \ : "=m" (programStack), "=m" (opStack) |