Changeset 4046 for branches/GRACE/src


Ignore:
Timestamp:
Aug 19, 2000, 4:37:21 PM (25 years ago)
Author:
bird
Message:

More bugs corrected.
It's working now!

Location:
branches/GRACE/src/win32k
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • branches/GRACE/src/win32k/dev16/probkrnl.c

    r4018 r4046  
    1 /* $Id: probkrnl.c,v 1.20.4.5 2000-08-15 07:03:23 bird Exp $
     1/* $Id: probkrnl.c,v 1.20.4.6 2000-08-19 14:36:53 bird Exp $
    22 *
    33 * Description:   Autoprobes the os2krnl file and os2krnl[*].sym files.
     
    109109    {FALSE, -1, 12, "_ldrOpenPath",         -1,  -1,  -1,  -1, EPT_PROC32},        /* 18 */
    110110    {FALSE, -1, 12, "_LDRClearSem",         -1,  -1,  -1,  -1, EPT_PROCIMPORT32},  /* 19 */
    111     {FALSE, -1, 17, "_KSEMRequestMutex",    -1,  -1,  -1,  -1, EPT_PROCIMPORT32},  /* 20 */
    112     {FALSE, -1,  7, "_LdrSem",              -1,  -1,  -1,  -1, EPT_VARIMPORT32},   /* 21 */
    113     {FALSE, -1,  9, "_TKSuBuff",            -1,  -1,  -1,  -1, EPT_PROCIMPORT32},  /* 22 */
    114     {FALSE, -1,  9, "_TKFuBuff",            -1,  -1,  -1,  -1, EPT_PROCIMPORT32},  /* 23 */
    115     {FALSE, -1, 11, "_TKFuBufLen",          -1,  -1,  -1,  -1, EPT_PROCIMPORT32},  /* 24 */
    116     {FALSE, -1, 21, "_ldrValidateMteHandle",-1,  -1,  -1,  -1, EPT_PROCIMPORT32},  /* 25 */
    117     {FALSE, -1,  8, "_pTCBCur",             -1,  -1,  -1,  -1, EPT_VARIMPORT16},   /* 26 */
    118     {FALSE, -1,  9, "_pPTDACur",            -1,  -1,  -1,  -1, EPT_VARIMPORT16},   /* 27 */
    119     {FALSE, -1, 10, "ptda_start",           -1,  -1,  -1,  -1, EPT_VARIMPORT16},   /* 28 */
    120     {FALSE, -1, 12, "ptda_environ",         -1,  -1,  -1,  -1, EPT_VARIMPORT16},   /* 29 */
    121     {FALSE, -1, 11, "ptda_module",          -1,  -1,  -1,  -1, EPT_VARIMPORT16},   /* 29 */
     111    {FALSE, -1, 17, "_KSEMRequestMutex",    -1,  -1,  -1,  -1, EPT_PROCIMPORT32},  /* 20  */
     112    {FALSE, -1, 17, "_KSEMReleaseMutex",    -1,  -1,  -1,  -1, EPT_PROCIMPORT32},  /* 21  */
     113    {FALSE, -1,  7, "_LdrSem",              -1,  -1,  -1,  -1, EPT_VARIMPORT32},   /* 22 */
     114    {FALSE, -1,  9, "_TKSuBuff",            -1,  -1,  -1,  -1, EPT_PROCIMPORT32},  /* 23 */
     115    {FALSE, -1,  9, "_TKFuBuff",            -1,  -1,  -1,  -1, EPT_PROCIMPORT32},  /* 24 */
     116    {FALSE, -1, 11, "_TKFuBufLen",          -1,  -1,  -1,  -1, EPT_PROCIMPORT32},  /* 25 */
     117    {FALSE, -1, 21, "_ldrValidateMteHandle",-1,  -1,  -1,  -1, EPT_PROCIMPORT32},  /* 26 */
     118    {FALSE, -1,  8, "_pTCBCur",             -1,  -1,  -1,  -1, EPT_VARIMPORT16},   /* 27 */
     119    {FALSE, -1,  9, "_pPTDACur",            -1,  -1,  -1,  -1, EPT_VARIMPORT16},   /* 28 */
     120    {FALSE, -1, 10, "ptda_start",           -1,  -1,  -1,  -1, EPT_VARIMPORT16},   /* 29 */
     121    {FALSE, -1, 12, "ptda_environ",         -1,  -1,  -1,  -1, EPT_VARIMPORT16},   /* 30 */
     122    {FALSE, -1, 11, "ptda_module",          -1,  -1,  -1,  -1, EPT_VARIMPORT16},   /* 31 */
    122123
    123124};
     
    16611662        int         i;
    16621663
    1663         printf16("/* $Id: probkrnl.c,v 1.20.4.5 2000-08-15 07:03:23 bird Exp $\n"
     1664        printf16("/* $Id: probkrnl.c,v 1.20.4.6 2000-08-19 14:36:53 bird Exp $\n"
    16641665                 "*\n"
    16651666                 "* Autogenerated kernel symbol database.\n"
  • branches/GRACE/src/win32k/dev32/d32init.c

    r4025 r4046  
    1 /* $Id: d32init.c,v 1.19.4.5 2000-08-17 08:23:32 bird Exp $
     1/* $Id: d32init.c,v 1.19.4.6 2000-08-19 14:37:04 bird Exp $
    22 *
    33 * d32init.c - 32-bits init routines.
     
    11551155        0,                              /* 28 */
    11561156        0,                              /* 29 */
    1157         0                               /* 30 */
     1157        0,                              /* 30 */
     1158        0                               /* 31 */
    11581159    };
    11591160    int i;
     
    14271428        {(unsigned)fakeLDRClearSem,         1},
    14281429        {(unsigned)fakeKSEMRequestMutex,    1},
     1430        {(unsigned)fakeKSEMReleaseMutex,    1},
    14291431        {(unsigned)&fakeLDRSem,             3},
    14301432        {(unsigned)fakeTKSuBuff,            1},
  • branches/GRACE/src/win32k/include/LdrCalls.h

    r4017 r4046  
    1 /* $Id: LdrCalls.h,v 1.3.4.2 2000-08-15 06:16:04 bird Exp $
     1/* $Id: LdrCalls.h,v 1.3.4.3 2000-08-19 14:37:09 bird Exp $
    22 *
    33 * Prototypes for the loader overrided function.
     
    176176
    177177/**
    178  * LDRGetSem - Requests the loader semaphore..
     178 * LDRRequestSem - Requests the loader semaphore..
    179179 * @returns   NO_ERROR if succesfully.
    180180 *            OS2 errorcode on failure. (ERROR_INTERRUPT?)
    181181 */
    182 #define LDRGetSem()   KSEMRequestMutex((HKMTX)pLdrSem, (ULONG)-1)
     182#define LDRRequestSem()   KSEMRequestMutex((HKMTX)pLdrSem, (ULONG)-1)
    183183
    184184
  • branches/GRACE/src/win32k/include/ldr.h

    r3987 r4046  
    1 /* $Id: ldr.h,v 1.5.4.2 2000-08-11 02:26:06 bird Exp $
     1/* $Id: ldr.h,v 1.5.4.3 2000-08-19 14:37:07 bird Exp $
    22 *
    33 * ldr - Our loader "subsystem" public header file.
     
    218218#define CCHFILENAME     261             /* This is defined in mytkExecPgm.asm too. */
    219219#define CCHARGUMENTS   1536             /* This is defined in mytkExecPgm.asm too. */
     220extern char         fLdrSemTaken;
    220221extern const char   fTkExecPgm;
    221222extern char         achTkExecPgmFilename[CCHFILENAME];
  • branches/GRACE/src/win32k/include/probkrnl.h

    r4018 r4046  
    1 /* $Id: probkrnl.h,v 1.13.4.3 2000-08-15 07:03:25 bird Exp $
     1/* $Id: probkrnl.h,v 1.13.4.4 2000-08-19 14:37:10 bird Exp $
    22 *
    33 * Include file for ProbKrnl.
     
    1616*   Defined Constants And Macros                                               *
    1717*******************************************************************************/
    18 #define NBR_OF_KRNLIMPORTS      31      /* When this is changed make sure to   */
     18#define NBR_OF_KRNLIMPORTS      32      /* When this is changed make sure to   */
    1919                                        /* update the arrays in d32init.c and  */
    2020                                        /* probkrnl.c */
  • branches/GRACE/src/win32k/include/test.h

    r4025 r4046  
    1 /* $Id: test.h,v 1.1.4.2 2000-08-17 08:23:33 bird Exp $
     1/* $Id: test.h,v 1.1.4.3 2000-08-19 14:37:11 bird Exp $
    22 *
    33 * Definitions and declarations for test moduls.
     
    9696ULONG LDRCALL fakeLDRClearSem(void);
    9797ULONG KRNLCALL fakeKSEMRequestMutex(HKMTX hkmtx, ULONG ulTimeout);
     98ULONG KRNLCALL fakeKSEMReleaseMutex(HKMTX hkmtx);
    9899extern HKMTX        fakeLDRSem;
    99100ULONG KRNLCALL   fakeTKFuBuff(PVOID pv, PVOID pvUsr, ULONG cb, ULONG fl);
  • branches/GRACE/src/win32k/ldr/myldrOpen.cpp

    r4025 r4046  
    1 /* $Id: myldrOpen.cpp,v 1.10.4.3 2000-08-17 08:23:33 bird Exp $
     1/* $Id: myldrOpen.cpp,v 1.10.4.4 2000-08-19 14:37:15 bird Exp $
    22 *
    33 * myldrOpen - ldrOpen.
     
    1818#define INCL_OS2KRNL_IO
    1919#define INCL_OS2KRNL_TCB
     20#define INCL_OS2KRNL_SEM
    2021
    2122/*******************************************************************************
     
    115116        {
    116117            kprintf(("myldrOpen-%d: rmalloc(640) failed\n", cNesting));
    117             return NO_ERROR;
     118            goto semcleanup;
    118119        }
    119120
     
    639640    #endif
    640641
     642semcleanup:
     643    /*
     644     * We have to clean the smaphore which was taken by mytkExecPgm here
     645     * because we might not return before the new child is finsished
     646     * executing.
     647     * It is not risk in releasing the semphore here since it's taken
     648     * three times now. First by tkExecPgm then by LDROpenExe.
     649     */
     650    if (isLdrStateExecPgm() && fLdrSemTaken)
     651    {
     652        KSEMReleaseMutex((HKMTX)pLdrSem);
     653        fLdrSemTaken = 0;
     654    }
     655
    641656    /** @sketch
    642657     *  Return rc.
  • branches/GRACE/src/win32k/pe2lx/pe2lx.cpp

    r3988 r4046  
    1 /* $Id: pe2lx.cpp,v 1.18.4.2 2000-08-11 02:26:59 bird Exp $
     1/* $Id: pe2lx.cpp,v 1.18.4.3 2000-08-19 14:37:18 bird Exp $
    22 *
    33 * Pe2Lx class implementation. Ring 0 and Ring 3
     
    13061306ULONG  Pe2Lx::openPath(PCHAR pachModname, USHORT cchModname, ldrlv_t *pLdrLv, PULONG pfl) /* (ldrOpenPath) */
    13071307{
    1308     #if 0 //def RING0
     1308    #ifdef RING0
     1309    #if 1
     1310    return ldrOpenPath(pachModname, cchModname, pLdrLv, pfl);
     1311    #else
     1312
    13091313
    13101314    /* These defines sets the order the paths and pathlists are examined. */
     
    15531557
    15541558    return ldrOpenPath(pachModname, cchModname, pLdrLv, pfl);
     1559    #endif
    15551560    #else
    15561561    NOREF(pachModname);
  • branches/GRACE/src/win32k/test/fake.c

    r3982 r4046  
    1 /* $Id: fake.c,v 1.1.4.1 2000-08-11 02:21:09 bird Exp $
     1/* $Id: fake.c,v 1.1.4.2 2000-08-19 14:37:21 bird Exp $
    22 *
    33 * Fake stubs for the ldr and kernel functions we imports or overloads.
     
    739739    return NO_ERROR;
    740740}
     741
     742
     743/**
     744 * KSEMReleaseMutex faker.
     745 * @returns   NO_ERROR
     746 * @param     hkmtx
     747 * @param     ulTimeout
     748 * @status    completely implemented.
     749 * @remark
     750 */
     751ULONG KRNLCALL fakeKSEMReleaseMutex(HKMTX hkmtx)
     752{
     753    printf("fakeKSEMReleaseMutex:           hkmtx = %p, usage count = %d, rc = %d\n",
     754           hkmtx, *(PLONG)hkmtx, NO_ERROR);
     755
     756    if ((*(PLONG)hkmtx) == 0)
     757        kprintf(("fakeKSEMReleaseMutex: sempahore is 0 allready\n"));
     758    else
     759        (*(PLONG)hkmtx)--;
     760
     761    return NO_ERROR;
     762}
     763
    741764
    742765
  • branches/GRACE/src/win32k/win32k.vpj

    r4025 r4046  
    11[COMPILER]
    22MACRO=odin32_maketagfile();\n
    3 FILTEREXPANSION=1 1 1 0 0 0 1 0 1 0 0 0 0 1
     3FILTEREXPANSION=1 1 1 0 0 0 0 0 1 0 0 0 0 1
    44compile=concur|capture|clear|:Compile:&Compile,nmake %n.obj
    55make=concur|capture|clear|:Build:&Build,nmake
     
    145145[ASSOCIATION]
    146146[STATE]
    147 SCREEN: 1600 1200 176 176 1244 800 0 0 M 0 0 0 0 1275 898
     147SCREEN: 1600 1200 312 376 1244 800 0 0 M 0 0 0 0 1307 825
    148148CWD: H:\CODING\WORK\ODIN32\src\win32k
    149149BUFFER: BN="F:\VSLICK40\OS2\vrestore.slk"
    150150BI: MA=1 254 1  TABS=1 9  WWS=3 IWT=0 ST=0 IN=0 BW=0 US=0 RO=0 SE=0 SN=0 BIN=0 MN=Fundamental   HM=0 MF=1
    151151VIEW: LN=.0 CL=1 LE=0 CX=0 CY=1 WI=5 BI=22 HT=0 HN=0 HF=0 HC=4
    152 BUFFER: BN="H:\coding\work\odin32\src\win32k\libconv.c"
     152BUFFER: BN="H:\CODING\WORK\ODIN32\src\win32k\test\win32ktst.c"
     153BI: MA=1 74 1  TABS=1 5  WWS=1 IWT=0 ST=0 IN=2 BW=0 US=32000 RO=0 SE=1 SN=0 BIN=0 MN=C  HM=0 MF=872
     154VIEW: LN=.33849 CL=40 LE=0 CX=39 CY=30 WI=5 BI=17 HT=0 HN=0 HF=0 HC=4
     155BUFFER: BN="H:\CODING\WORK\ODIN32\src\win32k\ldr\myldrOpen.cpp"
    153156BI: MA=1 74 1  TABS=1 5  WWS=1 IWT=0 ST=0 IN=2 BW=0 US=32000 RO=0 SE=1 SN=0 BIN=0 MN=C  HM=0 MF=0
    154 VIEW: LN=.11148 CL=33 LE=0 CX=32 CY=37 WI=5 BI=17 HT=0 HN=0 HF=0 HC=4
    155 BUFFER: BN="H:\CODING\WORK\ODIN32\src\win32k\dev16\probkrnl.c"
    156 BI: MA=1 74 1  TABS=1 5  WWS=1 IWT=0 ST=0 IN=2 BW=0 US=32000 RO=0 SE=1 SN=0 BIN=0 MN=C  HM=0 MF=0
    157 VIEW: LN=.5619 CL=30 LE=0 C CY=1 WI=5 BI=9 HT=0 HN=0 HF=0 HC=4
     157VIEW: LN=.11154 C CY=1 WI=5 BI=9 HT=0 HN=0 HF=0 HC=4
    158158BUFFER: BN="H:\CODING\WORK\ODIN32\src\win32k\test\win32ktst.c"
    159159BI: MA=1 74 1  TABS=1 5  WWS=1 IWT=0 ST=0 IN=2 BW=0 US=32000 RO=0 SE=1 SN=0 BIN=0 MN=C  HM=0 MF=872
     
    171171
    172172
    173 
     173
Note: See TracChangeset for help on using the changeset viewer.