Diff for /np2/i386c/ia32/exception.c between versions 1.35 and 1.36

version 1.35, 2012/01/08 11:36:06 version 1.36, 2012/01/08 18:26:39
Line 147  exception(int num, int error_code) Line 147  exception(int num, int error_code)
   
         VERBOSE(("exception: ---------------------------------------------------------------- end"));          VERBOSE(("exception: ---------------------------------------------------------------- end"));
   
         interrupt(num, INTR_TYPE_EXTINTR, errorp, error_code);          interrupt(num, INTR_TYPE_EXCEPTION, errorp, error_code);
         CPU_STAT_EXCEPTION_COUNTER_CLEAR();          CPU_STAT_EXCEPTION_COUNTER_CLEAR();
         siglongjmp(exec_1step_jmpbuf, 1);          siglongjmp(exec_1step_jmpbuf, 1);
 }  }
Line 220  interrupt(int num, int intrtype, int err Line 220  interrupt(int num, int intrtype, int err
         UINT16 new_cs;          UINT16 new_cs;
         int exc_errcode;          int exc_errcode;
   
         VERBOSE(("interrupt: num = 0x%02x, intrtype = %s, errorp = %s, error_code = %08x", num, intrtype ? "on" : "off", errorp ? "on" : "off", error_code));          VERBOSE(("interrupt: num = 0x%02x, intrtype = %s, errorp = %s, error_code = %08x", num, (intrtype == INTR_TYPE_EXTINTR) ? "external" : (intrtype == INTR_TYPE_EXCEPTION ? "exception" : "softint"), errorp ? "on" : "off", error_code));
   
         CPU_SET_PREV_ESP();          CPU_SET_PREV_ESP();
   
Line 302  interrupt(int num, int intrtype, int err Line 302  interrupt(int num, int intrtype, int err
                 }                  }
   
                 /* 5.10.1.1. 例外/割り込みハンドラ・プロシージャの保護 */                  /* 5.10.1.1. 例外/割り込みハンドラ・プロシージャの保護 */
                 if ((intrtype != INTR_TYPE_EXTINTR) && (gsd.dpl < CPU_STAT_CPL)) {                  if ((intrtype == INTR_TYPE_SOFTINTR) && (gsd.dpl < CPU_STAT_CPL)) {
                         VERBOSE(("interrupt: intrtype(%d) && DPL(%d) < CPL(%d)", intrtype, gsd.dpl, CPU_STAT_CPL));                          VERBOSE(("interrupt: intrtype(softint) && DPL(%d) < CPL(%d)", gsd.dpl, CPU_STAT_CPL));
                         EXCEPTION(GP_EXCEPTION, exc_errcode);                          EXCEPTION(GP_EXCEPTION, exc_errcode);
                 }                  }
   

Removed from v.1.35  
changed lines
  Added in v.1.36


RetroPC.NET-CVS <cvs@retropc.net>