Diff for /np2/i386c/ia32/cpu_mem.c between versions 1.24 and 1.27

version 1.24, 2011/12/16 09:05:42 version 1.27, 2012/01/08 08:19:22
Line 218  exc: Line 218  exc:
         EXCEPTION(e, 0);          EXCEPTION(e, 0);
 }  }
   
 void  void MEMCALL
 cpu_stack_push_check(UINT16 s, descriptor_t *sdp, UINT32 sp, UINT len)  cpu_stack_push_check(UINT16 s, descriptor_t *sdp, UINT32 sp, UINT len)
 {  {
         UINT32 limit;          UINT32 limit;
Line 320  cpu_stack_push_check(UINT16 s, descripto Line 320  cpu_stack_push_check(UINT16 s, descripto
                          */                           */
                         if ((len > sdp->u.seg.limit)            /* len check */                          if ((len > sdp->u.seg.limit)            /* len check */
                          || (start > sp)                        /* wrap check */                           || (start > sp)                        /* wrap check */
                          || (sp > sdp->u.seg.limit)) {          /* [1] */                           || (sp > sdp->u.seg.limit + 1)) {      /* [1] */
                                 goto exc;                                  goto exc;
                         }                          }
                 }                  }
Line 329  cpu_stack_push_check(UINT16 s, descripto Line 329  cpu_stack_push_check(UINT16 s, descripto
   
 exc:  exc:
         VERBOSE(("cpu_stack_push_check: check failure."));          VERBOSE(("cpu_stack_push_check: check failure."));
         VERBOSE(("s = 0x%04x, sp = 0x%08x, len = %d", s, sp, len));          VERBOSE(("cpu_stack_push_check: selector = %04x, sp = 0x%08x, len = %d", s, sp, len + 1));
 #if defined(DEBUG)  #if defined(DEBUG)
         segdesc_dump(sdp);          segdesc_dump(sdp);
 #endif  #endif
         EXCEPTION(SS_EXCEPTION, s & 0xfffc);          EXCEPTION(SS_EXCEPTION, s & 0xfffc);
 }  }
   
 void  void MEMCALL
 cpu_stack_pop_check(UINT16 s, descriptor_t *sdp, UINT32 sp, UINT len)  cpu_stack_pop_check(UINT16 s, descriptor_t *sdp, UINT32 sp, UINT len)
 {  {
   

Removed from v.1.24  
changed lines
  Added in v.1.27


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