Ignore:
Timestamp:
Sep 27, 2001, 5:08:35 AM (24 years ago)
Author:
bird
Message:

Win32k/kKrnlLib splittup: done the major stuff.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/splittup/src/win32k/misc/PerTaskW32kData.c

    r6296 r6841  
    1 /* $Id: PerTaskW32kData.c,v 1.2 2001-07-10 16:39:19 bird Exp $
     1/* $Id: PerTaskW32kData.c,v 1.2.2.1 2001-09-27 03:08:30 bird Exp $
    22 *
    33 * Per Task (Win32k) Data.
     
    1818#define INCL_OS2KRNL_TK                 /* OS2KRNL: Task Stuff */
    1919#define INCL_OS2KRNL_PTDA
     20#define INCL_KKL_AVL
     21#define INCL_KKL_LOG
     22#define INCL_KKL_HEAP
    2023
    2124/*******************************************************************************
     
    2326*******************************************************************************/
    2427#include <os2.h>
     28#include <OS2Krnl.h>
     29#include <kKrnlLib.h>
    2530
    2631#include "devSegDf.h"                   /* Win32k segment definitions. */
    2732#include "dev32.h"
    2833#include "dev32hlp.h"
    29 #include "log.h"
    30 #include "OS2Krnl.h"
    3134#include <string.h>
    32 #include "macros.h"
    33 #include "avl.h"
    3435#include "PerTaskW32kData.h"
    35 #include "rmalloc.h"
    3636
    3737
     
    3939*   Global Variables                                                           *
    4040*******************************************************************************/
    41 /*static*/ PAVLNODECORE pPTDTree;       /* Pointer to PTD tree */
     41/*static*/ PAVLPVNODECORE pPTDTree;     /* Pointer to PTD tree */
    4242                                        /* Currently assumed protected by ldrSem. */
    4343
     
    6565    if (pPTDA == 0)
    6666        pPTDA = ptdaGetCur();
    67     pptd = (PPTD)(void*)AVLGet(&pPTDTree, (AVLKEY)pPTDA);
     67    pptd = (PPTD)(void*)AVLPVGet(&pPTDTree, pPTDA);
    6868    if (!pptd && fCreate)
    6969    {
     
    7575        }
    7676        memset(pptd, 0, sizeof(*pptd));
    77         pptd->core.Key = (AVLKEY)pPTDA;
    78         AVLInsert(&pPTDTree, &pptd->core);
     77        pptd->core.Key = pPTDA;
     78        AVLPVInsert(&pPTDTree, &pptd->core);
    7979    }
    8080    return pptd;
     
    9393    if (pPTDA == 0)
    9494        pPTDA = ptdaGetCur();
    95     pptd = (PPTD)(void*)AVLRemove(&pPTDTree, (AVLKEY)pPTDA);
     95    pptd = (PPTD)(void*)AVLPVRemove(&pPTDTree, pPTDA);
    9696    if (pptd)
    9797    {
Note: See TracChangeset for help on using the changeset viewer.