about summary refs log tree commit diff stats
path: root/src/include
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2021-09-26 12:24:47 +0200
committerptitSeb <sebastien.chev@gmail.com>2021-09-26 12:24:47 +0200
commit27d18e41690c698eef55e19a8133e336a27e971a (patch)
tree88a91d7318c42ee70f84c027d3e848ae40f01e0e /src/include
parent5403002a360a425f3fcc094fb6c6111e12529467 (diff)
downloadbox64-27d18e41690c698eef55e19a8133e336a27e971a.tar.gz
box64-27d18e41690c698eef55e19a8133e336a27e971a.zip
Another build fixe for the untested loogarch64 support
Diffstat (limited to 'src/include')
-rwxr-xr-xsrc/include/myalign.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/include/myalign.h b/src/include/myalign.h
index 9d2aed34..e0539cf9 100755
--- a/src/include/myalign.h
+++ b/src/include/myalign.h
@@ -111,7 +111,7 @@ typedef struct  va_list {
     uintptr_t *p = (uintptr_t*)(SCRATCH);                               \
     int n = (X64_VA_MAX_REG - (VA)->gp_offset)/8;                       \
     if(n) memcpy(&p[0], (VA)->reg_save_area, n*8);                      \
-    memcpy(&p[n], STACK, 100*8);                                        \
+    memcpy(&p[n], (VA)->overflow_arg_area, 100*8);                      \
     sysv_varargs = (va_list)p;                                          \
   }
 // this is an approximation, and if the va_list have some float/double, it will fail!