Changeset 5247 for trunk/src/win32k/ldr
- Timestamp:
- Feb 23, 2001, 3:57:55 AM (25 years ago)
- Location:
- trunk/src/win32k/ldr
- Files:
-
- 4 edited
-
myldrGetFileName.asm (modified) (2 diffs)
-
myldrOpenPatha.asm (modified) (3 diffs)
-
mytkExecPgm.asm (modified) (10 diffs)
-
mytkStartProcess.asm (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/win32k/ldr/myldrGetFileName.asm
r4780 r5247 1 ; $Id: myldrGetFileName.asm,v 1. 1 2000-12-11 06:33:00bird Exp $1 ; $Id: myldrGetFileName.asm,v 1.2 2001-02-23 02:57:54 bird Exp $ 2 2 ; 3 3 ; myldrGetFileName2 - assembly helper for ldrGetFileName. … … 61 61 push dword ptr [esp + 0ch] 62 62 push dword ptr [esp + 0ch] 63 call near ptr FLAT:CALLTAB:_ldrGetFileName@1263 call _ldrGetFileName@12 64 64 65 65 ; -
trunk/src/win32k/ldr/myldrOpenPatha.asm
r4347 r5247 1 ; $Id: myldrOpenPatha.asm,v 1. 4 2000-10-01 02:58:19bird Exp $1 ; $Id: myldrOpenPatha.asm,v 1.5 2001-02-23 02:57:54 bird Exp $ 2 2 ; 3 3 ; myldrOpenPatha - assembly helpers for myldrOpenPath. … … 63 63 push dword ptr [esp + 10h] 64 64 push dword ptr [esp + 10h] 65 call near ptr FLAT:CALLTAB:_ldrOpenPath_wrapped65 call _ldrOpenPath_wrapped 66 66 ret 14h 67 67 endif … … 95 95 96 96 new: 97 jmp near ptr FLAT:CALLTAB:_ldrOpenPath_wrapped97 jmp _ldrOpenPath_wrapped 98 98 _ldrOpenPath@20 ENDP 99 99 -
trunk/src/win32k/ldr/mytkExecPgm.asm
r4347 r5247 1 ; $Id: mytkExecPgm.asm,v 1.1 2 2000-10-01 02:58:19bird Exp $1 ; $Id: mytkExecPgm.asm,v 1.13 2001-02-23 02:57:55 bird Exp $ 2 2 ; 3 3 ; mytkExecPgm - tkExecPgm overload … … 176 176 mov di, dx ; bx:di is now filename address 177 177 push cs ; Problem calling far into the calltab segement. 178 call near ptr FLAT:f_FuStrLen178 call f_FuStrLen ; NB/TODO/FIXME: this is a 16-bit call... 179 179 jc tkepgm_backout ; If the FuStrLen call failed we bail out! 180 180 … … 195 195 mov di, [ebp + OffArg] ; bx:di -> arguments 196 196 push cs ; Problem calling far into the calltab segement. 197 call near ptr FLAT:f_FuStrLenZ197 call f_FuStrLenZ ; NB/TODO/FIXME: this is a 16-bit call... 198 198 jc tkepgm_backout 199 199 … … 269 269 mov cx, [ebp + cchFilename] ; cx = length of area to copy 270 270 push cs ; Problem calling far into the calltab segement. 271 call near ptr FLAT:f_FuBuff271 call f_FuBuff ; NB/TODO/FIXME: this is a 16-bit call... 272 272 jc tkepgm_backout2 ; In case of error back (quite unlikely). 273 273 … … 290 290 mov cx, [ebp + cchArgs] ; cx = length of area to copy 291 291 push cs ; Problem calling far into the calltab segement. 292 call near ptr FLAT:f_FuBuff292 call f_FuBuff ; NB/TODO/FIXME: this is a 16-bit call... 293 293 jc tkepgm_backout2 ; In case of error back (quite unlikely). 294 294 … … 316 316 tkepgm_callbehind: 317 317 push cs ; Problem calling far into the calltab segement. 318 call near ptr FLAT:g_tkExecPgm318 call g_tkExecPgm 319 319 pushfd ; preserve flags 320 320 push eax ; preserve result. … … 337 337 push eax ; Push address of usage count pointer. 338 338 push pLdrSem ; Push pointer to loader semaphore ( = handle). 339 call near ptr FLAT:_KSEMQueryMutex@8339 call _KSEMQueryMutex@8 340 340 or eax, eax ; Check return code. (1 = our / free; 0 = not our but take) 341 341 pop eax ; Pops usage count. … … 411 411 myg_tkExecPgm_CalltkExecPgm: 412 412 push cs ; Problem calling far into the calltab segement. 413 call near ptr FLAT:g_tkExecPgm413 call g_tkExecPgm 414 414 leave 415 415 retf … … 485 485 push eax ; Source buffer pointer. (user) 486 486 push ebx ; Target buffer pointer. 487 call near ptr FLAT:_TKFuBuff@16487 call _TKFuBuff@16 488 488 489 489 tkepce_ret: … … 543 543 xor ecx, ecx 544 544 push cs ; Problem calling far into the calltab segement. 545 call near ptr FLAT:f_FuStrLenZ545 call f_FuStrLenZ ; NB/TODO/FIXME: this is a 16-bit call... 546 546 jc tkepel_err_ret 547 547 movzx eax, cx -
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.
