;*DDK*************************************************************************/
;
; COPYRIGHT    Copyright (C) 1995 IBM Corporation
;
;    The following IBM OS/2 WARP source code is provided to you solely for
;    the purpose of assisting you in your development of OS/2 WARP device
;    drivers. You may use this code in accordance with the IBM License
;    Agreement provided in the IBM Device Driver Source Kit for OS/2. This
;    Copyright statement may not be removed.;
;*****************************************************************************/
GPF_NORM	EQU	0        
GPF_USER	EQU	1        
CPU_286	EQU	0                
CPU_386	EQU	1                
CPU_486	EQU	2                
CPU_PENTIUM	EQU	3                
CPU_386B1	EQU	((386H   SHL  16 )  OR  0b1H )
CPU_386D1	EQU	((386H   SHL  16 )  OR  0d1H )
CPU_486B4	EQU	((486H   SHL  16 )  OR  0b4H )
CPU_PENTIUMXXX	EQU	((586H   SHL  16 )  OR  00H )
E_EXT	EQU	0001H                   
E_IDT	EQU	0002H                   
E_SELMASK       equ     0fffch                  


GSEL            equ     offset DOSGDTDATA:      
















whatmode macro  reg
ifnb <reg>
        smsw    reg                     
        shr     reg,1                   
else
        push    ax                      
        smsw    ax                      
        shr     al,1                    
        pop     ax                      
endif
        endm













dd_whatmode macro   reg
        whatmode    reg
        endm

