3 #include <stddef.h> /* Definition of NULL */
4 #include <limits.h> /* Definition of UINT_MAX */
5 #include <stdio.h> /* fprintf and (FILE *) */
7 /* Allow external configuration of maximum concurrent XMS allocations */
8 #ifndef MAX_XMS_ALLOCATIONS
9 #define MAX_XMS_ALLOCATIONS 4
12 /* Address of the XMS driver */
13 static long XMSControl;
15 /* Mapping of XMS handle <-> normal pointer */
17 unsigned int XMSHandle;
18 void huge * XMSPointer;
21 static XMSHandleMap allocMapXMS[MAX_XMS_ALLOCATIONS];
23 static int initxms(void);
24 void huge * xmsmalloc(long unsigned int size);
25 void xmsfree(void huge * XMSPointer);
26 void xmsreport(void/*FILE * stream*/);