Changeset 148 for sbliveos2/trunk/drv32


Ignore:
Timestamp:
Apr 26, 2000, 8:01:02 PM (25 years ago)
Author:
sandervl
Message:

beta 0.25 update

Location:
sbliveos2/trunk/drv32
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • sbliveos2/trunk/drv32/devhlp.asm

    r142 r148  
    6363
    6464        public GetTKSSBase
     65        public iodelay32_
    6566        extrn  DevHlp : near
     67        extrn   DOSIODELAYCNT : ABS
    6668
    6769        ALIGN   4
     
    120122GetTKSSBase endp
    121123
     124iodelay32_ proc near
     125        mov   eax, DOSIODELAYCNT
     126        align 4
     127@@:     dec   eax
     128        jnz   @b
     129        loop  iodelay32_
     130        ret
     131iodelay32_ endp
     132
    122133CODE32  ends
    123134
  • sbliveos2/trunk/drv32/impdos.def

    r142 r148  
    5050    DOSGETMACHINEMODE         @49
    5151    DOSGETVERSION             @92
    52     DOSOPEN                   @70
    5352    DOSQCURDIR                @71
    5453    DOSQCURDISK               @72
     
    5958    DOS32FLATDS               @370
    6059    DOS32FLATCS               @369
     60    DOSIODELAYCNT             @427
  • sbliveos2/trunk/drv32/makefile.os2

    r142 r148  
    3535
    3636!if "$(DEBUG)" == "1"
    37 #CFLAGS  = -dDEBUG -bt=os2v2 -e60 -hc -d2 -5r -i$(INC) -omlinear -s -w4 -xd -ze -zdp -zl -zq -nt=CODE32 -zff -zgf -zu -zp1 -mc
    38 CFLAGS  = -dDEBUG -bt=os2v2 -e60 -hc -d2 -5r -i$(INC) -omlinear -s -w4 -xd -ze -zdp -zl -zq -nt=CODE32 -zff -zgf -zp1 -mf -DKEE
     37CFLAGS  = -dDEBUG -bt=os2v2 -e60 -hc -d2 -5r -i$(INC) -omlinear -s -w4 -xd -ze -zdp -zl -zq -nt=CODE32 -zff -zgf -zp1
     38ASFLAGS = -Mb -Li -Sv:M510
    3939!else
    40 #CFLAGS  = -bt=os2v2 -e60 -5r -i$(INC) -omlinear -s -w4 -xd -ze -zdp -zl -zq -nt=CODE32 -zff -zgf -zu -zp1 -mc
    41 CFLAGS  = -bt=os2v2 -e60 -5r -i$(INC) -omlinear -s -w4 -xd -ze -zdp -zl -zq -nt=CODE32 -zff -zgf -zp1 -mf -DKEE
     40CFLAGS  = -bt=os2v2 -e60 -5r -i$(INC) -omlinear -s -w4 -xd -ze -zdp -zl -zq -nt=CODE32 -zff -zgf -zp1
     41ASFLAGS = -Mb -Li -Sv:M510
     42!endif
     43
     44!if "$(KEE)" == "1"
     45CFLAGS  = $(CFLAGS) -mf -DKEE
     46ASFLAGS = $(ASFLAGS) -D:KEE
     47!else
     48CFLAGS  = $(CFLAGS) -mc -zu
    4249!endif
    4350
    4451CC      = WPP386 $(CFLAGS) $(IWC)
    45 CCSMALL = WPP386 $(CFLAGS_SMALL) $(IWC)
    46 
    47 !if "$(DEBUG)" == "1"
    48 ASFLAGS = -Mb -Li -Sv:M510 -D:KEE
    49 !else
    50 ASFLAGS = -Mb -Li -Sv:M510 -D:KEE
    51 !endif
    5252ASM     = alp $(ASFLAGS) $(INCA)
    5353
     
    9292FILE2    = strategy.obj
    9393FILE3    = init.obj
    94 FILE4    = devhlp.obj
     94FILE4    = impmvdm.lib devhlp.obj
    9595FILE5    = idc.obj dispatch.obj
    9696FILE6    = impdos.lib
     97!if "$(KEE)" == "1"
    9798FILE7    = impkee.lib
     99!endif
    98100FILE8    = ..\sblive\sblive32.lib ..\lib32\linuxlib.lib
    99101FILELAST = end.obj
     
    116118    @%write $^@ option description '@$#$(_VENDOR):$(_VERSION)$#@'
    117119    @%write $^@ option map=$(WMAPNAME)
     120    @for %f in ($(FILES)) do @%append $^@ file %f
     121#!if "$(KEE)" == "1"
    118122    @%write $^@ import DOSIODELAYCNT DOSCALLS.427
    119     @for %f in ($(FILES)) do @%append $^@ file %f
     123#!endif
    120124    @%write $^@ library $(%WATCOM)\lib386\os2\clib3r.lib
    121125
     
    125129     mapsym $(TARGET).MAP
    126130     copy $(TARGET).sys ..\bin
     131!ifdef KEE
     132     copy $(TARGET).sys ..\bin\$(TARGET)kee.sys
     133!else
     134     copy $(TARGET).sys ..\bin\$(TARGET)w4.sys
     135!endif
    127136     copy $(TARGET).sym ..\bin
    128137
    129138clean:
    130      del *.obj *.err *.lnk *.sys *.sym *.lst *.map *.wmap
     139     del *.obj *.err *.lnk *.sys *.sym *.lst *.map *.wmap *.lib
    131140   
  • sbliveos2/trunk/drv32/startup.asm

    r142 r148  
    190190        public thunk3216_devhelp
    191191        public thunk3216_devhelp_modified_ds
    192         public iodelay_
    193192        extrn DOSOPEN       : far
     193        extrn DOSCLOSE      : far
    194194        extrn DOSWRITE      : far
    195         extrn DOSCLOSE      : far
    196         EXTRN DOSIODELAYCNT : ABS
    197195
    198196;DEZE MOET ALS EERSTE blijven staan!!!!
     
    379377        lea     dx, [bp - 2]
    380378        push    dx
    381         call    far ptr DOSWRITE
     379        call    DOSWRITE
    382380
    383381        pop     eax
     
    416414        jmp     far ptr FLAT:thunk1632_devhelp_modified_ds
    417415
    418 iodelay_:
    419         db    0B8h
    420         dw    DOSIODELAYCNT
    421         align 4
    422 @@:     dec   eax
    423         jnz   @b
    424         loop  iodelay_
    425         jmp   far ptr FLAT:thunk1632_iodelay32_
    426 
    427416;end of 16 bits code segment
    428417__OffFinalCS16 label byte
     
    441430        public STRATEGY_
    442431        public IDC_
    443         public iodelay32_
    444         public thunk1632_iodelay32_
    445432        extrn  SBLIVE_STRATEGY  : near
    446433        extrn  SBLIVE_IDC : near
     434IFDEF KEE
    447435        extrn  KernThunkStackTo16 : near
    448436        extrn  KernThunkStackTo32 : near
     437ENDIF
    449438
    450439__OffBeginCS32:
     
    511500DevHlp_ModifiedDS endp
    512501
    513 iodelay32_ proc near
    514         jmp     far ptr CODE16:iodelay_
    515         ALIGN 4
    516 thunk1632_iodelay32_:
    517         ret
    518 iodelay32_ endp
    519 
    520502STRATEGY_ proc far
    521503        push    ds
     
    616598    public  stacksel
    617599
    618     __OffBeginDS32      dd 0
     600    __OffBeginDS32   dd 0
    619601
    620602    stacksel         dd 0
Note: See TracChangeset for help on using the changeset viewer.