

;	IBM Confidential
;
;	Copyright (c) IBM Corporation 1987, 1989
;
;	All Rights Reserved
;

;******************************************************************************
;
;  Source File: mdinc.inc
;
;  Description:
;	This file contains macros, structures, and defines for monitor
;	dispatcher as well as includes other files need by all monitor
;	dispatcher source files.
;
;  Entry Points:
;	none
;
;  External References:
;	none
;
; *****************************************************************************
;




INCL_DEF	EQU	1
INCL_TYPES	EQU	1

INCLUDE basemaca.INC


INCLUDE basedef.INC
INCLUDE semxport.INC
INCL_DOSP	 EQU	 1

OS2_NOPMAPI	EQU	1

INCLUDE BSEDOSP.INC
INCLUDE MI.INC
INCL_ERRORS	EQU	1

INCLUDE bseerr.INC

INCLUDE dosseg.inc
include osmaca.inc

INCLUDE pgexport.inc
INCLUDE tkexport.inc




mon_savemost_regs MACRO
; save all regs but AX and FLAGS for DCR 451
     PUSH EBX
     PUSH ECX
     PUSH EDX
     PUSH EDI
     PUSH ESI
     PUSH DS
     PUSH ES
ENDM

mon_restoremost_regs MACRO
;    restore all regs but AX and FLAGS for DCR 451
     POP ES
     POP DS
     POP ESI
     POP EDI
     POP EDX
     POP ECX
     POP EBX
ENDM


;to clear top half of _DWORD registers
FF_WORD		  EQU	0FFFFH


whattime	macro
	push	ds
	DosContext ds
	cmp	[InterruptLevel],-1
	pop	ds
endm

