Re: ndis: patch for review

2010-10-20 Thread Paul B Mahol
On 10/20/10, Bernhard Schmidt wrote: > 9, 2010 at 23:53, Paul B Mahol wrote: >> Hi, >> >> First: we should pin curthread on CPU before we check on which CPU is >> curthread. >> >> Second: instead of sti & cli use critical sections when saving %fs >> register. >> >> Third: I do not know what happe

Re: ndis: patch for review

2010-10-20 Thread Bernhard Schmidt
9, 2010 at 23:53, Paul B Mahol wrote: > Hi, > > First: we should pin curthread on CPU before we check on which CPU is > curthread. > > Second: instead of sti & cli use critical sections when saving %fs register. > > Third: I do not know what happens if we get preempted while windows > code were r

ndis: patch for review

2010-10-19 Thread Paul B Mahol
Hi, First: we should pin curthread on CPU before we check on which CPU is curthread. Second: instead of sti & cli use critical sections when saving %fs register. Third: I do not know what happens if we get preempted while windows code were running, so leave critical section only _after_ executin