2 * Emulation of priviledged instructions
4 * Copyright 1995 Alexandre Julliard
7 #include "wine/winuser16.h"
13 #include "sig_context.h"
14 #include "selectors.h"
15 #include "debugtools.h"
17 DECLARE_DEBUG_CHANNEL(int)
18 DECLARE_DEBUG_CHANNEL(io
)
22 #define IS_V86(context) (EFL_sig(context)&V86_FLAG)
23 #define IS_SEL_32(context,seg) \
24 (IS_V86(context) ? FALSE : IS_SELECTOR_32BIT(seg))
26 #define STACK_sig(context) \
27 (IS_SEL_32(context,SS_sig(context)) ? ESP_sig(context) : (DWORD)SP_sig(context))
29 #define ADD_STACK_sig(context,offset) \
30 do { if (IS_SEL_32(context,SS_sig(context))) ESP_sig(context) += (offset); \
31 else SP_sig(context) += (offset); } while(0)
33 #define MAKE_PTR(seg,off) \
34 (IS_SELECTOR_SYSTEM(seg) ? (void *)(off) : PTR_SEG_OFF_TO_LIN(seg,off))
36 #define MK_PTR(context,seg,off) \
37 (IS_V86(context) ? DOSMEM_MapRealToLinear(MAKELONG(off,seg)) \
40 #define STACK_PTR(context) \
41 (IS_V86(context) ? DOSMEM_MapRealToLinear(MAKELONG(SP_sig(context),SS_sig(context))) : \
42 (IS_SELECTOR_SYSTEM(SS_sig(context)) ? (void *)ESP_sig(context) : \
43 (PTR_SEG_OFF_TO_LIN(SS_sig(context),STACK_sig(context)))))
46 /***********************************************************************
47 * INSTR_ReplaceSelector
49 * Try to replace an invalid selector by a valid one.
50 * The only selector where it is allowed to do "mov ax,40;mov es,ax"
51 * is the so called 'bimodal' selector 0x40, which points to the BIOS
52 * data segment. Used by (at least) Borland products (and programs compiled
53 * using Borland products).
55 * See Undocumented Windows, Chapter 5, __0040.
57 static BOOL
INSTR_ReplaceSelector( SIGCONTEXT
*context
, WORD
*sel
)
59 extern char Call16_Start
, Call16_End
;
61 if (IS_SELECTOR_SYSTEM(CS_sig(context
)))
62 if ( (char *)EIP_sig(context
) >= &Call16_Start
63 && (char *)EIP_sig(context
) < &Call16_End
)
65 /* Saved selector may have become invalid when the relay code */
66 /* tries to restore it. We simply clear it. */
73 static WORD sys_timer
= 0;
75 sys_timer
= CreateSystemTimer( 55, DOSMEM_Tick
);
76 *sel
= DOSMEM_BiosDataSeg
;
79 if (!IS_SELECTOR_SYSTEM(*sel
) && !IS_SELECTOR_FREE(*sel
))
80 ERR_(int)("Got protection fault on valid selector, maybe your kernel is too old?\n" );
81 return FALSE
; /* Can't replace selector, crashdump */
85 /***********************************************************************
86 * INSTR_GetOperandAddr
88 * Return the address of an instruction operand (from the mod/rm byte).
90 static BYTE
*INSTR_GetOperandAddr( SIGCONTEXT
*context
, BYTE
*instr
,
91 int long_addr
, int segprefix
, int *len
)
93 int mod
, rm
, base
, index
= 0, ss
= 0, seg
= 0, off
;
95 #define GET_VAL(val,type) \
96 { *val = *(type *)instr; instr += sizeof(type); *len += sizeof(type); }
99 GET_VAL( &mod
, BYTE
);
107 case 0: return (BYTE
*)&EAX_sig(context
);
108 case 1: return (BYTE
*)&ECX_sig(context
);
109 case 2: return (BYTE
*)&EDX_sig(context
);
110 case 3: return (BYTE
*)&EBX_sig(context
);
111 case 4: return (BYTE
*)&ESP_sig(context
);
112 case 5: return (BYTE
*)&EBP_sig(context
);
113 case 6: return (BYTE
*)&ESI_sig(context
);
114 case 7: return (BYTE
*)&EDI_sig(context
);
123 GET_VAL( &sib
, BYTE
);
128 case 0: index
= EAX_sig(context
); break;
129 case 1: index
= ECX_sig(context
); break;
130 case 2: index
= EDX_sig(context
); break;
131 case 3: index
= EBX_sig(context
); break;
132 case 4: index
= 0; break;
133 case 5: index
= EBP_sig(context
); break;
134 case 6: index
= ESI_sig(context
); break;
135 case 7: index
= EDI_sig(context
); break;
141 case 0: base
= EAX_sig(context
); seg
= DS_sig(context
); break;
142 case 1: base
= ECX_sig(context
); seg
= DS_sig(context
); break;
143 case 2: base
= EDX_sig(context
); seg
= DS_sig(context
); break;
144 case 3: base
= EBX_sig(context
); seg
= DS_sig(context
); break;
145 case 4: base
= ESP_sig(context
); seg
= SS_sig(context
); break;
146 case 5: base
= EBP_sig(context
); seg
= SS_sig(context
); break;
147 case 6: base
= ESI_sig(context
); seg
= DS_sig(context
); break;
148 case 7: base
= EDI_sig(context
); seg
= DS_sig(context
); break;
153 if (rm
== 5) /* special case: ds:(disp32) */
155 GET_VAL( &base
, DWORD
);
156 seg
= DS_sig(context
);
160 case 1: /* 8-bit disp */
161 GET_VAL( &off
, BYTE
);
162 base
+= (signed char)off
;
165 case 2: /* 32-bit disp */
166 GET_VAL( &off
, DWORD
);
167 base
+= (signed long)off
;
171 else /* short address */
175 case 0: /* ds:(bx,si) */
176 base
= BX_sig(context
) + SI_sig(context
);
177 seg
= DS_sig(context
);
179 case 1: /* ds:(bx,di) */
180 base
= BX_sig(context
) + DI_sig(context
);
181 seg
= DS_sig(context
);
183 case 2: /* ss:(bp,si) */
184 base
= BP_sig(context
) + SI_sig(context
);
185 seg
= SS_sig(context
);
187 case 3: /* ss:(bp,di) */
188 base
= BP_sig(context
) + DI_sig(context
);
189 seg
= SS_sig(context
);
191 case 4: /* ds:(si) */
192 base
= SI_sig(context
);
193 seg
= DS_sig(context
);
195 case 5: /* ds:(di) */
196 base
= DI_sig(context
);
197 seg
= DS_sig(context
);
199 case 6: /* ss:(bp) */
200 base
= BP_sig(context
);
201 seg
= SS_sig(context
);
203 case 7: /* ds:(bx) */
204 base
= BX_sig(context
);
205 seg
= DS_sig(context
);
212 if (rm
== 6) /* special case: ds:(disp16) */
214 GET_VAL( &base
, WORD
);
215 seg
= DS_sig(context
);
219 case 1: /* 8-bit disp */
220 GET_VAL( &off
, BYTE
);
221 base
+= (signed char)off
;
224 case 2: /* 16-bit disp */
225 GET_VAL( &off
, WORD
);
226 base
+= (signed short)off
;
231 if (segprefix
!= -1) seg
= segprefix
;
233 /* Make sure the segment and offset are valid */
234 if (IS_SELECTOR_SYSTEM(seg
)) return (BYTE
*)(base
+ (index
<< ss
));
235 if (((seg
& 7) != 7) || IS_SELECTOR_FREE(seg
)) return NULL
;
236 if (GET_SEL_LIMIT(seg
) < (base
+ (index
<< ss
))) return NULL
;
237 return (BYTE
*)PTR_SEG_OFF_TO_LIN( seg
, (base
+ (index
<< ss
)) );
242 /***********************************************************************
245 * Emulate the LDS (and LES,LFS,etc.) instruction.
247 static BOOL
INSTR_EmulateLDS( SIGCONTEXT
*context
, BYTE
*instr
, int long_op
,
248 int long_addr
, int segprefix
, int *len
)
251 BYTE
*regmodrm
= instr
+ 1 + (*instr
== 0x0f);
252 BYTE
*addr
= INSTR_GetOperandAddr( context
, regmodrm
,
253 long_addr
, segprefix
, len
);
255 return FALSE
; /* Unable to emulate it */
256 seg
= *(WORD
*)(addr
+ (long_op
? 4 : 2));
258 if (!INSTR_ReplaceSelector( context
, &seg
))
259 return FALSE
; /* Unable to emulate it */
261 /* Now store the offset in the correct register */
263 switch((*regmodrm
>> 3) & 7)
266 if (long_op
) EAX_sig(context
) = *(DWORD
*)addr
;
267 else AX_sig(context
) = *(WORD
*)addr
;
270 if (long_op
) ECX_sig(context
) = *(DWORD
*)addr
;
271 else CX_sig(context
) = *(WORD
*)addr
;
274 if (long_op
) EDX_sig(context
) = *(DWORD
*)addr
;
275 else DX_sig(context
) = *(WORD
*)addr
;
278 if (long_op
) EBX_sig(context
) = *(DWORD
*)addr
;
279 else BX_sig(context
) = *(WORD
*)addr
;
282 if (long_op
) ESP_sig(context
) = *(DWORD
*)addr
;
283 else SP_sig(context
) = *(WORD
*)addr
;
286 if (long_op
) EBP_sig(context
) = *(DWORD
*)addr
;
287 else BP_sig(context
) = *(WORD
*)addr
;
290 if (long_op
) ESI_sig(context
) = *(DWORD
*)addr
;
291 else SI_sig(context
) = *(WORD
*)addr
;
294 if (long_op
) EDI_sig(context
) = *(DWORD
*)addr
;
295 else DI_sig(context
) = *(WORD
*)addr
;
299 /* Store the correct segment in the segment register */
303 case 0xc4: ES_sig(context
) = seg
; break; /* les */
304 case 0xc5: DS_sig(context
) = seg
; break; /* lds */
305 case 0x0f: switch(instr
[1])
307 case 0xb2: SS_sig(context
) = seg
; break; /* lss */
309 case 0xb4: FS_sig(context
) = seg
; break; /* lfs */
312 case 0xb5: GS_sig(context
) = seg
; break; /* lgs */
318 /* Add the opcode size to the total length */
320 *len
+= 1 + (*instr
== 0x0f);
325 /***********************************************************************
326 * INSTR_EmulateInstruction
328 * Emulate a priviledged instruction. Returns TRUE if emulation successful.
330 BOOL
INSTR_EmulateInstruction( SIGCONTEXT
*context
)
332 int prefix
, segprefix
, prefixlen
, len
, repX
, long_op
, long_addr
;
336 long_op
= long_addr
= IS_SEL_32(context
,CS_sig(context
));
337 instr
= (BYTE
*)MK_PTR(context
,CS_sig(context
),EIP_sig(context
));
338 if (!instr
) return FALSE
;
340 /* First handle any possible prefix */
342 segprefix
= -1; /* no prefix */
351 segprefix
= CS_sig(context
);
354 segprefix
= SS_sig(context
);
357 segprefix
= DS_sig(context
);
360 segprefix
= ES_sig(context
);
364 segprefix
= FS_sig(context
);
369 segprefix
= GS_sig(context
);
373 long_op
= !long_op
; /* opcode size prefix */
376 long_addr
= !long_addr
; /* addr size prefix */
378 case 0xf0: /* lock */
380 case 0xf2: /* repne */
383 case 0xf3: /* repe */
387 prefix
= 0; /* no more prefixes */
397 /* Now look at the actual instruction */
401 case 0x07: /* pop es */
402 case 0x17: /* pop ss */
403 case 0x1f: /* pop ds */
405 WORD seg
= *(WORD
*)STACK_PTR( context
);
406 if (INSTR_ReplaceSelector( context
, &seg
))
410 case 0x07: ES_sig(context
) = seg
; break;
411 case 0x17: SS_sig(context
) = seg
; break;
412 case 0x1f: DS_sig(context
) = seg
; break;
414 ADD_STACK_sig(context
, long_op
? 4 : 2);
415 EIP_sig(context
) += prefixlen
+ 1;
419 break; /* Unable to emulate it */
421 case 0x0f: /* extended instruction */
424 case 0x22: /* mov eax, crX */
427 fprintf(stderr
,"mov eax,cr0 at 0x%08lx, EAX=0x%08lx\n",
428 EIP_sig(context
),EAX_sig(context
)
430 EIP_sig(context
) += prefixlen
+3;
433 break; /*fallthrough to bad instruction handling */
435 break; /*fallthrough to bad instruction handling */
436 case 0x20: /* mov crX, eax */
438 case 0xe0: /* mov cr4, eax */
439 /* CR4 register . See linux/arch/i386/mm/init.c, X86_CR4_ defs
440 * bit 0: VME Virtual Mode Exception ?
441 * bit 1: PVI Protected mode Virtual Interrupt
442 * bit 2: TSD Timestamp disable
443 * bit 3: DE Debugging extensions
444 * bit 4: PSE Page size extensions
445 * bit 5: PAE Physical address extension
446 * bit 6: MCE Machine check enable
447 * bit 7: PGE Enable global pages
448 * bit 8: PCE Enable performance counters at IPL3
450 fprintf(stderr
,"mov cr4,eax at 0x%08lx\n",EIP_sig(context
));
451 EAX_sig(context
) = 0;
452 EIP_sig(context
) += prefixlen
+3;
454 case 0xc0: /* mov cr0, eax */
455 fprintf(stderr
,"mov cr0,eax at 0x%08lx\n",EIP_sig(context
));
456 EAX_sig(context
) = 0x10; /* FIXME: set more bits ? */
457 EIP_sig(context
) += prefixlen
+3;
459 default: /* fallthrough to illegal instruction */
462 /* fallthrough to illegal instruction */
465 case 0xa1: /* pop fs */
467 WORD seg
= *(WORD
*)STACK_PTR( context
);
468 if (INSTR_ReplaceSelector( context
, &seg
))
470 FS_sig(context
) = seg
;
471 ADD_STACK_sig(context
, long_op
? 4 : 2);
472 EIP_sig(context
) += prefixlen
+ 2;
480 case 0xa9: /* pop gs */
482 WORD seg
= *(WORD
*)STACK_PTR( context
);
483 if (INSTR_ReplaceSelector( context
, &seg
))
485 GS_sig(context
) = seg
;
486 ADD_STACK_sig(context
, long_op
? 4 : 2);
487 EIP_sig(context
) += prefixlen
+ 2;
494 case 0xb2: /* lss addr,reg */
496 case 0xb4: /* lfs addr,reg */
499 case 0xb5: /* lgs addr,reg */
501 if (INSTR_EmulateLDS( context
, instr
, long_op
,
502 long_addr
, segprefix
, &len
))
504 EIP_sig(context
) += prefixlen
+ len
;
509 break; /* Unable to emulate it */
511 case 0x6c: /* insb */
512 case 0x6d: /* insw/d */
513 case 0x6e: /* outsb */
514 case 0x6f: /* outsw/d */
516 int typ
= *instr
; /* Just in case it's overwritten. */
517 int outp
= (typ
>= 0x6e);
518 unsigned long count
= repX
?
519 (long_addr
? ECX_sig(context
) : CX_sig(context
)) : 1;
520 int opsize
= (typ
& 1) ? (long_op
? 4 : 2) : 1;
521 int step
= (EFL_sig(context
) & 0x400) ? -opsize
: +opsize
;
522 int seg
= outp
? DS_sig(context
) : ES_sig(context
); /* FIXME: is this right? */
525 /* FIXME: Check segment readable. */
528 /* FIXME: Check segment writeable. */
534 ECX_sig(context
) = 0;
544 data
= MK_PTR(context
, seg
,
545 long_addr
? ESI_sig(context
) : SI_sig(context
));
546 if (long_addr
) ESI_sig(context
) += step
;
547 else SI_sig(context
) += step
;
551 data
= MK_PTR(context
, seg
,
552 long_addr
? EDI_sig(context
) : DI_sig(context
));
553 if (long_addr
) EDI_sig(context
) += step
;
554 else DI_sig(context
) += step
;
560 *((BYTE
*)data
) = IO_inport( DX_sig(context
), 1);
561 TRACE_(io
)("0x%x < %02x @ %04x:%04x\n", DX_sig(context
),
562 *((BYTE
*)data
), CS_sig(context
), IP_sig(context
));
567 *((DWORD
*)data
) = IO_inport( DX_sig(context
), 4);
568 TRACE_(io
)("0x%x < %08lx @ %04x:%04x\n", DX_sig(context
),
569 *((DWORD
*)data
), CS_sig(context
), IP_sig(context
));
573 *((WORD
*)data
) = IO_inport( DX_sig(context
), 2);
574 TRACE_(io
)("0x%x < %04x @ %04x:%04x\n", DX_sig(context
),
575 *((WORD
*)data
), CS_sig(context
), IP_sig(context
));
579 IO_outport( DX_sig(context
), 1, *((BYTE
*)data
));
580 TRACE_(io
)("0x%x > %02x @ %04x:%04x\n", DX_sig(context
),
581 *((BYTE
*)data
), CS_sig(context
), IP_sig(context
));
586 IO_outport( DX_sig(context
), 4, *((DWORD
*)data
));
587 TRACE_(io
)("0x%x > %08lx @ %04x:%04x\n", DX_sig(context
),
588 *((DWORD
*)data
), CS_sig(context
), IP_sig(context
));
592 IO_outport( DX_sig(context
), 2, *((WORD
*)data
));
593 TRACE_(io
)("0x%x > %04x @ %04x:%04x\n", DX_sig(context
),
594 *((WORD
*)data
), CS_sig(context
), IP_sig(context
));
599 EIP_sig(context
) += prefixlen
+ 1;
603 case 0x8e: /* mov XX,segment_reg */
606 BYTE
*addr
= INSTR_GetOperandAddr(context
, instr
+ 1,
607 long_addr
, segprefix
, &len
);
609 break; /* Unable to emulate it */
611 if (!INSTR_ReplaceSelector( context
, &seg
))
612 break; /* Unable to emulate it */
614 switch((instr
[1] >> 3) & 7)
617 ES_sig(context
) = seg
;
618 EIP_sig(context
) += prefixlen
+ len
+ 1;
623 SS_sig(context
) = seg
;
624 EIP_sig(context
) += prefixlen
+ len
+ 1;
627 DS_sig(context
) = seg
;
628 EIP_sig(context
) += prefixlen
+ len
+ 1;
632 FS_sig(context
) = seg
;
633 EIP_sig(context
) += prefixlen
+ len
+ 1;
638 GS_sig(context
) = seg
;
639 EIP_sig(context
) += prefixlen
+ len
+ 1;
647 break; /* Unable to emulate it */
649 case 0xc4: /* les addr,reg */
650 case 0xc5: /* lds addr,reg */
651 if (INSTR_EmulateLDS( context
, instr
, long_op
,
652 long_addr
, segprefix
, &len
))
654 EIP_sig(context
) += prefixlen
+ len
;
657 break; /* Unable to emulate it */
659 case 0xcd: /* int <XX> */
662 ERR_(int)("int xx from 32-bit code is not supported.\n");
663 break; /* Unable to emulate it */
667 FARPROC16 addr
= INT_GetPMHandler( instr
[1] );
668 WORD
*stack
= (WORD
*)STACK_PTR( context
);
669 /* Push the flags and return address on the stack */
670 *(--stack
) = FL_sig(context
);
671 *(--stack
) = CS_sig(context
);
672 *(--stack
) = IP_sig(context
) + prefixlen
+ 2;
673 ADD_STACK_sig(context
, -3 * sizeof(WORD
));
674 /* Jump to the interrupt handler */
675 CS_sig(context
) = HIWORD(addr
);
676 EIP_sig(context
) = LOWORD(addr
);
680 case 0xcf: /* iret */
683 DWORD
*stack
= (DWORD
*)STACK_PTR( context
);
684 EIP_sig(context
) = *stack
++;
685 CS_sig(context
) = *stack
++;
686 EFL_sig(context
) = *stack
;
687 ADD_STACK_sig(context
, 3*sizeof(DWORD
)); /* Pop the return address and flags */
691 WORD
*stack
= (WORD
*)STACK_PTR( context
);
692 EIP_sig(context
) = *stack
++;
693 CS_sig(context
) = *stack
++;
694 FL_sig(context
) = *stack
;
695 ADD_STACK_sig(context
, 3*sizeof(WORD
)); /* Pop the return address and flags */
699 case 0xe4: /* inb al,XX */
700 AL_sig(context
) = IO_inport( instr
[1], 1 );
701 TRACE_(io
)("0x%x < %02x @ %04x:%04x\n", instr
[1],
702 AL_sig(context
), CS_sig(context
), IP_sig(context
));
703 EIP_sig(context
) += prefixlen
+ 2;
706 case 0xe5: /* in (e)ax,XX */
709 EAX_sig(context
) = IO_inport( instr
[1], 4 );
710 TRACE_(io
)("0x%x < %08lx @ %04x:%04x\n", instr
[1],
711 EAX_sig(context
), CS_sig(context
), IP_sig(context
));
715 AX_sig(context
) = IO_inport( instr
[1], 2 );
716 TRACE_(io
)("0x%x < %04x @ %04x:%04x\n", instr
[1],
717 AX_sig(context
), CS_sig(context
), IP_sig(context
));
719 EIP_sig(context
) += prefixlen
+ 2;
722 case 0xe6: /* outb XX,al */
723 IO_outport( instr
[1], 1, AL_sig(context
) );
724 TRACE_(io
)("0x%x > %02x @ %04x:%04x\n", instr
[1],
725 AL_sig(context
), CS_sig(context
), IP_sig(context
));
726 EIP_sig(context
) += prefixlen
+ 2;
729 case 0xe7: /* out XX,(e)ax */
732 IO_outport( instr
[1], 4, EAX_sig(context
) );
733 TRACE_(io
)("0x%x > %08lx @ %04x:%04x\n", instr
[1],
734 EAX_sig(context
), CS_sig(context
), IP_sig(context
));
738 IO_outport( instr
[1], 2, AX_sig(context
) );
739 TRACE_(io
)("0x%x > %04x @ %04x:%04x\n", instr
[1],
740 AX_sig(context
), CS_sig(context
), IP_sig(context
));
742 EIP_sig(context
) += prefixlen
+ 2;
745 case 0xec: /* inb al,dx */
746 AL_sig(context
) = IO_inport( DX_sig(context
), 1 );
747 TRACE_(io
)("0x%x < %02x @ %04x:%04x\n", DX_sig(context
),
748 AL_sig(context
), CS_sig(context
), IP_sig(context
));
749 EIP_sig(context
) += prefixlen
+ 1;
752 case 0xed: /* in (e)ax,dx */
755 EAX_sig(context
) = IO_inport( DX_sig(context
), 4 );
756 TRACE_(io
)("0x%x < %08lx @ %04x:%04x\n", DX_sig(context
),
757 EAX_sig(context
), CS_sig(context
), IP_sig(context
));
761 AX_sig(context
) = IO_inport( DX_sig(context
), 2 );
762 TRACE_(io
)("0x%x < %04x @ %04x:%04x\n", DX_sig(context
),
763 AX_sig(context
), CS_sig(context
), IP_sig(context
));
765 EIP_sig(context
) += prefixlen
+ 1;
768 case 0xee: /* outb dx,al */
769 IO_outport( DX_sig(context
), 1, AL_sig(context
) );
770 TRACE_(io
)("0x%x > %02x @ %04x:%04x\n", DX_sig(context
),
771 AL_sig(context
), CS_sig(context
), IP_sig(context
));
772 EIP_sig(context
) += prefixlen
+ 1;
775 case 0xef: /* out dx,(e)ax */
778 IO_outport( DX_sig(context
), 4, EAX_sig(context
) );
779 TRACE_(io
)("0x%x > %08lx @ %04x:%04x\n", DX_sig(context
),
780 EAX_sig(context
), CS_sig(context
), IP_sig(context
));
784 IO_outport( DX_sig(context
), 2, AX_sig(context
) );
785 TRACE_(io
)("0x%x > %04x @ %04x:%04x\n", DX_sig(context
),
786 AX_sig(context
), CS_sig(context
), IP_sig(context
));
788 EIP_sig(context
) += prefixlen
+ 1;
791 case 0xfa: /* cli, ignored */
792 EIP_sig(context
) += prefixlen
+ 1;
795 case 0xfb: /* sti, ignored */
796 EIP_sig(context
) += prefixlen
+ 1;
801 /* Check for Win16 __GP handler */
802 gpHandler
= HasGPHandler16( PTR_SEG_OFF_TO_SEGPTR( CS_sig(context
),
803 EIP_sig(context
) ) );
806 WORD
*stack
= (WORD
*)STACK_PTR( context
);
807 *--stack
= CS_sig(context
);
808 *--stack
= EIP_sig(context
);
809 ADD_STACK_sig(context
, -2*sizeof(WORD
));
811 CS_sig(context
) = SELECTOROF( gpHandler
);
812 EIP_sig(context
) = OFFSETOF( gpHandler
);
815 return FALSE
; /* Unable to emulate it */
818 #endif /* __i386__ */