On Wed, Mar 17, 2010 at 6:21 PM, Nimal Giya <[email protected]> wrote:

> Hi,
>
>
>  i'm quite new to TOSThreads. I was going through the 134. In that you
> have mentioned about the changes to the boot sequence interrupt handlers.
>

Okay.  Please be careful when reading because the loss of a word can mattter
significantly.  What is written is that there  are changes to the boot
sequence and to the interrupt handlers.

The change to the interrupt handlers is the addition of a call to
PlatformInterrupt.postAmble().  This is needed because the interrupt handler
may have caused a state change that requires  the Thread context to give up
control.

The boot sequence changes wrap the tos context in a thread wrapper so that
the Thread system has a handle for switching back to the main tos level.

Do those things already exist in the system or as application writers do we
> have to include them?
>

All of this already exists.  If a new device with a new interrupt handler is
added to the system then one would definitely add the appropriate code to
the interrupt handler.  Also if an application using an existing set of
drivers is ported to the threads environment then the interrupt handlers
used need to be looked at to make sure they will play nicely in the threads
environment.

>
>  If they are already in the system where can I find them.
>

Look at the threads code in the current repo.  Follow the tutorials that are
available from docs.tinyos.net and then build an application that uses
threads.  When you build the application build it with "verbose" on the make
line and observe what files are being pulled in.

There you go.

eric

>
>  Thanks
>
>
>
>  nimal
>
>
> _______________________________________________
> Tinyos-help mailing list
> [email protected]
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>



-- 
Eric B. Decker
Senior (over 50 :-) Researcher
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to