From 6ebebc408e12133c4130923081c40bbfbdd281d4 Mon Sep 17 00:00:00 2001
From: Ben Pfaff <blp@cs.stanford.edu>
Date: Mon, 10 Jan 2005 07:18:03 +0000
Subject: [PATCH] Fix order of edi, esi, ebp, ebx in switch_threads_frame. 
 Doesn't matter because they're never used in the C code, but it's good to
 have them correct.  Thanks to Howie Xu <xuhao@stanford.edu> for reporting
 this bug.

---
 src/threads/switch.h | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/threads/switch.h b/src/threads/switch.h
index d79af5d..cc156b6 100644
--- a/src/threads/switch.h
+++ b/src/threads/switch.h
@@ -5,10 +5,10 @@
 /* switch_thread()'s stack frame. */
 struct switch_threads_frame 
   {
-    uint32_t ebx;               /*  0: Saved %ebx. */
-    uint32_t ebp;               /*  4: Saved %ebp. */
-    uint32_t esi;               /*  8: Saved %esi. */
-    uint32_t edi;               /* 12: Saved %edi. */
+    uint32_t edi;               /*  0: Saved %edi. */
+    uint32_t esi;               /*  4: Saved %esi. */
+    uint32_t ebp;               /*  8: Saved %ebp. */
+    uint32_t ebx;               /* 12: Saved %ebx. */
     void (*eip) (void);         /* 16: Return address. */
     struct thread *cur;         /* 20: switch_threads()'s CUR argument. */
     struct thread *next;        /* 24: switch_threads()'s NEXT argument. */
-- 
2.30.2