Changeset 5247 for trunk/src/win32k/ldr/mytkStartProcess.asm
- Timestamp:
- Feb 23, 2001, 3:57:55 AM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/win32k/ldr/mytkStartProcess.asm
r4347 r5247 1 ; $Id: mytkStartProcess.asm,v 1. 3 2000-10-01 02:58:19bird Exp $1 ; $Id: mytkStartProcess.asm,v 1.4 2001-02-23 02:57:55 bird Exp $ 2 2 ; 3 3 ; tkStartProcess overloader. Needed to clear the loader semaphore … … 26 26 extrn pLdrSem:DWORD 27 27 extrn _LDRClearSem@0:PROC 28 extrn _KSEMRequestMutex@8:PROC29 28 extrn _KSEMQueryMutex@8:PROC 30 29 … … 53 52 ; 54 53 extrn _tkStartProcess:PROC 54 55 55 56 56 ; … … 88 88 push eax ; Push address of usage count pointer. 89 89 push pLdrSem ; Push pointer to loader semaphore ( = handle). 90 call near ptr FLAT:_KSEMQueryMutex@890 call _KSEMQueryMutex@8 91 91 or eax, eax ; Check return code. (1 = our / free; 0 = not our but take) 92 92 pop eax ; Pops usage count. … … 99 99 cmp eax, 2 ; If usage count > 1 then issue a release. (should not happen here) 100 100 jl mtksp_ret ; jmp if usage count < 2. (tkStartProcess or tkExecPgm will free the last usage). 101 call near ptr FLAT:_LDRClearSem@0101 call _LDRClearSem@0 102 102 103 103 mtksp_ret: … … 105 105 pop ecx 106 106 pop eax 107 jmp near ptr FLAT:_tkStartProcess107 jmp _tkStartProcess 108 108 _mytkStartProcess ENDP 109 109
Note:
See TracChangeset
for help on using the changeset viewer.