tasks.c.075i.fnsummary 192 KB

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