Lines Matching refs:segment
136 static unsigned long vm86_segment(u_char segment, in vm86_segment() argument
139 segment--; in vm86_segment()
141 if ( segment > PREFIX_SS_ ) in vm86_segment()
147 addr->selector = VM86_REG_(segment); in vm86_segment()
148 return (unsigned long)VM86_REG_(segment) << 4; in vm86_segment()
153 static long pm_address(u_char FPU_modrm, u_char segment, in pm_address() argument
160 segment--; in pm_address()
164 if ( segment > PREFIX_SS_ ) in pm_address()
171 switch ( segment ) in pm_address()
189 addr->selector = PM_REG_(segment); in pm_address()
192 descriptor = LDT_DESCRIPTOR(PM_REG_(segment)); in pm_address()
256 && (addr_modes.override.segment == PREFIX_CS_) ) in FPU_get_address()
323 address += vm86_segment(addr_modes.override.segment, addr); in FPU_get_address()
327 address = pm_address(FPU_modrm, addr_modes.override.segment, in FPU_get_address()
349 && (addr_modes.override.segment == PREFIX_CS_) ) in FPU_get_address_16()
403 if ( addr_modes.override.segment == PREFIX_DEFAULT ) in FPU_get_address_16()
404 addr_modes.override.segment = PREFIX_SS_; in FPU_get_address_16()
408 if ( addr_modes.override.segment == PREFIX_DEFAULT ) in FPU_get_address_16()
409 addr_modes.override.segment = PREFIX_SS_; in FPU_get_address_16()
419 if ( addr_modes.override.segment == PREFIX_DEFAULT ) in FPU_get_address_16()
420 addr_modes.override.segment = PREFIX_SS_; in FPU_get_address_16()
437 address += vm86_segment(addr_modes.override.segment, addr); in FPU_get_address_16()
441 address = pm_address(FPU_modrm, addr_modes.override.segment, in FPU_get_address_16()