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:15:40 +0200
committerptitSeb <sebastien.chev@gmail.com>2021-09-26 12:15:40 +0200
commit5403002a360a425f3fcc094fb6c6111e12529467 (patch)
tree8289ab09641be2ba035eb2426e5754b257e876fd /src/include
parent22f1a6c5ca003157d5d3f96ddc783bf542ed98f2 (diff)
downloadbox64-5403002a360a425f3fcc094fb6c6111e12529467.tar.gz
box64-5403002a360a425f3fcc094fb6c6111e12529467.zip
Some build fixes for the untested loogarch64 support
Diffstat (limited to 'src/include')
-rwxr-xr-xsrc/include/myalign.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/include/myalign.h b/src/include/myalign.h
index 4c805049..9d2aed34 100755
--- a/src/include/myalign.h
+++ b/src/include/myalign.h
@@ -109,10 +109,10 @@ typedef struct  va_list {
   va_list sysv_varargs;                                                 \
   {                                                                     \
     uintptr_t *p = (uintptr_t*)(SCRATCH);                               \
-    int n = (X64_VA_MAX_REG - (VA)->gp_offset)/8                        \
+    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);                                        \
-    sysv_varargs = (va_list)p;                                            \
+    sysv_varargs = (va_list)p;                                          \
   }
 // this is an approximation, and if the va_list have some float/double, it will fail!
 // if the funciton needs more than 100 args, it will also fail
@@ -123,7 +123,7 @@ typedef struct  va_list {
     p[0]=R_RDI; p[1]=R_RSI; p[2]=R_RDX;                                 \
     p[3]=R_RCX; p[4]=R_R8; p[5]=R_R9;                                   \
     memcpy(&p[6], STACK, 100*8);                                        \
-    sysv_varargs = (va_list)&p[N];                                        \
+    sysv_varargs = (va_list)&p[N];                                      \
   }
 #else
 #error Unknown architecture!