Use ENV[0].__jmpbuf.
authorroland <roland>
Mon, 5 Dec 1994 17:54:33 +0000 (17:54 +0000)
committerroland <roland>
Mon, 5 Dec 1994 17:54:33 +0000 (17:54 +0000)
sysdeps/mach/hurd/i386/longjmp-ts.c

index 8b8a3c0..07aed6a 100644 (file)
@@ -29,11 +29,11 @@ _hurd_longjmp_thread_state (void *state, jmp_buf env, int val)
 {
   struct i386_thread_state *ts = state;
 
-  ts->ebx = env[0].__bx;
-  ts->esi = env[0].__si;
-  ts->edi = env[0].__di;
-  ts->ebp = (int) env[0].__bp;
-  ts->uesp = (int) env[0].__sp;
-  ts->eip = (int) env[0].__pc;
-  ts->eax = val == 0 ? 1 : val;
+  ts->ebx = env[0].__jmpbuf.__bx;
+  ts->esi = env[0].__jmpbuf.__si;
+  ts->edi = env[0].__jmpbuf.__di;
+  ts->ebp = (int) env[0].__jmpbuf.__bp;
+  ts->uesp = (int) env[0].__jmpbuf.__sp;
+  ts->eip = (int) env[0].__jmpbuf.__pc;
+  ts->eax = val ?: 1;
 }