ISDS - IBM Developer Connection DDK for OS/2 Version 1.0 Video Driver Development Note.

The following note is for the video driver developers using IBM Developer Connection DDK for OS/2 Version 1.0.

Two of the base video components, BVHVGA.DLL and BVHSVGA.DLL, built under this DDK won't work on OS/2 2.1, though they will work on OS/2 Warp.

Makefile modifications are necessary to the two components to avoid problems on OS/2 2.1.

(1) For BVHSVGA.DLL, the following changes are required to MAKEFILE in the DDKX86\SRC\SVDH directory:
 * (a) Do not link to os2286p.lib in the LIBP statement -- Change lines 51 and 52 from:

LIBP = $(LIB)\os2286p.lib LIBS = $(LIB286) $(LIBP)
 * to:

#LIBP = $(LIB)\os2286p.lib LIBS = $(LIB286)
 * (b) Import DOSSMGETMEM and DOSSMFREEMEM directly from OS2CHAR -- Change lines in the bvhsvga.def: makefile section from:

@ECHO >>$@ R2CSEG CLASS 'CODE' PURE CONFORMING  ; Ring 3 or ring 2 @ECHO >>$@ EXPORTS
 * to:

@ECHO >>$@ R2CSEG CLASS 'CODE' PURE CONFORMING  ; Ring 3 or ring 2 @ECHO >>$@ IMPORTS @ECHO >>$@     DOSSMGETMEM = OS2CHAR.1 @ECHO >>$@     DOSSMFREEMEM = OS2CHAR.2 @ECHO >>$@ EXPORTS (2) For BVHVGA.DLL, the following changes are required to MAKEFILE in the DDKX86\SRC\VDH directory:
 * (a) Change the link option from /exe:2 to /exe -- Change line 82 from:

LFLAGS= /exe:2 /align:2 /map:0 /noe /noignorecase /nodef /packc /packd /far
 * to:

LFLAGS= /exe /align:2 /map:0 /noe /noignorecase /nodef /packc /packd /far (b) Import BVHINSTANCE directly from OS2CHAR -- Change lines in the bvhvga.def: makefile, bvhinit.def: makefile, and bvh8514a.def: makefile sections from: @ECHO >>$@   DOSIODELAYCNT=DOSCALLS.427 ; Needed for IoDelay macro if "$(DEBUG)" == "1" @ECHO >>$@ _DPRINTF        2 ; char far *
 * to:

@ECHO >>$@ DOSIODELAYCNT=DOSCALLS.427 ; Needed for IoDelay macro @ECHO >>$@ BVHINSTANCE=OS2CHAR.148 if "$(DEBUG)" == "1" @ECHO >>$@ _DPRINTF        2 ; char far *
 * Change lines in the bvhwndw.def: makefile section from:

@ECHO >>$@    PMVIOP.UNLOCKVIOPS                        ;@T52 @ECHO >>$@ ; $@ end of generated file (see makefile)
 * to:

@ECHO >>$@    PMVIOP.UNLOCKVIOPS                        ;@T52 @ECHO >>$@    BVHINSTANCE=OS2CHAR.148 @ECHO >>$@ ; $@ end of generated file (see makefile)
 * Change lines in the bvhega.def: makefile, bvhcga.def: makefile, and bvhmpa.def: makefile sections from:

@ECHO >>$@    CHARFONTEND       1 ; UCHAR Color if "$(DEBUG)" == "1" @ECHO >>$@ _DPRINTF        2 ; char far *
 * to:

@ECHO >>$@    CHARFONTEND       1 ; UCHAR Color @ECHO >>$@ IMPORTS @ECHO >>$@    BVHINSTANCE=OS2CHAR.148 if "$(DEBUG)" == "1" @ECHO >>$@ _DPRINTF        2 ; char far * **************************** END OF CHANGES **********************************