Changeset 4073 for branches/Grace/src


Ignore:
Timestamp:
Aug 23, 2000, 6:25:46 AM (25 years ago)
Author:
bird
Message:

Added missing fakefunctions. Corrections of some bugs.
TestKernels.cmd runs fine.

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:22 bird Exp $
     1; $Id: mytkStartProcess.asm,v 1.1.2.3 2000-08-23 04:25:44 bird Exp $
    22;
    33; tkStartProcess overloader. Needed to clear the loader semaphore
     
    5252    ; Calltable entry for tkStartProcess
    5353    ;
    54     extrn _g_tkStartProcess:PROC
     54    extrn _tkStartProcess:PROC
    5555
    5656;
     
    105105    pop     ecx
    106106    pop     eax
    107     jmp    _g_tkStartProcess
     107    jmp     _tkStartProcess
    108108mytkStartProcess ENDP
    109109
  • branches/Grace/src/win32k/test/fakea.asm

    r4052 r4073  
    1 ; $Id: fakea.asm,v 1.1.4.2 2000-08-20 08:08:50 bird Exp $
     1; $Id: fakea.asm,v 1.1.4.3 2000-08-23 04:25:46 bird Exp $
    22;
    33; Fake assembly imports.
     
    3535    public fakef_FuBuff
    3636    public fakeg_tkExecPgm
     37    public fake_tkStartProcess
    3738    public CalltkExecPgm
    3839
    3940
    4041;
    41 ;   Imported Functions
     42;   Imported Functions and Variables.
    4243;
    4344    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
    4548
    4649DATA16 SEGMENT
     
    5861fakeptda_environ            dw      1   ; 1 is the hardcoded HOB of the win32ktst.exe's environment.
    5962fakeptda_module             dw      1   ; 1 is the hardcoded HMTE of the current executable module.
    60 fakeptda_pBeginLIBPATH      dw      0   ; BEGINLIBPATH not implemented.
    61                             dw      0   ; ENDLIBPATH not implemented.
     63fakeptda_pBeginLIBPATH      dd      0   ; BEGINLIBPATH not implemented.
     64                            dd      0   ; ENDLIBPATH not implemented.
    6265
    6366
     
    253256
    254257CODE32 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
     270fake_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
     285fake_tkStartProcess ENDP
     286
     287
    255288;;
    256289; Fake g_tkExecPgm implementation.
     
    274307
    275308    ;
    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
    277319    ;
    278320    sub     esp, 10h
     
    306348                                        ;     ebp+8, ebp+c, ebp+10, ebp+14
    307349                                        ;     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
     355ftkep_ret:
     356    call    _fakeLDRClearSem@0
     357
     358ftkep_ret2:
    309359    leave
    310360    ret
Note: See TracChangeset for help on using the changeset viewer.