From 4614a3a3b638dfd7a67d0237944f6a76331af61d Mon Sep 17 00:00:00 2001 From: Jes Sorensen Date: Mon, 22 Oct 2007 11:03:29 +1000 Subject: Reorder guest saved regs to match hyperall order Move eax next to ebx/ecx/edx in struct lguest_regs on i386, so they will be located together and allow it to map directly to a struct hcall_ring entry (which will be renamed struct hcall_args as in a subsequent patch). This is in preparation for making the code hcall code architecture independent. Signed-off-by: Jes Sorensen Signed-off-by: Rusty Russell --- include/asm-x86/lguest.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'include/asm-x86') diff --git a/include/asm-x86/lguest.h b/include/asm-x86/lguest.h index f10f1c6cc3d1..ccd338460811 100644 --- a/include/asm-x86/lguest.h +++ b/include/asm-x86/lguest.h @@ -26,10 +26,9 @@ extern unsigned long default_idt_entries[]; struct lguest_regs { /* Manually saved part. */ - unsigned long ebx, ecx, edx; + unsigned long eax, ebx, ecx, edx; unsigned long esi, edi, ebp; unsigned long gs; - unsigned long eax; unsigned long fs, ds, es; unsigned long trapnum, errcode; /* Trap pushed part */ -- cgit v1.2.2