--- np2/i386c/ia32/segments.c 2004/03/23 15:29:34 1.15 +++ np2/i386c/ia32/segments.c 2005/03/12 12:32:54 1.17 @@ -1,4 +1,4 @@ -/* $Id: segments.c,v 1.15 2004/03/23 15:29:34 monaka Exp $ */ +/* $Id: segments.c,v 1.17 2005/03/12 12:32:54 monaka Exp $ */ /* * Copyright (c) 2003 NONAKA Kimihiro @@ -12,8 +12,6 @@ * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * 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 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES @@ -131,7 +129,7 @@ load_segreg(int idx, UINT16 selector, in * load SS register */ void -load_ss(UINT16 selector, descriptor_t *sd, UINT cpl) +load_ss(UINT16 selector, const descriptor_t *sd, UINT cpl) { CPU_STAT_SS32 = sd->d; @@ -143,7 +141,7 @@ load_ss(UINT16 selector, descriptor_t *s * load CS register */ void -load_cs(UINT16 selector, descriptor_t *sd, UINT cpl) +load_cs(UINT16 selector, const descriptor_t *sd, UINT cpl) { CPU_INST_OP32 = CPU_INST_AS32 = @@ -374,7 +372,7 @@ parse_selector(selector_t *ssp, UINT16 s } int -selector_is_not_present(selector_t *ssp) +selector_is_not_present(const selector_t *ssp) { UINT32 h;