diff options
author | Jes Sorensen <jes@sgi.com> | 2007-10-21 21:03:29 -0400 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2007-10-23 01:49:51 -0400 |
commit | 4614a3a3b638dfd7a67d0237944f6a76331af61d (patch) | |
tree | 8ec25721127eb899b97e46551b1644644ca698ac /include/asm-x86 | |
parent | 625efab1cd3d4da4634dfe26df6b4005385397e2 (diff) |
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 <jes@sgi.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'include/asm-x86')
-rw-r--r-- | include/asm-x86/lguest.h | 3 |
1 files changed, 1 insertions, 2 deletions
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[]; | |||
26 | struct lguest_regs | 26 | struct lguest_regs |
27 | { | 27 | { |
28 | /* Manually saved part. */ | 28 | /* Manually saved part. */ |
29 | unsigned long ebx, ecx, edx; | 29 | unsigned long eax, ebx, ecx, edx; |
30 | unsigned long esi, edi, ebp; | 30 | unsigned long esi, edi, ebp; |
31 | unsigned long gs; | 31 | unsigned long gs; |
32 | unsigned long eax; | ||
33 | unsigned long fs, ds, es; | 32 | unsigned long fs, ds, es; |
34 | unsigned long trapnum, errcode; | 33 | unsigned long trapnum, errcode; |
35 | /* Trap pushed part */ | 34 | /* Trap pushed part */ |