tasks.c.048i.remove_symbols 192 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227
  1. Reclaiming functions:
  2. Reclaiming variables:
  3. Clearing address taken flags:
  4. Symbol table:
  5. sprintf/112 (sprintf) @06e1a0e0
  6. Type: function
  7. Visibility: external public
  8. References:
  9. Referring:
  10. Availability: not_available
  11. Function flags:
  12. Called by: vTaskList/84
  13. Calls:
  14. strcpy/111 (strcpy) @06e027e0
  15. Type: function
  16. Visibility: external public
  17. References:
  18. Referring:
  19. Availability: not_available
  20. Function flags:
  21. Called by: prvWriteNameToBuffer/83
  22. Calls:
  23. vListInitialise/110 (vListInitialise) @06dc9d20
  24. Type: function
  25. Visibility: external public
  26. References:
  27. Referring:
  28. Availability: not_available
  29. Function flags:
  30. Called by: prvInitialiseTaskLists/70 prvInitialiseTaskLists/70 prvInitialiseTaskLists/70 prvInitialiseTaskLists/70 prvInitialiseTaskLists/70 prvInitialiseTaskLists/70
  31. Calls:
  32. vListInsert/109 (vListInsert) @06da9c40
  33. Type: function
  34. Visibility: external public
  35. References:
  36. Referring:
  37. Availability: not_available
  38. Function flags:
  39. Called by: vTaskPlaceOnEventList/58 prvAddCurrentTaskToDelayedList/94 prvAddCurrentTaskToDelayedList/94
  40. Calls:
  41. strlen/108 (strlen) @06da9460
  42. Type: function
  43. Visibility: external public
  44. References:
  45. Referring:
  46. Availability: not_available
  47. Function flags:
  48. Called by: vTaskList/84 prvWriteNameToBuffer/83 xTaskGetHandle/52
  49. Calls:
  50. vPortEndScheduler/107 (vPortEndScheduler) @06d96a80
  51. Type: function
  52. Visibility: external public
  53. References:
  54. Referring:
  55. Availability: not_available
  56. Function flags:
  57. Called by: vTaskEndScheduler/44
  58. Calls:
  59. xPortStartScheduler/106 (xPortStartScheduler) @06d967e0
  60. Type: function
  61. Visibility: external public
  62. References:
  63. Referring:
  64. Availability: not_available
  65. Function flags:
  66. Called by: vTaskStartScheduler/43
  67. Calls:
  68. xTimerCreateTimerTask/105 (xTimerCreateTimerTask) @06d96700
  69. Type: function
  70. Visibility: external public
  71. References:
  72. Referring:
  73. Availability: not_available
  74. Function flags:
  75. Called by: vTaskStartScheduler/43
  76. Calls:
  77. vPortValidateInterruptPriority/104 (vPortValidateInterruptPriority) @0677a9a0
  78. Type: function
  79. Visibility: external public
  80. References:
  81. Referring:
  82. Availability: not_available
  83. Function flags:
  84. Called by: vTaskGenericNotifyGiveFromISR/91 xTaskGenericNotifyFromISR/90 xTaskGetTickCountFromISR/48 xTaskResumeFromISR/42 uxTaskPriorityGetFromISR/37
  85. Calls:
  86. vListInsertEnd/103 (vListInsertEnd) @0677a0e0
  87. Type: function
  88. Visibility: external public
  89. References:
  90. Referring:
  91. Availability: not_available
  92. Function flags:
  93. Called by: vTaskSuspend/39 vTaskDelete/32 xTaskResumeFromISR/42
  94. Calls:
  95. uxListRemove/102 (uxListRemove) @0677a000
  96. Type: function
  97. Visibility: external public
  98. References:
  99. Referring:
  100. Availability: not_available
  101. Function flags:
  102. Called by: prvAddCurrentTaskToDelayedList/94 vTaskPriorityDisinheritAfterTimeout/82 xTaskPriorityDisinherit/81 xTaskPriorityInherit/80 xTaskAbortDelay/55 xTaskAbortDelay/55 vTaskSuspend/39 vTaskSuspend/39 vTaskDelete/32 vTaskDelete/32 prvCheckTasksWaitingTermination/71 xTaskResumeFromISR/42 vTaskResume/41 vTaskPrioritySet/38
  103. Calls:
  104. vPortExitCritical/101 (vPortExitCritical) @06d5b000
  105. Type: function
  106. Visibility: external public
  107. References:
  108. Referring:
  109. Availability: not_available
  110. Function flags:
  111. Called by: xTaskGenericNotifyWait/88 xTaskGenericNotifyWait/88 ulTaskGenericNotifyTake/87 ulTaskGenericNotifyTake/87 ulTaskGenericNotifyValueClear/93 xTaskGenericNotifyStateClear/92 xTaskGenericNotify/89 xTaskAbortDelay/55 xTaskResumeAll/46 vTaskSuspend/39 vTaskSuspend/39 vTaskDelete/32 prvCheckTasksWaitingTermination/71 prvAddNewTaskToReadyList/31 xTaskCheckForTimeOut/65 vTaskSetTimeOutState/63 vTaskResume/41 vTaskPrioritySet/38 uxTaskPriorityGet/36 eTaskGetState/35
  112. Calls:
  113. vPortEnterCritical/100 (vPortEnterCritical) @06d5be00
  114. Type: function
  115. Visibility: external public
  116. References:
  117. Referring:
  118. Availability: not_available
  119. Function flags:
  120. Called by: xTaskGenericNotifyWait/88 xTaskGenericNotifyWait/88 ulTaskGenericNotifyTake/87 ulTaskGenericNotifyTake/87 ulTaskGenericNotifyValueClear/93 xTaskGenericNotifyStateClear/92 xTaskGenericNotify/89 xTaskAbortDelay/55 xTaskResumeAll/46 vTaskSuspend/39 vTaskSuspend/39 vTaskDelete/32 prvCheckTasksWaitingTermination/71 prvAddNewTaskToReadyList/31 xTaskCheckForTimeOut/65 vTaskSetTimeOutState/63 vTaskResume/41 vTaskPrioritySet/38 uxTaskPriorityGet/36 eTaskGetState/35
  121. Calls:
  122. pxPortInitialiseStack/99 (pxPortInitialiseStack) @06d5bb60
  123. Type: function
  124. Visibility: external public
  125. References:
  126. Referring:
  127. Availability: not_available
  128. Function flags:
  129. Called by: prvInitialiseNewTask/30
  130. Calls:
  131. vListInitialiseItem/98 (vListInitialiseItem) @06d5ba80
  132. Type: function
  133. Visibility: external public
  134. References:
  135. Referring:
  136. Availability: not_available
  137. Function flags:
  138. Called by: prvInitialiseNewTask/30 prvInitialiseNewTask/30
  139. Calls:
  140. memset/97 (memset) @06d5b9a0
  141. Type: function
  142. Visibility: external public
  143. References:
  144. Referring:
  145. Availability: not_available
  146. Function flags:
  147. Called by: prvInitialiseNewTask/30 prvInitialiseNewTask/30 prvInitialiseNewTask/30
  148. Calls:
  149. vPortFree/96 (vPortFree) @06d5b7e0
  150. Type: function
  151. Visibility: external public
  152. References:
  153. Referring:
  154. Availability: not_available
  155. Function flags:
  156. Called by: vTaskList/84 prvDeleteTCB/76 prvDeleteTCB/76 xTaskCreate/29
  157. Calls:
  158. pvPortMalloc/95 (pvPortMalloc) @06d5b700
  159. Type: function
  160. Visibility: external public
  161. References:
  162. Referring:
  163. Availability: not_available
  164. Function flags:
  165. Called by: vTaskList/84 xTaskCreate/29 xTaskCreate/29
  166. Calls:
  167. prvAddCurrentTaskToDelayedList/94 (prvAddCurrentTaskToDelayedList) @06d5b2a0
  168. Type: function definition analyzed
  169. Visibility: force_output no_reorder prevailing_def_ironly
  170. References: xTickCount/18 (read)pxCurrentTCB/7 (read)pxCurrentTCB/7 (read)xSuspendedTaskList/16 (read)pxCurrentTCB/7 (read)pxCurrentTCB/7 (read)pxCurrentTCB/7 (read)pxCurrentTCB/7 (read)pxCurrentTCB/7 (read)xSuspendedTaskList/16 (addr)xSuspendedTaskList/16 (read)xSuspendedTaskList/16 (write)pxCurrentTCB/7 (read)pxOverflowDelayedTaskList/12 (read)pxCurrentTCB/7 (read)pxDelayedTaskList/11 (read)pxCurrentTCB/7 (read)xNextTaskUnblockTime/25 (read)xNextTaskUnblockTime/25 (write)
  171. Referring:
  172. Availability: available
  173. Function flags: body
  174. Called by: xTaskGenericNotifyWait/88 ulTaskGenericNotifyTake/87 vTaskPlaceOnEventListRestricted/60 vTaskPlaceOnUnorderedEventList/59 vTaskPlaceOnEventList/58 vTaskDelay/34 xTaskDelayUntil/33
  175. Calls: vListInsert/109 vListInsert/109 uxListRemove/102
  176. ulTaskGenericNotifyValueClear/93 (ulTaskGenericNotifyValueClear) @06d4ab60
  177. Type: function definition analyzed
  178. Visibility: force_output externally_visible no_reorder public
  179. References: pxCurrentTCB/7 (read)
  180. Referring:
  181. Availability: available
  182. Function flags: body
  183. Called by:
  184. Calls: vPortExitCritical/101 vPortEnterCritical/100
  185. xTaskGenericNotifyStateClear/92 (xTaskGenericNotifyStateClear) @06d4aee0
  186. Type: function definition analyzed
  187. Visibility: force_output externally_visible no_reorder public
  188. References: pxCurrentTCB/7 (read)
  189. Referring:
  190. Availability: available
  191. Function flags: body
  192. Called by:
  193. Calls: vPortExitCritical/101 vPortEnterCritical/100
  194. vTaskGenericNotifyGiveFromISR/91 (vTaskGenericNotifyGiveFromISR) @06d4aa80
  195. Type: function definition analyzed
  196. Visibility: force_output externally_visible no_reorder public
  197. References: uxSchedulerSuspended/28 (read)uxTopReadyPriority/19 (read)uxTopReadyPriority/19 (write)pxReadyTasksLists/8 (read)pxReadyTasksLists/8 (addr)pxReadyTasksLists/8 (read)pxReadyTasksLists/8 (write)xPendingReadyList/13 (read)xPendingReadyList/13 (addr)xPendingReadyList/13 (read)xPendingReadyList/13 (write)pxCurrentTCB/7 (read)xYieldPending/22 (write)
  198. Referring:
  199. Availability: available
  200. Function flags: body
  201. Called by:
  202. Calls: vPortValidateInterruptPriority/104
  203. xTaskGenericNotifyFromISR/90 (xTaskGenericNotifyFromISR) @06d4a620
  204. Type: function definition analyzed
  205. Visibility: force_output externally_visible no_reorder public
  206. References: xTickCount/18 (read)uxSchedulerSuspended/28 (read)uxTopReadyPriority/19 (read)uxTopReadyPriority/19 (write)pxReadyTasksLists/8 (read)pxReadyTasksLists/8 (addr)pxReadyTasksLists/8 (read)pxReadyTasksLists/8 (write)xPendingReadyList/13 (read)xPendingReadyList/13 (addr)xPendingReadyList/13 (read)xPendingReadyList/13 (write)pxCurrentTCB/7 (read)xYieldPending/22 (write)
  207. Referring:
  208. Availability: available
  209. Function flags: body
  210. Called by:
  211. Calls: vPortValidateInterruptPriority/104
  212. xTaskGenericNotify/89 (xTaskGenericNotify) @06d4a0e0
  213. Type: function definition analyzed
  214. Visibility: force_output externally_visible no_reorder public
  215. References: xTickCount/18 (read)uxTopReadyPriority/19 (read)uxTopReadyPriority/19 (write)pxReadyTasksLists/8 (read)pxReadyTasksLists/8 (addr)pxReadyTasksLists/8 (read)pxReadyTasksLists/8 (write)pxCurrentTCB/7 (read)
  216. Referring:
  217. Availability: available
  218. Function flags: body
  219. Called by:
  220. Calls: vPortExitCritical/101 vPortEnterCritical/100
  221. xTaskGenericNotifyWait/88 (xTaskGenericNotifyWait) @06d39000
  222. Type: function definition analyzed
  223. Visibility: force_output externally_visible no_reorder public
  224. References: pxCurrentTCB/7 (read)pxCurrentTCB/7 (read)pxCurrentTCB/7 (read)pxCurrentTCB/7 (read)pxCurrentTCB/7 (read)pxCurrentTCB/7 (read)pxCurrentTCB/7 (read)
  225. Referring:
  226. Availability: available
  227. Function flags: body
  228. Called by:
  229. Calls: vPortExitCritical/101 vPortEnterCritical/100 vPortExitCritical/101 prvAddCurrentTaskToDelayedList/94 vPortEnterCritical/100
  230. ulTaskGenericNotifyTake/87 (ulTaskGenericNotifyTake) @06d39b60
  231. Type: function definition analyzed
  232. Visibility: force_output externally_visible no_reorder public
  233. References: pxCurrentTCB/7 (read)pxCurrentTCB/7 (read)pxCurrentTCB/7 (read)pxCurrentTCB/7 (read)pxCurrentTCB/7 (read)pxCurrentTCB/7 (read)
  234. Referring:
  235. Availability: available
  236. Function flags: body
  237. Called by:
  238. Calls: vPortExitCritical/101 vPortEnterCritical/100 vPortExitCritical/101 prvAddCurrentTaskToDelayedList/94 vPortEnterCritical/100
  239. pvTaskIncrementMutexHeldCount/86 (pvTaskIncrementMutexHeldCount) @06d39700
  240. Type: function definition analyzed
  241. Visibility: force_output externally_visible no_reorder public
  242. References: pxCurrentTCB/7 (read)pxCurrentTCB/7 (read)pxCurrentTCB/7 (read)
  243. Referring:
  244. Availability: available
  245. Function flags: body
  246. Called by:
  247. Calls:
  248. uxTaskResetEventItemValue/85 (uxTaskResetEventItemValue) @06d39460
  249. Type: function definition analyzed
  250. Visibility: force_output externally_visible no_reorder public
  251. References: pxCurrentTCB/7 (read)pxCurrentTCB/7 (read)pxCurrentTCB/7 (read)
  252. Referring:
  253. Availability: available
  254. Function flags: body
  255. Called by:
  256. Calls:
  257. vTaskList/84 (vTaskList) @06d391c0
  258. Type: function definition analyzed
  259. Visibility: force_output externally_visible no_reorder public
  260. References: uxCurrentNumberOfTasks/17 (read)uxCurrentNumberOfTasks/17 (read)
  261. Referring:
  262. Availability: available
  263. Function flags: body
  264. Called by:
  265. Calls: vPortFree/96 strlen/108 sprintf/112 prvWriteNameToBuffer/83 uxTaskGetSystemState/53 pvPortMalloc/95
  266. prvWriteNameToBuffer/83 (prvWriteNameToBuffer) @06d1fe00
  267. Type: function definition analyzed
  268. Visibility: force_output no_reorder prevailing_def_ironly
  269. References:
  270. Referring:
  271. Availability: available
  272. Function flags: body
  273. Called by: vTaskList/84
  274. Calls: strlen/108 strcpy/111
  275. vTaskPriorityDisinheritAfterTimeout/82 (vTaskPriorityDisinheritAfterTimeout) @06d1f700
  276. Type: function definition analyzed
  277. Visibility: force_output externally_visible no_reorder public
  278. References: pxCurrentTCB/7 (read)pxReadyTasksLists/8 (addr)uxTopReadyPriority/19 (read)uxTopReadyPriority/19 (write)pxReadyTasksLists/8 (read)pxReadyTasksLists/8 (addr)pxReadyTasksLists/8 (read)pxReadyTasksLists/8 (write)
  279. Referring:
  280. Availability: available
  281. Function flags: body
  282. Called by:
  283. Calls: uxListRemove/102
  284. xTaskPriorityDisinherit/81 (xTaskPriorityDisinherit) @06d1fd20
  285. Type: function definition analyzed
  286. Visibility: force_output externally_visible no_reorder public
  287. References: pxCurrentTCB/7 (read)uxTopReadyPriority/19 (read)uxTopReadyPriority/19 (write)pxReadyTasksLists/8 (read)pxReadyTasksLists/8 (addr)pxReadyTasksLists/8 (read)pxReadyTasksLists/8 (write)
  288. Referring:
  289. Availability: available
  290. Function flags: body
  291. Called by:
  292. Calls: uxListRemove/102
  293. xTaskPriorityInherit/80 (xTaskPriorityInherit) @06d1f8c0
  294. Type: function definition analyzed
  295. Visibility: force_output externally_visible no_reorder public
  296. References: pxCurrentTCB/7 (read)pxCurrentTCB/7 (read)pxReadyTasksLists/8 (addr)pxCurrentTCB/7 (read)uxTopReadyPriority/19 (read)uxTopReadyPriority/19 (write)pxReadyTasksLists/8 (read)pxReadyTasksLists/8 (addr)pxReadyTasksLists/8 (read)pxReadyTasksLists/8 (write)pxCurrentTCB/7 (read)pxCurrentTCB/7 (read)
  297. Referring:
  298. Availability: available
  299. Function flags: body
  300. Called by:
  301. Calls: uxListRemove/102
  302. xTaskGetSchedulerState/79 (xTaskGetSchedulerState) @06d1f620
  303. Type: function definition analyzed
  304. Visibility: force_output externally_visible no_reorder public
  305. References: xSchedulerRunning/20 (read)uxSchedulerSuspended/28 (read)
  306. Referring:
  307. Availability: available
  308. Function flags: body
  309. Called by:
  310. Calls:
  311. xTaskGetCurrentTaskHandle/78 (xTaskGetCurrentTaskHandle) @06d1f380
  312. Type: function definition analyzed
  313. Visibility: force_output externally_visible no_reorder public
  314. References: pxCurrentTCB/7 (read)
  315. Referring:
  316. Availability: available
  317. Function flags: body
  318. Called by:
  319. Calls:
  320. prvResetNextTaskUnblockTime/77 (prvResetNextTaskUnblockTime) @06d1f0e0
  321. Type: function definition analyzed
  322. Visibility: force_output no_reorder prevailing_def_ironly
  323. References: pxDelayedTaskList/11 (read)xNextTaskUnblockTime/25 (write)pxDelayedTaskList/11 (read)xNextTaskUnblockTime/25 (write)
  324. Referring:
  325. Availability: available
  326. Function flags: body
  327. Called by: xTaskResumeAll/46 xTaskIncrementTick/56 vTaskSuspend/39 vTaskDelete/32
  328. Calls:
  329. prvDeleteTCB/76 (prvDeleteTCB) @06d13c40
  330. Type: function definition analyzed
  331. Visibility: force_output no_reorder prevailing_def_ironly
  332. References:
  333. Referring:
  334. Availability: available
  335. Function flags: body
  336. Called by: vTaskDelete/32 prvCheckTasksWaitingTermination/71
  337. Calls: vPortFree/96 vPortFree/96
  338. uxTaskGetStackHighWaterMark/75 (uxTaskGetStackHighWaterMark) @06d13620
  339. Type: function definition analyzed
  340. Visibility: force_output externally_visible no_reorder public
  341. References: pxCurrentTCB/7 (read)
  342. Referring:
  343. Availability: available
  344. Function flags: body
  345. Called by:
  346. Calls: prvTaskCheckFreeStackSpace/74
  347. prvTaskCheckFreeStackSpace/74 (prvTaskCheckFreeStackSpace) @06d13e00
  348. Type: function definition analyzed
  349. Visibility: force_output no_reorder prevailing_def_ironly
  350. References:
  351. Referring:
  352. Availability: available
  353. Function flags: body
  354. Called by: vTaskGetInfo/72 uxTaskGetStackHighWaterMark/75
  355. Calls:
  356. prvListTasksWithinSingleList/73 (prvListTasksWithinSingleList) @06d13b60
  357. Type: function definition analyzed
  358. Visibility: force_output no_reorder prevailing_def_ironly
  359. References:
  360. Referring:
  361. Availability: available
  362. Function flags: body
  363. Called by: uxTaskGetSystemState/53 uxTaskGetSystemState/53 uxTaskGetSystemState/53 uxTaskGetSystemState/53 uxTaskGetSystemState/53
  364. Calls: vTaskGetInfo/72
  365. vTaskGetInfo/72 (vTaskGetInfo) @06d138c0
  366. Type: function definition analyzed
  367. Visibility: force_output externally_visible no_reorder public
  368. References: pxCurrentTCB/7 (read)pxCurrentTCB/7 (read)
  369. Referring:
  370. Availability: available
  371. Function flags: body
  372. Called by: prvListTasksWithinSingleList/73
  373. Calls: prvTaskCheckFreeStackSpace/74 eTaskGetState/35 xTaskResumeAll/46 vTaskSuspendAll/45
  374. prvCheckTasksWaitingTermination/71 (prvCheckTasksWaitingTermination) @06d13540
  375. Type: function definition analyzed
  376. Visibility: force_output no_reorder prevailing_def_ironly
  377. References: xTasksWaitingTermination/14 (read)uxCurrentNumberOfTasks/17 (read)uxCurrentNumberOfTasks/17 (write)uxDeletedTasksWaitingCleanUp/15 (read)uxDeletedTasksWaitingCleanUp/15 (write)uxDeletedTasksWaitingCleanUp/15 (read)
  378. Referring:
  379. Availability: available
  380. Function flags: body
  381. Called by: prvIdleTask/69
  382. Calls: prvDeleteTCB/76 vPortExitCritical/101 uxListRemove/102 vPortEnterCritical/100
  383. prvInitialiseTaskLists/70 (prvInitialiseTaskLists) @06d131c0
  384. Type: function definition analyzed
  385. Visibility: force_output no_reorder prevailing_def_ironly
  386. References: pxReadyTasksLists/8 (addr)xDelayedTaskList1/9 (addr)xDelayedTaskList2/10 (addr)xPendingReadyList/13 (addr)xTasksWaitingTermination/14 (addr)xSuspendedTaskList/16 (addr)pxDelayedTaskList/11 (write)xDelayedTaskList1/9 (addr)pxOverflowDelayedTaskList/12 (write)xDelayedTaskList2/10 (addr)
  387. Referring:
  388. Availability: available
  389. Function flags: body
  390. Called by: prvAddNewTaskToReadyList/31
  391. Calls: vListInitialise/110 vListInitialise/110 vListInitialise/110 vListInitialise/110 vListInitialise/110 vListInitialise/110
  392. prvIdleTask/69 (prvIdleTask) @06d0ee00
  393. Type: function definition analyzed
  394. Visibility: force_output no_reorder prevailing_def_ironly
  395. Address is taken.
  396. References: pxReadyTasksLists/8 (read)
  397. Referring: vTaskStartScheduler/43 (addr)
  398. Availability: available
  399. Function flags: body
  400. Called by:
  401. Calls: prvCheckTasksWaitingTermination/71
  402. vTaskSetTaskNumber/68 (vTaskSetTaskNumber) @06d0e1c0
  403. Type: function definition analyzed
  404. Visibility: force_output externally_visible no_reorder public
  405. References:
  406. Referring:
  407. Availability: available
  408. Function flags: body
  409. Called by:
  410. Calls:
  411. uxTaskGetTaskNumber/67 (uxTaskGetTaskNumber) @06d0ed20
  412. Type: function definition analyzed
  413. Visibility: force_output externally_visible no_reorder public
  414. References:
  415. Referring:
  416. Availability: available
  417. Function flags: body
  418. Called by:
  419. Calls:
  420. vTaskMissedYield/66 (vTaskMissedYield) @06d0ea80
  421. Type: function definition analyzed
  422. Visibility: force_output externally_visible no_reorder public
  423. References: xYieldPending/22 (write)
  424. Referring:
  425. Availability: available
  426. Function flags: body
  427. Called by:
  428. Calls:
  429. xTaskCheckForTimeOut/65 (xTaskCheckForTimeOut) @06d0e7e0
  430. Type: function definition analyzed
  431. Visibility: force_output externally_visible no_reorder public
  432. References: xTickCount/18 (read)pxCurrentTCB/7 (read)pxCurrentTCB/7 (read)xNumOfOverflows/23 (read)
  433. Referring:
  434. Availability: available
  435. Function flags: body
  436. Called by:
  437. Calls: vPortExitCritical/101 vTaskInternalSetTimeOutState/64 vPortEnterCritical/100
  438. vTaskInternalSetTimeOutState/64 (vTaskInternalSetTimeOutState) @06d0e380
  439. Type: function definition analyzed
  440. Visibility: force_output externally_visible no_reorder public
  441. References: xNumOfOverflows/23 (read)xTickCount/18 (read)
  442. Referring:
  443. Availability: available
  444. Function flags: body
  445. Called by: xTaskCheckForTimeOut/65
  446. Calls:
  447. vTaskSetTimeOutState/63 (vTaskSetTimeOutState) @06d0e0e0
  448. Type: function definition analyzed
  449. Visibility: force_output externally_visible no_reorder public
  450. References: xNumOfOverflows/23 (read)xTickCount/18 (read)
  451. Referring:
  452. Availability: available
  453. Function flags: body
  454. Called by:
  455. Calls: vPortExitCritical/101 vPortEnterCritical/100
  456. vTaskRemoveFromUnorderedEventList/62 (vTaskRemoveFromUnorderedEventList) @06cca9a0
  457. Type: function definition analyzed
  458. Visibility: force_output externally_visible no_reorder public
  459. References: uxSchedulerSuspended/28 (read)uxTopReadyPriority/19 (read)uxTopReadyPriority/19 (write)pxReadyTasksLists/8 (read)pxReadyTasksLists/8 (addr)pxReadyTasksLists/8 (read)pxReadyTasksLists/8 (write)pxCurrentTCB/7 (read)xYieldPending/22 (write)
  460. Referring:
  461. Availability: available
  462. Function flags: body
  463. Called by:
  464. Calls:
  465. xTaskRemoveFromEventList/61 (xTaskRemoveFromEventList) @06ccad20
  466. Type: function definition analyzed
  467. Visibility: force_output externally_visible no_reorder public
  468. References: uxSchedulerSuspended/28 (read)uxTopReadyPriority/19 (read)uxTopReadyPriority/19 (write)pxReadyTasksLists/8 (read)pxReadyTasksLists/8 (addr)pxReadyTasksLists/8 (read)pxReadyTasksLists/8 (write)xPendingReadyList/13 (read)xPendingReadyList/13 (addr)xPendingReadyList/13 (read)xPendingReadyList/13 (write)pxCurrentTCB/7 (read)xYieldPending/22 (write)
  469. Referring:
  470. Availability: available
  471. Function flags: body
  472. Called by:
  473. Calls:
  474. vTaskPlaceOnEventListRestricted/60 (vTaskPlaceOnEventListRestricted) @06cca8c0
  475. Type: function definition analyzed
  476. Visibility: force_output externally_visible no_reorder public
  477. References: pxCurrentTCB/7 (read)pxCurrentTCB/7 (read)pxCurrentTCB/7 (read)pxCurrentTCB/7 (read)pxCurrentTCB/7 (read)
  478. Referring:
  479. Availability: available
  480. Function flags: body
  481. Called by:
  482. Calls: prvAddCurrentTaskToDelayedList/94
  483. vTaskPlaceOnUnorderedEventList/59 (vTaskPlaceOnUnorderedEventList) @06cca540
  484. Type: function definition analyzed
  485. Visibility: force_output externally_visible no_reorder public
  486. References: uxSchedulerSuspended/28 (read)pxCurrentTCB/7 (read)pxCurrentTCB/7 (read)pxCurrentTCB/7 (read)pxCurrentTCB/7 (read)pxCurrentTCB/7 (read)pxCurrentTCB/7 (read)
  487. Referring:
  488. Availability: available
  489. Function flags: body
  490. Called by:
  491. Calls: prvAddCurrentTaskToDelayedList/94
  492. vTaskPlaceOnEventList/58 (vTaskPlaceOnEventList) @06cca000
  493. Type: function definition analyzed
  494. Visibility: force_output externally_visible no_reorder public
  495. References: pxCurrentTCB/7 (read)
  496. Referring:
  497. Availability: available
  498. Function flags: body
  499. Called by:
  500. Calls: prvAddCurrentTaskToDelayedList/94 vListInsert/109
  501. vTaskSwitchContext/57 (vTaskSwitchContext) @06c5f380
  502. Type: function definition analyzed
  503. Visibility: force_output externally_visible no_reorder public
  504. References: uxSchedulerSuspended/28 (read)xYieldPending/22 (write)xYieldPending/22 (write)uxTopReadyPriority/19 (read)pxReadyTasksLists/8 (read)pxReadyTasksLists/8 (addr)pxCurrentTCB/7 (write)uxTopReadyPriority/19 (write)
  505. Referring:
  506. Availability: available
  507. Function flags: body
  508. Called by: vTaskSuspend/39
  509. Calls:
  510. xTaskIncrementTick/56 (xTaskIncrementTick) @06c5fc40
  511. Type: function definition analyzed
  512. Visibility: force_output externally_visible no_reorder public
  513. References: uxSchedulerSuspended/28 (read)xTickCount/18 (read)xTickCount/18 (write)pxDelayedTaskList/11 (read)pxDelayedTaskList/11 (read)pxOverflowDelayedTaskList/12 (read)pxDelayedTaskList/11 (write)pxOverflowDelayedTaskList/12 (write)xNumOfOverflows/23 (read)xNumOfOverflows/23 (write)xNextTaskUnblockTime/25 (read)pxDelayedTaskList/11 (read)xNextTaskUnblockTime/25 (write)pxDelayedTaskList/11 (read)xNextTaskUnblockTime/25 (write)uxTopReadyPriority/19 (read)uxTopReadyPriority/19 (write)pxReadyTasksLists/8 (read)pxReadyTasksLists/8 (addr)pxReadyTasksLists/8 (read)pxReadyTasksLists/8 (write)pxCurrentTCB/7 (read)pxCurrentTCB/7 (read)pxReadyTasksLists/8 (read)xYieldPending/22 (read)xPendedTicks/21 (read)xPendedTicks/21 (write)
  514. Referring:
  515. Availability: available
  516. Function flags: body
  517. Called by: xTaskResumeAll/46
  518. Calls: prvResetNextTaskUnblockTime/77
  519. xTaskAbortDelay/55 (xTaskAbortDelay) @06c5f620
  520. Type: function definition analyzed
  521. Visibility: force_output externally_visible no_reorder public
  522. References: uxTopReadyPriority/19 (read)uxTopReadyPriority/19 (write)pxReadyTasksLists/8 (read)pxReadyTasksLists/8 (addr)pxReadyTasksLists/8 (read)pxReadyTasksLists/8 (write)pxCurrentTCB/7 (read)xYieldPending/22 (write)
  523. Referring:
  524. Availability: available
  525. Function flags: body
  526. Called by:
  527. Calls: xTaskResumeAll/46 vPortExitCritical/101 uxListRemove/102 vPortEnterCritical/100 uxListRemove/102 eTaskGetState/35 vTaskSuspendAll/45
  528. xTaskCatchUpTicks/54 (xTaskCatchUpTicks) @06c5f2a0
  529. Type: function definition analyzed
  530. Visibility: force_output externally_visible no_reorder public
  531. References: uxSchedulerSuspended/28 (read)xPendedTicks/21 (read)xPendedTicks/21 (write)
  532. Referring:
  533. Availability: available
  534. Function flags: body
  535. Called by:
  536. Calls: xTaskResumeAll/46 vTaskSuspendAll/45
  537. uxTaskGetSystemState/53 (uxTaskGetSystemState) @06c56e00
  538. Type: function definition analyzed
  539. Visibility: force_output externally_visible no_reorder public
  540. References: uxCurrentNumberOfTasks/17 (read)pxReadyTasksLists/8 (addr)pxDelayedTaskList/11 (read)pxOverflowDelayedTaskList/12 (read)xTasksWaitingTermination/14 (addr)xSuspendedTaskList/16 (addr)
  541. Referring:
  542. Availability: available
  543. Function flags: body
  544. Called by: vTaskList/84
  545. Calls: xTaskResumeAll/46 prvListTasksWithinSingleList/73 prvListTasksWithinSingleList/73 prvListTasksWithinSingleList/73 prvListTasksWithinSingleList/73 prvListTasksWithinSingleList/73 vTaskSuspendAll/45
  546. xTaskGetHandle/52 (xTaskGetHandle) @06c56700
  547. Type: function definition analyzed
  548. Visibility: force_output externally_visible no_reorder public
  549. References: pxReadyTasksLists/8 (addr)pxDelayedTaskList/11 (read)pxOverflowDelayedTaskList/12 (read)xSuspendedTaskList/16 (addr)xTasksWaitingTermination/14 (addr)
  550. Referring:
  551. Availability: available
  552. Function flags: body
  553. Called by:
  554. Calls: xTaskResumeAll/46 prvSearchForNameWithinSingleList/51 prvSearchForNameWithinSingleList/51 prvSearchForNameWithinSingleList/51 prvSearchForNameWithinSingleList/51 prvSearchForNameWithinSingleList/51 vTaskSuspendAll/45 strlen/108
  555. prvSearchForNameWithinSingleList/51 (prvSearchForNameWithinSingleList) @06c561c0
  556. Type: function definition analyzed
  557. Visibility: force_output no_reorder prevailing_def_ironly
  558. References:
  559. Referring:
  560. Availability: available
  561. Function flags: body
  562. Called by: xTaskGetHandle/52 xTaskGetHandle/52 xTaskGetHandle/52 xTaskGetHandle/52 xTaskGetHandle/52
  563. Calls:
  564. pcTaskGetName/50 (pcTaskGetName) @06c56d20
  565. Type: function definition analyzed
  566. Visibility: force_output externally_visible no_reorder public
  567. References: pxCurrentTCB/7 (read)
  568. Referring:
  569. Availability: available
  570. Function flags: body
  571. Called by:
  572. Calls:
  573. uxTaskGetNumberOfTasks/49 (uxTaskGetNumberOfTasks) @06c568c0
  574. Type: function definition analyzed
  575. Visibility: force_output externally_visible no_reorder public
  576. References: uxCurrentNumberOfTasks/17 (read)
  577. Referring:
  578. Availability: available
  579. Function flags: body
  580. Called by:
  581. Calls:
  582. xTaskGetTickCountFromISR/48 (xTaskGetTickCountFromISR) @06c56620
  583. Type: function definition analyzed
  584. Visibility: force_output externally_visible no_reorder public
  585. References: xTickCount/18 (read)
  586. Referring:
  587. Availability: available
  588. Function flags: body
  589. Called by:
  590. Calls: vPortValidateInterruptPriority/104
  591. xTaskGetTickCount/47 (xTaskGetTickCount) @06c56380
  592. Type: function definition analyzed
  593. Visibility: force_output externally_visible no_reorder public
  594. References: xTickCount/18 (read)
  595. Referring:
  596. Availability: available
  597. Function flags: body
  598. Called by:
  599. Calls:
  600. xTaskResumeAll/46 (xTaskResumeAll) @06c560e0
  601. Type: function definition analyzed
  602. Visibility: force_output externally_visible no_reorder public
  603. References: uxSchedulerSuspended/28 (read)uxSchedulerSuspended/28 (read)uxSchedulerSuspended/28 (write)uxSchedulerSuspended/28 (read)uxCurrentNumberOfTasks/17 (read)xPendingReadyList/13 (read)uxTopReadyPriority/19 (read)uxTopReadyPriority/19 (write)pxReadyTasksLists/8 (read)pxReadyTasksLists/8 (addr)pxReadyTasksLists/8 (read)pxReadyTasksLists/8 (write)pxCurrentTCB/7 (read)xYieldPending/22 (write)xPendingReadyList/13 (read)xPendedTicks/21 (read)xYieldPending/22 (write)xPendedTicks/21 (write)xYieldPending/22 (read)
  604. Referring:
  605. Availability: available
  606. Function flags: body
  607. Called by: vTaskDelay/34 xTaskDelayUntil/33 uxTaskGetSystemState/53 vTaskGetInfo/72 xTaskAbortDelay/55 xTaskCatchUpTicks/54 xTaskGetHandle/52
  608. Calls: vPortExitCritical/101 xTaskIncrementTick/56 prvResetNextTaskUnblockTime/77 vPortEnterCritical/100
  609. vTaskSuspendAll/45 (vTaskSuspendAll) @06c450e0
  610. Type: function definition analyzed
  611. Visibility: force_output externally_visible no_reorder public
  612. References: uxSchedulerSuspended/28 (read)uxSchedulerSuspended/28 (write)
  613. Referring:
  614. Availability: available
  615. Function flags: body
  616. Called by: vTaskDelay/34 xTaskDelayUntil/33 uxTaskGetSystemState/53 vTaskGetInfo/72 xTaskAbortDelay/55 xTaskCatchUpTicks/54 xTaskGetHandle/52
  617. Calls:
  618. vTaskEndScheduler/44 (vTaskEndScheduler) @06c45d20
  619. Type: function definition analyzed
  620. Visibility: force_output externally_visible no_reorder public
  621. References: xSchedulerRunning/20 (write)
  622. Referring:
  623. Availability: available
  624. Function flags: body
  625. Called by:
  626. Calls: vPortEndScheduler/107
  627. vTaskStartScheduler/43 (vTaskStartScheduler) @06c45a80
  628. Type: function definition analyzed
  629. Visibility: force_output externally_visible no_reorder public
  630. References: prvIdleTask/69 (addr)xIdleTaskHandle/26 (addr)xNextTaskUnblockTime/25 (write)xSchedulerRunning/20 (write)xTickCount/18 (write)uxTopUsedPriority/27 (read)
  631. Referring:
  632. Availability: available
  633. Function flags: body
  634. Called by:
  635. Calls: xPortStartScheduler/106 xTimerCreateTimerTask/105 xTaskCreate/29
  636. xTaskResumeFromISR/42 (xTaskResumeFromISR) @06c457e0
  637. Type: function definition analyzed
  638. Visibility: force_output externally_visible no_reorder public
  639. References: uxSchedulerSuspended/28 (read)pxCurrentTCB/7 (read)xYieldPending/22 (write)uxTopReadyPriority/19 (read)uxTopReadyPriority/19 (write)pxReadyTasksLists/8 (read)pxReadyTasksLists/8 (addr)pxReadyTasksLists/8 (read)pxReadyTasksLists/8 (write)xPendingReadyList/13 (addr)
  640. Referring:
  641. Availability: available
  642. Function flags: body
  643. Called by:
  644. Calls: vListInsertEnd/103 uxListRemove/102 prvTaskIsTaskSuspended/40 vPortValidateInterruptPriority/104
  645. vTaskResume/41 (vTaskResume) @06c45460
  646. Type: function definition analyzed
  647. Visibility: force_output externally_visible no_reorder public
  648. References: pxCurrentTCB/7 (read)uxTopReadyPriority/19 (read)uxTopReadyPriority/19 (write)pxReadyTasksLists/8 (read)pxReadyTasksLists/8 (addr)pxReadyTasksLists/8 (read)pxReadyTasksLists/8 (write)pxCurrentTCB/7 (read)
  649. Referring:
  650. Availability: available
  651. Function flags: body
  652. Called by:
  653. Calls: vPortExitCritical/101 uxListRemove/102 prvTaskIsTaskSuspended/40 vPortEnterCritical/100
  654. prvTaskIsTaskSuspended/40 (prvTaskIsTaskSuspended) @06c45000
  655. Type: function definition analyzed
  656. Visibility: force_output no_reorder prevailing_def_ironly
  657. References: xSuspendedTaskList/16 (addr)xPendingReadyList/13 (addr)
  658. Referring:
  659. Availability: available
  660. Function flags: body
  661. Called by: xTaskResumeFromISR/42 vTaskResume/41
  662. Calls:
  663. vTaskSuspend/39 (vTaskSuspend) @06c38380
  664. Type: function definition analyzed
  665. Visibility: force_output externally_visible no_reorder public
  666. References: pxCurrentTCB/7 (read)xSuspendedTaskList/16 (addr)xSchedulerRunning/20 (read)pxCurrentTCB/7 (read)xSchedulerRunning/20 (read)uxSchedulerSuspended/28 (read)xSuspendedTaskList/16 (read)uxCurrentNumberOfTasks/17 (read)pxCurrentTCB/7 (write)
  667. Referring:
  668. Availability: available
  669. Function flags: body
  670. Called by:
  671. Calls: vTaskSwitchContext/57 vPortExitCritical/101 prvResetNextTaskUnblockTime/77 vPortEnterCritical/100 vPortExitCritical/101 vListInsertEnd/103 uxListRemove/102 uxListRemove/102 vPortEnterCritical/100
  672. vTaskPrioritySet/38 (vTaskPrioritySet) @06c38b60
  673. Type: function definition analyzed
  674. Visibility: force_output externally_visible no_reorder public
  675. References: pxCurrentTCB/7 (read)pxCurrentTCB/7 (read)pxCurrentTCB/7 (read)pxCurrentTCB/7 (read)pxReadyTasksLists/8 (addr)uxTopReadyPriority/19 (read)uxTopReadyPriority/19 (write)pxReadyTasksLists/8 (read)pxReadyTasksLists/8 (addr)pxReadyTasksLists/8 (read)pxReadyTasksLists/8 (write)
  676. Referring:
  677. Availability: available
  678. Function flags: body
  679. Called by:
  680. Calls: vPortExitCritical/101 uxListRemove/102 vPortEnterCritical/100
  681. uxTaskPriorityGetFromISR/37 (uxTaskPriorityGetFromISR) @06c38620
  682. Type: function definition analyzed
  683. Visibility: force_output externally_visible no_reorder public
  684. References: pxCurrentTCB/7 (read)
  685. Referring:
  686. Availability: available
  687. Function flags: body
  688. Called by:
  689. Calls: vPortValidateInterruptPriority/104
  690. uxTaskPriorityGet/36 (uxTaskPriorityGet) @06c382a0
  691. Type: function definition analyzed
  692. Visibility: force_output externally_visible no_reorder public
  693. References: pxCurrentTCB/7 (read)
  694. Referring:
  695. Availability: available
  696. Function flags: body
  697. Called by:
  698. Calls: vPortExitCritical/101 vPortEnterCritical/100
  699. eTaskGetState/35 (eTaskGetState) @06c2cb60
  700. Type: function definition analyzed
  701. Visibility: force_output externally_visible no_reorder public
  702. References: pxCurrentTCB/7 (read)pxDelayedTaskList/11 (read)pxOverflowDelayedTaskList/12 (read)xSuspendedTaskList/16 (addr)xTasksWaitingTermination/14 (addr)
  703. Referring:
  704. Availability: available
  705. Function flags: body
  706. Called by: vTaskGetInfo/72 xTaskAbortDelay/55
  707. Calls: vPortExitCritical/101 vPortEnterCritical/100
  708. vTaskDelay/34 (vTaskDelay) @06c2cee0
  709. Type: function definition analyzed
  710. Visibility: force_output externally_visible no_reorder public
  711. References: uxSchedulerSuspended/28 (read)
  712. Referring:
  713. Availability: available
  714. Function flags: body
  715. Called by:
  716. Calls: xTaskResumeAll/46 prvAddCurrentTaskToDelayedList/94 vTaskSuspendAll/45
  717. xTaskDelayUntil/33 (xTaskDelayUntil) @06c2ca80
  718. Type: function definition analyzed
  719. Visibility: force_output externally_visible no_reorder public
  720. References: uxSchedulerSuspended/28 (read)xTickCount/18 (read)
  721. Referring:
  722. Availability: available
  723. Function flags: body
  724. Called by:
  725. Calls: xTaskResumeAll/46 prvAddCurrentTaskToDelayedList/94 vTaskSuspendAll/45
  726. vTaskDelete/32 (vTaskDelete) @06c2c460
  727. Type: function definition analyzed
  728. Visibility: force_output externally_visible no_reorder public
  729. References: pxCurrentTCB/7 (read)uxTaskNumber/24 (read)uxTaskNumber/24 (write)pxCurrentTCB/7 (read)xTasksWaitingTermination/14 (addr)uxDeletedTasksWaitingCleanUp/15 (read)uxDeletedTasksWaitingCleanUp/15 (write)uxCurrentNumberOfTasks/17 (read)uxCurrentNumberOfTasks/17 (write)xSchedulerRunning/20 (read)pxCurrentTCB/7 (read)uxSchedulerSuspended/28 (read)
  730. Referring:
  731. Availability: available
  732. Function flags: body
  733. Called by:
  734. Calls: vPortExitCritical/101 prvResetNextTaskUnblockTime/77 prvDeleteTCB/76 vListInsertEnd/103 uxListRemove/102 uxListRemove/102 vPortEnterCritical/100
  735. prvAddNewTaskToReadyList/31 (prvAddNewTaskToReadyList) @06c18ee0
  736. Type: function definition analyzed
  737. Visibility: force_output no_reorder prevailing_def_ironly
  738. References: uxCurrentNumberOfTasks/17 (read)uxCurrentNumberOfTasks/17 (write)pxCurrentTCB/7 (read)pxCurrentTCB/7 (write)uxCurrentNumberOfTasks/17 (read)xSchedulerRunning/20 (read)pxCurrentTCB/7 (read)pxCurrentTCB/7 (write)uxTaskNumber/24 (read)uxTaskNumber/24 (write)uxTaskNumber/24 (read)uxTopReadyPriority/19 (read)uxTopReadyPriority/19 (write)pxReadyTasksLists/8 (read)pxReadyTasksLists/8 (addr)pxReadyTasksLists/8 (read)pxReadyTasksLists/8 (write)xSchedulerRunning/20 (read)pxCurrentTCB/7 (read)
  739. Referring:
  740. Availability: available
  741. Function flags: body
  742. Called by: xTaskCreate/29
  743. Calls: vPortExitCritical/101 prvInitialiseTaskLists/70 vPortEnterCritical/100
  744. prvInitialiseNewTask/30 (prvInitialiseNewTask) @06c18e00
  745. Type: function definition analyzed
  746. Visibility: force_output no_reorder prevailing_def_ironly
  747. References:
  748. Referring:
  749. Availability: available
  750. Function flags: body
  751. Called by: xTaskCreate/29
  752. Calls: pxPortInitialiseStack/99 memset/97 memset/97 vListInitialiseItem/98 vListInitialiseItem/98 memset/97
  753. xTaskCreate/29 (xTaskCreate) @06c188c0
  754. Type: function definition analyzed
  755. Visibility: force_output externally_visible no_reorder public
  756. References:
  757. Referring:
  758. Availability: available
  759. Function flags: body
  760. Called by: vTaskStartScheduler/43
  761. Calls: prvAddNewTaskToReadyList/31 prvInitialiseNewTask/30 vPortFree/96 pvPortMalloc/95 pvPortMalloc/95
  762. uxSchedulerSuspended/28 (uxSchedulerSuspended) @06c115a0
  763. Type: variable definition analyzed
  764. Visibility: force_output no_reorder prevailing_def_ironly
  765. References:
  766. Referring: xTaskRemoveFromEventList/61 (read)xTaskGenericNotifyFromISR/90 (read)vTaskGenericNotifyGiveFromISR/91 (read)vTaskRemoveFromUnorderedEventList/62 (read)xTaskGetSchedulerState/79 (read)xTaskCatchUpTicks/54 (read)vTaskDelay/34 (read)vTaskSwitchContext/57 (read)xTaskResumeAll/46 (read)vTaskSuspendAll/45 (read)vTaskSuspend/39 (read)xTaskIncrementTick/56 (read)vTaskDelete/32 (read)xTaskResumeFromISR/42 (read)xTaskDelayUntil/33 (read)vTaskSuspendAll/45 (write)xTaskResumeAll/46 (read)xTaskResumeAll/46 (read)xTaskResumeAll/46 (write)vTaskPlaceOnUnorderedEventList/59 (read)
  767. Availability: available
  768. Varpool flags: initialized
  769. uxTopUsedPriority/27 (uxTopUsedPriority) @06c11510
  770. Type: variable definition analyzed
  771. Visibility: force_output externally_visible no_reorder public
  772. References:
  773. Referring: vTaskStartScheduler/43 (read)
  774. Availability: available
  775. Varpool flags: initialized read-only
  776. xIdleTaskHandle/26 (xIdleTaskHandle) @06c11480
  777. Type: variable definition analyzed
  778. Visibility: force_output no_reorder prevailing_def_ironly
  779. References:
  780. Referring: vTaskStartScheduler/43 (addr)
  781. Availability: available
  782. Varpool flags: initialized
  783. xNextTaskUnblockTime/25 (xNextTaskUnblockTime) @06c113f0
  784. Type: variable definition analyzed
  785. Visibility: force_output no_reorder prevailing_def_ironly
  786. References:
  787. Referring: prvResetNextTaskUnblockTime/77 (write)xTaskIncrementTick/56 (write)xTaskIncrementTick/56 (write)vTaskStartScheduler/43 (write)prvResetNextTaskUnblockTime/77 (write)xTaskIncrementTick/56 (read)prvAddCurrentTaskToDelayedList/94 (read)prvAddCurrentTaskToDelayedList/94 (write)
  788. Availability: available
  789. Varpool flags: initialized
  790. uxTaskNumber/24 (uxTaskNumber) @06c11360
  791. Type: variable definition analyzed
  792. Visibility: force_output no_reorder prevailing_def_ironly
  793. References:
  794. Referring: prvAddNewTaskToReadyList/31 (read)prvAddNewTaskToReadyList/31 (write)prvAddNewTaskToReadyList/31 (read)vTaskDelete/32 (read)vTaskDelete/32 (write)
  795. Availability: available
  796. Varpool flags: initialized
  797. xNumOfOverflows/23 (xNumOfOverflows) @06c11318
  798. Type: variable definition analyzed
  799. Visibility: force_output no_reorder prevailing_def_ironly
  800. References:
  801. Referring: xTaskCheckForTimeOut/65 (read)vTaskInternalSetTimeOutState/64 (read)vTaskSetTimeOutState/63 (read)xTaskIncrementTick/56 (read)xTaskIncrementTick/56 (write)
  802. Availability: available
  803. Varpool flags: initialized
  804. xYieldPending/22 (xYieldPending) @06c112d0
  805. Type: variable definition analyzed
  806. Visibility: force_output no_reorder prevailing_def_ironly
  807. References:
  808. Referring: xTaskAbortDelay/55 (write)xTaskRemoveFromEventList/61 (write)vTaskSwitchContext/57 (write)vTaskMissedYield/66 (write)xTaskIncrementTick/56 (read)vTaskRemoveFromUnorderedEventList/62 (write)xTaskResumeAll/46 (read)xTaskGenericNotifyFromISR/90 (write)xTaskResumeFromISR/42 (write)vTaskSwitchContext/57 (write)xTaskResumeAll/46 (write)xTaskResumeAll/46 (write)vTaskGenericNotifyGiveFromISR/91 (write)
  809. Availability: available
  810. Varpool flags: initialized
  811. xPendedTicks/21 (xPendedTicks) @06c11240
  812. Type: variable definition analyzed
  813. Visibility: force_output no_reorder prevailing_def_ironly
  814. References:
  815. Referring: xTaskResumeAll/46 (read)xTaskResumeAll/46 (write)xTaskIncrementTick/56 (read)xTaskIncrementTick/56 (write)xTaskCatchUpTicks/54 (read)xTaskCatchUpTicks/54 (write)
  816. Availability: available
  817. Varpool flags: initialized
  818. xSchedulerRunning/20 (xSchedulerRunning) @06c111b0
  819. Type: variable definition analyzed
  820. Visibility: force_output no_reorder prevailing_def_ironly
  821. References:
  822. Referring: vTaskDelete/32 (read)vTaskSuspend/39 (read)prvAddNewTaskToReadyList/31 (read)prvAddNewTaskToReadyList/31 (read)vTaskStartScheduler/43 (write)vTaskEndScheduler/44 (write)vTaskSuspend/39 (read)xTaskGetSchedulerState/79 (read)
  823. Availability: available
  824. Varpool flags: initialized
  825. uxTopReadyPriority/19 (uxTopReadyPriority) @06c11120
  826. Type: variable definition analyzed
  827. Visibility: force_output no_reorder prevailing_def_ironly
  828. References:
  829. Referring: xTaskRemoveFromEventList/61 (read)xTaskRemoveFromEventList/61 (write)xTaskGenericNotify/89 (read)xTaskGenericNotify/89 (write)xTaskGenericNotifyFromISR/90 (read)xTaskGenericNotifyFromISR/90 (write)vTaskPrioritySet/38 (read)vTaskPrioritySet/38 (write)prvAddNewTaskToReadyList/31 (read)prvAddNewTaskToReadyList/31 (write)xTaskIncrementTick/56 (read)xTaskIncrementTick/56 (write)vTaskRemoveFromUnorderedEventList/62 (read)vTaskRemoveFromUnorderedEventList/62 (write)vTaskResume/41 (read)vTaskResume/41 (write)xTaskResumeFromISR/42 (read)xTaskResumeFromISR/42 (write)vTaskSwitchContext/57 (read)vTaskSwitchContext/57 (write)xTaskResumeAll/46 (read)xTaskResumeAll/46 (write)xTaskAbortDelay/55 (read)xTaskAbortDelay/55 (write)xTaskPriorityInherit/80 (read)xTaskPriorityInherit/80 (write)xTaskPriorityDisinherit/81 (read)xTaskPriorityDisinherit/81 (write)vTaskPriorityDisinheritAfterTimeout/82 (read)vTaskPriorityDisinheritAfterTimeout/82 (write)vTaskGenericNotifyGiveFromISR/91 (read)vTaskGenericNotifyGiveFromISR/91 (write)
  830. Availability: available
  831. Varpool flags: initialized
  832. xTickCount/18 (xTickCount) @06c110d8
  833. Type: variable definition analyzed
  834. Visibility: force_output no_reorder prevailing_def_ironly
  835. References:
  836. Referring: xTaskGenericNotifyFromISR/90 (read)vTaskInternalSetTimeOutState/64 (read)xTaskGenericNotify/89 (read)prvAddCurrentTaskToDelayedList/94 (read)xTaskIncrementTick/56 (write)xTaskCheckForTimeOut/65 (read)xTaskGetTickCount/47 (read)xTaskGetTickCountFromISR/48 (read)vTaskSetTimeOutState/63 (read)vTaskStartScheduler/43 (write)xTaskIncrementTick/56 (read)xTaskDelayUntil/33 (read)
  837. Availability: available
  838. Varpool flags: initialized
  839. uxCurrentNumberOfTasks/17 (uxCurrentNumberOfTasks) @06c11090
  840. Type: variable definition analyzed
  841. Visibility: force_output no_reorder prevailing_def_ironly
  842. References:
  843. Referring: uxTaskGetNumberOfTasks/49 (read)prvCheckTasksWaitingTermination/71 (read)uxTaskGetSystemState/53 (read)prvAddNewTaskToReadyList/31 (write)prvAddNewTaskToReadyList/31 (read)prvCheckTasksWaitingTermination/71 (write)vTaskDelete/32 (write)xTaskResumeAll/46 (read)vTaskSuspend/39 (read)vTaskDelete/32 (read)prvAddNewTaskToReadyList/31 (read)vTaskList/84 (read)vTaskList/84 (read)
  844. Availability: available
  845. Varpool flags: initialized
  846. xSuspendedTaskList/16 (xSuspendedTaskList) @06c0ef78
  847. Type: variable definition analyzed
  848. Visibility: force_output no_reorder prevailing_def_ironly
  849. References:
  850. Referring: xTaskGetHandle/52 (addr)vTaskSuspend/39 (addr)prvTaskIsTaskSuspended/40 (addr)uxTaskGetSystemState/53 (addr)prvInitialiseTaskLists/70 (addr)vTaskSuspend/39 (read)eTaskGetState/35 (addr)prvAddCurrentTaskToDelayedList/94 (read)prvAddCurrentTaskToDelayedList/94 (addr)prvAddCurrentTaskToDelayedList/94 (read)prvAddCurrentTaskToDelayedList/94 (write)
  851. Availability: available
  852. Varpool flags:
  853. uxDeletedTasksWaitingCleanUp/15 (uxDeletedTasksWaitingCleanUp) @06c0eee8
  854. Type: variable definition analyzed
  855. Visibility: force_output no_reorder prevailing_def_ironly
  856. References:
  857. Referring: prvCheckTasksWaitingTermination/71 (write)prvCheckTasksWaitingTermination/71 (read)prvCheckTasksWaitingTermination/71 (read)vTaskDelete/32 (read)vTaskDelete/32 (write)
  858. Availability: available
  859. Varpool flags: initialized
  860. xTasksWaitingTermination/14 (xTasksWaitingTermination) @06c0ee58
  861. Type: variable definition analyzed
  862. Visibility: force_output no_reorder prevailing_def_ironly
  863. References:
  864. Referring: prvInitialiseTaskLists/70 (addr)eTaskGetState/35 (addr)prvCheckTasksWaitingTermination/71 (read)vTaskDelete/32 (addr)xTaskGetHandle/52 (addr)uxTaskGetSystemState/53 (addr)
  865. Availability: available
  866. Varpool flags:
  867. xPendingReadyList/13 (xPendingReadyList) @06c0edc8
  868. Type: variable definition analyzed
  869. Visibility: force_output no_reorder prevailing_def_ironly
  870. References:
  871. Referring: xTaskResumeAll/46 (read)xTaskGenericNotifyFromISR/90 (write)xTaskGenericNotifyFromISR/90 (read)xTaskRemoveFromEventList/61 (write)xTaskRemoveFromEventList/61 (read)xTaskRemoveFromEventList/61 (addr)xTaskResumeAll/46 (read)prvTaskIsTaskSuspended/40 (addr)xTaskResumeFromISR/42 (addr)xTaskGenericNotifyFromISR/90 (read)xTaskGenericNotifyFromISR/90 (addr)xTaskRemoveFromEventList/61 (read)prvInitialiseTaskLists/70 (addr)vTaskGenericNotifyGiveFromISR/91 (read)vTaskGenericNotifyGiveFromISR/91 (addr)vTaskGenericNotifyGiveFromISR/91 (read)vTaskGenericNotifyGiveFromISR/91 (write)
  872. Availability: available
  873. Varpool flags:
  874. pxOverflowDelayedTaskList/12 (pxOverflowDelayedTaskList) @06c0ed38
  875. Type: variable definition analyzed
  876. Visibility: force_output no_reorder prevailing_def_ironly
  877. References:
  878. Referring: xTaskGetHandle/52 (read)prvInitialiseTaskLists/70 (write)xTaskIncrementTick/56 (write)uxTaskGetSystemState/53 (read)eTaskGetState/35 (read)xTaskIncrementTick/56 (read)prvAddCurrentTaskToDelayedList/94 (read)
  879. Availability: available
  880. Varpool flags:
  881. pxDelayedTaskList/11 (pxDelayedTaskList) @06c0ecf0
  882. Type: variable definition analyzed
  883. Visibility: force_output no_reorder prevailing_def_ironly
  884. References:
  885. Referring: xTaskGetHandle/52 (read)prvResetNextTaskUnblockTime/77 (read)xTaskIncrementTick/56 (read)prvInitialiseTaskLists/70 (write)uxTaskGetSystemState/53 (read)eTaskGetState/35 (read)prvResetNextTaskUnblockTime/77 (read)xTaskIncrementTick/56 (read)xTaskIncrementTick/56 (read)xTaskIncrementTick/56 (write)xTaskIncrementTick/56 (read)prvAddCurrentTaskToDelayedList/94 (read)
  886. Availability: available
  887. Varpool flags:
  888. xDelayedTaskList2/10 (xDelayedTaskList2) @06c0eca8
  889. Type: variable definition analyzed
  890. Visibility: force_output no_reorder prevailing_def_ironly
  891. References:
  892. Referring: prvInitialiseTaskLists/70 (addr)prvInitialiseTaskLists/70 (addr)
  893. Availability: available
  894. Varpool flags:
  895. xDelayedTaskList1/9 (xDelayedTaskList1) @06c0ec18
  896. Type: variable definition analyzed
  897. Visibility: force_output no_reorder prevailing_def_ironly
  898. References:
  899. Referring: prvInitialiseTaskLists/70 (addr)prvInitialiseTaskLists/70 (addr)
  900. Availability: available
  901. Varpool flags:
  902. pxReadyTasksLists/8 (pxReadyTasksLists) @06c0eb88
  903. Type: variable definition analyzed
  904. Visibility: force_output no_reorder prevailing_def_ironly
  905. References:
  906. Referring: xTaskRemoveFromEventList/61 (read)xTaskRemoveFromEventList/61 (addr)xTaskRemoveFromEventList/61 (read)vTaskRemoveFromUnorderedEventList/62 (write)vTaskPriorityDisinheritAfterTimeout/82 (write)xTaskGenericNotify/89 (read)xTaskGenericNotify/89 (addr)xTaskGenericNotify/89 (read)xTaskGenericNotify/89 (write)xTaskGenericNotifyFromISR/90 (read)xTaskGenericNotifyFromISR/90 (addr)xTaskGenericNotifyFromISR/90 (read)xTaskGenericNotifyFromISR/90 (write)vTaskPrioritySet/38 (read)vTaskPrioritySet/38 (addr)vTaskPrioritySet/38 (read)vTaskPrioritySet/38 (write)prvAddNewTaskToReadyList/31 (read)prvAddNewTaskToReadyList/31 (addr)prvAddNewTaskToReadyList/31 (read)prvIdleTask/69 (read)xTaskIncrementTick/56 (read)xTaskGetHandle/52 (addr)xTaskIncrementTick/56 (addr)xTaskIncrementTick/56 (read)xTaskIncrementTick/56 (write)xTaskResumeAll/46 (write)xTaskPriorityInherit/80 (addr)vTaskRemoveFromUnorderedEventList/62 (read)vTaskRemoveFromUnorderedEventList/62 (addr)vTaskRemoveFromUnorderedEventList/62 (read)prvAddNewTaskToReadyList/31 (write)vTaskResume/41 (read)vTaskResume/41 (write)vTaskResume/41 (read)vTaskResume/41 (addr)xTaskResumeFromISR/42 (read)xTaskResumeFromISR/42 (write)xTaskResumeFromISR/42 (read)xTaskResumeFromISR/42 (addr)vTaskSwitchContext/57 (read)vTaskSwitchContext/57 (addr)prvInitialiseTaskLists/70 (addr)xTaskRemoveFromEventList/61 (write)vTaskPrioritySet/38 (addr)xTaskResumeAll/46 (read)xTaskResumeAll/46 (addr)xTaskResumeAll/46 (read)xTaskAbortDelay/55 (write)xTaskAbortDelay/55 (read)xTaskAbortDelay/55 (addr)xTaskAbortDelay/55 (read)uxTaskGetSystemState/53 (addr)xTaskIncrementTick/56 (read)xTaskPriorityInherit/80 (read)xTaskPriorityInherit/80 (addr)xTaskPriorityInherit/80 (read)xTaskPriorityInherit/80 (write)xTaskPriorityDisinherit/81 (read)xTaskPriorityDisinherit/81 (addr)xTaskPriorityDisinherit/81 (read)xTaskPriorityDisinherit/81 (write)vTaskPriorityDisinheritAfterTimeout/82 (read)vTaskPriorityDisinheritAfterTimeout/82 (addr)vTaskPriorityDisinheritAfterTimeout/82 (read)vTaskPriorityDisinheritAfterTimeout/82 (addr)vTaskGenericNotifyGiveFromISR/91 (read)vTaskGenericNotifyGiveFromISR/91 (addr)vTaskGenericNotifyGiveFromISR/91 (read)vTaskGenericNotifyGiveFromISR/91 (write)
  907. Availability: available
  908. Varpool flags:
  909. pxCurrentTCB/7 (pxCurrentTCB) @06c0eb40
  910. Type: variable definition analyzed
  911. Visibility: force_output externally_visible no_reorder public
  912. References:
  913. Referring: prvAddNewTaskToReadyList/31 (read)ulTaskGenericNotifyTake/87 (read)ulTaskGenericNotifyTake/87 (read)vTaskResume/41 (read)vTaskRemoveFromUnorderedEventList/62 (read)vTaskPrioritySet/38 (read)xTaskCheckForTimeOut/65 (read)prvAddNewTaskToReadyList/31 (read)xTaskGenericNotifyStateClear/92 (read)ulTaskGenericNotifyTake/87 (read)eTaskGetState/35 (read)prvAddNewTaskToReadyList/31 (write)uxTaskResetEventItemValue/85 (read)uxTaskResetEventItemValue/85 (read)uxTaskPriorityGet/36 (read)prvAddNewTaskToReadyList/31 (read)prvAddNewTaskToReadyList/31 (write)uxTaskGetStackHighWaterMark/75 (read)ulTaskGenericNotifyTake/87 (read)uxTaskPriorityGetFromISR/37 (read)vTaskPrioritySet/38 (read)vTaskSuspend/39 (write)vTaskResume/41 (read)xTaskIncrementTick/56 (read)vTaskDelete/32 (read)vTaskDelete/32 (read)xTaskResumeFromISR/42 (read)ulTaskGenericNotifyValueClear/93 (read)ulTaskGenericNotifyTake/87 (read)xTaskPriorityInherit/80 (read)xTaskPriorityInherit/80 (read)pvTaskIncrementMutexHeldCount/86 (read)pvTaskIncrementMutexHeldCount/86 (read)prvAddCurrentTaskToDelayedList/94 (read)prvAddCurrentTaskToDelayedList/94 (read)prvAddCurrentTaskToDelayedList/94 (read)prvAddCurrentTaskToDelayedList/94 (read)prvAddCurrentTaskToDelayedList/94 (read)vTaskPlaceOnEventList/58 (read)pcTaskGetName/50 (read)vTaskSwitchContext/57 (write)vTaskPrioritySet/38 (read)xTaskRemoveFromEventList/61 (read)vTaskSuspend/39 (read)xTaskResumeAll/46 (read)xTaskCheckForTimeOut/65 (read)xTaskAbortDelay/55 (read)ulTaskGenericNotifyTake/87 (read)vTaskPrioritySet/38 (read)vTaskDelete/32 (read)xTaskIncrementTick/56 (read)vTaskGetInfo/72 (read)xTaskGetCurrentTaskHandle/78 (read)xTaskPriorityInherit/80 (read)vTaskSuspend/39 (read)vTaskGetInfo/72 (read)xTaskPriorityDisinherit/81 (read)xTaskPriorityInherit/80 (read)xTaskPriorityInherit/80 (read)vTaskPriorityDisinheritAfterTimeout/82 (read)prvAddCurrentTaskToDelayedList/94 (read)vTaskPlaceOnUnorderedEventList/59 (read)vTaskPlaceOnUnorderedEventList/59 (read)vTaskPlaceOnUnorderedEventList/59 (read)vTaskPlaceOnUnorderedEventList/59 (read)vTaskPlaceOnUnorderedEventList/59 (read)prvAddCurrentTaskToDelayedList/94 (read)vTaskPlaceOnUnorderedEventList/59 (read)vTaskPlaceOnEventListRestricted/60 (read)vTaskPlaceOnEventListRestricted/60 (read)vTaskPlaceOnEventListRestricted/60 (read)vTaskPlaceOnEventListRestricted/60 (read)vTaskPlaceOnEventListRestricted/60 (read)uxTaskResetEventItemValue/85 (read)pvTaskIncrementMutexHeldCount/86 (read)xTaskGenericNotify/89 (read)xTaskGenericNotifyFromISR/90 (read)vTaskGenericNotifyGiveFromISR/91 (read)prvAddCurrentTaskToDelayedList/94 (read)prvAddCurrentTaskToDelayedList/94 (read)prvAddCurrentTaskToDelayedList/94 (read)xTaskGenericNotifyWait/88 (read)xTaskGenericNotifyWait/88 (read)xTaskGenericNotifyWait/88 (read)xTaskGenericNotifyWait/88 (read)xTaskGenericNotifyWait/88 (read)xTaskGenericNotifyWait/88 (read)xTaskGenericNotifyWait/88 (read)
  914. Availability: available
  915. Varpool flags: initialized
  916. prvAddCurrentTaskToDelayedList (TickType_t xTicksToWait, const BaseType_t xCanBlockIndefinitely)
  917. {
  918. struct ListItem_t * const pxIndex;
  919. const TickType_t xConstTickCount;
  920. TickType_t xTimeToWake;
  921. struct TCB_t * pxCurrentTCB.152_1;
  922. struct TCB_t * pxCurrentTCB.153_2;
  923. struct ListItem_t * _3;
  924. long unsigned int _4;
  925. struct TCB_t * pxCurrentTCB.154_5;
  926. struct TCB_t * pxCurrentTCB.155_6;
  927. struct xLIST_ITEM * _7;
  928. struct TCB_t * pxCurrentTCB.156_8;
  929. struct xLIST_ITEM * _9;
  930. struct ListItem_t * _10;
  931. struct TCB_t * pxCurrentTCB.157_11;
  932. struct ListItem_t * _12;
  933. struct TCB_t * pxCurrentTCB.158_13;
  934. long unsigned int _14;
  935. long unsigned int _15;
  936. struct TCB_t * pxCurrentTCB.159_16;
  937. struct List_t * pxOverflowDelayedTaskList.160_17;
  938. struct TCB_t * pxCurrentTCB.161_18;
  939. struct ListItem_t * _19;
  940. struct List_t * pxDelayedTaskList.162_20;
  941. struct TCB_t * pxCurrentTCB.163_21;
  942. struct ListItem_t * _22;
  943. long unsigned int xNextTaskUnblockTime.164_23;
  944. <bb 2> :
  945. xConstTickCount_26 ={v} xTickCount;
  946. pxCurrentTCB.152_1 ={v} pxCurrentTCB;
  947. pxCurrentTCB.152_1->ucDelayAborted = 0;
  948. pxCurrentTCB.153_2 ={v} pxCurrentTCB;
  949. _3 = &pxCurrentTCB.153_2->xStateListItem;
  950. _4 = uxListRemove (_3);
  951. <bb 3> :
  952. if (xTicksToWait_29(D) == 4294967295)
  953. goto <bb 4>; [INV]
  954. else
  955. goto <bb 6>; [INV]
  956. <bb 4> :
  957. if (xCanBlockIndefinitely_30(D) != 0)
  958. goto <bb 5>; [INV]
  959. else
  960. goto <bb 6>; [INV]
  961. <bb 5> :
  962. pxIndex_31 = xSuspendedTaskList.pxIndex;
  963. pxCurrentTCB.154_5 ={v} pxCurrentTCB;
  964. pxCurrentTCB.154_5->xStateListItem.pxNext = pxIndex_31;
  965. pxCurrentTCB.155_6 ={v} pxCurrentTCB;
  966. _7 = pxIndex_31->pxPrevious;
  967. pxCurrentTCB.155_6->xStateListItem.pxPrevious = _7;
  968. pxCurrentTCB.156_8 ={v} pxCurrentTCB;
  969. _9 = pxIndex_31->pxPrevious;
  970. _10 = &pxCurrentTCB.156_8->xStateListItem;
  971. _9->pxNext = _10;
  972. pxCurrentTCB.157_11 ={v} pxCurrentTCB;
  973. _12 = &pxCurrentTCB.157_11->xStateListItem;
  974. pxIndex_31->pxPrevious = _12;
  975. pxCurrentTCB.158_13 ={v} pxCurrentTCB;
  976. pxCurrentTCB.158_13->xStateListItem.pvContainer = &xSuspendedTaskList;
  977. _14 ={v} xSuspendedTaskList.uxNumberOfItems;
  978. _15 = _14 + 1;
  979. xSuspendedTaskList.uxNumberOfItems ={v} _15;
  980. goto <bb 10>; [INV]
  981. <bb 6> :
  982. xTimeToWake_38 = xConstTickCount_26 + xTicksToWait_29(D);
  983. pxCurrentTCB.159_16 ={v} pxCurrentTCB;
  984. pxCurrentTCB.159_16->xStateListItem.xItemValue = xTimeToWake_38;
  985. if (xTimeToWake_38 < xConstTickCount_26)
  986. goto <bb 7>; [INV]
  987. else
  988. goto <bb 8>; [INV]
  989. <bb 7> :
  990. pxOverflowDelayedTaskList.160_17 ={v} pxOverflowDelayedTaskList;
  991. pxCurrentTCB.161_18 ={v} pxCurrentTCB;
  992. _19 = &pxCurrentTCB.161_18->xStateListItem;
  993. vListInsert (pxOverflowDelayedTaskList.160_17, _19);
  994. goto <bb 10>; [INV]
  995. <bb 8> :
  996. pxDelayedTaskList.162_20 ={v} pxDelayedTaskList;
  997. pxCurrentTCB.163_21 ={v} pxCurrentTCB;
  998. _22 = &pxCurrentTCB.163_21->xStateListItem;
  999. vListInsert (pxDelayedTaskList.162_20, _22);
  1000. xNextTaskUnblockTime.164_23 ={v} xNextTaskUnblockTime;
  1001. if (xTimeToWake_38 < xNextTaskUnblockTime.164_23)
  1002. goto <bb 9>; [INV]
  1003. else
  1004. goto <bb 10>; [INV]
  1005. <bb 9> :
  1006. xNextTaskUnblockTime ={v} xTimeToWake_38;
  1007. <bb 10> :
  1008. return;
  1009. }
  1010. ulTaskGenericNotifyValueClear (struct tskTaskControlBlock * xTask, UBaseType_t uxIndexToClear, uint32_t ulBitsToClear)
  1011. {
  1012. uint32_t ulReturn;
  1013. struct TCB_t * pxTCB;
  1014. uint32_t D.8224;
  1015. struct TCB_t * iftmp.151;
  1016. long unsigned int _1;
  1017. long unsigned int _2;
  1018. long unsigned int _3;
  1019. struct TCB_t * iftmp.151_4;
  1020. struct TCB_t * iftmp.151_6;
  1021. struct TCB_t * iftmp.151_8;
  1022. uint32_t _16;
  1023. <bb 2> :
  1024. if (xTask_5(D) == 0B)
  1025. goto <bb 3>; [INV]
  1026. else
  1027. goto <bb 4>; [INV]
  1028. <bb 3> :
  1029. iftmp.151_8 ={v} pxCurrentTCB;
  1030. goto <bb 5>; [INV]
  1031. <bb 4> :
  1032. iftmp.151_6 = xTask_5(D);
  1033. <bb 5> :
  1034. # iftmp.151_4 = PHI <iftmp.151_8(3), iftmp.151_6(4)>
  1035. pxTCB_9 = iftmp.151_4;
  1036. vPortEnterCritical ();
  1037. ulReturn_12 ={v} pxTCB_9->ulNotifiedValue[uxIndexToClear_11(D)];
  1038. _1 ={v} pxTCB_9->ulNotifiedValue[uxIndexToClear_11(D)];
  1039. _2 = ~ulBitsToClear_13(D);
  1040. _3 = _1 & _2;
  1041. pxTCB_9->ulNotifiedValue[uxIndexToClear_11(D)] ={v} _3;
  1042. vPortExitCritical ();
  1043. _16 = ulReturn_12;
  1044. <bb 6> :
  1045. <L3>:
  1046. return _16;
  1047. }
  1048. xTaskGenericNotifyStateClear (struct tskTaskControlBlock * xTask, UBaseType_t uxIndexToClear)
  1049. {
  1050. uint32_t ulNewBASEPRI;
  1051. BaseType_t xReturn;
  1052. struct TCB_t * pxTCB;
  1053. BaseType_t D.8218;
  1054. struct TCB_t * iftmp.150;
  1055. unsigned char _1;
  1056. struct TCB_t * iftmp.150_3;
  1057. struct TCB_t * iftmp.150_7;
  1058. struct TCB_t * iftmp.150_9;
  1059. BaseType_t _16;
  1060. <bb 2> :
  1061. if (uxIndexToClear_5(D) != 0)
  1062. goto <bb 3>; [INV]
  1063. else
  1064. goto <bb 6>; [INV]
  1065. <bb 3> :
  1066. __asm__ __volatile__(" mov %0, %1
  1067. msr basepri, %0
  1068. isb
  1069. dsb
  1070. " : "=r" ulNewBASEPRI_17 : "i" 16 : "memory");
  1071. <bb 4> :
  1072. <bb 5> :
  1073. goto <bb 5>; [INV]
  1074. <bb 6> :
  1075. if (xTask_6(D) == 0B)
  1076. goto <bb 7>; [INV]
  1077. else
  1078. goto <bb 8>; [INV]
  1079. <bb 7> :
  1080. iftmp.150_9 ={v} pxCurrentTCB;
  1081. goto <bb 9>; [INV]
  1082. <bb 8> :
  1083. iftmp.150_7 = xTask_6(D);
  1084. <bb 9> :
  1085. # iftmp.150_3 = PHI <iftmp.150_9(7), iftmp.150_7(8)>
  1086. pxTCB_10 = iftmp.150_3;
  1087. vPortEnterCritical ();
  1088. _1 ={v} pxTCB_10->ucNotifyState[uxIndexToClear_5(D)];
  1089. if (_1 == 2)
  1090. goto <bb 10>; [INV]
  1091. else
  1092. goto <bb 11>; [INV]
  1093. <bb 10> :
  1094. pxTCB_10->ucNotifyState[uxIndexToClear_5(D)] ={v} 0;
  1095. xReturn_14 = 1;
  1096. goto <bb 12>; [INV]
  1097. <bb 11> :
  1098. xReturn_12 = 0;
  1099. <bb 12> :
  1100. # xReturn_2 = PHI <xReturn_14(10), xReturn_12(11)>
  1101. vPortExitCritical ();
  1102. _16 = xReturn_2;
  1103. <bb 13> :
  1104. <L9>:
  1105. return _16;
  1106. }
  1107. vTaskGenericNotifyGiveFromISR (struct tskTaskControlBlock * xTaskToNotify, UBaseType_t uxIndexToNotify, BaseType_t * pxHigherPriorityTaskWoken)
  1108. {
  1109. uint32_t ulNewMaskValue;
  1110. uint32_t ulNewBASEPRI;
  1111. uint32_t D.8368;
  1112. uint32_t ulOriginalBASEPRI;
  1113. uint32_t ulNewBASEPRI;
  1114. uint32_t D.8367;
  1115. uint32_t ulNewBASEPRI;
  1116. uint32_t ulNewBASEPRI;
  1117. struct ListItem_t * const pxIndex;
  1118. struct ListItem_t * const pxIndex;
  1119. struct List_t * const pxList;
  1120. UBaseType_t uxSavedInterruptStatus;
  1121. uint8_t ucOriginalNotifyState;
  1122. struct TCB_t * pxTCB;
  1123. long unsigned int _1;
  1124. long unsigned int _2;
  1125. struct xLIST * _3;
  1126. long unsigned int uxSchedulerSuspended.147_4;
  1127. struct xLIST_ITEM * _5;
  1128. struct xLIST_ITEM * _6;
  1129. struct xLIST_ITEM * _7;
  1130. struct xLIST_ITEM * _8;
  1131. struct ListItem_t * _9;
  1132. struct ListItem_t * _10;
  1133. struct xLIST_ITEM * _11;
  1134. long unsigned int _12;
  1135. long unsigned int _13;
  1136. long unsigned int _14;
  1137. long unsigned int uxTopReadyPriority.148_15;
  1138. long unsigned int _16;
  1139. long unsigned int _17;
  1140. struct xLIST_ITEM * _18;
  1141. struct xLIST_ITEM * _19;
  1142. struct ListItem_t * _20;
  1143. struct ListItem_t * _21;
  1144. long unsigned int _22;
  1145. struct List_t * _23;
  1146. long unsigned int _24;
  1147. long unsigned int _25;
  1148. long unsigned int _26;
  1149. struct xLIST_ITEM * _27;
  1150. struct xLIST_ITEM * _28;
  1151. struct ListItem_t * _29;
  1152. struct ListItem_t * _30;
  1153. long unsigned int _31;
  1154. long unsigned int _32;
  1155. long unsigned int _33;
  1156. struct TCB_t * pxCurrentTCB.149_34;
  1157. long unsigned int _35;
  1158. long unsigned int _78;
  1159. <bb 2> :
  1160. if (xTaskToNotify_41(D) == 0B)
  1161. goto <bb 3>; [INV]
  1162. else
  1163. goto <bb 6>; [INV]
  1164. <bb 3> :
  1165. __asm__ __volatile__(" mov %0, %1
  1166. msr basepri, %0
  1167. isb
  1168. dsb
  1169. " : "=r" ulNewBASEPRI_74 : "i" 16 : "memory");
  1170. <bb 4> :
  1171. <bb 5> :
  1172. goto <bb 5>; [INV]
  1173. <bb 6> :
  1174. if (uxIndexToNotify_42(D) != 0)
  1175. goto <bb 7>; [INV]
  1176. else
  1177. goto <bb 10>; [INV]
  1178. <bb 7> :
  1179. __asm__ __volatile__(" mov %0, %1
  1180. msr basepri, %0
  1181. isb
  1182. dsb
  1183. " : "=r" ulNewBASEPRI_75 : "i" 16 : "memory");
  1184. <bb 8> :
  1185. <bb 9> :
  1186. goto <bb 9>; [INV]
  1187. <bb 10> :
  1188. vPortValidateInterruptPriority ();
  1189. pxTCB_45 = xTaskToNotify_41(D);
  1190. __asm__ __volatile__(" mrs %0, basepri
  1191. mov %1, %2
  1192. msr basepri, %1
  1193. isb
  1194. dsb
  1195. " : "=r" ulOriginalBASEPRI_76, "=r" ulNewBASEPRI_77 : "i" 16 : "memory");
  1196. _78 = ulOriginalBASEPRI_76;
  1197. <bb 11> :
  1198. <L23>:
  1199. _82 = _78;
  1200. <bb 12> :
  1201. uxSavedInterruptStatus_46 = _82;
  1202. ucOriginalNotifyState_47 ={v} pxTCB_45->ucNotifyState[uxIndexToNotify_42(D)];
  1203. pxTCB_45->ucNotifyState[uxIndexToNotify_42(D)] ={v} 2;
  1204. _1 ={v} pxTCB_45->ulNotifiedValue[uxIndexToNotify_42(D)];
  1205. _2 = _1 + 1;
  1206. pxTCB_45->ulNotifiedValue[uxIndexToNotify_42(D)] ={v} _2;
  1207. if (ucOriginalNotifyState_47 == 1)
  1208. goto <bb 13>; [INV]
  1209. else
  1210. goto <bb 28>; [INV]
  1211. <bb 13> :
  1212. _3 = pxTCB_45->xEventListItem.pvContainer;
  1213. if (_3 != 0B)
  1214. goto <bb 14>; [INV]
  1215. else
  1216. goto <bb 17>; [INV]
  1217. <bb 14> :
  1218. __asm__ __volatile__(" mov %0, %1
  1219. msr basepri, %0
  1220. isb
  1221. dsb
  1222. " : "=r" ulNewBASEPRI_79 : "i" 16 : "memory");
  1223. <bb 15> :
  1224. <bb 16> :
  1225. goto <bb 16>; [INV]
  1226. <bb 17> :
  1227. uxSchedulerSuspended.147_4 ={v} uxSchedulerSuspended;
  1228. if (uxSchedulerSuspended.147_4 == 0)
  1229. goto <bb 18>; [INV]
  1230. else
  1231. goto <bb 23>; [INV]
  1232. <bb 18> :
  1233. pxList_57 = pxTCB_45->xStateListItem.pvContainer;
  1234. _5 = pxTCB_45->xStateListItem.pxNext;
  1235. _6 = pxTCB_45->xStateListItem.pxPrevious;
  1236. _5->pxPrevious = _6;
  1237. _7 = pxTCB_45->xStateListItem.pxPrevious;
  1238. _8 = pxTCB_45->xStateListItem.pxNext;
  1239. _7->pxNext = _8;
  1240. _9 = pxList_57->pxIndex;
  1241. _10 = &pxTCB_45->xStateListItem;
  1242. if (_9 == _10)
  1243. goto <bb 19>; [INV]
  1244. else
  1245. goto <bb 20>; [INV]
  1246. <bb 19> :
  1247. _11 = pxTCB_45->xStateListItem.pxPrevious;
  1248. pxList_57->pxIndex = _11;
  1249. <bb 20> :
  1250. pxTCB_45->xStateListItem.pvContainer = 0B;
  1251. _12 ={v} pxList_57->uxNumberOfItems;
  1252. _13 = _12 + 4294967295;
  1253. pxList_57->uxNumberOfItems ={v} _13;
  1254. _14 = pxTCB_45->uxPriority;
  1255. uxTopReadyPriority.148_15 ={v} uxTopReadyPriority;
  1256. if (_14 > uxTopReadyPriority.148_15)
  1257. goto <bb 21>; [INV]
  1258. else
  1259. goto <bb 22>; [INV]
  1260. <bb 21> :
  1261. _16 = pxTCB_45->uxPriority;
  1262. uxTopReadyPriority ={v} _16;
  1263. <bb 22> :
  1264. _17 = pxTCB_45->uxPriority;
  1265. pxIndex_64 = pxReadyTasksLists[_17].pxIndex;
  1266. pxTCB_45->xStateListItem.pxNext = pxIndex_64;
  1267. _18 = pxIndex_64->pxPrevious;
  1268. pxTCB_45->xStateListItem.pxPrevious = _18;
  1269. _19 = pxIndex_64->pxPrevious;
  1270. _20 = &pxTCB_45->xStateListItem;
  1271. _19->pxNext = _20;
  1272. _21 = &pxTCB_45->xStateListItem;
  1273. pxIndex_64->pxPrevious = _21;
  1274. _22 = pxTCB_45->uxPriority;
  1275. _23 = &pxReadyTasksLists[_22];
  1276. pxTCB_45->xStateListItem.pvContainer = _23;
  1277. _24 = pxTCB_45->uxPriority;
  1278. _25 ={v} pxReadyTasksLists[_24].uxNumberOfItems;
  1279. _26 = _25 + 1;
  1280. pxReadyTasksLists[_24].uxNumberOfItems ={v} _26;
  1281. goto <bb 24>; [INV]
  1282. <bb 23> :
  1283. pxIndex_50 = xPendingReadyList.pxIndex;
  1284. pxTCB_45->xEventListItem.pxNext = pxIndex_50;
  1285. _27 = pxIndex_50->pxPrevious;
  1286. pxTCB_45->xEventListItem.pxPrevious = _27;
  1287. _28 = pxIndex_50->pxPrevious;
  1288. _29 = &pxTCB_45->xEventListItem;
  1289. _28->pxNext = _29;
  1290. _30 = &pxTCB_45->xEventListItem;
  1291. pxIndex_50->pxPrevious = _30;
  1292. pxTCB_45->xEventListItem.pvContainer = &xPendingReadyList;
  1293. _31 ={v} xPendingReadyList.uxNumberOfItems;
  1294. _32 = _31 + 1;
  1295. xPendingReadyList.uxNumberOfItems ={v} _32;
  1296. <bb 24> :
  1297. _33 = pxTCB_45->uxPriority;
  1298. pxCurrentTCB.149_34 ={v} pxCurrentTCB;
  1299. _35 = pxCurrentTCB.149_34->uxPriority;
  1300. if (_33 > _35)
  1301. goto <bb 25>; [INV]
  1302. else
  1303. goto <bb 28>; [INV]
  1304. <bb 25> :
  1305. if (pxHigherPriorityTaskWoken_71(D) != 0B)
  1306. goto <bb 26>; [INV]
  1307. else
  1308. goto <bb 27>; [INV]
  1309. <bb 26> :
  1310. *pxHigherPriorityTaskWoken_71(D) = 1;
  1311. <bb 27> :
  1312. xYieldPending ={v} 1;
  1313. <bb 28> :
  1314. ulNewMaskValue_80 = uxSavedInterruptStatus_46;
  1315. __asm__ __volatile__(" msr basepri, %0 " : : "r" ulNewMaskValue_80 : "memory");
  1316. <bb 29> :
  1317. return;
  1318. }
  1319. xTaskGenericNotifyFromISR (struct tskTaskControlBlock * xTaskToNotify, UBaseType_t uxIndexToNotify, uint32_t ulValue, eNotifyAction eAction, uint32_t * pulPreviousNotificationValue, BaseType_t * pxHigherPriorityTaskWoken)
  1320. {
  1321. uint32_t ulNewMaskValue;
  1322. uint32_t ulNewBASEPRI;
  1323. uint32_t ulNewBASEPRI;
  1324. uint32_t D.8358;
  1325. uint32_t ulOriginalBASEPRI;
  1326. uint32_t ulNewBASEPRI;
  1327. uint32_t D.8357;
  1328. uint32_t ulNewBASEPRI;
  1329. uint32_t ulNewBASEPRI;
  1330. struct ListItem_t * const pxIndex;
  1331. struct ListItem_t * const pxIndex;
  1332. struct List_t * const pxList;
  1333. UBaseType_t uxSavedInterruptStatus;
  1334. BaseType_t xReturn;
  1335. uint8_t ucOriginalNotifyState;
  1336. struct TCB_t * pxTCB;
  1337. BaseType_t D.8187;
  1338. long unsigned int _1;
  1339. long unsigned int _2;
  1340. long unsigned int _3;
  1341. long unsigned int _4;
  1342. long unsigned int _5;
  1343. long unsigned int xTickCount.143_6;
  1344. struct xLIST * _7;
  1345. long unsigned int uxSchedulerSuspended.144_8;
  1346. struct xLIST_ITEM * _9;
  1347. struct xLIST_ITEM * _10;
  1348. struct xLIST_ITEM * _11;
  1349. struct xLIST_ITEM * _12;
  1350. struct ListItem_t * _13;
  1351. struct ListItem_t * _14;
  1352. struct xLIST_ITEM * _15;
  1353. long unsigned int _16;
  1354. long unsigned int _17;
  1355. long unsigned int _18;
  1356. long unsigned int uxTopReadyPriority.145_19;
  1357. long unsigned int _20;
  1358. long unsigned int _21;
  1359. struct xLIST_ITEM * _22;
  1360. struct xLIST_ITEM * _23;
  1361. struct ListItem_t * _24;
  1362. struct ListItem_t * _25;
  1363. long unsigned int _26;
  1364. struct List_t * _27;
  1365. long unsigned int _28;
  1366. long unsigned int _29;
  1367. long unsigned int _30;
  1368. struct xLIST_ITEM * _31;
  1369. struct xLIST_ITEM * _32;
  1370. struct ListItem_t * _33;
  1371. struct ListItem_t * _34;
  1372. long unsigned int _35;
  1373. long unsigned int _36;
  1374. long unsigned int _37;
  1375. struct TCB_t * pxCurrentTCB.146_38;
  1376. long unsigned int _39;
  1377. BaseType_t _92;
  1378. long unsigned int _97;
  1379. <bb 2> :
  1380. xReturn_50 = 1;
  1381. if (xTaskToNotify_51(D) == 0B)
  1382. goto <bb 3>; [INV]
  1383. else
  1384. goto <bb 6>; [INV]
  1385. <bb 3> :
  1386. __asm__ __volatile__(" mov %0, %1
  1387. msr basepri, %0
  1388. isb
  1389. dsb
  1390. " : "=r" ulNewBASEPRI_93 : "i" 16 : "memory");
  1391. <bb 4> :
  1392. <bb 5> :
  1393. goto <bb 5>; [INV]
  1394. <bb 6> :
  1395. if (uxIndexToNotify_52(D) != 0)
  1396. goto <bb 7>; [INV]
  1397. else
  1398. goto <bb 10>; [INV]
  1399. <bb 7> :
  1400. __asm__ __volatile__(" mov %0, %1
  1401. msr basepri, %0
  1402. isb
  1403. dsb
  1404. " : "=r" ulNewBASEPRI_94 : "i" 16 : "memory");
  1405. <bb 8> :
  1406. <bb 9> :
  1407. goto <bb 9>; [INV]
  1408. <bb 10> :
  1409. vPortValidateInterruptPriority ();
  1410. pxTCB_55 = xTaskToNotify_51(D);
  1411. __asm__ __volatile__(" mrs %0, basepri
  1412. mov %1, %2
  1413. msr basepri, %1
  1414. isb
  1415. dsb
  1416. " : "=r" ulOriginalBASEPRI_95, "=r" ulNewBASEPRI_96 : "i" 16 : "memory");
  1417. _97 = ulOriginalBASEPRI_95;
  1418. <bb 11> :
  1419. <L39>:
  1420. _102 = _97;
  1421. <bb 12> :
  1422. uxSavedInterruptStatus_56 = _102;
  1423. if (pulPreviousNotificationValue_57(D) != 0B)
  1424. goto <bb 13>; [INV]
  1425. else
  1426. goto <bb 14>; [INV]
  1427. <bb 13> :
  1428. _1 ={v} pxTCB_55->ulNotifiedValue[uxIndexToNotify_52(D)];
  1429. *pulPreviousNotificationValue_57(D) = _1;
  1430. <bb 14> :
  1431. ucOriginalNotifyState_59 ={v} pxTCB_55->ucNotifyState[uxIndexToNotify_52(D)];
  1432. pxTCB_55->ucNotifyState[uxIndexToNotify_52(D)] ={v} 2;
  1433. switch (eAction_61(D)) <default: <L16> [INV], case 0: <L15> [INV], case 1: <L8> [INV], case 2: <L9> [INV], case 3: <L10> [INV], case 4: <L11> [INV]>
  1434. <bb 15> :
  1435. <L8>:
  1436. _2 ={v} pxTCB_55->ulNotifiedValue[uxIndexToNotify_52(D)];
  1437. _3 = ulValue_63(D) | _2;
  1438. pxTCB_55->ulNotifiedValue[uxIndexToNotify_52(D)] ={v} _3;
  1439. goto <bb 28>; [INV]
  1440. <bb 16> :
  1441. <L9>:
  1442. _4 ={v} pxTCB_55->ulNotifiedValue[uxIndexToNotify_52(D)];
  1443. _5 = _4 + 1;
  1444. pxTCB_55->ulNotifiedValue[uxIndexToNotify_52(D)] ={v} _5;
  1445. goto <bb 28>; [INV]
  1446. <bb 17> :
  1447. <L10>:
  1448. pxTCB_55->ulNotifiedValue[uxIndexToNotify_52(D)] ={v} ulValue_63(D);
  1449. goto <bb 28>; [INV]
  1450. <bb 18> :
  1451. <L11>:
  1452. if (ucOriginalNotifyState_59 != 2)
  1453. goto <bb 19>; [INV]
  1454. else
  1455. goto <bb 20>; [INV]
  1456. <bb 19> :
  1457. pxTCB_55->ulNotifiedValue[uxIndexToNotify_52(D)] ={v} ulValue_63(D);
  1458. goto <bb 21>; [INV]
  1459. <bb 20> :
  1460. xReturn_62 = 0;
  1461. <bb 21> :
  1462. # xReturn_40 = PHI <xReturn_50(19), xReturn_62(20)>
  1463. goto <bb 28>; [INV]
  1464. <bb 22> :
  1465. <L15>:
  1466. goto <bb 28>; [INV]
  1467. <bb 23> :
  1468. <L16>:
  1469. xTickCount.143_6 ={v} xTickCount;
  1470. if (xTickCount.143_6 != 0)
  1471. goto <bb 24>; [INV]
  1472. else
  1473. goto <bb 27>; [INV]
  1474. <bb 24> :
  1475. __asm__ __volatile__(" mov %0, %1
  1476. msr basepri, %0
  1477. isb
  1478. dsb
  1479. " : "=r" ulNewBASEPRI_98 : "i" 16 : "memory");
  1480. <bb 25> :
  1481. <bb 26> :
  1482. goto <bb 26>; [INV]
  1483. <bb 27> :
  1484. <bb 28> :
  1485. # xReturn_41 = PHI <xReturn_50(15), xReturn_50(16), xReturn_50(17), xReturn_40(21), xReturn_50(22), xReturn_50(27)>
  1486. if (ucOriginalNotifyState_59 == 1)
  1487. goto <bb 29>; [INV]
  1488. else
  1489. goto <bb 44>; [INV]
  1490. <bb 29> :
  1491. _7 = pxTCB_55->xEventListItem.pvContainer;
  1492. if (_7 != 0B)
  1493. goto <bb 30>; [INV]
  1494. else
  1495. goto <bb 33>; [INV]
  1496. <bb 30> :
  1497. __asm__ __volatile__(" mov %0, %1
  1498. msr basepri, %0
  1499. isb
  1500. dsb
  1501. " : "=r" ulNewBASEPRI_99 : "i" 16 : "memory");
  1502. <bb 31> :
  1503. <bb 32> :
  1504. goto <bb 32>; [INV]
  1505. <bb 33> :
  1506. uxSchedulerSuspended.144_8 ={v} uxSchedulerSuspended;
  1507. if (uxSchedulerSuspended.144_8 == 0)
  1508. goto <bb 34>; [INV]
  1509. else
  1510. goto <bb 39>; [INV]
  1511. <bb 34> :
  1512. pxList_75 = pxTCB_55->xStateListItem.pvContainer;
  1513. _9 = pxTCB_55->xStateListItem.pxNext;
  1514. _10 = pxTCB_55->xStateListItem.pxPrevious;
  1515. _9->pxPrevious = _10;
  1516. _11 = pxTCB_55->xStateListItem.pxPrevious;
  1517. _12 = pxTCB_55->xStateListItem.pxNext;
  1518. _11->pxNext = _12;
  1519. _13 = pxList_75->pxIndex;
  1520. _14 = &pxTCB_55->xStateListItem;
  1521. if (_13 == _14)
  1522. goto <bb 35>; [INV]
  1523. else
  1524. goto <bb 36>; [INV]
  1525. <bb 35> :
  1526. _15 = pxTCB_55->xStateListItem.pxPrevious;
  1527. pxList_75->pxIndex = _15;
  1528. <bb 36> :
  1529. pxTCB_55->xStateListItem.pvContainer = 0B;
  1530. _16 ={v} pxList_75->uxNumberOfItems;
  1531. _17 = _16 + 4294967295;
  1532. pxList_75->uxNumberOfItems ={v} _17;
  1533. _18 = pxTCB_55->uxPriority;
  1534. uxTopReadyPriority.145_19 ={v} uxTopReadyPriority;
  1535. if (_18 > uxTopReadyPriority.145_19)
  1536. goto <bb 37>; [INV]
  1537. else
  1538. goto <bb 38>; [INV]
  1539. <bb 37> :
  1540. _20 = pxTCB_55->uxPriority;
  1541. uxTopReadyPriority ={v} _20;
  1542. <bb 38> :
  1543. _21 = pxTCB_55->uxPriority;
  1544. pxIndex_82 = pxReadyTasksLists[_21].pxIndex;
  1545. pxTCB_55->xStateListItem.pxNext = pxIndex_82;
  1546. _22 = pxIndex_82->pxPrevious;
  1547. pxTCB_55->xStateListItem.pxPrevious = _22;
  1548. _23 = pxIndex_82->pxPrevious;
  1549. _24 = &pxTCB_55->xStateListItem;
  1550. _23->pxNext = _24;
  1551. _25 = &pxTCB_55->xStateListItem;
  1552. pxIndex_82->pxPrevious = _25;
  1553. _26 = pxTCB_55->uxPriority;
  1554. _27 = &pxReadyTasksLists[_26];
  1555. pxTCB_55->xStateListItem.pvContainer = _27;
  1556. _28 = pxTCB_55->uxPriority;
  1557. _29 ={v} pxReadyTasksLists[_28].uxNumberOfItems;
  1558. _30 = _29 + 1;
  1559. pxReadyTasksLists[_28].uxNumberOfItems ={v} _30;
  1560. goto <bb 40>; [INV]
  1561. <bb 39> :
  1562. pxIndex_68 = xPendingReadyList.pxIndex;
  1563. pxTCB_55->xEventListItem.pxNext = pxIndex_68;
  1564. _31 = pxIndex_68->pxPrevious;
  1565. pxTCB_55->xEventListItem.pxPrevious = _31;
  1566. _32 = pxIndex_68->pxPrevious;
  1567. _33 = &pxTCB_55->xEventListItem;
  1568. _32->pxNext = _33;
  1569. _34 = &pxTCB_55->xEventListItem;
  1570. pxIndex_68->pxPrevious = _34;
  1571. pxTCB_55->xEventListItem.pvContainer = &xPendingReadyList;
  1572. _35 ={v} xPendingReadyList.uxNumberOfItems;
  1573. _36 = _35 + 1;
  1574. xPendingReadyList.uxNumberOfItems ={v} _36;
  1575. <bb 40> :
  1576. _37 = pxTCB_55->uxPriority;
  1577. pxCurrentTCB.146_38 ={v} pxCurrentTCB;
  1578. _39 = pxCurrentTCB.146_38->uxPriority;
  1579. if (_37 > _39)
  1580. goto <bb 41>; [INV]
  1581. else
  1582. goto <bb 44>; [INV]
  1583. <bb 41> :
  1584. if (pxHigherPriorityTaskWoken_89(D) != 0B)
  1585. goto <bb 42>; [INV]
  1586. else
  1587. goto <bb 43>; [INV]
  1588. <bb 42> :
  1589. *pxHigherPriorityTaskWoken_89(D) = 1;
  1590. <bb 43> :
  1591. xYieldPending ={v} 1;
  1592. <bb 44> :
  1593. ulNewMaskValue_100 = uxSavedInterruptStatus_56;
  1594. __asm__ __volatile__(" msr basepri, %0 " : : "r" ulNewMaskValue_100 : "memory");
  1595. <bb 45> :
  1596. _92 = xReturn_41;
  1597. <bb 46> :
  1598. <L38>:
  1599. return _92;
  1600. }
  1601. xTaskGenericNotify (struct tskTaskControlBlock * xTaskToNotify, UBaseType_t uxIndexToNotify, uint32_t ulValue, eNotifyAction eAction, uint32_t * pulPreviousNotificationValue)
  1602. {
  1603. uint32_t ulNewBASEPRI;
  1604. uint32_t ulNewBASEPRI;
  1605. uint32_t ulNewBASEPRI;
  1606. uint32_t ulNewBASEPRI;
  1607. struct ListItem_t * const pxIndex;
  1608. struct List_t * const pxList;
  1609. uint8_t ucOriginalNotifyState;
  1610. BaseType_t xReturn;
  1611. struct TCB_t * pxTCB;
  1612. BaseType_t D.8158;
  1613. long unsigned int _1;
  1614. long unsigned int _2;
  1615. long unsigned int _3;
  1616. long unsigned int _4;
  1617. long unsigned int _5;
  1618. long unsigned int xTickCount.140_6;
  1619. struct xLIST_ITEM * _7;
  1620. struct xLIST_ITEM * _8;
  1621. struct xLIST_ITEM * _9;
  1622. struct xLIST_ITEM * _10;
  1623. struct ListItem_t * _11;
  1624. struct ListItem_t * _12;
  1625. struct xLIST_ITEM * _13;
  1626. long unsigned int _14;
  1627. long unsigned int _15;
  1628. long unsigned int _16;
  1629. long unsigned int uxTopReadyPriority.141_17;
  1630. long unsigned int _18;
  1631. long unsigned int _19;
  1632. struct xLIST_ITEM * _20;
  1633. struct xLIST_ITEM * _21;
  1634. struct ListItem_t * _22;
  1635. struct ListItem_t * _23;
  1636. long unsigned int _24;
  1637. struct List_t * _25;
  1638. long unsigned int _26;
  1639. long unsigned int _27;
  1640. long unsigned int _28;
  1641. struct xLIST * _29;
  1642. long unsigned int _30;
  1643. struct TCB_t * pxCurrentTCB.142_31;
  1644. long unsigned int _32;
  1645. volatile uint32_t * _33;
  1646. BaseType_t _77;
  1647. <bb 2> :
  1648. xReturn_42 = 1;
  1649. if (uxIndexToNotify_43(D) != 0)
  1650. goto <bb 3>; [INV]
  1651. else
  1652. goto <bb 6>; [INV]
  1653. <bb 3> :
  1654. __asm__ __volatile__(" mov %0, %1
  1655. msr basepri, %0
  1656. isb
  1657. dsb
  1658. " : "=r" ulNewBASEPRI_78 : "i" 16 : "memory");
  1659. <bb 4> :
  1660. <bb 5> :
  1661. goto <bb 5>; [INV]
  1662. <bb 6> :
  1663. if (xTaskToNotify_44(D) == 0B)
  1664. goto <bb 7>; [INV]
  1665. else
  1666. goto <bb 10>; [INV]
  1667. <bb 7> :
  1668. __asm__ __volatile__(" mov %0, %1
  1669. msr basepri, %0
  1670. isb
  1671. dsb
  1672. " : "=r" ulNewBASEPRI_79 : "i" 16 : "memory");
  1673. <bb 8> :
  1674. <bb 9> :
  1675. goto <bb 9>; [INV]
  1676. <bb 10> :
  1677. pxTCB_45 = xTaskToNotify_44(D);
  1678. vPortEnterCritical ();
  1679. if (pulPreviousNotificationValue_48(D) != 0B)
  1680. goto <bb 11>; [INV]
  1681. else
  1682. goto <bb 12>; [INV]
  1683. <bb 11> :
  1684. _1 ={v} pxTCB_45->ulNotifiedValue[uxIndexToNotify_43(D)];
  1685. *pulPreviousNotificationValue_48(D) = _1;
  1686. <bb 12> :
  1687. ucOriginalNotifyState_50 ={v} pxTCB_45->ucNotifyState[uxIndexToNotify_43(D)];
  1688. pxTCB_45->ucNotifyState[uxIndexToNotify_43(D)] ={v} 2;
  1689. switch (eAction_52(D)) <default: <L16> [INV], case 0: <L15> [INV], case 1: <L8> [INV], case 2: <L9> [INV], case 3: <L10> [INV], case 4: <L11> [INV]>
  1690. <bb 13> :
  1691. <L8>:
  1692. _2 ={v} pxTCB_45->ulNotifiedValue[uxIndexToNotify_43(D)];
  1693. _3 = ulValue_54(D) | _2;
  1694. pxTCB_45->ulNotifiedValue[uxIndexToNotify_43(D)] ={v} _3;
  1695. goto <bb 26>; [INV]
  1696. <bb 14> :
  1697. <L9>:
  1698. _4 ={v} pxTCB_45->ulNotifiedValue[uxIndexToNotify_43(D)];
  1699. _5 = _4 + 1;
  1700. pxTCB_45->ulNotifiedValue[uxIndexToNotify_43(D)] ={v} _5;
  1701. goto <bb 26>; [INV]
  1702. <bb 15> :
  1703. <L10>:
  1704. pxTCB_45->ulNotifiedValue[uxIndexToNotify_43(D)] ={v} ulValue_54(D);
  1705. goto <bb 26>; [INV]
  1706. <bb 16> :
  1707. <L11>:
  1708. if (ucOriginalNotifyState_50 != 2)
  1709. goto <bb 17>; [INV]
  1710. else
  1711. goto <bb 18>; [INV]
  1712. <bb 17> :
  1713. pxTCB_45->ulNotifiedValue[uxIndexToNotify_43(D)] ={v} ulValue_54(D);
  1714. goto <bb 19>; [INV]
  1715. <bb 18> :
  1716. xReturn_53 = 0;
  1717. <bb 19> :
  1718. # xReturn_34 = PHI <xReturn_42(17), xReturn_53(18)>
  1719. goto <bb 26>; [INV]
  1720. <bb 20> :
  1721. <L15>:
  1722. goto <bb 26>; [INV]
  1723. <bb 21> :
  1724. <L16>:
  1725. xTickCount.140_6 ={v} xTickCount;
  1726. if (xTickCount.140_6 != 0)
  1727. goto <bb 22>; [INV]
  1728. else
  1729. goto <bb 25>; [INV]
  1730. <bb 22> :
  1731. __asm__ __volatile__(" mov %0, %1
  1732. msr basepri, %0
  1733. isb
  1734. dsb
  1735. " : "=r" ulNewBASEPRI_80 : "i" 16 : "memory");
  1736. <bb 23> :
  1737. <bb 24> :
  1738. goto <bb 24>; [INV]
  1739. <bb 25> :
  1740. <bb 26> :
  1741. # xReturn_35 = PHI <xReturn_42(13), xReturn_42(14), xReturn_42(15), xReturn_34(19), xReturn_42(20), xReturn_42(25)>
  1742. if (ucOriginalNotifyState_50 == 1)
  1743. goto <bb 27>; [INV]
  1744. else
  1745. goto <bb 37>; [INV]
  1746. <bb 27> :
  1747. pxList_59 = pxTCB_45->xStateListItem.pvContainer;
  1748. _7 = pxTCB_45->xStateListItem.pxNext;
  1749. _8 = pxTCB_45->xStateListItem.pxPrevious;
  1750. _7->pxPrevious = _8;
  1751. _9 = pxTCB_45->xStateListItem.pxPrevious;
  1752. _10 = pxTCB_45->xStateListItem.pxNext;
  1753. _9->pxNext = _10;
  1754. _11 = pxList_59->pxIndex;
  1755. _12 = &pxTCB_45->xStateListItem;
  1756. if (_11 == _12)
  1757. goto <bb 28>; [INV]
  1758. else
  1759. goto <bb 29>; [INV]
  1760. <bb 28> :
  1761. _13 = pxTCB_45->xStateListItem.pxPrevious;
  1762. pxList_59->pxIndex = _13;
  1763. <bb 29> :
  1764. pxTCB_45->xStateListItem.pvContainer = 0B;
  1765. _14 ={v} pxList_59->uxNumberOfItems;
  1766. _15 = _14 + 4294967295;
  1767. pxList_59->uxNumberOfItems ={v} _15;
  1768. _16 = pxTCB_45->uxPriority;
  1769. uxTopReadyPriority.141_17 ={v} uxTopReadyPriority;
  1770. if (_16 > uxTopReadyPriority.141_17)
  1771. goto <bb 30>; [INV]
  1772. else
  1773. goto <bb 31>; [INV]
  1774. <bb 30> :
  1775. _18 = pxTCB_45->uxPriority;
  1776. uxTopReadyPriority ={v} _18;
  1777. <bb 31> :
  1778. _19 = pxTCB_45->uxPriority;
  1779. pxIndex_66 = pxReadyTasksLists[_19].pxIndex;
  1780. pxTCB_45->xStateListItem.pxNext = pxIndex_66;
  1781. _20 = pxIndex_66->pxPrevious;
  1782. pxTCB_45->xStateListItem.pxPrevious = _20;
  1783. _21 = pxIndex_66->pxPrevious;
  1784. _22 = &pxTCB_45->xStateListItem;
  1785. _21->pxNext = _22;
  1786. _23 = &pxTCB_45->xStateListItem;
  1787. pxIndex_66->pxPrevious = _23;
  1788. _24 = pxTCB_45->uxPriority;
  1789. _25 = &pxReadyTasksLists[_24];
  1790. pxTCB_45->xStateListItem.pvContainer = _25;
  1791. _26 = pxTCB_45->uxPriority;
  1792. _27 ={v} pxReadyTasksLists[_26].uxNumberOfItems;
  1793. _28 = _27 + 1;
  1794. pxReadyTasksLists[_26].uxNumberOfItems ={v} _28;
  1795. _29 = pxTCB_45->xEventListItem.pvContainer;
  1796. if (_29 != 0B)
  1797. goto <bb 32>; [INV]
  1798. else
  1799. goto <bb 35>; [INV]
  1800. <bb 32> :
  1801. __asm__ __volatile__(" mov %0, %1
  1802. msr basepri, %0
  1803. isb
  1804. dsb
  1805. " : "=r" ulNewBASEPRI_81 : "i" 16 : "memory");
  1806. <bb 33> :
  1807. <bb 34> :
  1808. goto <bb 34>; [INV]
  1809. <bb 35> :
  1810. _30 = pxTCB_45->uxPriority;
  1811. pxCurrentTCB.142_31 ={v} pxCurrentTCB;
  1812. _32 = pxCurrentTCB.142_31->uxPriority;
  1813. if (_30 > _32)
  1814. goto <bb 36>; [INV]
  1815. else
  1816. goto <bb 37>; [INV]
  1817. <bb 36> :
  1818. _33 = 3758157060B;
  1819. *_33 ={v} 268435456;
  1820. __asm__ __volatile__("dsb" : : : "memory");
  1821. __asm__ __volatile__("isb");
  1822. <bb 37> :
  1823. vPortExitCritical ();
  1824. _77 = xReturn_35;
  1825. <bb 38> :
  1826. <L34>:
  1827. return _77;
  1828. }
  1829. xTaskGenericNotifyWait (UBaseType_t uxIndexToWait, uint32_t ulBitsToClearOnEntry, uint32_t ulBitsToClearOnExit, uint32_t * pulNotificationValue, TickType_t xTicksToWait)
  1830. {
  1831. uint32_t ulNewBASEPRI;
  1832. BaseType_t xReturn;
  1833. BaseType_t D.8133;
  1834. struct TCB_t * pxCurrentTCB.138;
  1835. struct TCB_t * pxCurrentTCB.134;
  1836. struct TCB_t * pxCurrentTCB.133_1;
  1837. unsigned char _2;
  1838. long unsigned int _3;
  1839. long unsigned int _4;
  1840. long unsigned int _5;
  1841. struct TCB_t * pxCurrentTCB.135_6;
  1842. volatile uint32_t * _7;
  1843. struct TCB_t * pxCurrentTCB.136_8;
  1844. long unsigned int _9;
  1845. struct TCB_t * pxCurrentTCB.137_10;
  1846. unsigned char _11;
  1847. long unsigned int _12;
  1848. long unsigned int _13;
  1849. long unsigned int _14;
  1850. struct TCB_t * pxCurrentTCB.139_15;
  1851. struct TCB_t * pxCurrentTCB.134_23;
  1852. struct TCB_t * pxCurrentTCB.138_36;
  1853. BaseType_t _43;
  1854. <bb 2> :
  1855. if (uxIndexToWait_20(D) != 0)
  1856. goto <bb 3>; [INV]
  1857. else
  1858. goto <bb 6>; [INV]
  1859. <bb 3> :
  1860. __asm__ __volatile__(" mov %0, %1
  1861. msr basepri, %0
  1862. isb
  1863. dsb
  1864. " : "=r" ulNewBASEPRI_44 : "i" 16 : "memory");
  1865. <bb 4> :
  1866. <bb 5> :
  1867. goto <bb 5>; [INV]
  1868. <bb 6> :
  1869. vPortEnterCritical ();
  1870. pxCurrentTCB.133_1 ={v} pxCurrentTCB;
  1871. _2 ={v} pxCurrentTCB.133_1->ucNotifyState[uxIndexToWait_20(D)];
  1872. if (_2 != 2)
  1873. goto <bb 7>; [INV]
  1874. else
  1875. goto <bb 9>; [INV]
  1876. <bb 7> :
  1877. pxCurrentTCB.134_23 ={v} pxCurrentTCB;
  1878. _3 ={v} pxCurrentTCB.134_23->ulNotifiedValue[uxIndexToWait_20(D)];
  1879. _4 = ~ulBitsToClearOnEntry_24(D);
  1880. _5 = _3 & _4;
  1881. pxCurrentTCB.134_23->ulNotifiedValue[uxIndexToWait_20(D)] ={v} _5;
  1882. pxCurrentTCB.135_6 ={v} pxCurrentTCB;
  1883. pxCurrentTCB.135_6->ucNotifyState[uxIndexToWait_20(D)] ={v} 1;
  1884. if (xTicksToWait_27(D) != 0)
  1885. goto <bb 8>; [INV]
  1886. else
  1887. goto <bb 9>; [INV]
  1888. <bb 8> :
  1889. prvAddCurrentTaskToDelayedList (xTicksToWait_27(D), 1);
  1890. _7 = 3758157060B;
  1891. *_7 ={v} 268435456;
  1892. __asm__ __volatile__("dsb" : : : "memory");
  1893. __asm__ __volatile__("isb");
  1894. <bb 9> :
  1895. vPortExitCritical ();
  1896. vPortEnterCritical ();
  1897. if (pulNotificationValue_34(D) != 0B)
  1898. goto <bb 10>; [INV]
  1899. else
  1900. goto <bb 11>; [INV]
  1901. <bb 10> :
  1902. pxCurrentTCB.136_8 ={v} pxCurrentTCB;
  1903. _9 ={v} pxCurrentTCB.136_8->ulNotifiedValue[uxIndexToWait_20(D)];
  1904. *pulNotificationValue_34(D) = _9;
  1905. <bb 11> :
  1906. pxCurrentTCB.137_10 ={v} pxCurrentTCB;
  1907. _11 ={v} pxCurrentTCB.137_10->ucNotifyState[uxIndexToWait_20(D)];
  1908. if (_11 != 2)
  1909. goto <bb 12>; [INV]
  1910. else
  1911. goto <bb 13>; [INV]
  1912. <bb 12> :
  1913. xReturn_40 = 0;
  1914. goto <bb 14>; [INV]
  1915. <bb 13> :
  1916. pxCurrentTCB.138_36 ={v} pxCurrentTCB;
  1917. _12 ={v} pxCurrentTCB.138_36->ulNotifiedValue[uxIndexToWait_20(D)];
  1918. _13 = ~ulBitsToClearOnExit_37(D);
  1919. _14 = _12 & _13;
  1920. pxCurrentTCB.138_36->ulNotifiedValue[uxIndexToWait_20(D)] ={v} _14;
  1921. xReturn_39 = 1;
  1922. <bb 14> :
  1923. # xReturn_16 = PHI <xReturn_40(12), xReturn_39(13)>
  1924. pxCurrentTCB.139_15 ={v} pxCurrentTCB;
  1925. pxCurrentTCB.139_15->ucNotifyState[uxIndexToWait_20(D)] ={v} 0;
  1926. vPortExitCritical ();
  1927. _43 = xReturn_16;
  1928. <bb 15> :
  1929. <L14>:
  1930. return _43;
  1931. }
  1932. ulTaskGenericNotifyTake (UBaseType_t uxIndexToWait, BaseType_t xClearCountOnExit, TickType_t xTicksToWait)
  1933. {
  1934. uint32_t ulNewBASEPRI;
  1935. uint32_t ulReturn;
  1936. uint32_t D.8116;
  1937. struct TCB_t * pxCurrentTCB.127_1;
  1938. long unsigned int _2;
  1939. struct TCB_t * pxCurrentTCB.128_3;
  1940. volatile uint32_t * _4;
  1941. struct TCB_t * pxCurrentTCB.129_5;
  1942. struct TCB_t * pxCurrentTCB.130_6;
  1943. struct TCB_t * pxCurrentTCB.131_7;
  1944. long unsigned int _8;
  1945. struct TCB_t * pxCurrentTCB.132_9;
  1946. uint32_t _29;
  1947. <bb 2> :
  1948. if (uxIndexToWait_12(D) != 0)
  1949. goto <bb 3>; [INV]
  1950. else
  1951. goto <bb 6>; [INV]
  1952. <bb 3> :
  1953. __asm__ __volatile__(" mov %0, %1
  1954. msr basepri, %0
  1955. isb
  1956. dsb
  1957. " : "=r" ulNewBASEPRI_30 : "i" 16 : "memory");
  1958. <bb 4> :
  1959. <bb 5> :
  1960. goto <bb 5>; [INV]
  1961. <bb 6> :
  1962. vPortEnterCritical ();
  1963. pxCurrentTCB.127_1 ={v} pxCurrentTCB;
  1964. _2 ={v} pxCurrentTCB.127_1->ulNotifiedValue[uxIndexToWait_12(D)];
  1965. if (_2 == 0)
  1966. goto <bb 7>; [INV]
  1967. else
  1968. goto <bb 9>; [INV]
  1969. <bb 7> :
  1970. pxCurrentTCB.128_3 ={v} pxCurrentTCB;
  1971. pxCurrentTCB.128_3->ucNotifyState[uxIndexToWait_12(D)] ={v} 1;
  1972. if (xTicksToWait_16(D) != 0)
  1973. goto <bb 8>; [INV]
  1974. else
  1975. goto <bb 9>; [INV]
  1976. <bb 8> :
  1977. prvAddCurrentTaskToDelayedList (xTicksToWait_16(D), 1);
  1978. _4 = 3758157060B;
  1979. *_4 ={v} 268435456;
  1980. __asm__ __volatile__("dsb" : : : "memory");
  1981. __asm__ __volatile__("isb");
  1982. <bb 9> :
  1983. vPortExitCritical ();
  1984. vPortEnterCritical ();
  1985. pxCurrentTCB.129_5 ={v} pxCurrentTCB;
  1986. ulReturn_23 ={v} pxCurrentTCB.129_5->ulNotifiedValue[uxIndexToWait_12(D)];
  1987. if (ulReturn_23 != 0)
  1988. goto <bb 10>; [INV]
  1989. else
  1990. goto <bb 13>; [INV]
  1991. <bb 10> :
  1992. if (xClearCountOnExit_24(D) != 0)
  1993. goto <bb 11>; [INV]
  1994. else
  1995. goto <bb 12>; [INV]
  1996. <bb 11> :
  1997. pxCurrentTCB.130_6 ={v} pxCurrentTCB;
  1998. pxCurrentTCB.130_6->ulNotifiedValue[uxIndexToWait_12(D)] ={v} 0;
  1999. goto <bb 13>; [INV]
  2000. <bb 12> :
  2001. pxCurrentTCB.131_7 ={v} pxCurrentTCB;
  2002. _8 = ulReturn_23 + 4294967295;
  2003. pxCurrentTCB.131_7->ulNotifiedValue[uxIndexToWait_12(D)] ={v} _8;
  2004. <bb 13> :
  2005. pxCurrentTCB.132_9 ={v} pxCurrentTCB;
  2006. pxCurrentTCB.132_9->ucNotifyState[uxIndexToWait_12(D)] ={v} 0;
  2007. vPortExitCritical ();
  2008. _29 = ulReturn_23;
  2009. <bb 14> :
  2010. <L15>:
  2011. return _29;
  2012. }
  2013. pvTaskIncrementMutexHeldCount ()
  2014. {
  2015. struct tskTaskControlBlock * D.8100;
  2016. struct TCB_t * pxCurrentTCB.125_1;
  2017. struct TCB_t * pxCurrentTCB.126_2;
  2018. long unsigned int _3;
  2019. long unsigned int _4;
  2020. struct tskTaskControlBlock * _8;
  2021. <bb 2> :
  2022. pxCurrentTCB.125_1 ={v} pxCurrentTCB;
  2023. if (pxCurrentTCB.125_1 != 0B)
  2024. goto <bb 3>; [INV]
  2025. else
  2026. goto <bb 4>; [INV]
  2027. <bb 3> :
  2028. pxCurrentTCB.126_2 ={v} pxCurrentTCB;
  2029. _3 = pxCurrentTCB.126_2->uxMutexesHeld;
  2030. _4 = _3 + 1;
  2031. pxCurrentTCB.126_2->uxMutexesHeld = _4;
  2032. <bb 4> :
  2033. _8 ={v} pxCurrentTCB;
  2034. <bb 5> :
  2035. <L2>:
  2036. return _8;
  2037. }
  2038. uxTaskResetEventItemValue ()
  2039. {
  2040. TickType_t uxReturn;
  2041. TickType_t D.8096;
  2042. struct TCB_t * pxCurrentTCB.122_1;
  2043. struct TCB_t * pxCurrentTCB.123_2;
  2044. long unsigned int _3;
  2045. struct TCB_t * pxCurrentTCB.124_4;
  2046. long unsigned int _5;
  2047. TickType_t _9;
  2048. <bb 2> :
  2049. pxCurrentTCB.122_1 ={v} pxCurrentTCB;
  2050. uxReturn_7 = pxCurrentTCB.122_1->xEventListItem.xItemValue;
  2051. pxCurrentTCB.123_2 ={v} pxCurrentTCB;
  2052. _3 = pxCurrentTCB.123_2->uxPriority;
  2053. pxCurrentTCB.124_4 ={v} pxCurrentTCB;
  2054. _5 = 5 - _3;
  2055. pxCurrentTCB.124_4->xEventListItem.xItemValue = _5;
  2056. _9 = uxReturn_7;
  2057. <bb 3> :
  2058. <L0>:
  2059. return _9;
  2060. }
  2061. vTaskList (char * pcWriteBuffer)
  2062. {
  2063. char cStatus;
  2064. UBaseType_t x;
  2065. UBaseType_t uxArraySize;
  2066. struct TaskStatus_t * pxTaskStatusArray;
  2067. long unsigned int uxCurrentNumberOfTasks.121_1;
  2068. long unsigned int _2;
  2069. long unsigned int _3;
  2070. struct TaskStatus_t * _4;
  2071. <unnamed type> _5;
  2072. long unsigned int _6;
  2073. struct TaskStatus_t * _7;
  2074. const char * _8;
  2075. int _9;
  2076. long unsigned int _10;
  2077. struct TaskStatus_t * _11;
  2078. long unsigned int _12;
  2079. long unsigned int _13;
  2080. struct TaskStatus_t * _14;
  2081. short unsigned int _15;
  2082. unsigned int _16;
  2083. long unsigned int _17;
  2084. struct TaskStatus_t * _18;
  2085. long unsigned int _19;
  2086. unsigned int _20;
  2087. <bb 2> :
  2088. *pcWriteBuffer_27(D) = 0;
  2089. uxArraySize_29 ={v} uxCurrentNumberOfTasks;
  2090. uxCurrentNumberOfTasks.121_1 ={v} uxCurrentNumberOfTasks;
  2091. _2 = uxCurrentNumberOfTasks.121_1 * 36;
  2092. pxTaskStatusArray_31 = pvPortMalloc (_2);
  2093. if (pxTaskStatusArray_31 != 0B)
  2094. goto <bb 3>; [INV]
  2095. else
  2096. goto <bb 14>; [INV]
  2097. <bb 3> :
  2098. uxArraySize_33 = uxTaskGetSystemState (pxTaskStatusArray_31, uxArraySize_29, 0B);
  2099. x_34 = 0;
  2100. goto <bb 12>; [INV]
  2101. <bb 4> :
  2102. _3 = x_22 * 36;
  2103. _4 = pxTaskStatusArray_31 + _3;
  2104. _5 = _4->eCurrentState;
  2105. switch (_5) <default: <L7> [INV], case 0: <L2> [INV], case 1: <L3> [INV], case 2: <L4> [INV], case 3: <L5> [INV], case 4: <L6> [INV]>
  2106. <bb 5> :
  2107. <L2>:
  2108. cStatus_40 = 88;
  2109. goto <bb 11>; [INV]
  2110. <bb 6> :
  2111. <L3>:
  2112. cStatus_39 = 82;
  2113. goto <bb 11>; [INV]
  2114. <bb 7> :
  2115. <L4>:
  2116. cStatus_38 = 66;
  2117. goto <bb 11>; [INV]
  2118. <bb 8> :
  2119. <L5>:
  2120. cStatus_37 = 83;
  2121. goto <bb 11>; [INV]
  2122. <bb 9> :
  2123. <L6>:
  2124. cStatus_36 = 68;
  2125. goto <bb 11>; [INV]
  2126. <bb 10> :
  2127. <L7>:
  2128. cStatus_41 = 0;
  2129. <bb 11> :
  2130. # cStatus_23 = PHI <cStatus_40(5), cStatus_39(6), cStatus_38(7), cStatus_37(8), cStatus_36(9), cStatus_41(10)>
  2131. _6 = x_22 * 36;
  2132. _7 = pxTaskStatusArray_31 + _6;
  2133. _8 = _7->pcTaskName;
  2134. pcWriteBuffer_43 = prvWriteNameToBuffer (pcWriteBuffer_21, _8);
  2135. _9 = (int) cStatus_23;
  2136. _10 = x_22 * 36;
  2137. _11 = pxTaskStatusArray_31 + _10;
  2138. _12 = _11->uxCurrentPriority;
  2139. _13 = x_22 * 36;
  2140. _14 = pxTaskStatusArray_31 + _13;
  2141. _15 = _14->usStackHighWaterMark;
  2142. _16 = (unsigned int) _15;
  2143. _17 = x_22 * 36;
  2144. _18 = pxTaskStatusArray_31 + _17;
  2145. _19 = _18->xTaskNumber;
  2146. sprintf (pcWriteBuffer_43, "\t%c\t%u\t%u\t%u\r\n", _9, _12, _16, _19);
  2147. _20 = strlen (pcWriteBuffer_43);
  2148. pcWriteBuffer_45 = pcWriteBuffer_43 + _20;
  2149. x_46 = x_22 + 1;
  2150. <bb 12> :
  2151. # pcWriteBuffer_21 = PHI <pcWriteBuffer_27(D)(3), pcWriteBuffer_45(11)>
  2152. # x_22 = PHI <x_34(3), x_46(11)>
  2153. if (x_22 < uxArraySize_33)
  2154. goto <bb 4>; [INV]
  2155. else
  2156. goto <bb 13>; [INV]
  2157. <bb 13> :
  2158. vPortFree (pxTaskStatusArray_31);
  2159. <bb 14> :
  2160. return;
  2161. }
  2162. prvWriteNameToBuffer (char * pcBuffer, const char * pcTaskName)
  2163. {
  2164. size_t x;
  2165. char * D.8091;
  2166. char * _1;
  2167. char * _2;
  2168. char * _11;
  2169. <bb 2> :
  2170. strcpy (pcBuffer_6(D), pcTaskName_7(D));
  2171. x_9 = strlen (pcBuffer_6(D));
  2172. goto <bb 4>; [INV]
  2173. <bb 3> :
  2174. _1 = pcBuffer_6(D) + x_3;
  2175. *_1 = 32;
  2176. x_13 = x_3 + 1;
  2177. <bb 4> :
  2178. # x_3 = PHI <x_9(2), x_13(3)>
  2179. if (x_3 <= 8)
  2180. goto <bb 3>; [INV]
  2181. else
  2182. goto <bb 5>; [INV]
  2183. <bb 5> :
  2184. _2 = pcBuffer_6(D) + x_3;
  2185. *_2 = 0;
  2186. _11 = pcBuffer_6(D) + x_3;
  2187. <bb 6> :
  2188. <L3>:
  2189. return _11;
  2190. }
  2191. vTaskPriorityDisinheritAfterTimeout (struct tskTaskControlBlock * const pxMutexHolder, UBaseType_t uxHighestPriorityWaitingTask)
  2192. {
  2193. uint32_t ulNewBASEPRI;
  2194. uint32_t ulNewBASEPRI;
  2195. struct ListItem_t * const pxIndex;
  2196. const UBaseType_t uxOnlyOneMutexHeld;
  2197. UBaseType_t uxPriorityToUse;
  2198. UBaseType_t uxPriorityUsedOnEntry;
  2199. struct TCB_t * const pxTCB;
  2200. long unsigned int _1;
  2201. long unsigned int _2;
  2202. long unsigned int _3;
  2203. long unsigned int _4;
  2204. struct TCB_t * pxCurrentTCB.119_5;
  2205. long unsigned int _6;
  2206. signed int _7;
  2207. long unsigned int _8;
  2208. struct xLIST * _9;
  2209. struct List_t * _10;
  2210. struct ListItem_t * _11;
  2211. long unsigned int _12;
  2212. long unsigned int _13;
  2213. long unsigned int uxTopReadyPriority.120_14;
  2214. long unsigned int _15;
  2215. long unsigned int _16;
  2216. struct xLIST_ITEM * _17;
  2217. struct xLIST_ITEM * _18;
  2218. struct ListItem_t * _19;
  2219. struct ListItem_t * _20;
  2220. long unsigned int _21;
  2221. struct List_t * _22;
  2222. long unsigned int _23;
  2223. long unsigned int _24;
  2224. long unsigned int _25;
  2225. <bb 2> :
  2226. pxTCB_31 = pxMutexHolder_30(D);
  2227. uxOnlyOneMutexHeld_32 = 1;
  2228. if (pxMutexHolder_30(D) != 0B)
  2229. goto <bb 3>; [INV]
  2230. else
  2231. goto <bb 23>; [INV]
  2232. <bb 3> :
  2233. _1 = pxTCB_31->uxMutexesHeld;
  2234. if (_1 == 0)
  2235. goto <bb 4>; [INV]
  2236. else
  2237. goto <bb 7>; [INV]
  2238. <bb 4> :
  2239. __asm__ __volatile__(" mov %0, %1
  2240. msr basepri, %0
  2241. isb
  2242. dsb
  2243. " : "=r" ulNewBASEPRI_49 : "i" 16 : "memory");
  2244. <bb 5> :
  2245. <bb 6> :
  2246. goto <bb 6>; [INV]
  2247. <bb 7> :
  2248. _2 = pxTCB_31->uxBasePriority;
  2249. if (uxHighestPriorityWaitingTask_34(D) > _2)
  2250. goto <bb 8>; [INV]
  2251. else
  2252. goto <bb 9>; [INV]
  2253. <bb 8> :
  2254. uxPriorityToUse_36 = uxHighestPriorityWaitingTask_34(D);
  2255. goto <bb 10>; [INV]
  2256. <bb 9> :
  2257. uxPriorityToUse_35 = pxTCB_31->uxBasePriority;
  2258. <bb 10> :
  2259. # uxPriorityToUse_26 = PHI <uxPriorityToUse_36(8), uxPriorityToUse_35(9)>
  2260. _3 = pxTCB_31->uxPriority;
  2261. if (uxPriorityToUse_26 != _3)
  2262. goto <bb 11>; [INV]
  2263. else
  2264. goto <bb 23>; [INV]
  2265. <bb 11> :
  2266. _4 = pxTCB_31->uxMutexesHeld;
  2267. if (uxOnlyOneMutexHeld_32 == _4)
  2268. goto <bb 12>; [INV]
  2269. else
  2270. goto <bb 23>; [INV]
  2271. <bb 12> :
  2272. pxCurrentTCB.119_5 ={v} pxCurrentTCB;
  2273. if (pxTCB_31 == pxCurrentTCB.119_5)
  2274. goto <bb 13>; [INV]
  2275. else
  2276. goto <bb 16>; [INV]
  2277. <bb 13> :
  2278. __asm__ __volatile__(" mov %0, %1
  2279. msr basepri, %0
  2280. isb
  2281. dsb
  2282. " : "=r" ulNewBASEPRI_50 : "i" 16 : "memory");
  2283. <bb 14> :
  2284. <bb 15> :
  2285. goto <bb 15>; [INV]
  2286. <bb 16> :
  2287. uxPriorityUsedOnEntry_37 = pxTCB_31->uxPriority;
  2288. pxTCB_31->uxPriority = uxPriorityToUse_26;
  2289. _6 = pxTCB_31->xEventListItem.xItemValue;
  2290. _7 = (signed int) _6;
  2291. if (_7 >= 0)
  2292. goto <bb 17>; [INV]
  2293. else
  2294. goto <bb 18>; [INV]
  2295. <bb 17> :
  2296. _8 = 5 - uxPriorityToUse_26;
  2297. pxTCB_31->xEventListItem.xItemValue = _8;
  2298. <bb 18> :
  2299. _9 = pxTCB_31->xStateListItem.pvContainer;
  2300. _10 = &pxReadyTasksLists[uxPriorityUsedOnEntry_37];
  2301. if (_9 == _10)
  2302. goto <bb 19>; [INV]
  2303. else
  2304. goto <bb 23>; [INV]
  2305. <bb 19> :
  2306. _11 = &pxTCB_31->xStateListItem;
  2307. _12 = uxListRemove (_11);
  2308. <bb 20> :
  2309. _13 = pxTCB_31->uxPriority;
  2310. uxTopReadyPriority.120_14 ={v} uxTopReadyPriority;
  2311. if (_13 > uxTopReadyPriority.120_14)
  2312. goto <bb 21>; [INV]
  2313. else
  2314. goto <bb 22>; [INV]
  2315. <bb 21> :
  2316. _15 = pxTCB_31->uxPriority;
  2317. uxTopReadyPriority ={v} _15;
  2318. <bb 22> :
  2319. _16 = pxTCB_31->uxPriority;
  2320. pxIndex_42 = pxReadyTasksLists[_16].pxIndex;
  2321. pxTCB_31->xStateListItem.pxNext = pxIndex_42;
  2322. _17 = pxIndex_42->pxPrevious;
  2323. pxTCB_31->xStateListItem.pxPrevious = _17;
  2324. _18 = pxIndex_42->pxPrevious;
  2325. _19 = &pxTCB_31->xStateListItem;
  2326. _18->pxNext = _19;
  2327. _20 = &pxTCB_31->xStateListItem;
  2328. pxIndex_42->pxPrevious = _20;
  2329. _21 = pxTCB_31->uxPriority;
  2330. _22 = &pxReadyTasksLists[_21];
  2331. pxTCB_31->xStateListItem.pvContainer = _22;
  2332. _23 = pxTCB_31->uxPriority;
  2333. _24 ={v} pxReadyTasksLists[_23].uxNumberOfItems;
  2334. _25 = _24 + 1;
  2335. pxReadyTasksLists[_23].uxNumberOfItems ={v} _25;
  2336. <bb 23> :
  2337. return;
  2338. }
  2339. xTaskPriorityDisinherit (struct tskTaskControlBlock * const pxMutexHolder)
  2340. {
  2341. uint32_t ulNewBASEPRI;
  2342. uint32_t ulNewBASEPRI;
  2343. struct ListItem_t * const pxIndex;
  2344. BaseType_t xReturn;
  2345. struct TCB_t * const pxTCB;
  2346. BaseType_t D.8062;
  2347. struct TCB_t * pxCurrentTCB.117_1;
  2348. long unsigned int _2;
  2349. long unsigned int _3;
  2350. long unsigned int _4;
  2351. long unsigned int _5;
  2352. long unsigned int _6;
  2353. long unsigned int _7;
  2354. struct ListItem_t * _8;
  2355. long unsigned int _9;
  2356. long unsigned int _10;
  2357. long unsigned int _11;
  2358. long unsigned int _12;
  2359. long unsigned int _13;
  2360. long unsigned int uxTopReadyPriority.118_14;
  2361. long unsigned int _15;
  2362. long unsigned int _16;
  2363. struct xLIST_ITEM * _17;
  2364. struct xLIST_ITEM * _18;
  2365. struct ListItem_t * _19;
  2366. struct ListItem_t * _20;
  2367. long unsigned int _21;
  2368. struct List_t * _22;
  2369. long unsigned int _23;
  2370. long unsigned int _24;
  2371. long unsigned int _25;
  2372. BaseType_t _46;
  2373. <bb 2> :
  2374. pxTCB_30 = pxMutexHolder_29(D);
  2375. xReturn_31 = 0;
  2376. if (pxMutexHolder_29(D) != 0B)
  2377. goto <bb 3>; [INV]
  2378. else
  2379. goto <bb 17>; [INV]
  2380. <bb 3> :
  2381. pxCurrentTCB.117_1 ={v} pxCurrentTCB;
  2382. if (pxTCB_30 != pxCurrentTCB.117_1)
  2383. goto <bb 4>; [INV]
  2384. else
  2385. goto <bb 7>; [INV]
  2386. <bb 4> :
  2387. __asm__ __volatile__(" mov %0, %1
  2388. msr basepri, %0
  2389. isb
  2390. dsb
  2391. " : "=r" ulNewBASEPRI_47 : "i" 16 : "memory");
  2392. <bb 5> :
  2393. <bb 6> :
  2394. goto <bb 6>; [INV]
  2395. <bb 7> :
  2396. _2 = pxTCB_30->uxMutexesHeld;
  2397. if (_2 == 0)
  2398. goto <bb 8>; [INV]
  2399. else
  2400. goto <bb 11>; [INV]
  2401. <bb 8> :
  2402. __asm__ __volatile__(" mov %0, %1
  2403. msr basepri, %0
  2404. isb
  2405. dsb
  2406. " : "=r" ulNewBASEPRI_48 : "i" 16 : "memory");
  2407. <bb 9> :
  2408. <bb 10> :
  2409. goto <bb 10>; [INV]
  2410. <bb 11> :
  2411. _3 = pxTCB_30->uxMutexesHeld;
  2412. _4 = _3 + 4294967295;
  2413. pxTCB_30->uxMutexesHeld = _4;
  2414. _5 = pxTCB_30->uxPriority;
  2415. _6 = pxTCB_30->uxBasePriority;
  2416. if (_5 != _6)
  2417. goto <bb 12>; [INV]
  2418. else
  2419. goto <bb 17>; [INV]
  2420. <bb 12> :
  2421. _7 = pxTCB_30->uxMutexesHeld;
  2422. if (_7 == 0)
  2423. goto <bb 13>; [INV]
  2424. else
  2425. goto <bb 17>; [INV]
  2426. <bb 13> :
  2427. _8 = &pxTCB_30->xStateListItem;
  2428. _9 = uxListRemove (_8);
  2429. <bb 14> :
  2430. _10 = pxTCB_30->uxBasePriority;
  2431. pxTCB_30->uxPriority = _10;
  2432. _11 = pxTCB_30->uxPriority;
  2433. _12 = 5 - _11;
  2434. pxTCB_30->xEventListItem.xItemValue = _12;
  2435. _13 = pxTCB_30->uxPriority;
  2436. uxTopReadyPriority.118_14 ={v} uxTopReadyPriority;
  2437. if (_13 > uxTopReadyPriority.118_14)
  2438. goto <bb 15>; [INV]
  2439. else
  2440. goto <bb 16>; [INV]
  2441. <bb 15> :
  2442. _15 = pxTCB_30->uxPriority;
  2443. uxTopReadyPriority ={v} _15;
  2444. <bb 16> :
  2445. _16 = pxTCB_30->uxPriority;
  2446. pxIndex_38 = pxReadyTasksLists[_16].pxIndex;
  2447. pxTCB_30->xStateListItem.pxNext = pxIndex_38;
  2448. _17 = pxIndex_38->pxPrevious;
  2449. pxTCB_30->xStateListItem.pxPrevious = _17;
  2450. _18 = pxIndex_38->pxPrevious;
  2451. _19 = &pxTCB_30->xStateListItem;
  2452. _18->pxNext = _19;
  2453. _20 = &pxTCB_30->xStateListItem;
  2454. pxIndex_38->pxPrevious = _20;
  2455. _21 = pxTCB_30->uxPriority;
  2456. _22 = &pxReadyTasksLists[_21];
  2457. pxTCB_30->xStateListItem.pvContainer = _22;
  2458. _23 = pxTCB_30->uxPriority;
  2459. _24 ={v} pxReadyTasksLists[_23].uxNumberOfItems;
  2460. _25 = _24 + 1;
  2461. pxReadyTasksLists[_23].uxNumberOfItems ={v} _25;
  2462. xReturn_45 = 1;
  2463. <bb 17> :
  2464. # xReturn_26 = PHI <xReturn_31(2), xReturn_45(16), xReturn_31(11), xReturn_31(12)>
  2465. _46 = xReturn_26;
  2466. <bb 18> :
  2467. <L20>:
  2468. return _46;
  2469. }
  2470. xTaskPriorityInherit (struct tskTaskControlBlock * const pxMutexHolder)
  2471. {
  2472. struct ListItem_t * const pxIndex;
  2473. BaseType_t xReturn;
  2474. struct TCB_t * const pxMutexHolderTCB;
  2475. BaseType_t D.8042;
  2476. long unsigned int _1;
  2477. struct TCB_t * pxCurrentTCB.111_2;
  2478. long unsigned int _3;
  2479. long unsigned int _4;
  2480. signed int _5;
  2481. struct TCB_t * pxCurrentTCB.112_6;
  2482. long unsigned int _7;
  2483. long unsigned int _8;
  2484. struct xLIST * _9;
  2485. long unsigned int _10;
  2486. struct List_t * _11;
  2487. struct ListItem_t * _12;
  2488. long unsigned int _13;
  2489. struct TCB_t * pxCurrentTCB.113_14;
  2490. long unsigned int _15;
  2491. long unsigned int _16;
  2492. long unsigned int uxTopReadyPriority.114_17;
  2493. long unsigned int _18;
  2494. long unsigned int _19;
  2495. struct xLIST_ITEM * _20;
  2496. struct xLIST_ITEM * _21;
  2497. struct ListItem_t * _22;
  2498. struct ListItem_t * _23;
  2499. long unsigned int _24;
  2500. struct List_t * _25;
  2501. long unsigned int _26;
  2502. long unsigned int _27;
  2503. long unsigned int _28;
  2504. struct TCB_t * pxCurrentTCB.115_29;
  2505. long unsigned int _30;
  2506. long unsigned int _31;
  2507. struct TCB_t * pxCurrentTCB.116_32;
  2508. long unsigned int _33;
  2509. BaseType_t _57;
  2510. <bb 2> :
  2511. pxMutexHolderTCB_40 = pxMutexHolder_39(D);
  2512. xReturn_41 = 0;
  2513. if (pxMutexHolder_39(D) != 0B)
  2514. goto <bb 3>; [INV]
  2515. else
  2516. goto <bb 15>; [INV]
  2517. <bb 3> :
  2518. _1 = pxMutexHolderTCB_40->uxPriority;
  2519. pxCurrentTCB.111_2 ={v} pxCurrentTCB;
  2520. _3 = pxCurrentTCB.111_2->uxPriority;
  2521. if (_1 < _3)
  2522. goto <bb 4>; [INV]
  2523. else
  2524. goto <bb 13>; [INV]
  2525. <bb 4> :
  2526. _4 = pxMutexHolderTCB_40->xEventListItem.xItemValue;
  2527. _5 = (signed int) _4;
  2528. if (_5 >= 0)
  2529. goto <bb 5>; [INV]
  2530. else
  2531. goto <bb 6>; [INV]
  2532. <bb 5> :
  2533. pxCurrentTCB.112_6 ={v} pxCurrentTCB;
  2534. _7 = pxCurrentTCB.112_6->uxPriority;
  2535. _8 = 5 - _7;
  2536. pxMutexHolderTCB_40->xEventListItem.xItemValue = _8;
  2537. <bb 6> :
  2538. _9 = pxMutexHolderTCB_40->xStateListItem.pvContainer;
  2539. _10 = pxMutexHolderTCB_40->uxPriority;
  2540. _11 = &pxReadyTasksLists[_10];
  2541. if (_9 == _11)
  2542. goto <bb 7>; [INV]
  2543. else
  2544. goto <bb 11>; [INV]
  2545. <bb 7> :
  2546. _12 = &pxMutexHolderTCB_40->xStateListItem;
  2547. _13 = uxListRemove (_12);
  2548. <bb 8> :
  2549. pxCurrentTCB.113_14 ={v} pxCurrentTCB;
  2550. _15 = pxCurrentTCB.113_14->uxPriority;
  2551. pxMutexHolderTCB_40->uxPriority = _15;
  2552. _16 = pxMutexHolderTCB_40->uxPriority;
  2553. uxTopReadyPriority.114_17 ={v} uxTopReadyPriority;
  2554. if (_16 > uxTopReadyPriority.114_17)
  2555. goto <bb 9>; [INV]
  2556. else
  2557. goto <bb 10>; [INV]
  2558. <bb 9> :
  2559. _18 = pxMutexHolderTCB_40->uxPriority;
  2560. uxTopReadyPriority ={v} _18;
  2561. <bb 10> :
  2562. _19 = pxMutexHolderTCB_40->uxPriority;
  2563. pxIndex_49 = pxReadyTasksLists[_19].pxIndex;
  2564. pxMutexHolderTCB_40->xStateListItem.pxNext = pxIndex_49;
  2565. _20 = pxIndex_49->pxPrevious;
  2566. pxMutexHolderTCB_40->xStateListItem.pxPrevious = _20;
  2567. _21 = pxIndex_49->pxPrevious;
  2568. _22 = &pxMutexHolderTCB_40->xStateListItem;
  2569. _21->pxNext = _22;
  2570. _23 = &pxMutexHolderTCB_40->xStateListItem;
  2571. pxIndex_49->pxPrevious = _23;
  2572. _24 = pxMutexHolderTCB_40->uxPriority;
  2573. _25 = &pxReadyTasksLists[_24];
  2574. pxMutexHolderTCB_40->xStateListItem.pvContainer = _25;
  2575. _26 = pxMutexHolderTCB_40->uxPriority;
  2576. _27 ={v} pxReadyTasksLists[_26].uxNumberOfItems;
  2577. _28 = _27 + 1;
  2578. pxReadyTasksLists[_26].uxNumberOfItems ={v} _28;
  2579. goto <bb 12>; [INV]
  2580. <bb 11> :
  2581. pxCurrentTCB.115_29 ={v} pxCurrentTCB;
  2582. _30 = pxCurrentTCB.115_29->uxPriority;
  2583. pxMutexHolderTCB_40->uxPriority = _30;
  2584. <bb 12> :
  2585. xReturn_56 = 1;
  2586. goto <bb 15>; [INV]
  2587. <bb 13> :
  2588. _31 = pxMutexHolderTCB_40->uxBasePriority;
  2589. pxCurrentTCB.116_32 ={v} pxCurrentTCB;
  2590. _33 = pxCurrentTCB.116_32->uxPriority;
  2591. if (_31 < _33)
  2592. goto <bb 14>; [INV]
  2593. else
  2594. goto <bb 15>; [INV]
  2595. <bb 14> :
  2596. xReturn_43 = 1;
  2597. <bb 15> :
  2598. # xReturn_34 = PHI <xReturn_41(2), xReturn_41(13), xReturn_56(12), xReturn_43(14)>
  2599. _57 = xReturn_34;
  2600. <bb 16> :
  2601. <L20>:
  2602. return _57;
  2603. }
  2604. xTaskGetSchedulerState ()
  2605. {
  2606. BaseType_t xReturn;
  2607. BaseType_t D.8020;
  2608. long int xSchedulerRunning.109_1;
  2609. long unsigned int uxSchedulerSuspended.110_2;
  2610. BaseType_t _8;
  2611. <bb 2> :
  2612. xSchedulerRunning.109_1 ={v} xSchedulerRunning;
  2613. if (xSchedulerRunning.109_1 == 0)
  2614. goto <bb 3>; [INV]
  2615. else
  2616. goto <bb 4>; [INV]
  2617. <bb 3> :
  2618. xReturn_7 = 1;
  2619. goto <bb 7>; [INV]
  2620. <bb 4> :
  2621. uxSchedulerSuspended.110_2 ={v} uxSchedulerSuspended;
  2622. if (uxSchedulerSuspended.110_2 == 0)
  2623. goto <bb 5>; [INV]
  2624. else
  2625. goto <bb 6>; [INV]
  2626. <bb 5> :
  2627. xReturn_6 = 2;
  2628. goto <bb 7>; [INV]
  2629. <bb 6> :
  2630. xReturn_5 = 0;
  2631. <bb 7> :
  2632. # xReturn_3 = PHI <xReturn_7(3), xReturn_6(5), xReturn_5(6)>
  2633. _8 = xReturn_3;
  2634. <bb 8> :
  2635. <L6>:
  2636. return _8;
  2637. }
  2638. xTaskGetCurrentTaskHandle ()
  2639. {
  2640. struct tskTaskControlBlock * xReturn;
  2641. struct tskTaskControlBlock * D.8012;
  2642. struct tskTaskControlBlock * _3;
  2643. <bb 2> :
  2644. xReturn_2 ={v} pxCurrentTCB;
  2645. _3 = xReturn_2;
  2646. <bb 3> :
  2647. <L0>:
  2648. return _3;
  2649. }
  2650. prvResetNextTaskUnblockTime ()
  2651. {
  2652. struct List_t * pxDelayedTaskList.107_1;
  2653. long unsigned int _2;
  2654. struct List_t * pxDelayedTaskList.108_3;
  2655. struct xLIST_ITEM * _4;
  2656. long unsigned int _5;
  2657. <bb 2> :
  2658. pxDelayedTaskList.107_1 ={v} pxDelayedTaskList;
  2659. _2 ={v} pxDelayedTaskList.107_1->uxNumberOfItems;
  2660. if (_2 == 0)
  2661. goto <bb 3>; [INV]
  2662. else
  2663. goto <bb 4>; [INV]
  2664. <bb 3> :
  2665. xNextTaskUnblockTime ={v} 4294967295;
  2666. goto <bb 5>; [INV]
  2667. <bb 4> :
  2668. pxDelayedTaskList.108_3 ={v} pxDelayedTaskList;
  2669. _4 = pxDelayedTaskList.108_3->xListEnd.pxNext;
  2670. _5 = _4->xItemValue;
  2671. xNextTaskUnblockTime ={v} _5;
  2672. <bb 5> :
  2673. return;
  2674. }
  2675. prvDeleteTCB (struct TCB_t * pxTCB)
  2676. {
  2677. StackType_t * _1;
  2678. <bb 2> :
  2679. _1 = pxTCB_3(D)->pxStack;
  2680. vPortFree (_1);
  2681. vPortFree (pxTCB_3(D));
  2682. return;
  2683. }
  2684. uxTaskGetStackHighWaterMark (struct tskTaskControlBlock * xTask)
  2685. {
  2686. UBaseType_t uxReturn;
  2687. uint8_t * pucEndOfStack;
  2688. struct TCB_t * pxTCB;
  2689. UBaseType_t D.8007;
  2690. struct TCB_t * iftmp.106;
  2691. short unsigned int _1;
  2692. struct TCB_t * iftmp.106_2;
  2693. struct TCB_t * iftmp.106_4;
  2694. struct TCB_t * iftmp.106_6;
  2695. UBaseType_t _11;
  2696. <bb 2> :
  2697. if (xTask_3(D) == 0B)
  2698. goto <bb 3>; [INV]
  2699. else
  2700. goto <bb 4>; [INV]
  2701. <bb 3> :
  2702. iftmp.106_6 ={v} pxCurrentTCB;
  2703. goto <bb 5>; [INV]
  2704. <bb 4> :
  2705. iftmp.106_4 = xTask_3(D);
  2706. <bb 5> :
  2707. # iftmp.106_2 = PHI <iftmp.106_6(3), iftmp.106_4(4)>
  2708. pxTCB_7 = iftmp.106_2;
  2709. pucEndOfStack_8 = pxTCB_7->pxStack;
  2710. _1 = prvTaskCheckFreeStackSpace (pucEndOfStack_8);
  2711. uxReturn_10 = (UBaseType_t) _1;
  2712. _11 = uxReturn_10;
  2713. <bb 6> :
  2714. <L3>:
  2715. return _11;
  2716. }
  2717. prvTaskCheckFreeStackSpace (const uint8_t * pucStackByte)
  2718. {
  2719. uint32_t ulCount;
  2720. uint16_t D.8001;
  2721. unsigned char _1;
  2722. uint16_t _8;
  2723. <bb 2> :
  2724. ulCount_4 = 0;
  2725. goto <bb 4>; [INV]
  2726. <bb 3> :
  2727. pucStackByte_9 = pucStackByte_2 + 1;
  2728. ulCount_10 = ulCount_3 + 1;
  2729. <bb 4> :
  2730. # pucStackByte_2 = PHI <pucStackByte_5(D)(2), pucStackByte_9(3)>
  2731. # ulCount_3 = PHI <ulCount_4(2), ulCount_10(3)>
  2732. _1 = *pucStackByte_2;
  2733. if (_1 == 165)
  2734. goto <bb 3>; [INV]
  2735. else
  2736. goto <bb 5>; [INV]
  2737. <bb 5> :
  2738. ulCount_7 = ulCount_3 / 4;
  2739. _8 = (uint16_t) ulCount_7;
  2740. <bb 6> :
  2741. <L3>:
  2742. return _8;
  2743. }
  2744. prvListTasksWithinSingleList (struct TaskStatus_t * pxTaskStatusArray, struct List_t * pxList, eTaskState eState)
  2745. {
  2746. struct List_t * const pxConstList;
  2747. struct List_t * const pxConstList;
  2748. UBaseType_t uxTask;
  2749. struct TCB_t * pxFirstTCB;
  2750. struct TCB_t * pxNextTCB;
  2751. UBaseType_t D.7999;
  2752. long unsigned int _1;
  2753. struct ListItem_t * _2;
  2754. struct xLIST_ITEM * _3;
  2755. struct ListItem_t * _4;
  2756. struct MiniListItem_t * _5;
  2757. struct ListItem_t * _6;
  2758. struct xLIST_ITEM * _7;
  2759. struct ListItem_t * _8;
  2760. struct ListItem_t * _9;
  2761. struct xLIST_ITEM * _10;
  2762. struct ListItem_t * _11;
  2763. struct MiniListItem_t * _12;
  2764. struct ListItem_t * _13;
  2765. struct xLIST_ITEM * _14;
  2766. struct ListItem_t * _15;
  2767. long unsigned int _16;
  2768. struct TaskStatus_t * _17;
  2769. UBaseType_t _39;
  2770. <bb 2> :
  2771. uxTask_24 = 0;
  2772. _1 ={v} pxList_26(D)->uxNumberOfItems;
  2773. if (_1 != 0)
  2774. goto <bb 3>; [INV]
  2775. else
  2776. goto <bb 9>; [INV]
  2777. <bb 3> :
  2778. pxConstList_27 = pxList_26(D);
  2779. _2 = pxConstList_27->pxIndex;
  2780. _3 = _2->pxNext;
  2781. pxConstList_27->pxIndex = _3;
  2782. _4 = pxConstList_27->pxIndex;
  2783. _5 = &pxConstList_27->xListEnd;
  2784. if (_4 == _5)
  2785. goto <bb 4>; [INV]
  2786. else
  2787. goto <bb 5>; [INV]
  2788. <bb 4> :
  2789. _6 = pxConstList_27->pxIndex;
  2790. _7 = _6->pxNext;
  2791. pxConstList_27->pxIndex = _7;
  2792. <bb 5> :
  2793. _8 = pxConstList_27->pxIndex;
  2794. pxFirstTCB_30 = _8->pvOwner;
  2795. <bb 6> :
  2796. # uxTask_18 = PHI <uxTask_24(5), uxTask_38(8)>
  2797. pxConstList_31 = pxList_26(D);
  2798. _9 = pxConstList_31->pxIndex;
  2799. _10 = _9->pxNext;
  2800. pxConstList_31->pxIndex = _10;
  2801. _11 = pxConstList_31->pxIndex;
  2802. _12 = &pxConstList_31->xListEnd;
  2803. if (_11 == _12)
  2804. goto <bb 7>; [INV]
  2805. else
  2806. goto <bb 8>; [INV]
  2807. <bb 7> :
  2808. _13 = pxConstList_31->pxIndex;
  2809. _14 = _13->pxNext;
  2810. pxConstList_31->pxIndex = _14;
  2811. <bb 8> :
  2812. _15 = pxConstList_31->pxIndex;
  2813. pxNextTCB_34 = _15->pvOwner;
  2814. _16 = uxTask_18 * 36;
  2815. _17 = pxTaskStatusArray_35(D) + _16;
  2816. vTaskGetInfo (pxNextTCB_34, _17, 1, eState_36(D));
  2817. uxTask_38 = uxTask_18 + 1;
  2818. if (pxNextTCB_34 != pxFirstTCB_30)
  2819. goto <bb 6>; [INV]
  2820. else
  2821. goto <bb 9>; [INV]
  2822. <bb 9> :
  2823. # uxTask_19 = PHI <uxTask_24(2), uxTask_38(8)>
  2824. _39 = uxTask_19;
  2825. <bb 10> :
  2826. <L9>:
  2827. return _39;
  2828. }
  2829. vTaskGetInfo (struct tskTaskControlBlock * xTask, struct TaskStatus_t * pxTaskStatus, BaseType_t xGetFreeStackSpace, eTaskState eState)
  2830. {
  2831. struct TCB_t * pxTCB;
  2832. struct TCB_t * iftmp.104;
  2833. char * _1;
  2834. long unsigned int _2;
  2835. StackType_t * _3;
  2836. long unsigned int _4;
  2837. long unsigned int _5;
  2838. struct TCB_t * pxCurrentTCB.105_6;
  2839. struct xLIST * _7;
  2840. <unnamed type> _8;
  2841. StackType_t * _9;
  2842. short unsigned int _10;
  2843. struct TCB_t * iftmp.104_11;
  2844. struct TCB_t * iftmp.104_16;
  2845. struct TCB_t * iftmp.104_18;
  2846. <bb 2> :
  2847. if (xTask_15(D) == 0B)
  2848. goto <bb 3>; [INV]
  2849. else
  2850. goto <bb 4>; [INV]
  2851. <bb 3> :
  2852. iftmp.104_18 ={v} pxCurrentTCB;
  2853. goto <bb 5>; [INV]
  2854. <bb 4> :
  2855. iftmp.104_16 = xTask_15(D);
  2856. <bb 5> :
  2857. # iftmp.104_11 = PHI <iftmp.104_18(3), iftmp.104_16(4)>
  2858. pxTCB_19 = iftmp.104_11;
  2859. pxTaskStatus_20(D)->xHandle = pxTCB_19;
  2860. _1 = &pxTCB_19->pcTaskName[0];
  2861. pxTaskStatus_20(D)->pcTaskName = _1;
  2862. _2 = pxTCB_19->uxPriority;
  2863. pxTaskStatus_20(D)->uxCurrentPriority = _2;
  2864. _3 = pxTCB_19->pxStack;
  2865. pxTaskStatus_20(D)->pxStackBase = _3;
  2866. _4 = pxTCB_19->uxTCBNumber;
  2867. pxTaskStatus_20(D)->xTaskNumber = _4;
  2868. _5 = pxTCB_19->uxBasePriority;
  2869. pxTaskStatus_20(D)->uxBasePriority = _5;
  2870. pxTaskStatus_20(D)->ulRunTimeCounter = 0;
  2871. if (eState_28(D) != 5)
  2872. goto <bb 6>; [INV]
  2873. else
  2874. goto <bb 12>; [INV]
  2875. <bb 6> :
  2876. pxCurrentTCB.105_6 ={v} pxCurrentTCB;
  2877. if (pxTCB_19 == pxCurrentTCB.105_6)
  2878. goto <bb 7>; [INV]
  2879. else
  2880. goto <bb 8>; [INV]
  2881. <bb 7> :
  2882. pxTaskStatus_20(D)->eCurrentState = 0;
  2883. goto <bb 13>; [INV]
  2884. <bb 8> :
  2885. pxTaskStatus_20(D)->eCurrentState = eState_28(D);
  2886. if (eState_28(D) == 3)
  2887. goto <bb 9>; [INV]
  2888. else
  2889. goto <bb 13>; [INV]
  2890. <bb 9> :
  2891. vTaskSuspendAll ();
  2892. _7 = pxTCB_19->xEventListItem.pvContainer;
  2893. if (_7 != 0B)
  2894. goto <bb 10>; [INV]
  2895. else
  2896. goto <bb 11>; [INV]
  2897. <bb 10> :
  2898. pxTaskStatus_20(D)->eCurrentState = 2;
  2899. <bb 11> :
  2900. xTaskResumeAll ();
  2901. goto <bb 13>; [INV]
  2902. <bb 12> :
  2903. _8 = eTaskGetState (pxTCB_19);
  2904. pxTaskStatus_20(D)->eCurrentState = _8;
  2905. <bb 13> :
  2906. if (xGetFreeStackSpace_36(D) != 0)
  2907. goto <bb 14>; [INV]
  2908. else
  2909. goto <bb 15>; [INV]
  2910. <bb 14> :
  2911. _9 = pxTCB_19->pxStack;
  2912. _10 = prvTaskCheckFreeStackSpace (_9);
  2913. pxTaskStatus_20(D)->usStackHighWaterMark = _10;
  2914. goto <bb 16>; [INV]
  2915. <bb 15> :
  2916. pxTaskStatus_20(D)->usStackHighWaterMark = 0;
  2917. <bb 16> :
  2918. return;
  2919. }
  2920. prvCheckTasksWaitingTermination ()
  2921. {
  2922. struct TCB_t * pxTCB;
  2923. struct xLIST_ITEM * _1;
  2924. struct ListItem_t * _2;
  2925. long unsigned int uxCurrentNumberOfTasks.101_3;
  2926. long unsigned int _4;
  2927. long unsigned int uxDeletedTasksWaitingCleanUp.102_5;
  2928. long unsigned int _6;
  2929. long unsigned int uxDeletedTasksWaitingCleanUp.103_7;
  2930. <bb 2> :
  2931. goto <bb 4>; [INV]
  2932. <bb 3> :
  2933. vPortEnterCritical ();
  2934. _1 = xTasksWaitingTermination.xListEnd.pxNext;
  2935. pxTCB_11 = _1->pvOwner;
  2936. _2 = &pxTCB_11->xStateListItem;
  2937. uxListRemove (_2);
  2938. uxCurrentNumberOfTasks.101_3 ={v} uxCurrentNumberOfTasks;
  2939. _4 = uxCurrentNumberOfTasks.101_3 + 4294967295;
  2940. uxCurrentNumberOfTasks ={v} _4;
  2941. uxDeletedTasksWaitingCleanUp.102_5 ={v} uxDeletedTasksWaitingCleanUp;
  2942. _6 = uxDeletedTasksWaitingCleanUp.102_5 + 4294967295;
  2943. uxDeletedTasksWaitingCleanUp ={v} _6;
  2944. vPortExitCritical ();
  2945. prvDeleteTCB (pxTCB_11);
  2946. <bb 4> :
  2947. uxDeletedTasksWaitingCleanUp.103_7 ={v} uxDeletedTasksWaitingCleanUp;
  2948. if (uxDeletedTasksWaitingCleanUp.103_7 != 0)
  2949. goto <bb 3>; [INV]
  2950. else
  2951. goto <bb 5>; [INV]
  2952. <bb 5> :
  2953. return;
  2954. }
  2955. prvInitialiseTaskLists ()
  2956. {
  2957. UBaseType_t uxPriority;
  2958. struct List_t * _1;
  2959. <bb 2> :
  2960. uxPriority_4 = 0;
  2961. goto <bb 4>; [INV]
  2962. <bb 3> :
  2963. _1 = &pxReadyTasksLists[uxPriority_2];
  2964. vListInitialise (_1);
  2965. uxPriority_14 = uxPriority_2 + 1;
  2966. <bb 4> :
  2967. # uxPriority_2 = PHI <uxPriority_4(2), uxPriority_14(3)>
  2968. if (uxPriority_2 <= 4)
  2969. goto <bb 3>; [INV]
  2970. else
  2971. goto <bb 5>; [INV]
  2972. <bb 5> :
  2973. vListInitialise (&xDelayedTaskList1);
  2974. vListInitialise (&xDelayedTaskList2);
  2975. vListInitialise (&xPendingReadyList);
  2976. vListInitialise (&xTasksWaitingTermination);
  2977. vListInitialise (&xSuspendedTaskList);
  2978. pxDelayedTaskList ={v} &xDelayedTaskList1;
  2979. pxOverflowDelayedTaskList ={v} &xDelayedTaskList2;
  2980. return;
  2981. }
  2982. prvIdleTask (void * pvParameters)
  2983. {
  2984. long unsigned int _1;
  2985. volatile uint32_t * _2;
  2986. <bb 2> :
  2987. prvCheckTasksWaitingTermination ();
  2988. _1 ={v} pxReadyTasksLists[0].uxNumberOfItems;
  2989. if (_1 > 1)
  2990. goto <bb 3>; [INV]
  2991. else
  2992. goto <bb 4>; [INV]
  2993. <bb 3> :
  2994. _2 = 3758157060B;
  2995. *_2 ={v} 268435456;
  2996. __asm__ __volatile__("dsb" : : : "memory");
  2997. __asm__ __volatile__("isb");
  2998. <bb 4> :
  2999. goto <bb 2>; [INV]
  3000. }
  3001. vTaskSetTaskNumber (struct tskTaskControlBlock * xTask, const UBaseType_t uxHandle)
  3002. {
  3003. struct TCB_t * pxTCB;
  3004. <bb 2> :
  3005. if (xTask_2(D) != 0B)
  3006. goto <bb 3>; [INV]
  3007. else
  3008. goto <bb 4>; [INV]
  3009. <bb 3> :
  3010. pxTCB_4 = xTask_2(D);
  3011. pxTCB_4->uxTaskNumber = uxHandle_5(D);
  3012. <bb 4> :
  3013. return;
  3014. }
  3015. uxTaskGetTaskNumber (struct tskTaskControlBlock * xTask)
  3016. {
  3017. const struct TCB_t * pxTCB;
  3018. UBaseType_t uxReturn;
  3019. UBaseType_t D.7968;
  3020. UBaseType_t _7;
  3021. <bb 2> :
  3022. if (xTask_2(D) != 0B)
  3023. goto <bb 3>; [INV]
  3024. else
  3025. goto <bb 4>; [INV]
  3026. <bb 3> :
  3027. pxTCB_4 = xTask_2(D);
  3028. uxReturn_6 = pxTCB_4->uxTaskNumber;
  3029. goto <bb 5>; [INV]
  3030. <bb 4> :
  3031. uxReturn_3 = 0;
  3032. <bb 5> :
  3033. # uxReturn_1 = PHI <uxReturn_6(3), uxReturn_3(4)>
  3034. _7 = uxReturn_1;
  3035. <bb 6> :
  3036. <L3>:
  3037. return _7;
  3038. }
  3039. vTaskMissedYield ()
  3040. {
  3041. <bb 2> :
  3042. xYieldPending ={v} 1;
  3043. return;
  3044. }
  3045. xTaskCheckForTimeOut (struct TimeOut_t * const pxTimeOut, TickType_t * const pxTicksToWait)
  3046. {
  3047. uint32_t ulNewBASEPRI;
  3048. uint32_t ulNewBASEPRI;
  3049. const TickType_t xElapsedTime;
  3050. const TickType_t xConstTickCount;
  3051. BaseType_t xReturn;
  3052. BaseType_t D.7963;
  3053. long unsigned int _1;
  3054. struct TCB_t * pxCurrentTCB.98_2;
  3055. unsigned char _3;
  3056. struct TCB_t * pxCurrentTCB.99_4;
  3057. long unsigned int _5;
  3058. long int _6;
  3059. long int xNumOfOverflows.100_7;
  3060. long unsigned int _8;
  3061. long unsigned int _9;
  3062. long unsigned int _10;
  3063. long unsigned int _11;
  3064. BaseType_t _31;
  3065. <bb 2> :
  3066. if (pxTimeOut_14(D) == 0B)
  3067. goto <bb 3>; [INV]
  3068. else
  3069. goto <bb 6>; [INV]
  3070. <bb 3> :
  3071. __asm__ __volatile__(" mov %0, %1
  3072. msr basepri, %0
  3073. isb
  3074. dsb
  3075. " : "=r" ulNewBASEPRI_32 : "i" 16 : "memory");
  3076. <bb 4> :
  3077. <bb 5> :
  3078. goto <bb 5>; [INV]
  3079. <bb 6> :
  3080. if (pxTicksToWait_15(D) == 0B)
  3081. goto <bb 7>; [INV]
  3082. else
  3083. goto <bb 10>; [INV]
  3084. <bb 7> :
  3085. __asm__ __volatile__(" mov %0, %1
  3086. msr basepri, %0
  3087. isb
  3088. dsb
  3089. " : "=r" ulNewBASEPRI_33 : "i" 16 : "memory");
  3090. <bb 8> :
  3091. <bb 9> :
  3092. goto <bb 9>; [INV]
  3093. <bb 10> :
  3094. vPortEnterCritical ();
  3095. xConstTickCount_18 ={v} xTickCount;
  3096. _1 = pxTimeOut_14(D)->xTimeOnEntering;
  3097. xElapsedTime_19 = xConstTickCount_18 - _1;
  3098. pxCurrentTCB.98_2 ={v} pxCurrentTCB;
  3099. _3 = pxCurrentTCB.98_2->ucDelayAborted;
  3100. if (_3 != 0)
  3101. goto <bb 11>; [INV]
  3102. else
  3103. goto <bb 12>; [INV]
  3104. <bb 11> :
  3105. pxCurrentTCB.99_4 ={v} pxCurrentTCB;
  3106. pxCurrentTCB.99_4->ucDelayAborted = 0;
  3107. xReturn_29 = 1;
  3108. goto <bb 20>; [INV]
  3109. <bb 12> :
  3110. _5 = *pxTicksToWait_15(D);
  3111. if (_5 == 4294967295)
  3112. goto <bb 13>; [INV]
  3113. else
  3114. goto <bb 14>; [INV]
  3115. <bb 13> :
  3116. xReturn_27 = 0;
  3117. goto <bb 20>; [INV]
  3118. <bb 14> :
  3119. _6 = pxTimeOut_14(D)->xOverflowCount;
  3120. xNumOfOverflows.100_7 ={v} xNumOfOverflows;
  3121. if (_6 != xNumOfOverflows.100_7)
  3122. goto <bb 15>; [INV]
  3123. else
  3124. goto <bb 17>; [INV]
  3125. <bb 15> :
  3126. _8 = pxTimeOut_14(D)->xTimeOnEntering;
  3127. if (xConstTickCount_18 >= _8)
  3128. goto <bb 16>; [INV]
  3129. else
  3130. goto <bb 17>; [INV]
  3131. <bb 16> :
  3132. xReturn_20 = 1;
  3133. *pxTicksToWait_15(D) = 0;
  3134. goto <bb 20>; [INV]
  3135. <bb 17> :
  3136. _9 = *pxTicksToWait_15(D);
  3137. if (xElapsedTime_19 < _9)
  3138. goto <bb 18>; [INV]
  3139. else
  3140. goto <bb 19>; [INV]
  3141. <bb 18> :
  3142. _10 = *pxTicksToWait_15(D);
  3143. _11 = _10 - xElapsedTime_19;
  3144. *pxTicksToWait_15(D) = _11;
  3145. vTaskInternalSetTimeOutState (pxTimeOut_14(D));
  3146. xReturn_26 = 0;
  3147. goto <bb 20>; [INV]
  3148. <bb 19> :
  3149. *pxTicksToWait_15(D) = 0;
  3150. xReturn_23 = 1;
  3151. <bb 20> :
  3152. # xReturn_12 = PHI <xReturn_29(11), xReturn_27(13), xReturn_20(16), xReturn_26(18), xReturn_23(19)>
  3153. vPortExitCritical ();
  3154. _31 = xReturn_12;
  3155. <bb 21> :
  3156. <L19>:
  3157. return _31;
  3158. }
  3159. vTaskInternalSetTimeOutState (struct TimeOut_t * const pxTimeOut)
  3160. {
  3161. long int xNumOfOverflows.96_1;
  3162. long unsigned int xTickCount.97_2;
  3163. <bb 2> :
  3164. xNumOfOverflows.96_1 ={v} xNumOfOverflows;
  3165. pxTimeOut_4(D)->xOverflowCount = xNumOfOverflows.96_1;
  3166. xTickCount.97_2 ={v} xTickCount;
  3167. pxTimeOut_4(D)->xTimeOnEntering = xTickCount.97_2;
  3168. return;
  3169. }
  3170. vTaskSetTimeOutState (struct TimeOut_t * const pxTimeOut)
  3171. {
  3172. uint32_t ulNewBASEPRI;
  3173. long int xNumOfOverflows.94_1;
  3174. long unsigned int xTickCount.95_2;
  3175. <bb 2> :
  3176. if (pxTimeOut_3(D) == 0B)
  3177. goto <bb 3>; [INV]
  3178. else
  3179. goto <bb 6>; [INV]
  3180. <bb 3> :
  3181. __asm__ __volatile__(" mov %0, %1
  3182. msr basepri, %0
  3183. isb
  3184. dsb
  3185. " : "=r" ulNewBASEPRI_9 : "i" 16 : "memory");
  3186. <bb 4> :
  3187. <bb 5> :
  3188. goto <bb 5>; [INV]
  3189. <bb 6> :
  3190. vPortEnterCritical ();
  3191. xNumOfOverflows.94_1 ={v} xNumOfOverflows;
  3192. pxTimeOut_3(D)->xOverflowCount = xNumOfOverflows.94_1;
  3193. xTickCount.95_2 ={v} xTickCount;
  3194. pxTimeOut_3(D)->xTimeOnEntering = xTickCount.95_2;
  3195. vPortExitCritical ();
  3196. return;
  3197. }
  3198. vTaskRemoveFromUnorderedEventList (struct ListItem_t * pxEventListItem, const TickType_t xItemValue)
  3199. {
  3200. uint32_t ulNewBASEPRI;
  3201. uint32_t ulNewBASEPRI;
  3202. struct ListItem_t * const pxIndex;
  3203. struct List_t * const pxList;
  3204. struct List_t * const pxList;
  3205. struct TCB_t * pxUnblockedTCB;
  3206. long unsigned int uxSchedulerSuspended.91_1;
  3207. long unsigned int _2;
  3208. struct xLIST_ITEM * _3;
  3209. struct xLIST_ITEM * _4;
  3210. struct xLIST_ITEM * _5;
  3211. struct xLIST_ITEM * _6;
  3212. struct ListItem_t * _7;
  3213. struct xLIST_ITEM * _8;
  3214. long unsigned int _9;
  3215. long unsigned int _10;
  3216. struct xLIST_ITEM * _11;
  3217. struct xLIST_ITEM * _12;
  3218. struct xLIST_ITEM * _13;
  3219. struct xLIST_ITEM * _14;
  3220. struct ListItem_t * _15;
  3221. struct ListItem_t * _16;
  3222. struct xLIST_ITEM * _17;
  3223. long unsigned int _18;
  3224. long unsigned int _19;
  3225. long unsigned int _20;
  3226. long unsigned int uxTopReadyPriority.92_21;
  3227. long unsigned int _22;
  3228. long unsigned int _23;
  3229. struct xLIST_ITEM * _24;
  3230. struct xLIST_ITEM * _25;
  3231. struct ListItem_t * _26;
  3232. struct ListItem_t * _27;
  3233. long unsigned int _28;
  3234. struct List_t * _29;
  3235. long unsigned int _30;
  3236. long unsigned int _31;
  3237. long unsigned int _32;
  3238. long unsigned int _33;
  3239. struct TCB_t * pxCurrentTCB.93_34;
  3240. long unsigned int _35;
  3241. <bb 2> :
  3242. uxSchedulerSuspended.91_1 ={v} uxSchedulerSuspended;
  3243. if (uxSchedulerSuspended.91_1 == 0)
  3244. goto <bb 3>; [INV]
  3245. else
  3246. goto <bb 6>; [INV]
  3247. <bb 3> :
  3248. __asm__ __volatile__(" mov %0, %1
  3249. msr basepri, %0
  3250. isb
  3251. dsb
  3252. " : "=r" ulNewBASEPRI_66 : "i" 16 : "memory");
  3253. <bb 4> :
  3254. <bb 5> :
  3255. goto <bb 5>; [INV]
  3256. <bb 6> :
  3257. _2 = xItemValue_41(D) | 2147483648;
  3258. pxEventListItem_42(D)->xItemValue = _2;
  3259. pxUnblockedTCB_44 = pxEventListItem_42(D)->pvOwner;
  3260. if (pxUnblockedTCB_44 == 0B)
  3261. goto <bb 7>; [INV]
  3262. else
  3263. goto <bb 10>; [INV]
  3264. <bb 7> :
  3265. __asm__ __volatile__(" mov %0, %1
  3266. msr basepri, %0
  3267. isb
  3268. dsb
  3269. " : "=r" ulNewBASEPRI_67 : "i" 16 : "memory");
  3270. <bb 8> :
  3271. <bb 9> :
  3272. goto <bb 9>; [INV]
  3273. <bb 10> :
  3274. pxList_45 = pxEventListItem_42(D)->pvContainer;
  3275. _3 = pxEventListItem_42(D)->pxNext;
  3276. _4 = pxEventListItem_42(D)->pxPrevious;
  3277. _3->pxPrevious = _4;
  3278. _5 = pxEventListItem_42(D)->pxPrevious;
  3279. _6 = pxEventListItem_42(D)->pxNext;
  3280. _5->pxNext = _6;
  3281. _7 = pxList_45->pxIndex;
  3282. if (pxEventListItem_42(D) == _7)
  3283. goto <bb 11>; [INV]
  3284. else
  3285. goto <bb 12>; [INV]
  3286. <bb 11> :
  3287. _8 = pxEventListItem_42(D)->pxPrevious;
  3288. pxList_45->pxIndex = _8;
  3289. <bb 12> :
  3290. pxEventListItem_42(D)->pvContainer = 0B;
  3291. _9 ={v} pxList_45->uxNumberOfItems;
  3292. _10 = _9 + 4294967295;
  3293. pxList_45->uxNumberOfItems ={v} _10;
  3294. pxList_51 = pxUnblockedTCB_44->xStateListItem.pvContainer;
  3295. _11 = pxUnblockedTCB_44->xStateListItem.pxNext;
  3296. _12 = pxUnblockedTCB_44->xStateListItem.pxPrevious;
  3297. _11->pxPrevious = _12;
  3298. _13 = pxUnblockedTCB_44->xStateListItem.pxPrevious;
  3299. _14 = pxUnblockedTCB_44->xStateListItem.pxNext;
  3300. _13->pxNext = _14;
  3301. _15 = pxList_51->pxIndex;
  3302. _16 = &pxUnblockedTCB_44->xStateListItem;
  3303. if (_15 == _16)
  3304. goto <bb 13>; [INV]
  3305. else
  3306. goto <bb 14>; [INV]
  3307. <bb 13> :
  3308. _17 = pxUnblockedTCB_44->xStateListItem.pxPrevious;
  3309. pxList_51->pxIndex = _17;
  3310. <bb 14> :
  3311. pxUnblockedTCB_44->xStateListItem.pvContainer = 0B;
  3312. _18 ={v} pxList_51->uxNumberOfItems;
  3313. _19 = _18 + 4294967295;
  3314. pxList_51->uxNumberOfItems ={v} _19;
  3315. _20 = pxUnblockedTCB_44->uxPriority;
  3316. uxTopReadyPriority.92_21 ={v} uxTopReadyPriority;
  3317. if (_20 > uxTopReadyPriority.92_21)
  3318. goto <bb 15>; [INV]
  3319. else
  3320. goto <bb 16>; [INV]
  3321. <bb 15> :
  3322. _22 = pxUnblockedTCB_44->uxPriority;
  3323. uxTopReadyPriority ={v} _22;
  3324. <bb 16> :
  3325. _23 = pxUnblockedTCB_44->uxPriority;
  3326. pxIndex_58 = pxReadyTasksLists[_23].pxIndex;
  3327. pxUnblockedTCB_44->xStateListItem.pxNext = pxIndex_58;
  3328. _24 = pxIndex_58->pxPrevious;
  3329. pxUnblockedTCB_44->xStateListItem.pxPrevious = _24;
  3330. _25 = pxIndex_58->pxPrevious;
  3331. _26 = &pxUnblockedTCB_44->xStateListItem;
  3332. _25->pxNext = _26;
  3333. _27 = &pxUnblockedTCB_44->xStateListItem;
  3334. pxIndex_58->pxPrevious = _27;
  3335. _28 = pxUnblockedTCB_44->uxPriority;
  3336. _29 = &pxReadyTasksLists[_28];
  3337. pxUnblockedTCB_44->xStateListItem.pvContainer = _29;
  3338. _30 = pxUnblockedTCB_44->uxPriority;
  3339. _31 ={v} pxReadyTasksLists[_30].uxNumberOfItems;
  3340. _32 = _31 + 1;
  3341. pxReadyTasksLists[_30].uxNumberOfItems ={v} _32;
  3342. _33 = pxUnblockedTCB_44->uxPriority;
  3343. pxCurrentTCB.93_34 ={v} pxCurrentTCB;
  3344. _35 = pxCurrentTCB.93_34->uxPriority;
  3345. if (_33 > _35)
  3346. goto <bb 17>; [INV]
  3347. else
  3348. goto <bb 18>; [INV]
  3349. <bb 17> :
  3350. xYieldPending ={v} 1;
  3351. <bb 18> :
  3352. return;
  3353. }
  3354. xTaskRemoveFromEventList (const struct List_t * const pxEventList)
  3355. {
  3356. uint32_t ulNewBASEPRI;
  3357. struct ListItem_t * const pxIndex;
  3358. struct ListItem_t * const pxIndex;
  3359. struct List_t * const pxList;
  3360. struct List_t * const pxList;
  3361. BaseType_t xReturn;
  3362. struct TCB_t * pxUnblockedTCB;
  3363. BaseType_t D.7930;
  3364. struct xLIST_ITEM * _1;
  3365. struct xLIST_ITEM * _2;
  3366. struct xLIST_ITEM * _3;
  3367. struct xLIST_ITEM * _4;
  3368. struct xLIST_ITEM * _5;
  3369. struct ListItem_t * _6;
  3370. struct ListItem_t * _7;
  3371. struct xLIST_ITEM * _8;
  3372. long unsigned int _9;
  3373. long unsigned int _10;
  3374. long unsigned int uxSchedulerSuspended.88_11;
  3375. struct xLIST_ITEM * _12;
  3376. struct xLIST_ITEM * _13;
  3377. struct xLIST_ITEM * _14;
  3378. struct xLIST_ITEM * _15;
  3379. struct ListItem_t * _16;
  3380. struct ListItem_t * _17;
  3381. struct xLIST_ITEM * _18;
  3382. long unsigned int _19;
  3383. long unsigned int _20;
  3384. long unsigned int _21;
  3385. long unsigned int uxTopReadyPriority.89_22;
  3386. long unsigned int _23;
  3387. long unsigned int _24;
  3388. struct xLIST_ITEM * _25;
  3389. struct xLIST_ITEM * _26;
  3390. struct ListItem_t * _27;
  3391. struct ListItem_t * _28;
  3392. long unsigned int _29;
  3393. struct List_t * _30;
  3394. long unsigned int _31;
  3395. long unsigned int _32;
  3396. long unsigned int _33;
  3397. struct xLIST_ITEM * _34;
  3398. struct xLIST_ITEM * _35;
  3399. struct ListItem_t * _36;
  3400. struct ListItem_t * _37;
  3401. long unsigned int _38;
  3402. long unsigned int _39;
  3403. long unsigned int _40;
  3404. struct TCB_t * pxCurrentTCB.90_41;
  3405. long unsigned int _42;
  3406. BaseType_t _82;
  3407. <bb 2> :
  3408. _1 = pxEventList_50(D)->xListEnd.pxNext;
  3409. pxUnblockedTCB_51 = _1->pvOwner;
  3410. if (pxUnblockedTCB_51 == 0B)
  3411. goto <bb 3>; [INV]
  3412. else
  3413. goto <bb 6>; [INV]
  3414. <bb 3> :
  3415. __asm__ __volatile__(" mov %0, %1
  3416. msr basepri, %0
  3417. isb
  3418. dsb
  3419. " : "=r" ulNewBASEPRI_83 : "i" 16 : "memory");
  3420. <bb 4> :
  3421. <bb 5> :
  3422. goto <bb 5>; [INV]
  3423. <bb 6> :
  3424. pxList_52 = pxUnblockedTCB_51->xEventListItem.pvContainer;
  3425. _2 = pxUnblockedTCB_51->xEventListItem.pxNext;
  3426. _3 = pxUnblockedTCB_51->xEventListItem.pxPrevious;
  3427. _2->pxPrevious = _3;
  3428. _4 = pxUnblockedTCB_51->xEventListItem.pxPrevious;
  3429. _5 = pxUnblockedTCB_51->xEventListItem.pxNext;
  3430. _4->pxNext = _5;
  3431. _6 = pxList_52->pxIndex;
  3432. _7 = &pxUnblockedTCB_51->xEventListItem;
  3433. if (_6 == _7)
  3434. goto <bb 7>; [INV]
  3435. else
  3436. goto <bb 8>; [INV]
  3437. <bb 7> :
  3438. _8 = pxUnblockedTCB_51->xEventListItem.pxPrevious;
  3439. pxList_52->pxIndex = _8;
  3440. <bb 8> :
  3441. pxUnblockedTCB_51->xEventListItem.pvContainer = 0B;
  3442. _9 ={v} pxList_52->uxNumberOfItems;
  3443. _10 = _9 + 4294967295;
  3444. pxList_52->uxNumberOfItems ={v} _10;
  3445. uxSchedulerSuspended.88_11 ={v} uxSchedulerSuspended;
  3446. if (uxSchedulerSuspended.88_11 == 0)
  3447. goto <bb 9>; [INV]
  3448. else
  3449. goto <bb 14>; [INV]
  3450. <bb 9> :
  3451. pxList_65 = pxUnblockedTCB_51->xStateListItem.pvContainer;
  3452. _12 = pxUnblockedTCB_51->xStateListItem.pxNext;
  3453. _13 = pxUnblockedTCB_51->xStateListItem.pxPrevious;
  3454. _12->pxPrevious = _13;
  3455. _14 = pxUnblockedTCB_51->xStateListItem.pxPrevious;
  3456. _15 = pxUnblockedTCB_51->xStateListItem.pxNext;
  3457. _14->pxNext = _15;
  3458. _16 = pxList_65->pxIndex;
  3459. _17 = &pxUnblockedTCB_51->xStateListItem;
  3460. if (_16 == _17)
  3461. goto <bb 10>; [INV]
  3462. else
  3463. goto <bb 11>; [INV]
  3464. <bb 10> :
  3465. _18 = pxUnblockedTCB_51->xStateListItem.pxPrevious;
  3466. pxList_65->pxIndex = _18;
  3467. <bb 11> :
  3468. pxUnblockedTCB_51->xStateListItem.pvContainer = 0B;
  3469. _19 ={v} pxList_65->uxNumberOfItems;
  3470. _20 = _19 + 4294967295;
  3471. pxList_65->uxNumberOfItems ={v} _20;
  3472. _21 = pxUnblockedTCB_51->uxPriority;
  3473. uxTopReadyPriority.89_22 ={v} uxTopReadyPriority;
  3474. if (_21 > uxTopReadyPriority.89_22)
  3475. goto <bb 12>; [INV]
  3476. else
  3477. goto <bb 13>; [INV]
  3478. <bb 12> :
  3479. _23 = pxUnblockedTCB_51->uxPriority;
  3480. uxTopReadyPriority ={v} _23;
  3481. <bb 13> :
  3482. _24 = pxUnblockedTCB_51->uxPriority;
  3483. pxIndex_72 = pxReadyTasksLists[_24].pxIndex;
  3484. pxUnblockedTCB_51->xStateListItem.pxNext = pxIndex_72;
  3485. _25 = pxIndex_72->pxPrevious;
  3486. pxUnblockedTCB_51->xStateListItem.pxPrevious = _25;
  3487. _26 = pxIndex_72->pxPrevious;
  3488. _27 = &pxUnblockedTCB_51->xStateListItem;
  3489. _26->pxNext = _27;
  3490. _28 = &pxUnblockedTCB_51->xStateListItem;
  3491. pxIndex_72->pxPrevious = _28;
  3492. _29 = pxUnblockedTCB_51->uxPriority;
  3493. _30 = &pxReadyTasksLists[_29];
  3494. pxUnblockedTCB_51->xStateListItem.pvContainer = _30;
  3495. _31 = pxUnblockedTCB_51->uxPriority;
  3496. _32 ={v} pxReadyTasksLists[_31].uxNumberOfItems;
  3497. _33 = _32 + 1;
  3498. pxReadyTasksLists[_31].uxNumberOfItems ={v} _33;
  3499. goto <bb 15>; [INV]
  3500. <bb 14> :
  3501. pxIndex_58 = xPendingReadyList.pxIndex;
  3502. pxUnblockedTCB_51->xEventListItem.pxNext = pxIndex_58;
  3503. _34 = pxIndex_58->pxPrevious;
  3504. pxUnblockedTCB_51->xEventListItem.pxPrevious = _34;
  3505. _35 = pxIndex_58->pxPrevious;
  3506. _36 = &pxUnblockedTCB_51->xEventListItem;
  3507. _35->pxNext = _36;
  3508. _37 = &pxUnblockedTCB_51->xEventListItem;
  3509. pxIndex_58->pxPrevious = _37;
  3510. pxUnblockedTCB_51->xEventListItem.pvContainer = &xPendingReadyList;
  3511. _38 ={v} xPendingReadyList.uxNumberOfItems;
  3512. _39 = _38 + 1;
  3513. xPendingReadyList.uxNumberOfItems ={v} _39;
  3514. <bb 15> :
  3515. _40 = pxUnblockedTCB_51->uxPriority;
  3516. pxCurrentTCB.90_41 ={v} pxCurrentTCB;
  3517. _42 = pxCurrentTCB.90_41->uxPriority;
  3518. if (_40 > _42)
  3519. goto <bb 16>; [INV]
  3520. else
  3521. goto <bb 17>; [INV]
  3522. <bb 16> :
  3523. xReturn_80 = 1;
  3524. xYieldPending ={v} 1;
  3525. goto <bb 18>; [INV]
  3526. <bb 17> :
  3527. xReturn_79 = 0;
  3528. <bb 18> :
  3529. # xReturn_43 = PHI <xReturn_80(16), xReturn_79(17)>
  3530. _82 = xReturn_43;
  3531. <bb 19> :
  3532. <L15>:
  3533. return _82;
  3534. }
  3535. vTaskPlaceOnEventListRestricted (struct List_t * const pxEventList, TickType_t xTicksToWait, const BaseType_t xWaitIndefinitely)
  3536. {
  3537. uint32_t ulNewBASEPRI;
  3538. struct ListItem_t * const pxIndex;
  3539. struct TCB_t * pxCurrentTCB.83_1;
  3540. struct TCB_t * pxCurrentTCB.84_2;
  3541. struct xLIST_ITEM * _3;
  3542. struct TCB_t * pxCurrentTCB.85_4;
  3543. struct xLIST_ITEM * _5;
  3544. struct ListItem_t * _6;
  3545. struct TCB_t * pxCurrentTCB.86_7;
  3546. struct ListItem_t * _8;
  3547. struct TCB_t * pxCurrentTCB.87_9;
  3548. long unsigned int _10;
  3549. long unsigned int _11;
  3550. <bb 2> :
  3551. if (pxEventList_13(D) == 0B)
  3552. goto <bb 3>; [INV]
  3553. else
  3554. goto <bb 6>; [INV]
  3555. <bb 3> :
  3556. __asm__ __volatile__(" mov %0, %1
  3557. msr basepri, %0
  3558. isb
  3559. dsb
  3560. " : "=r" ulNewBASEPRI_26 : "i" 16 : "memory");
  3561. <bb 4> :
  3562. <bb 5> :
  3563. goto <bb 5>; [INV]
  3564. <bb 6> :
  3565. pxIndex_15 = pxEventList_13(D)->pxIndex;
  3566. pxCurrentTCB.83_1 ={v} pxCurrentTCB;
  3567. pxCurrentTCB.83_1->xEventListItem.pxNext = pxIndex_15;
  3568. pxCurrentTCB.84_2 ={v} pxCurrentTCB;
  3569. _3 = pxIndex_15->pxPrevious;
  3570. pxCurrentTCB.84_2->xEventListItem.pxPrevious = _3;
  3571. pxCurrentTCB.85_4 ={v} pxCurrentTCB;
  3572. _5 = pxIndex_15->pxPrevious;
  3573. _6 = &pxCurrentTCB.85_4->xEventListItem;
  3574. _5->pxNext = _6;
  3575. pxCurrentTCB.86_7 ={v} pxCurrentTCB;
  3576. _8 = &pxCurrentTCB.86_7->xEventListItem;
  3577. pxIndex_15->pxPrevious = _8;
  3578. pxCurrentTCB.87_9 ={v} pxCurrentTCB;
  3579. pxCurrentTCB.87_9->xEventListItem.pvContainer = pxEventList_13(D);
  3580. _10 ={v} pxEventList_13(D)->uxNumberOfItems;
  3581. _11 = _10 + 1;
  3582. pxEventList_13(D)->uxNumberOfItems ={v} _11;
  3583. if (xWaitIndefinitely_22(D) != 0)
  3584. goto <bb 7>; [INV]
  3585. else
  3586. goto <bb 8>; [INV]
  3587. <bb 7> :
  3588. xTicksToWait_24 = 4294967295;
  3589. <bb 8> :
  3590. # xTicksToWait_12 = PHI <xTicksToWait_23(D)(6), xTicksToWait_24(7)>
  3591. prvAddCurrentTaskToDelayedList (xTicksToWait_12, xWaitIndefinitely_22(D));
  3592. return;
  3593. }
  3594. vTaskPlaceOnUnorderedEventList (struct List_t * pxEventList, const TickType_t xItemValue, const TickType_t xTicksToWait)
  3595. {
  3596. uint32_t ulNewBASEPRI;
  3597. uint32_t ulNewBASEPRI;
  3598. struct ListItem_t * const pxIndex;
  3599. long unsigned int uxSchedulerSuspended.76_1;
  3600. struct TCB_t * pxCurrentTCB.77_2;
  3601. long unsigned int _3;
  3602. struct TCB_t * pxCurrentTCB.78_4;
  3603. struct TCB_t * pxCurrentTCB.79_5;
  3604. struct xLIST_ITEM * _6;
  3605. struct TCB_t * pxCurrentTCB.80_7;
  3606. struct xLIST_ITEM * _8;
  3607. struct ListItem_t * _9;
  3608. struct TCB_t * pxCurrentTCB.81_10;
  3609. struct ListItem_t * _11;
  3610. struct TCB_t * pxCurrentTCB.82_12;
  3611. long unsigned int _13;
  3612. long unsigned int _14;
  3613. <bb 2> :
  3614. if (pxEventList_15(D) == 0B)
  3615. goto <bb 3>; [INV]
  3616. else
  3617. goto <bb 6>; [INV]
  3618. <bb 3> :
  3619. __asm__ __volatile__(" mov %0, %1
  3620. msr basepri, %0
  3621. isb
  3622. dsb
  3623. " : "=r" ulNewBASEPRI_28 : "i" 16 : "memory");
  3624. <bb 4> :
  3625. <bb 5> :
  3626. goto <bb 5>; [INV]
  3627. <bb 6> :
  3628. uxSchedulerSuspended.76_1 ={v} uxSchedulerSuspended;
  3629. if (uxSchedulerSuspended.76_1 == 0)
  3630. goto <bb 7>; [INV]
  3631. else
  3632. goto <bb 10>; [INV]
  3633. <bb 7> :
  3634. __asm__ __volatile__(" mov %0, %1
  3635. msr basepri, %0
  3636. isb
  3637. dsb
  3638. " : "=r" ulNewBASEPRI_29 : "i" 16 : "memory");
  3639. <bb 8> :
  3640. <bb 9> :
  3641. goto <bb 9>; [INV]
  3642. <bb 10> :
  3643. pxCurrentTCB.77_2 ={v} pxCurrentTCB;
  3644. _3 = xItemValue_17(D) | 2147483648;
  3645. pxCurrentTCB.77_2->xEventListItem.xItemValue = _3;
  3646. pxIndex_19 = pxEventList_15(D)->pxIndex;
  3647. pxCurrentTCB.78_4 ={v} pxCurrentTCB;
  3648. pxCurrentTCB.78_4->xEventListItem.pxNext = pxIndex_19;
  3649. pxCurrentTCB.79_5 ={v} pxCurrentTCB;
  3650. _6 = pxIndex_19->pxPrevious;
  3651. pxCurrentTCB.79_5->xEventListItem.pxPrevious = _6;
  3652. pxCurrentTCB.80_7 ={v} pxCurrentTCB;
  3653. _8 = pxIndex_19->pxPrevious;
  3654. _9 = &pxCurrentTCB.80_7->xEventListItem;
  3655. _8->pxNext = _9;
  3656. pxCurrentTCB.81_10 ={v} pxCurrentTCB;
  3657. _11 = &pxCurrentTCB.81_10->xEventListItem;
  3658. pxIndex_19->pxPrevious = _11;
  3659. pxCurrentTCB.82_12 ={v} pxCurrentTCB;
  3660. pxCurrentTCB.82_12->xEventListItem.pvContainer = pxEventList_15(D);
  3661. _13 ={v} pxEventList_15(D)->uxNumberOfItems;
  3662. _14 = _13 + 1;
  3663. pxEventList_15(D)->uxNumberOfItems ={v} _14;
  3664. prvAddCurrentTaskToDelayedList (xTicksToWait_26(D), 1);
  3665. return;
  3666. }
  3667. vTaskPlaceOnEventList (struct List_t * const pxEventList, const TickType_t xTicksToWait)
  3668. {
  3669. uint32_t ulNewBASEPRI;
  3670. struct TCB_t * pxCurrentTCB.75_1;
  3671. struct ListItem_t * _2;
  3672. <bb 2> :
  3673. if (pxEventList_3(D) == 0B)
  3674. goto <bb 3>; [INV]
  3675. else
  3676. goto <bb 6>; [INV]
  3677. <bb 3> :
  3678. __asm__ __volatile__(" mov %0, %1
  3679. msr basepri, %0
  3680. isb
  3681. dsb
  3682. " : "=r" ulNewBASEPRI_8 : "i" 16 : "memory");
  3683. <bb 4> :
  3684. <bb 5> :
  3685. goto <bb 5>; [INV]
  3686. <bb 6> :
  3687. pxCurrentTCB.75_1 ={v} pxCurrentTCB;
  3688. _2 = &pxCurrentTCB.75_1->xEventListItem;
  3689. vListInsert (pxEventList_3(D), _2);
  3690. prvAddCurrentTaskToDelayedList (xTicksToWait_6(D), 1);
  3691. return;
  3692. }
  3693. __attribute__((used))
  3694. vTaskSwitchContext ()
  3695. {
  3696. uint32_t ulNewBASEPRI;
  3697. struct List_t * const pxConstList;
  3698. UBaseType_t uxTopPriority;
  3699. long unsigned int uxSchedulerSuspended.74_1;
  3700. long unsigned int _2;
  3701. struct ListItem_t * _3;
  3702. struct xLIST_ITEM * _4;
  3703. struct ListItem_t * _5;
  3704. struct MiniListItem_t * _6;
  3705. struct ListItem_t * _7;
  3706. struct xLIST_ITEM * _8;
  3707. struct ListItem_t * _9;
  3708. void * _10;
  3709. <bb 2> :
  3710. uxSchedulerSuspended.74_1 ={v} uxSchedulerSuspended;
  3711. if (uxSchedulerSuspended.74_1 != 0)
  3712. goto <bb 3>; [INV]
  3713. else
  3714. goto <bb 4>; [INV]
  3715. <bb 3> :
  3716. xYieldPending ={v} 1;
  3717. goto <bb 14>; [INV]
  3718. <bb 4> :
  3719. xYieldPending ={v} 0;
  3720. uxTopPriority_16 ={v} uxTopReadyPriority;
  3721. goto <bb 10>; [INV]
  3722. <bb 5> :
  3723. if (uxTopPriority_11 == 0)
  3724. goto <bb 6>; [INV]
  3725. else
  3726. goto <bb 9>; [INV]
  3727. <bb 6> :
  3728. __asm__ __volatile__(" mov %0, %1
  3729. msr basepri, %0
  3730. isb
  3731. dsb
  3732. " : "=r" ulNewBASEPRI_24 : "i" 16 : "memory");
  3733. <bb 7> :
  3734. <bb 8> :
  3735. goto <bb 8>; [INV]
  3736. <bb 9> :
  3737. uxTopPriority_22 = uxTopPriority_11 + 4294967295;
  3738. <bb 10> :
  3739. # uxTopPriority_11 = PHI <uxTopPriority_16(4), uxTopPriority_22(9)>
  3740. _2 ={v} pxReadyTasksLists[uxTopPriority_11].uxNumberOfItems;
  3741. if (_2 == 0)
  3742. goto <bb 5>; [INV]
  3743. else
  3744. goto <bb 11>; [INV]
  3745. <bb 11> :
  3746. pxConstList_17 = &pxReadyTasksLists[uxTopPriority_11];
  3747. _3 = pxConstList_17->pxIndex;
  3748. _4 = _3->pxNext;
  3749. pxConstList_17->pxIndex = _4;
  3750. _5 = pxConstList_17->pxIndex;
  3751. _6 = &pxConstList_17->xListEnd;
  3752. if (_5 == _6)
  3753. goto <bb 12>; [INV]
  3754. else
  3755. goto <bb 13>; [INV]
  3756. <bb 12> :
  3757. _7 = pxConstList_17->pxIndex;
  3758. _8 = _7->pxNext;
  3759. pxConstList_17->pxIndex = _8;
  3760. <bb 13> :
  3761. _9 = pxConstList_17->pxIndex;
  3762. _10 = _9->pvOwner;
  3763. pxCurrentTCB ={v} _10;
  3764. uxTopReadyPriority ={v} uxTopPriority_11;
  3765. <bb 14> :
  3766. return;
  3767. }
  3768. xTaskIncrementTick ()
  3769. {
  3770. uint32_t ulNewBASEPRI;
  3771. struct ListItem_t * const pxIndex;
  3772. struct List_t * const pxList;
  3773. struct List_t * const pxList;
  3774. struct List_t * pxTemp;
  3775. const TickType_t xConstTickCount;
  3776. BaseType_t xSwitchRequired;
  3777. TickType_t xItemValue;
  3778. struct TCB_t * pxTCB;
  3779. BaseType_t D.7897;
  3780. long unsigned int uxSchedulerSuspended.61_1;
  3781. long unsigned int xTickCount.62_2;
  3782. struct List_t * pxDelayedTaskList.63_3;
  3783. long unsigned int _4;
  3784. struct List_t * pxOverflowDelayedTaskList.64_5;
  3785. long int xNumOfOverflows.65_6;
  3786. long int _7;
  3787. long unsigned int xNextTaskUnblockTime.66_8;
  3788. struct List_t * pxDelayedTaskList.67_9;
  3789. long unsigned int _10;
  3790. struct List_t * pxDelayedTaskList.68_11;
  3791. struct xLIST_ITEM * _12;
  3792. struct xLIST_ITEM * _13;
  3793. struct xLIST_ITEM * _14;
  3794. struct xLIST_ITEM * _15;
  3795. struct xLIST_ITEM * _16;
  3796. struct ListItem_t * _17;
  3797. struct ListItem_t * _18;
  3798. struct xLIST_ITEM * _19;
  3799. long unsigned int _20;
  3800. long unsigned int _21;
  3801. struct xLIST * _22;
  3802. struct xLIST_ITEM * _23;
  3803. struct xLIST_ITEM * _24;
  3804. struct xLIST_ITEM * _25;
  3805. struct xLIST_ITEM * _26;
  3806. struct ListItem_t * _27;
  3807. struct ListItem_t * _28;
  3808. struct xLIST_ITEM * _29;
  3809. long unsigned int _30;
  3810. long unsigned int _31;
  3811. long unsigned int _32;
  3812. long unsigned int uxTopReadyPriority.69_33;
  3813. long unsigned int _34;
  3814. long unsigned int _35;
  3815. struct xLIST_ITEM * _36;
  3816. struct xLIST_ITEM * _37;
  3817. struct ListItem_t * _38;
  3818. struct ListItem_t * _39;
  3819. long unsigned int _40;
  3820. struct List_t * _41;
  3821. long unsigned int _42;
  3822. long unsigned int _43;
  3823. long unsigned int _44;
  3824. long unsigned int _45;
  3825. struct TCB_t * pxCurrentTCB.70_46;
  3826. long unsigned int _47;
  3827. struct TCB_t * pxCurrentTCB.71_48;
  3828. long unsigned int _49;
  3829. long unsigned int _50;
  3830. long int xYieldPending.72_51;
  3831. long unsigned int xPendedTicks.73_52;
  3832. long unsigned int _53;
  3833. BaseType_t _104;
  3834. <bb 2> :
  3835. xSwitchRequired_67 = 0;
  3836. uxSchedulerSuspended.61_1 ={v} uxSchedulerSuspended;
  3837. if (uxSchedulerSuspended.61_1 == 0)
  3838. goto <bb 3>; [INV]
  3839. else
  3840. goto <bb 29>; [INV]
  3841. <bb 3> :
  3842. xTickCount.62_2 ={v} xTickCount;
  3843. xConstTickCount_70 = xTickCount.62_2 + 1;
  3844. xTickCount ={v} xConstTickCount_70;
  3845. if (xConstTickCount_70 == 0)
  3846. goto <bb 4>; [INV]
  3847. else
  3848. goto <bb 9>; [INV]
  3849. <bb 4> :
  3850. pxDelayedTaskList.63_3 ={v} pxDelayedTaskList;
  3851. _4 ={v} pxDelayedTaskList.63_3->uxNumberOfItems;
  3852. if (_4 != 0)
  3853. goto <bb 5>; [INV]
  3854. else
  3855. goto <bb 8>; [INV]
  3856. <bb 5> :
  3857. __asm__ __volatile__(" mov %0, %1
  3858. msr basepri, %0
  3859. isb
  3860. dsb
  3861. " : "=r" ulNewBASEPRI_105 : "i" 16 : "memory");
  3862. <bb 6> :
  3863. <bb 7> :
  3864. goto <bb 7>; [INV]
  3865. <bb 8> :
  3866. pxTemp_72 ={v} pxDelayedTaskList;
  3867. pxOverflowDelayedTaskList.64_5 ={v} pxOverflowDelayedTaskList;
  3868. pxDelayedTaskList ={v} pxOverflowDelayedTaskList.64_5;
  3869. pxOverflowDelayedTaskList ={v} pxTemp_72;
  3870. xNumOfOverflows.65_6 ={v} xNumOfOverflows;
  3871. _7 = xNumOfOverflows.65_6 + 1;
  3872. xNumOfOverflows ={v} _7;
  3873. prvResetNextTaskUnblockTime ();
  3874. <bb 9> :
  3875. xNextTaskUnblockTime.66_8 ={v} xNextTaskUnblockTime;
  3876. if (xConstTickCount_70 >= xNextTaskUnblockTime.66_8)
  3877. goto <bb 10>; [INV]
  3878. else
  3879. goto <bb 25>; [INV]
  3880. <bb 10> :
  3881. # xSwitchRequired_54 = PHI <xSwitchRequired_67(9), xSwitchRequired_55(24)>
  3882. pxDelayedTaskList.67_9 ={v} pxDelayedTaskList;
  3883. _10 ={v} pxDelayedTaskList.67_9->uxNumberOfItems;
  3884. if (_10 == 0)
  3885. goto <bb 11>; [INV]
  3886. else
  3887. goto <bb 12>; [INV]
  3888. <bb 11> :
  3889. xNextTaskUnblockTime ={v} 4294967295;
  3890. goto <bb 25>; [INV]
  3891. <bb 12> :
  3892. pxDelayedTaskList.68_11 ={v} pxDelayedTaskList;
  3893. _12 = pxDelayedTaskList.68_11->xListEnd.pxNext;
  3894. pxTCB_77 = _12->pvOwner;
  3895. xItemValue_78 = pxTCB_77->xStateListItem.xItemValue;
  3896. if (xConstTickCount_70 < xItemValue_78)
  3897. goto <bb 13>; [INV]
  3898. else
  3899. goto <bb 14>; [INV]
  3900. <bb 13> :
  3901. xNextTaskUnblockTime ={v} xItemValue_78;
  3902. goto <bb 25>; [INV]
  3903. <bb 14> :
  3904. pxList_79 = pxTCB_77->xStateListItem.pvContainer;
  3905. _13 = pxTCB_77->xStateListItem.pxNext;
  3906. _14 = pxTCB_77->xStateListItem.pxPrevious;
  3907. _13->pxPrevious = _14;
  3908. _15 = pxTCB_77->xStateListItem.pxPrevious;
  3909. _16 = pxTCB_77->xStateListItem.pxNext;
  3910. _15->pxNext = _16;
  3911. _17 = pxList_79->pxIndex;
  3912. _18 = &pxTCB_77->xStateListItem;
  3913. if (_17 == _18)
  3914. goto <bb 15>; [INV]
  3915. else
  3916. goto <bb 16>; [INV]
  3917. <bb 15> :
  3918. _19 = pxTCB_77->xStateListItem.pxPrevious;
  3919. pxList_79->pxIndex = _19;
  3920. <bb 16> :
  3921. pxTCB_77->xStateListItem.pvContainer = 0B;
  3922. _20 ={v} pxList_79->uxNumberOfItems;
  3923. _21 = _20 + 4294967295;
  3924. pxList_79->uxNumberOfItems ={v} _21;
  3925. _22 = pxTCB_77->xEventListItem.pvContainer;
  3926. if (_22 != 0B)
  3927. goto <bb 17>; [INV]
  3928. else
  3929. goto <bb 20>; [INV]
  3930. <bb 17> :
  3931. pxList_85 = pxTCB_77->xEventListItem.pvContainer;
  3932. _23 = pxTCB_77->xEventListItem.pxNext;
  3933. _24 = pxTCB_77->xEventListItem.pxPrevious;
  3934. _23->pxPrevious = _24;
  3935. _25 = pxTCB_77->xEventListItem.pxPrevious;
  3936. _26 = pxTCB_77->xEventListItem.pxNext;
  3937. _25->pxNext = _26;
  3938. _27 = pxList_85->pxIndex;
  3939. _28 = &pxTCB_77->xEventListItem;
  3940. if (_27 == _28)
  3941. goto <bb 18>; [INV]
  3942. else
  3943. goto <bb 19>; [INV]
  3944. <bb 18> :
  3945. _29 = pxTCB_77->xEventListItem.pxPrevious;
  3946. pxList_85->pxIndex = _29;
  3947. <bb 19> :
  3948. pxTCB_77->xEventListItem.pvContainer = 0B;
  3949. _30 ={v} pxList_85->uxNumberOfItems;
  3950. _31 = _30 + 4294967295;
  3951. pxList_85->uxNumberOfItems ={v} _31;
  3952. <bb 20> :
  3953. _32 = pxTCB_77->uxPriority;
  3954. uxTopReadyPriority.69_33 ={v} uxTopReadyPriority;
  3955. if (_32 > uxTopReadyPriority.69_33)
  3956. goto <bb 21>; [INV]
  3957. else
  3958. goto <bb 22>; [INV]
  3959. <bb 21> :
  3960. _34 = pxTCB_77->uxPriority;
  3961. uxTopReadyPriority ={v} _34;
  3962. <bb 22> :
  3963. _35 = pxTCB_77->uxPriority;
  3964. pxIndex_92 = pxReadyTasksLists[_35].pxIndex;
  3965. pxTCB_77->xStateListItem.pxNext = pxIndex_92;
  3966. _36 = pxIndex_92->pxPrevious;
  3967. pxTCB_77->xStateListItem.pxPrevious = _36;
  3968. _37 = pxIndex_92->pxPrevious;
  3969. _38 = &pxTCB_77->xStateListItem;
  3970. _37->pxNext = _38;
  3971. _39 = &pxTCB_77->xStateListItem;
  3972. pxIndex_92->pxPrevious = _39;
  3973. _40 = pxTCB_77->uxPriority;
  3974. _41 = &pxReadyTasksLists[_40];
  3975. pxTCB_77->xStateListItem.pvContainer = _41;
  3976. _42 = pxTCB_77->uxPriority;
  3977. _43 ={v} pxReadyTasksLists[_42].uxNumberOfItems;
  3978. _44 = _43 + 1;
  3979. pxReadyTasksLists[_42].uxNumberOfItems ={v} _44;
  3980. _45 = pxTCB_77->uxPriority;
  3981. pxCurrentTCB.70_46 ={v} pxCurrentTCB;
  3982. _47 = pxCurrentTCB.70_46->uxPriority;
  3983. if (_45 >= _47)
  3984. goto <bb 23>; [INV]
  3985. else
  3986. goto <bb 24>; [INV]
  3987. <bb 23> :
  3988. xSwitchRequired_99 = 1;
  3989. <bb 24> :
  3990. # xSwitchRequired_55 = PHI <xSwitchRequired_54(22), xSwitchRequired_99(23)>
  3991. goto <bb 10>; [INV]
  3992. <bb 25> :
  3993. # xSwitchRequired_56 = PHI <xSwitchRequired_67(9), xSwitchRequired_54(11), xSwitchRequired_54(13)>
  3994. pxCurrentTCB.71_48 ={v} pxCurrentTCB;
  3995. _49 = pxCurrentTCB.71_48->uxPriority;
  3996. _50 ={v} pxReadyTasksLists[_49].uxNumberOfItems;
  3997. if (_50 > 1)
  3998. goto <bb 26>; [INV]
  3999. else
  4000. goto <bb 27>; [INV]
  4001. <bb 26> :
  4002. xSwitchRequired_102 = 1;
  4003. <bb 27> :
  4004. # xSwitchRequired_57 = PHI <xSwitchRequired_56(25), xSwitchRequired_102(26)>
  4005. xYieldPending.72_51 ={v} xYieldPending;
  4006. if (xYieldPending.72_51 != 0)
  4007. goto <bb 28>; [INV]
  4008. else
  4009. goto <bb 30>; [INV]
  4010. <bb 28> :
  4011. xSwitchRequired_103 = 1;
  4012. goto <bb 30>; [INV]
  4013. <bb 29> :
  4014. xPendedTicks.73_52 ={v} xPendedTicks;
  4015. _53 = xPendedTicks.73_52 + 1;
  4016. xPendedTicks ={v} _53;
  4017. <bb 30> :
  4018. # xSwitchRequired_58 = PHI <xSwitchRequired_103(28), xSwitchRequired_67(29), xSwitchRequired_57(27)>
  4019. _104 = xSwitchRequired_58;
  4020. <bb 31> :
  4021. <L35>:
  4022. return _104;
  4023. }
  4024. xTaskAbortDelay (struct tskTaskControlBlock * xTask)
  4025. {
  4026. uint32_t ulNewBASEPRI;
  4027. struct ListItem_t * const pxIndex;
  4028. BaseType_t xReturn;
  4029. struct TCB_t * pxTCB;
  4030. BaseType_t D.7863;
  4031. <unnamed type> _1;
  4032. struct ListItem_t * _2;
  4033. struct xLIST * _3;
  4034. struct ListItem_t * _4;
  4035. long unsigned int _5;
  4036. long unsigned int uxTopReadyPriority.59_6;
  4037. long unsigned int _7;
  4038. long unsigned int _8;
  4039. struct xLIST_ITEM * _9;
  4040. struct xLIST_ITEM * _10;
  4041. struct ListItem_t * _11;
  4042. struct ListItem_t * _12;
  4043. long unsigned int _13;
  4044. struct List_t * _14;
  4045. long unsigned int _15;
  4046. long unsigned int _16;
  4047. long unsigned int _17;
  4048. long unsigned int _18;
  4049. struct TCB_t * pxCurrentTCB.60_19;
  4050. long unsigned int _20;
  4051. BaseType_t _47;
  4052. <bb 2> :
  4053. pxTCB_26 = xTask_25(D);
  4054. if (pxTCB_26 == 0B)
  4055. goto <bb 3>; [INV]
  4056. else
  4057. goto <bb 6>; [INV]
  4058. <bb 3> :
  4059. __asm__ __volatile__(" mov %0, %1
  4060. msr basepri, %0
  4061. isb
  4062. dsb
  4063. " : "=r" ulNewBASEPRI_48 : "i" 16 : "memory");
  4064. <bb 4> :
  4065. <bb 5> :
  4066. goto <bb 5>; [INV]
  4067. <bb 6> :
  4068. vTaskSuspendAll ();
  4069. _1 = eTaskGetState (xTask_25(D));
  4070. if (_1 == 2)
  4071. goto <bb 7>; [INV]
  4072. else
  4073. goto <bb 13>; [INV]
  4074. <bb 7> :
  4075. xReturn_31 = 1;
  4076. _2 = &pxTCB_26->xStateListItem;
  4077. uxListRemove (_2);
  4078. vPortEnterCritical ();
  4079. _3 = pxTCB_26->xEventListItem.pvContainer;
  4080. if (_3 != 0B)
  4081. goto <bb 8>; [INV]
  4082. else
  4083. goto <bb 9>; [INV]
  4084. <bb 8> :
  4085. _4 = &pxTCB_26->xEventListItem;
  4086. uxListRemove (_4);
  4087. pxTCB_26->ucDelayAborted = 1;
  4088. <bb 9> :
  4089. vPortExitCritical ();
  4090. _5 = pxTCB_26->uxPriority;
  4091. uxTopReadyPriority.59_6 ={v} uxTopReadyPriority;
  4092. if (_5 > uxTopReadyPriority.59_6)
  4093. goto <bb 10>; [INV]
  4094. else
  4095. goto <bb 11>; [INV]
  4096. <bb 10> :
  4097. _7 = pxTCB_26->uxPriority;
  4098. uxTopReadyPriority ={v} _7;
  4099. <bb 11> :
  4100. _8 = pxTCB_26->uxPriority;
  4101. pxIndex_38 = pxReadyTasksLists[_8].pxIndex;
  4102. pxTCB_26->xStateListItem.pxNext = pxIndex_38;
  4103. _9 = pxIndex_38->pxPrevious;
  4104. pxTCB_26->xStateListItem.pxPrevious = _9;
  4105. _10 = pxIndex_38->pxPrevious;
  4106. _11 = &pxTCB_26->xStateListItem;
  4107. _10->pxNext = _11;
  4108. _12 = &pxTCB_26->xStateListItem;
  4109. pxIndex_38->pxPrevious = _12;
  4110. _13 = pxTCB_26->uxPriority;
  4111. _14 = &pxReadyTasksLists[_13];
  4112. pxTCB_26->xStateListItem.pvContainer = _14;
  4113. _15 = pxTCB_26->uxPriority;
  4114. _16 ={v} pxReadyTasksLists[_15].uxNumberOfItems;
  4115. _17 = _16 + 1;
  4116. pxReadyTasksLists[_15].uxNumberOfItems ={v} _17;
  4117. _18 = pxTCB_26->uxPriority;
  4118. pxCurrentTCB.60_19 ={v} pxCurrentTCB;
  4119. _20 = pxCurrentTCB.60_19->uxPriority;
  4120. if (_18 > _20)
  4121. goto <bb 12>; [INV]
  4122. else
  4123. goto <bb 14>; [INV]
  4124. <bb 12> :
  4125. xYieldPending ={v} 1;
  4126. goto <bb 14>; [INV]
  4127. <bb 13> :
  4128. xReturn_30 = 0;
  4129. <bb 14> :
  4130. # xReturn_21 = PHI <xReturn_31(12), xReturn_30(13), xReturn_31(11)>
  4131. xTaskResumeAll ();
  4132. _47 = xReturn_21;
  4133. <bb 15> :
  4134. <L14>:
  4135. return _47;
  4136. }
  4137. xTaskCatchUpTicks (TickType_t xTicksToCatchUp)
  4138. {
  4139. uint32_t ulNewBASEPRI;
  4140. BaseType_t xYieldOccurred;
  4141. BaseType_t D.7848;
  4142. long unsigned int uxSchedulerSuspended.57_1;
  4143. long unsigned int xPendedTicks.58_2;
  4144. long unsigned int _3;
  4145. BaseType_t _10;
  4146. <bb 2> :
  4147. uxSchedulerSuspended.57_1 ={v} uxSchedulerSuspended;
  4148. if (uxSchedulerSuspended.57_1 != 0)
  4149. goto <bb 3>; [INV]
  4150. else
  4151. goto <bb 6>; [INV]
  4152. <bb 3> :
  4153. __asm__ __volatile__(" mov %0, %1
  4154. msr basepri, %0
  4155. isb
  4156. dsb
  4157. " : "=r" ulNewBASEPRI_11 : "i" 16 : "memory");
  4158. <bb 4> :
  4159. <bb 5> :
  4160. goto <bb 5>; [INV]
  4161. <bb 6> :
  4162. vTaskSuspendAll ();
  4163. xPendedTicks.58_2 ={v} xPendedTicks;
  4164. _3 = xTicksToCatchUp_6(D) + xPendedTicks.58_2;
  4165. xPendedTicks ={v} _3;
  4166. xYieldOccurred_9 = xTaskResumeAll ();
  4167. _10 = xYieldOccurred_9;
  4168. <bb 7> :
  4169. <L3>:
  4170. return _10;
  4171. }
  4172. uxTaskGetSystemState (struct TaskStatus_t * const pxTaskStatusArray, const UBaseType_t uxArraySize, uint32_t * const pulTotalRunTime)
  4173. {
  4174. UBaseType_t uxQueue;
  4175. UBaseType_t uxTask;
  4176. UBaseType_t D.7844;
  4177. long unsigned int D.7840;
  4178. long unsigned int D.7839;
  4179. long unsigned int D.7838;
  4180. long unsigned int D.7837;
  4181. long unsigned int D.7836;
  4182. long unsigned int uxCurrentNumberOfTasks.54_1;
  4183. long unsigned int _2;
  4184. struct TaskStatus_t * _3;
  4185. struct List_t * _4;
  4186. long unsigned int _5;
  4187. struct TaskStatus_t * _6;
  4188. struct List_t * pxDelayedTaskList.55_7;
  4189. long unsigned int _8;
  4190. struct TaskStatus_t * _9;
  4191. struct List_t * pxOverflowDelayedTaskList.56_10;
  4192. long unsigned int _11;
  4193. struct TaskStatus_t * _12;
  4194. long unsigned int _13;
  4195. struct TaskStatus_t * _14;
  4196. long unsigned int _28;
  4197. long unsigned int _31;
  4198. long unsigned int _34;
  4199. long unsigned int _37;
  4200. long unsigned int _40;
  4201. UBaseType_t _45;
  4202. <bb 2> :
  4203. uxTask_20 = 0;
  4204. uxQueue_21 = 5;
  4205. vTaskSuspendAll ();
  4206. uxCurrentNumberOfTasks.54_1 ={v} uxCurrentNumberOfTasks;
  4207. if (uxArraySize_24(D) >= uxCurrentNumberOfTasks.54_1)
  4208. goto <bb 3>; [INV]
  4209. else
  4210. goto <bb 6>; [INV]
  4211. <bb 3> :
  4212. # uxTask_15 = PHI <uxTask_20(2), uxTask_29(3)>
  4213. # uxQueue_17 = PHI <uxQueue_21(2), uxQueue_25(3)>
  4214. uxQueue_25 = uxQueue_17 + 4294967295;
  4215. _2 = uxTask_15 * 36;
  4216. _3 = pxTaskStatusArray_26(D) + _2;
  4217. _4 = &pxReadyTasksLists[uxQueue_25];
  4218. _28 = prvListTasksWithinSingleList (_3, _4, 1);
  4219. uxTask_29 = _28 + uxTask_15;
  4220. if (uxQueue_25 != 0)
  4221. goto <bb 3>; [INV]
  4222. else
  4223. goto <bb 4>; [INV]
  4224. <bb 4> :
  4225. _5 = uxTask_29 * 36;
  4226. _6 = pxTaskStatusArray_26(D) + _5;
  4227. pxDelayedTaskList.55_7 ={v} pxDelayedTaskList;
  4228. _31 = prvListTasksWithinSingleList (_6, pxDelayedTaskList.55_7, 2);
  4229. uxTask_32 = _31 + uxTask_29;
  4230. _8 = uxTask_32 * 36;
  4231. _9 = pxTaskStatusArray_26(D) + _8;
  4232. pxOverflowDelayedTaskList.56_10 ={v} pxOverflowDelayedTaskList;
  4233. _34 = prvListTasksWithinSingleList (_9, pxOverflowDelayedTaskList.56_10, 2);
  4234. uxTask_35 = _34 + uxTask_32;
  4235. _11 = uxTask_35 * 36;
  4236. _12 = pxTaskStatusArray_26(D) + _11;
  4237. _37 = prvListTasksWithinSingleList (_12, &xTasksWaitingTermination, 4);
  4238. uxTask_38 = _37 + uxTask_35;
  4239. _13 = uxTask_38 * 36;
  4240. _14 = pxTaskStatusArray_26(D) + _13;
  4241. _40 = prvListTasksWithinSingleList (_14, &xSuspendedTaskList, 3);
  4242. uxTask_41 = _40 + uxTask_38;
  4243. if (pulTotalRunTime_42(D) != 0B)
  4244. goto <bb 5>; [INV]
  4245. else
  4246. goto <bb 6>; [INV]
  4247. <bb 5> :
  4248. *pulTotalRunTime_42(D) = 0;
  4249. <bb 6> :
  4250. # uxTask_16 = PHI <uxTask_20(2), uxTask_41(5), uxTask_41(4)>
  4251. xTaskResumeAll ();
  4252. _45 = uxTask_16;
  4253. <bb 7> :
  4254. <L7>:
  4255. return _45;
  4256. }
  4257. xTaskGetHandle (const char * pcNameToQuery)
  4258. {
  4259. uint32_t ulNewBASEPRI;
  4260. struct TCB_t * pxTCB;
  4261. UBaseType_t uxQueue;
  4262. struct tskTaskControlBlock * D.7832;
  4263. unsigned int _1;
  4264. struct List_t * _2;
  4265. struct List_t * pxDelayedTaskList.52_3;
  4266. struct List_t * pxOverflowDelayedTaskList.53_4;
  4267. struct tskTaskControlBlock * _31;
  4268. <bb 2> :
  4269. uxQueue_15 = 5;
  4270. _1 = strlen (pcNameToQuery_17(D));
  4271. if (_1 > 9)
  4272. goto <bb 3>; [INV]
  4273. else
  4274. goto <bb 6>; [INV]
  4275. <bb 3> :
  4276. __asm__ __volatile__(" mov %0, %1
  4277. msr basepri, %0
  4278. isb
  4279. dsb
  4280. " : "=r" ulNewBASEPRI_32 : "i" 16 : "memory");
  4281. <bb 4> :
  4282. <bb 5> :
  4283. goto <bb 5>; [INV]
  4284. <bb 6> :
  4285. vTaskSuspendAll ();
  4286. <bb 7> :
  4287. # uxQueue_5 = PHI <uxQueue_15(6), uxQueue_19(9)>
  4288. uxQueue_19 = uxQueue_5 + 4294967295;
  4289. _2 = &pxReadyTasksLists[uxQueue_19];
  4290. pxTCB_21 = prvSearchForNameWithinSingleList (_2, pcNameToQuery_17(D));
  4291. if (pxTCB_21 != 0B)
  4292. goto <bb 8>; [INV]
  4293. else
  4294. goto <bb 9>; [INV]
  4295. <bb 8> :
  4296. goto <bb 10>; [INV]
  4297. <bb 9> :
  4298. if (uxQueue_19 != 0)
  4299. goto <bb 7>; [INV]
  4300. else
  4301. goto <bb 10>; [INV]
  4302. <bb 10> :
  4303. if (pxTCB_21 == 0B)
  4304. goto <bb 11>; [INV]
  4305. else
  4306. goto <bb 12>; [INV]
  4307. <bb 11> :
  4308. pxDelayedTaskList.52_3 ={v} pxDelayedTaskList;
  4309. pxTCB_23 = prvSearchForNameWithinSingleList (pxDelayedTaskList.52_3, pcNameToQuery_17(D));
  4310. <bb 12> :
  4311. # pxTCB_6 = PHI <pxTCB_21(10), pxTCB_23(11)>
  4312. if (pxTCB_6 == 0B)
  4313. goto <bb 13>; [INV]
  4314. else
  4315. goto <bb 14>; [INV]
  4316. <bb 13> :
  4317. pxOverflowDelayedTaskList.53_4 ={v} pxOverflowDelayedTaskList;
  4318. pxTCB_25 = prvSearchForNameWithinSingleList (pxOverflowDelayedTaskList.53_4, pcNameToQuery_17(D));
  4319. <bb 14> :
  4320. # pxTCB_7 = PHI <pxTCB_6(12), pxTCB_25(13)>
  4321. if (pxTCB_7 == 0B)
  4322. goto <bb 15>; [INV]
  4323. else
  4324. goto <bb 16>; [INV]
  4325. <bb 15> :
  4326. pxTCB_27 = prvSearchForNameWithinSingleList (&xSuspendedTaskList, pcNameToQuery_17(D));
  4327. <bb 16> :
  4328. # pxTCB_8 = PHI <pxTCB_7(14), pxTCB_27(15)>
  4329. if (pxTCB_8 == 0B)
  4330. goto <bb 17>; [INV]
  4331. else
  4332. goto <bb 18>; [INV]
  4333. <bb 17> :
  4334. pxTCB_29 = prvSearchForNameWithinSingleList (&xTasksWaitingTermination, pcNameToQuery_17(D));
  4335. <bb 18> :
  4336. # pxTCB_9 = PHI <pxTCB_8(16), pxTCB_29(17)>
  4337. xTaskResumeAll ();
  4338. _31 = pxTCB_9;
  4339. <bb 19> :
  4340. <L15>:
  4341. return _31;
  4342. }
  4343. prvSearchForNameWithinSingleList (struct List_t * pxList, const char * pcNameToQuery)
  4344. {
  4345. struct List_t * const pxConstList;
  4346. struct List_t * const pxConstList;
  4347. BaseType_t xBreakLoop;
  4348. char cNextChar;
  4349. UBaseType_t x;
  4350. struct TCB_t * pxReturn;
  4351. struct TCB_t * pxFirstTCB;
  4352. struct TCB_t * pxNextTCB;
  4353. struct TCB_t * D.7818;
  4354. long unsigned int _1;
  4355. struct ListItem_t * _2;
  4356. struct xLIST_ITEM * _3;
  4357. struct ListItem_t * _4;
  4358. struct MiniListItem_t * _5;
  4359. struct ListItem_t * _6;
  4360. struct xLIST_ITEM * _7;
  4361. struct ListItem_t * _8;
  4362. struct ListItem_t * _9;
  4363. struct xLIST_ITEM * _10;
  4364. struct ListItem_t * _11;
  4365. struct MiniListItem_t * _12;
  4366. struct ListItem_t * _13;
  4367. struct xLIST_ITEM * _14;
  4368. struct ListItem_t * _15;
  4369. const char * _16;
  4370. char _17;
  4371. struct TCB_t * _49;
  4372. <bb 2> :
  4373. pxReturn_30 = 0B;
  4374. _1 ={v} pxList_32(D)->uxNumberOfItems;
  4375. if (_1 != 0)
  4376. goto <bb 3>; [INV]
  4377. else
  4378. goto <bb 21>; [INV]
  4379. <bb 3> :
  4380. pxConstList_33 = pxList_32(D);
  4381. _2 = pxConstList_33->pxIndex;
  4382. _3 = _2->pxNext;
  4383. pxConstList_33->pxIndex = _3;
  4384. _4 = pxConstList_33->pxIndex;
  4385. _5 = &pxConstList_33->xListEnd;
  4386. if (_4 == _5)
  4387. goto <bb 4>; [INV]
  4388. else
  4389. goto <bb 5>; [INV]
  4390. <bb 4> :
  4391. _6 = pxConstList_33->pxIndex;
  4392. _7 = _6->pxNext;
  4393. pxConstList_33->pxIndex = _7;
  4394. <bb 5> :
  4395. _8 = pxConstList_33->pxIndex;
  4396. pxFirstTCB_36 = _8->pvOwner;
  4397. <bb 6> :
  4398. # pxReturn_18 = PHI <pxReturn_30(5), pxReturn_21(19)>
  4399. pxConstList_37 = pxList_32(D);
  4400. _9 = pxConstList_37->pxIndex;
  4401. _10 = _9->pxNext;
  4402. pxConstList_37->pxIndex = _10;
  4403. _11 = pxConstList_37->pxIndex;
  4404. _12 = &pxConstList_37->xListEnd;
  4405. if (_11 == _12)
  4406. goto <bb 7>; [INV]
  4407. else
  4408. goto <bb 8>; [INV]
  4409. <bb 7> :
  4410. _13 = pxConstList_37->pxIndex;
  4411. _14 = _13->pxNext;
  4412. pxConstList_37->pxIndex = _14;
  4413. <bb 8> :
  4414. _15 = pxConstList_37->pxIndex;
  4415. pxNextTCB_40 = _15->pvOwner;
  4416. xBreakLoop_41 = 0;
  4417. x_42 = 0;
  4418. goto <bb 16>; [INV]
  4419. <bb 9> :
  4420. cNextChar_43 = pxNextTCB_40->pcTaskName[x_23];
  4421. _16 = pcNameToQuery_44(D) + x_23;
  4422. _17 = *_16;
  4423. if (cNextChar_43 != _17)
  4424. goto <bb 10>; [INV]
  4425. else
  4426. goto <bb 11>; [INV]
  4427. <bb 10> :
  4428. xBreakLoop_47 = 1;
  4429. goto <bb 13>; [INV]
  4430. <bb 11> :
  4431. if (cNextChar_43 == 0)
  4432. goto <bb 12>; [INV]
  4433. else
  4434. goto <bb 13>; [INV]
  4435. <bb 12> :
  4436. pxReturn_45 = pxNextTCB_40;
  4437. xBreakLoop_46 = 1;
  4438. <bb 13> :
  4439. # pxReturn_19 = PHI <pxReturn_20(10), pxReturn_20(11), pxReturn_45(12)>
  4440. # xBreakLoop_24 = PHI <xBreakLoop_47(10), xBreakLoop_25(11), xBreakLoop_46(12)>
  4441. if (xBreakLoop_24 != 0)
  4442. goto <bb 14>; [INV]
  4443. else
  4444. goto <bb 15>; [INV]
  4445. <bb 14> :
  4446. goto <bb 17>; [INV]
  4447. <bb 15> :
  4448. x_48 = x_23 + 1;
  4449. <bb 16> :
  4450. # pxReturn_20 = PHI <pxReturn_18(8), pxReturn_19(15)>
  4451. # x_23 = PHI <x_42(8), x_48(15)>
  4452. # xBreakLoop_25 = PHI <xBreakLoop_41(8), xBreakLoop_24(15)>
  4453. if (x_23 <= 9)
  4454. goto <bb 9>; [INV]
  4455. else
  4456. goto <bb 17>; [INV]
  4457. <bb 17> :
  4458. # pxReturn_21 = PHI <pxReturn_19(14), pxReturn_20(16)>
  4459. if (pxReturn_21 != 0B)
  4460. goto <bb 18>; [INV]
  4461. else
  4462. goto <bb 19>; [INV]
  4463. <bb 18> :
  4464. goto <bb 20>; [INV]
  4465. <bb 19> :
  4466. if (pxNextTCB_40 != pxFirstTCB_36)
  4467. goto <bb 6>; [INV]
  4468. else
  4469. goto <bb 20>; [INV]
  4470. <bb 20> :
  4471. <bb 21> :
  4472. # pxReturn_22 = PHI <pxReturn_30(2), pxReturn_21(20)>
  4473. _49 = pxReturn_22;
  4474. <bb 22> :
  4475. <L22>:
  4476. return _49;
  4477. }
  4478. pcTaskGetName (struct tskTaskControlBlock * xTaskToQuery)
  4479. {
  4480. uint32_t ulNewBASEPRI;
  4481. struct TCB_t * pxTCB;
  4482. char * D.7799;
  4483. struct TCB_t * iftmp.51;
  4484. struct TCB_t * iftmp.51_1;
  4485. struct TCB_t * iftmp.51_3;
  4486. struct TCB_t * iftmp.51_5;
  4487. char * _7;
  4488. <bb 2> :
  4489. if (xTaskToQuery_2(D) == 0B)
  4490. goto <bb 3>; [INV]
  4491. else
  4492. goto <bb 4>; [INV]
  4493. <bb 3> :
  4494. iftmp.51_5 ={v} pxCurrentTCB;
  4495. goto <bb 5>; [INV]
  4496. <bb 4> :
  4497. iftmp.51_3 = xTaskToQuery_2(D);
  4498. <bb 5> :
  4499. # iftmp.51_1 = PHI <iftmp.51_5(3), iftmp.51_3(4)>
  4500. pxTCB_6 = iftmp.51_1;
  4501. if (pxTCB_6 == 0B)
  4502. goto <bb 6>; [INV]
  4503. else
  4504. goto <bb 9>; [INV]
  4505. <bb 6> :
  4506. __asm__ __volatile__(" mov %0, %1
  4507. msr basepri, %0
  4508. isb
  4509. dsb
  4510. " : "=r" ulNewBASEPRI_8 : "i" 16 : "memory");
  4511. <bb 7> :
  4512. <bb 8> :
  4513. goto <bb 8>; [INV]
  4514. <bb 9> :
  4515. _7 = &pxTCB_6->pcTaskName[0];
  4516. <bb 10> :
  4517. <L6>:
  4518. return _7;
  4519. }
  4520. uxTaskGetNumberOfTasks ()
  4521. {
  4522. UBaseType_t D.7791;
  4523. UBaseType_t _2;
  4524. <bb 2> :
  4525. _2 ={v} uxCurrentNumberOfTasks;
  4526. <bb 3> :
  4527. <L0>:
  4528. return _2;
  4529. }
  4530. xTaskGetTickCountFromISR ()
  4531. {
  4532. UBaseType_t uxSavedInterruptStatus;
  4533. TickType_t xReturn;
  4534. TickType_t D.7789;
  4535. TickType_t _5;
  4536. <bb 2> :
  4537. vPortValidateInterruptPriority ();
  4538. uxSavedInterruptStatus_3 = 0;
  4539. xReturn_4 ={v} xTickCount;
  4540. _5 = xReturn_4;
  4541. <bb 3> :
  4542. <L0>:
  4543. return _5;
  4544. }
  4545. xTaskGetTickCount ()
  4546. {
  4547. TickType_t xTicks;
  4548. TickType_t D.7787;
  4549. TickType_t _3;
  4550. <bb 2> :
  4551. xTicks_2 ={v} xTickCount;
  4552. _3 = xTicks_2;
  4553. <bb 3> :
  4554. <L0>:
  4555. return _3;
  4556. }
  4557. xTaskResumeAll ()
  4558. {
  4559. uint32_t ulNewBASEPRI;
  4560. TickType_t xPendedCounts;
  4561. struct ListItem_t * const pxIndex;
  4562. struct List_t * const pxList;
  4563. struct List_t * const pxList;
  4564. BaseType_t xAlreadyYielded;
  4565. struct TCB_t * pxTCB;
  4566. BaseType_t D.7785;
  4567. long unsigned int uxSchedulerSuspended.44_1;
  4568. long unsigned int uxSchedulerSuspended.45_2;
  4569. long unsigned int _3;
  4570. long unsigned int uxSchedulerSuspended.46_4;
  4571. long unsigned int uxCurrentNumberOfTasks.47_5;
  4572. struct xLIST_ITEM * _6;
  4573. struct xLIST_ITEM * _7;
  4574. struct xLIST_ITEM * _8;
  4575. struct xLIST_ITEM * _9;
  4576. struct xLIST_ITEM * _10;
  4577. struct ListItem_t * _11;
  4578. struct ListItem_t * _12;
  4579. struct xLIST_ITEM * _13;
  4580. long unsigned int _14;
  4581. long unsigned int _15;
  4582. struct xLIST_ITEM * _16;
  4583. struct xLIST_ITEM * _17;
  4584. struct xLIST_ITEM * _18;
  4585. struct xLIST_ITEM * _19;
  4586. struct ListItem_t * _20;
  4587. struct ListItem_t * _21;
  4588. struct xLIST_ITEM * _22;
  4589. long unsigned int _23;
  4590. long unsigned int _24;
  4591. long unsigned int _25;
  4592. long unsigned int uxTopReadyPriority.48_26;
  4593. long unsigned int _27;
  4594. long unsigned int _28;
  4595. struct xLIST_ITEM * _29;
  4596. struct xLIST_ITEM * _30;
  4597. struct ListItem_t * _31;
  4598. struct ListItem_t * _32;
  4599. long unsigned int _33;
  4600. struct List_t * _34;
  4601. long unsigned int _35;
  4602. long unsigned int _36;
  4603. long unsigned int _37;
  4604. long unsigned int _38;
  4605. struct TCB_t * pxCurrentTCB.49_39;
  4606. long unsigned int _40;
  4607. long unsigned int _41;
  4608. long int _42;
  4609. long int xYieldPending.50_43;
  4610. volatile uint32_t * _44;
  4611. BaseType_t _96;
  4612. <bb 2> :
  4613. pxTCB_57 = 0B;
  4614. xAlreadyYielded_58 = 0;
  4615. uxSchedulerSuspended.44_1 ={v} uxSchedulerSuspended;
  4616. if (uxSchedulerSuspended.44_1 == 0)
  4617. goto <bb 3>; [INV]
  4618. else
  4619. goto <bb 6>; [INV]
  4620. <bb 3> :
  4621. __asm__ __volatile__(" mov %0, %1
  4622. msr basepri, %0
  4623. isb
  4624. dsb
  4625. " : "=r" ulNewBASEPRI_97 : "i" 16 : "memory");
  4626. <bb 4> :
  4627. <bb 5> :
  4628. goto <bb 5>; [INV]
  4629. <bb 6> :
  4630. vPortEnterCritical ();
  4631. uxSchedulerSuspended.45_2 ={v} uxSchedulerSuspended;
  4632. _3 = uxSchedulerSuspended.45_2 + 4294967295;
  4633. uxSchedulerSuspended ={v} _3;
  4634. uxSchedulerSuspended.46_4 ={v} uxSchedulerSuspended;
  4635. if (uxSchedulerSuspended.46_4 == 0)
  4636. goto <bb 7>; [INV]
  4637. else
  4638. goto <bb 27>; [INV]
  4639. <bb 7> :
  4640. uxCurrentNumberOfTasks.47_5 ={v} uxCurrentNumberOfTasks;
  4641. if (uxCurrentNumberOfTasks.47_5 != 0)
  4642. goto <bb 8>; [INV]
  4643. else
  4644. goto <bb 27>; [INV]
  4645. <bb 8> :
  4646. goto <bb 17>; [INV]
  4647. <bb 9> :
  4648. _6 = xPendingReadyList.xListEnd.pxNext;
  4649. pxTCB_72 = _6->pvOwner;
  4650. pxList_73 = pxTCB_72->xEventListItem.pvContainer;
  4651. _7 = pxTCB_72->xEventListItem.pxNext;
  4652. _8 = pxTCB_72->xEventListItem.pxPrevious;
  4653. _7->pxPrevious = _8;
  4654. _9 = pxTCB_72->xEventListItem.pxPrevious;
  4655. _10 = pxTCB_72->xEventListItem.pxNext;
  4656. _9->pxNext = _10;
  4657. _11 = pxList_73->pxIndex;
  4658. _12 = &pxTCB_72->xEventListItem;
  4659. if (_11 == _12)
  4660. goto <bb 10>; [INV]
  4661. else
  4662. goto <bb 11>; [INV]
  4663. <bb 10> :
  4664. _13 = pxTCB_72->xEventListItem.pxPrevious;
  4665. pxList_73->pxIndex = _13;
  4666. <bb 11> :
  4667. pxTCB_72->xEventListItem.pvContainer = 0B;
  4668. _14 ={v} pxList_73->uxNumberOfItems;
  4669. _15 = _14 + 4294967295;
  4670. pxList_73->uxNumberOfItems ={v} _15;
  4671. __asm__ __volatile__("" : : : "memory");
  4672. pxList_80 = pxTCB_72->xStateListItem.pvContainer;
  4673. _16 = pxTCB_72->xStateListItem.pxNext;
  4674. _17 = pxTCB_72->xStateListItem.pxPrevious;
  4675. _16->pxPrevious = _17;
  4676. _18 = pxTCB_72->xStateListItem.pxPrevious;
  4677. _19 = pxTCB_72->xStateListItem.pxNext;
  4678. _18->pxNext = _19;
  4679. _20 = pxList_80->pxIndex;
  4680. _21 = &pxTCB_72->xStateListItem;
  4681. if (_20 == _21)
  4682. goto <bb 12>; [INV]
  4683. else
  4684. goto <bb 13>; [INV]
  4685. <bb 12> :
  4686. _22 = pxTCB_72->xStateListItem.pxPrevious;
  4687. pxList_80->pxIndex = _22;
  4688. <bb 13> :
  4689. pxTCB_72->xStateListItem.pvContainer = 0B;
  4690. _23 ={v} pxList_80->uxNumberOfItems;
  4691. _24 = _23 + 4294967295;
  4692. pxList_80->uxNumberOfItems ={v} _24;
  4693. _25 = pxTCB_72->uxPriority;
  4694. uxTopReadyPriority.48_26 ={v} uxTopReadyPriority;
  4695. if (_25 > uxTopReadyPriority.48_26)
  4696. goto <bb 14>; [INV]
  4697. else
  4698. goto <bb 15>; [INV]
  4699. <bb 14> :
  4700. _27 = pxTCB_72->uxPriority;
  4701. uxTopReadyPriority ={v} _27;
  4702. <bb 15> :
  4703. _28 = pxTCB_72->uxPriority;
  4704. pxIndex_87 = pxReadyTasksLists[_28].pxIndex;
  4705. pxTCB_72->xStateListItem.pxNext = pxIndex_87;
  4706. _29 = pxIndex_87->pxPrevious;
  4707. pxTCB_72->xStateListItem.pxPrevious = _29;
  4708. _30 = pxIndex_87->pxPrevious;
  4709. _31 = &pxTCB_72->xStateListItem;
  4710. _30->pxNext = _31;
  4711. _32 = &pxTCB_72->xStateListItem;
  4712. pxIndex_87->pxPrevious = _32;
  4713. _33 = pxTCB_72->uxPriority;
  4714. _34 = &pxReadyTasksLists[_33];
  4715. pxTCB_72->xStateListItem.pvContainer = _34;
  4716. _35 = pxTCB_72->uxPriority;
  4717. _36 ={v} pxReadyTasksLists[_35].uxNumberOfItems;
  4718. _37 = _36 + 1;
  4719. pxReadyTasksLists[_35].uxNumberOfItems ={v} _37;
  4720. _38 = pxTCB_72->uxPriority;
  4721. pxCurrentTCB.49_39 ={v} pxCurrentTCB;
  4722. _40 = pxCurrentTCB.49_39->uxPriority;
  4723. if (_38 >= _40)
  4724. goto <bb 16>; [INV]
  4725. else
  4726. goto <bb 17>; [INV]
  4727. <bb 16> :
  4728. xYieldPending ={v} 1;
  4729. <bb 17> :
  4730. # pxTCB_45 = PHI <pxTCB_57(8), pxTCB_72(15), pxTCB_72(16)>
  4731. _41 ={v} xPendingReadyList.uxNumberOfItems;
  4732. if (_41 != 0)
  4733. goto <bb 9>; [INV]
  4734. else
  4735. goto <bb 18>; [INV]
  4736. <bb 18> :
  4737. if (pxTCB_45 != 0B)
  4738. goto <bb 19>; [INV]
  4739. else
  4740. goto <bb 20>; [INV]
  4741. <bb 19> :
  4742. prvResetNextTaskUnblockTime ();
  4743. <bb 20> :
  4744. xPendedCounts_63 ={v} xPendedTicks;
  4745. if (xPendedCounts_63 != 0)
  4746. goto <bb 21>; [INV]
  4747. else
  4748. goto <bb 25>; [INV]
  4749. <bb 21> :
  4750. # xPendedCounts_47 = PHI <xPendedCounts_63(20), xPendedCounts_66(23)>
  4751. _42 = xTaskIncrementTick ();
  4752. if (_42 != 0)
  4753. goto <bb 22>; [INV]
  4754. else
  4755. goto <bb 23>; [INV]
  4756. <bb 22> :
  4757. xYieldPending ={v} 1;
  4758. <bb 23> :
  4759. xPendedCounts_66 = xPendedCounts_47 + 4294967295;
  4760. if (xPendedCounts_66 != 0)
  4761. goto <bb 21>; [INV]
  4762. else
  4763. goto <bb 24>; [INV]
  4764. <bb 24> :
  4765. xPendedTicks ={v} 0;
  4766. <bb 25> :
  4767. xYieldPending.50_43 ={v} xYieldPending;
  4768. if (xYieldPending.50_43 != 0)
  4769. goto <bb 26>; [INV]
  4770. else
  4771. goto <bb 27>; [INV]
  4772. <bb 26> :
  4773. xAlreadyYielded_68 = 1;
  4774. _44 = 3758157060B;
  4775. *_44 ={v} 268435456;
  4776. __asm__ __volatile__("dsb" : : : "memory");
  4777. __asm__ __volatile__("isb");
  4778. <bb 27> :
  4779. # xAlreadyYielded_46 = PHI <xAlreadyYielded_58(6), xAlreadyYielded_58(25), xAlreadyYielded_58(7), xAlreadyYielded_68(26)>
  4780. vPortExitCritical ();
  4781. _96 = xAlreadyYielded_46;
  4782. <bb 28> :
  4783. <L33>:
  4784. return _96;
  4785. }
  4786. vTaskSuspendAll ()
  4787. {
  4788. long unsigned int uxSchedulerSuspended.43_1;
  4789. long unsigned int _2;
  4790. <bb 2> :
  4791. uxSchedulerSuspended.43_1 ={v} uxSchedulerSuspended;
  4792. _2 = uxSchedulerSuspended.43_1 + 1;
  4793. uxSchedulerSuspended ={v} _2;
  4794. __asm__ __volatile__("" : : : "memory");
  4795. return;
  4796. }
  4797. vTaskEndScheduler ()
  4798. {
  4799. uint32_t ulNewBASEPRI;
  4800. <bb 2> :
  4801. __asm__ __volatile__(" mov %0, %1
  4802. msr basepri, %0
  4803. isb
  4804. dsb
  4805. " : "=r" ulNewBASEPRI_4 : "i" 16 : "memory");
  4806. <bb 3> :
  4807. xSchedulerRunning ={v} 0;
  4808. vPortEndScheduler ();
  4809. return;
  4810. }
  4811. vTaskStartScheduler ()
  4812. {
  4813. uint32_t ulNewBASEPRI;
  4814. uint32_t ulNewBASEPRI;
  4815. BaseType_t xReturn;
  4816. long unsigned int vol.42;
  4817. long int _1;
  4818. long unsigned int vol.42_14;
  4819. <bb 2> :
  4820. xReturn_7 = xTaskCreate (prvIdleTask, "IDLE", 90, 0B, 0, &xIdleTaskHandle);
  4821. if (xReturn_7 == 1)
  4822. goto <bb 3>; [INV]
  4823. else
  4824. goto <bb 4>; [INV]
  4825. <bb 3> :
  4826. xReturn_9 = xTimerCreateTimerTask ();
  4827. <bb 4> :
  4828. # xReturn_2 = PHI <xReturn_7(2), xReturn_9(3)>
  4829. if (xReturn_2 == 1)
  4830. goto <bb 5>; [INV]
  4831. else
  4832. goto <bb 7>; [INV]
  4833. <bb 5> :
  4834. __asm__ __volatile__(" mov %0, %1
  4835. msr basepri, %0
  4836. isb
  4837. dsb
  4838. " : "=r" ulNewBASEPRI_15 : "i" 16 : "memory");
  4839. <bb 6> :
  4840. xNextTaskUnblockTime ={v} 4294967295;
  4841. xSchedulerRunning ={v} 1;
  4842. xTickCount ={v} 0;
  4843. _1 = xPortStartScheduler ();
  4844. goto <bb 11>; [INV]
  4845. <bb 7> :
  4846. if (xReturn_2 == -1)
  4847. goto <bb 8>; [INV]
  4848. else
  4849. goto <bb 11>; [INV]
  4850. <bb 8> :
  4851. __asm__ __volatile__(" mov %0, %1
  4852. msr basepri, %0
  4853. isb
  4854. dsb
  4855. " : "=r" ulNewBASEPRI_16 : "i" 16 : "memory");
  4856. <bb 9> :
  4857. <bb 10> :
  4858. goto <bb 10>; [INV]
  4859. <bb 11> :
  4860. vol.42_14 ={v} uxTopUsedPriority;
  4861. return;
  4862. }
  4863. xTaskResumeFromISR (struct tskTaskControlBlock * xTaskToResume)
  4864. {
  4865. uint32_t ulNewMaskValue;
  4866. uint32_t D.8324;
  4867. uint32_t ulOriginalBASEPRI;
  4868. uint32_t ulNewBASEPRI;
  4869. uint32_t D.8323;
  4870. uint32_t ulNewBASEPRI;
  4871. struct ListItem_t * const pxIndex;
  4872. UBaseType_t uxSavedInterruptStatus;
  4873. struct TCB_t * const pxTCB;
  4874. BaseType_t xYieldRequired;
  4875. BaseType_t D.7744;
  4876. long int _1;
  4877. long unsigned int uxSchedulerSuspended.39_2;
  4878. long unsigned int _3;
  4879. struct TCB_t * pxCurrentTCB.40_4;
  4880. long unsigned int _5;
  4881. struct ListItem_t * _6;
  4882. long unsigned int _7;
  4883. long unsigned int uxTopReadyPriority.41_8;
  4884. long unsigned int _9;
  4885. long unsigned int _10;
  4886. struct xLIST_ITEM * _11;
  4887. struct xLIST_ITEM * _12;
  4888. struct ListItem_t * _13;
  4889. struct ListItem_t * _14;
  4890. long unsigned int _15;
  4891. struct List_t * _16;
  4892. long unsigned int _17;
  4893. long unsigned int _18;
  4894. long unsigned int _19;
  4895. struct ListItem_t * _20;
  4896. BaseType_t _45;
  4897. long unsigned int _49;
  4898. <bb 2> :
  4899. xYieldRequired_26 = 0;
  4900. pxTCB_28 = xTaskToResume_27(D);
  4901. if (xTaskToResume_27(D) == 0B)
  4902. goto <bb 3>; [INV]
  4903. else
  4904. goto <bb 6>; [INV]
  4905. <bb 3> :
  4906. __asm__ __volatile__(" mov %0, %1
  4907. msr basepri, %0
  4908. isb
  4909. dsb
  4910. " : "=r" ulNewBASEPRI_46 : "i" 16 : "memory");
  4911. <bb 4> :
  4912. <bb 5> :
  4913. goto <bb 5>; [INV]
  4914. <bb 6> :
  4915. vPortValidateInterruptPriority ();
  4916. __asm__ __volatile__(" mrs %0, basepri
  4917. mov %1, %2
  4918. msr basepri, %1
  4919. isb
  4920. dsb
  4921. " : "=r" ulOriginalBASEPRI_47, "=r" ulNewBASEPRI_48 : "i" 16 : "memory");
  4922. _49 = ulOriginalBASEPRI_47;
  4923. <bb 7> :
  4924. <L15>:
  4925. _52 = _49;
  4926. <bb 8> :
  4927. uxSavedInterruptStatus_31 = _52;
  4928. _1 = prvTaskIsTaskSuspended (pxTCB_28);
  4929. if (_1 != 0)
  4930. goto <bb 9>; [INV]
  4931. else
  4932. goto <bb 16>; [INV]
  4933. <bb 9> :
  4934. uxSchedulerSuspended.39_2 ={v} uxSchedulerSuspended;
  4935. if (uxSchedulerSuspended.39_2 == 0)
  4936. goto <bb 10>; [INV]
  4937. else
  4938. goto <bb 15>; [INV]
  4939. <bb 10> :
  4940. _3 = pxTCB_28->uxPriority;
  4941. pxCurrentTCB.40_4 ={v} pxCurrentTCB;
  4942. _5 = pxCurrentTCB.40_4->uxPriority;
  4943. if (_3 >= _5)
  4944. goto <bb 11>; [INV]
  4945. else
  4946. goto <bb 12>; [INV]
  4947. <bb 11> :
  4948. xYieldRequired_34 = 1;
  4949. xYieldPending ={v} 1;
  4950. <bb 12> :
  4951. # xYieldRequired_21 = PHI <xYieldRequired_26(10), xYieldRequired_34(11)>
  4952. _6 = &pxTCB_28->xStateListItem;
  4953. uxListRemove (_6);
  4954. _7 = pxTCB_28->uxPriority;
  4955. uxTopReadyPriority.41_8 ={v} uxTopReadyPriority;
  4956. if (_7 > uxTopReadyPriority.41_8)
  4957. goto <bb 13>; [INV]
  4958. else
  4959. goto <bb 14>; [INV]
  4960. <bb 13> :
  4961. _9 = pxTCB_28->uxPriority;
  4962. uxTopReadyPriority ={v} _9;
  4963. <bb 14> :
  4964. _10 = pxTCB_28->uxPriority;
  4965. pxIndex_38 = pxReadyTasksLists[_10].pxIndex;
  4966. pxTCB_28->xStateListItem.pxNext = pxIndex_38;
  4967. _11 = pxIndex_38->pxPrevious;
  4968. pxTCB_28->xStateListItem.pxPrevious = _11;
  4969. _12 = pxIndex_38->pxPrevious;
  4970. _13 = &pxTCB_28->xStateListItem;
  4971. _12->pxNext = _13;
  4972. _14 = &pxTCB_28->xStateListItem;
  4973. pxIndex_38->pxPrevious = _14;
  4974. _15 = pxTCB_28->uxPriority;
  4975. _16 = &pxReadyTasksLists[_15];
  4976. pxTCB_28->xStateListItem.pvContainer = _16;
  4977. _17 = pxTCB_28->uxPriority;
  4978. _18 ={v} pxReadyTasksLists[_17].uxNumberOfItems;
  4979. _19 = _18 + 1;
  4980. pxReadyTasksLists[_17].uxNumberOfItems ={v} _19;
  4981. goto <bb 16>; [INV]
  4982. <bb 15> :
  4983. _20 = &pxTCB_28->xEventListItem;
  4984. vListInsertEnd (&xPendingReadyList, _20);
  4985. <bb 16> :
  4986. # xYieldRequired_22 = PHI <xYieldRequired_26(8), xYieldRequired_26(15), xYieldRequired_21(14)>
  4987. ulNewMaskValue_50 = uxSavedInterruptStatus_31;
  4988. __asm__ __volatile__(" msr basepri, %0 " : : "r" ulNewMaskValue_50 : "memory");
  4989. <bb 17> :
  4990. _45 = xYieldRequired_22;
  4991. <bb 18> :
  4992. <L14>:
  4993. return _45;
  4994. }
  4995. vTaskResume (struct tskTaskControlBlock * xTaskToResume)
  4996. {
  4997. uint32_t ulNewBASEPRI;
  4998. struct ListItem_t * const pxIndex;
  4999. struct TCB_t * const pxTCB;
  5000. struct TCB_t * pxCurrentTCB.36_1;
  5001. long int _2;
  5002. struct ListItem_t * _3;
  5003. long unsigned int _4;
  5004. long unsigned int uxTopReadyPriority.37_5;
  5005. long unsigned int _6;
  5006. long unsigned int _7;
  5007. struct xLIST_ITEM * _8;
  5008. struct xLIST_ITEM * _9;
  5009. struct ListItem_t * _10;
  5010. struct ListItem_t * _11;
  5011. long unsigned int _12;
  5012. struct List_t * _13;
  5013. long unsigned int _14;
  5014. long unsigned int _15;
  5015. long unsigned int _16;
  5016. long unsigned int _17;
  5017. struct TCB_t * pxCurrentTCB.38_18;
  5018. long unsigned int _19;
  5019. volatile uint32_t * _20;
  5020. <bb 2> :
  5021. pxTCB_25 = xTaskToResume_24(D);
  5022. if (xTaskToResume_24(D) == 0B)
  5023. goto <bb 3>; [INV]
  5024. else
  5025. goto <bb 6>; [INV]
  5026. <bb 3> :
  5027. __asm__ __volatile__(" mov %0, %1
  5028. msr basepri, %0
  5029. isb
  5030. dsb
  5031. " : "=r" ulNewBASEPRI_42 : "i" 16 : "memory");
  5032. <bb 4> :
  5033. <bb 5> :
  5034. goto <bb 5>; [INV]
  5035. <bb 6> :
  5036. pxCurrentTCB.36_1 ={v} pxCurrentTCB;
  5037. if (pxTCB_25 != pxCurrentTCB.36_1)
  5038. goto <bb 7>; [INV]
  5039. else
  5040. goto <bb 14>; [INV]
  5041. <bb 7> :
  5042. if (pxTCB_25 != 0B)
  5043. goto <bb 8>; [INV]
  5044. else
  5045. goto <bb 14>; [INV]
  5046. <bb 8> :
  5047. vPortEnterCritical ();
  5048. _2 = prvTaskIsTaskSuspended (pxTCB_25);
  5049. if (_2 != 0)
  5050. goto <bb 9>; [INV]
  5051. else
  5052. goto <bb 13>; [INV]
  5053. <bb 9> :
  5054. _3 = &pxTCB_25->xStateListItem;
  5055. uxListRemove (_3);
  5056. _4 = pxTCB_25->uxPriority;
  5057. uxTopReadyPriority.37_5 ={v} uxTopReadyPriority;
  5058. if (_4 > uxTopReadyPriority.37_5)
  5059. goto <bb 10>; [INV]
  5060. else
  5061. goto <bb 11>; [INV]
  5062. <bb 10> :
  5063. _6 = pxTCB_25->uxPriority;
  5064. uxTopReadyPriority ={v} _6;
  5065. <bb 11> :
  5066. _7 = pxTCB_25->uxPriority;
  5067. pxIndex_31 = pxReadyTasksLists[_7].pxIndex;
  5068. pxTCB_25->xStateListItem.pxNext = pxIndex_31;
  5069. _8 = pxIndex_31->pxPrevious;
  5070. pxTCB_25->xStateListItem.pxPrevious = _8;
  5071. _9 = pxIndex_31->pxPrevious;
  5072. _10 = &pxTCB_25->xStateListItem;
  5073. _9->pxNext = _10;
  5074. _11 = &pxTCB_25->xStateListItem;
  5075. pxIndex_31->pxPrevious = _11;
  5076. _12 = pxTCB_25->uxPriority;
  5077. _13 = &pxReadyTasksLists[_12];
  5078. pxTCB_25->xStateListItem.pvContainer = _13;
  5079. _14 = pxTCB_25->uxPriority;
  5080. _15 ={v} pxReadyTasksLists[_14].uxNumberOfItems;
  5081. _16 = _15 + 1;
  5082. pxReadyTasksLists[_14].uxNumberOfItems ={v} _16;
  5083. _17 = pxTCB_25->uxPriority;
  5084. pxCurrentTCB.38_18 ={v} pxCurrentTCB;
  5085. _19 = pxCurrentTCB.38_18->uxPriority;
  5086. if (_17 >= _19)
  5087. goto <bb 12>; [INV]
  5088. else
  5089. goto <bb 13>; [INV]
  5090. <bb 12> :
  5091. _20 = 3758157060B;
  5092. *_20 ={v} 268435456;
  5093. __asm__ __volatile__("dsb" : : : "memory");
  5094. __asm__ __volatile__("isb");
  5095. <bb 13> :
  5096. vPortExitCritical ();
  5097. <bb 14> :
  5098. return;
  5099. }
  5100. prvTaskIsTaskSuspended (struct tskTaskControlBlock * const xTask)
  5101. {
  5102. uint32_t ulNewBASEPRI;
  5103. const struct TCB_t * const pxTCB;
  5104. BaseType_t xReturn;
  5105. BaseType_t D.7714;
  5106. struct xLIST * _1;
  5107. struct xLIST * _2;
  5108. struct xLIST * _3;
  5109. BaseType_t _10;
  5110. <bb 2> :
  5111. xReturn_5 = 0;
  5112. pxTCB_7 = xTask_6(D);
  5113. if (xTask_6(D) == 0B)
  5114. goto <bb 3>; [INV]
  5115. else
  5116. goto <bb 6>; [INV]
  5117. <bb 3> :
  5118. __asm__ __volatile__(" mov %0, %1
  5119. msr basepri, %0
  5120. isb
  5121. dsb
  5122. " : "=r" ulNewBASEPRI_11 : "i" 16 : "memory");
  5123. <bb 4> :
  5124. <bb 5> :
  5125. goto <bb 5>; [INV]
  5126. <bb 6> :
  5127. _1 = pxTCB_7->xStateListItem.pvContainer;
  5128. if (_1 == &xSuspendedTaskList)
  5129. goto <bb 7>; [INV]
  5130. else
  5131. goto <bb 10>; [INV]
  5132. <bb 7> :
  5133. _2 = pxTCB_7->xEventListItem.pvContainer;
  5134. if (_2 != &xPendingReadyList)
  5135. goto <bb 8>; [INV]
  5136. else
  5137. goto <bb 10>; [INV]
  5138. <bb 8> :
  5139. _3 = pxTCB_7->xEventListItem.pvContainer;
  5140. if (_3 == 0B)
  5141. goto <bb 9>; [INV]
  5142. else
  5143. goto <bb 10>; [INV]
  5144. <bb 9> :
  5145. xReturn_9 = 1;
  5146. <bb 10> :
  5147. # xReturn_4 = PHI <xReturn_5(6), xReturn_9(9), xReturn_5(7), xReturn_5(8)>
  5148. _10 = xReturn_4;
  5149. <bb 11> :
  5150. <L12>:
  5151. return _10;
  5152. }
  5153. vTaskSuspend (struct tskTaskControlBlock * xTaskToSuspend)
  5154. {
  5155. uint32_t ulNewBASEPRI;
  5156. BaseType_t x;
  5157. struct TCB_t * pxTCB;
  5158. struct TCB_t * iftmp.30;
  5159. struct ListItem_t * _1;
  5160. long unsigned int _2;
  5161. struct xLIST * _3;
  5162. struct ListItem_t * _4;
  5163. struct ListItem_t * _5;
  5164. unsigned char _6;
  5165. long int xSchedulerRunning.31_7;
  5166. struct TCB_t * pxCurrentTCB.32_8;
  5167. long int xSchedulerRunning.33_9;
  5168. long unsigned int uxSchedulerSuspended.34_10;
  5169. volatile uint32_t * _11;
  5170. long unsigned int _12;
  5171. long unsigned int uxCurrentNumberOfTasks.35_13;
  5172. struct TCB_t * iftmp.30_15;
  5173. struct TCB_t * iftmp.30_24;
  5174. struct TCB_t * iftmp.30_25;
  5175. <bb 2> :
  5176. vPortEnterCritical ();
  5177. if (xTaskToSuspend_23(D) == 0B)
  5178. goto <bb 3>; [INV]
  5179. else
  5180. goto <bb 4>; [INV]
  5181. <bb 3> :
  5182. iftmp.30_25 ={v} pxCurrentTCB;
  5183. goto <bb 5>; [INV]
  5184. <bb 4> :
  5185. iftmp.30_24 = xTaskToSuspend_23(D);
  5186. <bb 5> :
  5187. # iftmp.30_15 = PHI <iftmp.30_25(3), iftmp.30_24(4)>
  5188. pxTCB_26 = iftmp.30_15;
  5189. _1 = &pxTCB_26->xStateListItem;
  5190. _2 = uxListRemove (_1);
  5191. <bb 6> :
  5192. _3 = pxTCB_26->xEventListItem.pvContainer;
  5193. if (_3 != 0B)
  5194. goto <bb 7>; [INV]
  5195. else
  5196. goto <bb 8>; [INV]
  5197. <bb 7> :
  5198. _4 = &pxTCB_26->xEventListItem;
  5199. uxListRemove (_4);
  5200. <bb 8> :
  5201. _5 = &pxTCB_26->xStateListItem;
  5202. vListInsertEnd (&xSuspendedTaskList, _5);
  5203. x_30 = 0;
  5204. goto <bb 12>; [INV]
  5205. <bb 9> :
  5206. _6 ={v} pxTCB_26->ucNotifyState[x_14];
  5207. if (_6 == 1)
  5208. goto <bb 10>; [INV]
  5209. else
  5210. goto <bb 11>; [INV]
  5211. <bb 10> :
  5212. pxTCB_26->ucNotifyState[x_14] ={v} 0;
  5213. <bb 11> :
  5214. x_41 = x_14 + 1;
  5215. <bb 12> :
  5216. # x_14 = PHI <x_30(8), x_41(11)>
  5217. if (x_14 <= 0)
  5218. goto <bb 9>; [INV]
  5219. else
  5220. goto <bb 13>; [INV]
  5221. <bb 13> :
  5222. vPortExitCritical ();
  5223. xSchedulerRunning.31_7 ={v} xSchedulerRunning;
  5224. if (xSchedulerRunning.31_7 != 0)
  5225. goto <bb 14>; [INV]
  5226. else
  5227. goto <bb 15>; [INV]
  5228. <bb 14> :
  5229. vPortEnterCritical ();
  5230. prvResetNextTaskUnblockTime ();
  5231. vPortExitCritical ();
  5232. <bb 15> :
  5233. pxCurrentTCB.32_8 ={v} pxCurrentTCB;
  5234. if (pxTCB_26 == pxCurrentTCB.32_8)
  5235. goto <bb 16>; [INV]
  5236. else
  5237. goto <bb 25>; [INV]
  5238. <bb 16> :
  5239. xSchedulerRunning.33_9 ={v} xSchedulerRunning;
  5240. if (xSchedulerRunning.33_9 != 0)
  5241. goto <bb 17>; [INV]
  5242. else
  5243. goto <bb 22>; [INV]
  5244. <bb 17> :
  5245. uxSchedulerSuspended.34_10 ={v} uxSchedulerSuspended;
  5246. if (uxSchedulerSuspended.34_10 != 0)
  5247. goto <bb 18>; [INV]
  5248. else
  5249. goto <bb 21>; [INV]
  5250. <bb 18> :
  5251. __asm__ __volatile__(" mov %0, %1
  5252. msr basepri, %0
  5253. isb
  5254. dsb
  5255. " : "=r" ulNewBASEPRI_42 : "i" 16 : "memory");
  5256. <bb 19> :
  5257. <bb 20> :
  5258. goto <bb 20>; [INV]
  5259. <bb 21> :
  5260. _11 = 3758157060B;
  5261. *_11 ={v} 268435456;
  5262. __asm__ __volatile__("dsb" : : : "memory");
  5263. __asm__ __volatile__("isb");
  5264. goto <bb 25>; [INV]
  5265. <bb 22> :
  5266. _12 ={v} xSuspendedTaskList.uxNumberOfItems;
  5267. uxCurrentNumberOfTasks.35_13 ={v} uxCurrentNumberOfTasks;
  5268. if (_12 == uxCurrentNumberOfTasks.35_13)
  5269. goto <bb 23>; [INV]
  5270. else
  5271. goto <bb 24>; [INV]
  5272. <bb 23> :
  5273. pxCurrentTCB ={v} 0B;
  5274. goto <bb 25>; [INV]
  5275. <bb 24> :
  5276. vTaskSwitchContext ();
  5277. <bb 25> :
  5278. return;
  5279. }
  5280. vTaskPrioritySet (struct tskTaskControlBlock * xTask, UBaseType_t uxNewPriority)
  5281. {
  5282. uint32_t ulNewBASEPRI;
  5283. struct ListItem_t * const pxIndex;
  5284. BaseType_t xYieldRequired;
  5285. UBaseType_t uxPriorityUsedOnEntry;
  5286. UBaseType_t uxCurrentBasePriority;
  5287. struct TCB_t * pxTCB;
  5288. struct TCB_t * iftmp.25;
  5289. struct TCB_t * pxCurrentTCB.26_1;
  5290. struct TCB_t * pxCurrentTCB.27_2;
  5291. long unsigned int _3;
  5292. struct TCB_t * pxCurrentTCB.28_4;
  5293. long unsigned int _5;
  5294. long unsigned int _6;
  5295. long unsigned int _7;
  5296. signed int _8;
  5297. long unsigned int _9;
  5298. struct xLIST * _10;
  5299. struct List_t * _11;
  5300. struct ListItem_t * _12;
  5301. long unsigned int _13;
  5302. long unsigned int _14;
  5303. long unsigned int uxTopReadyPriority.29_15;
  5304. long unsigned int _16;
  5305. long unsigned int _17;
  5306. struct xLIST_ITEM * _18;
  5307. struct xLIST_ITEM * _19;
  5308. struct ListItem_t * _20;
  5309. struct ListItem_t * _21;
  5310. long unsigned int _22;
  5311. struct List_t * _23;
  5312. long unsigned int _24;
  5313. long unsigned int _25;
  5314. long unsigned int _26;
  5315. volatile uint32_t * _27;
  5316. struct TCB_t * iftmp.25_30;
  5317. struct TCB_t * iftmp.25_42;
  5318. struct TCB_t * iftmp.25_43;
  5319. <bb 2> :
  5320. xYieldRequired_36 = 0;
  5321. if (uxNewPriority_37(D) > 4)
  5322. goto <bb 3>; [INV]
  5323. else
  5324. goto <bb 6>; [INV]
  5325. <bb 3> :
  5326. __asm__ __volatile__(" mov %0, %1
  5327. msr basepri, %0
  5328. isb
  5329. dsb
  5330. " : "=r" ulNewBASEPRI_65 : "i" 16 : "memory");
  5331. <bb 4> :
  5332. <bb 5> :
  5333. goto <bb 5>; [INV]
  5334. <bb 6> :
  5335. if (uxNewPriority_37(D) > 4)
  5336. goto <bb 7>; [INV]
  5337. else
  5338. goto <bb 8>; [INV]
  5339. <bb 7> :
  5340. uxNewPriority_38 = 4;
  5341. <bb 8> :
  5342. # uxNewPriority_28 = PHI <uxNewPriority_37(D)(6), uxNewPriority_38(7)>
  5343. vPortEnterCritical ();
  5344. if (xTask_41(D) == 0B)
  5345. goto <bb 9>; [INV]
  5346. else
  5347. goto <bb 10>; [INV]
  5348. <bb 9> :
  5349. iftmp.25_43 ={v} pxCurrentTCB;
  5350. goto <bb 11>; [INV]
  5351. <bb 10> :
  5352. iftmp.25_42 = xTask_41(D);
  5353. <bb 11> :
  5354. # iftmp.25_30 = PHI <iftmp.25_43(9), iftmp.25_42(10)>
  5355. pxTCB_44 = iftmp.25_30;
  5356. uxCurrentBasePriority_45 = pxTCB_44->uxBasePriority;
  5357. if (uxCurrentBasePriority_45 != uxNewPriority_28)
  5358. goto <bb 12>; [INV]
  5359. else
  5360. goto <bb 29>; [INV]
  5361. <bb 12> :
  5362. if (uxNewPriority_28 > uxCurrentBasePriority_45)
  5363. goto <bb 13>; [INV]
  5364. else
  5365. goto <bb 16>; [INV]
  5366. <bb 13> :
  5367. pxCurrentTCB.26_1 ={v} pxCurrentTCB;
  5368. if (pxTCB_44 != pxCurrentTCB.26_1)
  5369. goto <bb 14>; [INV]
  5370. else
  5371. goto <bb 18>; [INV]
  5372. <bb 14> :
  5373. pxCurrentTCB.27_2 ={v} pxCurrentTCB;
  5374. _3 = pxCurrentTCB.27_2->uxPriority;
  5375. if (uxNewPriority_28 >= _3)
  5376. goto <bb 15>; [INV]
  5377. else
  5378. goto <bb 18>; [INV]
  5379. <bb 15> :
  5380. xYieldRequired_47 = 1;
  5381. goto <bb 18>; [INV]
  5382. <bb 16> :
  5383. pxCurrentTCB.28_4 ={v} pxCurrentTCB;
  5384. if (pxTCB_44 == pxCurrentTCB.28_4)
  5385. goto <bb 17>; [INV]
  5386. else
  5387. goto <bb 18>; [INV]
  5388. <bb 17> :
  5389. xYieldRequired_46 = 1;
  5390. <bb 18> :
  5391. # xYieldRequired_29 = PHI <xYieldRequired_47(15), xYieldRequired_36(16), xYieldRequired_46(17), xYieldRequired_36(13), xYieldRequired_36(14)>
  5392. uxPriorityUsedOnEntry_48 = pxTCB_44->uxPriority;
  5393. _5 = pxTCB_44->uxBasePriority;
  5394. _6 = pxTCB_44->uxPriority;
  5395. if (_5 == _6)
  5396. goto <bb 19>; [INV]
  5397. else
  5398. goto <bb 20>; [INV]
  5399. <bb 19> :
  5400. pxTCB_44->uxPriority = uxNewPriority_28;
  5401. <bb 20> :
  5402. pxTCB_44->uxBasePriority = uxNewPriority_28;
  5403. _7 = pxTCB_44->xEventListItem.xItemValue;
  5404. _8 = (signed int) _7;
  5405. if (_8 >= 0)
  5406. goto <bb 21>; [INV]
  5407. else
  5408. goto <bb 22>; [INV]
  5409. <bb 21> :
  5410. _9 = 5 - uxNewPriority_28;
  5411. pxTCB_44->xEventListItem.xItemValue = _9;
  5412. <bb 22> :
  5413. _10 = pxTCB_44->xStateListItem.pvContainer;
  5414. _11 = &pxReadyTasksLists[uxPriorityUsedOnEntry_48];
  5415. if (_10 == _11)
  5416. goto <bb 23>; [INV]
  5417. else
  5418. goto <bb 27>; [INV]
  5419. <bb 23> :
  5420. _12 = &pxTCB_44->xStateListItem;
  5421. _13 = uxListRemove (_12);
  5422. <bb 24> :
  5423. _14 = pxTCB_44->uxPriority;
  5424. uxTopReadyPriority.29_15 ={v} uxTopReadyPriority;
  5425. if (_14 > uxTopReadyPriority.29_15)
  5426. goto <bb 25>; [INV]
  5427. else
  5428. goto <bb 26>; [INV]
  5429. <bb 25> :
  5430. _16 = pxTCB_44->uxPriority;
  5431. uxTopReadyPriority ={v} _16;
  5432. <bb 26> :
  5433. _17 = pxTCB_44->uxPriority;
  5434. pxIndex_54 = pxReadyTasksLists[_17].pxIndex;
  5435. pxTCB_44->xStateListItem.pxNext = pxIndex_54;
  5436. _18 = pxIndex_54->pxPrevious;
  5437. pxTCB_44->xStateListItem.pxPrevious = _18;
  5438. _19 = pxIndex_54->pxPrevious;
  5439. _20 = &pxTCB_44->xStateListItem;
  5440. _19->pxNext = _20;
  5441. _21 = &pxTCB_44->xStateListItem;
  5442. pxIndex_54->pxPrevious = _21;
  5443. _22 = pxTCB_44->uxPriority;
  5444. _23 = &pxReadyTasksLists[_22];
  5445. pxTCB_44->xStateListItem.pvContainer = _23;
  5446. _24 = pxTCB_44->uxPriority;
  5447. _25 ={v} pxReadyTasksLists[_24].uxNumberOfItems;
  5448. _26 = _25 + 1;
  5449. pxReadyTasksLists[_24].uxNumberOfItems ={v} _26;
  5450. <bb 27> :
  5451. if (xYieldRequired_29 != 0)
  5452. goto <bb 28>; [INV]
  5453. else
  5454. goto <bb 29>; [INV]
  5455. <bb 28> :
  5456. _27 = 3758157060B;
  5457. *_27 ={v} 268435456;
  5458. __asm__ __volatile__("dsb" : : : "memory");
  5459. __asm__ __volatile__("isb");
  5460. <bb 29> :
  5461. vPortExitCritical ();
  5462. return;
  5463. }
  5464. uxTaskPriorityGetFromISR (struct tskTaskControlBlock * const xTask)
  5465. {
  5466. uint32_t ulNewMaskValue;
  5467. uint32_t D.8314;
  5468. uint32_t ulOriginalBASEPRI;
  5469. uint32_t ulNewBASEPRI;
  5470. uint32_t D.8313;
  5471. UBaseType_t uxSavedInterruptState;
  5472. UBaseType_t uxReturn;
  5473. const struct TCB_t * pxTCB;
  5474. UBaseType_t D.7633;
  5475. const struct TCB_t * iftmp.24;
  5476. const struct TCB_t * iftmp.24_1;
  5477. const struct TCB_t * iftmp.24_6;
  5478. const struct TCB_t * iftmp.24_7;
  5479. UBaseType_t _10;
  5480. long unsigned int _13;
  5481. <bb 2> :
  5482. vPortValidateInterruptPriority ();
  5483. __asm__ __volatile__(" mrs %0, basepri
  5484. mov %1, %2
  5485. msr basepri, %1
  5486. isb
  5487. dsb
  5488. " : "=r" ulOriginalBASEPRI_11, "=r" ulNewBASEPRI_12 : "i" 16 : "memory");
  5489. _13 = ulOriginalBASEPRI_11;
  5490. <bb 3> :
  5491. <L4>:
  5492. _16 = _13;
  5493. <bb 4> :
  5494. uxSavedInterruptState_4 = _16;
  5495. if (xTask_5(D) == 0B)
  5496. goto <bb 5>; [INV]
  5497. else
  5498. goto <bb 6>; [INV]
  5499. <bb 5> :
  5500. iftmp.24_7 ={v} pxCurrentTCB;
  5501. goto <bb 7>; [INV]
  5502. <bb 6> :
  5503. iftmp.24_6 = xTask_5(D);
  5504. <bb 7> :
  5505. # iftmp.24_1 = PHI <iftmp.24_7(5), iftmp.24_6(6)>
  5506. pxTCB_8 = iftmp.24_1;
  5507. uxReturn_9 = pxTCB_8->uxPriority;
  5508. ulNewMaskValue_14 = uxSavedInterruptState_4;
  5509. __asm__ __volatile__(" msr basepri, %0 " : : "r" ulNewMaskValue_14 : "memory");
  5510. <bb 8> :
  5511. _10 = uxReturn_9;
  5512. <bb 9> :
  5513. <L3>:
  5514. return _10;
  5515. }
  5516. uxTaskPriorityGet (struct tskTaskControlBlock * const xTask)
  5517. {
  5518. UBaseType_t uxReturn;
  5519. const struct TCB_t * pxTCB;
  5520. UBaseType_t D.7627;
  5521. const struct TCB_t * iftmp.23;
  5522. const struct TCB_t * iftmp.23_1;
  5523. const struct TCB_t * iftmp.23_5;
  5524. const struct TCB_t * iftmp.23_6;
  5525. UBaseType_t _10;
  5526. <bb 2> :
  5527. vPortEnterCritical ();
  5528. if (xTask_4(D) == 0B)
  5529. goto <bb 3>; [INV]
  5530. else
  5531. goto <bb 4>; [INV]
  5532. <bb 3> :
  5533. iftmp.23_6 ={v} pxCurrentTCB;
  5534. goto <bb 5>; [INV]
  5535. <bb 4> :
  5536. iftmp.23_5 = xTask_4(D);
  5537. <bb 5> :
  5538. # iftmp.23_1 = PHI <iftmp.23_6(3), iftmp.23_5(4)>
  5539. pxTCB_7 = iftmp.23_1;
  5540. uxReturn_8 = pxTCB_7->uxPriority;
  5541. vPortExitCritical ();
  5542. _10 = uxReturn_8;
  5543. <bb 6> :
  5544. <L3>:
  5545. return _10;
  5546. }
  5547. eTaskGetState (struct tskTaskControlBlock * xTask)
  5548. {
  5549. uint32_t ulNewBASEPRI;
  5550. BaseType_t x;
  5551. const struct TCB_t * const pxTCB;
  5552. const struct List_t * pxOverflowedDelayedList;
  5553. const struct List_t * pxDelayedList;
  5554. const struct List_t * pxStateList;
  5555. eTaskState eReturn;
  5556. eTaskState D.7621;
  5557. struct TCB_t * pxCurrentTCB.22_1;
  5558. struct xLIST * _2;
  5559. unsigned char _3;
  5560. eTaskState _25;
  5561. <bb 2> :
  5562. pxTCB_9 = xTask_8(D);
  5563. if (pxTCB_9 == 0B)
  5564. goto <bb 3>; [INV]
  5565. else
  5566. goto <bb 6>; [INV]
  5567. <bb 3> :
  5568. __asm__ __volatile__(" mov %0, %1
  5569. msr basepri, %0
  5570. isb
  5571. dsb
  5572. " : "=r" ulNewBASEPRI_26 : "i" 16 : "memory");
  5573. <bb 4> :
  5574. <bb 5> :
  5575. goto <bb 5>; [INV]
  5576. <bb 6> :
  5577. pxCurrentTCB.22_1 ={v} pxCurrentTCB;
  5578. if (pxTCB_9 == pxCurrentTCB.22_1)
  5579. goto <bb 7>; [INV]
  5580. else
  5581. goto <bb 8>; [INV]
  5582. <bb 7> :
  5583. eReturn_24 = 0;
  5584. goto <bb 24>; [INV]
  5585. <bb 8> :
  5586. vPortEnterCritical ();
  5587. pxStateList_12 = pxTCB_9->xStateListItem.pvContainer;
  5588. pxDelayedList_13 ={v} pxDelayedTaskList;
  5589. pxOverflowedDelayedList_14 ={v} pxOverflowDelayedTaskList;
  5590. vPortExitCritical ();
  5591. if (pxStateList_12 == pxDelayedList_13)
  5592. goto <bb 10>; [INV]
  5593. else
  5594. goto <bb 9>; [INV]
  5595. <bb 9> :
  5596. if (pxStateList_12 == pxOverflowedDelayedList_14)
  5597. goto <bb 10>; [INV]
  5598. else
  5599. goto <bb 11>; [INV]
  5600. <bb 10> :
  5601. eReturn_23 = 2;
  5602. goto <bb 24>; [INV]
  5603. <bb 11> :
  5604. if (pxStateList_12 == &xSuspendedTaskList)
  5605. goto <bb 12>; [INV]
  5606. else
  5607. goto <bb 20>; [INV]
  5608. <bb 12> :
  5609. _2 = pxTCB_9->xEventListItem.pvContainer;
  5610. if (_2 == 0B)
  5611. goto <bb 13>; [INV]
  5612. else
  5613. goto <bb 19>; [INV]
  5614. <bb 13> :
  5615. eReturn_19 = 3;
  5616. x_20 = 0;
  5617. goto <bb 17>; [INV]
  5618. <bb 14> :
  5619. _3 ={v} pxTCB_9->ucNotifyState[x_6];
  5620. if (_3 == 1)
  5621. goto <bb 15>; [INV]
  5622. else
  5623. goto <bb 16>; [INV]
  5624. <bb 15> :
  5625. eReturn_22 = 2;
  5626. goto <bb 18>; [INV]
  5627. <bb 16> :
  5628. x_21 = x_6 + 1;
  5629. <bb 17> :
  5630. # x_6 = PHI <x_20(13), x_21(16)>
  5631. if (x_6 <= 0)
  5632. goto <bb 14>; [INV]
  5633. else
  5634. goto <bb 18>; [INV]
  5635. <bb 18> :
  5636. # eReturn_4 = PHI <eReturn_22(15), eReturn_19(17)>
  5637. goto <bb 24>; [INV]
  5638. <bb 19> :
  5639. eReturn_18 = 2;
  5640. goto <bb 24>; [INV]
  5641. <bb 20> :
  5642. if (pxStateList_12 == &xTasksWaitingTermination)
  5643. goto <bb 22>; [INV]
  5644. else
  5645. goto <bb 21>; [INV]
  5646. <bb 21> :
  5647. if (pxStateList_12 == 0B)
  5648. goto <bb 22>; [INV]
  5649. else
  5650. goto <bb 23>; [INV]
  5651. <bb 22> :
  5652. eReturn_17 = 4;
  5653. goto <bb 24>; [INV]
  5654. <bb 23> :
  5655. eReturn_16 = 1;
  5656. <bb 24> :
  5657. # eReturn_5 = PHI <eReturn_24(7), eReturn_23(10), eReturn_18(19), eReturn_17(22), eReturn_16(23), eReturn_4(18)>
  5658. _25 = eReturn_5;
  5659. <bb 25> :
  5660. <L25>:
  5661. return _25;
  5662. }
  5663. vTaskDelay (const TickType_t xTicksToDelay)
  5664. {
  5665. uint32_t ulNewBASEPRI;
  5666. BaseType_t xAlreadyYielded;
  5667. long unsigned int uxSchedulerSuspended.21_1;
  5668. volatile uint32_t * _2;
  5669. <bb 2> :
  5670. xAlreadyYielded_6 = 0;
  5671. if (xTicksToDelay_7(D) != 0)
  5672. goto <bb 3>; [INV]
  5673. else
  5674. goto <bb 8>; [INV]
  5675. <bb 3> :
  5676. uxSchedulerSuspended.21_1 ={v} uxSchedulerSuspended;
  5677. if (uxSchedulerSuspended.21_1 != 0)
  5678. goto <bb 4>; [INV]
  5679. else
  5680. goto <bb 7>; [INV]
  5681. <bb 4> :
  5682. __asm__ __volatile__(" mov %0, %1
  5683. msr basepri, %0
  5684. isb
  5685. dsb
  5686. " : "=r" ulNewBASEPRI_16 : "i" 16 : "memory");
  5687. <bb 5> :
  5688. <bb 6> :
  5689. goto <bb 6>; [INV]
  5690. <bb 7> :
  5691. vTaskSuspendAll ();
  5692. prvAddCurrentTaskToDelayedList (xTicksToDelay_7(D), 0);
  5693. xAlreadyYielded_12 = xTaskResumeAll ();
  5694. <bb 8> :
  5695. # xAlreadyYielded_3 = PHI <xAlreadyYielded_6(2), xAlreadyYielded_12(7)>
  5696. if (xAlreadyYielded_3 == 0)
  5697. goto <bb 9>; [INV]
  5698. else
  5699. goto <bb 10>; [INV]
  5700. <bb 9> :
  5701. _2 = 3758157060B;
  5702. *_2 ={v} 268435456;
  5703. __asm__ __volatile__("dsb" : : : "memory");
  5704. __asm__ __volatile__("isb");
  5705. <bb 10> :
  5706. return;
  5707. }
  5708. xTaskDelayUntil (TickType_t * const pxPreviousWakeTime, const TickType_t xTimeIncrement)
  5709. {
  5710. uint32_t ulNewBASEPRI;
  5711. uint32_t ulNewBASEPRI;
  5712. uint32_t ulNewBASEPRI;
  5713. const TickType_t xConstTickCount;
  5714. BaseType_t xShouldDelay;
  5715. BaseType_t xAlreadyYielded;
  5716. TickType_t xTimeToWake;
  5717. BaseType_t D.7590;
  5718. long unsigned int uxSchedulerSuspended.20_1;
  5719. long unsigned int _2;
  5720. long unsigned int _3;
  5721. long unsigned int _4;
  5722. long unsigned int _5;
  5723. long unsigned int _6;
  5724. volatile uint32_t * _7;
  5725. BaseType_t _27;
  5726. <bb 2> :
  5727. xShouldDelay_11 = 0;
  5728. if (pxPreviousWakeTime_12(D) == 0B)
  5729. goto <bb 3>; [INV]
  5730. else
  5731. goto <bb 6>; [INV]
  5732. <bb 3> :
  5733. __asm__ __volatile__(" mov %0, %1
  5734. msr basepri, %0
  5735. isb
  5736. dsb
  5737. " : "=r" ulNewBASEPRI_28 : "i" 16 : "memory");
  5738. <bb 4> :
  5739. <bb 5> :
  5740. goto <bb 5>; [INV]
  5741. <bb 6> :
  5742. if (xTimeIncrement_13(D) == 0)
  5743. goto <bb 7>; [INV]
  5744. else
  5745. goto <bb 10>; [INV]
  5746. <bb 7> :
  5747. __asm__ __volatile__(" mov %0, %1
  5748. msr basepri, %0
  5749. isb
  5750. dsb
  5751. " : "=r" ulNewBASEPRI_29 : "i" 16 : "memory");
  5752. <bb 8> :
  5753. <bb 9> :
  5754. goto <bb 9>; [INV]
  5755. <bb 10> :
  5756. uxSchedulerSuspended.20_1 ={v} uxSchedulerSuspended;
  5757. if (uxSchedulerSuspended.20_1 != 0)
  5758. goto <bb 11>; [INV]
  5759. else
  5760. goto <bb 14>; [INV]
  5761. <bb 11> :
  5762. __asm__ __volatile__(" mov %0, %1
  5763. msr basepri, %0
  5764. isb
  5765. dsb
  5766. " : "=r" ulNewBASEPRI_30 : "i" 16 : "memory");
  5767. <bb 12> :
  5768. <bb 13> :
  5769. goto <bb 13>; [INV]
  5770. <bb 14> :
  5771. vTaskSuspendAll ();
  5772. xConstTickCount_16 ={v} xTickCount;
  5773. _2 = *pxPreviousWakeTime_12(D);
  5774. xTimeToWake_17 = xTimeIncrement_13(D) + _2;
  5775. _3 = *pxPreviousWakeTime_12(D);
  5776. if (xConstTickCount_16 < _3)
  5777. goto <bb 15>; [INV]
  5778. else
  5779. goto <bb 18>; [INV]
  5780. <bb 15> :
  5781. _4 = *pxPreviousWakeTime_12(D);
  5782. if (xTimeToWake_17 < _4)
  5783. goto <bb 16>; [INV]
  5784. else
  5785. goto <bb 21>; [INV]
  5786. <bb 16> :
  5787. if (xTimeToWake_17 > xConstTickCount_16)
  5788. goto <bb 17>; [INV]
  5789. else
  5790. goto <bb 21>; [INV]
  5791. <bb 17> :
  5792. xShouldDelay_19 = 1;
  5793. goto <bb 21>; [INV]
  5794. <bb 18> :
  5795. _5 = *pxPreviousWakeTime_12(D);
  5796. if (xTimeToWake_17 < _5)
  5797. goto <bb 20>; [INV]
  5798. else
  5799. goto <bb 19>; [INV]
  5800. <bb 19> :
  5801. if (xTimeToWake_17 > xConstTickCount_16)
  5802. goto <bb 20>; [INV]
  5803. else
  5804. goto <bb 21>; [INV]
  5805. <bb 20> :
  5806. xShouldDelay_18 = 1;
  5807. <bb 21> :
  5808. # xShouldDelay_8 = PHI <xShouldDelay_11(16), xShouldDelay_11(19), xShouldDelay_18(20), xShouldDelay_11(15), xShouldDelay_19(17)>
  5809. *pxPreviousWakeTime_12(D) = xTimeToWake_17;
  5810. if (xShouldDelay_8 != 0)
  5811. goto <bb 22>; [INV]
  5812. else
  5813. goto <bb 23>; [INV]
  5814. <bb 22> :
  5815. _6 = xTimeToWake_17 - xConstTickCount_16;
  5816. prvAddCurrentTaskToDelayedList (_6, 0);
  5817. <bb 23> :
  5818. xAlreadyYielded_23 = xTaskResumeAll ();
  5819. if (xAlreadyYielded_23 == 0)
  5820. goto <bb 24>; [INV]
  5821. else
  5822. goto <bb 25>; [INV]
  5823. <bb 24> :
  5824. _7 = 3758157060B;
  5825. *_7 ={v} 268435456;
  5826. __asm__ __volatile__("dsb" : : : "memory");
  5827. __asm__ __volatile__("isb");
  5828. <bb 25> :
  5829. _27 = xShouldDelay_8;
  5830. <bb 26> :
  5831. <L26>:
  5832. return _27;
  5833. }
  5834. vTaskDelete (struct tskTaskControlBlock * xTaskToDelete)
  5835. {
  5836. uint32_t ulNewBASEPRI;
  5837. struct TCB_t * pxTCB;
  5838. struct TCB_t * iftmp.12;
  5839. struct ListItem_t * _1;
  5840. long unsigned int _2;
  5841. struct xLIST * _3;
  5842. struct ListItem_t * _4;
  5843. long unsigned int uxTaskNumber.13_5;
  5844. long unsigned int _6;
  5845. struct TCB_t * pxCurrentTCB.14_7;
  5846. struct ListItem_t * _8;
  5847. long unsigned int uxDeletedTasksWaitingCleanUp.15_9;
  5848. long unsigned int _10;
  5849. long unsigned int uxCurrentNumberOfTasks.16_11;
  5850. long unsigned int _12;
  5851. long int xSchedulerRunning.17_13;
  5852. struct TCB_t * pxCurrentTCB.18_14;
  5853. long unsigned int uxSchedulerSuspended.19_15;
  5854. volatile uint32_t * _16;
  5855. struct TCB_t * iftmp.12_17;
  5856. struct TCB_t * iftmp.12_24;
  5857. struct TCB_t * iftmp.12_25;
  5858. <bb 2> :
  5859. vPortEnterCritical ();
  5860. if (xTaskToDelete_23(D) == 0B)
  5861. goto <bb 3>; [INV]
  5862. else
  5863. goto <bb 4>; [INV]
  5864. <bb 3> :
  5865. iftmp.12_25 ={v} pxCurrentTCB;
  5866. goto <bb 5>; [INV]
  5867. <bb 4> :
  5868. iftmp.12_24 = xTaskToDelete_23(D);
  5869. <bb 5> :
  5870. # iftmp.12_17 = PHI <iftmp.12_25(3), iftmp.12_24(4)>
  5871. pxTCB_26 = iftmp.12_17;
  5872. _1 = &pxTCB_26->xStateListItem;
  5873. _2 = uxListRemove (_1);
  5874. <bb 6> :
  5875. _3 = pxTCB_26->xEventListItem.pvContainer;
  5876. if (_3 != 0B)
  5877. goto <bb 7>; [INV]
  5878. else
  5879. goto <bb 8>; [INV]
  5880. <bb 7> :
  5881. _4 = &pxTCB_26->xEventListItem;
  5882. uxListRemove (_4);
  5883. <bb 8> :
  5884. uxTaskNumber.13_5 = uxTaskNumber;
  5885. _6 = uxTaskNumber.13_5 + 1;
  5886. uxTaskNumber = _6;
  5887. pxCurrentTCB.14_7 ={v} pxCurrentTCB;
  5888. if (pxTCB_26 == pxCurrentTCB.14_7)
  5889. goto <bb 9>; [INV]
  5890. else
  5891. goto <bb 10>; [INV]
  5892. <bb 9> :
  5893. _8 = &pxTCB_26->xStateListItem;
  5894. vListInsertEnd (&xTasksWaitingTermination, _8);
  5895. uxDeletedTasksWaitingCleanUp.15_9 ={v} uxDeletedTasksWaitingCleanUp;
  5896. _10 = uxDeletedTasksWaitingCleanUp.15_9 + 1;
  5897. uxDeletedTasksWaitingCleanUp ={v} _10;
  5898. goto <bb 11>; [INV]
  5899. <bb 10> :
  5900. uxCurrentNumberOfTasks.16_11 ={v} uxCurrentNumberOfTasks;
  5901. _12 = uxCurrentNumberOfTasks.16_11 + 4294967295;
  5902. uxCurrentNumberOfTasks ={v} _12;
  5903. prvDeleteTCB (pxTCB_26);
  5904. prvResetNextTaskUnblockTime ();
  5905. <bb 11> :
  5906. vPortExitCritical ();
  5907. xSchedulerRunning.17_13 ={v} xSchedulerRunning;
  5908. if (xSchedulerRunning.17_13 != 0)
  5909. goto <bb 12>; [INV]
  5910. else
  5911. goto <bb 18>; [INV]
  5912. <bb 12> :
  5913. pxCurrentTCB.18_14 ={v} pxCurrentTCB;
  5914. if (pxTCB_26 == pxCurrentTCB.18_14)
  5915. goto <bb 13>; [INV]
  5916. else
  5917. goto <bb 18>; [INV]
  5918. <bb 13> :
  5919. uxSchedulerSuspended.19_15 ={v} uxSchedulerSuspended;
  5920. if (uxSchedulerSuspended.19_15 != 0)
  5921. goto <bb 14>; [INV]
  5922. else
  5923. goto <bb 17>; [INV]
  5924. <bb 14> :
  5925. __asm__ __volatile__(" mov %0, %1
  5926. msr basepri, %0
  5927. isb
  5928. dsb
  5929. " : "=r" ulNewBASEPRI_39 : "i" 16 : "memory");
  5930. <bb 15> :
  5931. <bb 16> :
  5932. goto <bb 16>; [INV]
  5933. <bb 17> :
  5934. _16 = 3758157060B;
  5935. *_16 ={v} 268435456;
  5936. __asm__ __volatile__("dsb" : : : "memory");
  5937. __asm__ __volatile__("isb");
  5938. <bb 18> :
  5939. return;
  5940. }
  5941. prvAddNewTaskToReadyList (struct TCB_t * pxNewTCB)
  5942. {
  5943. struct ListItem_t * const pxIndex;
  5944. long unsigned int uxCurrentNumberOfTasks.2_1;
  5945. long unsigned int _2;
  5946. struct TCB_t * pxCurrentTCB.3_3;
  5947. long unsigned int uxCurrentNumberOfTasks.4_4;
  5948. long int xSchedulerRunning.5_5;
  5949. struct TCB_t * pxCurrentTCB.6_6;
  5950. long unsigned int _7;
  5951. long unsigned int _8;
  5952. long unsigned int uxTaskNumber.7_9;
  5953. long unsigned int _10;
  5954. long unsigned int uxTaskNumber.8_11;
  5955. long unsigned int _12;
  5956. long unsigned int uxTopReadyPriority.9_13;
  5957. long unsigned int _14;
  5958. long unsigned int _15;
  5959. struct xLIST_ITEM * _16;
  5960. struct xLIST_ITEM * _17;
  5961. struct ListItem_t * _18;
  5962. struct ListItem_t * _19;
  5963. long unsigned int _20;
  5964. struct List_t * _21;
  5965. long unsigned int _22;
  5966. long unsigned int _23;
  5967. long unsigned int _24;
  5968. long int xSchedulerRunning.10_25;
  5969. struct TCB_t * pxCurrentTCB.11_26;
  5970. long unsigned int _27;
  5971. long unsigned int _28;
  5972. volatile uint32_t * _29;
  5973. <bb 2> :
  5974. vPortEnterCritical ();
  5975. uxCurrentNumberOfTasks.2_1 ={v} uxCurrentNumberOfTasks;
  5976. _2 = uxCurrentNumberOfTasks.2_1 + 1;
  5977. uxCurrentNumberOfTasks ={v} _2;
  5978. pxCurrentTCB.3_3 ={v} pxCurrentTCB;
  5979. if (pxCurrentTCB.3_3 == 0B)
  5980. goto <bb 3>; [INV]
  5981. else
  5982. goto <bb 5>; [INV]
  5983. <bb 3> :
  5984. pxCurrentTCB ={v} pxNewTCB_36(D);
  5985. uxCurrentNumberOfTasks.4_4 ={v} uxCurrentNumberOfTasks;
  5986. if (uxCurrentNumberOfTasks.4_4 == 1)
  5987. goto <bb 4>; [INV]
  5988. else
  5989. goto <bb 8>; [INV]
  5990. <bb 4> :
  5991. prvInitialiseTaskLists ();
  5992. goto <bb 8>; [INV]
  5993. <bb 5> :
  5994. xSchedulerRunning.5_5 ={v} xSchedulerRunning;
  5995. if (xSchedulerRunning.5_5 == 0)
  5996. goto <bb 6>; [INV]
  5997. else
  5998. goto <bb 8>; [INV]
  5999. <bb 6> :
  6000. pxCurrentTCB.6_6 ={v} pxCurrentTCB;
  6001. _7 = pxCurrentTCB.6_6->uxPriority;
  6002. _8 = pxNewTCB_36(D)->uxPriority;
  6003. if (_7 <= _8)
  6004. goto <bb 7>; [INV]
  6005. else
  6006. goto <bb 8>; [INV]
  6007. <bb 7> :
  6008. pxCurrentTCB ={v} pxNewTCB_36(D);
  6009. <bb 8> :
  6010. uxTaskNumber.7_9 = uxTaskNumber;
  6011. _10 = uxTaskNumber.7_9 + 1;
  6012. uxTaskNumber = _10;
  6013. uxTaskNumber.8_11 = uxTaskNumber;
  6014. pxNewTCB_36(D)->uxTCBNumber = uxTaskNumber.8_11;
  6015. _12 = pxNewTCB_36(D)->uxPriority;
  6016. uxTopReadyPriority.9_13 ={v} uxTopReadyPriority;
  6017. if (_12 > uxTopReadyPriority.9_13)
  6018. goto <bb 9>; [INV]
  6019. else
  6020. goto <bb 10>; [INV]
  6021. <bb 9> :
  6022. _14 = pxNewTCB_36(D)->uxPriority;
  6023. uxTopReadyPriority ={v} _14;
  6024. <bb 10> :
  6025. _15 = pxNewTCB_36(D)->uxPriority;
  6026. pxIndex_43 = pxReadyTasksLists[_15].pxIndex;
  6027. pxNewTCB_36(D)->xStateListItem.pxNext = pxIndex_43;
  6028. _16 = pxIndex_43->pxPrevious;
  6029. pxNewTCB_36(D)->xStateListItem.pxPrevious = _16;
  6030. _17 = pxIndex_43->pxPrevious;
  6031. _18 = &pxNewTCB_36(D)->xStateListItem;
  6032. _17->pxNext = _18;
  6033. _19 = &pxNewTCB_36(D)->xStateListItem;
  6034. pxIndex_43->pxPrevious = _19;
  6035. _20 = pxNewTCB_36(D)->uxPriority;
  6036. _21 = &pxReadyTasksLists[_20];
  6037. pxNewTCB_36(D)->xStateListItem.pvContainer = _21;
  6038. _22 = pxNewTCB_36(D)->uxPriority;
  6039. _23 ={v} pxReadyTasksLists[_22].uxNumberOfItems;
  6040. _24 = _23 + 1;
  6041. pxReadyTasksLists[_22].uxNumberOfItems ={v} _24;
  6042. vPortExitCritical ();
  6043. xSchedulerRunning.10_25 ={v} xSchedulerRunning;
  6044. if (xSchedulerRunning.10_25 != 0)
  6045. goto <bb 11>; [INV]
  6046. else
  6047. goto <bb 13>; [INV]
  6048. <bb 11> :
  6049. pxCurrentTCB.11_26 ={v} pxCurrentTCB;
  6050. _27 = pxCurrentTCB.11_26->uxPriority;
  6051. _28 = pxNewTCB_36(D)->uxPriority;
  6052. if (_27 < _28)
  6053. goto <bb 12>; [INV]
  6054. else
  6055. goto <bb 13>; [INV]
  6056. <bb 12> :
  6057. _29 = 3758157060B;
  6058. *_29 ={v} 268435456;
  6059. __asm__ __volatile__("dsb" : : : "memory");
  6060. __asm__ __volatile__("isb");
  6061. <bb 13> :
  6062. return;
  6063. }
  6064. prvInitialiseNewTask (void (*TaskFunction_t) (void *) pxTaskCode, const char * const pcName, const uint32_t ulStackDepth, void * const pvParameters, UBaseType_t uxPriority, struct tskTaskControlBlock * * const pxCreatedTask, struct TCB_t * pxNewTCB, const struct MemoryRegion_t * const xRegions)
  6065. {
  6066. uint32_t ulNewBASEPRI;
  6067. uint32_t ulNewBASEPRI;
  6068. UBaseType_t x;
  6069. StackType_t * pxTopOfStack;
  6070. StackType_t * _1;
  6071. unsigned int _2;
  6072. StackType_t * _3;
  6073. sizetype _4;
  6074. sizetype _5;
  6075. long unsigned int pxTopOfStack.0_6;
  6076. long unsigned int _7;
  6077. long unsigned int pxTopOfStack.1_8;
  6078. long unsigned int _9;
  6079. const char * _10;
  6080. char _11;
  6081. const char * _12;
  6082. char _13;
  6083. struct ListItem_t * _14;
  6084. struct ListItem_t * _15;
  6085. long unsigned int _16;
  6086. volatile uint32_t * _17;
  6087. volatile uint8_t * _18;
  6088. StackType_t * _19;
  6089. <bb 2> :
  6090. _1 = pxNewTCB_27(D)->pxStack;
  6091. _2 = ulStackDepth_28(D) * 4;
  6092. memset (_1, 165, _2);
  6093. _3 = pxNewTCB_27(D)->pxStack;
  6094. _4 = ulStackDepth_28(D) + 1073741823;
  6095. _5 = _4 * 4;
  6096. pxTopOfStack_30 = _3 + _5;
  6097. pxTopOfStack.0_6 = (long unsigned int) pxTopOfStack_30;
  6098. _7 = pxTopOfStack.0_6 & 4294967288;
  6099. pxTopOfStack_31 = (StackType_t *) _7;
  6100. pxTopOfStack.1_8 = (long unsigned int) pxTopOfStack_31;
  6101. _9 = pxTopOfStack.1_8 & 7;
  6102. if (_9 != 0)
  6103. goto <bb 3>; [INV]
  6104. else
  6105. goto <bb 6>; [INV]
  6106. <bb 3> :
  6107. __asm__ __volatile__(" mov %0, %1
  6108. msr basepri, %0
  6109. isb
  6110. dsb
  6111. " : "=r" ulNewBASEPRI_58 : "i" 16 : "memory");
  6112. <bb 4> :
  6113. <bb 5> :
  6114. goto <bb 5>; [INV]
  6115. <bb 6> :
  6116. pxNewTCB_27(D)->pxEndOfStack = pxTopOfStack_31;
  6117. if (pcName_33(D) != 0B)
  6118. goto <bb 7>; [INV]
  6119. else
  6120. goto <bb 13>; [INV]
  6121. <bb 7> :
  6122. x_35 = 0;
  6123. goto <bb 11>; [INV]
  6124. <bb 8> :
  6125. _10 = pcName_33(D) + x_21;
  6126. _11 = *_10;
  6127. pxNewTCB_27(D)->pcTaskName[x_21] = _11;
  6128. _12 = pcName_33(D) + x_21;
  6129. _13 = *_12;
  6130. if (_13 == 0)
  6131. goto <bb 9>; [INV]
  6132. else
  6133. goto <bb 10>; [INV]
  6134. <bb 9> :
  6135. goto <bb 12>; [INV]
  6136. <bb 10> :
  6137. x_37 = x_21 + 1;
  6138. <bb 11> :
  6139. # x_21 = PHI <x_35(7), x_37(10)>
  6140. if (x_21 <= 9)
  6141. goto <bb 8>; [INV]
  6142. else
  6143. goto <bb 12>; [INV]
  6144. <bb 12> :
  6145. pxNewTCB_27(D)->pcTaskName[9] = 0;
  6146. goto <bb 14>; [INV]
  6147. <bb 13> :
  6148. pxNewTCB_27(D)->pcTaskName[0] = 0;
  6149. <bb 14> :
  6150. if (uxPriority_39(D) > 4)
  6151. goto <bb 15>; [INV]
  6152. else
  6153. goto <bb 18>; [INV]
  6154. <bb 15> :
  6155. __asm__ __volatile__(" mov %0, %1
  6156. msr basepri, %0
  6157. isb
  6158. dsb
  6159. " : "=r" ulNewBASEPRI_59 : "i" 16 : "memory");
  6160. <bb 16> :
  6161. <bb 17> :
  6162. goto <bb 17>; [INV]
  6163. <bb 18> :
  6164. if (uxPriority_39(D) > 4)
  6165. goto <bb 19>; [INV]
  6166. else
  6167. goto <bb 20>; [INV]
  6168. <bb 19> :
  6169. uxPriority_40 = 4;
  6170. <bb 20> :
  6171. # uxPriority_20 = PHI <uxPriority_39(D)(18), uxPriority_40(19)>
  6172. pxNewTCB_27(D)->uxPriority = uxPriority_20;
  6173. pxNewTCB_27(D)->uxBasePriority = uxPriority_20;
  6174. pxNewTCB_27(D)->uxMutexesHeld = 0;
  6175. _14 = &pxNewTCB_27(D)->xStateListItem;
  6176. vListInitialiseItem (_14);
  6177. _15 = &pxNewTCB_27(D)->xEventListItem;
  6178. vListInitialiseItem (_15);
  6179. pxNewTCB_27(D)->xStateListItem.pvOwner = pxNewTCB_27(D);
  6180. _16 = 5 - uxPriority_20;
  6181. pxNewTCB_27(D)->xEventListItem.xItemValue = _16;
  6182. pxNewTCB_27(D)->xEventListItem.pvOwner = pxNewTCB_27(D);
  6183. _17 = &pxNewTCB_27(D)->ulNotifiedValue[0];
  6184. memset (_17, 0, 4);
  6185. _18 = &pxNewTCB_27(D)->ucNotifyState[0];
  6186. memset (_18, 0, 1);
  6187. pxNewTCB_27(D)->ucDelayAborted = 0;
  6188. _19 = pxPortInitialiseStack (pxTopOfStack_31, pxTaskCode_52(D), pvParameters_53(D));
  6189. pxNewTCB_27(D)->pxTopOfStack = _19;
  6190. if (pxCreatedTask_56(D) != 0B)
  6191. goto <bb 21>; [INV]
  6192. else
  6193. goto <bb 22>; [INV]
  6194. <bb 21> :
  6195. *pxCreatedTask_56(D) = pxNewTCB_27(D);
  6196. <bb 22> :
  6197. return;
  6198. }
  6199. xTaskCreate (void (*TaskFunction_t) (void *) pxTaskCode, const char * const pcName, const uint16_t usStackDepth, void * const pvParameters, UBaseType_t uxPriority, struct tskTaskControlBlock * * const pxCreatedTask)
  6200. {
  6201. StackType_t * pxStack;
  6202. BaseType_t xReturn;
  6203. struct TCB_t * pxNewTCB;
  6204. BaseType_t D.7510;
  6205. unsigned int _1;
  6206. unsigned int _2;
  6207. long unsigned int _3;
  6208. BaseType_t _26;
  6209. <bb 2> :
  6210. _1 = (unsigned int) usStackDepth_8(D);
  6211. _2 = _1 * 4;
  6212. pxStack_11 = pvPortMalloc (_2);
  6213. if (pxStack_11 != 0B)
  6214. goto <bb 3>; [INV]
  6215. else
  6216. goto <bb 6>; [INV]
  6217. <bb 3> :
  6218. pxNewTCB_14 = pvPortMalloc (92);
  6219. if (pxNewTCB_14 != 0B)
  6220. goto <bb 4>; [INV]
  6221. else
  6222. goto <bb 5>; [INV]
  6223. <bb 4> :
  6224. pxNewTCB_14->pxStack = pxStack_11;
  6225. goto <bb 7>; [INV]
  6226. <bb 5> :
  6227. vPortFree (pxStack_11);
  6228. goto <bb 7>; [INV]
  6229. <bb 6> :
  6230. pxNewTCB_12 = 0B;
  6231. <bb 7> :
  6232. # pxNewTCB_4 = PHI <pxNewTCB_14(5), pxNewTCB_12(6), pxNewTCB_14(4)>
  6233. if (pxNewTCB_4 != 0B)
  6234. goto <bb 8>; [INV]
  6235. else
  6236. goto <bb 9>; [INV]
  6237. <bb 8> :
  6238. _3 = (long unsigned int) usStackDepth_8(D);
  6239. prvInitialiseNewTask (pxTaskCode_18(D), pcName_19(D), _3, pvParameters_20(D), uxPriority_21(D), pxCreatedTask_22(D), pxNewTCB_4, 0B);
  6240. prvAddNewTaskToReadyList (pxNewTCB_4);
  6241. xReturn_25 = 1;
  6242. goto <bb 10>; [INV]
  6243. <bb 9> :
  6244. xReturn_17 = -1;
  6245. <bb 10> :
  6246. # xReturn_5 = PHI <xReturn_25(8), xReturn_17(9)>
  6247. _26 = xReturn_5;
  6248. <bb 11> :
  6249. <L9>:
  6250. return _26;
  6251. }