- Timestamp:
- Aug 29, 2000, 12:44:25 AM (25 years ago)
- Location:
- branches
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/GRACE/src/win32k/dev16/probkrnl.c
r4073 r4108 1 /* $Id: probkrnl.c,v 1.20.4.1 0 2000-08-23 04:25:42bird Exp $1 /* $Id: probkrnl.c,v 1.20.4.11 2000-08-28 22:44:19 bird Exp $ 2 2 * 3 3 * Description: Autoprobes the os2krnl file and os2krnl[*].sym files. … … 126 126 {FALSE, -1, 10, "ptda_start", -1, -1, -1, -1, EPT_VARIMPORT16}, /* 35 */ 127 127 {FALSE, -1, 12, "ptda_environ", -1, -1, -1, -1, EPT_VARIMPORT16}, /* 36 */ 128 {FALSE, -1, 11, "ptda_module", -1, -1, -1, -1, EPT_VARIMPORT16}, /* 37 */ 129 {FALSE, -1, 18, "ptda_pBeginLIBPATH", -1, -1, -1, -1, EPT_VARIMPORT16}, /* 38 */ 130 {FALSE, -1, 16, "_ldrpFileNameBuf", -1, -1, -1, -1, EPT_VARIMPORT32}, /* 39 */ 128 {FALSE, -1, 12, "ptda_ptdasem", -1, -1, -1, -1, EPT_VARIMPORT16}, /* 37 */ 129 {FALSE, -1, 11, "ptda_module", -1, -1, -1, -1, EPT_VARIMPORT16}, /* 38 */ 130 {FALSE, -1, 18, "ptda_pBeginLIBPATH", -1, -1, -1, -1, EPT_VARIMPORT16}, /* 39 */ 131 {FALSE, -1, 16, "_ldrpFileNameBuf", -1, -1, -1, -1, EPT_VARIMPORT32}, /* 40 */ 131 132 132 133 }; … … 1677 1678 int i; 1678 1679 1679 printf16("/* $Id: probkrnl.c,v 1.20.4.1 0 2000-08-23 04:25:42bird Exp $\n"1680 printf16("/* $Id: probkrnl.c,v 1.20.4.11 2000-08-28 22:44:19 bird Exp $\n" 1680 1681 "*\n" 1681 1682 "* Autogenerated kernel symbol database.\n" -
branches/GRACE/src/win32k/dev32/d32init.c
r4072 r4108 1 /* $Id: d32init.c,v 1.19.4.1 0 2000-08-23 04:23:33bird Exp $1 /* $Id: d32init.c,v 1.19.4.11 2000-08-28 22:44:21 bird Exp $ 2 2 * 3 3 * d32init.c - 32-bits init routines. … … 1177 1177 0, /* 37 */ 1178 1178 0, /* 38 */ 1179 0 /* 39 */ 1179 0, /* 39 */ 1180 0 /* 40 */ 1180 1181 }; 1181 1182 int i; … … 1465 1466 {(unsigned)&fakeptda_start, 4}, 1466 1467 {(unsigned)&fakeptda_environ, 4}, 1468 {(unsigned)&fakeptda_ptdasem, 4}, 1467 1469 {(unsigned)&fakeptda_module, 4}, 1468 {(unsigned)&fakeptda_ module,4},1470 {(unsigned)&fakeptda_pBeginLIBPATH, 4}, 1469 1471 {(unsigned)&fakeldrpFileNameBuf, 3} 1470 1472 }; -
branches/GRACE/src/win32k/include/OS2KPTDA.h
r4018 r4108 1 /* $Id: OS2KPTDA.h,v 1.1.2. 1 2000-08-15 07:03:25bird Exp $1 /* $Id: OS2KPTDA.h,v 1.1.2.2 2000-08-28 22:44:22 bird Exp $ 2 2 * 3 3 * PTDA access functions. … … 54 54 55 55 56 USHORT ptdaGet_ptda_environ(PPTDA pPTDA); 57 USHORT ptdaGet_ptda_module(PPTDA pPTDA); 56 USHORT ptdaGet_ptda_environ(PPTDA pPTDA); 57 USHORT ptdaGet_ptda_module(PPTDA pPTDA); 58 HKSEMMTX ptda_ptda_ptdasem(PPTDA pPTDA); 58 59 59 60 #ifdef __cplusplus -
branches/GRACE/src/win32k/include/OS2KSEM.h
r4073 r4108 1 /* $Id: OS2KSEM.h,v 1.1.2. 2 2000-08-23 04:25:44bird Exp $1 /* $Id: OS2KSEM.h,v 1.1.2.3 2000-08-28 22:44:22 bird Exp $ 2 2 * 3 3 * OS/2 kernel Semaphore functions. … … 16 16 * Defined Constants And Macros * 17 17 *******************************************************************************/ 18 #define KSEM_INDEFINITE_WAIT -1 L19 #define KSEM_IMMEDIATE_RETURN 0 L18 #define KSEM_INDEFINITE_WAIT -1UL 19 #define KSEM_IMMEDIATE_RETURN 0UL 20 20 21 21 /* -
branches/GRACE/src/win32k/include/probkrnl.h
r4068 r4108 1 /* $Id: probkrnl.h,v 1.13.4. 7 2000-08-22 03:00:20bird Exp $1 /* $Id: probkrnl.h,v 1.13.4.8 2000-08-28 22:44:23 bird Exp $ 2 2 * 3 3 * Include file for ProbKrnl. … … 16 16 * Defined Constants And Macros * 17 17 *******************************************************************************/ 18 #define NBR_OF_KRNLIMPORTS 4 0/* When this is changed make sure to */18 #define NBR_OF_KRNLIMPORTS 41 /* When this is changed make sure to */ 19 19 /* update the arrays in d32init.c and */ 20 /* probkrnl.c */ 20 /* probkrnl.c, make test faker in */ 21 /* test.h and the appropriate fake.c */ 22 /* fakea.asm. */ 21 23 #define MAX_LENGTH_NAME 32 /* Max length for the function. */ 22 24 -
branches/GRACE/src/win32k/include/test.h
r4070 r4108 1 /* $Id: test.h,v 1.1.4. 6 2000-08-23 04:14:58bird Exp $1 /* $Id: test.h,v 1.1.4.7 2000-08-28 22:44:23 bird Exp $ 2 2 * 3 3 * Definitions and declarations for test moduls. … … 117 117 extern char fakeptda_start; 118 118 extern USHORT fakeptda_environ; 119 extern KSEMMTX fakeptda_ptdasem; 119 120 extern HMTE fakeptda_module; 120 121 extern PSZ fakeldrpFileNameBuf; -
branches/GRACE/src/win32k/ldr/myldrOpen.cpp
r4103 r4108 1 /* $Id: myldrOpen.cpp,v 1.10.4. 7 2000-08-28 11:31:45bird Exp $1 /* $Id: myldrOpen.cpp,v 1.10.4.8 2000-08-28 22:44:24 bird Exp $ 2 2 * 3 3 * myldrOpen - ldrOpen. … … 583 583 && isLdrStateLoadingEXE() 584 584 && (isLdrStateQAppType() || isLdrStateExecPgm()) 585 && (stricmp(psz2, ".RX") == 0 || stricmp(psz2, ".REX") )585 && (stricmp(psz2, ".RX") == 0 || stricmp(psz2, ".REX") == 0) 586 586 ) 587 587 { -
branches/GRACE/src/win32k/misc/OS2KPTDA.c
r4025 r4108 1 /* $Id: OS2KPTDA.c,v 1.1.2. 2 2000-08-17 08:23:35bird Exp $1 /* $Id: OS2KPTDA.c,v 1.1.2.3 2000-08-28 22:44:24 bird Exp $ 2 2 * 3 3 * PTDA access functions. … … 9 9 */ 10 10 11 /******************************************************************************* 12 * Defined Constants And Macros * 13 *******************************************************************************/ 14 #define INCL_OS2KRNL_SEM 15 #define INCL_OS2KRNL_PTDA 11 16 12 17 /******************************************************************************* … … 14 19 *******************************************************************************/ 15 20 #include <os2.h> 16 #include <OS2K PTDA.h>21 #include <OS2Krnl.h> 17 22 18 23 … … 28 33 extern ULONG pptda_start; 29 34 extern ULONG pptda_environ; 35 extern ULONG pptda_ptdasem; 30 36 extern ULONG pptda_module; 31 37 … … 55 61 56 62 63 /** 64 * Gets the ptda_ptdasem PTDA member. This member holds the intra-process semaphore which 65 * for example is used to serialize _LDRQAppType. 66 * @returns Content of the pPTDA->ptda_ptdasem member. 67 * @param pPTDA PTDA Pointer. (NULL is not allowed!) 68 */ 69 HKSEMMTX ptda_ptda_ptdasem(PPTDA pPTDA) 70 { 71 return (HKSEMMTX)(void*)(((char*)(void*)pPTDA) + (pptda_ptdasem - pptda_start)); 72 } 57 73 58 74 -
branches/Grace/src/win32k/include/OS2Krnl.h
r3834 r4108 1 /* $Id: OS2Krnl.h,v 1.7.4. 1 2000-07-16 22:43:27bird Exp $1 /* $Id: OS2Krnl.h,v 1.7.4.2 2000-08-28 22:44:22 bird Exp $ 2 2 * 3 3 * OS/2 kernel structures, typedefs and macros. … … 243 243 #endif 244 244 245 #if defined(INCL_OS2KRNL_PTDA) && !defined(INCL_OS2KRNL_SEM) 246 #define INCL_OS2KRNL_SEM 247 #endif 248 245 249 #ifdef INCL_OS2KRNL_IO 246 250 #include <OS2KIO.h> -
branches/Grace/src/win32k/ldr/calltab.asm
r4071 r4108 1 ; $Id: calltab.asm,v 1.12.4. 7 2000-08-23 04:16:43 bird Exp $1 ; $Id: calltab.asm,v 1.12.4.8 2000-08-28 22:44:23 bird Exp $ 2 2 ; 3 3 ; callTab - Call back again table - table with entry for each function or … … 86 86 public ptda_environ_sel 87 87 88 public pptda_ptdasem 89 public ptda_ptdasem_offObject 90 public _fpptda_ptdasem 91 public ptda_ptdasem_sel 92 88 93 public pptda_module 89 94 public ptda_module_offObject … … 320 325 321 326 ; 37 327 pptda_ptdasem dd 0 328 ptda_ptdasem_offObject dd 0 329 _fpptda_ptdasem dd 0 330 ptda_ptdasem_sel dw 0 331 db (MAXSIZE_PROLOG - 14) dup(0cch) 332 333 ; 38 322 334 pptda_module dd 0 323 335 ptda_module_offObject dd 0 … … 326 338 db (MAXSIZE_PROLOG - 14) dup(0cch) 327 339 328 ; 3 8340 ; 39 329 341 pptda_pBeginLIBPATH dd 0 330 342 ptda_pBeginLIBPATH_offObject dd 0 … … 333 345 db (MAXSIZE_PROLOG - 14) dup(0cch) 334 346 335 336 ; 39 347 ; 40 337 348 pldrpFileNameBuf dd 0 338 349 pldrpFileNameBuf_offObject dd 0 -
branches/Grace/src/win32k/ldr/myLDRQAppType.cpp
r4046 r4108 1 /* $Id: myLDRQAppType.cpp,v 1.3.4. 2 2000-08-19 14:37:14 bird Exp $1 /* $Id: myLDRQAppType.cpp,v 1.3.4.3 2000-08-28 22:44:24 bird Exp $ 2 2 * 3 3 * _myLDRQAppType - _LDRQAppType overload. … … 15 15 #define INCL_NOPMAPI 16 16 17 #define INCL_OS2KRNL_PTDA 17 18 #define INCL_OS2KRNL_SEM 18 19 … … 46 47 47 48 kprintf(("myLDRQAppType: entry\n")); 48 49 rc = KSEMRequestMutex(ptda_ptda_ptdasem(ptdaGetCur()), KSEM_INDEFINITE_WAIT); 50 if (rc != NO_ERROR) 51 { 52 kprintf(("myLDRQAppType: failed to get intra-process semaphore.\n")); 53 return rc; 54 } 49 55 rc = LDRRequestSem(); 50 56 if (rc != NO_ERROR) … … 63 69 64 70 LDRClearSem(); 71 KSEMReleaseMutex(ptda_ptda_ptdasem(ptdaGetCur())); 65 72 kprintf(("myLDRQAppType: exit\n")); 66 73 -
branches/Grace/src/win32k/test/fakea.asm
r4090 r4108 1 ; $Id: fakea.asm,v 1.1.4. 5 2000-08-25 04:47:28bird Exp $1 ; $Id: fakea.asm,v 1.1.4.6 2000-08-28 22:44:25 bird Exp $ 2 2 ; 3 3 ; Fake assembly imports. … … 31 31 public fakeptda_environ 32 32 public fakeptda_module 33 public fakeptda_ptdasem 34 public fakeptda_pBeginLIBPATH 33 35 public fakef_FuStrLenZ 34 36 public fakef_FuStrLen … … 60 62 fakeptda_dummy db 123 dup (0) 61 63 fakeptda_environ dw 1 ; 1 is the hardcoded HOB of the win32ktst.exe's environment. 64 fakeptda_ptda_sem db 20 dup (0) ; PTDA semaphore - Intra-Process serialisation mutex KSEM (sg244640). 62 65 fakeptda_module dw 1 ; 1 is the hardcoded HMTE of the current executable module. 63 66 fakeptda_pBeginLIBPATH dd 0 ; BEGINLIBPATH not implemented.
Note:
See TracChangeset
for help on using the changeset viewer.