--- np2/i386c/ia32/segments.h 2004/03/12 13:34:08 1.8 +++ np2/i386c/ia32/segments.h 2005/03/12 12:32:54 1.10 @@ -1,4 +1,4 @@ -/* $Id: segments.h,v 1.8 2004/03/12 13:34:08 monaka Exp $ */ +/* $Id: segments.h,v 1.10 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 @@ -188,8 +186,8 @@ void load_descriptor(descriptor_t *descp #define CPU_SET_SEGREG(idx, selector) load_segreg(idx, selector, GP_EXCEPTION) void load_segreg(int idx, UINT16 selector, int exc); -void load_ss(UINT16 selector, descriptor_t *sd, UINT cpl); -void load_cs(UINT16 selector, descriptor_t *sd, UINT cpl); +void load_ss(UINT16 selector, const descriptor_t *sd, UINT cpl); +void load_cs(UINT16 selector, const descriptor_t *sd, UINT cpl); void load_ldtr(UINT16 selector, int exc); @@ -213,7 +211,7 @@ typedef struct { } selector_t; 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 }