X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=tos%2Fsystem%2FRealMainP.nc;h=37fb3f18565f8421370df55411c31df38bf7b297;hb=13e400e82fdf39ec7807c7b290136408044d6273;hp=6ea0e8035588600f866dcef2ecaaaf8d949336e8;hpb=1ba974b83d19fc41bf80acd52726f36f7f1df297;p=tinyos-2.x.git diff --git a/tos/system/RealMainP.nc b/tos/system/RealMainP.nc index 6ea0e803..37fb3f18 100644 --- a/tos/system/RealMainP.nc +++ b/tos/system/RealMainP.nc @@ -1,6 +1,6 @@ // $Id$ -/* tab:4 +/* * "Copyright (c) 2000-2003 The Regents of the University of California. * All rights reserved. * @@ -42,14 +42,14 @@ * @date January 17 2005 */ -module RealMainP { +module RealMainP @safe() { provides interface Boot; uses interface Scheduler; uses interface Init as PlatformInit; uses interface Init as SoftwareInit; } implementation { - int main() __attribute__ ((C, spontaneous)) { + int main() @C() @spontaneous() { atomic { /* First, initialize the Scheduler so components can post @@ -57,7 +57,8 @@ implementation { as CPU settings, counters, etc. After the hardware is ready, initialize the requisite software components and start execution.*/ - + platform_bootstrap(); + call Scheduler.init(); /* Initialize the platform. Then spin on the Scheduler, passing