Browse Source

* use an indirect jmp in fpc_longjmp

git-svn-id: trunk@24877 -
nickysn 12 years ago
parent
commit
0de550c2c9
1 changed files with 1 additions and 2 deletions
  1. 1 2
      rtl/i8086/setjump.inc

+ 1 - 2
rtl/i8086/setjump.inc

@@ -42,11 +42,10 @@ asm
   jnz @@L1
   jnz @@L1
   inc ax
   inc ax
 @@L1:
 @@L1:
-  mov dx, word [bx + Jmp_buf.ip]
   mov bp, word [bx + Jmp_buf.bp]
   mov bp, word [bx + Jmp_buf.bp]
   mov sp, word [bx + Jmp_buf.sp]
   mov sp, word [bx + Jmp_buf.sp]
   // we should also clear the fpu
   // we should also clear the fpu
   // fninit no must be done elsewhere PM
   // fninit no must be done elsewhere PM
   // or we should reset the control word also
   // or we should reset the control word also
-  jmp dx
+  jmp word [bx + Jmp_buf.ip]
 end;
 end;