diff mbox

tests: The order of the fields are in reverse one isr stack.

Message ID 20091029091257.GZ29477@redhat.com (mailing list archive)
State New, archived
Headers show

Commit Message

Gleb Natapov Oct. 29, 2009, 9:12 a.m. UTC
None
diff mbox

Patch

diff --git a/kvm/user/test/x86/apic.c b/kvm/user/test/x86/apic.c
index 4e89c77..b6718ec 100644
--- a/kvm/user/test/x86/apic.c
+++ b/kvm/user/test/x86/apic.c
@@ -19,11 +19,11 @@  typedef struct {
 } idt_entry_t;
 
 typedef struct {
-    ulong rflags;
-    ulong cs;
-    ulong rip;
-    ulong func;
     ulong regs[sizeof(ulong)*2];
+    ulong func;
+    ulong rip;
+    ulong cs;
+    ulong rflags;
 } isr_regs_t;
 
 #ifdef __x86_64__