Changeset 4046 for branches/GRACE/src
- Timestamp:
- Aug 19, 2000, 4:37:21 PM (25 years ago)
- 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 $ 2 2 * 3 3 * Description: Autoprobes the os2krnl file and os2krnl[*].sym files. … … 109 109 {FALSE, -1, 12, "_ldrOpenPath", -1, -1, -1, -1, EPT_PROC32}, /* 18 */ 110 110 {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 */ 122 123 123 124 }; … … 1661 1662 int i; 1662 1663 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" 1664 1665 "*\n" 1665 1666 "* 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:32bird Exp $1 /* $Id: d32init.c,v 1.19.4.6 2000-08-19 14:37:04 bird Exp $ 2 2 * 3 3 * d32init.c - 32-bits init routines. … … 1155 1155 0, /* 28 */ 1156 1156 0, /* 29 */ 1157 0 /* 30 */ 1157 0, /* 30 */ 1158 0 /* 31 */ 1158 1159 }; 1159 1160 int i; … … 1427 1428 {(unsigned)fakeLDRClearSem, 1}, 1428 1429 {(unsigned)fakeKSEMRequestMutex, 1}, 1430 {(unsigned)fakeKSEMReleaseMutex, 1}, 1429 1431 {(unsigned)&fakeLDRSem, 3}, 1430 1432 {(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:04bird Exp $1 /* $Id: LdrCalls.h,v 1.3.4.3 2000-08-19 14:37:09 bird Exp $ 2 2 * 3 3 * Prototypes for the loader overrided function. … … 176 176 177 177 /** 178 * LDR GetSem - Requests the loader semaphore..178 * LDRRequestSem - Requests the loader semaphore.. 179 179 * @returns NO_ERROR if succesfully. 180 180 * OS2 errorcode on failure. (ERROR_INTERRUPT?) 181 181 */ 182 #define LDR GetSem() KSEMRequestMutex((HKMTX)pLdrSem, (ULONG)-1)182 #define LDRRequestSem() KSEMRequestMutex((HKMTX)pLdrSem, (ULONG)-1) 183 183 184 184 -
branches/GRACE/src/win32k/include/ldr.h
r3987 r4046 1 /* $Id: ldr.h,v 1.5.4. 2 2000-08-11 02:26:06bird Exp $1 /* $Id: ldr.h,v 1.5.4.3 2000-08-19 14:37:07 bird Exp $ 2 2 * 3 3 * ldr - Our loader "subsystem" public header file. … … 218 218 #define CCHFILENAME 261 /* This is defined in mytkExecPgm.asm too. */ 219 219 #define CCHARGUMENTS 1536 /* This is defined in mytkExecPgm.asm too. */ 220 extern char fLdrSemTaken; 220 221 extern const char fTkExecPgm; 221 222 extern 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:25bird Exp $1 /* $Id: probkrnl.h,v 1.13.4.4 2000-08-19 14:37:10 bird Exp $ 2 2 * 3 3 * Include file for ProbKrnl. … … 16 16 * Defined Constants And Macros * 17 17 *******************************************************************************/ 18 #define NBR_OF_KRNLIMPORTS 3 1/* When this is changed make sure to */18 #define NBR_OF_KRNLIMPORTS 32 /* When this is changed make sure to */ 19 19 /* update the arrays in d32init.c and */ 20 20 /* 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:33bird Exp $1 /* $Id: test.h,v 1.1.4.3 2000-08-19 14:37:11 bird Exp $ 2 2 * 3 3 * Definitions and declarations for test moduls. … … 96 96 ULONG LDRCALL fakeLDRClearSem(void); 97 97 ULONG KRNLCALL fakeKSEMRequestMutex(HKMTX hkmtx, ULONG ulTimeout); 98 ULONG KRNLCALL fakeKSEMReleaseMutex(HKMTX hkmtx); 98 99 extern HKMTX fakeLDRSem; 99 100 ULONG 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:33bird Exp $1 /* $Id: myldrOpen.cpp,v 1.10.4.4 2000-08-19 14:37:15 bird Exp $ 2 2 * 3 3 * myldrOpen - ldrOpen. … … 18 18 #define INCL_OS2KRNL_IO 19 19 #define INCL_OS2KRNL_TCB 20 #define INCL_OS2KRNL_SEM 20 21 21 22 /******************************************************************************* … … 115 116 { 116 117 kprintf(("myldrOpen-%d: rmalloc(640) failed\n", cNesting)); 117 return NO_ERROR;118 goto semcleanup; 118 119 } 119 120 … … 639 640 #endif 640 641 642 semcleanup: 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 641 656 /** @sketch 642 657 * 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:59bird Exp $1 /* $Id: pe2lx.cpp,v 1.18.4.3 2000-08-19 14:37:18 bird Exp $ 2 2 * 3 3 * Pe2Lx class implementation. Ring 0 and Ring 3 … … 1306 1306 ULONG Pe2Lx::openPath(PCHAR pachModname, USHORT cchModname, ldrlv_t *pLdrLv, PULONG pfl) /* (ldrOpenPath) */ 1307 1307 { 1308 #if 0 //def RING0 1308 #ifdef RING0 1309 #if 1 1310 return ldrOpenPath(pachModname, cchModname, pLdrLv, pfl); 1311 #else 1312 1309 1313 1310 1314 /* These defines sets the order the paths and pathlists are examined. */ … … 1553 1557 1554 1558 return ldrOpenPath(pachModname, cchModname, pLdrLv, pfl); 1559 #endif 1555 1560 #else 1556 1561 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:09bird Exp $1 /* $Id: fake.c,v 1.1.4.2 2000-08-19 14:37:21 bird Exp $ 2 2 * 3 3 * Fake stubs for the ldr and kernel functions we imports or overloads. … … 739 739 return NO_ERROR; 740 740 } 741 742 743 /** 744 * KSEMReleaseMutex faker. 745 * @returns NO_ERROR 746 * @param hkmtx 747 * @param ulTimeout 748 * @status completely implemented. 749 * @remark 750 */ 751 ULONG 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 741 764 742 765 -
branches/GRACE/src/win32k/win32k.vpj
r4025 r4046 1 1 [COMPILER] 2 2 MACRO=odin32_maketagfile();\n 3 FILTEREXPANSION=1 1 1 0 0 0 10 1 0 0 0 0 13 FILTEREXPANSION=1 1 1 0 0 0 0 0 1 0 0 0 0 1 4 4 compile=concur|capture|clear|:Compile:&Compile,nmake %n.obj 5 5 make=concur|capture|clear|:Build:&Build,nmake … … 145 145 [ASSOCIATION] 146 146 [STATE] 147 SCREEN: 1600 1200 176 176 1244 800 0 0 M 0 0 0 0 1275 898147 SCREEN: 1600 1200 312 376 1244 800 0 0 M 0 0 0 0 1307 825 148 148 CWD: H:\CODING\WORK\ODIN32\src\win32k 149 149 BUFFER: BN="F:\VSLICK40\OS2\vrestore.slk" 150 150 BI: 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 151 151 VIEW: 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" 152 BUFFER: BN="H:\CODING\WORK\ODIN32\src\win32k\test\win32ktst.c" 153 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=872 154 VIEW: LN=.33849 CL=40 LE=0 CX=39 CY=30 WI=5 BI=17 HT=0 HN=0 HF=0 HC=4 155 BUFFER: BN="H:\CODING\WORK\ODIN32\src\win32k\ldr\myldrOpen.cpp" 153 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 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 157 VIEW: LN=.11154 C CY=1 WI=5 BI=9 HT=0 HN=0 HF=0 HC=4 158 158 BUFFER: BN="H:\CODING\WORK\ODIN32\src\win32k\test\win32ktst.c" 159 159 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=872 … … 171 171 172 172 173