Ignore:
Timestamp:
Jul 11, 2010, 5:32:48 PM (15 years ago)
Author:
David Azarewicz
Message:

Malloc fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • OCO/trunk/include/devhelp.h

    r132 r509  
    55#define DEVHELP_INCLUDED
    66
    7 #ifdef __WATCOMC__ 
     7#ifdef __WATCOMC__
    88
    99#ifndef OS2_INCLUDED
     
    3434   "error:" \
    3535   value [ax]
     36
     37USHORT DevPushfCli();
     38#pragma aux DevPushfCli =       \
     39  "pushf"                       \
     40  "cli"                         \
     41  "pop ax"                      \
     42  value [ax];
     43
     44VOID DevPopf(USHORT cpuflags);
     45#pragma aux DevPopf =           \
     46  "push ax"                     \
     47  "popf"                        \
     48   parm [ax];
     49
    3650
    3751USHORT DevHelp_ABIOSCall(USHORT Lid, NPBYTE ReqBlk, USHORT Entry_Type);
     
    244258
    245259typedef 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
     266typedef struct _GATEDESCINFO {
     267  UCHAR    Type;
     268  UCHAR    ParmCount;
     269  SEL      Selector;
     270  USHORT   Reserved_1;
     271  ULONG    Offset;
    258272} GATEDESCINFO, __far *PGATEDESCINFO;
    259273
     
    385399
    386400/* 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
    388402   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
    390404   allows the compiler to catch the error.
    391405*/
     
    445459   modify exact [ax cx dx di];
    446460
    447 /* NOTE: After the DevHelp call, SI contains the modified selector. However, 
     461/* NOTE: After the DevHelp call, SI contains the modified selector. However,
    448462   the C interface has no provisions for returning this value to the caller.
    449463   You can, however, use the _SI() inline function defined in include.h.
     
    944958#define VMDHA_RESERVE           0x0100                               /*@V76282*/
    945959#define VMDHA_USEHIGHMEM        0x0800                               /*@V76282*/
    946  
     960
    947961USHORT DevHelp_VMAlloc(ULONG Flags, ULONG Size, ULONG PhysAddr, PLIN LinearAddr, PPVOID SelOffset);
    948962#pragma aux DevHelp_VMAlloc = \
Note: See TracChangeset for help on using the changeset viewer.