[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH XTF 2/4] build: Drop unnecessary register clobbers



The code in question is executing __HYPERVISOR_multicall which is 2-parameter
hypercall, which means that args 3-6 are preserved (as opposed to the
arguments in the multicall_entry_t list, which are clobbered).

GCC 4.4 in CentOS 6 can't cope with the ebp clobber.

Reported-by: Glenn Enright <glenn@xxxxxxxxxxxxxxx>
Signed-off-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
---
 tests/xsa-213/main.c | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/tests/xsa-213/main.c b/tests/xsa-213/main.c
index 34eac06..6ecaf11 100644
--- a/tests/xsa-213/main.c
+++ b/tests/xsa-213/main.c
@@ -96,12 +96,6 @@ static long multi_iret_call(multicall_entry_t *multi, size_t 
nr)
 #else
                     "D" (multi), "S" (nr)
 #endif
-                  :
-#ifdef __i386__
-                  "edx", "esi", "edi", "ebp"
-#else
-                  "rdx", "r10", "r8", "r9"
-#endif
         );
 
     return rc;
-- 
2.1.4


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
https://lists.xen.org/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.