Diff for /np2/i386c/ia32/segments.h between versions 1.7 and 1.10

version 1.7, 2004/02/20 16:09:04 version 1.10, 2005/03/12 12:32:54
Line 12 Line 12
  * 2. Redistributions in binary form must reproduce the above copyright   * 2. Redistributions in binary form must reproduce the above copyright
  *    notice, this list of conditions and the following disclaimer in the   *    notice, this list of conditions and the following disclaimer in the
  *    documentation and/or other materials provided with the distribution.   *    documentation and/or other materials provided with the distribution.
  * 3. The name of the author may not be used to endorse or promote products  
  *    derived from this software without specific prior written permission.  
  *   *
  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR   * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES   * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
Line 144  do { \ Line 142  do { \
         (dscp)->u.seg.segend = (dscp)->u.seg.segbase + (dscp)->u.seg.limit; \          (dscp)->u.seg.segend = (dscp)->u.seg.segbase + (dscp)->u.seg.limit; \
         (dscp)->u.seg.c = ((idx) == CPU_CS_INDEX) ? 1 : 0; \          (dscp)->u.seg.c = ((idx) == CPU_CS_INDEX) ? 1 : 0; \
         (dscp)->u.seg.g = 0; \          (dscp)->u.seg.g = 0; \
           (dscp)->u.seg.wr = 1; \
         (dscp)->valid = 1; \          (dscp)->valid = 1; \
         (dscp)->p = 1; \          (dscp)->p = 1; \
         (dscp)->type = 0x02; /* writable */ \          (dscp)->type = 0x02; /* writable */ \
Line 187  void load_descriptor(descriptor_t *descp Line 186  void load_descriptor(descriptor_t *descp
   
 #define CPU_SET_SEGREG(idx, selector)   load_segreg(idx, selector, GP_EXCEPTION)  #define CPU_SET_SEGREG(idx, selector)   load_segreg(idx, selector, GP_EXCEPTION)
 void load_segreg(int idx, UINT16 selector, int exc);  void load_segreg(int idx, UINT16 selector, int exc);
 void load_ss(UINT16 selector, descriptor_t *sd, UINT cpl);  void load_ss(UINT16 selector, const descriptor_t *sd, UINT cpl);
 void load_cs(UINT16 selector, descriptor_t *sd, UINT cpl);  void load_cs(UINT16 selector, const descriptor_t *sd, UINT cpl);
 void load_ldtr(UINT16 selector, int exc);  void load_ldtr(UINT16 selector, int exc);
   
   
Line 212  typedef struct { Line 211  typedef struct {
 } selector_t;  } selector_t;
   
 int parse_selector(selector_t *ssp, UINT16 selector);  int parse_selector(selector_t *ssp, UINT16 selector);
 int selector_is_not_present(selector_t *ssp);  int selector_is_not_present(const selector_t *ssp);
   
 #ifdef __cplusplus  #ifdef __cplusplus
 }  }

Removed from v.1.7  
changed lines
  Added in v.1.10


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