[En-Nut-Discussion] Fw: Unix emulation platform

Daniel Quintero daniel.quintero at ono.com
Thu Jan 26 00:31:15 CET 2006


Hi Matthias

I maded this to work the unix emulation, but it's only a dirty trick for
now:

diff -Naur nutcvs/arch/unix/os/nutinit.c nut/arch/unix/os/nutinit.c
--- nutcvs/arch/unix/os/nutinit.c 2005-08-02 19:46:46.000000000 +0200
+++ nut/arch/unix/os/nutinit.c  2005-12-29 02:50:02.000000000 +0100
@@ -233,8 +233,8 @@
                 // handshake
                 irq_processed = 0;
 
                 // signal to running thread
-                kill(-getpgrp(), SIGUSR1);
+                NutUnixIntr(0);
                 break;
             }
         }
 
When i traced the code, the signals seems to left work after few
interrupts. With this i avoid the use of signals and examples works now.
But the interrupts executes at same time of nut code and the critical
sections can't disable its. Anyway i can work with it, i make a driver
for use the linux pcmcia into nut/os, now nut/os can use wlan cards on
linux ;). If someone is interested, i can document it and publish the
patch.

I try to understand the interrupt code to make it well (maybe use mutex
to mask interrupts...), but don't like to broke any important
thread-safe code of your emulation. What changes was maded in the nut
irq handlers ? What i must change to support them ?


                Thanks you.


> Hi Daniel
> 
> I created the unix emulation and will gladly assist you in improving
it.
> I just don't have to much time left, so I didn't work on it recently.
> 
> AFAIK it is currently broken, because we changed the timer interrupt  
> handler
> but didn't update unix. The good news is, that the current  
> implementation is
> even simple to emulate.
> 
> Did you try to understand nut/os interrupt handlers and the unix  
> emulation
> as it is (reading the source code.. ?) :)
> 
> Matthias
> 
> 
> 
> On 27.12.2005, at 11:58, Daniel Quintero wrote:
> 
> > Hi to all!
> >
> > I'm like to use the unix emulation platform, but seems that it was  
> > broken in
> > current version. I want to work on it and include some drivers for  
> > emulating
> > my platform. ¿ Is somebody working or interested on that ?
> >
> >            Thanks.
> >
> >            Daniel Quintero - daniel at itoobot.com
> >            www.itoobot.com
> >            Itoo Software - www.itoosoft.com
> >
> > _______________________________________________
> > En-Nut-Discussion mailing list
> > En-Nut-Discussion at egnite.de
> > http://www.egnite.de/mailman/listinfo.cgi/en-nut-discussion
> 





More information about the En-Nut-Discussion mailing list