[pso] [Tema2][Windows] modul solutie.sys

Marius Poke mariusp55 at yahoo.com
Fri Apr 23 17:08:22 EEST 2010


Doar de curiozitate, setul de teste ==== Reading at base speed (2400 baud) ==== face read sau write de fapt?
Intreb asta ca in acest set de teste solutie.sys e deschis cu optiunea OPTION_RECEIVER_ONLY = 1 = OPTION_COM1, deci va afea asociat \\.\uart0, care in functia test_group are asociat handlerul com2, handler cu care se face citirea. De asta nu scria modulul solutie.sys, de fapt nu scria modulul meu pt. ca nu are aceasta functionalitate inca :). 

Marius





________________________________
From: Marius Poke <mariusp55 at yahoo.com>
To: Proiectarea Sistemelor de Operare <pso at cursuri.cs.pub.ro>
Sent: Fri, April 23, 2010 4:33:39 PM
Subject: Re: [pso] [Tema2][Windows] modul solutie.sys


Salut,

In continuare aceeasi problema. Poate sa ma ajute careva. Mersi

Marius





________________________________
From: Marius Poke <mariusp55 at yahoo.com>
To: PSO lista_discutii <pso at cursuri.cs.pub.ro>
Sent: Fri, April 23, 2010 1:00:44 PM
Subject: [pso] [Tema2][Windows] modul solutie.sys


Salut,

Am o problema cu modulul solutie.sys. Se blocheaza cand face write, mai exact in functia DoWriteFile din test:
while (1) {
        if (!WriteFile(fd, &buffer[from], size-from, &n, NULL))
            return -1;
        if (n+from == size)
            return 0;
        from+=n;
        fprintf(stderr, "from %i \n", from);
    }

imi afiseaza mereu from 0.
Functia este apelata pentru com1 la al doilea set de teste (com1 este modulul solutie.sys).

Vreo idee?

Mersi,
    Marius


      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://cursuri.cs.pub.ro/lurker/list/pso.html/attachments/20100423/4b6706b9/attachment.htm>


More information about the pso mailing list