Palacios Public Git Repository

To checkout Palacios execute

  git clone http://v3vee.org/palacios/palacios.web/palacios.git
This will give you the master branch. You probably want the devel branch or one of the release branches. To switch to the devel branch, simply execute
  cd palacios
  git checkout --track -b devel origin/devel
The other branches are similar.


Compile fixes for GCC 5.4+ (core VMM only)
[palacios.git] / palacios / src / palacios / vmx_lowlevel.S
index 757d835..78f2d84 100644 (file)
@@ -268,10 +268,14 @@ vmx_launch_ret:
 
 
 #define PRE_LAUNCH(return_target)      \
+    push %ebp;                         \
+    movl %esp, %ebp;                   \
     pushf;                             \
     PUSHA;                             \
-    pushl %edi;                                \
-    pushl %edx;                                \
+                                       \
+    movl 8(%ebp),  %edi;               \
+    movl 12(%ebp), %esi;               \
+    movl 16(%ebp), %edx;               \
                                        \
     movl %esp, %eax;                   \
     movl $VMCS_HOST_RSP, %ebx;         \
@@ -289,6 +293,8 @@ vmx_launch_ret:
     restore_registers(%edi);
 
 
+// 32 bit GCC passes arguments via stack
+
 .align 4
 .globl v3_vmx_resume
 v3_vmx_resume:
@@ -346,6 +352,7 @@ vmx_launch_ret:
     jmp .Lreturn
 
 .Lreturn:
+    pop  %ebp;
     ret
 
 #endif