Changeset 4076 for branches/Grace/src/win32k/ldr/mytkStartProcess.asm
- Timestamp:
- Aug 24, 2000, 3:36:29 AM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/Grace/src/win32k/ldr/mytkStartProcess.asm
r4073 r4076 1 ; $Id: mytkStartProcess.asm,v 1.1.2. 3 2000-08-23 04:25:44bird Exp $1 ; $Id: mytkStartProcess.asm,v 1.1.2.4 2000-08-24 01:36:26 bird Exp $ 2 2 ; 3 3 ; tkStartProcess overloader. Needed to clear the loader semaphore … … 72 72 ; @remark 73 73 mytkStartProcess PROC NEAR 74 ASSUME CS:CODE32,DS:FLAT, ES:NOTHING, SS:NOTHING74 ASSUME DS:FLAT, ES:NOTHING, SS:NOTHING 75 75 76 76 ; … … 88 88 push eax ; Push address of usage count pointer. 89 89 push pLdrSem ; Push pointer to loader semaphore ( = handle). 90 call _KSEMQueryMutex@890 call near ptr FLAT:_KSEMQueryMutex@8 91 91 or eax, eax ; Check return code. (1 = our / free; 0 = not our but take) 92 jz mtksp_ret ; jmp if not taken by us (FALSE).93 92 pop eax ; Pops usage count. 93 jz mtksp_ret ; jmp if not taken by us (rc=FALSE). 94 94 or eax, eax ; Check usage count. 95 95 jz mtksp_ret ; jmp if 0 (=free). … … 105 105 pop ecx 106 106 pop eax 107 jmp _tkStartProcess107 jmp near ptr FLAT:_tkStartProcess 108 108 mytkStartProcess ENDP 109 109
Note:
See TracChangeset
for help on using the changeset viewer.