Diff for /np2/i386c/ia32/segments.c between versions 1.1 and 1.3

version 1.1, 2003/12/08 00:55:31 version 1.3, 2003/12/22 18:00:31
Line 38  load_segreg(int idx, WORD selector, int  Line 38  load_segreg(int idx, WORD selector, int 
         selector_t sel;          selector_t sel;
         int rv;          int rv;
   
           __ASSERT((unsigned int)idx < CPU_SEGREG_NUM);
         if ((unsigned int)idx >= CPU_SEGREG_NUM) {  
                 ia32_panic("load_segreg: sreg(%d)", idx);  
         }  
   
         if (!CPU_STAT_PM || CPU_STAT_VM86) {          if (!CPU_STAT_PM || CPU_STAT_VM86) {
                 descriptor_t sd;                  descriptor_t sd;
Line 145  void Line 142  void
 load_cs(WORD selector, descriptor_t* sdp, BYTE cpl)  load_cs(WORD selector, descriptor_t* sdp, BYTE cpl)
 {  {
   
         cpu_inst_default.op_32 = cpu_inst_default.as_32 = sdp->d;          CPU_STATSAVE.cpu_inst_default.op_32
               = CPU_STATSAVE.cpu_inst_default.as_32 = sdp->d;
         CPU_REGS_SREG(CPU_CS_INDEX) = (selector & ~3) | (cpl & 3);          CPU_REGS_SREG(CPU_CS_INDEX) = (selector & ~3) | (cpl & 3);
         CPU_STAT_SREG(CPU_CS_INDEX) = *sdp;          CPU_STAT_SREG(CPU_CS_INDEX) = *sdp;
         CPU_STAT_CPL = cpl & 3;          CPU_STAT_CPL = cpl & 3;
Line 172  load_ldtr(WORD selector, int exc) Line 170  load_ldtr(WORD selector, int exc)
         }          }
   
         /* check descriptor type */          /* check descriptor type */
         if (!sel.desc.s || (sel.desc.type != CPU_SYSDESC_TYPE_LDT)) {          if (sel.desc.s || (sel.desc.type != CPU_SYSDESC_TYPE_LDT)) {
                 EXCEPTION(exc, sel.selector);                  EXCEPTION(exc, sel.selector);
         }          }
   

Removed from v.1.1  
changed lines
  Added in v.1.3


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