]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
Make grub_xen_hypercall on i386 cdecl rather than stdcall to avoid
authorVladimir Serbinenko <phcoder@gmail.com>
Mon, 16 Dec 2013 17:10:50 +0000 (18:10 +0100)
committerVladimir Serbinenko <phcoder@gmail.com>
Mon, 16 Dec 2013 17:10:50 +0000 (18:10 +0100)
linker trying to "fixup" the code.

ChangeLog
grub-core/kern/i386/xen/hypercall.S
include/grub/i386/xen/hypercall.h

index 1fac7e8f0694447e5cdd2481465736851ac03f94..62759bb25759369df807faef598e6394c175ebd8 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2013-12-16  Vladimir Serbinenko  <phcoder@gmail.com>
+
+       Make grub_xen_hypercall on i386 cdecl rather than stdcall to avoid
+       linker trying to "fixup" the code.
+
 2013-12-16  Vladimir Serbinenko  <phcoder@gmail.com>
 
        * grub-core/kern/x86_64/xen/startup.S: Align stack.
index aa47cac2ca74a44fb983b099e2f7373176c9c743..09d75c3a565008ceddce0092f7f68d69ca6c5835 100644 (file)
@@ -40,4 +40,4 @@ FUNCTION(grub_xen_hypercall)
        popl   %edi
        popl   %esi
        popl   %ebp
-       retl $16
+       ret
index 0152b2b2f097e5f5884185ecaaaffa53ef9d5d81..198ee94af57e901a7fd825b90fed99778597b6ac 100644 (file)
@@ -26,7 +26,7 @@ EXPORT_FUNC (grub_xen_hypercall) (grub_uint32_t callno, grub_uint32_t a0,
                                  grub_uint32_t a1, grub_uint32_t a2,
                                  grub_uint32_t a3, grub_uint32_t a4,
                                  grub_uint32_t a5)
-__attribute__ ((regparm (3), stdcall));
+__attribute__ ((regparm (3), cdecl));
 
 static inline int
 grub_xen_sched_op (int cmd, void *arg)