Changeset 4073 for branches/Grace/src
- Timestamp:
- Aug 23, 2000, 6:25:46 AM (25 years ago)
- Location:
- branches/Grace/src/win32k
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/Grace/src/win32k/ldr/mytkStartProcess.asm
r4068 r4073 1 ; $Id: mytkStartProcess.asm,v 1.1.2. 2 2000-08-22 03:00:22bird Exp $1 ; $Id: mytkStartProcess.asm,v 1.1.2.3 2000-08-23 04:25:44 bird Exp $ 2 2 ; 3 3 ; tkStartProcess overloader. Needed to clear the loader semaphore … … 52 52 ; Calltable entry for tkStartProcess 53 53 ; 54 extrn _ g_tkStartProcess:PROC54 extrn _tkStartProcess:PROC 55 55 56 56 ; … … 105 105 pop ecx 106 106 pop eax 107 jmp _g_tkStartProcess107 jmp _tkStartProcess 108 108 mytkStartProcess ENDP 109 109 -
branches/Grace/src/win32k/test/fakea.asm
r4052 r4073 1 ; $Id: fakea.asm,v 1.1.4. 2 2000-08-20 08:08:50bird Exp $1 ; $Id: fakea.asm,v 1.1.4.3 2000-08-23 04:25:46 bird Exp $ 2 2 ; 3 3 ; Fake assembly imports. … … 35 35 public fakef_FuBuff 36 36 public fakeg_tkExecPgm 37 public fake_tkStartProcess 37 38 public CalltkExecPgm 38 39 39 40 40 41 ; 41 ; Imported Functions 42 ; Imported Functions and Variables. 42 43 ; 43 44 extrn tkExecPgmWorker:PROC ; fake.c 44 45 extrn _fakeLDRClearSem@0:PROC ; fake.c 46 extrn _fakeKSEMRequestMutex@8:PROC ; fake.c 47 extrn fakeLDRSem:BYTE ; fake.c 45 48 46 49 DATA16 SEGMENT … … 58 61 fakeptda_environ dw 1 ; 1 is the hardcoded HOB of the win32ktst.exe's environment. 59 62 fakeptda_module dw 1 ; 1 is the hardcoded HMTE of the current executable module. 60 fakeptda_pBeginLIBPATH d w0 ; BEGINLIBPATH not implemented.61 d w0 ; ENDLIBPATH not implemented.63 fakeptda_pBeginLIBPATH dd 0 ; BEGINLIBPATH not implemented. 64 dd 0 ; ENDLIBPATH not implemented. 62 65 63 66 … … 253 256 254 257 CODE32 SEGMENT 258 ;; 259 ; Faker of which simply clears the loader semaphore. 260 ; @cproto none! (void _Optlink fake_tkStartProcess(void)) 261 ; @returns 262 ; @param 263 ; @uses 264 ; @equiv 265 ; @time 266 ; @sketch 267 ; @status 268 ; @author knut st. osmundsen (knut.stange.osmundsen@pmsc.no) 269 ; @remark 270 fake_tkStartProcess PROC NEAR 271 push ebp 272 mov ebp, esp 273 274 push ebx 275 push ecx 276 277 call _fakeLDRClearSem@0 278 279 pop ecx 280 pop ebx 281 282 xor eax, eax 283 leave 284 ret 285 fake_tkStartProcess ENDP 286 287 255 288 ;; 256 289 ; Fake g_tkExecPgm implementation. … … 274 307 275 308 ; 276 ; We just have to make some common code... 309 ; Take loader semaphore. 310 ; 311 push 0ffffffffh 312 push offset fakeLDRSem 313 call _fakeKSEMRequestMutex@8 314 or eax, eax 315 jnz ftkep_ret2 316 317 ; 318 ; Call C worker 277 319 ; 278 320 sub esp, 10h … … 306 348 ; ebp+8, ebp+c, ebp+10, ebp+14 307 349 ; esp+0, esp+4, esp+08, esp+0c 308 350 or eax, eax 351 jnz ftkep_ret 352 call fake_tkStartProcess ; If succesfully so far. call start process. 353 jmp ftkep_ret2 ; <Currently no parameters are implemented.> 354 355 ftkep_ret: 356 call _fakeLDRClearSem@0 357 358 ftkep_ret2: 309 359 leave 310 360 ret
Note:
See TracChangeset
for help on using the changeset viewer.