Re: 1.3.0, and lrmi.c

Search this archive.

From: Iftikhar Rathore (mawali@news.icns.com)
Date: Tue 14 Jul 1998 - 04:34:37 IDT


No1: Can some one mail me libvga.a and libvgagl.a please

OK here is the deal, I have succesfuly compile the 1.3.0, but I am having
problems with vasa and lrmi (I have kernel 2.0.34). I get the message 
(On the matrox)
../vgatest
cant get mode info (vm86 failure)
Chose one of the following video modes
1
2
....
9
32

all these modes do work (but they are low resolution or low color).

I compiled the vbetest in lrm-0.1 package and got this result
../vbetest
Can't get VESA info (vm86 failure)

it looks like vm86() in liblrmi.so is returning 1 and errno is not getting
set. somehow it does not look good, vm86 is only supposed to return 0 or
-1
My entry.S  does have both vm86old and vm86 (113 nd 166) and dosemu
(which was compiled yesterday on the same machine) is able to do the vm86
switch fine. The have hancoded the number 133 in their code (why??)

emu.c:297 (dosemu-0.97.10)
static inline void
vm86plus_init(void)
{#ifdef REQUIRES_VM86PLUS
    static inline int vm86_old(struct vm86_struct* v86)
    {
        int __res;
        __asm__ __volatile__("int $0x80\n"
        :"=a" (__res):"a" ((int)113), "b" ((int)v86));
        return __res;
    }
    if (!vm86_plus(VM86_PLUS_INSTALL_CHECK,0)) return;
    if (!vm86_old((void *)0xffffff01)) {
      fprintf(stderr, "your kernel contains an older (interim) vm86plus
version\
n\r"
                      "please upgrade to an newer one\n\r");
    }
    else fprintf(stderr, "vm86plus service not available in your
kernel\n\r");
    fflush(stdout);
    fflush(stderr);
 

I am hopful once I get to switch to vm86 the driver should work fine, plus
it seemed to be working correctly on my work machine which is if I
remember correctly is 2.0.33


This archive was generated by hypermail 2.1.4 : Wed 21 Jan 2004 - 22:10:22 IST