Ignore:
Timestamp:
Oct 1, 2000, 4:58:21 AM (25 years ago)
Author:
bird
Message:

Implemented tool for generating calltab for kernel imports. (mkcalltab)
Implemented API for accessing memory in another process. (*ProcessReadWrite)
Added kernel imports needed to implemented ProcessReadWrite.
Removed unused kernel imports.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/win32k/include/OS2KVM.h

    r4227 r4347  
    1 /* $Id: OS2KVM.h,v 1.6 2000-09-08 21:34:11 bird Exp $
     1/* $Id: OS2KVM.h,v 1.7 2000-10-01 02:58:17 bird Exp $
    22 *
    33 * OS/2 kernel VM functions.
     
    1717*   Defined Constants And Macros                                               *
    1818*******************************************************************************/
     19
     20/*
     21 * From SG24-4640-00
     22 * Object flags. (ob_fs)
     23 */
     24#define OB_PSEUDO           0x8000      /* Pseudo-object */
     25#define OB_API              0x4000      /* API allocated object */
     26#define OB_LOCKWAIT         0x2000      /* Some thread to wake in VMUnlock */
     27#define OB_LALIAS           0x1000      /* Object has aliases */
     28#define OB_SHARED           0x0800      /* Object's contents are shared */
     29#define OB_UVIRT            0x0400      /* UVirt object */
     30#define OB_ZEROINIT         0x0200      /* Object is zero-initialized */
     31#define OB_RESIDENT         0x0100      /* Initial allocation was resident */
     32#define OB_LOWMEM           0x0040      /* Object is in low memory */
     33#define OB_GUARD            0x0080      /* Page attribute/permission flags */
     34#define OB_EXEC             0x0020      /* Executable */
     35#define OB_READ             0x0010      /* Read permission */
     36#define OB_USER             0x0008      /* User Storage */
     37#define OB_WRITE            0x0004      /* Write permission */
     38#define OB_HUGE             0x0002      /* Object is huge */
     39#define OB_SHRINKABLE       0x0001      /* Object is Shrinkable */
     40#define OB_DHSETMEM         0x0001      /* DevHlp_VMSetMems are allowed */
     41
     42
     43/*
     44 * From SG24-4640-00
     45 * ob_xflags
     46 */
     47#define VMOB_SLOCK_WAIT     0x01        /* Waiting on short term locks to clear */
     48#define VMOB_LLOCK_WAIT     0x02        /* Waiting on long term locks to clear */
     49#define VMOB_DISC_SEG       0x04        /* Object is part of a discardable seg */
     50#define VMOB_HIGHMEM        0x08        /* Object was allocated via dh_vmalloc */
     51
     52
    1953
    2054/*                                            v8086.h */
     
    67101#define VMA_ARENAHEAP       0x06000000UL  /* Heap Arena */
    68102#define VMA_ARENAHIGHA      0x00008000UL  /* High shared arena (Warp >= fp13) */
    69 #define VMA_ARENAHIGH   (options.ulBuild >= MERLINFP13 ? VMA_ARENAHIGHA : 0UL)
     103#define VMA_ARENAHIGH   (options.ulBuild >= AURORAGA ? VMA_ARENAHIGHA : 0UL)
    70104#define VMA_ARENAMASKW      0x06000000UL  /* Warp < fp13 Arena Mask */
    71105#define VMA_ARENAMASKA      0x06008000UL  /* Aurora Arena Mask */
    72 #define VMA_ARENAMASK   (options.ulBuild >= MERLINFP13 ? VMA_ARENAMASKA : VMA_ARENAMASKW)
     106#define VMA_ARENAMASK   (options.ulBuild >= AURORAGA ? VMA_ARENAMASKA : VMA_ARENAMASKW)
    73107
     108#define VMA_ALIGNSEL        0x10000000UL  /* Selector aligment */
    74109#define VMA_ALIGNPAGE       0x18000000UL  /* (VPMVMAC_ALIGNPAGE)      Page alignment */
    75110
     
    91126
    92127#define VMAF2_WRITE         0x00000002UL  /* PAG_WRITE */
     128
     129
     130/*
     131 * VMMapDebugAlias flags.
     132 */
     133#define VMMDA_ARENAPRIVATE  0           /* Create alias in private arena */
     134#define VMMDA_ARENASYSTEM   4           /* Create alias in system arena */
     135#define VMMDA_READONLY      1           /* Create readonly alias */
    93136
    94137
     
    123166    PVMAC   pvmac);
    124167
     168APIRET KRNLCALL VMFreeMem(
     169    ULONG   ulAddress,
     170    HPTDA   hPTDA,
     171    ULONG   flFlags);
     172
     173APIRET KRNLCALL VMMapDebugAlias(
     174    ULONG   flVMFlags,
     175    ULONG   ulAddress,
     176    ULONG   cbSize,
     177    HPTDA   hPTDA,
     178    PVMAC   pvmac);
     179
    125180APIRET KRNLCALL VMObjHandleInfo(
    126181    USHORT  usHob,
Note: See TracChangeset for help on using the changeset viewer.