浏览代码

* use an indirect jmp in fpc_longjmp

git-svn-id: trunk@24877 -
nickysn 12 年之前
父节点
当前提交
0de550c2c9
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 1 2
      rtl/i8086/setjump.inc

+ 1 - 2
rtl/i8086/setjump.inc

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