Changeset 509 for OCO/trunk/include/devhelp.h
- Timestamp:
- Jul 11, 2010, 5:32:48 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
OCO/trunk/include/devhelp.h
r132 r509 5 5 #define DEVHELP_INCLUDED 6 6 7 #ifdef __WATCOMC__ 7 #ifdef __WATCOMC__ 8 8 9 9 #ifndef OS2_INCLUDED … … 34 34 "error:" \ 35 35 value [ax] 36 37 USHORT DevPushfCli(); 38 #pragma aux DevPushfCli = \ 39 "pushf" \ 40 "cli" \ 41 "pop ax" \ 42 value [ax]; 43 44 VOID DevPopf(USHORT cpuflags); 45 #pragma aux DevPopf = \ 46 "push ax" \ 47 "popf" \ 48 parm [ax]; 49 36 50 37 51 USHORT DevHelp_ABIOSCall(USHORT Lid, NPBYTE ReqBlk, USHORT Entry_Type); … … 244 258 245 259 typedef struct _SELDESCINFO { 246 UCHAR Type; 247 UCHAR Granularity; 248 LIN BaseAddr; 249 ULONG Limit; 250 } SELDESCINFO, __far *PSELDESCINFO; 251 252 typedef struct _GATEDESCINFO { 253 UCHAR Type; 254 UCHAR ParmCount; 255 SEL Selector; 256 USHORT Reserved_1; 257 ULONG Offset; 260 UCHAR Type; 261 UCHAR Granularity; 262 LIN BaseAddr; 263 ULONG Limit; 264 } SELDESCINFO, __far *PSELDESCINFO; 265 266 typedef struct _GATEDESCINFO { 267 UCHAR Type; 268 UCHAR ParmCount; 269 SEL Selector; 270 USHORT Reserved_1; 271 ULONG Offset; 258 272 } GATEDESCINFO, __far *PGATEDESCINFO; 259 273 … … 385 399 386 400 /* DevHelp_MonWrite has one change compared to the original specification. 387 The DataRecord parameter was originally a far (16:16) pointer. It has 401 The DataRecord parameter was originally a far (16:16) pointer. It has 388 402 been changed to a near pointer because DS must point to the default data 389 segment and therefore the DataRecord parameter must be near. This 403 segment and therefore the DataRecord parameter must be near. This 390 404 allows the compiler to catch the error. 391 405 */ … … 445 459 modify exact [ax cx dx di]; 446 460 447 /* NOTE: After the DevHelp call, SI contains the modified selector. However, 461 /* NOTE: After the DevHelp call, SI contains the modified selector. However, 448 462 the C interface has no provisions for returning this value to the caller. 449 463 You can, however, use the _SI() inline function defined in include.h. … … 944 958 #define VMDHA_RESERVE 0x0100 /*@V76282*/ 945 959 #define VMDHA_USEHIGHMEM 0x0800 /*@V76282*/ 946 960 947 961 USHORT DevHelp_VMAlloc(ULONG Flags, ULONG Size, ULONG PhysAddr, PLIN LinearAddr, PPVOID SelOffset); 948 962 #pragma aux DevHelp_VMAlloc = \
Note:
See TracChangeset
for help on using the changeset viewer.