Browse Source

Call ungetregister for NR_D2 at m68k-palmos syscall exit

git-svn-id: trunk@37351 -
pierre 7 years ago
parent
commit
8b63f97173
1 changed files with 1 additions and 1 deletions
  1. 1 1
      compiler/m68k/n68kcal.pas

+ 1 - 1
compiler/m68k/n68kcal.pas

@@ -110,7 +110,7 @@ implementation
                   current_asmdata.CurrAsmList.concat(taicpu.op_const(A_TRAP,S_NO,15));
                   current_asmdata.CurrAsmList.concat(tai_const.create_16bit(tprocdef(procdefinition).extnumber));
                   if po_syscall_has_importnr in tprocdef(procdefinition).procoptions then
-                    cg.getcpuregister(current_asmdata.CurrAsmList,NR_D2);
+                    cg.ungetcpuregister(current_asmdata.CurrAsmList,NR_D2);
                 end
               else
                 internalerror(2017081201);