ChangeLog-2015 1.9 MB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044280452804628047280482804928050280512805228053280542805528056280572805828059280602806128062280632806428065280662806728068280692807028071280722807328074280752807628077280782807928080280812808228083280842808528086280872808828089280902809128092280932809428095280962809728098280992810028101281022810328104281052810628107281082810928110281112811228113281142811528116281172811828119281202812128122281232812428125281262812728128281292813028131281322813328134281352813628137281382813928140281412814228143281442814528146281472814828149281502815128152281532815428155281562815728158281592816028161281622816328164281652816628167281682816928170281712817228173281742817528176281772817828179281802818128182281832818428185281862818728188281892819028191281922819328194281952819628197281982819928200282012820228203282042820528206282072820828209282102821128212282132821428215282162821728218282192822028221282222822328224282252822628227282282822928230282312823228233282342823528236282372823828239282402824128242282432824428245282462824728248282492825028251282522825328254282552825628257282582825928260282612826228263282642826528266282672826828269282702827128272282732827428275282762827728278282792828028281282822828328284282852828628287282882828928290282912829228293282942829528296282972829828299283002830128302283032830428305283062830728308283092831028311283122831328314283152831628317283182831928320283212832228323283242832528326283272832828329283302833128332283332833428335283362833728338283392834028341283422834328344283452834628347283482834928350283512835228353283542835528356283572835828359283602836128362283632836428365283662836728368283692837028371283722837328374283752837628377283782837928380283812838228383283842838528386283872838828389283902839128392283932839428395283962839728398283992840028401284022840328404284052840628407284082840928410284112841228413284142841528416284172841828419284202842128422284232842428425284262842728428284292843028431284322843328434284352843628437284382843928440284412844228443284442844528446284472844828449284502845128452284532845428455284562845728458284592846028461284622846328464284652846628467284682846928470284712847228473284742847528476284772847828479284802848128482284832848428485284862848728488284892849028491284922849328494284952849628497284982849928500285012850228503285042850528506285072850828509285102851128512285132851428515285162851728518285192852028521285222852328524285252852628527285282852928530285312853228533285342853528536285372853828539285402854128542285432854428545285462854728548285492855028551285522855328554285552855628557285582855928560285612856228563285642856528566285672856828569285702857128572285732857428575285762857728578285792858028581285822858328584285852858628587285882858928590285912859228593285942859528596285972859828599286002860128602286032860428605286062860728608286092861028611286122861328614286152861628617286182861928620286212862228623286242862528626286272862828629286302863128632286332863428635286362863728638286392864028641286422864328644286452864628647286482864928650286512865228653286542865528656286572865828659286602866128662286632866428665286662866728668286692867028671286722867328674286752867628677286782867928680286812868228683286842868528686286872868828689286902869128692286932869428695286962869728698286992870028701287022870328704287052870628707287082870928710287112871228713287142871528716287172871828719287202872128722287232872428725287262872728728287292873028731287322873328734287352873628737287382873928740287412874228743287442874528746287472874828749287502875128752287532875428755287562875728758287592876028761287622876328764287652876628767287682876928770287712877228773287742877528776287772877828779287802878128782287832878428785287862878728788287892879028791287922879328794287952879628797287982879928800288012880228803288042880528806288072880828809288102881128812288132881428815288162881728818288192882028821288222882328824288252882628827288282882928830288312883228833288342883528836288372883828839288402884128842288432884428845288462884728848288492885028851288522885328854288552885628857288582885928860288612886228863288642886528866288672886828869288702887128872288732887428875288762887728878288792888028881288822888328884288852888628887288882888928890288912889228893288942889528896288972889828899289002890128902289032890428905289062890728908289092891028911289122891328914289152891628917289182891928920289212892228923289242892528926289272892828929289302893128932289332893428935289362893728938289392894028941289422894328944289452894628947289482894928950289512895228953289542895528956289572895828959289602896128962289632896428965289662896728968289692897028971289722897328974289752897628977289782897928980289812898228983289842898528986289872898828989289902899128992289932899428995289962899728998289992900029001290022900329004290052900629007290082900929010290112901229013290142901529016290172901829019290202902129022290232902429025290262902729028290292903029031290322903329034290352903629037290382903929040290412904229043290442904529046290472904829049290502905129052290532905429055290562905729058290592906029061290622906329064290652906629067290682906929070290712907229073290742907529076290772907829079290802908129082290832908429085290862908729088290892909029091290922909329094290952909629097290982909929100291012910229103291042910529106291072910829109291102911129112291132911429115291162911729118291192912029121291222912329124291252912629127291282912929130291312913229133291342913529136291372913829139291402914129142291432914429145291462914729148291492915029151291522915329154291552915629157291582915929160291612916229163291642916529166291672916829169291702917129172291732917429175291762917729178291792918029181291822918329184291852918629187291882918929190291912919229193291942919529196291972919829199292002920129202292032920429205292062920729208292092921029211292122921329214292152921629217292182921929220292212922229223292242922529226292272922829229292302923129232292332923429235292362923729238292392924029241292422924329244292452924629247292482924929250292512925229253292542925529256292572925829259292602926129262292632926429265292662926729268292692927029271292722927329274292752927629277292782927929280292812928229283292842928529286292872928829289292902929129292292932929429295292962929729298292992930029301293022930329304293052930629307293082930929310293112931229313293142931529316293172931829319293202932129322293232932429325293262932729328293292933029331293322933329334293352933629337293382933929340293412934229343293442934529346293472934829349293502935129352293532935429355293562935729358293592936029361293622936329364293652936629367293682936929370293712937229373293742937529376293772937829379293802938129382293832938429385293862938729388293892939029391293922939329394293952939629397293982939929400294012940229403294042940529406294072940829409294102941129412294132941429415294162941729418294192942029421294222942329424294252942629427294282942929430294312943229433294342943529436294372943829439294402944129442294432944429445294462944729448294492945029451294522945329454294552945629457294582945929460294612946229463294642946529466294672946829469294702947129472294732947429475294762947729478294792948029481294822948329484294852948629487294882948929490294912949229493294942949529496294972949829499295002950129502295032950429505295062950729508295092951029511295122951329514295152951629517295182951929520295212952229523295242952529526295272952829529295302953129532295332953429535295362953729538295392954029541295422954329544295452954629547295482954929550295512955229553295542955529556295572955829559295602956129562295632956429565295662956729568295692957029571295722957329574295752957629577295782957929580295812958229583295842958529586295872958829589295902959129592295932959429595295962959729598295992960029601296022960329604296052960629607296082960929610296112961229613296142961529616296172961829619296202962129622296232962429625296262962729628296292963029631296322963329634296352963629637296382963929640296412964229643296442964529646296472964829649296502965129652296532965429655296562965729658296592966029661296622966329664296652966629667296682966929670296712967229673296742967529676296772967829679296802968129682296832968429685296862968729688296892969029691296922969329694296952969629697296982969929700297012970229703297042970529706297072970829709297102971129712297132971429715297162971729718297192972029721297222972329724297252972629727297282972929730297312973229733297342973529736297372973829739297402974129742297432974429745297462974729748297492975029751297522975329754297552975629757297582975929760297612976229763297642976529766297672976829769297702977129772297732977429775297762977729778297792978029781297822978329784297852978629787297882978929790297912979229793297942979529796297972979829799298002980129802298032980429805298062980729808298092981029811298122981329814298152981629817298182981929820298212982229823298242982529826298272982829829298302983129832298332983429835298362983729838298392984029841298422984329844298452984629847298482984929850298512985229853298542985529856298572985829859298602986129862298632986429865298662986729868298692987029871298722987329874298752987629877298782987929880298812988229883298842988529886298872988829889298902989129892298932989429895298962989729898298992990029901299022990329904299052990629907299082990929910299112991229913299142991529916299172991829919299202992129922299232992429925299262992729928299292993029931299322993329934299352993629937299382993929940299412994229943299442994529946299472994829949299502995129952299532995429955299562995729958299592996029961299622996329964299652996629967299682996929970299712997229973299742997529976299772997829979299802998129982299832998429985299862998729988299892999029991299922999329994299952999629997299982999930000300013000230003300043000530006300073000830009300103001130012300133001430015300163001730018300193002030021300223002330024300253002630027300283002930030300313003230033300343003530036300373003830039300403004130042300433004430045300463004730048300493005030051300523005330054300553005630057300583005930060300613006230063300643006530066300673006830069300703007130072300733007430075300763007730078300793008030081300823008330084300853008630087300883008930090300913009230093300943009530096300973009830099301003010130102301033010430105301063010730108301093011030111301123011330114301153011630117301183011930120301213012230123301243012530126301273012830129301303013130132301333013430135301363013730138301393014030141301423014330144301453014630147301483014930150301513015230153301543015530156301573015830159301603016130162301633016430165301663016730168301693017030171301723017330174301753017630177301783017930180301813018230183301843018530186301873018830189301903019130192301933019430195301963019730198301993020030201302023020330204302053020630207302083020930210302113021230213302143021530216302173021830219302203022130222302233022430225302263022730228302293023030231302323023330234302353023630237302383023930240302413024230243302443024530246302473024830249302503025130252302533025430255302563025730258302593026030261302623026330264302653026630267302683026930270302713027230273302743027530276302773027830279302803028130282302833028430285302863028730288302893029030291302923029330294302953029630297302983029930300303013030230303303043030530306303073030830309303103031130312303133031430315303163031730318303193032030321303223032330324303253032630327303283032930330303313033230333303343033530336303373033830339303403034130342303433034430345303463034730348303493035030351303523035330354303553035630357303583035930360303613036230363303643036530366303673036830369303703037130372303733037430375303763037730378303793038030381303823038330384303853038630387303883038930390303913039230393303943039530396303973039830399304003040130402304033040430405304063040730408304093041030411304123041330414304153041630417304183041930420304213042230423304243042530426304273042830429304303043130432304333043430435304363043730438304393044030441304423044330444304453044630447304483044930450304513045230453304543045530456304573045830459304603046130462304633046430465304663046730468304693047030471304723047330474304753047630477304783047930480304813048230483304843048530486304873048830489304903049130492304933049430495304963049730498304993050030501305023050330504305053050630507305083050930510305113051230513305143051530516305173051830519305203052130522305233052430525305263052730528305293053030531305323053330534305353053630537305383053930540305413054230543305443054530546305473054830549305503055130552305533055430555305563055730558305593056030561305623056330564305653056630567305683056930570305713057230573305743057530576305773057830579305803058130582305833058430585305863058730588305893059030591305923059330594305953059630597305983059930600306013060230603306043060530606306073060830609306103061130612306133061430615306163061730618306193062030621306223062330624306253062630627306283062930630306313063230633306343063530636306373063830639306403064130642306433064430645306463064730648306493065030651306523065330654306553065630657306583065930660306613066230663306643066530666306673066830669306703067130672306733067430675306763067730678306793068030681306823068330684306853068630687306883068930690306913069230693306943069530696306973069830699307003070130702307033070430705307063070730708307093071030711307123071330714307153071630717307183071930720307213072230723307243072530726307273072830729307303073130732307333073430735307363073730738307393074030741307423074330744307453074630747307483074930750307513075230753307543075530756307573075830759307603076130762307633076430765307663076730768307693077030771307723077330774307753077630777307783077930780307813078230783307843078530786307873078830789307903079130792307933079430795307963079730798307993080030801308023080330804308053080630807308083080930810308113081230813308143081530816308173081830819308203082130822308233082430825308263082730828308293083030831308323083330834308353083630837308383083930840308413084230843308443084530846308473084830849308503085130852308533085430855308563085730858308593086030861308623086330864308653086630867308683086930870308713087230873308743087530876308773087830879308803088130882308833088430885308863088730888308893089030891308923089330894308953089630897308983089930900309013090230903309043090530906309073090830909309103091130912309133091430915309163091730918309193092030921309223092330924309253092630927309283092930930309313093230933309343093530936309373093830939309403094130942309433094430945309463094730948309493095030951309523095330954309553095630957309583095930960309613096230963309643096530966309673096830969309703097130972309733097430975309763097730978309793098030981309823098330984309853098630987309883098930990309913099230993309943099530996309973099830999310003100131002310033100431005310063100731008310093101031011310123101331014310153101631017310183101931020310213102231023310243102531026310273102831029310303103131032310333103431035310363103731038310393104031041310423104331044310453104631047310483104931050310513105231053310543105531056310573105831059310603106131062310633106431065310663106731068310693107031071310723107331074310753107631077310783107931080310813108231083310843108531086310873108831089310903109131092310933109431095310963109731098310993110031101311023110331104311053110631107311083110931110311113111231113311143111531116311173111831119311203112131122311233112431125311263112731128311293113031131311323113331134311353113631137311383113931140311413114231143311443114531146311473114831149311503115131152311533115431155311563115731158311593116031161311623116331164311653116631167311683116931170311713117231173311743117531176311773117831179311803118131182311833118431185311863118731188311893119031191311923119331194311953119631197311983119931200312013120231203312043120531206312073120831209312103121131212312133121431215312163121731218312193122031221312223122331224312253122631227312283122931230312313123231233312343123531236312373123831239312403124131242312433124431245312463124731248312493125031251312523125331254312553125631257312583125931260312613126231263312643126531266312673126831269312703127131272312733127431275312763127731278312793128031281312823128331284312853128631287312883128931290312913129231293312943129531296312973129831299313003130131302313033130431305313063130731308313093131031311313123131331314313153131631317313183131931320313213132231323313243132531326313273132831329313303133131332313333133431335313363133731338313393134031341313423134331344313453134631347313483134931350313513135231353313543135531356313573135831359313603136131362313633136431365313663136731368313693137031371313723137331374313753137631377313783137931380313813138231383313843138531386313873138831389313903139131392313933139431395313963139731398313993140031401314023140331404314053140631407314083140931410314113141231413314143141531416314173141831419314203142131422314233142431425314263142731428314293143031431314323143331434314353143631437314383143931440314413144231443314443144531446314473144831449314503145131452314533145431455314563145731458314593146031461314623146331464314653146631467314683146931470314713147231473314743147531476314773147831479314803148131482314833148431485314863148731488314893149031491314923149331494314953149631497314983149931500315013150231503315043150531506315073150831509315103151131512315133151431515315163151731518315193152031521315223152331524315253152631527315283152931530315313153231533315343153531536315373153831539315403154131542315433154431545315463154731548315493155031551315523155331554315553155631557315583155931560315613156231563315643156531566315673156831569315703157131572315733157431575315763157731578315793158031581315823158331584315853158631587315883158931590315913159231593315943159531596315973159831599316003160131602316033160431605316063160731608316093161031611316123161331614316153161631617316183161931620316213162231623316243162531626316273162831629316303163131632316333163431635316363163731638316393164031641316423164331644316453164631647316483164931650316513165231653316543165531656316573165831659316603166131662316633166431665316663166731668316693167031671316723167331674316753167631677316783167931680316813168231683316843168531686316873168831689316903169131692316933169431695316963169731698316993170031701317023170331704317053170631707317083170931710317113171231713317143171531716317173171831719317203172131722317233172431725317263172731728317293173031731317323173331734317353173631737317383173931740317413174231743317443174531746317473174831749317503175131752317533175431755317563175731758317593176031761317623176331764317653176631767317683176931770317713177231773317743177531776317773177831779317803178131782317833178431785317863178731788317893179031791317923179331794317953179631797317983179931800318013180231803318043180531806318073180831809318103181131812318133181431815318163181731818318193182031821318223182331824318253182631827318283182931830318313183231833318343183531836318373183831839318403184131842318433184431845318463184731848318493185031851318523185331854318553185631857318583185931860318613186231863318643186531866318673186831869318703187131872318733187431875318763187731878318793188031881318823188331884318853188631887318883188931890318913189231893318943189531896318973189831899319003190131902319033190431905319063190731908319093191031911319123191331914319153191631917319183191931920319213192231923319243192531926319273192831929319303193131932319333193431935319363193731938319393194031941319423194331944319453194631947319483194931950319513195231953319543195531956319573195831959319603196131962319633196431965319663196731968319693197031971319723197331974319753197631977319783197931980319813198231983319843198531986319873198831989319903199131992319933199431995319963199731998319993200032001320023200332004320053200632007320083200932010320113201232013320143201532016320173201832019320203202132022320233202432025320263202732028320293203032031320323203332034320353203632037320383203932040320413204232043320443204532046320473204832049320503205132052320533205432055320563205732058320593206032061320623206332064320653206632067320683206932070320713207232073320743207532076320773207832079320803208132082320833208432085320863208732088320893209032091320923209332094320953209632097320983209932100321013210232103321043210532106321073210832109321103211132112321133211432115321163211732118321193212032121321223212332124321253212632127321283212932130321313213232133321343213532136321373213832139321403214132142321433214432145321463214732148321493215032151321523215332154321553215632157321583215932160321613216232163321643216532166321673216832169321703217132172321733217432175321763217732178321793218032181321823218332184321853218632187321883218932190321913219232193321943219532196321973219832199322003220132202322033220432205322063220732208322093221032211322123221332214322153221632217322183221932220322213222232223322243222532226322273222832229322303223132232322333223432235322363223732238322393224032241322423224332244322453224632247322483224932250322513225232253322543225532256322573225832259322603226132262322633226432265322663226732268322693227032271322723227332274322753227632277322783227932280322813228232283322843228532286322873228832289322903229132292322933229432295322963229732298322993230032301323023230332304323053230632307323083230932310323113231232313323143231532316323173231832319323203232132322323233232432325323263232732328323293233032331323323233332334323353233632337323383233932340323413234232343323443234532346323473234832349323503235132352323533235432355323563235732358323593236032361323623236332364323653236632367323683236932370323713237232373323743237532376323773237832379323803238132382323833238432385323863238732388323893239032391323923239332394323953239632397323983239932400324013240232403324043240532406324073240832409324103241132412324133241432415324163241732418324193242032421324223242332424324253242632427324283242932430324313243232433324343243532436324373243832439324403244132442324433244432445324463244732448324493245032451324523245332454324553245632457324583245932460324613246232463324643246532466324673246832469324703247132472324733247432475324763247732478324793248032481324823248332484324853248632487324883248932490324913249232493324943249532496324973249832499325003250132502325033250432505325063250732508325093251032511325123251332514325153251632517325183251932520325213252232523325243252532526325273252832529325303253132532325333253432535325363253732538325393254032541325423254332544325453254632547325483254932550325513255232553325543255532556325573255832559325603256132562325633256432565325663256732568325693257032571325723257332574325753257632577325783257932580325813258232583325843258532586325873258832589325903259132592325933259432595325963259732598325993260032601326023260332604326053260632607326083260932610326113261232613326143261532616326173261832619326203262132622326233262432625326263262732628326293263032631326323263332634326353263632637326383263932640326413264232643326443264532646326473264832649326503265132652326533265432655326563265732658326593266032661326623266332664326653266632667326683266932670326713267232673326743267532676326773267832679326803268132682326833268432685326863268732688326893269032691326923269332694326953269632697326983269932700327013270232703327043270532706327073270832709327103271132712327133271432715327163271732718327193272032721327223272332724327253272632727327283272932730327313273232733327343273532736327373273832739327403274132742327433274432745327463274732748327493275032751327523275332754327553275632757327583275932760327613276232763327643276532766327673276832769327703277132772327733277432775327763277732778327793278032781327823278332784327853278632787327883278932790327913279232793327943279532796327973279832799328003280132802328033280432805328063280732808328093281032811328123281332814328153281632817328183281932820328213282232823328243282532826328273282832829328303283132832328333283432835328363283732838328393284032841328423284332844328453284632847328483284932850328513285232853328543285532856328573285832859328603286132862328633286432865328663286732868328693287032871328723287332874328753287632877328783287932880328813288232883328843288532886328873288832889328903289132892328933289432895328963289732898328993290032901329023290332904329053290632907329083290932910329113291232913329143291532916329173291832919329203292132922329233292432925329263292732928329293293032931329323293332934329353293632937329383293932940329413294232943329443294532946329473294832949329503295132952329533295432955329563295732958329593296032961329623296332964329653296632967329683296932970329713297232973329743297532976329773297832979329803298132982329833298432985329863298732988329893299032991329923299332994329953299632997329983299933000330013300233003330043300533006330073300833009330103301133012330133301433015330163301733018330193302033021330223302333024330253302633027330283302933030330313303233033330343303533036330373303833039330403304133042330433304433045330463304733048330493305033051330523305333054330553305633057330583305933060330613306233063330643306533066330673306833069330703307133072330733307433075330763307733078330793308033081330823308333084330853308633087330883308933090330913309233093330943309533096330973309833099331003310133102331033310433105331063310733108331093311033111331123311333114331153311633117331183311933120331213312233123331243312533126331273312833129331303313133132331333313433135331363313733138331393314033141331423314333144331453314633147331483314933150331513315233153331543315533156331573315833159331603316133162331633316433165331663316733168331693317033171331723317333174331753317633177331783317933180331813318233183331843318533186331873318833189331903319133192331933319433195331963319733198331993320033201332023320333204332053320633207332083320933210332113321233213332143321533216332173321833219332203322133222332233322433225332263322733228332293323033231332323323333234332353323633237332383323933240332413324233243332443324533246332473324833249332503325133252332533325433255332563325733258332593326033261332623326333264332653326633267332683326933270332713327233273332743327533276332773327833279332803328133282332833328433285332863328733288332893329033291332923329333294332953329633297332983329933300333013330233303333043330533306333073330833309333103331133312333133331433315333163331733318333193332033321333223332333324333253332633327333283332933330333313333233333333343333533336333373333833339333403334133342333433334433345333463334733348333493335033351333523335333354333553335633357333583335933360333613336233363333643336533366333673336833369333703337133372333733337433375333763337733378333793338033381333823338333384333853338633387333883338933390333913339233393333943339533396333973339833399334003340133402334033340433405334063340733408334093341033411334123341333414334153341633417334183341933420334213342233423334243342533426334273342833429334303343133432334333343433435334363343733438334393344033441334423344333444334453344633447334483344933450334513345233453334543345533456334573345833459334603346133462334633346433465334663346733468334693347033471334723347333474334753347633477334783347933480334813348233483334843348533486334873348833489334903349133492334933349433495334963349733498334993350033501335023350333504335053350633507335083350933510335113351233513335143351533516335173351833519335203352133522335233352433525335263352733528335293353033531335323353333534335353353633537335383353933540335413354233543335443354533546335473354833549335503355133552335533355433555335563355733558335593356033561335623356333564335653356633567335683356933570335713357233573335743357533576335773357833579335803358133582335833358433585335863358733588335893359033591335923359333594335953359633597335983359933600336013360233603336043360533606336073360833609336103361133612336133361433615336163361733618336193362033621336223362333624336253362633627336283362933630336313363233633336343363533636336373363833639336403364133642336433364433645336463364733648336493365033651336523365333654336553365633657336583365933660336613366233663336643366533666336673366833669336703367133672336733367433675336763367733678336793368033681336823368333684336853368633687336883368933690336913369233693336943369533696336973369833699337003370133702337033370433705337063370733708337093371033711337123371333714337153371633717337183371933720337213372233723337243372533726337273372833729337303373133732337333373433735337363373733738337393374033741337423374333744337453374633747337483374933750337513375233753337543375533756337573375833759337603376133762337633376433765337663376733768337693377033771337723377333774337753377633777337783377933780337813378233783337843378533786337873378833789337903379133792337933379433795337963379733798337993380033801338023380333804338053380633807338083380933810338113381233813338143381533816338173381833819338203382133822338233382433825338263382733828338293383033831338323383333834338353383633837338383383933840338413384233843338443384533846338473384833849338503385133852338533385433855338563385733858338593386033861338623386333864338653386633867338683386933870338713387233873338743387533876338773387833879338803388133882338833388433885338863388733888338893389033891338923389333894338953389633897338983389933900339013390233903339043390533906339073390833909339103391133912339133391433915339163391733918339193392033921339223392333924339253392633927339283392933930339313393233933339343393533936339373393833939339403394133942339433394433945339463394733948339493395033951339523395333954339553395633957339583395933960339613396233963339643396533966339673396833969339703397133972339733397433975339763397733978339793398033981339823398333984339853398633987339883398933990339913399233993339943399533996339973399833999340003400134002340033400434005340063400734008340093401034011340123401334014340153401634017340183401934020340213402234023340243402534026340273402834029340303403134032340333403434035340363403734038340393404034041340423404334044340453404634047340483404934050340513405234053340543405534056340573405834059340603406134062340633406434065340663406734068340693407034071340723407334074340753407634077340783407934080340813408234083340843408534086340873408834089340903409134092340933409434095340963409734098340993410034101341023410334104341053410634107341083410934110341113411234113341143411534116341173411834119341203412134122341233412434125341263412734128341293413034131341323413334134341353413634137341383413934140341413414234143341443414534146341473414834149341503415134152341533415434155341563415734158341593416034161341623416334164341653416634167341683416934170341713417234173341743417534176341773417834179341803418134182341833418434185341863418734188341893419034191341923419334194341953419634197341983419934200342013420234203342043420534206342073420834209342103421134212342133421434215342163421734218342193422034221342223422334224342253422634227342283422934230342313423234233342343423534236342373423834239342403424134242342433424434245342463424734248342493425034251342523425334254342553425634257342583425934260342613426234263342643426534266342673426834269342703427134272342733427434275342763427734278342793428034281342823428334284342853428634287342883428934290342913429234293342943429534296342973429834299343003430134302343033430434305343063430734308343093431034311343123431334314343153431634317343183431934320343213432234323343243432534326343273432834329343303433134332343333433434335343363433734338343393434034341343423434334344343453434634347343483434934350343513435234353343543435534356343573435834359343603436134362343633436434365343663436734368343693437034371343723437334374343753437634377343783437934380343813438234383343843438534386343873438834389343903439134392343933439434395343963439734398343993440034401344023440334404344053440634407344083440934410344113441234413344143441534416344173441834419344203442134422344233442434425344263442734428344293443034431344323443334434344353443634437344383443934440344413444234443344443444534446344473444834449344503445134452344533445434455344563445734458344593446034461344623446334464344653446634467344683446934470344713447234473344743447534476344773447834479344803448134482344833448434485344863448734488344893449034491344923449334494344953449634497344983449934500345013450234503345043450534506345073450834509345103451134512345133451434515345163451734518345193452034521345223452334524345253452634527345283452934530345313453234533345343453534536345373453834539345403454134542345433454434545345463454734548345493455034551345523455334554345553455634557345583455934560345613456234563345643456534566345673456834569345703457134572345733457434575345763457734578345793458034581345823458334584345853458634587345883458934590345913459234593345943459534596345973459834599346003460134602346033460434605346063460734608346093461034611346123461334614346153461634617346183461934620346213462234623346243462534626346273462834629346303463134632346333463434635346363463734638346393464034641346423464334644346453464634647346483464934650346513465234653346543465534656346573465834659346603466134662346633466434665346663466734668346693467034671346723467334674346753467634677346783467934680346813468234683346843468534686346873468834689346903469134692346933469434695346963469734698346993470034701347023470334704347053470634707347083470934710347113471234713347143471534716347173471834719347203472134722347233472434725347263472734728347293473034731347323473334734347353473634737347383473934740347413474234743347443474534746347473474834749347503475134752347533475434755347563475734758347593476034761347623476334764347653476634767347683476934770347713477234773347743477534776347773477834779347803478134782347833478434785347863478734788347893479034791347923479334794347953479634797347983479934800348013480234803348043480534806348073480834809348103481134812348133481434815348163481734818348193482034821348223482334824348253482634827348283482934830348313483234833348343483534836348373483834839348403484134842348433484434845348463484734848348493485034851348523485334854348553485634857348583485934860348613486234863348643486534866348673486834869348703487134872348733487434875348763487734878348793488034881348823488334884348853488634887348883488934890348913489234893348943489534896348973489834899349003490134902349033490434905349063490734908349093491034911349123491334914349153491634917349183491934920349213492234923349243492534926349273492834929349303493134932349333493434935349363493734938349393494034941349423494334944349453494634947349483494934950349513495234953349543495534956349573495834959349603496134962349633496434965349663496734968349693497034971349723497334974349753497634977349783497934980349813498234983349843498534986349873498834989349903499134992349933499434995349963499734998349993500035001350023500335004350053500635007350083500935010350113501235013350143501535016350173501835019350203502135022350233502435025350263502735028350293503035031350323503335034350353503635037350383503935040350413504235043350443504535046350473504835049350503505135052350533505435055350563505735058350593506035061350623506335064350653506635067350683506935070350713507235073350743507535076350773507835079350803508135082350833508435085350863508735088350893509035091350923509335094350953509635097350983509935100351013510235103351043510535106351073510835109351103511135112351133511435115351163511735118351193512035121351223512335124351253512635127351283512935130351313513235133351343513535136351373513835139351403514135142351433514435145351463514735148351493515035151351523515335154351553515635157351583515935160351613516235163351643516535166351673516835169351703517135172351733517435175351763517735178351793518035181351823518335184351853518635187351883518935190351913519235193351943519535196351973519835199352003520135202352033520435205352063520735208352093521035211352123521335214352153521635217352183521935220352213522235223352243522535226352273522835229352303523135232352333523435235352363523735238352393524035241352423524335244352453524635247352483524935250352513525235253352543525535256352573525835259352603526135262352633526435265352663526735268352693527035271352723527335274352753527635277352783527935280352813528235283352843528535286352873528835289352903529135292352933529435295352963529735298352993530035301353023530335304353053530635307353083530935310353113531235313353143531535316353173531835319353203532135322353233532435325353263532735328353293533035331353323533335334353353533635337353383533935340353413534235343353443534535346353473534835349353503535135352353533535435355353563535735358353593536035361353623536335364353653536635367353683536935370353713537235373353743537535376353773537835379353803538135382353833538435385353863538735388353893539035391353923539335394353953539635397353983539935400354013540235403354043540535406354073540835409354103541135412354133541435415354163541735418354193542035421354223542335424354253542635427354283542935430354313543235433354343543535436354373543835439354403544135442354433544435445354463544735448354493545035451354523545335454354553545635457354583545935460354613546235463354643546535466354673546835469354703547135472354733547435475354763547735478354793548035481354823548335484354853548635487354883548935490354913549235493354943549535496354973549835499355003550135502355033550435505355063550735508355093551035511355123551335514355153551635517355183551935520355213552235523355243552535526355273552835529355303553135532355333553435535355363553735538355393554035541355423554335544355453554635547355483554935550355513555235553355543555535556355573555835559355603556135562355633556435565355663556735568355693557035571355723557335574355753557635577355783557935580355813558235583355843558535586355873558835589355903559135592355933559435595355963559735598355993560035601356023560335604356053560635607356083560935610356113561235613356143561535616356173561835619356203562135622356233562435625356263562735628356293563035631356323563335634356353563635637356383563935640356413564235643356443564535646356473564835649356503565135652356533565435655356563565735658356593566035661356623566335664356653566635667356683566935670356713567235673356743567535676356773567835679356803568135682356833568435685356863568735688356893569035691356923569335694356953569635697356983569935700357013570235703357043570535706357073570835709357103571135712357133571435715357163571735718357193572035721357223572335724357253572635727357283572935730357313573235733357343573535736357373573835739357403574135742357433574435745357463574735748357493575035751357523575335754357553575635757357583575935760357613576235763357643576535766357673576835769357703577135772357733577435775357763577735778357793578035781357823578335784357853578635787357883578935790357913579235793357943579535796357973579835799358003580135802358033580435805358063580735808358093581035811358123581335814358153581635817358183581935820358213582235823358243582535826358273582835829358303583135832358333583435835358363583735838358393584035841358423584335844358453584635847358483584935850358513585235853358543585535856358573585835859358603586135862358633586435865358663586735868358693587035871358723587335874358753587635877358783587935880358813588235883358843588535886358873588835889358903589135892358933589435895358963589735898358993590035901359023590335904359053590635907359083590935910359113591235913359143591535916359173591835919359203592135922359233592435925359263592735928359293593035931359323593335934359353593635937359383593935940359413594235943359443594535946359473594835949359503595135952359533595435955359563595735958359593596035961359623596335964359653596635967359683596935970359713597235973359743597535976359773597835979359803598135982359833598435985359863598735988359893599035991359923599335994359953599635997359983599936000360013600236003360043600536006360073600836009360103601136012360133601436015360163601736018360193602036021360223602336024360253602636027360283602936030360313603236033360343603536036360373603836039360403604136042360433604436045360463604736048360493605036051360523605336054360553605636057360583605936060360613606236063360643606536066360673606836069360703607136072360733607436075360763607736078360793608036081360823608336084360853608636087360883608936090360913609236093360943609536096360973609836099361003610136102361033610436105361063610736108361093611036111361123611336114361153611636117361183611936120361213612236123361243612536126361273612836129361303613136132361333613436135361363613736138361393614036141361423614336144361453614636147361483614936150361513615236153361543615536156361573615836159361603616136162361633616436165361663616736168361693617036171361723617336174361753617636177361783617936180361813618236183361843618536186361873618836189361903619136192361933619436195361963619736198361993620036201362023620336204362053620636207362083620936210362113621236213362143621536216362173621836219362203622136222362233622436225362263622736228362293623036231362323623336234362353623636237362383623936240362413624236243362443624536246362473624836249362503625136252362533625436255362563625736258362593626036261362623626336264362653626636267362683626936270362713627236273362743627536276362773627836279362803628136282362833628436285362863628736288362893629036291362923629336294362953629636297362983629936300363013630236303363043630536306363073630836309363103631136312363133631436315363163631736318363193632036321363223632336324363253632636327363283632936330363313633236333363343633536336363373633836339363403634136342363433634436345363463634736348363493635036351363523635336354363553635636357363583635936360363613636236363363643636536366363673636836369363703637136372363733637436375363763637736378363793638036381363823638336384363853638636387363883638936390363913639236393363943639536396363973639836399364003640136402364033640436405364063640736408364093641036411364123641336414364153641636417364183641936420364213642236423364243642536426364273642836429364303643136432364333643436435364363643736438364393644036441364423644336444364453644636447364483644936450364513645236453364543645536456364573645836459364603646136462364633646436465364663646736468364693647036471364723647336474364753647636477364783647936480364813648236483364843648536486364873648836489364903649136492364933649436495364963649736498364993650036501365023650336504365053650636507365083650936510365113651236513365143651536516365173651836519365203652136522365233652436525365263652736528365293653036531365323653336534365353653636537365383653936540365413654236543365443654536546365473654836549365503655136552365533655436555365563655736558365593656036561365623656336564365653656636567365683656936570365713657236573365743657536576365773657836579365803658136582365833658436585365863658736588365893659036591365923659336594365953659636597365983659936600366013660236603366043660536606366073660836609366103661136612366133661436615366163661736618366193662036621366223662336624366253662636627366283662936630366313663236633366343663536636366373663836639366403664136642366433664436645366463664736648366493665036651366523665336654366553665636657366583665936660366613666236663366643666536666366673666836669366703667136672366733667436675366763667736678366793668036681366823668336684366853668636687366883668936690366913669236693366943669536696366973669836699367003670136702367033670436705367063670736708367093671036711367123671336714367153671636717367183671936720367213672236723367243672536726367273672836729367303673136732367333673436735367363673736738367393674036741367423674336744367453674636747367483674936750367513675236753367543675536756367573675836759367603676136762367633676436765367663676736768367693677036771367723677336774367753677636777367783677936780367813678236783367843678536786367873678836789367903679136792367933679436795367963679736798367993680036801368023680336804368053680636807368083680936810368113681236813368143681536816368173681836819368203682136822368233682436825368263682736828368293683036831368323683336834368353683636837368383683936840368413684236843368443684536846368473684836849368503685136852368533685436855368563685736858368593686036861368623686336864368653686636867368683686936870368713687236873368743687536876368773687836879368803688136882368833688436885368863688736888368893689036891368923689336894368953689636897368983689936900369013690236903369043690536906369073690836909369103691136912369133691436915369163691736918369193692036921369223692336924369253692636927369283692936930369313693236933369343693536936369373693836939369403694136942369433694436945369463694736948369493695036951369523695336954369553695636957369583695936960369613696236963369643696536966369673696836969369703697136972369733697436975369763697736978369793698036981369823698336984369853698636987369883698936990369913699236993369943699536996369973699836999370003700137002370033700437005370063700737008370093701037011370123701337014370153701637017370183701937020370213702237023370243702537026370273702837029370303703137032370333703437035370363703737038370393704037041370423704337044370453704637047370483704937050370513705237053370543705537056370573705837059370603706137062370633706437065370663706737068370693707037071370723707337074370753707637077370783707937080370813708237083370843708537086370873708837089370903709137092370933709437095370963709737098370993710037101371023710337104371053710637107371083710937110371113711237113371143711537116371173711837119371203712137122371233712437125371263712737128371293713037131371323713337134371353713637137371383713937140371413714237143371443714537146371473714837149371503715137152371533715437155371563715737158371593716037161371623716337164371653716637167371683716937170371713717237173371743717537176371773717837179371803718137182371833718437185371863718737188371893719037191371923719337194371953719637197371983719937200372013720237203372043720537206372073720837209372103721137212372133721437215372163721737218372193722037221372223722337224372253722637227372283722937230372313723237233372343723537236372373723837239372403724137242372433724437245372463724737248372493725037251372523725337254372553725637257372583725937260372613726237263372643726537266372673726837269372703727137272372733727437275372763727737278372793728037281372823728337284372853728637287372883728937290372913729237293372943729537296372973729837299373003730137302373033730437305373063730737308373093731037311373123731337314373153731637317373183731937320373213732237323373243732537326373273732837329373303733137332373333733437335373363733737338373393734037341373423734337344373453734637347373483734937350373513735237353373543735537356373573735837359373603736137362373633736437365373663736737368373693737037371373723737337374373753737637377373783737937380373813738237383373843738537386373873738837389373903739137392373933739437395373963739737398373993740037401374023740337404374053740637407374083740937410374113741237413374143741537416374173741837419374203742137422374233742437425374263742737428374293743037431374323743337434374353743637437374383743937440374413744237443374443744537446374473744837449374503745137452374533745437455374563745737458374593746037461374623746337464374653746637467374683746937470374713747237473374743747537476374773747837479374803748137482374833748437485374863748737488374893749037491374923749337494374953749637497374983749937500375013750237503375043750537506375073750837509375103751137512375133751437515375163751737518375193752037521375223752337524375253752637527375283752937530375313753237533375343753537536375373753837539375403754137542375433754437545375463754737548375493755037551375523755337554375553755637557375583755937560375613756237563375643756537566375673756837569375703757137572375733757437575375763757737578375793758037581375823758337584375853758637587375883758937590375913759237593375943759537596375973759837599376003760137602376033760437605376063760737608376093761037611376123761337614376153761637617376183761937620376213762237623376243762537626376273762837629376303763137632376333763437635376363763737638376393764037641376423764337644376453764637647376483764937650376513765237653376543765537656376573765837659376603766137662376633766437665376663766737668376693767037671376723767337674376753767637677376783767937680376813768237683376843768537686376873768837689376903769137692376933769437695376963769737698376993770037701377023770337704377053770637707377083770937710377113771237713377143771537716377173771837719377203772137722377233772437725377263772737728377293773037731377323773337734377353773637737377383773937740377413774237743377443774537746377473774837749377503775137752377533775437755377563775737758377593776037761377623776337764377653776637767377683776937770377713777237773377743777537776377773777837779377803778137782377833778437785377863778737788377893779037791377923779337794377953779637797377983779937800378013780237803378043780537806378073780837809378103781137812378133781437815378163781737818378193782037821378223782337824378253782637827378283782937830378313783237833378343783537836378373783837839378403784137842378433784437845378463784737848378493785037851378523785337854378553785637857378583785937860378613786237863378643786537866378673786837869378703787137872378733787437875378763787737878378793788037881378823788337884378853788637887378883788937890378913789237893378943789537896378973789837899379003790137902379033790437905379063790737908379093791037911379123791337914379153791637917379183791937920379213792237923379243792537926379273792837929379303793137932379333793437935379363793737938379393794037941379423794337944379453794637947379483794937950379513795237953379543795537956379573795837959379603796137962379633796437965379663796737968379693797037971379723797337974379753797637977379783797937980379813798237983379843798537986379873798837989379903799137992379933799437995379963799737998379993800038001380023800338004380053800638007380083800938010380113801238013380143801538016380173801838019380203802138022380233802438025380263802738028380293803038031380323803338034380353803638037380383803938040380413804238043380443804538046380473804838049380503805138052380533805438055380563805738058380593806038061380623806338064380653806638067380683806938070380713807238073380743807538076380773807838079380803808138082380833808438085380863808738088380893809038091380923809338094380953809638097380983809938100381013810238103381043810538106381073810838109381103811138112381133811438115381163811738118381193812038121381223812338124381253812638127381283812938130381313813238133381343813538136381373813838139381403814138142381433814438145381463814738148381493815038151381523815338154381553815638157381583815938160381613816238163381643816538166381673816838169381703817138172381733817438175381763817738178381793818038181381823818338184381853818638187381883818938190381913819238193381943819538196381973819838199382003820138202382033820438205382063820738208382093821038211382123821338214382153821638217382183821938220382213822238223382243822538226382273822838229382303823138232382333823438235382363823738238382393824038241382423824338244382453824638247382483824938250382513825238253382543825538256382573825838259382603826138262382633826438265382663826738268382693827038271382723827338274382753827638277382783827938280382813828238283382843828538286382873828838289382903829138292382933829438295382963829738298382993830038301383023830338304383053830638307383083830938310383113831238313383143831538316383173831838319383203832138322383233832438325383263832738328383293833038331383323833338334383353833638337383383833938340383413834238343383443834538346383473834838349383503835138352383533835438355383563835738358383593836038361383623836338364383653836638367383683836938370383713837238373383743837538376383773837838379383803838138382383833838438385383863838738388383893839038391383923839338394383953839638397383983839938400384013840238403384043840538406384073840838409384103841138412384133841438415384163841738418384193842038421384223842338424384253842638427384283842938430384313843238433384343843538436384373843838439384403844138442384433844438445384463844738448384493845038451384523845338454384553845638457384583845938460384613846238463384643846538466384673846838469384703847138472384733847438475384763847738478384793848038481384823848338484384853848638487384883848938490384913849238493384943849538496384973849838499385003850138502385033850438505385063850738508385093851038511385123851338514385153851638517385183851938520385213852238523385243852538526385273852838529385303853138532385333853438535385363853738538385393854038541385423854338544385453854638547385483854938550385513855238553385543855538556385573855838559385603856138562385633856438565385663856738568385693857038571385723857338574385753857638577385783857938580385813858238583385843858538586385873858838589385903859138592385933859438595385963859738598385993860038601386023860338604386053860638607386083860938610386113861238613386143861538616386173861838619386203862138622386233862438625386263862738628386293863038631386323863338634386353863638637386383863938640386413864238643386443864538646386473864838649386503865138652386533865438655386563865738658386593866038661386623866338664386653866638667386683866938670386713867238673386743867538676386773867838679386803868138682386833868438685386863868738688386893869038691386923869338694386953869638697386983869938700387013870238703387043870538706387073870838709387103871138712387133871438715387163871738718387193872038721387223872338724387253872638727387283872938730387313873238733387343873538736387373873838739387403874138742387433874438745387463874738748387493875038751387523875338754387553875638757387583875938760387613876238763387643876538766387673876838769387703877138772387733877438775387763877738778387793878038781387823878338784387853878638787387883878938790387913879238793387943879538796387973879838799388003880138802388033880438805388063880738808388093881038811388123881338814388153881638817388183881938820388213882238823388243882538826388273882838829388303883138832388333883438835388363883738838388393884038841388423884338844388453884638847388483884938850388513885238853388543885538856388573885838859388603886138862388633886438865388663886738868388693887038871388723887338874388753887638877388783887938880388813888238883388843888538886388873888838889388903889138892388933889438895388963889738898388993890038901389023890338904389053890638907389083890938910389113891238913389143891538916389173891838919389203892138922389233892438925389263892738928389293893038931389323893338934389353893638937389383893938940389413894238943389443894538946389473894838949389503895138952389533895438955389563895738958389593896038961389623896338964389653896638967389683896938970389713897238973389743897538976389773897838979389803898138982389833898438985389863898738988389893899038991389923899338994389953899638997389983899939000390013900239003390043900539006390073900839009390103901139012390133901439015390163901739018390193902039021390223902339024390253902639027390283902939030390313903239033390343903539036390373903839039390403904139042390433904439045390463904739048390493905039051390523905339054390553905639057390583905939060390613906239063390643906539066390673906839069390703907139072390733907439075390763907739078390793908039081390823908339084390853908639087390883908939090390913909239093390943909539096390973909839099391003910139102391033910439105391063910739108391093911039111391123911339114391153911639117391183911939120391213912239123391243912539126391273912839129391303913139132391333913439135391363913739138391393914039141391423914339144391453914639147391483914939150391513915239153391543915539156391573915839159391603916139162391633916439165391663916739168391693917039171391723917339174391753917639177391783917939180391813918239183391843918539186391873918839189391903919139192391933919439195391963919739198391993920039201392023920339204392053920639207392083920939210392113921239213392143921539216392173921839219392203922139222392233922439225392263922739228392293923039231392323923339234392353923639237392383923939240392413924239243392443924539246392473924839249392503925139252392533925439255392563925739258392593926039261392623926339264392653926639267392683926939270392713927239273392743927539276392773927839279392803928139282392833928439285392863928739288392893929039291392923929339294392953929639297392983929939300393013930239303393043930539306393073930839309393103931139312393133931439315393163931739318393193932039321393223932339324393253932639327393283932939330393313933239333393343933539336393373933839339393403934139342393433934439345393463934739348393493935039351393523935339354393553935639357393583935939360393613936239363393643936539366393673936839369393703937139372393733937439375393763937739378393793938039381393823938339384393853938639387393883938939390393913939239393393943939539396393973939839399394003940139402394033940439405394063940739408394093941039411394123941339414394153941639417394183941939420394213942239423394243942539426394273942839429394303943139432394333943439435394363943739438394393944039441394423944339444394453944639447394483944939450394513945239453394543945539456394573945839459394603946139462394633946439465394663946739468394693947039471394723947339474394753947639477394783947939480394813948239483394843948539486394873948839489394903949139492394933949439495394963949739498394993950039501395023950339504395053950639507395083950939510395113951239513395143951539516395173951839519395203952139522395233952439525395263952739528395293953039531395323953339534395353953639537395383953939540395413954239543395443954539546395473954839549395503955139552395533955439555395563955739558395593956039561395623956339564395653956639567395683956939570395713957239573395743957539576395773957839579395803958139582395833958439585395863958739588395893959039591395923959339594395953959639597395983959939600396013960239603396043960539606396073960839609396103961139612396133961439615396163961739618396193962039621396223962339624396253962639627396283962939630396313963239633396343963539636396373963839639396403964139642396433964439645396463964739648396493965039651396523965339654396553965639657396583965939660396613966239663396643966539666396673966839669396703967139672396733967439675396763967739678396793968039681396823968339684396853968639687396883968939690396913969239693396943969539696396973969839699397003970139702397033970439705397063970739708397093971039711397123971339714397153971639717397183971939720397213972239723397243972539726397273972839729397303973139732397333973439735397363973739738397393974039741397423974339744397453974639747397483974939750397513975239753397543975539756397573975839759397603976139762397633976439765397663976739768397693977039771397723977339774397753977639777397783977939780397813978239783397843978539786397873978839789397903979139792397933979439795397963979739798397993980039801398023980339804398053980639807398083980939810398113981239813398143981539816398173981839819398203982139822398233982439825398263982739828398293983039831398323983339834398353983639837398383983939840398413984239843398443984539846398473984839849398503985139852398533985439855398563985739858398593986039861398623986339864398653986639867398683986939870398713987239873398743987539876398773987839879398803988139882398833988439885398863988739888398893989039891398923989339894398953989639897398983989939900399013990239903399043990539906399073990839909399103991139912399133991439915399163991739918399193992039921399223992339924399253992639927399283992939930399313993239933399343993539936399373993839939399403994139942399433994439945399463994739948399493995039951399523995339954399553995639957399583995939960399613996239963399643996539966399673996839969399703997139972399733997439975399763997739978399793998039981399823998339984399853998639987399883998939990399913999239993399943999539996399973999839999400004000140002400034000440005400064000740008400094001040011400124001340014400154001640017400184001940020400214002240023400244002540026400274002840029400304003140032400334003440035400364003740038400394004040041400424004340044400454004640047400484004940050400514005240053400544005540056400574005840059400604006140062400634006440065400664006740068400694007040071400724007340074400754007640077400784007940080400814008240083400844008540086400874008840089400904009140092400934009440095400964009740098400994010040101401024010340104401054010640107401084010940110401114011240113401144011540116401174011840119401204012140122401234012440125401264012740128401294013040131401324013340134401354013640137401384013940140401414014240143401444014540146401474014840149401504015140152401534015440155401564015740158401594016040161401624016340164401654016640167401684016940170401714017240173401744017540176401774017840179401804018140182401834018440185401864018740188401894019040191401924019340194401954019640197401984019940200402014020240203402044020540206402074020840209402104021140212402134021440215402164021740218402194022040221402224022340224402254022640227402284022940230402314023240233402344023540236402374023840239402404024140242402434024440245402464024740248402494025040251402524025340254402554025640257402584025940260402614026240263402644026540266402674026840269402704027140272402734027440275402764027740278402794028040281402824028340284402854028640287402884028940290402914029240293402944029540296402974029840299403004030140302403034030440305403064030740308403094031040311403124031340314403154031640317403184031940320403214032240323403244032540326403274032840329403304033140332403334033440335403364033740338403394034040341403424034340344403454034640347403484034940350403514035240353403544035540356403574035840359403604036140362403634036440365403664036740368403694037040371403724037340374403754037640377403784037940380403814038240383403844038540386403874038840389403904039140392403934039440395403964039740398403994040040401404024040340404404054040640407404084040940410404114041240413404144041540416404174041840419404204042140422404234042440425404264042740428404294043040431404324043340434404354043640437404384043940440404414044240443404444044540446404474044840449404504045140452404534045440455404564045740458404594046040461404624046340464404654046640467404684046940470404714047240473404744047540476404774047840479404804048140482404834048440485404864048740488404894049040491404924049340494404954049640497404984049940500405014050240503405044050540506405074050840509405104051140512405134051440515405164051740518405194052040521405224052340524405254052640527405284052940530405314053240533405344053540536405374053840539405404054140542405434054440545405464054740548405494055040551405524055340554405554055640557405584055940560405614056240563405644056540566405674056840569405704057140572405734057440575405764057740578405794058040581405824058340584405854058640587405884058940590405914059240593405944059540596405974059840599406004060140602406034060440605406064060740608406094061040611406124061340614406154061640617406184061940620406214062240623406244062540626406274062840629406304063140632406334063440635406364063740638406394064040641406424064340644406454064640647406484064940650406514065240653406544065540656406574065840659406604066140662406634066440665406664066740668406694067040671406724067340674406754067640677406784067940680406814068240683406844068540686406874068840689406904069140692406934069440695406964069740698406994070040701407024070340704407054070640707407084070940710407114071240713407144071540716407174071840719407204072140722407234072440725407264072740728407294073040731407324073340734407354073640737407384073940740407414074240743407444074540746407474074840749407504075140752407534075440755407564075740758407594076040761407624076340764407654076640767407684076940770407714077240773407744077540776407774077840779407804078140782407834078440785407864078740788407894079040791407924079340794407954079640797407984079940800408014080240803408044080540806408074080840809408104081140812408134081440815408164081740818408194082040821408224082340824408254082640827408284082940830408314083240833408344083540836408374083840839408404084140842408434084440845408464084740848408494085040851408524085340854408554085640857408584085940860408614086240863408644086540866408674086840869408704087140872408734087440875408764087740878408794088040881408824088340884408854088640887408884088940890408914089240893408944089540896408974089840899409004090140902409034090440905409064090740908409094091040911409124091340914409154091640917409184091940920409214092240923409244092540926409274092840929409304093140932409334093440935409364093740938409394094040941409424094340944409454094640947409484094940950409514095240953409544095540956409574095840959409604096140962409634096440965409664096740968409694097040971409724097340974409754097640977409784097940980409814098240983409844098540986409874098840989409904099140992409934099440995409964099740998409994100041001410024100341004410054100641007410084100941010410114101241013410144101541016410174101841019410204102141022410234102441025410264102741028410294103041031410324103341034410354103641037410384103941040410414104241043410444104541046410474104841049410504105141052410534105441055410564105741058410594106041061410624106341064410654106641067410684106941070410714107241073410744107541076410774107841079410804108141082410834108441085410864108741088410894109041091410924109341094410954109641097410984109941100411014110241103411044110541106411074110841109411104111141112411134111441115411164111741118411194112041121411224112341124411254112641127411284112941130411314113241133411344113541136411374113841139411404114141142411434114441145411464114741148411494115041151411524115341154411554115641157411584115941160411614116241163411644116541166411674116841169411704117141172411734117441175411764117741178411794118041181411824118341184411854118641187411884118941190411914119241193411944119541196411974119841199412004120141202412034120441205412064120741208412094121041211412124121341214412154121641217412184121941220412214122241223412244122541226412274122841229412304123141232412334123441235412364123741238412394124041241412424124341244412454124641247412484124941250412514125241253412544125541256412574125841259412604126141262412634126441265412664126741268412694127041271412724127341274412754127641277412784127941280412814128241283412844128541286412874128841289412904129141292412934129441295412964129741298412994130041301413024130341304413054130641307413084130941310413114131241313413144131541316413174131841319413204132141322413234132441325413264132741328413294133041331413324133341334413354133641337413384133941340413414134241343413444134541346413474134841349413504135141352413534135441355413564135741358413594136041361413624136341364413654136641367413684136941370413714137241373413744137541376413774137841379413804138141382413834138441385413864138741388413894139041391413924139341394413954139641397413984139941400414014140241403414044140541406414074140841409414104141141412414134141441415414164141741418414194142041421414224142341424414254142641427414284142941430414314143241433414344143541436414374143841439414404144141442414434144441445414464144741448414494145041451414524145341454414554145641457414584145941460414614146241463414644146541466414674146841469414704147141472414734147441475414764147741478414794148041481414824148341484414854148641487414884148941490414914149241493414944149541496414974149841499415004150141502415034150441505415064150741508415094151041511415124151341514415154151641517415184151941520415214152241523415244152541526415274152841529415304153141532415334153441535415364153741538415394154041541415424154341544415454154641547415484154941550415514155241553415544155541556415574155841559415604156141562415634156441565415664156741568415694157041571415724157341574415754157641577415784157941580415814158241583415844158541586415874158841589415904159141592415934159441595415964159741598415994160041601416024160341604416054160641607416084160941610416114161241613416144161541616416174161841619416204162141622416234162441625416264162741628416294163041631416324163341634416354163641637416384163941640416414164241643416444164541646416474164841649416504165141652416534165441655416564165741658416594166041661416624166341664416654166641667416684166941670416714167241673416744167541676416774167841679416804168141682416834168441685416864168741688416894169041691416924169341694416954169641697416984169941700417014170241703417044170541706417074170841709417104171141712417134171441715417164171741718417194172041721417224172341724417254172641727417284172941730417314173241733417344173541736417374173841739417404174141742417434174441745417464174741748417494175041751417524175341754417554175641757417584175941760417614176241763417644176541766417674176841769417704177141772417734177441775417764177741778417794178041781417824178341784417854178641787417884178941790417914179241793417944179541796417974179841799418004180141802418034180441805418064180741808418094181041811418124181341814418154181641817418184181941820418214182241823418244182541826418274182841829418304183141832418334183441835418364183741838418394184041841418424184341844418454184641847418484184941850418514185241853418544185541856418574185841859418604186141862418634186441865418664186741868418694187041871418724187341874418754187641877418784187941880418814188241883418844188541886418874188841889418904189141892418934189441895418964189741898418994190041901419024190341904419054190641907419084190941910419114191241913419144191541916419174191841919419204192141922419234192441925419264192741928419294193041931419324193341934419354193641937419384193941940419414194241943419444194541946419474194841949419504195141952419534195441955419564195741958419594196041961419624196341964419654196641967419684196941970419714197241973419744197541976419774197841979419804198141982419834198441985419864198741988419894199041991419924199341994419954199641997419984199942000420014200242003420044200542006420074200842009420104201142012420134201442015420164201742018420194202042021420224202342024420254202642027420284202942030420314203242033420344203542036420374203842039420404204142042420434204442045420464204742048420494205042051420524205342054420554205642057420584205942060420614206242063420644206542066420674206842069420704207142072420734207442075420764207742078420794208042081420824208342084420854208642087420884208942090420914209242093420944209542096420974209842099421004210142102421034210442105421064210742108421094211042111421124211342114421154211642117421184211942120421214212242123421244212542126421274212842129421304213142132421334213442135421364213742138421394214042141421424214342144421454214642147421484214942150421514215242153421544215542156421574215842159421604216142162421634216442165421664216742168421694217042171421724217342174421754217642177421784217942180421814218242183421844218542186421874218842189421904219142192421934219442195421964219742198421994220042201422024220342204422054220642207422084220942210422114221242213422144221542216422174221842219422204222142222422234222442225422264222742228422294223042231422324223342234422354223642237422384223942240422414224242243422444224542246422474224842249422504225142252422534225442255422564225742258422594226042261422624226342264422654226642267422684226942270422714227242273422744227542276422774227842279422804228142282422834228442285422864228742288422894229042291422924229342294422954229642297422984229942300423014230242303423044230542306423074230842309423104231142312423134231442315423164231742318423194232042321423224232342324423254232642327423284232942330423314233242333423344233542336423374233842339423404234142342423434234442345423464234742348423494235042351423524235342354423554235642357423584235942360423614236242363423644236542366423674236842369423704237142372423734237442375423764237742378423794238042381423824238342384423854238642387423884238942390423914239242393423944239542396423974239842399424004240142402424034240442405424064240742408424094241042411424124241342414424154241642417424184241942420424214242242423424244242542426424274242842429424304243142432424334243442435424364243742438424394244042441424424244342444424454244642447424484244942450424514245242453424544245542456424574245842459424604246142462424634246442465424664246742468424694247042471424724247342474424754247642477424784247942480424814248242483424844248542486424874248842489424904249142492424934249442495424964249742498424994250042501425024250342504425054250642507425084250942510425114251242513425144251542516425174251842519425204252142522425234252442525425264252742528425294253042531425324253342534425354253642537425384253942540425414254242543425444254542546425474254842549425504255142552425534255442555425564255742558425594256042561425624256342564425654256642567425684256942570425714257242573425744257542576425774257842579425804258142582425834258442585425864258742588425894259042591425924259342594425954259642597425984259942600426014260242603426044260542606426074260842609426104261142612426134261442615426164261742618426194262042621426224262342624426254262642627426284262942630426314263242633426344263542636426374263842639426404264142642426434264442645426464264742648426494265042651426524265342654426554265642657426584265942660426614266242663426644266542666426674266842669426704267142672426734267442675426764267742678426794268042681426824268342684426854268642687426884268942690426914269242693426944269542696426974269842699427004270142702427034270442705427064270742708427094271042711427124271342714427154271642717427184271942720427214272242723427244272542726427274272842729427304273142732427334273442735427364273742738427394274042741427424274342744427454274642747427484274942750427514275242753427544275542756427574275842759427604276142762427634276442765427664276742768427694277042771427724277342774427754277642777427784277942780427814278242783427844278542786427874278842789427904279142792427934279442795427964279742798427994280042801428024280342804428054280642807428084280942810428114281242813428144281542816428174281842819428204282142822428234282442825428264282742828428294283042831428324283342834428354283642837428384283942840428414284242843428444284542846428474284842849428504285142852428534285442855428564285742858428594286042861428624286342864428654286642867428684286942870428714287242873428744287542876428774287842879428804288142882428834288442885428864288742888428894289042891428924289342894428954289642897428984289942900429014290242903429044290542906429074290842909429104291142912429134291442915429164291742918429194292042921429224292342924429254292642927429284292942930429314293242933429344293542936429374293842939429404294142942429434294442945429464294742948429494295042951429524295342954429554295642957429584295942960429614296242963429644296542966429674296842969429704297142972429734297442975429764297742978429794298042981429824298342984429854298642987429884298942990429914299242993429944299542996429974299842999430004300143002430034300443005430064300743008430094301043011430124301343014430154301643017430184301943020430214302243023430244302543026430274302843029430304303143032430334303443035430364303743038430394304043041430424304343044430454304643047430484304943050430514305243053430544305543056430574305843059430604306143062430634306443065430664306743068430694307043071430724307343074430754307643077430784307943080430814308243083430844308543086430874308843089430904309143092430934309443095430964309743098430994310043101431024310343104431054310643107431084310943110431114311243113431144311543116431174311843119431204312143122431234312443125431264312743128431294313043131431324313343134431354313643137431384313943140431414314243143431444314543146431474314843149431504315143152431534315443155431564315743158431594316043161431624316343164431654316643167431684316943170431714317243173431744317543176431774317843179431804318143182431834318443185431864318743188431894319043191431924319343194431954319643197431984319943200432014320243203432044320543206432074320843209432104321143212432134321443215432164321743218432194322043221432224322343224432254322643227432284322943230432314323243233432344323543236432374323843239432404324143242432434324443245432464324743248432494325043251432524325343254432554325643257432584325943260432614326243263432644326543266432674326843269432704327143272432734327443275432764327743278432794328043281432824328343284432854328643287432884328943290432914329243293432944329543296432974329843299433004330143302433034330443305433064330743308433094331043311433124331343314433154331643317433184331943320433214332243323433244332543326433274332843329433304333143332433334333443335433364333743338433394334043341433424334343344433454334643347433484334943350433514335243353433544335543356433574335843359433604336143362433634336443365433664336743368433694337043371433724337343374433754337643377433784337943380433814338243383433844338543386433874338843389433904339143392433934339443395433964339743398433994340043401434024340343404434054340643407434084340943410434114341243413434144341543416434174341843419434204342143422434234342443425434264342743428434294343043431434324343343434434354343643437434384343943440434414344243443434444344543446434474344843449434504345143452434534345443455434564345743458434594346043461434624346343464434654346643467434684346943470434714347243473434744347543476434774347843479434804348143482434834348443485434864348743488434894349043491434924349343494434954349643497434984349943500435014350243503435044350543506435074350843509435104351143512435134351443515435164351743518435194352043521435224352343524435254352643527435284352943530435314353243533435344353543536435374353843539435404354143542435434354443545435464354743548435494355043551435524355343554435554355643557435584355943560435614356243563435644356543566435674356843569435704357143572435734357443575435764357743578435794358043581435824358343584435854358643587435884358943590435914359243593435944359543596435974359843599436004360143602436034360443605436064360743608436094361043611436124361343614436154361643617436184361943620436214362243623436244362543626436274362843629436304363143632436334363443635436364363743638436394364043641436424364343644436454364643647436484364943650436514365243653436544365543656436574365843659436604366143662436634366443665436664366743668436694367043671436724367343674436754367643677436784367943680436814368243683436844368543686436874368843689436904369143692436934369443695436964369743698436994370043701437024370343704437054370643707437084370943710437114371243713437144371543716437174371843719437204372143722437234372443725437264372743728437294373043731437324373343734437354373643737437384373943740437414374243743437444374543746437474374843749437504375143752437534375443755437564375743758437594376043761437624376343764437654376643767437684376943770437714377243773437744377543776437774377843779437804378143782437834378443785437864378743788437894379043791437924379343794437954379643797437984379943800438014380243803438044380543806438074380843809438104381143812438134381443815438164381743818438194382043821438224382343824438254382643827438284382943830438314383243833438344383543836438374383843839438404384143842438434384443845438464384743848438494385043851438524385343854438554385643857438584385943860438614386243863438644386543866438674386843869438704387143872438734387443875438764387743878438794388043881438824388343884438854388643887438884388943890438914389243893438944389543896438974389843899439004390143902439034390443905439064390743908439094391043911439124391343914439154391643917439184391943920439214392243923439244392543926439274392843929439304393143932439334393443935439364393743938439394394043941439424394343944439454394643947439484394943950439514395243953439544395543956439574395843959439604396143962439634396443965439664396743968439694397043971439724397343974439754397643977439784397943980439814398243983439844398543986439874398843989439904399143992439934399443995439964399743998439994400044001440024400344004440054400644007440084400944010440114401244013440144401544016440174401844019440204402144022440234402444025440264402744028440294403044031440324403344034440354403644037440384403944040440414404244043440444404544046440474404844049440504405144052440534405444055440564405744058440594406044061440624406344064440654406644067440684406944070440714407244073440744407544076440774407844079440804408144082440834408444085440864408744088440894409044091440924409344094440954409644097440984409944100441014410244103441044410544106441074410844109441104411144112441134411444115441164411744118441194412044121441224412344124441254412644127441284412944130441314413244133441344413544136441374413844139441404414144142441434414444145441464414744148441494415044151441524415344154441554415644157441584415944160441614416244163441644416544166441674416844169441704417144172441734417444175441764417744178441794418044181441824418344184441854418644187441884418944190441914419244193441944419544196441974419844199442004420144202442034420444205442064420744208442094421044211442124421344214442154421644217442184421944220442214422244223442244422544226442274422844229442304423144232442334423444235442364423744238442394424044241442424424344244442454424644247442484424944250442514425244253442544425544256442574425844259442604426144262442634426444265442664426744268442694427044271442724427344274442754427644277442784427944280442814428244283442844428544286442874428844289442904429144292442934429444295442964429744298442994430044301443024430344304443054430644307443084430944310443114431244313443144431544316443174431844319443204432144322443234432444325443264432744328443294433044331443324433344334443354433644337443384433944340443414434244343443444434544346443474434844349443504435144352443534435444355443564435744358443594436044361443624436344364443654436644367443684436944370443714437244373443744437544376443774437844379443804438144382443834438444385443864438744388443894439044391443924439344394443954439644397443984439944400444014440244403444044440544406444074440844409444104441144412444134441444415444164441744418444194442044421444224442344424444254442644427444284442944430444314443244433444344443544436444374443844439444404444144442444434444444445444464444744448444494445044451444524445344454444554445644457444584445944460444614446244463444644446544466444674446844469444704447144472444734447444475444764447744478444794448044481444824448344484444854448644487444884448944490444914449244493444944449544496444974449844499445004450144502445034450444505445064450744508445094451044511445124451344514445154451644517445184451944520445214452244523445244452544526445274452844529445304453144532445334453444535445364453744538445394454044541445424454344544445454454644547445484454944550445514455244553445544455544556445574455844559445604456144562445634456444565445664456744568445694457044571445724457344574445754457644577445784457944580445814458244583445844458544586445874458844589445904459144592445934459444595445964459744598445994460044601446024460344604446054460644607446084460944610446114461244613446144461544616446174461844619446204462144622446234462444625446264462744628446294463044631446324463344634446354463644637446384463944640446414464244643446444464544646446474464844649446504465144652446534465444655446564465744658446594466044661446624466344664446654466644667446684466944670446714467244673446744467544676446774467844679446804468144682446834468444685446864468744688446894469044691446924469344694446954469644697446984469944700447014470244703447044470544706447074470844709447104471144712447134471444715447164471744718447194472044721447224472344724447254472644727447284472944730447314473244733447344473544736447374473844739447404474144742447434474444745447464474744748447494475044751447524475344754447554475644757447584475944760447614476244763447644476544766447674476844769447704477144772447734477444775447764477744778447794478044781447824478344784447854478644787447884478944790447914479244793447944479544796447974479844799448004480144802448034480444805448064480744808448094481044811448124481344814448154481644817448184481944820448214482244823448244482544826448274482844829448304483144832448334483444835448364483744838448394484044841448424484344844448454484644847448484484944850448514485244853448544485544856448574485844859448604486144862448634486444865448664486744868448694487044871448724487344874448754487644877448784487944880448814488244883448844488544886448874488844889448904489144892448934489444895448964489744898448994490044901449024490344904449054490644907449084490944910449114491244913449144491544916449174491844919449204492144922449234492444925449264492744928449294493044931449324493344934449354493644937449384493944940449414494244943449444494544946449474494844949449504495144952449534495444955449564495744958449594496044961449624496344964449654496644967449684496944970449714497244973449744497544976449774497844979449804498144982449834498444985449864498744988449894499044991449924499344994449954499644997449984499945000450014500245003450044500545006450074500845009450104501145012450134501445015450164501745018450194502045021450224502345024450254502645027450284502945030450314503245033450344503545036450374503845039450404504145042450434504445045450464504745048450494505045051450524505345054450554505645057450584505945060450614506245063450644506545066450674506845069450704507145072450734507445075450764507745078450794508045081450824508345084450854508645087450884508945090450914509245093450944509545096450974509845099451004510145102451034510445105451064510745108451094511045111451124511345114451154511645117451184511945120451214512245123451244512545126451274512845129451304513145132451334513445135451364513745138451394514045141451424514345144451454514645147451484514945150451514515245153451544515545156451574515845159451604516145162451634516445165451664516745168451694517045171451724517345174451754517645177451784517945180451814518245183451844518545186451874518845189451904519145192451934519445195451964519745198451994520045201452024520345204452054520645207452084520945210452114521245213452144521545216452174521845219452204522145222452234522445225452264522745228452294523045231452324523345234452354523645237452384523945240452414524245243452444524545246452474524845249452504525145252452534525445255452564525745258452594526045261452624526345264452654526645267452684526945270452714527245273452744527545276452774527845279452804528145282452834528445285452864528745288452894529045291452924529345294452954529645297452984529945300453014530245303453044530545306453074530845309453104531145312453134531445315453164531745318453194532045321453224532345324453254532645327453284532945330453314533245333453344533545336453374533845339453404534145342453434534445345453464534745348453494535045351453524535345354453554535645357453584535945360453614536245363453644536545366453674536845369453704537145372453734537445375453764537745378453794538045381453824538345384453854538645387453884538945390453914539245393453944539545396453974539845399454004540145402454034540445405454064540745408454094541045411454124541345414454154541645417454184541945420454214542245423454244542545426454274542845429454304543145432454334543445435454364543745438454394544045441454424544345444454454544645447454484544945450454514545245453454544545545456454574545845459454604546145462454634546445465454664546745468454694547045471454724547345474454754547645477454784547945480454814548245483454844548545486454874548845489454904549145492454934549445495454964549745498454994550045501455024550345504455054550645507455084550945510455114551245513455144551545516455174551845519455204552145522455234552445525455264552745528455294553045531455324553345534455354553645537455384553945540455414554245543455444554545546455474554845549455504555145552455534555445555455564555745558455594556045561455624556345564455654556645567455684556945570455714557245573455744557545576455774557845579455804558145582455834558445585455864558745588455894559045591455924559345594455954559645597455984559945600456014560245603456044560545606456074560845609456104561145612456134561445615456164561745618456194562045621456224562345624456254562645627456284562945630456314563245633456344563545636456374563845639456404564145642456434564445645456464564745648456494565045651456524565345654456554565645657456584565945660456614566245663456644566545666456674566845669456704567145672456734567445675456764567745678456794568045681456824568345684456854568645687456884568945690456914569245693456944569545696456974569845699457004570145702457034570445705457064570745708457094571045711457124571345714457154571645717457184571945720457214572245723457244572545726457274572845729457304573145732457334573445735457364573745738457394574045741457424574345744457454574645747457484574945750457514575245753457544575545756457574575845759457604576145762457634576445765457664576745768457694577045771457724577345774457754577645777457784577945780457814578245783457844578545786457874578845789457904579145792457934579445795457964579745798457994580045801458024580345804458054580645807458084580945810458114581245813458144581545816458174581845819458204582145822458234582445825458264582745828458294583045831458324583345834458354583645837458384583945840458414584245843458444584545846458474584845849458504585145852458534585445855458564585745858458594586045861458624586345864458654586645867458684586945870458714587245873458744587545876458774587845879458804588145882458834588445885458864588745888458894589045891458924589345894458954589645897458984589945900459014590245903459044590545906459074590845909459104591145912459134591445915459164591745918459194592045921459224592345924459254592645927459284592945930459314593245933459344593545936459374593845939459404594145942459434594445945459464594745948459494595045951459524595345954459554595645957459584595945960459614596245963459644596545966459674596845969459704597145972459734597445975459764597745978459794598045981459824598345984459854598645987459884598945990459914599245993459944599545996459974599845999460004600146002460034600446005460064600746008460094601046011460124601346014460154601646017460184601946020460214602246023460244602546026460274602846029460304603146032460334603446035460364603746038460394604046041460424604346044460454604646047460484604946050460514605246053460544605546056460574605846059460604606146062460634606446065460664606746068460694607046071460724607346074460754607646077460784607946080460814608246083460844608546086460874608846089460904609146092460934609446095460964609746098460994610046101461024610346104461054610646107461084610946110461114611246113461144611546116461174611846119461204612146122461234612446125461264612746128461294613046131461324613346134461354613646137461384613946140461414614246143461444614546146461474614846149461504615146152461534615446155461564615746158461594616046161461624616346164461654616646167461684616946170461714617246173461744617546176461774617846179461804618146182461834618446185461864618746188461894619046191461924619346194461954619646197461984619946200462014620246203462044620546206462074620846209462104621146212462134621446215462164621746218462194622046221462224622346224462254622646227462284622946230462314623246233462344623546236462374623846239462404624146242462434624446245462464624746248462494625046251462524625346254462554625646257462584625946260462614626246263462644626546266462674626846269462704627146272462734627446275462764627746278462794628046281462824628346284462854628646287462884628946290462914629246293462944629546296462974629846299463004630146302463034630446305463064630746308463094631046311463124631346314463154631646317463184631946320463214632246323463244632546326463274632846329463304633146332463334633446335463364633746338463394634046341463424634346344463454634646347463484634946350463514635246353463544635546356463574635846359463604636146362463634636446365463664636746368463694637046371463724637346374463754637646377463784637946380463814638246383463844638546386463874638846389463904639146392463934639446395463964639746398463994640046401464024640346404464054640646407464084640946410464114641246413464144641546416464174641846419464204642146422464234642446425464264642746428464294643046431464324643346434464354643646437464384643946440464414644246443464444644546446464474644846449464504645146452464534645446455464564645746458464594646046461464624646346464464654646646467464684646946470464714647246473464744647546476464774647846479464804648146482464834648446485464864648746488464894649046491464924649346494464954649646497464984649946500465014650246503465044650546506465074650846509465104651146512465134651446515465164651746518465194652046521465224652346524465254652646527465284652946530465314653246533465344653546536465374653846539465404654146542465434654446545465464654746548465494655046551465524655346554465554655646557465584655946560465614656246563465644656546566465674656846569465704657146572465734657446575465764657746578465794658046581465824658346584465854658646587465884658946590465914659246593465944659546596465974659846599466004660146602466034660446605466064660746608466094661046611466124661346614466154661646617466184661946620466214662246623466244662546626466274662846629466304663146632466334663446635466364663746638466394664046641466424664346644466454664646647466484664946650466514665246653466544665546656466574665846659466604666146662466634666446665466664666746668466694667046671466724667346674466754667646677466784667946680466814668246683466844668546686466874668846689466904669146692466934669446695466964669746698466994670046701467024670346704467054670646707467084670946710467114671246713467144671546716467174671846719467204672146722467234672446725467264672746728467294673046731467324673346734467354673646737467384673946740467414674246743467444674546746467474674846749467504675146752467534675446755467564675746758467594676046761467624676346764467654676646767467684676946770467714677246773467744677546776467774677846779467804678146782467834678446785467864678746788467894679046791467924679346794467954679646797467984679946800468014680246803468044680546806468074680846809468104681146812468134681446815468164681746818468194682046821468224682346824468254682646827468284682946830468314683246833468344683546836468374683846839468404684146842468434684446845468464684746848468494685046851468524685346854468554685646857468584685946860468614686246863468644686546866468674686846869468704687146872468734687446875468764687746878468794688046881468824688346884468854688646887468884688946890468914689246893468944689546896468974689846899469004690146902469034690446905469064690746908469094691046911469124691346914469154691646917469184691946920469214692246923469244692546926469274692846929469304693146932469334693446935469364693746938469394694046941469424694346944469454694646947469484694946950469514695246953469544695546956469574695846959469604696146962469634696446965469664696746968469694697046971469724697346974469754697646977469784697946980469814698246983469844698546986469874698846989469904699146992469934699446995469964699746998469994700047001470024700347004470054700647007470084700947010470114701247013470144701547016470174701847019470204702147022470234702447025470264702747028470294703047031470324703347034470354703647037470384703947040470414704247043470444704547046470474704847049470504705147052470534705447055470564705747058470594706047061470624706347064470654706647067470684706947070470714707247073470744707547076470774707847079470804708147082470834708447085470864708747088470894709047091470924709347094470954709647097470984709947100471014710247103471044710547106471074710847109471104711147112471134711447115471164711747118471194712047121471224712347124471254712647127471284712947130471314713247133471344713547136471374713847139471404714147142471434714447145471464714747148471494715047151471524715347154471554715647157471584715947160471614716247163471644716547166471674716847169471704717147172471734717447175471764717747178471794718047181471824718347184471854718647187471884718947190471914719247193471944719547196471974719847199472004720147202472034720447205472064720747208472094721047211472124721347214472154721647217472184721947220472214722247223472244722547226472274722847229472304723147232472334723447235472364723747238472394724047241472424724347244472454724647247472484724947250472514725247253472544725547256472574725847259472604726147262472634726447265472664726747268472694727047271472724727347274472754727647277472784727947280472814728247283472844728547286472874728847289472904729147292472934729447295472964729747298472994730047301473024730347304473054730647307473084730947310473114731247313473144731547316473174731847319473204732147322473234732447325473264732747328473294733047331473324733347334473354733647337473384733947340473414734247343473444734547346473474734847349473504735147352473534735447355473564735747358473594736047361473624736347364473654736647367473684736947370473714737247373473744737547376473774737847379473804738147382473834738447385473864738747388473894739047391473924739347394473954739647397473984739947400474014740247403474044740547406474074740847409474104741147412474134741447415474164741747418474194742047421474224742347424474254742647427474284742947430474314743247433474344743547436474374743847439474404744147442474434744447445474464744747448474494745047451474524745347454474554745647457474584745947460474614746247463474644746547466474674746847469474704747147472474734747447475474764747747478474794748047481474824748347484474854748647487474884748947490474914749247493474944749547496474974749847499475004750147502475034750447505475064750747508475094751047511475124751347514475154751647517475184751947520475214752247523475244752547526475274752847529475304753147532475334753447535475364753747538475394754047541475424754347544475454754647547475484754947550475514755247553475544755547556475574755847559475604756147562475634756447565475664756747568475694757047571475724757347574475754757647577475784757947580475814758247583475844758547586475874758847589475904759147592475934759447595475964759747598475994760047601476024760347604476054760647607476084760947610476114761247613476144761547616476174761847619476204762147622476234762447625476264762747628476294763047631476324763347634476354763647637476384763947640476414764247643476444764547646476474764847649476504765147652476534765447655476564765747658476594766047661476624766347664476654766647667476684766947670476714767247673476744767547676476774767847679476804768147682476834768447685476864768747688476894769047691476924769347694476954769647697476984769947700477014770247703477044770547706477074770847709477104771147712477134771447715477164771747718477194772047721477224772347724477254772647727477284772947730477314773247733477344773547736477374773847739477404774147742477434774447745477464774747748477494775047751477524775347754477554775647757477584775947760477614776247763477644776547766477674776847769477704777147772477734777447775477764777747778477794778047781477824778347784477854778647787477884778947790477914779247793477944779547796477974779847799478004780147802478034780447805478064780747808478094781047811478124781347814478154781647817478184781947820478214782247823478244782547826478274782847829478304783147832478334783447835478364783747838478394784047841478424784347844478454784647847478484784947850478514785247853478544785547856478574785847859478604786147862478634786447865478664786747868478694787047871478724787347874478754787647877478784787947880478814788247883478844788547886478874788847889478904789147892478934789447895478964789747898478994790047901479024790347904479054790647907479084790947910479114791247913479144791547916479174791847919479204792147922479234792447925479264792747928479294793047931479324793347934479354793647937479384793947940479414794247943479444794547946479474794847949479504795147952479534795447955479564795747958479594796047961479624796347964479654796647967479684796947970479714797247973479744797547976479774797847979479804798147982479834798447985479864798747988479894799047991479924799347994479954799647997479984799948000480014800248003480044800548006480074800848009480104801148012480134801448015480164801748018480194802048021480224802348024480254802648027480284802948030480314803248033480344803548036480374803848039480404804148042480434804448045480464804748048480494805048051480524805348054480554805648057480584805948060480614806248063480644806548066480674806848069480704807148072480734807448075480764807748078480794808048081480824808348084480854808648087480884808948090480914809248093480944809548096480974809848099481004810148102481034810448105481064810748108481094811048111481124811348114481154811648117481184811948120481214812248123481244812548126481274812848129481304813148132481334813448135481364813748138481394814048141481424814348144481454814648147481484814948150481514815248153481544815548156481574815848159481604816148162481634816448165481664816748168481694817048171481724817348174481754817648177481784817948180481814818248183481844818548186481874818848189481904819148192481934819448195481964819748198481994820048201482024820348204482054820648207482084820948210482114821248213482144821548216482174821848219482204822148222482234822448225482264822748228482294823048231482324823348234482354823648237482384823948240482414824248243482444824548246482474824848249482504825148252482534825448255482564825748258482594826048261482624826348264482654826648267482684826948270482714827248273482744827548276482774827848279482804828148282482834828448285482864828748288482894829048291482924829348294482954829648297482984829948300483014830248303483044830548306483074830848309483104831148312483134831448315483164831748318483194832048321483224832348324483254832648327483284832948330483314833248333483344833548336483374833848339483404834148342483434834448345483464834748348483494835048351483524835348354483554835648357483584835948360483614836248363483644836548366483674836848369483704837148372483734837448375483764837748378483794838048381483824838348384483854838648387483884838948390483914839248393483944839548396483974839848399484004840148402484034840448405484064840748408484094841048411484124841348414484154841648417484184841948420484214842248423484244842548426484274842848429484304843148432484334843448435484364843748438484394844048441484424844348444484454844648447484484844948450484514845248453484544845548456484574845848459484604846148462484634846448465484664846748468484694847048471484724847348474484754847648477484784847948480484814848248483484844848548486484874848848489484904849148492484934849448495484964849748498484994850048501485024850348504485054850648507485084850948510485114851248513485144851548516485174851848519485204852148522485234852448525485264852748528485294853048531485324853348534485354853648537485384853948540485414854248543485444854548546485474854848549485504855148552485534855448555485564855748558485594856048561485624856348564485654856648567485684856948570485714857248573485744857548576485774857848579485804858148582485834858448585485864858748588485894859048591485924859348594485954859648597485984859948600486014860248603486044860548606486074860848609486104861148612486134861448615486164861748618486194862048621486224862348624486254862648627486284862948630486314863248633486344863548636486374863848639486404864148642486434864448645486464864748648486494865048651486524865348654486554865648657486584865948660486614866248663486644866548666486674866848669486704867148672486734867448675486764867748678486794868048681486824868348684486854868648687486884868948690486914869248693486944869548696486974869848699487004870148702487034870448705487064870748708487094871048711487124871348714487154871648717487184871948720487214872248723487244872548726487274872848729487304873148732487334873448735487364873748738487394874048741487424874348744487454874648747487484874948750487514875248753487544875548756487574875848759487604876148762487634876448765487664876748768487694877048771487724877348774487754877648777487784877948780487814878248783487844878548786487874878848789487904879148792487934879448795487964879748798487994880048801488024880348804488054880648807488084880948810488114881248813488144881548816488174881848819488204882148822488234882448825488264882748828488294883048831488324883348834488354883648837488384883948840488414884248843488444884548846488474884848849488504885148852488534885448855488564885748858488594886048861488624886348864488654886648867488684886948870488714887248873488744887548876488774887848879488804888148882488834888448885488864888748888488894889048891488924889348894488954889648897488984889948900489014890248903489044890548906489074890848909489104891148912489134891448915489164891748918489194892048921489224892348924489254892648927489284892948930489314893248933489344893548936489374893848939489404894148942489434894448945489464894748948489494895048951489524895348954489554895648957489584895948960489614896248963489644896548966489674896848969489704897148972489734897448975489764897748978489794898048981489824898348984489854898648987489884898948990489914899248993489944899548996489974899848999490004900149002490034900449005490064900749008490094901049011490124901349014490154901649017490184901949020490214902249023490244902549026490274902849029490304903149032490334903449035490364903749038490394904049041490424904349044490454904649047490484904949050490514905249053490544905549056490574905849059490604906149062490634906449065490664906749068490694907049071490724907349074490754907649077490784907949080490814908249083490844908549086490874908849089490904909149092490934909449095490964909749098490994910049101491024910349104491054910649107491084910949110491114911249113491144911549116491174911849119491204912149122491234912449125491264912749128491294913049131491324913349134491354913649137491384913949140491414914249143491444914549146491474914849149491504915149152491534915449155491564915749158491594916049161491624916349164491654916649167491684916949170491714917249173491744917549176491774917849179491804918149182491834918449185491864918749188491894919049191491924919349194491954919649197491984919949200492014920249203492044920549206492074920849209492104921149212492134921449215492164921749218492194922049221492224922349224492254922649227492284922949230492314923249233492344923549236492374923849239492404924149242492434924449245492464924749248492494925049251492524925349254492554925649257492584925949260492614926249263492644926549266492674926849269492704927149272492734927449275492764927749278492794928049281492824928349284492854928649287492884928949290492914929249293492944929549296492974929849299493004930149302493034930449305493064930749308493094931049311493124931349314493154931649317493184931949320493214932249323493244932549326493274932849329493304933149332493334933449335493364933749338493394934049341493424934349344493454934649347493484934949350493514935249353493544935549356493574935849359493604936149362493634936449365493664936749368493694937049371493724937349374493754937649377493784937949380493814938249383493844938549386493874938849389493904939149392493934939449395493964939749398493994940049401494024940349404494054940649407494084940949410494114941249413494144941549416494174941849419494204942149422494234942449425494264942749428494294943049431494324943349434494354943649437494384943949440494414944249443494444944549446494474944849449494504945149452494534945449455494564945749458494594946049461494624946349464494654946649467494684946949470494714947249473494744947549476494774947849479494804948149482494834948449485494864948749488494894949049491494924949349494494954949649497494984949949500495014950249503495044950549506495074950849509495104951149512495134951449515495164951749518495194952049521495224952349524495254952649527495284952949530495314953249533495344953549536495374953849539495404954149542495434954449545495464954749548495494955049551495524955349554495554955649557495584955949560495614956249563495644956549566495674956849569495704957149572495734957449575495764957749578495794958049581495824958349584495854958649587495884958949590495914959249593495944959549596495974959849599496004960149602496034960449605496064960749608496094961049611496124961349614496154961649617496184961949620496214962249623496244962549626496274962849629496304963149632496334963449635496364963749638496394964049641496424964349644496454964649647496484964949650496514965249653496544965549656496574965849659496604966149662496634966449665496664966749668496694967049671496724967349674496754967649677496784967949680496814968249683496844968549686496874968849689496904969149692496934969449695496964969749698496994970049701497024970349704497054970649707497084970949710497114971249713497144971549716497174971849719497204972149722497234972449725497264972749728497294973049731497324973349734497354973649737497384973949740497414974249743497444974549746497474974849749497504975149752497534975449755497564975749758497594976049761497624976349764497654976649767497684976949770497714977249773497744977549776497774977849779497804978149782497834978449785497864978749788497894979049791497924979349794497954979649797497984979949800498014980249803498044980549806498074980849809498104981149812498134981449815498164981749818498194982049821498224982349824498254982649827498284982949830498314983249833498344983549836498374983849839498404984149842498434984449845498464984749848498494985049851498524985349854498554985649857498584985949860498614986249863498644986549866498674986849869498704987149872498734987449875498764987749878498794988049881498824988349884498854988649887498884988949890498914989249893498944989549896498974989849899499004990149902499034990449905499064990749908499094991049911499124991349914499154991649917499184991949920499214992249923499244992549926499274992849929499304993149932499334993449935499364993749938499394994049941499424994349944499454994649947499484994949950499514995249953499544995549956499574995849959499604996149962499634996449965499664996749968499694997049971499724997349974499754997649977499784997949980499814998249983499844998549986499874998849989499904999149992499934999449995499964999749998499995000050001500025000350004500055000650007500085000950010500115001250013500145001550016500175001850019500205002150022500235002450025500265002750028500295003050031500325003350034500355003650037500385003950040500415004250043500445004550046500475004850049500505005150052500535005450055500565005750058500595006050061500625006350064500655006650067500685006950070500715007250073500745007550076500775007850079500805008150082500835008450085500865008750088500895009050091500925009350094500955009650097500985009950100501015010250103501045010550106501075010850109501105011150112501135011450115501165011750118501195012050121501225012350124501255012650127501285012950130501315013250133501345013550136501375013850139501405014150142501435014450145501465014750148501495015050151501525015350154501555015650157501585015950160501615016250163501645016550166501675016850169501705017150172501735017450175501765017750178501795018050181501825018350184501855018650187501885018950190501915019250193501945019550196501975019850199502005020150202502035020450205502065020750208502095021050211502125021350214502155021650217502185021950220502215022250223502245022550226502275022850229502305023150232502335023450235502365023750238502395024050241502425024350244502455024650247502485024950250502515025250253502545025550256502575025850259502605026150262502635026450265502665026750268502695027050271502725027350274502755027650277502785027950280502815028250283502845028550286502875028850289502905029150292502935029450295502965029750298502995030050301503025030350304503055030650307503085030950310503115031250313503145031550316503175031850319503205032150322503235032450325503265032750328503295033050331503325033350334503355033650337503385033950340503415034250343503445034550346503475034850349503505035150352503535035450355503565035750358503595036050361503625036350364503655036650367503685036950370503715037250373503745037550376503775037850379503805038150382503835038450385503865038750388503895039050391503925039350394503955039650397503985039950400504015040250403504045040550406504075040850409504105041150412504135041450415504165041750418504195042050421504225042350424504255042650427504285042950430504315043250433504345043550436504375043850439504405044150442504435044450445504465044750448504495045050451504525045350454504555045650457504585045950460504615046250463504645046550466504675046850469504705047150472504735047450475504765047750478504795048050481504825048350484504855048650487504885048950490504915049250493504945049550496504975049850499505005050150502505035050450505505065050750508505095051050511505125051350514505155051650517505185051950520505215052250523505245052550526505275052850529505305053150532505335053450535505365053750538505395054050541505425054350544505455054650547505485054950550505515055250553505545055550556505575055850559505605056150562505635056450565505665056750568505695057050571505725057350574505755057650577505785057950580505815058250583505845058550586505875058850589505905059150592505935059450595505965059750598505995060050601506025060350604506055060650607506085060950610506115061250613506145061550616506175061850619506205062150622506235062450625506265062750628506295063050631506325063350634506355063650637506385063950640506415064250643506445064550646506475064850649506505065150652506535065450655506565065750658506595066050661506625066350664506655066650667506685066950670506715067250673506745067550676506775067850679506805068150682506835068450685506865068750688506895069050691506925069350694506955069650697506985069950700507015070250703507045070550706507075070850709507105071150712507135071450715507165071750718507195072050721507225072350724507255072650727507285072950730507315073250733507345073550736507375073850739507405074150742507435074450745507465074750748507495075050751507525075350754507555075650757507585075950760507615076250763507645076550766507675076850769507705077150772507735077450775507765077750778507795078050781507825078350784507855078650787507885078950790507915079250793507945079550796507975079850799508005080150802508035080450805508065080750808508095081050811508125081350814508155081650817508185081950820508215082250823508245082550826508275082850829508305083150832508335083450835508365083750838508395084050841508425084350844508455084650847508485084950850508515085250853508545085550856508575085850859508605086150862508635086450865508665086750868508695087050871508725087350874508755087650877508785087950880508815088250883508845088550886508875088850889508905089150892508935089450895508965089750898508995090050901509025090350904509055090650907509085090950910509115091250913509145091550916509175091850919509205092150922509235092450925509265092750928509295093050931509325093350934509355093650937509385093950940509415094250943509445094550946509475094850949509505095150952509535095450955509565095750958509595096050961509625096350964509655096650967509685096950970509715097250973509745097550976509775097850979509805098150982509835098450985509865098750988509895099050991509925099350994509955099650997509985099951000510015100251003510045100551006510075100851009510105101151012510135101451015510165101751018510195102051021510225102351024510255102651027510285102951030510315103251033510345103551036510375103851039510405104151042510435104451045510465104751048510495105051051510525105351054510555105651057510585105951060510615106251063510645106551066510675106851069510705107151072510735107451075510765107751078510795108051081510825108351084510855108651087510885108951090510915109251093510945109551096510975109851099511005110151102511035110451105511065110751108511095111051111511125111351114511155111651117511185111951120511215112251123511245112551126511275112851129511305113151132511335113451135511365113751138511395114051141511425114351144511455114651147511485114951150511515115251153511545115551156511575115851159511605116151162511635116451165511665116751168511695117051171511725117351174511755117651177511785117951180511815118251183511845118551186511875118851189511905119151192511935119451195511965119751198511995120051201512025120351204512055120651207512085120951210512115121251213512145121551216512175121851219512205122151222512235122451225512265122751228512295123051231512325123351234512355123651237512385123951240512415124251243512445124551246512475124851249512505125151252512535125451255512565125751258512595126051261512625126351264512655126651267512685126951270512715127251273512745127551276512775127851279512805128151282512835128451285512865128751288512895129051291512925129351294512955129651297512985129951300513015130251303513045130551306513075130851309513105131151312513135131451315513165131751318513195132051321513225132351324513255132651327513285132951330513315133251333513345133551336513375133851339513405134151342513435134451345513465134751348513495135051351513525135351354513555135651357513585135951360513615136251363513645136551366513675136851369513705137151372513735137451375513765137751378513795138051381513825138351384513855138651387513885138951390513915139251393513945139551396513975139851399514005140151402514035140451405514065140751408514095141051411514125141351414514155141651417514185141951420514215142251423514245142551426514275142851429514305143151432514335143451435514365143751438514395144051441514425144351444514455144651447514485144951450514515145251453514545145551456514575145851459514605146151462514635146451465514665146751468514695147051471514725147351474514755147651477514785147951480514815148251483514845148551486514875148851489514905149151492514935149451495514965149751498514995150051501515025150351504515055150651507515085150951510515115151251513515145151551516515175151851519515205152151522515235152451525515265152751528515295153051531515325153351534515355153651537515385153951540515415154251543515445154551546515475154851549515505155151552515535155451555515565155751558515595156051561515625156351564515655156651567515685156951570515715157251573515745157551576515775157851579515805158151582515835158451585515865158751588515895159051591515925159351594515955159651597515985159951600516015160251603516045160551606516075160851609516105161151612516135161451615516165161751618516195162051621516225162351624516255162651627516285162951630516315163251633516345163551636516375163851639516405164151642516435164451645516465164751648516495165051651516525165351654516555165651657516585165951660516615166251663516645166551666516675166851669516705167151672516735167451675516765167751678516795168051681516825168351684516855168651687516885168951690516915169251693516945169551696516975169851699517005170151702517035170451705517065170751708517095171051711517125171351714517155171651717517185171951720517215172251723517245172551726517275172851729517305173151732517335173451735517365173751738517395174051741517425174351744517455174651747517485174951750517515175251753517545175551756517575175851759517605176151762517635176451765517665176751768517695177051771517725177351774517755177651777517785177951780517815178251783517845178551786517875178851789517905179151792517935179451795517965179751798517995180051801518025180351804518055180651807518085180951810518115181251813518145181551816518175181851819518205182151822518235182451825518265182751828518295183051831518325183351834518355183651837518385183951840518415184251843518445184551846518475184851849518505185151852518535185451855518565185751858518595186051861518625186351864518655186651867518685186951870518715187251873518745187551876518775187851879518805188151882518835188451885518865188751888518895189051891518925189351894518955189651897518985189951900519015190251903519045190551906519075190851909519105191151912519135191451915519165191751918519195192051921519225192351924519255192651927519285192951930519315193251933519345193551936519375193851939519405194151942519435194451945519465194751948519495195051951519525195351954519555195651957519585195951960519615196251963519645196551966519675196851969519705197151972519735197451975519765197751978519795198051981519825198351984519855198651987519885198951990519915199251993519945199551996519975199851999520005200152002520035200452005520065200752008520095201052011520125201352014520155201652017520185201952020520215202252023520245202552026520275202852029520305203152032520335203452035520365203752038520395204052041520425204352044520455204652047520485204952050520515205252053520545205552056520575205852059520605206152062520635206452065520665206752068520695207052071520725207352074520755207652077520785207952080520815208252083520845208552086520875208852089520905209152092520935209452095520965209752098520995210052101521025210352104521055210652107521085210952110521115211252113521145211552116521175211852119521205212152122521235212452125521265212752128521295213052131521325213352134521355213652137521385213952140521415214252143521445214552146521475214852149521505215152152521535215452155521565215752158521595216052161521625216352164521655216652167521685216952170521715217252173521745217552176521775217852179521805218152182521835218452185521865218752188521895219052191521925219352194521955219652197521985219952200522015220252203522045220552206522075220852209522105221152212522135221452215522165221752218522195222052221522225222352224522255222652227522285222952230522315223252233522345223552236522375223852239522405224152242522435224452245522465224752248522495225052251522525225352254522555225652257522585225952260522615226252263522645226552266522675226852269522705227152272522735227452275522765227752278522795228052281522825228352284522855228652287522885228952290522915229252293522945229552296522975229852299523005230152302523035230452305523065230752308523095231052311523125231352314523155231652317523185231952320523215232252323523245232552326523275232852329523305233152332523335233452335523365233752338523395234052341523425234352344523455234652347523485234952350523515235252353523545235552356523575235852359523605236152362523635236452365523665236752368523695237052371523725237352374523755237652377523785237952380523815238252383523845238552386523875238852389523905239152392523935239452395523965239752398523995240052401524025240352404524055240652407524085240952410524115241252413524145241552416524175241852419524205242152422524235242452425524265242752428524295243052431524325243352434524355243652437524385243952440524415244252443524445244552446524475244852449524505245152452524535245452455524565245752458524595246052461524625246352464524655246652467524685246952470524715247252473524745247552476524775247852479524805248152482524835248452485524865248752488524895249052491524925249352494524955249652497524985249952500525015250252503525045250552506525075250852509525105251152512525135251452515525165251752518525195252052521525225252352524525255252652527525285252952530525315253252533525345253552536525375253852539525405254152542525435254452545525465254752548525495255052551525525255352554525555255652557525585255952560525615256252563525645256552566525675256852569525705257152572525735257452575525765257752578525795258052581525825258352584525855258652587525885258952590525915259252593525945259552596525975259852599526005260152602526035260452605526065260752608526095261052611526125261352614526155261652617526185261952620526215262252623526245262552626526275262852629526305263152632526335263452635526365263752638526395264052641526425264352644526455264652647526485264952650526515265252653526545265552656526575265852659526605266152662526635266452665526665266752668526695267052671526725267352674526755267652677526785267952680526815268252683526845268552686526875268852689526905269152692526935269452695526965269752698526995270052701527025270352704527055270652707527085270952710527115271252713527145271552716527175271852719527205272152722527235272452725527265272752728527295273052731527325273352734527355273652737527385273952740527415274252743527445274552746527475274852749527505275152752527535275452755527565275752758527595276052761527625276352764527655276652767527685276952770527715277252773527745277552776527775277852779527805278152782527835278452785527865278752788527895279052791527925279352794527955279652797527985279952800528015280252803528045280552806528075280852809528105281152812528135281452815528165281752818528195282052821528225282352824528255282652827528285282952830528315283252833528345283552836528375283852839528405284152842528435284452845528465284752848528495285052851528525285352854528555285652857528585285952860528615286252863528645286552866528675286852869528705287152872528735287452875528765287752878528795288052881528825288352884528855288652887528885288952890528915289252893528945289552896528975289852899529005290152902529035290452905529065290752908529095291052911529125291352914529155291652917529185291952920529215292252923529245292552926529275292852929529305293152932529335293452935529365293752938529395294052941529425294352944529455294652947529485294952950529515295252953529545295552956529575295852959529605296152962529635296452965529665296752968529695297052971529725297352974529755297652977529785297952980529815298252983529845298552986529875298852989529905299152992529935299452995529965299752998529995300053001530025300353004530055300653007530085300953010530115301253013530145301553016530175301853019530205302153022530235302453025530265302753028530295303053031530325303353034530355303653037530385303953040530415304253043530445304553046530475304853049530505305153052530535305453055530565305753058530595306053061530625306353064530655306653067530685306953070530715307253073530745307553076530775307853079530805308153082530835308453085530865308753088530895309053091530925309353094530955309653097530985309953100531015310253103531045310553106531075310853109531105311153112531135311453115531165311753118531195312053121531225312353124531255312653127531285312953130531315313253133531345313553136531375313853139531405314153142531435314453145531465314753148531495315053151531525315353154531555315653157531585315953160531615316253163531645316553166531675316853169531705317153172531735317453175531765317753178531795318053181531825318353184531855318653187531885318953190531915319253193531945319553196531975319853199532005320153202532035320453205532065320753208532095321053211532125321353214532155321653217532185321953220532215322253223532245322553226532275322853229532305323153232532335323453235532365323753238532395324053241532425324353244532455324653247532485324953250532515325253253532545325553256532575325853259532605326153262532635326453265532665326753268532695327053271532725327353274532755327653277532785327953280532815328253283532845328553286532875328853289532905329153292532935329453295532965329753298532995330053301533025330353304533055330653307533085330953310533115331253313533145331553316533175331853319533205332153322533235332453325533265332753328533295333053331533325333353334533355333653337533385333953340533415334253343533445334553346533475334853349533505335153352533535335453355533565335753358533595336053361533625336353364533655336653367533685336953370533715337253373533745337553376533775337853379533805338153382533835338453385533865338753388533895339053391533925339353394533955339653397533985339953400534015340253403534045340553406534075340853409534105341153412534135341453415534165341753418534195342053421534225342353424534255342653427534285342953430534315343253433534345343553436534375343853439534405344153442534435344453445534465344753448534495345053451534525345353454534555345653457534585345953460534615346253463534645346553466534675346853469534705347153472534735347453475534765347753478534795348053481534825348353484534855348653487534885348953490534915349253493534945349553496534975349853499535005350153502535035350453505535065350753508535095351053511535125351353514535155351653517535185351953520535215352253523535245352553526535275352853529535305353153532535335353453535535365353753538535395354053541535425354353544535455354653547535485354953550535515355253553535545355553556535575355853559535605356153562535635356453565535665356753568535695357053571535725357353574535755357653577535785357953580535815358253583535845358553586535875358853589535905359153592535935359453595535965359753598535995360053601536025360353604536055360653607536085360953610536115361253613536145361553616536175361853619536205362153622536235362453625536265362753628536295363053631536325363353634536355363653637536385363953640536415364253643536445364553646536475364853649536505365153652536535365453655536565365753658536595366053661536625366353664536655366653667536685366953670536715367253673536745367553676536775367853679536805368153682536835368453685536865368753688536895369053691536925369353694536955369653697536985369953700537015370253703537045370553706537075370853709537105371153712537135371453715537165371753718537195372053721537225372353724537255372653727537285372953730537315373253733537345373553736537375373853739537405374153742537435374453745537465374753748537495375053751537525375353754537555375653757537585375953760537615376253763537645376553766537675376853769537705377153772537735377453775537765377753778537795378053781537825378353784537855378653787537885378953790537915379253793537945379553796537975379853799538005380153802538035380453805538065380753808538095381053811538125381353814538155381653817538185381953820538215382253823538245382553826538275382853829538305383153832538335383453835538365383753838538395384053841538425384353844538455384653847538485384953850538515385253853538545385553856538575385853859538605386153862538635386453865538665386753868538695387053871538725387353874538755387653877538785387953880538815388253883538845388553886538875388853889538905389153892538935389453895538965389753898538995390053901539025390353904539055390653907539085390953910539115391253913539145391553916539175391853919539205392153922539235392453925539265392753928539295393053931539325393353934539355393653937539385393953940539415394253943539445394553946539475394853949539505395153952539535395453955539565395753958539595396053961539625396353964539655396653967539685396953970539715397253973539745397553976539775397853979539805398153982539835398453985539865398753988539895399053991539925399353994539955399653997539985399954000540015400254003540045400554006540075400854009540105401154012540135401454015540165401754018540195402054021540225402354024540255402654027540285402954030540315403254033540345403554036540375403854039540405404154042540435404454045540465404754048540495405054051540525405354054540555405654057540585405954060540615406254063540645406554066540675406854069540705407154072540735407454075540765407754078540795408054081540825408354084540855408654087540885408954090540915409254093540945409554096540975409854099541005410154102541035410454105541065410754108541095411054111541125411354114541155411654117541185411954120541215412254123541245412554126541275412854129541305413154132541335413454135541365413754138541395414054141541425414354144541455414654147541485414954150541515415254153541545415554156541575415854159541605416154162541635416454165541665416754168541695417054171541725417354174541755417654177541785417954180541815418254183541845418554186541875418854189541905419154192541935419454195541965419754198541995420054201542025420354204542055420654207542085420954210542115421254213542145421554216542175421854219542205422154222542235422454225542265422754228542295423054231542325423354234542355423654237542385423954240542415424254243542445424554246542475424854249542505425154252542535425454255542565425754258542595426054261542625426354264542655426654267542685426954270542715427254273542745427554276542775427854279542805428154282542835428454285542865428754288542895429054291542925429354294542955429654297542985429954300543015430254303543045430554306543075430854309543105431154312543135431454315543165431754318543195432054321543225432354324543255432654327543285432954330543315433254333543345433554336543375433854339543405434154342543435434454345543465434754348543495435054351543525435354354543555435654357543585435954360543615436254363543645436554366543675436854369543705437154372543735437454375543765437754378543795438054381543825438354384543855438654387543885438954390543915439254393543945439554396543975439854399544005440154402544035440454405544065440754408544095441054411544125441354414544155441654417544185441954420544215442254423544245442554426544275442854429544305443154432544335443454435544365443754438544395444054441544425444354444544455444654447544485444954450544515445254453544545445554456544575445854459544605446154462544635446454465544665446754468544695447054471544725447354474544755447654477544785447954480544815448254483544845448554486544875448854489544905449154492544935449454495544965449754498544995450054501545025450354504545055450654507545085450954510545115451254513545145451554516545175451854519545205452154522545235452454525545265452754528545295453054531545325453354534545355453654537545385453954540545415454254543545445454554546545475454854549545505455154552545535455454555545565455754558545595456054561545625456354564545655456654567545685456954570545715457254573545745457554576545775457854579545805458154582545835458454585545865458754588545895459054591545925459354594545955459654597545985459954600546015460254603546045460554606546075460854609546105461154612546135461454615546165461754618546195462054621546225462354624546255462654627546285462954630546315463254633546345463554636546375463854639546405464154642546435464454645546465464754648546495465054651546525465354654546555465654657546585465954660546615466254663546645466554666546675466854669546705467154672546735467454675546765467754678546795468054681546825468354684546855468654687546885468954690546915469254693546945469554696546975469854699547005470154702547035470454705547065470754708547095471054711547125471354714547155471654717547185471954720547215472254723547245472554726547275472854729547305473154732547335473454735547365473754738547395474054741547425474354744547455474654747547485474954750547515475254753547545475554756547575475854759547605476154762547635476454765547665476754768547695477054771547725477354774547755477654777547785477954780547815478254783547845478554786547875478854789547905479154792547935479454795547965479754798547995480054801548025480354804548055480654807548085480954810548115481254813548145481554816548175481854819548205482154822548235482454825548265482754828548295483054831548325483354834548355483654837548385483954840548415484254843548445484554846548475484854849548505485154852548535485454855548565485754858548595486054861548625486354864548655486654867548685486954870548715487254873548745487554876548775487854879548805488154882548835488454885548865488754888548895489054891548925489354894548955489654897548985489954900549015490254903549045490554906549075490854909549105491154912549135491454915549165491754918549195492054921549225492354924549255492654927549285492954930549315493254933549345493554936549375493854939549405494154942549435494454945549465494754948549495495054951549525495354954549555495654957549585495954960549615496254963549645496554966549675496854969549705497154972549735497454975549765497754978549795498054981549825498354984549855498654987549885498954990549915499254993549945499554996549975499854999550005500155002550035500455005550065500755008550095501055011550125501355014550155501655017550185501955020550215502255023550245502555026550275502855029550305503155032550335503455035550365503755038550395504055041550425504355044550455504655047550485504955050550515505255053550545505555056550575505855059550605506155062550635506455065550665506755068550695507055071550725507355074550755507655077550785507955080550815508255083550845508555086550875508855089550905509155092550935509455095550965509755098550995510055101551025510355104551055510655107551085510955110551115511255113551145511555116551175511855119551205512155122551235512455125551265512755128551295513055131551325513355134551355513655137551385513955140551415514255143551445514555146551475514855149551505515155152551535515455155551565515755158551595516055161551625516355164551655516655167551685516955170551715517255173551745517555176551775517855179551805518155182551835518455185551865518755188551895519055191551925519355194551955519655197551985519955200552015520255203552045520555206552075520855209552105521155212552135521455215552165521755218552195522055221552225522355224552255522655227552285522955230552315523255233552345523555236552375523855239552405524155242552435524455245552465524755248552495525055251552525525355254552555525655257552585525955260552615526255263552645526555266552675526855269552705527155272552735527455275552765527755278552795528055281552825528355284552855528655287552885528955290552915529255293552945529555296552975529855299553005530155302553035530455305553065530755308553095531055311553125531355314553155531655317553185531955320553215532255323553245532555326553275532855329553305533155332553335533455335553365533755338553395534055341553425534355344553455534655347553485534955350553515535255353553545535555356553575535855359553605536155362553635536455365553665536755368553695537055371553725537355374553755537655377553785537955380553815538255383553845538555386553875538855389553905539155392553935539455395553965539755398553995540055401554025540355404554055540655407554085540955410554115541255413554145541555416554175541855419554205542155422554235542455425554265542755428554295543055431554325543355434554355543655437554385543955440554415544255443554445544555446554475544855449554505545155452554535545455455554565545755458554595546055461554625546355464554655546655467554685546955470554715547255473554745547555476554775547855479554805548155482554835548455485554865548755488
  1. 2015-01-23 Vladimir Serbinenko <phcoder@gmail.com>
  2. * tests/file_filter/file: Really add missing file.
  3. 2015-01-23 Andrei Borzenkov <arvidjaar@gmail.com>
  4. * grub-core/disk/xen/xendisk.c: Accept hdX as disk names on Xen to
  5. allow legacy menu.lst processing.
  6. 2015-01-22 Felix Janda <felix.janda@posteo.de>
  7. Remove direct _llseek code and require long filesystem libc.
  8. 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
  9. Remove potential division by 0 in gfxmenu.
  10. 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
  11. * grub-core/normal/menu_text.c (grub_menu_init_page): Avoid
  12. returning 0 geometry to avoid divisions by 0.
  13. 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
  14. * grub-core/osdep/unix/cputime.c (grub_util_get_cpu_time_ms): Cache
  15. sc_clk_tck and check it for sanity.
  16. 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
  17. * grub-core/kern/efi/mm.c (grub_efi_get_memory_map): Never return a
  18. descriptor_size==0 to avoid potential divisions by zero.
  19. 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
  20. * grub-core/osdep/haiku/getroot.c (grub_util_find_partition_start_os):
  21. Avoid division by zero.
  22. 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
  23. * grub-core/kern/generic/rtc_get_time_ms.c (grub_rtc_get_time_ms): Avoid
  24. division by zero.
  25. 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
  26. * grub-core/loader/i386/xnu.c (guessfsb): Avoid division by 0.
  27. 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
  28. * grub-core/kern/i386/tsc.c (calibrate_tsc): Ensure that
  29. no division by 0 occurs.
  30. 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
  31. * include/grub/misc.h (grub_div_roundup): Remove as it's unused.
  32. 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
  33. * grub-core/term/gfxterm.c: Avoid division by zero.
  34. 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
  35. Avoid division by zero in serial.
  36. * grub-core/term/serial.c (grub_cmd_serial): Ensure speed is not 0.
  37. * grub-core/term/ns8250.c (serial_get_divisor): Exit if speed is 0.
  38. 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
  39. * grub-core/video/readers/jpeg.c: Avoid sivision by zero.
  40. 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
  41. * grub-core/disk/diskfilter.c: Validate volumes to avoid division
  42. by zero.
  43. 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
  44. * include/grub/term.h: Avoid returining 0-sized terminal
  45. as it may lead to division by zero.
  46. 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
  47. * grub-core/fs/zfs.c: Avoid divisions by zero.
  48. 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
  49. * grub-core/fs/btrfs.c: Avoid divisions by zero.
  50. 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
  51. * grub-core/lib/pbkdf2.c (grub_crypto_pbkdf2): Check that hash len is not 0.
  52. 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
  53. * grub-core/osdep/linux/blocklist.c (grub_install_get_blocklist): Check
  54. blocksize validity.
  55. 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
  56. * grub-core/disk/i386/pc/biosdisk.c: Check disk size sanity.
  57. 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
  58. * grub-core/disk/ieee1275/nand.c (grub_nand_open): Check block size
  59. validity.
  60. 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
  61. * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Do not
  62. divide by zero.
  63. 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
  64. * grub-core/fs/hfs.c (grub_hfs_mount): Additional filesystem
  65. sanity checks.
  66. 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
  67. * grub-core/fs/minix.c: Additional filesystem
  68. sanity checks.
  69. 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
  70. * grub-core/fs/ext2.c (grub_ext2_mount): Additional
  71. checks for superblock validity.
  72. 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
  73. * grub-core/fs/ufs.c (grub_ufs_mount): Check
  74. that sblock.ino_per_group is not 0.
  75. 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
  76. Reject NILFS2 superblocks with over 1GiB blocks.
  77. * grub-core/fs/nilfs2.c (grub_nilfs2_valid_sb): Check that
  78. block size is <= 1GiB.
  79. 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
  80. * grub-core/disk/ata.c (grub_ata_setaddress): Check that geometry
  81. is sane when using CHS addressing.
  82. 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
  83. * grub-core/disk/AFSplitter.c (AF_merge): Check that mdlen is not 0.
  84. 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
  85. * grub-core/commands/i386/pc/play.c (grub_cmd_play): Avoid
  86. division by zero.
  87. 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
  88. * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_maxpacket): Avoid
  89. potentially returning 0.
  90. 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
  91. * grub-core/fs/minix.c (grub_minix_read_file): Avoid reading past
  92. the end of file.
  93. 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
  94. * grub-core/fs/fshelp.c (grub_fshelp_read_file): Don't attempt to read
  95. past the end of file.
  96. 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
  97. * grub-core/script/lexer.c (grub_script_lexer_yywrap): Update len
  98. synchronously with line.
  99. 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
  100. Replace explicit sizeof divisions by ARRAY_SIZE.
  101. 2015-01-19 Kris Moore <kris@pcbsd.org>
  102. * grub-core/disk/geli.c: Support GELI v6 and v7.
  103. 2014-12-09 Andrei Borzenkov <arvidjaar@gmail.com>
  104. * grub-core/term/serial.c (grub_cmd_serial): Fix --rtscts
  105. option processing.
  106. 2014-12-07 David Kozub <zub.272@gmail.com>
  107. * grub-core/kern/arm/misc.S: fix unaligned 64bit local variable
  108. in __aeabi_uidivmod
  109. Fixes Savannah bug #43632.
  110. 2014-12-07 Peter Nelson <peterdn>
  111. * grub-core/fs/ext2.c (grub_ext2_read_block): Support large sparse
  112. chunks.
  113. 2014-12-07 Andrei Borzenkov <arvidjaar@gmail.com>
  114. * util/grub-mkconfig_lib.in (version_test_gt): Remove redundant
  115. non-portable '-n' echo option.
  116. * util/grub.d/10_kfreebsd.in: Change how list is built to avoid
  117. non-portable 'echo -n.
  118. * util/grub.d/10_linux.in: Likewise (closes 43668).
  119. * util/grub.d/20_linux_xen.in: Likewise.
  120. * util/grub.d/30_os-prober.in: Print spaces directly to avoid
  121. non-portable 'echo -n'.
  122. 2014-12-07 Curtis Larsen <larsen@dixie.edu>
  123. * grub-core/net/tcp.c (grub_net_recv_tcp_packet): Fix double
  124. free when multiple empty segments were received (closes 42765).
  125. 2014-12-05 Andrei Borzenkov <arvidjaar@gmail.com>
  126. * tests/util/grub-shell.in: Support --files also for netboot.
  127. * tests/file_filter_test.in: New file with file filters tests.
  128. * Makefile.util.def: Add file_filter_test.
  129. * conf/Makefile.extra-dist: ... and here.
  130. * tests/file_filter/file.gz: Test file for file_filter_test.
  131. * tests/file_filter/file.gz.sig: Likewise.
  132. * tests/file_filter/file.lzop: Likewise.
  133. * tests/file_filter/file.lzop.sig: Likewise.
  134. * tests/file_filter/file.xz: Likewise.
  135. * tests/file_filter/file.xz.sig: Likewise.
  136. * tests/file_filter/keys: Likewise.
  137. * tests/file_filter/keys.pub: Likewise.
  138. * tests/file_filter/test.cfg: Likewise.
  139. * grub-core/commands/verify.c: Fix memory corruption doing
  140. signature check for network files (closes 43601).
  141. 2014-12-01 Andrei Borzenkov <arvidjaar@gmail.com>
  142. * grub-core/loader/i386/xen_fileXX.c (grub_xen_get_infoXX): Fix
  143. memory leak (CID 73645, 73782).
  144. * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Fix memory leak
  145. (CID 73635).
  146. 2014-11-30 Andrei Borzenkov <arvidjaar@gmail.com>
  147. * grub-core/lib/syslinux_parse.c (free_menu): Do not free
  148. inline array (CID 73610).
  149. 2014-11-28 Andrei Borzenkov <arvidjaar@gmail.com>
  150. * grub-core/io/lzopio.c (test_header): Fix double free (CID 73665)
  151. * grub-core/disk/geli.c (configure_ciphers): Fix memory leaks
  152. (Coverity CID 73813, 73710)
  153. * grub-core/disk/luks.c (configure_ciphers): Fix memory leaks
  154. and use after free (Coverity CID 73813, 73710, 73730)
  155. * grub-core/disk/luks.c (luks_recover_key): Fix memory leak (Coverity
  156. CID 73854)
  157. * util/grub-install-common.c (grub_install_get_target): Check return
  158. value of grub_util_fd_read (Coverity CID 73819).
  159. * util/grub-mkstandalone.c (add_tar_file): Fix out of bound access
  160. to hd.magic (Coverity CID 73587, 73888, bug 43690).
  161. 2014-11-20 Andrei Borzenkov <arvidjaar@gmail.com>
  162. * tests/util/grub-fs-tester.in: Consistently print output
  163. of grub ls if test fails.
  164. 2014-11-07 Leif Lindholm <leif.lindholm@linaro.org>
  165. * grub-core/kern/efi/init.c: check value of *path before
  166. dereferencing.
  167. 2014-11-03 Michael Chang <mchang@suse.com>
  168. * grub-core/net/icmp6.c (grub_net_recv_icmp6_packet): Fix size
  169. of neighbor solicitation packet in grub_netbuff_pull.
  170. 2014-10-14 Andrei Borzenkov <arvidjaar@gmail.com>
  171. * grub-core/loader/arm/linux.c: Use full initializer for initrd_ctx to
  172. avoid fatal warnings with older gcc (probably before 4.7).
  173. * grub-core/loader/arm64/linux.c: Likewise.
  174. * grub-core/loader/i386/linux.c: Likewise.
  175. * grub-core/loader/i386/pc/linux.c: Likewise.
  176. * grub-core/loader/ia64/efi/linux.c: Likewise.
  177. * grub-core/loader/mips/linux.c: Likewise.
  178. * grub-core/loader/powerpc/ieee1275/linux.c: Likewise.
  179. * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
  180. 2014-09-25 Colin Watson <cjwatson@ubuntu.com>
  181. Fix in-tree --platform=none
  182. * configure.ac: Only remove include/grub/cpu and
  183. include/grub/machine in the --platform=none case, not all of
  184. include/grub.
  185. 2014-09-23 Colin Watson <cjwatson@ubuntu.com>
  186. Add a new "none" platform that only builds utilities
  187. * configure.ac: Add "none" platform. Default to it for unsupported
  188. CPUs rather than stopping with a fatal error. Don't downgrade
  189. x86_64-none to i386. Define COND_real_platform Automake conditional
  190. if the platform is anything other than "none". Don't do any include
  191. directory linking for "none".
  192. * Makefile.am: Skip building grub-core and all bootcheck targets if
  193. !COND_real_platform.
  194. * include/grub/time.h: Don't include <grub/cpu/time.h> if GRUB_UTIL
  195. is defined.
  196. 2014-09-22 Andrei Borzenkov <arvidjaar@gmail.com>
  197. Use grub_cpu_to_XXX_compile_time for constants.
  198. 2014-09-21 Valentin Dornauer <valentin@unimplemented.org>
  199. The AML parser implements only a small subset of possible AML
  200. opcodes. On the Fujitsu Lifebook E744 this and another bug in
  201. the parser (incorrect handling of TermArg data types) would lead
  202. to the laptop not turning off (_S5 not found).
  203. * grub-core/commands/acpihalt.c: Support OpAlias in the AML parser;
  204. in skip_ext_op(), handle some Type2Opcodes more correctly (TermArgs
  205. aren't always simply strings!); Add function to skip TermArgs
  206. * include/grub/acpi.h: Add new opcodes
  207. 2014-09-21 Vladimir Serbinenko <phcoder@gmail.com>
  208. * grub-core/normal/main.c: Don't drop to rescue console in
  209. case of password-protected prompt and no menu entries.
  210. 2014-09-21 Vladimir Serbinenko <phcoder@gmail.com>
  211. * grub-core/commands/keylayouts.c: Ignore unknown keys.
  212. 2014-09-21 Vladimir Serbinenko <phcoder@gmail.com>
  213. * grub-core/gmodule.pl.in: Accept newer binutils which output
  214. empty column rather than 0x0.
  215. 2014-09-21 Michael Chang <mchang@suse.com>
  216. * grub-core/osdep/unix/config.c: Remove extraneous comma.
  217. 2014-09-21 Peter Jones <pjones@redhat.com>
  218. * grub-core/loader/arm/linux.c: Initialized initrd_ctx so
  219. we don't free a random pointer from the stack.
  220. * grub-core/loader/arm64/linux.c: Likewise.
  221. * grub-core/loader/i386/linux.c: Likewise.
  222. * grub-core/loader/i386/pc/linux.c: Likewise.
  223. * grub-core/loader/ia64/efi/linux.c: Likewise.
  224. * grub-core/loader/mips/linux.c: Likewise.
  225. * grub-core/loader/powerpc/ieee1275/linux.c: Likewise.
  226. * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
  227. 2014-09-15 Khem Raj <raj.khem@gmail.com>
  228. * grub-core/kern/emu/hostfs.c: use _DEFAULT_SOURCE in addition to
  229. _BSD_SOURCE to avoid warnings under glibc 2.20+.
  230. 2014-09-08 Michael Chang <mchang@suse.com>
  231. * grub-core/fs/btrfs.c (grub_btrfs_extent_read): Fix extent size
  232. check; comparing &data->extent against addresses in the region it
  233. points to is unpredictable.
  234. 2014-09-07 Colin Watson <cjwatson@ubuntu.com>
  235. Support grub-emu on x32 (ILP32 but with x86-64 instruction set)
  236. * configure.ac: Remove -m64 from checks for -mcmodel=large and
  237. -mno-red-zone. These are always either unnecessary (x86_64-emu) or
  238. already in TARGET_CFLAGS at this point, and they produce incorrect
  239. results when building for x32.
  240. * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Cast
  241. pointers to Elf64_Xword via grub_addr_t, in order to work on x32.
  242. * include/grub/x86_64/types.h (GRUB_TARGET_SIZEOF_VOID_P,
  243. GRUB_TARGET_SIZEOF_LONG): Define to 4 on x32.
  244. 2014-09-07 Colin Watson <cjwatson@ubuntu.com>
  245. * configure.ac: Remove several unnecessary semicolons.
  246. 2014-08-25 Colin Watson <cjwatson@ubuntu.com>
  247. * grub-core/kern/mips/arc/init.c (grub_machine_get_bootlocation):
  248. Initialise pend to pacify GCC.
  249. 2014-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
  250. * util/grub-mkconfig.in: Fix typo (gettext_print instead of
  251. gettext_printf).
  252. 2014-08-13 Vladimir Serbinenko <phcoder@gmail.com>
  253. * grub-core/term/at_keyboard.c: Retry probing keyboard if
  254. scancode setup failed.
  255. 2014-08-10 Vladimir Serbinenko <phcoder@gmail.com>
  256. * grub-core/kern/disk_common.c: Clump disk size to 1EiB.
  257. 2014-08-10 Vladimir Serbinenko <phcoder@gmail.com>
  258. * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Add
  259. safety to avoid triggerring VirtualBox bug.
  260. 2014-08-10 Vladimir Serbinenko <phcoder@gmail.com>
  261. * grub-core/fs/cbfs.c: Don't probe disks of unknow size.
  262. Fixes hang on virtualbox.
  263. 2014-07-08 Colin Watson <cjwatson@ubuntu.com>
  264. * util/grub.d/10_hurd.in: Make kernel list progression not fail on
  265. kernels whose paths contain regex metacharacters.
  266. * util/grub.d/10_kfreebsd.in: Likewise.
  267. * util/grub.d/10_linux.in: Likewise.
  268. * util/grub.d/20_linux_xen.in: Likewise.
  269. Reported by: Heimo Stranner.
  270. 2014-06-26 Colin Watson <cjwatson@ubuntu.com>
  271. * docs/grub-dev.texi (Finding your way around): The build system no
  272. longer uses AutoGen directly.
  273. 2014-06-21 Роман Пехов <roman_pekhov>
  274. * grub-core/commands/loadenv.c (check_blocklists): Fix overlap check.
  275. 2014-06-21 Glenn Washburn <development@efficientek.com>
  276. * util/grub-install.c: Fix handling of --disk-module.
  277. 2014-06-21 Stephane Rochoy <sheda>
  278. * grub-core/loader/i386/bsd.c (grub_netbsd_boot): Pass pointer to
  279. EFI system table.
  280. 2014-06-21 Stephane Rochoy <sheda>
  281. * grub-core/commands/efi/lsefisystab.c (grub_cmd_lsefisystab): Show
  282. EFI system table physical address.
  283. 2014-06-21 Trevor Woerner <trevor.woerner@linaro.org>
  284. * util/grub-gen-asciih.c (add_glyph): Fix uninitialised variable.
  285. 2014-06-21 Vladimir Serbinenko <phcoder@gmail.com>
  286. * grub-core/commands/verify.c (grub_pubkey_open): Trust procfs.
  287. 2014-06-21 Vladimir Serbinenko <phcoder@gmail.com>
  288. * grub-core/commands/verify.c (grub_pubkey_open): Fix memdisk
  289. check.
  290. 2014-04-20 Vladimir Serbinenko <phcoder@gmail.com>
  291. * grub-core/kern/misc.c (__bzero): Don't compile in GRUB_UTIL.
  292. Reported by: Yves Blusseau <blusseau@zetam.org>.
  293. 2014-04-20 Piotr Krysiuk <piotras@gmail.com>
  294. * grub-core/lib/i386/relocator.c: Allow loading old kernels by placing
  295. GDT in conventional memory.
  296. 2014-04-10 Colin Watson <cjwatson@ubuntu.com>
  297. * util/grub.d/30_os-prober.in: Tolerate devices with no filesystem
  298. UUID. Other parts of grub-mkconfig tolerate these, they were
  299. previously allowed here up to commit
  300. 55e706c918922def17f5012c23cfe88c4c645208, and they can arise in
  301. practice when the system has active LVM snapshots.
  302. Fixes Ubuntu bug #1287436.
  303. 2014-04-10 Colin Watson <cjwatson@ubuntu.com>
  304. * grub-core/disk/lvm.c (grub_lvm_detect): Search for
  305. "logical_volumes" block a little more accurately.
  306. 2014-04-06 Vladimir Serbinenko <phcoder@gmail.com>
  307. * grub-core/lib/syslinux_parse.c: Fix timeout quoting.
  308. 2014-04-04 Vladimir Serbinenko <phcoder@gmail.com>
  309. * include/grub/libgcc.h: Remove ctzsi2 and ctzdi2. They're no longer
  310. pulled from libgcc.
  311. 2014-04-04 Vladimir Serbinenko <phcoder@gmail.com>
  312. Replace few instances of memcmp/memcpy in the code that should be
  313. grub_memcmp/grub_memcpy.
  314. 2014-04-03 Vladimir Serbinenko <phcoder@gmail.com>
  315. * grub-core/osdep/linux/getroot.c (grub_util_part_to_disk): Support NVMe
  316. device names.
  317. 2014-03-31 Thomas Falcon <tlfalcon@linux.vnet.ibm.com>
  318. btrfs: fix get_root key comparison failures due to endianness
  319. * grub-core/fs/btrfs.c (get_root): Convert
  320. GRUB_BTRFS_ROOT_VOL_OBJECTID to little-endian.
  321. 2014-03-31 Colin Watson <cjwatson@ubuntu.com>
  322. Fix partmap, cryptodisk, and abstraction handling in grub-mkconfig.
  323. Commit 588744d0dc655177d5883bdcb8f72ff5160109ed caused grub-mkconfig
  324. no longer to be forgiving of trailing spaces on grub-probe output
  325. lines, which among other things means that util/grub.d/10_linux.in
  326. no longer detects LVM. To fix this, make grub-probe's output
  327. delimiting more consistent. As a bonus, this improves the coverage
  328. of the -0 option.
  329. Fixes Debian bug #735935.
  330. * grub-core/disk/cryptodisk.c
  331. (grub_util_cryptodisk_get_abstraction): Add a user-data argument.
  332. * grub-core/disk/diskfilter.c (grub_diskfilter_get_partmap):
  333. Likewise.
  334. * include/grub/cryptodisk.h (grub_util_cryptodisk_get_abstraction):
  335. Update prototype.
  336. * include/grub/diskfilter.h (grub_diskfilter_get_partmap): Likewise.
  337. * util/grub-install.c (push_partmap_module, push_cryptodisk_module,
  338. probe_mods): Adjust for extra user-data arguments.
  339. * util/grub-probe.c (do_print, probe_partmap, probe_cryptodisk_uuid,
  340. probe_abstraction): Use configured delimiter. Update callers.
  341. 2014-03-31 Colin Watson <cjwatson@ubuntu.com>
  342. * util/grub-probe,c (options): Make -0 work again (broken by
  343. conversion to argp).
  344. (main): Simplify logic.
  345. 2014-03-26 Vladimir Serbinenko <phcoder@gmail.com>
  346. * grub-core/lib/relocator.c: Fix the case when end of leftover is used.
  347. 2014-03-26 Fu Wei <fu.wei@linaro.org>
  348. * grub-core/loader/arm64/linux.c: Remove redundant "0x".
  349. 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
  350. * include/grub/i386/openbsd_bootarg.h: Add addr and frequency fields.
  351. * grub-core/loader/i386/bsd.c (grub_cmd_openbsd): Fill addr field.
  352. Suggested by: Markus Müller.
  353. 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
  354. * grub-core/kern/i386/pc/mmap.c: Fallback to EISA memory map
  355. if E820 failed to return any regions.
  356. 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
  357. * grub-core/mmap/i386/uppermem.c (lower_hook) [COREBOOT]: Ignore low
  358. tables for low memory calculations.
  359. 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
  360. * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi): Limit
  361. location to 640K.
  362. 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
  363. * grub-core/kern/i386/coreboot/mmap.c: Filter out 0xa0000-0x100000
  364. region.
  365. 2014-02-20 Vladimir Serbinenko <phcoder@gmail.com>
  366. * grub-core/disk/ahci.c: Ignore NPORTS field and rely on PI
  367. exclusively.
  368. 2014-02-04 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
  369. Add bootpath parser for open firmware.
  370. It enables net boot even when there is no bootp/dhcp server.
  371. * grub-core/net/drivers/ieee1275/ofnet.c: Add grub_ieee1275_parse_bootpath
  372. and call it at grub_ieee1275_net_config_real.
  373. * grub-core/kern/ieee1275/init.c: Add bootpath to
  374. grub_ieee1275_net_config.
  375. * include/grub/ieee1275/ieee1275.h: Likewise.
  376. 2014-02-04 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
  377. Add grub_env_set_net_property function.
  378. * grub-core/net/bootp.c: Remove set_env_limn_ro.
  379. * grub-core/net/net.c: Add grub_env_set_net_property.
  380. * include/grub/net.h: Likewise.
  381. 2014-02-03 Vladimir Serbinenko <phcoder@gmail.com>
  382. * util/grub-mkrescue.c: Build fix for argp.h with older gcc.
  383. 2014-02-03 Vladimir Serbinenko <phcoder@gmail.com>
  384. * util/grub-mkfont.c: Build fix for argp.h with older gcc.
  385. 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
  386. * grub-core/disk/ahci.c: Increase timeout. Some SSDs take up to
  387. 7 seconds to recover if last poweroff was bad.
  388. 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
  389. * grub-core/disk/ahci.c: Properly handle transactions with no
  390. transferred data.
  391. 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
  392. * grub-core/disk/ahci.c: Add safety cleanups.
  393. 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
  394. * grub-core/disk/ahci.c: Allocate and clean space for all possible 32
  395. slots to avoid pointing to uninited area.
  396. 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
  397. * grub-core/disk/ahci.c: Do not enable I/O decoding and keep
  398. enabling busmaster for the end.
  399. 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
  400. * util/grub-mkfont.c: Downgrade warnings about unhandled features
  401. to debug.
  402. 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
  403. * grub-core/term/at_keyboard.c: Tolerate missing keyboard.
  404. 2014-01-29 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
  405. * .gitignore: add missing files and .exe variants.
  406. 2014-01-26 Mike Gilbert <floppym@gentoo.org>
  407. grub-install: support for partitioned partx loop devices.
  408. * grub-core/osdep/linux/getroot.c (grub_util_part_to_disk): Detect
  409. /dev/loopX as being the parent of /dev/loopXpY.
  410. 2014-01-26 Vladimir Serbinenko <phcoder@gmail.com>
  411. * grub-core/term/serial.c (grub_serial_register): Fix invalid free.
  412. Ensure that pointers are inited to NULL and that pointers are not
  413. accessed after free.
  414. 2014-01-25 Andrey Borzenkov <arvidjaar@gmail.com>
  415. * include/grub/crypto.h: Replace __attribute__ ((format (printf)) with
  416. __attribute__ ((format (__printf__)) to fix compilation under MinGW-w64.
  417. * include/grub/emu/misc.h: ... and here.
  418. * include/grub/err.h: ... and here.
  419. * util/import_gcry.py: ... and here (in files g10lib.h).
  420. 2014-01-25 Andrey Borzenkov <arvidjaar@gmail.com>
  421. * util/grub-mkimage.c: Make prefix argument mandatory.
  422. 2014-01-24 Vladimir Serbinenko <phcoder@gmail.com>
  423. Fix several translatable strings.
  424. Suggested by: D. Prévot.
  425. 2014-01-24 Vladimir Serbinenko <phcoder@gmail.com>
  426. * util/grub-install.c: List available targets.
  427. 2014-01-23 Colin Watson <cjwatson@ubuntu.com>
  428. * util/grub-install.c (write_to_disk): Add an info message.
  429. 2014-01-21 Andrey Borzenkov <arvidjaar@gmail.com>
  430. * Makefile.am: Allow adding extra files to generated Windows ZIP
  431. archive by setting GRUB_WINDOWS_EXTRA_DIST.
  432. 2014-01-21 Andrey Borzenkov <arvidjaar@gmail.com>
  433. * configure.ac: Look for DejaVuSans also in /usr/share/fonts/truetype.
  434. Show detected font path in summary.
  435. 2014-01-21 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
  436. * grub-core/net/arp.c (grub_net_arp_send_request): Increase network try
  437. interval gradually.
  438. * grub-core/net/icmp6.c (grub_net_icmp6_send_request): Likewise.
  439. * grub-core/net/net.c (grub_net_fs_read_real): Likewise.
  440. * grub-core/net/tftp.c (tftp_open): Likewise.
  441. * include/grub/net.h (GRUB_NET_INTERVAL_ADDITION): New define.
  442. 2014-01-21 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
  443. * grub-core/net/net.c (receive_packets): Change stop condition to avoid
  444. infinite loops.
  445. In net/net.c there is a while (1) that only exits if there is a stop
  446. condition and more then 10 packages or if there is no package received.
  447. If GRUB is idle and enter in this loop, the only condition to leave is
  448. if it doesn't have incoming packages. In a network with heavy traffic
  449. this never happens.
  450. 2014-01-19 Colin Watson <cjwatson@ubuntu.com>
  451. * grub-core/osdep/freebsd/hostdisk.c (grub_util_fd_open): Ignore
  452. EPERM when modifying kern.geom.debugflags. It is only a problem for
  453. such things as installing GRUB to the MBR, in which case there'll be
  454. an error later anyway, not for opening files during tests.
  455. 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
  456. * grub-core/Makefile.am: Build grub_emu_init.[ch] from MODULE_FILES
  457. instead of MOD_FILES.
  458. * grub-core/genemuinit.sh: Simplify stripping of suffix so it works
  459. both with and without .exe.
  460. * grub-core/genemuinitheader.sh: Same.
  461. 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
  462. * util/grub-install.c: Fix a typo.
  463. 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
  464. * grub-core/normal/main.c (read_config_file): Buffer config file.
  465. Reduces boot time.
  466. 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
  467. * acinclude.m4 (grub_CHECK_LINK_DIR): Check that we can also remove
  468. symbolic link to directory. It fails in Msys shell on Windows 2003.
  469. 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
  470. * Makefile.am (default_payload.elf): Add modules
  471. multiboot cbmemc linux16 gzio echo help.
  472. 2014-01-18 Mike Gilbert <floppym@gentoo.org>
  473. * Makefile.util.def: Link grub-ofpathname with zfs libs.
  474. 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
  475. * grub-core/commands/macbless.c: Rename FILE and DIR to avoid
  476. conflicts.
  477. Reported by: Andrey Borzenkov.
  478. 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
  479. * include/grub/misc.h: Move macros for compiler features to ...
  480. * include/grub/compiler.h: ... new file.
  481. * include/grub/list.h: Include <grub/compiler.h> instead of <grub/misc.h>.
  482. * grub-core/commands/fileXX.c: Include <grub/misc.h>.
  483. * grub-core/efiemu/prepare.c: Include <grub/misc.h>.
  484. * grub-core/loader/i386/xen_file.c: Include <grub/misc.h>.
  485. * grub-core/loader/i386/xen_fileXX.c: Include <grub/misc.h>.
  486. * grub-core/video/capture.c: Include <grub/misc.h>.
  487. * include/grub/command.h: Include <grub/misc.h>.
  488. * include/grub/dl.h: Include <grub/misc.h>.
  489. * include/grub/procfs.h: Include <grub/misc.h>.
  490. 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
  491. * configure.ac: Add support for BUILD_EXEEXT and use it ...
  492. * Makefile.am: ... here.
  493. * Makefile.util.def: ... and here.
  494. * grub-core/Makefile.am: ... and here.
  495. 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
  496. * include/grub/osdep/hostfile_windows.h: Use _W64 instead of
  497. FILE_OFFSET_BITS to differentiate between native MinGW and Mingw W64.
  498. 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
  499. * grub-core/term/terminfo.c: Recognize keys F1-F12.
  500. 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
  501. * configure.ac: Add support for BUILD_LDFLAGS.
  502. * Makefile.am: Use BUILD_LDFLAGS for build time programs here ...
  503. * grub-core/Makefile.am: ... and here.
  504. * INSTALL: Mention BUILD_LDFLAGS.
  505. 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
  506. * util/grub-mount.c: Extend GCC warning workaround to grub-mount.
  507. 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
  508. * grub-core/kern/efi/efi.c: Ensure that the result starts with /
  509. and has no //.
  510. 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
  511. * NEWS: Add few missing entries.
  512. 2014-01-17 Colin Watson <cjwatson@ubuntu.com>
  513. * util/grub.d/00_header.in (make_timeout): Use && rather than test
  514. -a.
  515. * util/grub.d/10_windows.in: Likewise.
  516. * util/grub.d/10_netbsd.in (netbsd_load_fs_module): Use || rather
  517. than test -o.
  518. * util/grub.d/30_os-prober.in: Use && rather than test -a, and ||
  519. rather than test -o.
  520. 2014-01-17 Colin Watson <cjwatson@ubuntu.com>
  521. * grub-core/osdep/freebsd/hostdisk.c (grub_util_fd_open): Remove
  522. redundant preprocessor conditional.
  523. 2014-01-08 Colin Watson <cjwatson@ubuntu.com>
  524. * Makefile.util.def (grub-macbless): Change mansection to 8.
  525. 2014-01-07 Leif Lindholm <leif.lindholm@linaro.org>
  526. * grub-core/loader/arm64/linux.c: correctly set device path end length.
  527. 2014-01-07 Andrey Borzenkov <arvidjaar@gmail.com>
  528. * util/grub-install.c: Use bootaa64.efi instead of bootaarch64.efi on
  529. arm64 to comply with EFI specification. Also use grubaa64.efi for
  530. consistency.
  531. * util/grub-mkrescue.c: Change to use bootaa64.efi too.
  532. 2014-01-07 Andrey Borzenkov <arvidjaar@gmail.com>
  533. * include/grub/osdep/hostfile_windows.h: Do not redefine fseeko/ftello
  534. on MinGW-64 when compiling for 32 bits.
  535. 2013-12-30 Andrey Borzenkov <arvidjaar@gmail.com>
  536. * grub-core/Makefile.core.def: strip .eh_frame section for arm64-efi.
  537. 2013-12-30 Vladimir Serbinenko <phcoder@gmail.com>
  538. * NEWS: Add few missing entries. Correct existing ones.
  539. 2013-12-28 Vladimir Serbinenko <phcoder@gmail.com>
  540. Don't abort() on unavailable coreboot tables if not running on coreboot.
  541. 2013-12-28 Andrey Borzenkov <arvidjaar@gmail.com>
  542. * grub-core/kern/emu/misc.c: Remove unused error.h; fixes compilation
  543. on mingw.
  544. 2013-12-28 Colin Watson <cjwatson@ubuntu.com>
  545. * NEWS: The cmosclean command in fact dates back to 1.99. Remove
  546. mention of it from 2.02.
  547. 2013-12-27 Vladimir Serbinenko <phcoder@gmail.com>
  548. * grub-core/kern/arm/cache_armv6.S: Remove .arch directive.
  549. As these functions are used on pre-ARMv6 CPUs as well we don't want
  550. to make assembler assume that architecture is higher than default one.
  551. 2013-12-27 Colin Watson <cjwatson@ubuntu.com>
  552. * NEWS: First draft of 2.02 entry.
  553. 2013-12-27 Colin Watson <cjwatson@ubuntu.com>
  554. * INSTALL (Cross-compiling the GRUB): Fix some spelling mistakes.
  555. * docs/grub.texi (Getting the source code): Likewise.
  556. 2013-12-25 Andrey Borzenkov <arvidjaar@gmail.com>
  557. * grub-core/osdep/windows/platform.c (get_platform): Fix EFI
  558. detection.
  559. 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
  560. * configure.ac: Set version to 2.02~beta2.
  561. 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
  562. * grub-core/disk/efi/efidisk.c (name_devices): Skip Apple ghosts.
  563. 2013-12-24 Andrey Borzenkov <arvidjaar@gmail.com>
  564. * util/grub-probe.c: Improve help message and simplify list handling.
  565. 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
  566. Fix buffer overflow in grub_efi_print_device_path.
  567. 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
  568. Show SATA device path.
  569. 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
  570. Revert grub-file usage in grub-mkconfig.
  571. 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
  572. Make newly-created files other than grub.cfg world-readable.
  573. 2013-12-24 Andrey Borzenkov <arvidjaar@gmail.com>
  574. * util/grub.d/00_header.in: Improve compatibility with old config.
  575. 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
  576. Make rijndael.c respect aliasing rules.
  577. Trivial backport of dfb4673da8ee52d95e0a62c9f49ca8599943f22e.
  578. 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
  579. Make grub_util_device_is_mapped_stat available in grub-emu core.
  580. 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
  581. Add -Qn to TARGET_CFLAGS if it's supported.
  582. Fixes compilation on cygwin.
  583. Reported by: Andrey Borzenkov.
  584. Suggested by: Andrey Borzenkov.
  585. 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
  586. Save TARGET_CC version in modinfo.sh.
  587. Suggested by: Andrey Borzenkov.
  588. 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
  589. Make grub_util_devmapper_part_to_disk and grub_util_find_partition_start
  590. follow the same algorithm to avoid method mismatch. Don't assume
  591. DMRAID- UUID to mean full disk but instead check that mapping is linear.
  592. 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
  593. Declare GRUB_EFI_VENDOR_APPLE_GUID.
  594. 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
  595. Dump type and vendor specific data when printing device path.
  596. 2013-12-23 Colin Watson <cjwatson@debian.org>
  597. Update some documentation to refer to Git rather than Bazaar.
  598. * docs/grub.texi (Obtaining and Building GRUB): Refer to Git rather
  599. than Bazaar.
  600. * po/README: Likewise. Fix spelling mistake.
  601. 2013-12-23 Colin Watson <cjwatson@ubuntu.com>
  602. Don't distribute config.h.
  603. * Makefile.am (platform_HEADERS): Move to ...
  604. (nodist_platform_HEADERS): ... here. Fixes gettext_strings_test
  605. failure when building from a distributed tarball.
  606. 2013-12-23 Colin Watson <cjwatson@ubuntu.com>
  607. * configure.ac: Fix spelling.
  608. * grub-core/commands/parttool.c: Fix grammar.
  609. * grub-core/disk/ldm.c: Use consistent capitalisation for "LDM
  610. Embedding Partition".
  611. 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
  612. ARM64 support for grub-mkrescue.
  613. 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
  614. Install modinfo.sh to keep build information around.
  615. 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
  616. * grub-core/modinfo.sh.in: Add build config information.
  617. 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
  618. ARM64 grub-file and grub-mkconfig support.
  619. 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
  620. Remove leftover options defines.
  621. 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
  622. * include/grub/arm64/linux.h: Remove leftovers. Add missing prefixes.
  623. 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
  624. * grub-core/loader/arm64/linux.c: Add missing bracket.
  625. 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
  626. Add arm64-efi recognition to grub-file.
  627. 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
  628. Fix ia64-efi recognition in grub-file.
  629. 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
  630. Recognize raspberry pi kernel in grub-file.
  631. 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
  632. Enable cache on ARM U-Boot port.
  633. Without it the port is reidiculously slow.
  634. 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
  635. Fix ARM cache maintainance.
  636. More code was converted from ASM to C for easier handling.
  637. 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
  638. * grub-core/kern/arm/cache.c (grub_arm_disable_caches_mmu): Use v6
  639. algorithm on v5.
  640. Suggested by: Leif Lindholm.
  641. 2013-12-22 Andrey Borzenkov <arvidjaar@gmail.com>
  642. * util/grub-mkconfig.in: Fix Xen platform conditions.
  643. 2013-12-22 Andrey Borzenkov <arvidjaar@gmail.com>
  644. * util/grub-mkrescue.c: Split single help message string in several
  645. strings used in previous shell version.
  646. 2013-12-22 Leif Lindholm <leif.lindholm@linaro.org>
  647. Add arm64 Linux loader.
  648. 2013-12-22 Leif Lindholm <leif.lindholm@linaro.org>
  649. Add grub_fdt_create_empty_tree() and grub_fdt_set_prop64().
  650. 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
  651. Add module loading and parsing boot time checkpoints.
  652. 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
  653. * grub-core/loader/arm/linux.c: Pass arguments through on ATAG
  654. platforms.
  655. 2013-12-22 Lars Wendler <polynomial-c@gentoo.org>
  656. * util/grub-mkconfig.in: Skip non-executable files.
  657. 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
  658. Workaround buggy timer in raspberry pie by using our own timer
  659. implementation.
  660. 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
  661. * include/grub/arm/uboot/kernel.h (GRUB_KERNEL_MACHINE_HEAP_SIZE):
  662. Increase to 16 MiB to allow loading the whole memdisk.
  663. 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
  664. Fix ARM Linux Loader on non-FDT platforms.
  665. 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
  666. * configure.ac: Choose link format based on host_os on emu.
  667. 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
  668. * grub-core/osdep/unix/getroot.c: Non-unix build fix.
  669. 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
  670. * grub-core/kern/emu/main.c: Build fix for emu.
  671. 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
  672. Build fixes for argp.h with older gcc.
  673. 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
  674. * util/grub-glue-efi.c: Use "universal binary" rather "fat binary"
  675. in strings.
  676. Suggested by: David Prévot.
  677. 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
  678. * include/grub/crypto.h (grub_crypto_xor): Fix cast-align warning.
  679. 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
  680. Enable -Wformat=2 if it's supported.
  681. 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
  682. * configure.ac: Add -Wmissing-include-dirs -Wmissing-prototypes
  683. -Wmissing-declarations if supported.
  684. 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
  685. * grub-core/commands/macbless.c (grub_mac_bless_inode): Pass inode as
  686. u32 as both HFS and HFS+ have 32-bit inodes.
  687. 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
  688. * include/grub/misc.h (grub_strtol): Fix overflow.
  689. 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
  690. * include/grub/term.h (grub_unicode_estimate_width): Use grub_size_t
  691. as return type in both conditionals.
  692. 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
  693. * include/grub/video.h (grub_video_rgba_color_rgb): Fix prototype
  694. to use uint8_t for color.
  695. 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
  696. * util/misc.c (grub_util_get_image_size): Check for overflow.
  697. 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
  698. * grub-core/disk/raid6_recover.c (grub_raid_block_mulx): Use grub_size_t
  699. for size.
  700. 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
  701. * grub-core/disk/lvm.c: Use grub_size_t for sizes and grub_ssize_t
  702. for pointer difference.
  703. 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
  704. * util/import_gcry.py: Skip sample keys.
  705. 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
  706. * util/misc.c (grub_qsort_strcmp): Don't discard const attribute.
  707. 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
  708. * configure.ac: Remove duplicate warning arguments.
  709. 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
  710. Add missing static qualifiers.
  711. 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
  712. Add missing includes.
  713. 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
  714. Inline printf templates when possible to enable format checking.
  715. 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
  716. * include/grub/crypto.h: Don't discard const attribute.
  717. 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
  718. * grub-core/net/bootp.c (grub_cmd_dhcpopt): Use snprintf where it
  719. was intended.
  720. 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
  721. * grub-core/lib/crypto.c: Don't discard const attribute.
  722. 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
  723. * grub-core/lib/disk.c: Fix potential overflow.
  724. 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
  725. * grub-core/lib/arg.c: Don't discard const attribute.
  726. 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
  727. * grub-core/kern/dl.c: Don't discard const attribute.
  728. 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
  729. * grub-core/kern/disk.c: Fix potential overflow.
  730. 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
  731. * conf/Makefile.common: Don't include non-existing directory
  732. grub-core/lib/libgcrypt-grub/include.
  733. 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
  734. Clarify several translatable messages.
  735. 2013-12-21 David Prévot <david@tilapin.org>
  736. Correct some translatable strings.
  737. 2013-12-21 Colin Watson <cjwatson@ubuntu.com>
  738. * util/grub-mkrescue.c: Rephrase mkrescue description.
  739. 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
  740. 2013-12-21 Colin Watson <cjwatson@ubuntu.com>
  741. Clarify several translatable messages.
  742. 2013-12-20 Colin Watson <cjwatson@ubuntu.com>
  743. Be more verbose about some configure failures.
  744. 2013-12-20 Colin Watson <cjwatson@ubuntu.com>
  745. Fix various build problems on GNU/Hurd.
  746. * grub-core/osdep/unix/getroot.c (strip_extra_slashes): Move inside
  747. !defined (__GNU__).
  748. (xgetcwd): Likewise.
  749. * include/grub/emu/hostdisk.h (grub_util_hurd_get_disk_info)
  750. [__GNU__]: Add prototype.
  751. * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__GNU__]: Format
  752. long int using %ld rather than %d.
  753. 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
  754. * util/grub-install.c: Inform user about install platform.
  755. 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
  756. * configure.ac: Set version to 2.02~beta1.
  757. 2013-12-18 Allen Pais <allen.pais@oracle.com>
  758. 2013-12-18 Bob Picco <bob.picco@oracle.com>
  759. * grub-core/boot/sparc64/ieee1275/boot.S: Fix order of fields.
  760. 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
  761. Make grub_zlib_decompress handle incomplete chunks.
  762. Fixes squash4.
  763. 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
  764. * grub-core/Makefile.am: Don't attempt to export grub_bios_interrupt
  765. on i386-multiboot.
  766. 2013-12-18 Aleš Nesrsta <starous@volny.cz>
  767. * grub-core/disk/usbms.c: Retry on unknown errors.
  768. Reuse the same tag on retries.
  769. 2013-12-18 Aleš Nesrsta <starous@volny.cz>
  770. * grub-core/bus/usb/ehci.c: Fix handling of newborn transfers.
  771. Avoid confusing them with already completed transfers.
  772. 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
  773. Remove xen VFB.
  774. Due to XEN bug it prevents Linux boot. Remove it at least, until
  775. workaround is found.
  776. 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
  777. * po/exclude.pot: Add 2 missing excludes.
  778. 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
  779. Add missing license section in macbless.mod and macho.mod.
  780. 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
  781. Allow compilation without thumb-interwork as long as no thumb is
  782. involved or only thumb2 is used.
  783. 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
  784. * INSTALL: Update comment as to why sparc64 clang isn't usable.
  785. 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
  786. Add __attribute__ ((sysv_abi)) only if it's really needed.
  787. Some compilers don't support it.
  788. 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
  789. * grub-core/lib/syslinux_parse.c: Declare timeout unsigned.
  790. 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
  791. Remove -Wold-style-definition.
  792. Not very useful and interaction of it with regexp depends on GCC
  793. version.
  794. 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
  795. Make grub_util_get_windows_path_real static.
  796. 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
  797. * grub-core/commands/fileXX.c: Silence cast-align.
  798. * grub-core/loader/i386/xen_fileXX.c: Likewise.
  799. 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
  800. * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Use explicit cast
  801. rather than LL suffix.
  802. 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
  803. * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): Remove leftover.
  804. 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
  805. * grub-core/loader/arm/linux.c: Use common initrd functions.
  806. 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
  807. Decrease number of strings to translate.
  808. 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
  809. * grub-core/kern/arm/dl.c: Remove unnecessarry execution mode check.
  810. 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
  811. Mark strings for translation and add remaining ones to exclude list.
  812. 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
  813. * util/grub-file.c (main): Fix sizeof usage.
  814. 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
  815. Silence spurious warning.
  816. 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
  817. Remove check_nt_hiberfil as it's been superseeded by file command.
  818. 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
  819. * docs/osdetect.cfg: Add isolinux config to detected OSes.
  820. 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
  821. Implement syslinux parser.
  822. 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
  823. * grub-core/commands/legacycfg.c: Use 32-bit Linux protocol on non-BIOS.
  824. 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
  825. Support cpuid --pae.
  826. 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
  827. Use AT keyboard on Yeeloong 3A.
  828. 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
  829. Add Yeeloong 3A reboot and halt.
  830. 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
  831. Add Radeon Yeeloong 3A support.
  832. 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
  833. Add bonito 3A support.
  834. 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
  835. * grub-core/loader/machoXX.c: Fix compilation on non-i386.
  836. 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
  837. * grub-core/loader/i386/xen_fileXX.c: Silence cast-align.
  838. 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
  839. * grub-core/loader/macho.c: Fix compilation on non-i386.
  840. 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
  841. Add missing format_arg attribute to check that printf with translated
  842. messages has proper arguments.
  843. 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
  844. Use grub_xasprintf to format translated error messages containing
  845. 64-bit quantity.
  846. 2013-12-17 Jon McCune <jonmccune@google.com>
  847. Fix double-free introduced by commit 33d02a42d64cf06cada1c389
  848. 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
  849. Unify message for unsupported relocation.
  850. 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
  851. Mark miscompile error for translation.
  852. 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
  853. Use %I64 and not %ll when using OS printf if compiling for windows.
  854. 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
  855. Update Mac code to match new register_efi prototype.
  856. 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
  857. Implement better integration with Mac firmware.
  858. 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
  859. * grub-core/loader/multiboot_mbi2.c: Implement special value for
  860. load_addr.
  861. 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
  862. Include serial module in default_payload.elf.
  863. 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
  864. Add explicit thumb interwork bx in asm files.
  865. Shouldn't matter for armv >= 5 but let's be safe.
  866. 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
  867. Implement Truecrypt ISO loader.
  868. 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
  869. * grub-core/lib/arg.c: Ensure at least a single space between commands.
  870. 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
  871. Implement grub_file tool and use it to implement generating of config
  872. in separate root.
  873. 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
  874. Change to v1 xen grants.
  875. 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
  876. * grub-core/lib/i386/xen/relocator.S: Fix hypercall ABI violation.
  877. GRUB relied on %ebx being preserved across hypercall which isn't true.
  878. 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
  879. * grub-core/lib/x86_64/xen/relocator.S: Fix hypercall ABI violation.
  880. GRUB relied on %rdi being preserved across hypercall which isn't true.
  881. 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
  882. Implement XEN VFB support.
  883. 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
  884. Remove grub_bios_interrupt on coreboot.
  885. It's not used currently and cannot be used safely currently.
  886. 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
  887. Update exclude.pot and mark few strings for translation.
  888. 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
  889. * util/grub-mkrescue.c: Fix incorrect file usage in fallback code.
  890. Reported by: Jon McCune
  891. 2013-12-16 Andrey Borzenkov <arvidjaar@gmail.com>
  892. * grub-core/osdep/linux/platform.c (grub_install_get_default_x86_platform):
  893. Add verbose information which firmware directories were tried.
  894. 2013-12-16 Andrey Borzenkov <arvidjaar@gmail.com>
  895. * grub-core/osdep/unix/exec.c (grub_util_exec_redirect_all): New
  896. function to optionally redirect all three standard descriptors.
  897. Redefine grub_util_exec, grub_util_exec_redirect and
  898. grub_util_exec_redirect_null to use it.
  899. * include/grub/emu/exec.h: Define it.
  900. * include/grub/osdep/exec_unix.h: Delete, it is unused.
  901. * grub-core/osdep/linux/platform.c (grub_install_get_default_x86_platform):
  902. Use grub_util_exec_redirect_all to redirect error to NULL.
  903. 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
  904. * grub-core/tests/sleep_test.c: Silence spurious warning.
  905. 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
  906. Make grub_xen_hypercall on i386 cdecl rather than stdcall to avoid
  907. linker trying to "fixup" the code.
  908. 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
  909. * grub-core/kern/x86_64/xen/startup.S: Align stack.
  910. 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
  911. Add support for converting PE+ to Elf64.
  912. 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
  913. * grub-core/commands/minicmd.c (grub_mini_cmd_dump): Handle LLP case.
  914. 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
  915. Remove practice of assigning random const pointers to device id.
  916. This is not required as cache code already checks driver id as well.
  917. 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
  918. * include/grub/x86_64/types.h: Define sizeof (long) as 4 when compiling
  919. with mingw.
  920. 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
  921. * include/grub/efi/api.h: Don't use call wrappers when compiled with
  922. mingw or cygwin as API already matches.
  923. 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
  924. * grub-core/lib/posix_wrap/errno.h: Undefine errno before redefining.
  925. 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
  926. * include/grub/efi/api.h: Define (u)intn_t based on pointer size and
  927. not on long.
  928. 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
  929. Handle X86_64_PC64 relocation.
  930. Those are generated by some cygwin compilers.
  931. 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
  932. Determine the need for mingw-related stubs at compile time rather than
  933. using not very significant $target_os.
  934. 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
  935. * grub-core/genmod.sh.in: Strip before converting to ELF as strip
  936. may not work with ELF.
  937. 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
  938. Use unix functions for temporary files and special files on cygwin.
  939. 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
  940. Define functions explicitly rather than using --defsym in tests
  941. whenever possible. Respect locality in remaining cases.
  942. 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
  943. * grub-core/genmoddep.awk: Remove explicit getline < /dev/stdin.
  944. 2013-12-15 Andrey Borzenkov <arvidjaar@gmail.com>
  945. * grub-core/osdep/windows/platform.c (grub_install_register_efi): Handle
  946. unlikely errors when getting EFI variables and make exhaustive search
  947. for all BootNNNN variables to find matching one.
  948. 2013-12-15 Ian Campbell <ijc@hellion.org.uk>
  949. * grub-core/kern/uboot/init.c: Fix units of uboot timer.
  950. 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
  951. New functional test for sleep function.
  952. This test allows to check sleep without qemu. Keep qemu version as
  953. well as functional test won't notice if all clocks are going too fast
  954. or too slow.
  955. 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
  956. Add explicit sysv_abi on amd64 asm routines.
  957. 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
  958. * grub-core/commands/efi/lsefisystab.c: Use %lld to show
  959. num_table_entries.
  960. 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
  961. * include/grub/test.h: Use gnu_printf rather than printf on GRUB
  962. functions.
  963. 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
  964. * grub-core/loader/i386/linux.c: Use grub_addr_t rather than long when
  965. appropriate.
  966. 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
  967. * grub-core/loader/i386/linux.c: Use %p rather than %lx for pointers.
  968. 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
  969. * grub-core/kern/elfXX.c: Use grub_addr_t rather than long when
  970. appropriate.
  971. 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
  972. * grub-core/disk/loopback.c: Use sequential IDs rather than pointer.
  973. In case of quick removal of loopback and adding another one it may
  974. get same ID, confusing the cache system.
  975. 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
  976. * grub-core/commands/acpi.c: Use grub_addr_t rather than long when
  977. appropriate.
  978. 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
  979. * grub-core/kern/i386/coreboot/cbtable.c: Use char * arithmetic rather
  980. than converting to long.
  981. 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
  982. * grub-core/disk/cryptodisk.c: Rename "n" to "last_cryptodisk_id".
  983. 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
  984. * util/grub-mkimagexx.c (relocate_addresses): Display offset rather
  985. than almost useless pointer.
  986. 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
  987. Add gcc_struct to all packed structures when compiling with mingw.
  988. Just "packed" doesn't always pack the way we expect.
  989. 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
  990. * include/grub/i386/coreboot/lbio.h: Add missing attribute (packed).
  991. 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
  992. * util/grub-pe2elf.c: Fix handling of .bss.
  993. 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
  994. Implement windows flavour of EFI install routines.
  995. 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
  996. * conf/Makefile.extra-dist: Adjust path to conf/i386-cygwin-img-ld.sc.
  997. 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
  998. Change grub_install_register_efi interface to pass GRUB device.
  999. This allows grub_install_register_efi to request partition info
  1000. directly.
  1001. 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
  1002. Workaround cygwin bug when using \\?\Volume{GUID} syntax.
  1003. 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
  1004. Do not use TCHAR string functions as they are not available on cygwin.
  1005. 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
  1006. Workaround windows bug when querying EFI system partition parameters.
  1007. 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
  1008. * grub-core/kern/i386/qemu/init.c (resource): Decrease struct size
  1009. by using bitfields.
  1010. 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
  1011. * grub-core/boot/i386/qemu/boot.S: Add missing EXT_C.
  1012. 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
  1013. Make i386-* other than i386-pc compileable under cygwin.
  1014. 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
  1015. Fix definition of grub_efi_hard_drive_device_path. Take care that
  1016. existing code would work even if by some reason bogus definition is
  1017. used by EFI implementations.
  1018. 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
  1019. * grub-core/osdep/windows/hostdisk.c: Fix cygwin compilation.
  1020. 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
  1021. * grub-core/osdep/windows/blocklist.c: Add missing cast in printf
  1022. invocation.
  1023. 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
  1024. * util/config.c: Remove trailing newline from distributor in simple
  1025. parsing.
  1026. 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
  1027. * include/grub/efi/api.h: Rename protocol and interface to avoid
  1028. conflict.
  1029. 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
  1030. * .gitignore: add .exe variants. add missing files. remove few outdated
  1031. entries.
  1032. 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
  1033. * grub-core/osdep/exec.c: Use unix version on cygwin.
  1034. 2013-12-13 Vladimir Serbinenko <phcoder@gmail.com>
  1035. Implement multiboot2 EFI BS specification.
  1036. 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
  1037. * grub-core/normal/charset.c: Fix premature line wrap and crash.
  1038. Crash happened only in some cases like a string starting at the
  1039. half of the screen of same length.
  1040. 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
  1041. * include/grub/efiemu/efiemu.h: Sync configuration table declaration
  1042. with EFI counterpart.
  1043. 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
  1044. Propagate the EFI commits to x86-efi specific parts.
  1045. 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
  1046. * grub-core/commands/efi/lssal.c: Fix terminating condition.
  1047. 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
  1048. Introduce grub_efi_packed_guid and use it where alignment is not
  1049. guaranteed.
  1050. 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
  1051. * include/grub/efi/api.h (grub_efi_device_path): Define length as
  1052. unaligned u16 rather than u8[2].
  1053. 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
  1054. * grub-core/kern/ia64/dl.c (grub_arch_dl_relocate_symbols): Add checks
  1055. for relocation range.
  1056. 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
  1057. * grub-core/kern/ia64/dl.c (grub_arch_dl_relocate_symbols): Handle
  1058. non-function pcrel21b relocation. It happens with .text.unlikely
  1059. section.
  1060. 2013-12-10 Leif Lindholm <leif.lindholm@linaro.org>
  1061. * make MAX_USABLE_ADDRESS platform-specific
  1062. * grub-core/kern/efi/mm.c: add Vladimir's new BYTES_TO_PAGES_DOWN macro.
  1063. 2013-12-10 Leif Lindholm <leif.lindholm@linaro.org>
  1064. * grub-core/lib/fdt.c: change memcpy => grub_memcpy
  1065. 2013-12-09 Jon McCune <jonmccune@google.com>
  1066. * Add --no-rs-codes flag to optionally disable reed-solomon codes
  1067. in grub-install and grub-bios-setup for x86 BIOS targets.
  1068. 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
  1069. Add missing compile and link options for sparc64-emu.
  1070. 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
  1071. Implement sparc64 trampolines (needed for sparc64-emu).
  1072. 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
  1073. * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Check
  1074. range of R_SPARC_HI22.
  1075. Implement R_SPARC_LM22.
  1076. 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
  1077. * grub-core/kern/powerpc/dl_helper.c (grub_arch_dl_get_tramp_got_size):
  1078. Do not explicitly check for symbol table as it's already checked in
  1079. platform-independent layer.
  1080. 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
  1081. * grub-core/kern/emu/cache.c [__ia64__]: Use our cache cleaning routine
  1082. on ia64 as __clear_cache is a dummy on ia64.
  1083. 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
  1084. * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
  1085. Do not explicitly check for symbol table as it's already checked in
  1086. platform-independent layer.
  1087. 2013-12-09 Colin Watson <cjwatson@ubuntu.com>
  1088. * util/grub-mkconfig.in: Add missing newline to output.
  1089. 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
  1090. * grub-core/kern/ia64/efi/init.c (grub_arch_sync_caches): Move to ...
  1091. * grub-core/kern/ia64/cache.c (grub_arch_sync_caches): ... here.
  1092. 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
  1093. * grub-core/kern/emu/main.c: Silence missing prototypes to allow emu
  1094. compilation with GCC <= 4.2.
  1095. * grub-core/kern/emu/argp_common.c: Likewise.
  1096. 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
  1097. * include/grub/kernel.h [__sparc__]: Restrict sparc64-ieee1275 to
  1098. right platform rather than leaking to sparc64-emu.
  1099. 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
  1100. * grub-core/osdep/windows/emuconsole.c: Remove unsigned comparison >= 0.
  1101. But ensure that the variables in question are indeed unsigned.
  1102. 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
  1103. * grub-core/kern/emu/lite.c: Add missing include of ../ia64/dl_helper.c.
  1104. 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
  1105. Remove grub_memalign on emu.
  1106. 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
  1107. * grub-core/kern/ia64/efi/init.c: Fix alignment code so it doesn't
  1108. truncate incomplete lines but instead flushes them.
  1109. 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
  1110. Move OS-dependent mprotect for module loading to grub-core/osdep/*/dl.c
  1111. and implement windows variant.
  1112. 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
  1113. Fix mips-emu compilation.
  1114. 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
  1115. * configure.ac: Check for freetype library usability.
  1116. 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
  1117. Make arm-emu work.
  1118. 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
  1119. * util/grub-mkfont.c: Replace stpcpy with grub_stpcpy.
  1120. 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
  1121. * docs/grub.texi (Environment): Update color_normal and color_highlight
  1122. defaults (light-gray instead of white).
  1123. 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
  1124. * grub-core/normal/main.c (INIT): Set default color to light-gray
  1125. to match GRUB_TERM_DEFAULT_NORMAL_COLOR (i.e. rescue mode), Linux
  1126. and apparently BIOS defaults.
  1127. 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
  1128. Transform -C option to grub-mkstandalone to --core-compress available
  1129. in all grub-install flavours.
  1130. 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
  1131. Merge GRUBFS and GRUB_FS variables.
  1132. 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
  1133. Revert commit 69ca97c820, it caused failures when using OS device name
  1134. in grub-install. Instead just strip off parenthesis in grub-install
  1135. if (hdX) was passed.
  1136. 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
  1137. * util/grub-install.c (push_partmap_module): Add helper to convert
  1138. partmap names to module names and use it in probe_mods(). Fixes
  1139. failure to find partmap modules in diskfilter case.
  1140. 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
  1141. * configure.ac: Make unifont mandatory on coreboot.
  1142. 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
  1143. * configure.ac: Skip unifont 6.3 pcf and bdf.
  1144. 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
  1145. * Makefile.am: Remove partial font files if generation failed.
  1146. 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
  1147. * util/misc.c (grub_qsort_strcmp): Add qsort helper function to sort
  1148. strings.
  1149. * include/grub/util/misc.h: Define it ...
  1150. * util/grub-install.c (device_map_check_duplicates): ... and use it.
  1151. 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
  1152. * util/grub.d/30_os-prober.in: Fix use of grub-probe instead of
  1153. ${grub_probe}.
  1154. 2013-12-06 Vladimir Serbinenko <phcoder@gmail.com>
  1155. Don't add -mlong-calls when compiling with clang.
  1156. 2013-12-06 Vladimir Serbinenko <phcoder@gmail.com>
  1157. * configure.ac: Fix a typo.
  1158. 2013-12-06 Vladimir Serbinenko <phcoder@gmail.com>
  1159. Revamp relocation handling.
  1160. Move more code to common dl.c. Add missing veneers for arm and arm64.
  1161. Decreases kernel size by 70 bytes on i386-pc (40-50 compressed)
  1162. 2013-12-05 Vladimir Serbinenko <phcoder@gmail.com>
  1163. * util/grub-mkimagexx.c: Fix reloc section generation for ia64.
  1164. 2013-12-05 Mike Gilbert <floppym@gentoo.org>
  1165. * INSTALL: Raise minimum python version to 2.6.
  1166. * gentpl.py: Use python3-style print function.
  1167. 2013-12-05 Vladimir Serbinenko <phcoder@gmail.com>
  1168. * util/grub-install.c: Mention Boot* variable.
  1169. 2013-12-05 Colin Watson <cjwatson@ubuntu.com>
  1170. * grub-core/osdep/linux/hostdisk.c
  1171. (grub_util_find_partition_start_os): Initialise start to avoid
  1172. spurious compiler warning.
  1173. 2013-12-05 Colin Watson <cjwatson@ubuntu.com>
  1174. On Linux, read partition start offsets from sysfs if possible, to
  1175. cope with block device drivers that don't implement HDIO_GETGEO.
  1176. Fixes Ubuntu bug #1237519.
  1177. * grub-core/osdep/linux/hostdisk.c (sysfs_partition_path): New
  1178. function.
  1179. (sysfs_partition_start): Likewise.
  1180. (grub_util_find_partition_start_os): Try sysfs_partition_start
  1181. before HDIO_GETGEO.
  1182. 2013-12-05 Leif Lindholm <leif.lindholm@linaro.org>
  1183. * grub-core/kern/fdt.c: Update struct size when adding node.
  1184. 2013-12-05 Vladimir Serbinenko <phcoder@gmail.com>
  1185. Handle unaligned .bss on sparc64.
  1186. Current code improperly assumes that both __bss_start and _end are
  1187. aligned to 8-bytes. Eliminating this assumption and explicitly align
  1188. modules.
  1189. 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
  1190. * grub-core/boot/sparc64/ieee1275/boot.S [CDBOOT]: Move scratchpad
  1191. so it doesn't land in the middle of loaded image.
  1192. 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
  1193. * configure.ac: Move all warning options that may be absent in
  1194. gcc >= 3.1 to optional.
  1195. Note: while this allows to compile with older GCC, official requirements
  1196. remain the same and no support for older GCC.
  1197. 2013-12-04 Colin Watson <cjwatson@ubuntu.com>
  1198. Copying the themes directory in grub-shell isn't
  1199. parallel-test-friendly and breaks on the second test when the source
  1200. directory is read-only (as in "make distcheck"). Instead, add a
  1201. hidden --themes-directory option to grub-mkrescue et al, and use it
  1202. in grub-shell.
  1203. 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
  1204. * conf/Makefile.common (CFLAGS_GNULIB): Remove -Wno-old-style-definition
  1205. as it's no longer necessarry.
  1206. 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
  1207. * configure.ac: Allow compilation with older GCC for ARM.
  1208. 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
  1209. * configure.ac: Add -no-integrated-as if {addme|ame} isn't supported.
  1210. * INSTALL: Note that GRUBwas successfully compiled with clang 3.2 for
  1211. ppc.
  1212. 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
  1213. * grub-core/kern/emu/main.c: Ignore missing prototype for main.
  1214. 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
  1215. Pass font config to config.h and not by TARGET_CFLAGS as adding
  1216. arguments doesn't work if TARGET_CFLAGS is specified on command
  1217. line.
  1218. 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
  1219. * configure.ac: Add -Wvla if compiler supports it.
  1220. 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
  1221. * grub-core/osdep/windows/emuconsole.c (grub_console_putchar):
  1222. Remove variable length arrays.
  1223. * grub-core/term/efi/console.c (grub_console_putchar): Likewise.
  1224. 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
  1225. * grub-core/kern/i386/qemu/init.c: Remove variable length arrays.
  1226. 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
  1227. * include/grub/types.h: Declare all byteswaps as inline functions
  1228. except compile-time ones.
  1229. Solves variable shadowing in constructions like
  1230. cpu_to_le (le_to_cpu(x) + 1).
  1231. 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
  1232. * grub-core/kern/efi/efi.c: Remove variable length arrays.
  1233. 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
  1234. * grub-core/kern/uboot/init.c (uboot_timer_ms): Fix overflow after 71
  1235. minutes.
  1236. 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
  1237. * grub-core/disk/ieee1275/ofdisk.c: Remove variable length arrays.
  1238. * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
  1239. 2013-12-03 Colin Watson <cjwatson@ubuntu.com>
  1240. * grub-core/Makefile.core.def (setjmp): Distribute
  1241. lib/arm64/setjmp.S.
  1242. 2013-12-03 Colin Watson <cjwatson@ubuntu.com>
  1243. Add a new timeout_style environment variable and a corresponding
  1244. GRUB_TIMEOUT_STYLE configuration key for grub-mkconfig. This
  1245. controls hidden-timeout handling more simply than the previous
  1246. arrangements, and pressing any hotkeys associated with menu entries
  1247. during the hidden timeout will now boot the corresponding menu entry
  1248. immediately.
  1249. GRUB_HIDDEN_TIMEOUT=<non-empty> + GRUB_TIMEOUT=<non-zero> now
  1250. generates a warning, and if it shows the menu it will do so as if
  1251. the second timeout were not present. Other combinations are
  1252. translated into reasonable equivalents.
  1253. Based loosely on work by Franz Hsieh. Fixes Ubuntu bug #1178618.
  1254. 2013-12-02 Vladimir Serbinenko <phcoder@gmail.com>
  1255. * util/config.c: Add missing pointer adjustment.
  1256. Reported by: qwertial
  1257. 2013-11-30 Andrey Borzenkov <arvidjaar@gmail.com>
  1258. * grub-core/kern/arm64/dl_helper.c: Include grub/arm64/reloc.h
  1259. directly, not via `cpu' link, to fix libgrub.pp generation.
  1260. 2013-11-30 Leif Lindholm <leif.lindholm@linaro.org>
  1261. New port arm64-efi.
  1262. 2013-11-30 Andrey Borzenkov <arvidjaar@gmail.com>
  1263. * docs/grub.texi (sleep): Document exit codes.
  1264. 2013-11-30 Vladimir Serbinenko <phcoder@gmail.com>
  1265. Ensure that -mno-unaligned-access or some equivalent option is used.
  1266. 2013-11-30 Vladimir Serbinenko <phcoder@gmail.com>
  1267. * grub-core/lib/libgcrypt/mpi/longlong.h: Fix compilation error with
  1268. -march=armv3.
  1269. 2013-11-30 Vladimir Serbinenko <phcoder@gmail.com>
  1270. Remove leftover GRUB_IA64_DL_TRAMP_SIZE.
  1271. 2013-11-29 Colin Watson <cjwatson@ubuntu.com>
  1272. * docs/grub-dev.texi (Font Metrics): Exclude @image command from DVI
  1273. builds, since we don't have an EPS version of font_char_metrics.png.
  1274. Add leading dot to image extension per the Texinfo documentation.
  1275. 2013-11-29 Colin Watson <cjwatson@ubuntu.com>
  1276. * util/grub-gen-asciih.c: Include FT_SYNTHESIS_H rather than
  1277. <freetype/ftsynth.h>, fixing build with FreeType 2.5.1.
  1278. * util/grub-gen-widthspec.c: Likewise.
  1279. * util/grub-mkfont.c: Likewise.
  1280. 2013-11-29 Andrey Borzenkov <arvidjaar@gmail.com>
  1281. * util/grub-setup.c (main): Move parsing of (hdX) syntax to ...
  1282. * util/setup.c (SETUP): ... here. Fixes regression: grub-install
  1283. failed to install on (hdX).
  1284. * util/grub-setup.c (get_device_name): Remove, not needed after
  1285. above change.
  1286. 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
  1287. * grub-core/kern/emu/hostfs.c (is_dir): Remove variable length arrays.
  1288. 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
  1289. * util/grub-fstest.c: Remove variable length arrays.
  1290. 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
  1291. * grub-core/osdep/linux/ofpath.c: Check return value of read.
  1292. 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
  1293. * util/mkimage.c (grub_install_generate_image): Use grub_crypto_hash for
  1294. computing crc32 rather than handling with md fundtions directly.
  1295. 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
  1296. * util/mkimage.c (grub_install_generate_image): Use grub_crypto_hash for
  1297. checking fwstart.img rather than md fundtions directly.
  1298. 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
  1299. * util/grub-mkrescue.c (main): Check that fread succeeded.
  1300. 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
  1301. * conf/Makefile.common: Remove -mexplicit-relocs and
  1302. -DUSE_ASCII_FALLBACK on yeeloong.
  1303. -DUSE_ASCII_FALLBACK is already added by font snippets.
  1304. -mexplicit-relocs isn't needed is compiler/assemblera are
  1305. configured properly.
  1306. If they're not we shouldn't attempt to fix it by ourselves.
  1307. Binary compare between before and after shows no difference.
  1308. 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
  1309. * grub-core/Makefile.core.def: Remove libgnulib.a and use its
  1310. sources in dependencies directly.
  1311. This was the only instance of "library" in core config. A bug was
  1312. reported that -fno-stack-protector wasn't passed to it. Instead of
  1313. figuring out why it failed just remove this construction used
  1314. needlessly.
  1315. 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
  1316. * grub-core/osdep/unix/password.c (grub_password_get): Check that
  1317. fgets succeeded.
  1318. 2013-11-27 Francesco Lavra <francescolavra.fl@gmail.com>
  1319. * docs/grub.texi (ls): Fix command description in case of a device name
  1320. passed as argument.
  1321. 2013-11-27 Vladimir Serbinenko <phcoder@gmail.com>
  1322. Eliminate variable length arrays in grub_vsnprintf_real.
  1323. A bit tricky because this function has to continue to work without
  1324. heap for short strings. Fixing prealloc to 32 arguments is reasonable
  1325. but make all stack references use 32-bit offset rather than 8-bit one.
  1326. So split va_args preparsing to separate function and put the prealloc
  1327. into the caller.
  1328. 2013-11-27 Vladimir Serbinenko <phcoder@gmail.com>
  1329. Introduce grub_util_file_sync and use it instead of fsync(fileno(f)).
  1330. Fixes build for windows.
  1331. 2013-11-27 Vladimir Serbinenko <phcoder@gmail.com>
  1332. * gentpl.py: Don't generate platform-dependent conditionals for
  1333. platform-independent targets.
  1334. 2013-11-27 Colin Watson <cjwatson@ubuntu.com>
  1335. * grub-core/osdep/unix/exec.c (grub_util_exec_redirect): Remove
  1336. references to mdadm from otherwise generic code.
  1337. (grub_util_exec_pipe): Likewise.
  1338. (grub_util_exec_pipe_stderr): Likewise.
  1339. * grub-core/osdep/unix/getroot.c (grub_util_pull_lvm_by_command):
  1340. This function calls vgs, not mdadm; adjust variable names
  1341. accordingly.
  1342. 2013-11-27 Colin Watson <cjwatson@ubuntu.com>
  1343. Generate Makefile.*.am directly from gentpl.py, eliminating the use
  1344. of Autogen. The Autogen definitions files remain intact as they
  1345. offer a useful abstraction.
  1346. 2013-11-27 Colin Watson <cjwatson@ubuntu.com>
  1347. Add grub_util_disable_fd_syncs call to turn grub_util_fd_sync calls
  1348. into no-ops, and use it in programs that copy files but do not need
  1349. to take special care to sync writes (grub-mknetdir, grub-rescue,
  1350. grub-mkstandalone).
  1351. 2013-11-26 Colin Watson <cjwatson@ubuntu.com>
  1352. * tests/util/grub-fs-tester.in: Execute xorriso from $PATH rather
  1353. than hardcoding /usr/local/bin/xorriso.
  1354. 2013-11-26 Vladimir Serbinenko <phcoder@gmail.com>
  1355. Add PCI command activation to all PCI drivers as required for coreboot
  1356. and maybe some other firmwares.
  1357. 2013-11-26 Vladimir Serbinenko <phcoder@gmail.com>
  1358. * grub-core/Makefile.am: Reduce gratuituous differences between Apple
  1359. and non-Apple variants of efiemu compile.
  1360. 2013-11-25 Andrey Borzenkov <arvidjaar@gmail.com>
  1361. * configure.ac: Add explicit check for linking format of
  1362. efiemu64; save it as EFIEMU64_LINK_FORMAT.
  1363. * grub-core/Makefile.am: Use EFIEMU64_LINK_FORMAT instead of
  1364. hardcoding linking format.
  1365. 2013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
  1366. * util/grub-mknetdir.c: Look for platform directories under pkglibdir
  1367. and not pkgdatadir.
  1368. 2013-11-25 Colin Watson <cjwatson@ubuntu.com>
  1369. 2013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
  1370. Add a --locale-directory option to grub-install and related tools.
  1371. * include/grub/util/install.h (GRUB_INSTALL_OPTIONS): Add
  1372. --locale-directory option.
  1373. (enum grub_install_options): Add
  1374. GRUB_INSTALL_OPTIONS_LOCALE_DIRECTORY.
  1375. * util/grub-install-common.c (grub_install_help_filter): Handle
  1376. GRUB_INSTALL_OPTIONS_LOCALE_DIRECTORY.
  1377. (grub_install_parse): Likewise.
  1378. (get_localedir): New function to check for a user-provided option
  1379. before trying grub_util_get_localedir.
  1380. (copy_locales): Use get_localedir rather than
  1381. grub_util_get_localedir. Handle differing locale directory layouts.
  1382. (grub_install_copy_files): Likewise.
  1383. 2013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
  1384. * grub-core/osdep/unix/platform.c (get_ofpathname): Trim ending newline.
  1385. Don't rely on PATH_MAX.
  1386. 2013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
  1387. * grub-core/genmoddep.awk: Use more portable && rather than and.
  1388. 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
  1389. * grub-core/kern/i386/pc/startup.S [__APPLE__]: Create _edata by placing
  1390. an object after data. While it doesn't seem right solution, it
  1391. works well enough and OSX isn't main compilation platform.
  1392. 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
  1393. * gentpl.py: Add -ed2016 in order to make objconv accept our binary.
  1394. While it doesn't seem right solution, it works well enough and
  1395. OSX isn't main compilation platform.
  1396. 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
  1397. * configure.ac: Add -static to LDFLAGS when using apple linker to
  1398. prevent it from pulling in dynamic linker.
  1399. 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
  1400. Apple assembly doesn't handle symbol arithmetic well. So define an
  1401. offset symbol in boot.S and use it.
  1402. 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
  1403. Apple assembly doesn't handle symbol arithmetic well. So instead
  1404. of getting addres of kernel_sector + 4 define kernel_sector_high.
  1405. It also makes code more readable.
  1406. 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
  1407. With Apple assembly in .macro environvemnt you have to use $$ instead
  1408. of $. So introduce new preprocessor macro MACRO_DOLLAR(x) which expands
  1409. to $$x on Apple and to $x on everything else.
  1410. 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
  1411. * grub-core/Makefile.am: Use correct TARGET_OBJCONV rather than
  1412. OBJCONV.
  1413. 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
  1414. * grub-core/gdb/i386/machdep.S: Use xorl %eax, %eax on both Apple
  1415. and non-Apple. This instruction is shorter and faster,
  1416. so no reason not to use it on both.
  1417. 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
  1418. * grub-core/lib/reed_solomon.c: Use section _text, _text rather than
  1419. .text when compiling for Apple.
  1420. 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
  1421. * grub-core/term/arc/console.c: Add missing cast to silence warning.
  1422. 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
  1423. * grub-core/boot/i386/pc/boot.S: Fix floppy probe. Due to missing
  1424. %dx restore the probe worked on non-existant drive. Reorganize the
  1425. code a little bit to free 2 bytes necessary for push/pop.
  1426. 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
  1427. * grub-core/kern/mips/arc/init.c (grub_machine_get_bootlocation):
  1428. Add missing cast to silence warning.
  1429. 2013-11-23 Keshav Padram Amburay <the.ridikulus.rat@gmail.com>
  1430. * util/grub-install.c (update_nvram): Support --no-nvram flag
  1431. for EFI targets.
  1432. 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
  1433. * INSTALL: Add note about sparc64/ia64 with clang (unsupported).
  1434. 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
  1435. * util/garbage-gen.c: Add missing include of sys/time.h.
  1436. 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
  1437. Don't add -mflush-func if it's not supported by compiler.
  1438. 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
  1439. Move common BIOS/coreboot memory map declarations to
  1440. include/grub/i386/memory_raw.h and eliminate duplicate declarations.
  1441. 2013-11-22 Andrey Borzenkov <arvidjaar@gmail.com>
  1442. * Makefile.am: Add util/garbage-gen.c to EXTRA_DIST.
  1443. 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
  1444. * INSTALL: Document why older clang versions aren't appropriate.
  1445. 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
  1446. * INSTALL: Document about clang for mips.
  1447. 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
  1448. * grub-core/lib/libgcrypt/mpi/longlong.h: Use C version with mips
  1449. clang.
  1450. 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
  1451. Add *-xen to the list of grub-install-common platforms.
  1452. 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
  1453. * configure.ac: Do not enforce -mcmodel=large. It's not necessarry with
  1454. 3 last commits.
  1455. 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
  1456. * grub-core/kern/xen/init.c: Do not map more pages than we can address.
  1457. 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
  1458. * grub-core/kern/efi/mm.c: Limit allocations to 2GiB when not compiling
  1459. with -mcmodel=large.
  1460. 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
  1461. * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Add
  1462. range-checking for 32-bit quantities.
  1463. 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
  1464. * configure.ac: Compile with -fPIC when compiling with clang on
  1465. mips.
  1466. 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
  1467. * configure.ac: Add -no-integrated-as on mips(el) to TARGET_CCASFLAGS
  1468. when compiling with clang.
  1469. 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
  1470. clang emits calls to abort () under some unknown conditions.
  1471. Export abort () when compiling with clang.
  1472. 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
  1473. * docs/grub-dev.texi: Document stack and heap sizes.
  1474. 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
  1475. * include/grub/i386/pc/memory.h: Decrease
  1476. GRUB_MEMORY_MACHINE_SCRATCH_SIZE and increase
  1477. GRUB_MEMORY_MACHINE_PROT_STACK_SIZE.
  1478. The binary doesn't change (checked). It's more to better reflect actual
  1479. usage.
  1480. 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
  1481. * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Ensure
  1482. at compile time that enough of scratch size is available.
  1483. 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
  1484. * grub-core/kern/x86_64/efi/callwrap.S: Fix stack alignment.
  1485. Previously we misaligned stack by 8 in startup.S and compensated
  1486. for it in callwrap.S. According to ABI docs (EFI and sysv amd64)
  1487. right behaviour is to align stack in startup.S and keep it aligned
  1488. in callwrap.S. startup.S part was committed few commits before. This
  1489. takes care of callwrap.S.
  1490. Reported by: Gary Lin.
  1491. 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
  1492. * grub-core/boot/mips/startup_raw.S: Handle the case of gap between
  1493. .data and .bss. May happen if compiler and assembly use different
  1494. alignment.
  1495. 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
  1496. On MIPS handle got16 relocations to local symbols in an ABI-compliant
  1497. way.
  1498. 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
  1499. Add support for a new magic symbol _gp_disp on mips to handle PIC
  1500. binaries.
  1501. 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
  1502. Use $t9 for indirect calls from asm to C as PIC ABI requires.
  1503. 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
  1504. Remove -march=mips3 from TARGET_CCASFLAGS as it creates linking problem
  1505. when rest of GRUB is compiled for hisher stepping. Instead use
  1506. .set mips3/.set mips1 around cache and sync opcodes.
  1507. 2013-11-21 Vladimir Serbinenko <phcoder@gmail.com>
  1508. Unify GOT/trampoline handling between PPC, MIPS and IA64 as they
  1509. do essentially the same thing, do it in similar way.
  1510. 2013-11-21 Colin Watson <cjwatson@ubuntu.com>
  1511. * util/grub-mkrescue.c (main): If a source directory is not
  1512. specified, read platform-specific files from subdirectories of
  1513. pkglibdir, not pkgdatadir.
  1514. 2013-11-21 Colin Watson <cjwatson@ubuntu.com>
  1515. * grub-core/normal/progress.c: Remove unused file.
  1516. 2013-11-20 Vladimir Serbinenko <phcoder@gmail.com>
  1517. * grub-core/lib/crypto.c (grub_crypto_hash): Remove variable length
  1518. array.
  1519. 2013-11-20 Vladimir Serbinenko <phcoder@gmail.com>
  1520. * util/grub-mkconfig.in: Say explicit "grub configuration" rather
  1521. than grub.cfg.
  1522. 2013-11-20 Vladimir Serbinenko <phcoder@gmail.com>
  1523. * coreboot.cfg: Add missing file.
  1524. 2013-11-19 Vladimir Serbinenko <phcoder@gmail.com>
  1525. * Makefile.am: Allow STRIP to be empty when creating windowszip.
  1526. 2013-11-19 Axel Kellermann <axel.kellermann@gmx.de>
  1527. * util/grub.d/30_os-prober.in: Add GRUB_OS_PROBER_SKIP_LIST to
  1528. selectively skipping systems.
  1529. 2013-11-19 Colin Watson <cjwatson@ubuntu.com>
  1530. * Makefile.util.def (grub-mkimage): Add
  1531. grub-core/osdep/aros/config.c to extra_dist.
  1532. * conf/Makefile.extra-dist (EXTRA_DIST): Add docs/autoiso.cfg,
  1533. docs/osdetect.cfg, grub-core/gnulib-fix-null-deref.diff,
  1534. grub-core/gnulib-fix-width.diff, grub-core/gnulib-no-abort.diff, and
  1535. grub-core/gnulib-no-gets.diff.
  1536. 2013-11-19 Vladimir Serbinenko <phcoder@gmail.com>
  1537. Add automated filesystem checking based on scripts I've used now for
  1538. quite some time locally. Most of the test require root so they are
  1539. skipped when run without necessarry privelegies.
  1540. 2013-11-19 Colin Watson <cjwatson@ubuntu.com>
  1541. * util/grub-install.c (main): Adjust info messages to match
  1542. installed paths of grub-bios-setup and grub-sparc64-setup.
  1543. 2013-11-19 Colin Watson <cjwatson@ubuntu.com>
  1544. * util/grub-install-common.c (copy_locales): Consistently use
  1545. grub_util_get_localedir () rather than LOCALEDIR.
  1546. (grub_install_copy_files): Likewise.
  1547. 2013-11-19 Josh Triplett <josh@joshtriplett.org>
  1548. * grub-core/kern/x86_64/efi/startup.S (_start): Align the stack to a
  1549. 16-byte boundary, as required by the x86-64 ABI, before calling
  1550. grub_main. In some cases, GCC emits code that assumes this
  1551. alignment, which crashes if not aligned. The EFI firmware is also
  1552. entitled to assume that stack alignment without checking.
  1553. 2013-11-18 Josh Triplett <josh@joshtriplett.org>
  1554. * grub-core/mmap/efi/mmap.c (grub_mmap_register): Round up/down to
  1555. 4k page boundaries as expected by firmware rather than 1k
  1556. boundaries.
  1557. (grub_mmap_malign_and_register): Likewise.
  1558. 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
  1559. * tests/grub_func_test.in: Decrease RAM size to 512M. With less
  1560. fragmentation 512M is enough.
  1561. 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
  1562. * grub-core/kern/mm.c (grub_real_malloc): Decrease cut-off of moving the
  1563. pointer to 32K. This is the size of cache element which is the most
  1564. common allocation >1K. This way the pointer is always around blocks
  1565. of 32K and so we keep performance while decreasing fragmentation.
  1566. 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
  1567. * grub-core/kern/mm.c (grub_real_malloc): Don't update the pointer to
  1568. current memory when allocating large chunks. This significantly
  1569. decreases memory fragmentation.
  1570. 2013-11-18 Colin Watson <cjwatson@ubuntu.com>
  1571. * tests/gzcompress_test.in: Skip if gzip is not installed (unlikely,
  1572. but for symmetry).
  1573. * tests/lzocompress_test.in: Skip if lzop is not installed.
  1574. * tests/xzcompress_test.in: Skip if xz is not installed.
  1575. 2013-11-18 Colin Watson <cjwatson@ubuntu.com>
  1576. * util/grub-mkrescue.c (main): Fix typo.
  1577. 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
  1578. * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Update
  1579. clock frequency to 200 MHz,
  1580. 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
  1581. * tests/util/grub-shell.in: Increase console size to 1024x1024.
  1582. 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
  1583. * Makefile.am (default_payload.elf): Add pata to loaded modules.
  1584. Load config file from (cbfsdisk)/etc/grub.cfg.
  1585. 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
  1586. * util/grub-install-common.c (grub_install_copy_files): Fix module
  1587. destination directory.
  1588. 2013-11-18 Colin Watson <cjwatson@ubuntu.com>
  1589. * tests/util/grub-shell.in: Don't fail on emu platform if po/*.gmo
  1590. files have not been built.
  1591. 2013-11-18 Colin Watson <cjwatson@ubuntu.com>
  1592. * grub-core/osdep/unix/hostdisk.c (grub_util_make_temporary_file):
  1593. Handle errors from mkstemp.
  1594. (grub_util_make_temporary_dir): Handle errors from mkdtemp.
  1595. 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
  1596. * tests/util/grub-shell.in: Use -cdrom and don't force cdrom
  1597. on primary master on pseries.
  1598. 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
  1599. * grub-core/tests/videotest_checksum.c: Don't reload unifont if it's
  1600. already loaded. This saves memory needed for tests,
  1601. 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
  1602. * util/grub-mkrescue.c (main): Fix a typo to make yeeloong part
  1603. work again.
  1604. 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
  1605. * grub-core/term/terminfo.c (grub_cmd_terminfo): Fix a typo to make -g
  1606. work again.
  1607. 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
  1608. * tests/util/grub-shell.in: For powerpc tests put the CD-ROM as primary
  1609. master since with some combinations of qemu and firmware only primary
  1610. IDE channel is available.
  1611. 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
  1612. * grub-core/tests/gfxterm_menu.c: Skip high-resolution tests on
  1613. low-memory platforms where we don't have enough memory for them.
  1614. * grub-core/tests/videotest_checksum.c: Likewise.
  1615. 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
  1616. * grub-core/tests/cmdline_cat_test.c: Don't reload unifont if it's
  1617. already loaded. This saves memory needed for tests,
  1618. 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
  1619. Fix handling of install lists.
  1620. 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
  1621. * grub-core/lib/sparc64/setjmp.S: Force spilling of current window.
  1622. 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
  1623. On i386-ieee1275 we run in paged mode. So we need to explicitly map
  1624. the devices before accessing them.
  1625. 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
  1626. * grub-core/lib/relocator.c (grub_mm_check_real): Accept const char *
  1627. as file argument.
  1628. 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
  1629. * grub-core/normal/cmdline.c (grub_cmdline_get): Plug memory leak.
  1630. 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
  1631. * grub-core/kern/file.c (grub_file_open): Free file->name on failure.
  1632. (grub_file_close): Free file->name.
  1633. 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
  1634. * grub-core/commands/verify.c (free_pk): Plug memory leak.
  1635. (grub_load_public_key): Likewise.
  1636. (grub_verify_signature_real): Likewise.
  1637. (grub_cmd_verify_signature): Likewise.
  1638. 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
  1639. * grub-core/commands/legacycfg.c (grub_legacy_check_md5_password): Plug
  1640. memory leak.
  1641. 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
  1642. * grub-core/lib/powerpc/setjmp.S (grub_setjmp): Save r31.
  1643. (grub_longjmp): Restore r31.
  1644. * include/grub/powerpc/setjmp.h (grub_jmp_buf): Reserve space for r31.
  1645. 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
  1646. * util/grub-mkrescue.c (make_image_fwdisk_abs): Insert all partmap
  1647. modules to be in line with make_image_abs.
  1648. 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
  1649. * include/grub/mips/setjmp.h (grub_jmp_buf): Fix buffer size.
  1650. setjmp.S uses 12 entries but buffer is declared with only 11 entries.
  1651. 2013-11-17 Ian Campbell <ijc@hellion.org.uk>
  1652. * grub-core/disk/uboot/ubootdisk.c: Include SCSI disks.
  1653. 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
  1654. * tests/grub_func_test.in: Increase memory reservation as on EFI we need
  1655. to leave some memory to firmware.
  1656. 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
  1657. * grub-core/tests/cmdline_cat_test.c (cmdline_cat_test): Ignore errors
  1658. of loading gfxterm as gfxterm is embed in kernel on some platforms.
  1659. * grub-core/tests/gfxterm_menu.c (gfxterm_menu): Likewise.
  1660. Load gfxmenu.
  1661. 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
  1662. * tests/core_compress_test.in: Use full arguments as grub-mkimage-extra
  1663. now needs full arguments.
  1664. 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
  1665. * util/grub-mkrescue.c (main): Add trailing \n in
  1666. .disk_label.contentDetails to be in line with previous shell script.
  1667. 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
  1668. * util/grub-mkrescue.c (main): Use right source file for bootinfo.txt.
  1669. 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
  1670. * util/grub-install-common.c (grub_install_parse): Recognize
  1671. --compress=none like shell script did.
  1672. 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
  1673. * include/grub/misc.h: Replace check for __sparc64__ with one for
  1674. __sparc__ as __sparc64__ isn't actually defined.
  1675. 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
  1676. * tests/util/grub-shell.in: Use escc-ch-b on powerpc. This is missing
  1677. counterpart of fixing the naming of escc ports.
  1678. 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
  1679. * util/grub-install-common.c (platforms): Fix the order of entries and
  1680. remove useless field val.
  1681. 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
  1682. * util/grub-install.c: Add new option --no-bootsector to skip
  1683. installing of bootsector. Accept --grub-setup=/bin/true as
  1684. backwards-compatible synonym.
  1685. 2013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
  1686. * util/grub-install.c (device_map_check_duplicates): Fix incorrect
  1687. order of qsort arguments (number of elements vs. element size).
  1688. 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
  1689. Rewrite grub-install, grub-mkrescue, grub-mkstandalone and grub-mknetdir
  1690. the function of these files exceeds what can be sanely handled in shell
  1691. in posix-comaptible way. Also writing it in C extends the functionality
  1692. to non-UNIX-like OS and minimal environments.
  1693. 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
  1694. * grub-core/kern/arm/cache.S: Don't switch back to ARM mode when
  1695. compiling to thumb2.
  1696. * grub-core/kern/arm/cache_armv7.S: Likewise.
  1697. * grub-core/lib/arm/setjmp.S: Likewise.
  1698. 2013-11-16 Leif Lindholm <leif.lindholm@linaro.org>
  1699. * grub-core/kern/arm/uboot/startup.S: delete superflouous save of r8
  1700. in grub_uboot_syscall
  1701. 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
  1702. Decrease stack usage in lexer.
  1703. We have only 92K of stack and using over 4K per frame is wasteful
  1704. * grub-core/script/yylex.l (yyalloc), (yyfree), (yyrealloc): Declare
  1705. as macros so that compiler would remove useless structure on stack.
  1706. Better solution would be to fix flex not to put this structure on
  1707. the stack but flex is external program.
  1708. 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
  1709. Decrease stack usage in signature verification.
  1710. We have only 92K of stack and using over 4K per frame is wasteful
  1711. * grub-core/commands/verify.c (grub_load_public_key): Allocate on heap
  1712. rather than stack.
  1713. (grub_verify_signature_real): Likewise.
  1714. 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
  1715. Decrease stack usage in mdraid 0.9x.
  1716. We have only 92K of stack and using over 4K per frame is wasteful
  1717. * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Allocate on heap
  1718. rather than stack.
  1719. 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
  1720. Decrease stack usage in BtrFS.
  1721. We have only 92K of stack and using over 4K per frame is wasteful
  1722. * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Allocate on heap
  1723. rather than stack.
  1724. 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
  1725. Decrease stack usage in JFS.
  1726. We have only 92K of stack and using over 4K per frame is wasteful
  1727. * grub-core/fs/jfs.c (getblk): Allocate on heap rather than on
  1728. stack. Note: this function is recursive.
  1729. (grub_jfs_read_inode): Read only part we care about.
  1730. 2013-11-16 Leif Lindholm <leif.lindholm@linaro.org>
  1731. * grub-core/kern/arm/uboot/startup.S: fix grub_uboot_syscall va_arg
  1732. handling
  1733. 2013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
  1734. * configure.ac: Restore -nostdlib for libgcc symbols tests.
  1735. 2013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
  1736. * docs/grub.texi (Environment): Document cmdpath.
  1737. 2013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
  1738. * grub-core/kern/mips/arc/init.c (grub_machine_get_bootlocation):
  1739. Remove "unused" attribute from arguments, they are used.
  1740. 2013-11-15 Colin Watson <cjwatson@debian.org>
  1741. * .gitignore: Only ignore grub-mk* at the top level.
  1742. 2013-11-15 Colin Watson <cjwatson@ubuntu.com>
  1743. * util/grub-reboot.in (usage): Fix a typo.
  1744. 2013-11-15 Vladimir Serbinenko <phcoder@gmail.com>
  1745. Replace libgcc version of ctz with our own.
  1746. On upcoming arm64 port libgcc ctz* are not usable in standalone
  1747. environment. Since we need ctz* for this case and implementation is
  1748. in C we may as well use it on all concerned platforms.
  1749. 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
  1750. * configure.ac: Probe for linking format rather than guessing it based
  1751. on target_os.
  1752. 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
  1753. * grub-core/disk/xen/xendisk.c (grub_xendisk_fini): Set state to
  1754. "1" prior to handoff.
  1755. Reported by: M A Young.
  1756. 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
  1757. * grub-core/kern/xen/init.c (grub_xenstore_write_file): Don't add
  1758. \0 to all files.
  1759. Reported by: M A Young.
  1760. 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
  1761. * grub-core/osdep/bsd/hostdisk.c (grub_util_get_fd_size_os): Fix
  1762. compilation on NetBSD.
  1763. 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
  1764. * acinclude.m4: Don't add -P on initial nm test.
  1765. Note: even though this patch postdates Andrey's it bears 14 Nov as
  1766. date due to timezone difference.
  1767. 2013-11-15 Andrey Borzenkov <arvidjaar@gmail.com>
  1768. * grub-core/Makefile.core.def (signature_test): Add missing
  1769. tests/signatures.h.
  1770. 2013-11-14 Colin Watson <cjwatson@ubuntu.com>
  1771. * util/grub-install_header: Set localedir here, since this file is
  1772. where it's used.
  1773. * util/grub-install.in: Remove setting of localedir.
  1774. * util/grub-mkrescue.in: Likewise.
  1775. 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
  1776. * Makefile.am (default_payload.elf): Add uhci, ohci and usb_keyboard.
  1777. 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
  1778. * configure.ac: Move nm checks to the end.
  1779. Call grub_PROG_NM_WORKS.
  1780. * acinclude.m4: New check grub_PROG_NM_WORKS.
  1781. Use $TARGET_CFLAGS -c when compiling test binary.
  1782. 2013-11-14 Colin Watson <cjwatson@ubuntu.com>
  1783. * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__GNU__]: Remove
  1784. unused variables.
  1785. 2013-11-14 Matthew Garrett <mjg@redhat.com>
  1786. * grub-core/kern/main.c (grub_set_prefix_and_root): Set variable
  1787. cmdpath to firmware directory.
  1788. 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
  1789. * grub-core/kern/efi/efi.c (grub_efi_get_filename): Reset the pointer
  1790. at the start of second iteration.
  1791. 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
  1792. * grub-core/Makefile.am (efiemu64.o): Explicitly set link format.
  1793. 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
  1794. * Makefile.am (default_payload.elf): New target for easier coreboot
  1795. build.
  1796. 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
  1797. * grub-core/kern/arm/cache_armv6.S: Remove special handling for
  1798. clang (not necessarry with -no-integrated-as).
  1799. * include/grub/symbol.h [__arm__]: Likewise.
  1800. 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
  1801. * configure.ac: Use -no-integrated-as on arm with clang.
  1802. * INSTALL: Mention ARM compilation with clang.
  1803. 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
  1804. * conf/Makefile.common (CCASFLAGS_PLATFORM) [COND_arm]: Add
  1805. -mthumb-interwork.
  1806. 2013-11-14 Colin Watson <cjwatson@ubuntu.com>
  1807. * grub-core/fs/ext2.c (grub_ext2_read_block): Factor out common
  1808. code for indirect block handling.
  1809. Saves 185 bytes on compressed image.
  1810. 2013-11-13 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
  1811. Fix make clean.
  1812. * Makefile.am: Remove build-grub-* in make clean.
  1813. 2013-11-13 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
  1814. New files to gitignore.
  1815. * .gitignore: Add build-grub-gen-asciih, build-grub-gen-widthspec,
  1816. build-grub-mkfont, and grub-emu-lite. Remove .bzrignore.
  1817. 2013-11-13 Leif Lindholm <leif.lindholm@linaro.org>
  1818. * grub-core/kern/arm/misc.S: Make thumb2-compatible.
  1819. 2013-11-13 Leif Lindholm <leif.lindholm@linaro.org>
  1820. * .gitignore: fix rules for .dep* and add *.a post git migration
  1821. 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
  1822. * configure.ac (AM_INIT_AUTOMAKE): Require at least version 1.10.1,
  1823. to match INSTALL.
  1824. 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
  1825. * grub-core/kern/misc.c: Don't redirect divisions in the
  1826. GRUB_UTIL case.
  1827. * include/grub/misc.h: Likewise.
  1828. 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
  1829. * grub-core/osdep/unix/emuconsole.c (put): Pacify the compiler on
  1830. systems that require checking the return value of write.
  1831. 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
  1832. * util/grub-install.in (efi_quiet): Fix inverted logic: make
  1833. efibootmgr quiet when --debug is not used, rather than when it is.
  1834. 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
  1835. * gentpl.py (define_macro_for_platform_dependencies): Remove
  1836. first (and thus unused) of two definitions for this function.
  1837. (platform_dependencies): Likewise.
  1838. 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
  1839. * acinclude.m4 (grub_apple_cc): Remove; since the removal of nested
  1840. functions, we only need to check this for the target, not the host.
  1841. * configure.ac (grub_apple_cc): Likewise.
  1842. 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
  1843. * grub-core/kern/arm/cache.c (probe_caches): Move asm part to ...
  1844. * grub-core/kern/arm/cache_armv6.S: ... here. This allows this
  1845. asm to stay in arm even if surrounding is thumb.
  1846. 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
  1847. * grub-core/kern/arm/misc.S: Add __muldi3 and __aeabi_lmul. Those
  1848. helper functions are needed for thumb.
  1849. 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
  1850. * grub-core/disk/diskfilter.c (grub_diskfilter_make_raid): Make
  1851. level / 3 division explicitly unsigned. Saves few bytes.
  1852. 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
  1853. * grub-core/fs/zfs/zfs.c (ZAP_LEAF_NUMCHUNKS): Use unsigned arithmetics.
  1854. 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
  1855. * grub-core/normal/datetime.c (grub_get_weekday): Use if rather than
  1856. division.
  1857. 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
  1858. * grub-core/kern/uboot/init.c: Move grub_uboot_machine_type and
  1859. grub_uboot_boot_data to asm part.
  1860. 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
  1861. * grub-core/kern/arm/uboot/startup.S: Remove = by replacing with
  1862. literal load.
  1863. (grub_uboot_syscall): Save/restore r9 and align stack.
  1864. 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
  1865. * grub-core/kern/arm/cache.S: Replace = with explicit litteral load.
  1866. 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
  1867. * include/grub/symbol.h (END) [__arm__]: New macros. Replace all .end
  1868. occurencies with END.
  1869. 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
  1870. * util/grub-editenv.c (help_filter, argp): Document how to delete
  1871. the whole environment block.
  1872. Reported by Dan Jacobson. Fixes Debian bug #726265.
  1873. 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
  1874. * docs/grub.texi (Internationalisation, Supported kernels): Fix
  1875. sectioning.
  1876. 2013-11-13 Josh Triplett <josh@joshtriplett.org>
  1877. * grub-core/normal/term.c (grub_set_more): Use bool logic rather than
  1878. increment/decrement.
  1879. 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
  1880. * grub-core/kern/arm/cache_armv6.S [__clang__]: Don't add .armv6 when
  1881. compiling with clang.
  1882. 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
  1883. * grub-core/kern/arm/uboot/startup.S: Use .org rather than assigning
  1884. ".".
  1885. 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
  1886. Redirect all divisions to grub_divmod64.
  1887. 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
  1888. * grub-core/term/tparm.c (tparam_internal): Use unsigned divisions.
  1889. 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
  1890. Add missing includes of loader.h.
  1891. 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
  1892. * configure.ac: Allow disabling themes.
  1893. 2013-11-12 Lukas Schwaighofer <lukas@schwaighofer.name>
  1894. * util/grub.d/20_linux_xen.in: Don't decompress initrd.
  1895. 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
  1896. * grub-core/term/at_keyboard.c: Don't poll non-functional AT controller
  1897. until it becomes operational.
  1898. 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
  1899. * grub-core/Makefile.core.def (legacy_password_test): Disable
  1900. on platforms where no legacycfg is compiled.
  1901. * grub-core/tests/lib/functional_test.c: Tolerate failure to
  1902. load legacy_password_test.
  1903. 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
  1904. * grub-core/loader/i386/bsd.c: Remove variable length arrays.
  1905. 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
  1906. * grub-core/efiemu/prepare.c: Remove variable length arrays.
  1907. 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
  1908. * grub-core/osdep/windows/hostdisk.c (grub_util_fd_strerror): Silence
  1909. strict-aliasing warning.
  1910. (fsync): Silence cast warning.
  1911. 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
  1912. * grub-core/commands/verify.c: Remove variable length arrays.
  1913. Load gcry_dsa/gcry_rsa automatically.
  1914. 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
  1915. * grub-core/tests/signature_test.c: New test.
  1916. 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
  1917. * grub-core/disk/cryptodisk.c (luks_script_get): Adapt to new procfs
  1918. API.
  1919. 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
  1920. * grub-core/tests/legacy_password_test.c (vectors): Make static.
  1921. * grub-core/tests/pbkdf2_test.c (vectors): Likewise.
  1922. 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
  1923. * grub-core/tests/setjmp_test.c: Reset counter to 0 before starting.
  1924. 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
  1925. * grub-core/fs/proc.c: Allow \0 in proc files.
  1926. 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
  1927. * grub-core/tests/xnu_uuid_test.c: Fix assert message.
  1928. 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
  1929. * grub-core/tests/xnu_uuid_test.c: Fix copyright year.
  1930. 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
  1931. * grub-core/fs/ext2.c: Remove variable length arrays.
  1932. 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
  1933. * grub-core/lib/crypto.c (grub_crypto_cbc_decrypt): Remove variable
  1934. length arrays.
  1935. 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
  1936. * grub-core/disk/AFSplitter.c: Remove variable length arrays.
  1937. * grub-core/disk/cryptodisk.c: Likewise.
  1938. * grub-core/disk/geli.c: Likewise.
  1939. * grub-core/disk/luks.c: Likewise.
  1940. 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
  1941. * grub-core/tests/legacy_password_test.c: New test.
  1942. * grub-core/commands/legacycfg.c: Remove variable length arrays.
  1943. 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
  1944. * grub-core/lib/pbkdf2.c: Remove variable length arrays.
  1945. 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
  1946. * grub-core/tests/pbkdf2_test.c: New test.
  1947. 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
  1948. * grub-core/lib/xzembed/xz_dec_stream.c: Remove variable length arrays.
  1949. 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
  1950. * grub-core/io/lzopio.c: Remove variable length arrays.
  1951. 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
  1952. * include/grub/crypto.h: Add maximums on hash size and cipher block
  1953. size.
  1954. 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
  1955. * grub-core/commands/xnu_uuid.c: Remove variable length arrays.
  1956. 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
  1957. * grub-core/tests/xnu_uuid_test.c: New test.
  1958. 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
  1959. * grub-core/commands/hashsum.c: Remove unneeded memset (zalloc already
  1960. covers it).
  1961. 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
  1962. * grub-core/commands/hashsum.c: Remove variable length arrays.
  1963. 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
  1964. * grub-core/tests/gfxterm_menu.c (gfxterm_menu): Handle out-of-memory
  1965. condition.
  1966. * tests/grub_func_test.in: Increase memory allocation.
  1967. 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
  1968. * grub-core/osdep/unix/getroot.c [HAVE_STRUCT_STATFS_F_FSTYPENAME
  1969. && HAVE_STRUCT_STATFS_F_MNTFROMNAME]: Include sys/param.h and
  1970. sys/mount.h.
  1971. 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
  1972. * grub-core/osdep/apple/hostdisk.c (grub_util_get_fd_size): Rename to ..
  1973. (grub_util_get_fd_size_os): ...this.
  1974. (grub_hostdisk_flush_initial_buffer): New empty function.
  1975. 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
  1976. * grub-core/gensyminfo.sh.in: Handle the case of portable output
  1977. without --defined-only.
  1978. 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
  1979. * grub-core/lib/i386/relocator_common.S [__APPLE__ && __x86_64__]: Use
  1980. rip-relative addressing in prologue.
  1981. 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
  1982. * include/grub/misc.h [__APPLE__]: Do not add regparm(0) on x86_64.
  1983. * grub-core/kern/misc.c (__bzero) [__APPLE__]: New function.
  1984. 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
  1985. * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__APPLE__]:
  1986. Add missing semicolon.
  1987. 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
  1988. * util/grub-macho2img.c: Use plain fopen rather than grub_util_fopen.
  1989. 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
  1990. * configure.ac: Check for lzma.h for enabling liblzma and allow
  1991. manual disabling.
  1992. 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
  1993. Add missing includes of loader.h.
  1994. 2013-11-11 Fam Zheng <famcool@gmail.com>
  1995. * util/grub.d/30_os-prober.in: Add minix entry.
  1996. 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
  1997. * grub-core/loader/i386/coreboot/chainloader.c (load_segment): Use
  1998. right buffer for temporary load.
  1999. 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
  2000. * grub-core/loader/i386/coreboot/chainloader.c: Support tianocore.
  2001. 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
  2002. * grub-core/loader/i386/coreboot/chainloader.c: Support lzma-compressed
  2003. payload.
  2004. 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
  2005. * include/grub/lib/LzmaDec.h: Fix to include LzmaTypes.h and
  2006. not Types.h.
  2007. * grub-core/lib/LzmaDec.c: Fix prologue to make it compileable in GRUB
  2008. environment.
  2009. (LzmaDec_InitDicAndState): Make static.
  2010. 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
  2011. * util/grub-mkimagexx.c (generate_elf): Fix module address on coreboot.
  2012. 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
  2013. * grub-core/term/ieee1275/escc.c (GRUB_MOD_INIT): Fix order of channels.
  2014. Reported by: Aaro Koskinen <aaro.koskinen@iki.fi>
  2015. 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
  2016. * docs/grub-dev.texi: Replace bzr references with git ones.
  2017. 2013-11-10 Andrey Borzenkov <arvidjaar@gmail.com>
  2018. * docs/grub.texi (Simple configuration): Remove reference to
  2019. grub-reboot from saved default entry description - grub-default
  2020. does not use it anymore.
  2021. 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
  2022. * configure.ac: Make efiemu test cflags match the cflags efiemu is
  2023. compiled with.
  2024. 2013-11-10 Andrey Borzenkov <arvidjaar@gmail.com>
  2025. * docs/grub.texi (Simple configuration): Document GRUB_DISABLE_SUBMENU.
  2026. 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
  2027. Fix grub_machine_fini bitrot.
  2028. Reported by: Glenn Washburn.
  2029. 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
  2030. * configure.ac: Remove leftover -fnested-funcions -Wl,-allow_execute.
  2031. 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
  2032. * grub-core/Makefile.am (efiemu): Remove leftover -DAPPLE_CC and
  2033. -DELF.
  2034. * grub-core/efiemu/runtime/config.h: Use __i386__ and __x86_64__
  2035. instead of ELF*.
  2036. 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
  2037. * configure.ac: Restore CFLAGS to TARGET_CFLAGS before external tests.
  2038. Add -march=core2 when testing compile of efiemu64.
  2039. Thanks Andrey Borzenkov for spotting this.
  2040. 2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
  2041. Add new ports: i386-xen and x86_64-xen. This allows running GRUB in
  2042. XEN PV environment and load kernels.
  2043. 2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
  2044. * grub-core/loader/i386/multiboot_mbi.c: Handle space in command line.
  2045. * grub-core/loader/multiboot_mbi2.c: Likewise.
  2046. 2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
  2047. * grub-core/lib/cmdline.c (grub_loader_cmdline_size): Fix empty cmdline
  2048. handling.
  2049. 2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
  2050. * grub-core/commands/i386/cmostest.c: Add new command "cmosset".
  2051. Tested by: Denis 'GNUtoo' Carikli.
  2052. 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
  2053. * grub-core/normal/datetime.c (grub_get_weekday): Use unsigned types.
  2054. 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
  2055. * grub-core/gfxmenu/gui_circular_progress.c (parse_angle):
  2056. Use to get rounded angle rather than truncated.
  2057. 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
  2058. * grub-core/term/serial.c: Add option for enabling/disabling
  2059. RTS/CTS flow control.
  2060. 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
  2061. * grub-core/lib/libgcrypt/cipher/idea.c (mul_inv): Remove signed
  2062. divisions.
  2063. 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
  2064. * grub-core/lib/libgcrypt/mpi/mpih-div.c (_gcry_mpih_divrem):
  2065. Use grub_fatal rather than divide by zero.
  2066. * grub-core/lib/libgcrypt/mpi/mpi-pow.c (gcry_mpi_powm): Likewise.
  2067. 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
  2068. * include/grub/gui.h (grub_fixed_sfs_divide): Round rather than
  2069. truncate.
  2070. (grub_fixed_fsf_divide): Likewise.
  2071. 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
  2072. * grub-core/gfxmenu/gui_list.c (draw_scrollbar): Avoid
  2073. division by-zero and senseless negative divisions.
  2074. 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
  2075. * grub-core/gfxmenu/gui_circular_progress.c (circprog_paint): Avoid
  2076. division by-zero and senseless negative divisions.
  2077. (circprog_set_property): Don't accept negative num_ticks.
  2078. 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
  2079. * grub-core/gfxmenu/gui_progress_bar.c (draw_pixmap_bar): Avoid
  2080. division by-zero and senseless negative divisions.
  2081. 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
  2082. * configure.ac: Use elf_*_fbsd on kfreebsd.
  2083. 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
  2084. * grub-core/tests/div_test.c: New test.
  2085. 2013-11-08 Vladimir Testov <vladimir.testov@rosalab.ru>
  2086. * grub-core/gfxmenu/gui_box.c: Updated to work with area status.
  2087. * grub-core/gfxmenu/gui_canvas.c: Likewise.
  2088. * grub-core/gfxmenu/view.c: Likewise.
  2089. * grub-core/video/fb/video_fb.c: Introduce new functions:
  2090. grub_video_set_area_status, grub_video_get_area_status,
  2091. grub_video_set_region, grub_video_get_region.
  2092. * grub-core/video/bochs.c: Likewise.
  2093. * grub-core/video/capture.c: Likewise.
  2094. * grub-core/video/video.c: Likewise.
  2095. * grub-core/video/cirrus.c: Likewise.
  2096. * grub-core/video/efi_gop.c: Likewise.
  2097. * grub-core/video/efi_uga.c: Likewise.
  2098. * grub-core/video/emu/sdl.c: Likewise.
  2099. * grub-core/video/radeon_fuloong2e.c: Likewise.
  2100. * grub-core/video/sis315pro.c: Likewise.
  2101. * grub-core/video/sm712.c: Likewise.
  2102. * grub-core/video/i386/pc/vbe.c: Likewise.
  2103. * grub-core/video/i386/pc/vga.c: Likewise.
  2104. * grub-core/video/ieee1275.c: Likewise.
  2105. * grub-core/video/i386/coreboot/cbfb.c: Likewise.
  2106. * include/grub/video.h: Likewise.
  2107. * include/grub/video_fb.h: Likewise.
  2108. * include/grub/fbfill.h: Updated render_target structure.
  2109. grub_video_rect_t viewport, region, area
  2110. int area_offset_x, area_offset_y, area_enabled
  2111. * include/grub/gui.h: New helper function
  2112. grub_video_bounds_inside_region.
  2113. * docs/grub-dev.texi: Added information about new functions.
  2114. 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
  2115. * grub-core/kern/mm.c (grub_real_malloc): Use AND rather than MOD
  2116. for alignment.
  2117. 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
  2118. * grub-core/lib/reed_solomon.c (grub_reed_solomon_recover): Add
  2119. missing attribute.
  2120. * grub-core/gdb/cstub.c (grub_gdb_trap): Likewise.
  2121. 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
  2122. * grub-core/kern/misc.c (grub_divmod64): Don't fallback to
  2123. simple division on arm and ia64.
  2124. 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
  2125. * grub-core/kern/arm/misc.S (__aeabi_unwind_cpp_pr0): Add dummy to
  2126. link with libgcc.
  2127. 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
  2128. * include/grub/symbol.h (FUNCTION), (VARIABLE): Fix precedence logic.
  2129. 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
  2130. * include/grub/symbol.h (FUNCTION), (VARIABLE) [__arm__]: Use % as
  2131. prefix symbol, not @.
  2132. 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
  2133. * INSTALL: Add note about older gcc and clang.
  2134. 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
  2135. * tests/util/grub-shell.in: Boot as hdd on ppc by default.
  2136. 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
  2137. * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_module): Fix
  2138. NULL pointer dereference.
  2139. 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
  2140. * grub-core/Makefile.am: Do not include libgcc.h when compiling with
  2141. clang.
  2142. 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
  2143. * grub-core/kern/powerpc/dl.c: Add missing pragma to silence cast-align
  2144. warnings.
  2145. 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
  2146. * grub-core/net/net.c (grub_net_route_unregister): Remove unused
  2147. function.
  2148. * grub-core/loader/i386/xnu.c (hextoval): Likewise.
  2149. * grub-core/disk/geli.c (ascii2hex): Likewise.
  2150. 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
  2151. * configure.ac: Run linker tests without -Werror.
  2152. Define TARGET_LDFLAGS_STATIC_LIBGCC and TARGET_LIBGCC.
  2153. Change all occurences of -static-libgcc resp -lgcc to
  2154. TARGET_LDFLAGS_STATIC_LIBGCC resp TARGET_LIBGCC.
  2155. 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
  2156. * configure.ac: Don't add -no-itegrated-as on clang on non-x86.
  2157. 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
  2158. Allow compiling with clang (not really supported though).
  2159. * conf/Makefile.common (CFLAGS_PLATFORM): Don't add -mrtd -mregparm=3
  2160. unconditionally.
  2161. * configure.ac: Add -no-integrated-as when using clangfor asm files.
  2162. Add -mrtd -mregparm=3 on i386 when not using clang.
  2163. * grub-core/kern/misc.c (grub_memset): Add volatile when on clang.
  2164. 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
  2165. * grub-core/kern/ieee1275/cmain.c: Add explicit attribute on asm
  2166. bindings.
  2167. * grub-core/lib/reed_solomon.c: Likewise.
  2168. * include/grub/i386/gdb.h: Likewise.
  2169. * include/grub/i386/pc/int.h: Likewise.
  2170. * include/grub/i386/pc/pxe.h: Likewise.
  2171. * include/grub/ieee1275/ieee1275.h: Likewise.
  2172. 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
  2173. Import libgcrypt 1.5.3.
  2174. 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
  2175. * configure.ac: Don't add -Wcast-align on x86.
  2176. 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
  2177. * configure.ac: Add -freg-struct-return on all platforms that
  2178. support it.
  2179. 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
  2180. * acinclude.m4: Use -Werror on parameter tests.
  2181. * configure.ac: Likewise.
  2182. 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
  2183. * acinclude.m4: Add missing TARGET_CCASFLAGS on asm tests.
  2184. 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
  2185. * configure.ac: Check that -malign-loops works rather than assuming that
  2186. either -falign-loops or -malign-loops work.
  2187. 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
  2188. * configure.ac: Remove -fnested-functions. We don't need it anymore.
  2189. 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
  2190. * configure.ac: Prevent cflags leaking to subsequent tests by always
  2191. resetting cflags to target_cflags in target tests.
  2192. 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
  2193. * grub-core/kern/parser.c (grub_parser_split_cmdline): Remove nested
  2194. function.
  2195. 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
  2196. * grub-core/kern/misc.c (grub_vsnprintf_real): Remove nested functions.
  2197. 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
  2198. * grub-core/lib/arg.c (grub_arg_parse): Remove nested function.
  2199. 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
  2200. * grub-core/normal/cmdline.c (grub_cmdline_get):
  2201. Remove nested functions.
  2202. 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
  2203. * tests/test_sha512sum.in: Make it work on emu.
  2204. 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
  2205. * grub-core/normal/charset.c (bidi_line_wrap): Eliminate nested
  2206. functions.
  2207. (grub_bidi_line_logical_to_visual): Likewise.
  2208. 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
  2209. Remove vestiges of -Wunsafe-loop-optimisations.
  2210. * conf/Makefile.common (CFLAGS_GNULIB): Remove
  2211. -Wno-unsafe-loop-optimisations.
  2212. * grub-core/commands/legacycfg.c: Remove -Wunsafe-loop-optimisations
  2213. pragma.
  2214. * grub-core/io/gzio.c: Likewise.
  2215. * grub-core/script/parser.y: Likewise.
  2216. * grub-core/script/yylex.l: Likewise.
  2217. * util/grub-mkfont.c: Likewise.
  2218. 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
  2219. * util/grub-mkfont.c (process_cursive): Remove nested function.
  2220. 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
  2221. * include/grub/misc.h (grub_dprintf): Use unnamed vararg.
  2222. (grub_boot_time): Likewise.
  2223. 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
  2224. * include/grub/symbol.h (FUNCTION): Use @function rather than
  2225. "function".
  2226. (VARIABLE): Likewise.
  2227. 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
  2228. * grub-core/net/bootp.c (OFFSET_OF): Explicitly cast to grub_size_t.
  2229. 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
  2230. * grub-core/net/bootp.c (set_env_limn_ro): Make pointer const.
  2231. (parse_dhcp_vendor): Likewise.
  2232. 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
  2233. * util/grub-mkimagexx.c (relocate_symbols): Remove unneeded brackets.
  2234. 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
  2235. * grub-core/gettext/gettext.c (main_context), (secondary_context):
  2236. Define after defining type and not before.
  2237. 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
  2238. * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Return right error
  2239. type.
  2240. (grub_gcm_decrypt): Likewise.
  2241. (algo_decrypt): Likewise.
  2242. (grub_zfs_decrypt_real): Transform error type.
  2243. 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
  2244. * grub-core/disk/geli.c (geli_rekey): Fix error return type.
  2245. 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
  2246. * grub-core/disk/usbms.c (grub_usbms_cbi_cmd): Fix error type.
  2247. (grub_usbms_cbi_reset): Likewise.
  2248. (grub_usbms_bo_reset): Likewise.
  2249. (grub_usbms_reset): Likewise.
  2250. (grub_usbms_attach): Likewise.
  2251. (grub_usbms_transfer_cbi): Likewise.
  2252. 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
  2253. * grub-core/io/lzopio.c (test_header): Simplify code and remove useless
  2254. "checksum = checksum;".
  2255. 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
  2256. * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Fix type of
  2257. entry_type.
  2258. 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
  2259. * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel): Fix
  2260. BIOS disk check.
  2261. 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
  2262. * grub-core/bus/usb/ehci.c (grub_ehci_restore_hw): Return right enum
  2263. type.
  2264. (grub_ehci_fini_hw): Likewise.
  2265. * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
  2266. 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
  2267. * include/grub/usb.h (grub_usb_controller_dev): Make portstatus
  2268. return grub_usb_err_t for cosistency. All users updated.
  2269. 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
  2270. * util/mkimage.c (SzAlloc): Use attribute unused rather than dubious
  2271. assigning to itself.
  2272. 2013-11-05 Gustavo Luiz Duarte <gustavold@linux.vnet.ibm.com>
  2273. 2013-11-05 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
  2274. Issue separate DNS queries for ipv4 and ipv6
  2275. Adding multiple questions on a single DNS query is not supportted by
  2276. most DNS servers. This patch issues two separate DNS queries
  2277. sequentially for ipv4 and then for ipv6.
  2278. Fixes: https://savannah.gnu.org/bugs/?39710
  2279. * grub-core/net/bootp.c (parse_dhcp_vendor): Add DNS option.
  2280. * grub-core/net/dns.c (grub_dns_qtype_id): New enum.
  2281. * (grub_net_dns_lookup): Now using separated dns packages.
  2282. * (grub_cmd_nslookup): Add error condition.
  2283. * (grub_cmd_list_dns): Print DNS option.
  2284. * (grub_cmd_add_dns): Add four parameters: --only-ipv4, --only-ipv6,
  2285. --prefer-ipv4, and --prefer-ipv6.
  2286. * include/grub/net.h (grub_dns_option_t): New enum.
  2287. * (grub_net_network_level_address): option added.
  2288. 2013-11-05 Vladimir Testov <vladimir.testov@rosalab.ru>
  2289. * grub-core/video/fb/video_fb.c: Merge two blit functions
  2290. into one.
  2291. 2013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
  2292. * grub-core/term/terminfo.c: Add sequences for home and end.
  2293. 2013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
  2294. * grub-core/lib/legacy_parse.c: Fix handling of hercules and add
  2295. graphics console.
  2296. 2013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
  2297. * grub-core/video/i386/pc/vga.c: Fix double bufferring and
  2298. add mode 0x12.
  2299. 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
  2300. * docs/grub.texi (Vendor power-on keys): Add XPS M1330M based on old
  2301. e-mail by Per Öberg.
  2302. 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
  2303. * grub-core/commands/i386/nthibr.c (GRUB_MOD_INIT): Fix typo in command
  2304. name.
  2305. 2013-11-04 Andrey Borzenkov <arvidjaar@gmail.com>
  2306. * configure.ac: Explicitly disable emusdl, emuusb and emupci on non-
  2307. emu platforms.
  2308. * grub-core/Makefile.core.def: Enable emupci and emuucb only for emu.
  2309. 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
  2310. * docs/grub.texi: Document usage of menuentry id.
  2311. 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
  2312. * docs/grub.texi: Add few mentions about EFI, debug and videoinfo.
  2313. 2013-11-04 Peter Lustig <peter.lustig.7db@gmail.com>
  2314. * grub-core/commands/i386/nthibr.c: New command.
  2315. 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
  2316. * grub-core/tests/video_checksum.c: Add 2560x1440 mode to testing.
  2317. 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
  2318. * include/grub/term.h (grub_term_coordinate): Extend to 16-bit per
  2319. coordinate.
  2320. 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
  2321. Support GRUB_DISABLE_SUBMENU config.
  2322. Inspired by patch from Prarit Bhargava.
  2323. 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
  2324. * docs/grub.texi: Mention RSA support.
  2325. 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
  2326. * grub-core/commands/verify.c: Add RSA support.
  2327. 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
  2328. * grub-core/disk/ahci.c (grub_ahci_pciinit): Detect ATAPI devices.
  2329. * grub-core/disk/ata.c (grub_ata_identify): Use atapi_identify if
  2330. device is known to be ATAPI.
  2331. 2013-11-03 Mike Frysinger <vapier>
  2332. * configure.ac: Don't add target-prefix.
  2333. 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
  2334. * grub-core/commands/loadenv.c (grub_cmd_save_env): Remove unset
  2335. variables.
  2336. 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
  2337. * grub-core/gettext/gettext.c (grub_gettext_init_ext): Ignore errors
  2338. if language is English.
  2339. 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
  2340. * grub-core/osdep/linux/getroot.c: Fix cast-align problems.
  2341. 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
  2342. * configure.ac: Don't add -m32/-m64 on emu.
  2343. 2013-11-02 neil
  2344. * grub-core/osdep/linux/blocklist.c: Include linux/types.h for some
  2345. broken linux headers.
  2346. 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
  2347. * util/grub.d/30_os-prober.in: Add unhiding of partition if on msdos.
  2348. 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
  2349. * grub-core/lib/reed_solomon.c (grub_reed_solomon_recover): Don't do
  2350. Reed-Solomon recovery if more than half of redundancy info is 0.
  2351. 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
  2352. * util/grub-mount.c: Handle symlinks to directories.
  2353. 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
  2354. * grub-core/fs/fshelp.c (find_file): Save ctx->next when calling
  2355. find_file recursively for symlink.
  2356. 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
  2357. * tests/util/grub-shell.in: Copy themes.
  2358. 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
  2359. * util/grub-mkimagexx.c (locate_sections): Reject mislinked images.
  2360. 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
  2361. * configure.ac: Use 0x8000 for address instead of 8000.
  2362. 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
  2363. * grub-core/loader/sparc64/ieee1275/linux.c (get_physbase): Fix
  2364. signature.
  2365. 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
  2366. * grub-core/disk/efi/efidisk.c (grub_efidisk_readwrite): Remove unused
  2367. variable.
  2368. 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
  2369. * configure.ac (TARGET_CFLAGS): Add -march=i386 on i386.
  2370. 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
  2371. * grub-core/fs/hfspluscomp.c (hfsplus_read_compressed_real): Call
  2372. file_progress_read_hook.
  2373. * grub-core/fs/ntfscomp.c (hfsplus_read_compressed_real): Likewise.
  2374. 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
  2375. * conf/Makefile.common (CFLAGS_PLATFORM): Remove poisoning of float
  2376. and double.
  2377. 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
  2378. * grub-core/fs/tar.c (grub_cpio_read): Add read_hook.
  2379. 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
  2380. Rewrite blocklist functions in order to get progress when
  2381. reading large extents and decrease amount of blocklist hook calls.
  2382. 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
  2383. * grub-core/term/serial.c (options), (grub_cmd_serial): Fix handling
  2384. of SI suffixes.
  2385. 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
  2386. Support --base-clock for serial command to handle weird cards with
  2387. non-standard base clock.
  2388. 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
  2389. * grub-core/fs/ext2.c (grub_ext2_read_symlink): Use memcpy rather
  2390. strncpy.
  2391. * grub-core/fs/jfs.c (grub_jfs_lookup_symlink): Likewise.
  2392. * grub-core/kern/misc.c (grub_strncpy): Move from here ...
  2393. * include/grub/misc.h (grub_strncpy): ... to here. Make inline.
  2394. * grub-core/net/net.c (grub_net_addr_to_str): Use COMPILE_TIME_ASSERT
  2395. + strcpy rather than strncpy.
  2396. 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
  2397. * grub-core/fs/zfs/zfs.c (nvpair_name): Use correct type for size.
  2398. (check_pool_label): Likewise. Fixes overflow.
  2399. (nvlist_find_value): Fix comparison.
  2400. 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
  2401. * include/grub/misc.h (grub_strcat): Removed. All users changed to
  2402. more appropriate functions.
  2403. 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
  2404. * grub-core/kern/efi/efi.c (grub_efi_get_filename): Avoid inefficient
  2405. realloc.
  2406. 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
  2407. * util/grub-mkrescue.in: Do not use UUID search on EFI.
  2408. 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
  2409. * grub-core/kern/dl.c: Unify section-finding algorithm. Saves 30 bytes
  2410. on core size.
  2411. 2013-10-30 Vladimir Serbinenko <phcoder@gmail.com>
  2412. * grub-core/kern/mm.c (grub_realloc): Don't copy more data than we have.
  2413. 2013-10-30 Vladimir Serbinenko <phcoder@gmail.com>
  2414. * grub-core/io/gzio.c (huft_build): Use zalloc for safety.
  2415. (initialize_tables): reset tl and td to NULL after freeing.
  2416. 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
  2417. * grub-core/loader/multiboot_mbi2.c: Implement network tag.
  2418. 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
  2419. * grub-core/loader/multiboot_mbi2.c: Add EFI memory map to the list
  2420. of supported tags.
  2421. 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
  2422. * grub-core/loader/multiboot_mbi2.c: Implement EFI memory map.
  2423. 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
  2424. * grub-core/loader/multiboot.c: Add support for multiboot kernels
  2425. quirks.
  2426. 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
  2427. * grub-core/loader/i386/linux.c (allocate_pages): Allocate at least
  2428. a page in protected space.
  2429. 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
  2430. * grub-core/loader/multiboot.c (grub_cmd_module): Don't attempt to
  2431. allocate space for zero-sized modules.
  2432. 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
  2433. * grub-core/loader/xnu_resume.c (grub_xnu_resume): Reject empty images.
  2434. 2013-10-28 Francesco Lavra <francescolavra.fl@gmail.com>
  2435. * grub-core/lib/fdt.c: Fix miscellaneous bugs.
  2436. 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
  2437. * grub-core/lib/progress.c (grub_file_progress_hook_real): Add missing
  2438. safeguards. Fixes a crash with i386/pc/console.c.
  2439. 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
  2440. * include/grub/emu/hostdisk.h: Add proper declaration for grub_host_init
  2441. and grub_hostfs_init.
  2442. 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
  2443. * grub-core/kern/emu/hostdisk.c (grub_util_check_file_presence): Use
  2444. windows method on other platforms without good stat as well.
  2445. 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
  2446. * grub-core/osdep/linux/getroot.c: Add new btrfs defines.
  2447. 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
  2448. Make / in btrfs refer to real root, not the default volume.
  2449. Modify mkrelpath to work even if device is mounted with subvolid option.
  2450. 2013-10-28 Andrey Borzenkov <arvidjaar@gmail.com>
  2451. * Makefile.util.def: Add grub-core/kern/disk_common.c to library
  2452. extra_dist.
  2453. * grub-core/Makefile.core.def: Add kern/disk_common.c to disk module
  2454. extra_dist.
  2455. 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
  2456. * util/grub-mkfont.c (main): Show error message when FT_Set_Pixel_Sizes
  2457. fails.
  2458. 2013-10-27 BVK Chaitanya <bvk.groups@gmail.com>
  2459. * docs/autoiso.cfg: New file.
  2460. 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
  2461. * configure.ac: Remove leftover COND_BUILD_GRUB_MKFONT and
  2462. COND_GRUB_PE2ELF conditions.
  2463. 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
  2464. * grub-core/loader/i386/bsd.c (grub_cmd_openbsd): Accept "sd", "cd",
  2465. "vnd", "rd" and "fd" disks.
  2466. 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
  2467. Move grub_disk_write out of kernel into disk.mod.
  2468. 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
  2469. * grub-core/kern/misc.c (grub_vsnprintf_real): Unify int and wchar
  2470. handling.
  2471. 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
  2472. * grub-core/kern/misc.c (grub_abort): Make static
  2473. 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
  2474. * grub-core/kern/misc.c (grub_vsnprintf_real): Don't attempt to
  2475. transform invalid unicode codepoints.
  2476. 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
  2477. * grub-core/kern/misc.c (grub_vsnprintf_real): Remove needless explicit
  2478. \0 checking.
  2479. 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
  2480. * grub-core/lib/legacy_parse.c: Add support for "nd" disk.
  2481. 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
  2482. Consolidate cpuid code.
  2483. 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
  2484. Move cpuid code to cpuid.h and TSC code to tsc.c.
  2485. 2013-10-26 Grégoire Sutre <gregoire.sutre@gmail.com>
  2486. * util/grub.d/00_header.in: Don't use LANG if it's not set.
  2487. 2013-10-26 Grégoire Sutre <gregoire.sutre@gmail.com>
  2488. * util/grub-mkconfig.in: Replace $0 with $self.
  2489. * util/grub-reboot.in: Likewise.
  2490. * util/grub-set-default.in: Likewise.
  2491. 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
  2492. * docs/osdetect.cfg: New file.
  2493. 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
  2494. * tests/util/grub-shell.in: Add new --debug option.
  2495. 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
  2496. * tests/test_unset.in: New test.
  2497. 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
  2498. * tests/test_sha512sum.in: New test.
  2499. 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
  2500. * grub-core/fs/iso9660.c: Replace strncat with memcpy.
  2501. * include/grub/misc.h: Remove strncat.
  2502. * grub-core/lib/posix_wrap/string.h: Likewise.
  2503. 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
  2504. * grub-core/net/tftp.c: Retransmit ack when rereceiving old packet.
  2505. Try to handle more than 0xFFFF packets.
  2506. Reported by: Bernhard Übelacker <bernhardu>.
  2507. He also spotted few overflows in first version of this patch.
  2508. 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
  2509. * tests/date_unit_test.c: New test.
  2510. 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
  2511. * grub-core/normal/datetime.c (grub_unixtime2datetime): Fix mishandling
  2512. of first three years after start of validity of unixtime.
  2513. 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
  2514. * grub-core/normal/menu_entry.c (get_logical_num_lines): Use unsigned
  2515. division as the one making more sense.
  2516. (update_screen): Likewise.
  2517. (complete): Likewise.
  2518. 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
  2519. * grub-core/normal/menu_entry.c (complete): Make sure that width is >0.
  2520. 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
  2521. Make char and string width grub_size_t rather than grub_ssize_t.
  2522. 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
  2523. * grub-core/normal/cmdline.c (grub_history_get): Make argument into
  2524. unsigned.
  2525. (grub_history_replace): Likewise.
  2526. 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
  2527. * grub-core/disk/raid6_recover.c: Use unsigned arithmetics when
  2528. appropriate.
  2529. 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
  2530. * grub-core/video/bitmap_scale.c: Use unsigned arithmetics when
  2531. appropriate.
  2532. 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
  2533. * grub-core/video/fb/fbblit.c: Use (255 ^ x) rather than (255 - x).
  2534. Use unsigned divisions rather than signed variants.
  2535. 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
  2536. * grub-core/video/readers/png.c (grub_png_convert_image): Use
  2537. unsigned arithmetics.
  2538. Add missing break.
  2539. 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
  2540. * grub-core/video/readers/jpeg.c: Use unsigned where appropriate.
  2541. 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
  2542. * grub-core/fs/zfs/zfs.c (xor_out): Use unsigned modular arithmetics
  2543. rather than signed one.
  2544. (recovery): Likewise.
  2545. 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
  2546. * grub-core/net/dns.c (hash): Use unsigned arithmetic.
  2547. 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
  2548. * grub-core/io/gzio.c (test_zlib_header): Use undigned modulo rather
  2549. than signed.
  2550. 2013-10-25 Jon McCune <jonmccune@google.com>
  2551. * docs/grub.texi: Cleanup security documentation around signatures.
  2552. 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
  2553. * grub-core/fs/ext2.c (EXT2_BLOCK_SIZE): Make unsigned.
  2554. 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
  2555. * grub-core/commands/gptsync.c (lba_to_chs): Use proper types rather
  2556. than int.
  2557. 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
  2558. * conf/Makefile.common (CPPFLAGS_KERNEL): Add -DGRUB_KERNEL=1.
  2559. * include/grub/dl.h (GRUB_MOD_INIT), (GRUB_MOD_FINI): Define
  2560. functions when compiling for kernel.
  2561. 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
  2562. * grub-core/lib/progress.c (grub_file_progress_hook_real): Cast to
  2563. unsigned long long when using %llu.
  2564. 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
  2565. * grub-core/lib/progress.c (grub_file_progress_hook_real): Refresh
  2566. terminal after updating progress.
  2567. 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
  2568. * grub-core/boot/i386/pc/startup_raw.S (grub_gate_a20): Remove
  2569. argument. We don't disable Gate A20 in this code.
  2570. 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
  2571. * grub-core/boot/i386/qemu/boot.S: Ensure that A20 is enabled.
  2572. Conceptually based on change in branch "vbe-on-coreboot".
  2573. 2013-10-24 Robert Millan <rmh@gnu.org>
  2574. * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Replace
  2575. numeric constants with their symbolic equivalent.
  2576. Taken from branch "vbe-on-coreboot".
  2577. 2013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
  2578. * docs/grub.texi: Fix ordering and use pxref rather than xref.
  2579. 2013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
  2580. * grub-core/lib/progress.c (grub_file_progress_hook_real): Use
  2581. divmod64 for offset division.
  2582. 2013-10-22 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
  2583. Rename .bzrignore to .gitignore. Add "*.o" rule.
  2584. * .bzrignore: Renamed to...
  2585. * .gitignore: ...this.
  2586. 2013-10-22 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
  2587. Add new progress module that displays the load progress of files.
  2588. * grub-core/lib/progress.c: New file.
  2589. * grub-core/Makefile.core.def (progress): New module.
  2590. * grub-core/kern/file.c (grub_file_open): File name added.
  2591. * (grub_file_read): Progress hook added.
  2592. * grub-core/fs/cbfs.c (grub_cbfs_read): Likewise.
  2593. * grub-core/fs/cpio_common.c (grub_cpio_read): Likewise.
  2594. * grub-core/net/net.c (grub_net_fs_read_real): Likewise.
  2595. * include/grub/file.h (struct grub_file): Add progress module members.
  2596. * include/grub/term.h (struct grub_term_output): Likewise.
  2597. * grub-core/osdep/unix/emuconsole.c (grub_console_term_output):
  2598. Terminal velocity added.
  2599. * grub-core/osdep/windows/emuconsole.c (grub_console_term_output): Likewise.
  2600. * grub-core/term/arc/console.c (grub_console_term_output): Likewise.
  2601. * grub-core/term/efi/console.c (grub_console_term_output): Likewise.
  2602. * grub-core/term/gfxterm.c (grub_video_term): Likewise.
  2603. * grub-core/term/i386/coreboot/cbmemc.c (grub_cbmemc_term_output): Likewise.
  2604. * grub-core/term/i386/pc/console.c (grub_console_term_output): Likewise.
  2605. * grub-core/term/i386/pc/vga_text.c (grub_vga_text_term): Likewise.
  2606. * grub-core/term/ieee1275/console.c (grub_console_term_output): Likewise.
  2607. * grub-core/term/morse.c (grub_audio_term_output): Likewise.
  2608. * grub-core/term/serial.c (grub_serial_term_output): Likewise.
  2609. * grub-core/term/spkmodem.c (grub_spkmodem_term_output): Likewise.
  2610. * grub-core/term/uboot/console.c (uboot_console_term_output): Likewise.
  2611. 2013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
  2612. Verify signatures of signatures unless --skip-sig is specified.
  2613. 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
  2614. * grub-core/kern/misc.c (grub_vsnprintf_real): Remove needless explicit
  2615. \0 checking.
  2616. Saves 70 bytes on compressed image.
  2617. 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
  2618. * grub-core/kern/misc.c (grub_strtoull): Remove needless *ptr != 0
  2619. check.
  2620. Saves 10 bytes on compressed image.
  2621. 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
  2622. * grub-core/kern/misc.c (grub_isprint): Move to ...
  2623. * include/grub/misc.h (grub_isprint): ... here. Make inline.
  2624. Saves 20 bytes on compressed image due to remving exporting.
  2625. 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
  2626. * grub-core/fs/ntfs.c (grub_ntfs_mount): Remove redundant check.
  2627. Saves 5 bytes on compressed image.
  2628. 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
  2629. * grub-core/fs/ntfs.c: Move common UTF-16 handling to a separate
  2630. function get_utf8.
  2631. Saves 379 bytes on compressed image.
  2632. 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
  2633. * grub-core/fs/ntfs.c: Handle 48-bit MFT no.
  2634. 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
  2635. * grub-core/fs/ntfs.c (read_run_data): Rewrite using bitfields.
  2636. Saves 40 bytes on compressed image.
  2637. 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
  2638. * grub-core/fs/ntfs.c (grub_ntfs_iterate_dir): Use grub_uint8_t for
  2639. mask rather than 64-bit type.
  2640. Saves 20 bytes on compressed image.
  2641. 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
  2642. * grub-core/fs/ntfs.c (read_data): Move code for compressed data to ...
  2643. * grub-core/fs/ntfscomp.c (ntfscomp): ... here.
  2644. Saves 273 bytes on compressed image.
  2645. 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
  2646. * grub-core/kern/disk.c (grub_disk_write): Use malloc/free instead of
  2647. variable length arrays.
  2648. Saves 50 bytes on compressed image.
  2649. 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
  2650. * grub-core/loader/i386/bsd.c: Remove variable length arrays.
  2651. 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
  2652. * grub-core/fs/ufs.c: Remove variable length arrays.
  2653. 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
  2654. * grub-core/fs/ntfs.c: Add comment about fixed allocation size.
  2655. 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
  2656. * grub-core/fs/zfs.c: Remove variable length arrays.
  2657. Reduces zfs.mod by 160 bytes (208 compressed).
  2658. 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
  2659. * grub-core/fs/zfs/zfs.c (check_pool_label): Fix memory leak.
  2660. 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
  2661. * grub-core/net/arp.c: Remove variable length arrays.
  2662. * grub-core/net/bootp.c: Likewise.
  2663. * grub-core/net/dns.c: Likewise.
  2664. * grub-core/net/icmp6.c: Likewise.
  2665. * grub-core/net/net.c: Likewise.
  2666. 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
  2667. * grub-core/fs/ntfs.c: Remove variable length arrays.
  2668. Increases ntfs.mod by 64 bytes (but decreases by 3 when
  2669. compressed).
  2670. 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
  2671. * grub-core/fs/hfs.c: Remove variable length arrays.
  2672. Reduces hfs.mod by 8 bytes (52 compressed).
  2673. 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
  2674. * grub-core/fs/udf.c: Remove variable length arrays.
  2675. Increases udf.mod by 128 bytes (but decreases by 13 when
  2676. compressed).
  2677. 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
  2678. * grub-core/fs/iso9660.c: Remove variable length arrays.
  2679. Increases iso9660.mod by 200 bytes (but decreases by 79 when
  2680. compressed).
  2681. 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
  2682. * grub-core/fs/nilfs2.c: Remove variable length arrays.
  2683. Increases nilfs2.mod by 24 bytes (but decreases by 115 when
  2684. compressed).
  2685. 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
  2686. * grub-core/fs/xfs.c: Remove variable length arrays.
  2687. Reduces xfs.mod by 40 bytes (43 compressed).
  2688. 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
  2689. * grub-core/fs/fshelp.c: Remove variable length arrays.
  2690. Reduces fshelp.mod by 116 bytes (23 compressed).
  2691. 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
  2692. * grub-core/normal/completion.c: Remove variable length arrays.
  2693. * grub-core/normal/menu_entry.c: Likewise.
  2694. Reduces normal.mod by 496 bytes.
  2695. 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
  2696. * grub-core/fs/minix.c: Remove variable length arrays. Reduces jfs.mod
  2697. by 356 bytes (158 compressed).
  2698. 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
  2699. * grub-core/fs/jfs.c: Remove variable length arrays. Reduces jfs.mod
  2700. by 364 bytes (169 compressed).
  2701. 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
  2702. * grub-core/fs/bfs.c: Remove variable length arrays. Reduces afs.mod and
  2703. bfs.mod size by 556 resp 740 bytes (288 resp 334 compressed).
  2704. * include/grub/types.h (grub_unaligned_uint64_t): New type.
  2705. 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
  2706. Lift 255x255 erminal sie restriction to 65535x65535. Also change from
  2707. bitmasks to small structures of size chosen to fit in registers.
  2708. 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
  2709. * conf/Makefile.common: Use -freg-struct-return on i386. This
  2710. decreases code size and improves performance.
  2711. 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
  2712. * grub-core/osdep/unix/exec.c: Fix compilation error on emu.
  2713. 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
  2714. * grub-core/kern/misc.c (grub_vsnprintf_real): Fix formatting of
  2715. "(null)" string.
  2716. Simplify expressions to save around 256 bytes in kernel.img.
  2717. * tests/printf_unit_test.c (printf_test): Add "(null)" tests.
  2718. 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
  2719. * grub-core/tests/video_checksum.c (grub_video_capture_write_bmp):
  2720. Use GRUB_UTIL_FD_O_* rather than O_*.
  2721. 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
  2722. Add haiku-specific functions.
  2723. 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
  2724. * grub-core/kern/emu/hostdisk.c: Remove few leftover includes.
  2725. 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
  2726. Move stat () and device mode checking into OS-dependent files as
  2727. long as performance doesn't suffer.
  2728. 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
  2729. Split make_system_path_relative_to_its_root into separate file
  2730. relpath.c from getroot.c as it's common between unix and haiku
  2731. but otherwise haiku doesn't use any functions from unix getroot.c.
  2732. 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
  2733. * grub-core/osdep/aros/hostdisk.c (grub_util_is_directory):
  2734. New function.
  2735. (grub_util_is_special_file): Likewise.
  2736. 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
  2737. * grub-core/osdep/unix/getroot.c: Move exec functions to ...
  2738. * osdep/unix/exec.c: ... here. Add few additional exec_* variants.
  2739. 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
  2740. * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Define size_t to
  2741. grub_size_t. This fixes the case when size_t mismatches grub_size_t.
  2742. 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
  2743. * util/grub-mkimagexx.c (make_reloc_section): Fix memory leak.
  2744. (load_image): Likewise.
  2745. 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
  2746. * util/grub-render-label.c: Move backend part to ...
  2747. * util/render-label.c: ... here.
  2748. 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
  2749. * grub-core/osdep/random.c: Use unix/random.c on haiku. Haiku uses
  2750. yarrow (by B. Schneier et al) for its /dev/urandom (similar to FreeBSD).
  2751. 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
  2752. * grub-core/osdep/generic/blocklist.c: Add missing include to string.h.
  2753. 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
  2754. * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Handle
  2755. CD-ROM in case when it's declared as having subpartitions.
  2756. 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
  2757. Don't add -lm on haiku.
  2758. * configure.ac: Define BUILD_LIBM to -lm on most platforms
  2759. and empty on haiku.
  2760. * grub-core/Makefile.am (gentrigtables): Use $(BUILD_LIBM) rather than
  2761. -lm.
  2762. 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
  2763. * configure.ac: Use -melf_*_haiku as target on haiku.
  2764. 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
  2765. * Makefile.util.def: Add util/setup.c to extra_dist.
  2766. 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
  2767. * grub-core/kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Pass
  2768. unknown types through.
  2769. 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
  2770. * grub-core/osdep/unix/getroot.c (grub_util_check_block_device): Remove.
  2771. (grub_util_check_char_device): Likewise.
  2772. * include/grub/emu/getroot.h: Likewise.
  2773. 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
  2774. * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Use define for defining
  2775. memset rather than inline static function.
  2776. 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
  2777. * grub-core/lib/xzembed/xz_config.h: Enable all bcj filters when
  2778. not doing embedded decompressor.
  2779. 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
  2780. * grub-core/disk/ldm.c: Rename variables and arguments to prevent
  2781. shadowing.
  2782. * grub-core/kern/disk.c: Likewise.
  2783. * grub-core/kern/misc.c: Likewise.
  2784. * include/grub/parser.h: Likewise.
  2785. * include/grub/script_sh.h: Likewise.
  2786. * include/grub/zfs/zfs.h: Likewise.
  2787. 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
  2788. * grub-core/disk/luks.c (configure_ciphers): Fix spurious warning.
  2789. 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
  2790. * grub-core/fs/zfs/zfs_lz4.c: Check that __INTEL_COMPILER is
  2791. defined before trying to use it.
  2792. 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
  2793. * grub-core/fs/affs.c (grub_affs_create_node): Fix uninited value
  2794. warning.
  2795. 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
  2796. * include/grub/dl.h: Remove double declaration of GRUB_MOD_DEP.
  2797. Use __unused__ rather than __used__ on gcc < 3.2.
  2798. 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
  2799. * include/grub/setjmp.h: Define RETURNS_TWICE. Keep it empty for
  2800. gcc < 4.0.
  2801. * include/grub/*/setjmp.h: USe RETURNS_TWICE.
  2802. 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
  2803. * grub-core/disk/dmraid_nvidia.c: Fix potentially uninited "layout".
  2804. 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
  2805. * include/grub/misc.h: Don't use warn_unused_result on gcc < 3.4.
  2806. * include/grub/emu/misc.h: Likewise.
  2807. 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
  2808. * grub-core/term/i386/pc/vga_text.c: Remove extra declaration of
  2809. cur_color.
  2810. 2013-10-18 Vladimir Testov <vladimir.testov@rosalab.ru>
  2811. * grub-core/tests/checksums.h: Regenerated due to progress bar
  2812. get_minimal_size changes.
  2813. 2013-10-17 BVK Chaitanya <bvk.groups@gmail.com>
  2814. Added `tr' command support.
  2815. * grub-core/commands/tr.c: New file.
  2816. * grub-core/Makefile.core.def: Build rules for new module.
  2817. * tests/grub_cmd_tr.in: New test.
  2818. * Makefile.util.def: Build rules for new test.
  2819. 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
  2820. * grub-core/gfxmenu/gui_progress_bar.c: Sanity checks added.
  2821. 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
  2822. * grub-core/gfxmenu/gui_progress_bar.c: New option ``highlight_overlay``
  2823. * docs/gurb.texi: Likewise.
  2824. 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
  2825. * grub-core/gfxmenu/gui_progress_bar.c (draw_pixmap_bar): Fixed bug.
  2826. Pixmap highlighted section with east and west slices was displayed
  2827. incorrectly due to negative width of the central slice.
  2828. 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
  2829. * docs/grub.texi: Graphical options information update.
  2830. Removed outdated. Updated current. Inserted missed.
  2831. 2013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
  2832. * docs/grub.texi: Mention few new platform-specific commands.
  2833. 2013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
  2834. * grub-core/script/yylex.l: Fix LSQBR2 and RSQBR2. It's not
  2835. currently used so this doesn't really have any effect.
  2836. Reported by: Douglas Ray <dougray>
  2837. 2013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
  2838. * autogen.sh: Don't set LC_CTYPE as it doesn't create problem for
  2839. compilation but prevents gcc from displaying messages in non-Latin
  2840. alphabets.
  2841. * conf/Makefile.common: Likewise.
  2842. 2013-10-16 Hiroyuki YAMAMORI
  2843. Handle Japanese special keys.
  2844. Reported by: Hiroyuki YAMAMORI.
  2845. Codes supplied by: Hiroyuki YAMAMORI.
  2846. 2013-10-16 Vladimir Testov <vladimir.testov@rosalab.ru>
  2847. * grub-core/gfxmenu/gui_list.c: Scrollbar sanity checks added.
  2848. 2013-10-16 Vladimir Testov <vladimir.testov@rosalab.ru>
  2849. * grub-core/gfxmenu/gui_list.c: New option `item_pixmap_style`.
  2850. * docs/grub.texi: Likewise.
  2851. 2013-10-16 Vladimir Serbinenko <phcoder@gmail.com>
  2852. * grub-core/osdep/unix/hostdisk.c (grub_util_fd_read): Return correct
  2853. value in case of incomplete read.
  2854. (grub_util_fd_write): Likewise.
  2855. 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
  2856. * util/editenv.c (grub_util_create_envblk_file): Use grub_util_rename.
  2857. 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
  2858. * util/grub-editenv.c (create_envblk_file): More from here ...
  2859. * util/editenv.c (grub_util_create_envblk_file): ... to here.
  2860. 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
  2861. * grub-core/osdep/unix/getroot.c (grub_guess_root_devices):
  2862. canonicalize file name before doing the rest.
  2863. 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
  2864. * include/grub/osdep/hostfile_windows.h: Add missing ftello for
  2865. mingw32.
  2866. 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
  2867. Define grub_util_is_directory/regular/special_file and
  2868. use OS-dependent versions rather than to rely on stat().
  2869. 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
  2870. * util/grub-mkimage.c: Move backend part to ...
  2871. * util/mkimage.c: ... here.
  2872. 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
  2873. Allow compilation with mingw64 albeit with warnings due to lack of
  2874. %llx/%llu.
  2875. * grub-core/gnulib/msvc-inval.c: Use __cdecl rather than cdecl.
  2876. * grub-core/lib/posix_wrap/wchar.h: Define wint_t.
  2877. * grub-core/lib/posix_wrap/wctype.h: Define wctype_t.
  2878. * include/grub/osdep/hostfile_windows.h: Don't define fseeko/ftello
  2879. on mingw64.
  2880. * include/grub/types.h: Allow sizeof (long) != sizeof (void *).
  2881. 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
  2882. Remove leftover references to some of the system headers.
  2883. 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
  2884. * grub-core/disk/geli.c (grub_util_get_geli_uuid): Close handle after
  2885. read.
  2886. 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
  2887. * grub-core/disk/cryptodisk.c: Use grub_util_fd_strerror instead
  2888. of strerror.
  2889. 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
  2890. Split out blocklist retrieving from setup.c to
  2891. grub-core/osdep/blocklist.c and add windows implementation since
  2892. generic version doesn't work on NTFS on Windows due to aggressive
  2893. unflushable cache.
  2894. 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
  2895. Split grub-setup.c into frontend (grub-setup.c) and backend (setup.c)
  2896. files.
  2897. 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
  2898. * grub-core/osdep/windows/hostdisk.c (grub_util_fd_strerror):
  2899. Cut tailing newline. Remove arbitrary limitation. Always use
  2900. grub_util_tchar_to_utf8.
  2901. 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
  2902. * grub-core/kern/misc.c (grub_vsnprintf_real): Handle %% properly.
  2903. * tests/printf_unit_test.c (printf_test): Add %% tests.
  2904. Reported by: Paulo Flabiano Smorigo.
  2905. 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
  2906. * grub-core/osdep/windows/hostdisk.c (fsync) [__MINGW32__]: Really
  2907. implement fsync.
  2908. 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
  2909. * configure.ac: Check for nvlist_lookup_string in nvpair since we
  2910. use nvlist_lookup_string and don't use nvlist_print.
  2911. 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
  2912. Add wrappers around rename, unlink, mkdir, opendir, readdir and
  2913. closedir to handle filename charset translation.
  2914. 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
  2915. * include/grub/emu/hostdisk.h: Move file operations to
  2916. * include/grub/emu/hostfile.h: ... here.
  2917. 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
  2918. * grub-core/osdep/windows/hostdisk.c (canonicalize_file_name): Handle
  2919. unicode path.
  2920. 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
  2921. * grub-core/tests/checksums.h: Regenerate due to swiss.sed change.
  2922. 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
  2923. Move cpu time retrieval to separate grub_util_get_cpu_time_ms
  2924. and remove export.h.
  2925. 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
  2926. * grub-core/kern/emu/error.c: Removed.
  2927. * grub-core/Makefile.core.def (kernel): Don't add error.c and progname.c
  2928. explicitly as it's already in libgnu.a.
  2929. 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
  2930. * grub-core/osdep/windows/emuconsole.c: Add missing config.h and
  2931. config-util.h include.
  2932. 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
  2933. Split emunet into platform-dependent and GRUB-binding parts. Keep
  2934. platform-dependent part in kernel for easy access to OS functions.
  2935. 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
  2936. * grub-core/tests/video_checksum.c: Use grub_util_fd_* rather than
  2937. open/read/write.
  2938. 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
  2939. * grub-core/osdep/windows/emuconsole.c: New file.
  2940. 2013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
  2941. * conf/Makefile.extra-dist: Add osdep/*/init.c
  2942. 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
  2943. * Makefile.am: Use TARGET_OBJCOPY when doing objcopy for target.
  2944. 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
  2945. * util/grub-probe.c (probe): Separate different drives in hint-str
  2946. by spaces and not newlines.
  2947. * util/grub-mkconfig_lib.in: Handle multidevice filesystem.
  2948. 2013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
  2949. * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
  2950. Handle CD-ROMs.
  2951. 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
  2952. Pass-through unknown E820 types. It required reorganisation of mmap
  2953. module.
  2954. 2013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
  2955. * Makefile.util.def: Add osdep/init.c to grub-mount files.
  2956. 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
  2957. Make grub_util_fd_seek match behaviour of other grub_util_fd_* and
  2958. fseeko.
  2959. 2013-10-14 qwertial <qwertial>
  2960. * grub-core/gdb_grub.in: Fix overflow and wrong field.
  2961. 2013-10-14 Jon McCune <jonmccune@google.com>
  2962. * docs/grub.texi: Document new signatures possibility.
  2963. 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
  2964. Define GRUB_UTIL_FD_O_* and always use them with grub_util_fd_open.
  2965. 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
  2966. * include/grub/osdep/hostfile_windows.h (grub_util_utf8_to_tchar): Add
  2967. missing prototype.
  2968. (grub_util_tchar_to_utf8): Likewise.
  2969. 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
  2970. * grub-core/Makefile.core.def: Add osdep/init.c on emu.
  2971. * grub-core/kern/emu/main.c: Add missing include.
  2972. * grub-core/osdep/basic/init.c (grub_util_host_init) [!GRUB_UTIL]:
  2973. Don't call grub_util_init_nls.
  2974. * grub-core/osdep/windows/init.c (grub_util_host_init) [!GRUB_UTIL]:
  2975. Likewise.
  2976. 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
  2977. * util/misc.c (grub_util_get_image_size): Use FILE functions rather than
  2978. stat.
  2979. 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
  2980. * util/grub-editenv.c: Remove leftover set_program_name and init_nls.
  2981. 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
  2982. * include/grub/misc.h: Use gnu_printf only on gcc 4.4 or later.
  2983. 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
  2984. Add a wrapper for fopen. On unix-like systems just pass-through. On
  2985. windows use unicode version.
  2986. 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
  2987. Move set_program_name and init_nls to host_init. On windows
  2988. fix in this fuction console and argument charset as well.
  2989. 2013-10-12 Andrey Borzenkov <arvidjaar@gmail.com>
  2990. Fix inconsistent use of GRUB_CRYPTODISK_ENABLE and
  2991. GRUB_ENABLE_CRYPTODISK.
  2992. * util/grub-install.in: Rename all GRUB_CRYPTODISK_ENABLE to
  2993. GRUB_ENABLE_CRYPTODISK.
  2994. * util/grub-mkconfig_lib.in: Likewise.
  2995. 2013-10-12 Christian Cier-Zniewski <c.cier@gmx.de>
  2996. * docs/grub.texi (Vendor power-on keys): Add Dell Latitude E4300.
  2997. 2013-10-12 Melki Christian <Christian.melki@saabgroup.com>
  2998. * grub-core/term/at_keyboard.c [DEBUG_AT_KEYBOARD]: Fix compilation
  2999. error when enabling debug.
  3000. 2013-10-12 Ilya Bakulin <Ilya_Bakulin@genua.de>
  3001. * configure.ac: Use -melf_*_obsd on openbsd.
  3002. 2013-10-12 Vladimir Serbinenko <phcoder@gmail.com>
  3003. * grub-core/kern/arm/dl_helper.c: Use more proper %p for pointer.
  3004. 2013-10-12 Vladimir Serbinenko <phcoder@gmail.com>
  3005. * include/grub/misc.h: Use gnu_printf rather than printf as format
  3006. template since our functions are independent of libc.
  3007. 2013-10-11 Vladimir Serbinenko <phcoder@gmail.com>
  3008. * util/grub-setup.c (setup): Move copying of partition table as
  3009. futher up as possible to avoid possible overwrite by floppy routines.
  3010. 2013-10-11 Vladimir Serbinenko <phcoder@gmail.com>
  3011. * grub-core/fs/fat.c: Fix handling of exfat contiguous files.
  3012. 2013-10-10 Vladimir Testov <vladimir.testov@rosalab.ru>
  3013. * grub-core/gfxmenu/gui_list.c: New option `scrollbar_thumb_overlay`.
  3014. * docs/grub.texi: Likewise.
  3015. 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
  3016. * util/getroot.c (make_device_name): Remove dos_part and bsd_part as
  3017. it's mostly unused. Move vestiges to the callers.
  3018. 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
  3019. * util/grub-mkpasswd-pbkdf2.c: Remove temporary buffers for hex
  3020. version of salt and hash. Use grub_snprintf rather than snprintf.
  3021. 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
  3022. * docs/grub.texi: Fix problem with braces.
  3023. 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
  3024. * conf/Makefile.extra-dist: Fix extra-dist list.
  3025. * grub-core/Makefile.core.def: Likewise.
  3026. 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
  3027. * docs/grub.texi: Document disk names used on Windows and AROS.
  3028. 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
  3029. * grub-core/osdep/aros/getroot.c: Change to //: prefix as discussed
  3030. with AROS devs.
  3031. * grub-core/osdep/aros/hostdisk.c: Likewise.
  3032. 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
  3033. Avoid including hostfile.h when not necessarry as it pulls
  3034. in OS-specific headers which may redefine generic names
  3035. like "far".
  3036. 2013-10-09 Vladimir Testov <vladimir.testov@rosalab.ru>
  3037. * grub-core/gfxmenu/gui_list.c: New options for scrollbar padding:
  3038. scrollbar_left_pad, scrollbar_right_pad, scrollbar_top_pad,
  3039. scrollbar_bottom_pad
  3040. * docs/grub.texi: Likewise.
  3041. 2013-10-09 Vladimir Testov <vladimir.testov@rosalab.ru>
  3042. * grub-core/gfxmenu/gui_list.c (list_destroy): Fixed memory leak.
  3043. 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
  3044. Move OS-dependent file definitions to include/grub/osdep/hostfile*.h.
  3045. 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
  3046. * include/grub/emu/hostdisk.h (grub_hostdisk_linux_find_partition):
  3047. Removed.
  3048. * grub-core/osdep/linux/hostdisk.c (grub_hostdisk_linux_find_partition):
  3049. Made static.
  3050. 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
  3051. * include/grub/emu/getroot.h (grub_util_find_hurd_root_device): Remove
  3052. leftover.
  3053. 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
  3054. Move OS-specific driver configuration to grub_util_fd_open. This
  3055. moves OS-dependent parts from kern/emu/hostdisk.c to
  3056. grub-core/osdep/*/hostdisk.c.
  3057. 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
  3058. * util/grub-mkimage.c (generate_image): Use size_t instead of
  3059. grub_size_t.
  3060. * util/grub-mkimagexx.c (locate_sections): Likewise.
  3061. (load_image): Likewise.
  3062. 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
  3063. * util/misc.c (grub_util_write_image_at): Don't use PRIxGRUB_SIZE for
  3064. size_t.
  3065. (grub_util_write_image): Likewise.
  3066. 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
  3067. * grub-core/osdep/basic/random.c: New file. Abort on an attempt to
  3068. get random when no RNG is available.
  3069. * grub-core/osdep/random.c: Use basic/random.c on OS out of whitelist.
  3070. 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
  3071. * include/grub/util/lvm.h: Removed.
  3072. 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
  3073. * grub-core/kern/emu/misc.c (fsync) [__MINGW32__]: Move to ...
  3074. * grub-core/osdep/windows/hostdisk.c (fsync) [__MINGW32__]: ... here.
  3075. 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
  3076. * grub-core/osdep/windows/sleep.c: Add missing config.h.
  3077. 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
  3078. * grub-core/kern/emu/misc.c (grub_get_rtc): Remove (it's a leftover).
  3079. 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
  3080. * grub-core/net/drivers/emu/emunet.c: Move to ..
  3081. * grub-core/osdep/linux/emunet.c: ..here.
  3082. 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
  3083. * util/ieee1275/ofpath.c: Move to ...
  3084. * grub-core/osdep/linux/ofpath.c: ..here, split stub into ...
  3085. * grub-core/osdep/basic/ofpath.c: ..here.
  3086. 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
  3087. Move password-querying (util-version) routines to grub-core/osdep.
  3088. 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
  3089. Move sleep routines to grub-core/osdep.
  3090. 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
  3091. Move OS-dependent files to grub-core/osdep and document it.
  3092. 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
  3093. * grub-core/kern/emu/misc.c (canonicalize_file_name): Move to ...
  3094. * grub-core/kern/emu/hostdisk_*.c (canonicalize_file_name): ... here.
  3095. 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
  3096. * grub-core/kern/arm/misc.S: Remove leftover ARM and THUMB.
  3097. 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
  3098. * util/misc.c: Remove leftover inclusion of malloc.h.
  3099. 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
  3100. * include/grub/setjmp.h: Remove leftover GRUBOF.
  3101. 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
  3102. * util/raid.c: Fold into ...
  3103. * util/getroot_linux.c: ... here. Make all functions static.
  3104. 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
  3105. * grub-core/fs/zfs/zfs_lz4.c: Switch from ad-hoc endiannes and width
  3106. macros to GRUB ones.
  3107. 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
  3108. * grub-core/gfxmenu/gui_list.c (draw_scrollbar): Fixed rare
  3109. occasional bug. If there are too many boot entries or too low
  3110. scrollbar height then we need to use another formula to calculate
  3111. the position and size of the scrollbar thumb.
  3112. 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
  3113. * util/random_unix.c: Add NetBSD, Solaris and Mac OS X to verified list.
  3114. 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
  3115. * grub-core/gfxmenu/gui_list.c: New option `scrollbar-slice`.
  3116. * docs/grub.texi: Likewise.
  3117. 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
  3118. * grub-core/gfxmenu/gui_list.c: Draw the scrollbar in a separate
  3119. viewport.
  3120. 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
  3121. * grub-core/gfxmenu/gui_list.c (list_get_minimal_size): Corrected
  3122. minimal width calculations.
  3123. 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
  3124. * docs/grub.texi: Update note on colors on emu console.
  3125. 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
  3126. * grub-core/fs/ufs.c (grub_ufs_get_file_block): Give GRUB_ERR_BAD_FS
  3127. for quadruple indirect rather than GRUB_ERR_NOT_IMPLEMENTED_YET as
  3128. it's FS and not GRUB limitation.
  3129. 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
  3130. * grub-core/kern/arm/efi/startup.S: Remove thumb leftover.
  3131. 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
  3132. * grub-core/kern/arm/efi/init.c: Rewrite timer fucntion.
  3133. 2013-10-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
  3134. * util/grub.d/10_hurd.in: Use `version_find_latest` to sort gnumach
  3135. kernels by version order.
  3136. 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
  3137. * util/random_unix.c: Add kFreeBSD to the list of secure RNG.
  3138. 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
  3139. Add AROS hostdisk and getroot routines.
  3140. 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
  3141. Make cryptodisk and diskfilter probe data retrievable programmatically
  3142. and not just printable.
  3143. 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
  3144. Split random retrieving code into separate files.
  3145. 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
  3146. * grub-core/kern/arm/dl.c (do_relocations): Accept and ignore
  3147. R_ARM_V4BX.
  3148. 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
  3149. * grub-core/tests/video_checksum.c: Increase robustness to out of memory
  3150. condition.
  3151. * grub-core/tests/fake_input.c: Likewise.
  3152. * grub-core/tests/cmdline_cat_test.c: Likewise.
  3153. 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
  3154. * grub-core/video/capture.c: Do not do finalization when .fini
  3155. is called as there is explicit capture_end.
  3156. 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
  3157. * grub-core/term/gfxterm.c: Add flag "functional" to skip input when
  3158. changing windows to avoid crash.
  3159. 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
  3160. * grub-core/kern/arm/cache.c: Add v5 write-through cache support.
  3161. 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
  3162. * po/exclude.pot: Add several strings to exclude.
  3163. 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
  3164. * tests/gettext_strings_test.in: Add getroot_*.c to exclude list.
  3165. 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
  3166. * autogen.sh: Add ./util/grub-gen-widthspec.c and
  3167. ./util/grub-gen-asciih.c to exclude list.
  3168. 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
  3169. * grub-core/gfxmenu/theme_loader.c (theme_set_string): Fix memory leak
  3170. and don't mark error strings for translation.
  3171. 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
  3172. * grub-core/disk/uboot/ubootdisk.c (uboot_disk_open): Use grub_error
  3173. properly in case of missing block size.
  3174. 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
  3175. * grub-core/lib/arm/setjmp.S: Add missing license section.
  3176. 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
  3177. * po/swiss.sed: Add replacement for key names and for term computer.
  3178. 2013-10-02 Vladimir Testov <vladimir.testov@rosalab.ru>
  3179. * grub-core/gfxmenu/theme_loader.c: New global options for the
  3180. theme background image handling. desktop-image-scale-method,
  3181. desktop-image-h-align, desktop-image-v-align.
  3182. * grub-core/gfxmenu/view.c: Likewise.
  3183. * include/gfxmenu_view.h: Likewise.
  3184. * include/bitmap_scale.h: Proportional scale functions introduced.
  3185. * grub-core/video/bitmap_scale.c: Likewise. Verification checks are
  3186. put in a separate functions. GRUB_ERR_BUG is set for grub_error in
  3187. cases of unexpected input variables for scale functions.
  3188. * docs/grub.texi: Updated documentation for new options.
  3189. 2013-10-02 Vladimir Serbinenko <phcoder@gmail.com>
  3190. * grub-core/video/readers/png.c: Support narrow (4-/2-/1-bpp) PNG.
  3191. 2013-10-01 Vladimir Testov <vladimir.testov@rosalab.ru>
  3192. * grub-core/tests/checksums.h: Corrected due to changes in
  3193. bilinear interpolation function.
  3194. 2013-10-01 Vladimir Testov <vladimir.testov@rosalab.ru>
  3195. * grub-core/video/bitmap_scale.c (scale_bilinear): Increased precision
  3196. to eliminate artefacts in bilinear interpolation.
  3197. 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
  3198. * grub-core/video/readers/tga.c: Support paletted tga.
  3199. 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
  3200. * grub-core/video/readers/jpeg.c (grub_jpeg_decode_data): Remove
  3201. incorrect cbcr setting when in color mode.
  3202. 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
  3203. * grub-core/video/readers/png.c: Support paletted images and clean up
  3204. greyscale support.
  3205. 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
  3206. * grub-core/term/terminfo.c (grub_terminfo_readkey): Fix
  3207. usage of wrong table which resulted in mishandling of 4-byte
  3208. sequences.
  3209. 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
  3210. * grub-core/term/terminfo.c: Add Home and End key sequences.
  3211. 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
  3212. * grub-core/video/readers/png.c (grub_png_decode_image_header):
  3213. Fix formula for computing total number of bytes.
  3214. 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
  3215. * grub-core/video/readers/tga.c: Reorganize to separate RLE and
  3216. image processing, fix big-endian and support grayscale.
  3217. 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
  3218. * grub-core/video/fb/video_fb.c (grub_video_fb_create_render_target):
  3219. Correctly will with maximum transparency when using index color.
  3220. 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
  3221. * grub-core/video/readers/png.c: Support grayscale
  3222. 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
  3223. * grub-core/video/readers/jpeg.c: Support grayscale.
  3224. 2013-09-26 Jon McCune <jonmccune@google.com>
  3225. * grub-core/commands/loadenv.c: Support skipping signature check
  3226. and variable names filtering.
  3227. 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
  3228. * grub-core/kern/emu/hostdisk_unix.c: Declare AROS as non-unix.
  3229. * grub-core/kern/emu/hostfs.c: Likewise.
  3230. * util/getroot_unix.c: Likewise.
  3231. 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
  3232. * include/grub/emu/hostdisk.h (GRUB_FD_STAT_IS_FUNTIONAL): New define.
  3233. Migrate all explicit defines to this new one.
  3234. 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
  3235. * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Use
  3236. grub_util_fd_strerror when using grub_util_fd_*.
  3237. (grub_util_fd_open_device): Likewise.
  3238. (grub_util_biosdisk_read): Likewise.
  3239. (grub_util_biosdisk_write): Likewise.
  3240. * grub-core/kern/emu/hostdisk_unix.c (grub_util_fd_open): New function.
  3241. (grub_util_fd_strerror): Likewise.
  3242. (grub_util_fd_sync): Likewise.
  3243. (grub_util_fd_close): Likewise.
  3244. * grub-core/kern/emu/hostdisk_windows.c (grub_util_fd_sync): Likewise.
  3245. (grub_util_fd_close): Likewise.
  3246. (grub_util_fd_strerror): Likewise.
  3247. * include/grub/emu/hostdisk.h (grub_util_fd_close): Make into real
  3248. function proto rather than macro.
  3249. (grub_util_fd_sync): Likewise.
  3250. (grub_util_fd_open): Likewise.
  3251. (grub_util_fd_strerror): New proto.
  3252. 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
  3253. * util/getroot.c (grub_util_biosdisk_is_present): Don't do stat on
  3254. platforms on which it doesn't work.
  3255. 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
  3256. * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Move struct
  3257. stat immediately to where it's used.
  3258. 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
  3259. * util/getroot.c (grub_util_check_block_device): Move to ...
  3260. * util/getroot_unix.c (grub_util_check_block_device): ... here.
  3261. * util/getroot.c (grub_util_check_char_device): Move to ...
  3262. * util/getroot_unix.c (grub_util_check_char_device): ... here.
  3263. 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
  3264. * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_close): Fix
  3265. disk closing logic.
  3266. 2013-09-24 Andrey Borzenkov <arvidjaar@gmail.com>
  3267. * docs/grub.texi (Simple configuration): Document GRUB_ENABLE_CRYPTODISK.
  3268. 2013-09-24 Andrey Borzenkov <arvidjaar@gmail.com>
  3269. * docs/grub.texi (File name syntax): Document ZFS filenames
  3270. (/volume@snapshot/...).
  3271. 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
  3272. * grub-core/kern/emu/hostdisk_windows.c (grub_util_get_windows_path):
  3273. Always return full path. Fixes a problem with mkrelpath.
  3274. 2013-09-23 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
  3275. * util/grub-install.in: Add GPT PReP support.
  3276. * util/grub-probe.c (probe): Support GPT partition type.
  3277. (main): Support -t gpt_parttype.
  3278. 2013-09-23 Aleš Nesrsta <starous@volny.cz>
  3279. * grub-core/bus/usb/ehci.c: SMI disabled in all cases
  3280. 2013-09-23 Massimo Maggi <me@massimo-maggi.eu>
  3281. * grub-core/fs/zfs/zfs.c (check_pool_label): Check nvlist.
  3282. 2013-09-23 Tim Hardeck <thardeck>
  3283. * util/grub.d/10_hurd.in: Filter out character for the class.
  3284. * util/grub.d/10_kfreebsd.in: Likewise.
  3285. * util/grub.d/10_linux.in: Likewise.
  3286. * util/grub.d/20_linux_xen.in: Likewise.
  3287. 2013-09-23 Melki Christian <Christian.melki@saabgroup.com>
  3288. * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Fix the type of
  3289. "changed".
  3290. 2013-09-23 Josh Triplett <josh@joshtriplett.org>
  3291. * grub-core/boot/i386/pc/lnxboot.S: Re-add support for recording the
  3292. boot partition.
  3293. 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
  3294. * Makefile.util.def (libgrubmods.a): Remove CFLAGS_POSIX as this lib
  3295. doesn't use posix_wrap. Keep literal -fno-builtin however.
  3296. 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
  3297. * conf/Makefile.common (CPPFLAGS_LIBFDT): Remove leftover.
  3298. 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
  3299. 2013-09-23 neil
  3300. * configure.ac: Do not enable -Wmissing-noreturn as its
  3301. usefulness is limited and creates problems on some OS notably with
  3302. code generated by bison.
  3303. 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
  3304. 2013-09-23 neil
  3305. * configure.ac: Do not explicitly enable -Waddress as it's not
  3306. supported by all gcc and when it is, it's already enabled by -Wall.
  3307. 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
  3308. * grub-core/video/efi_gop.c (grub_video_gop_setup): Fix a typo which
  3309. desactivated use of EDID at all.
  3310. 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
  3311. 2013-09-23 neil
  3312. * grub-core/loader/multiboot.c (grub_multiboot_set_console): Always use
  3313. video if no text is available.
  3314. 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
  3315. 2013-09-23 neil
  3316. * configure.ac: Substitute TARGET_RANLIB.
  3317. 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
  3318. 2013-09-23 neil
  3319. * grub-core/genmod.sh.in: Remove ./ from TARGET_OBJ2ELF. Add quotes.
  3320. Based on patches from AROS.
  3321. 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
  3322. 2013-09-23 neil
  3323. * grub-core/Makefile.am: Override STRIP and RANLIB.
  3324. * configure.ac: compute TARGET_RANLIB.
  3325. * INSTALL: Document TARGET_RANLIB
  3326. Based on patches from AROS.
  3327. 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
  3328. * util/getroot.c (grub_util_biosdisk_get_grub_dev): Do not assume
  3329. that floppies are unpartitioned.
  3330. 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
  3331. * util/getroot_unix.c [__MINGW32__ || __CYGWIN__]:
  3332. Define dummy grub_util_pull_lvm_by_command to decrease number of #if's.
  3333. 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
  3334. * grub-core/lib/posix_wrap/sys/types.h: Use OpenBSD approach: it's
  3335. less nice but more portable.
  3336. * grub-core/lib/posix_wrap/wchar.h: Likewise.
  3337. 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
  3338. * include/grub/cryptodisk.h (grub_cryptodisk): Use grub_util_fd_t
  3339. for cheat_fd.
  3340. * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Use grub_util_*
  3341. functions.
  3342. (grub_cryptodisk_cheat_insert): Likewise.
  3343. (grub_cryptodisk_close): Likewise.
  3344. 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
  3345. * include/grub/emu/misc.h: Remove leftover cygwin definitions.
  3346. Use windows path for DEFAULT_DIRECTORY.
  3347. 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
  3348. * include/grub/i386/setjmp.h: Remove useless #if MINGW where original
  3349. difference was likely just gcc version, not anything mingw-related.
  3350. 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
  3351. Use Winapi on both cygwin and mingw32 to share more code between both.
  3352. 2013-09-22 Andrey Borzenkov <arvidjaar@gmail.com>
  3353. * util/grub-install.in: Add --grub-editenv option.
  3354. * util/grub-install_header (grub_compress_file): Explicitly check for
  3355. plain file to avoid cp error.
  3356. 2013-09-22 Andrey Borzenkov <arvidjaar@gmail.com>
  3357. * docs/grub.texi (Device syntax): Document new LVM UUID based device
  3358. names; fix LVM driver name (lvm, not lv).
  3359. * util/grub-probe.c (probe_abstraction): Support lvmid/xxx device
  3360. names.
  3361. 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
  3362. * grub-core/kern/emu/hostdisk.c: Disentagle into a series of OS-specific
  3363. files rather than one file with loads of #if's.
  3364. * util/getroot.c: Likewise.
  3365. 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
  3366. * grub-core/lib/posix_wrap/sys/types.h: Use stddef on *BSD.
  3367. 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
  3368. * util/grub-mkpasswd-pbkdf2.c (grub_get_random): Add windows and
  3369. GNU/Hurd to the list of checked PRNG.
  3370. 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
  3371. * configure.ac: On FreeBSD use -melf_*_fbsd format.
  3372. 2013-09-21 Ales Nesrsta <starous@volny.cz>
  3373. * grub-core/bus/usb/ehci.c: Corrected EHCI QH handling (async./sync.)
  3374. 2013-09-20 Vladimir Serbinenko <phcoder@gmail.com>
  3375. * grub-core/disk/diskfilter.c: Handle non-md UUIDs.
  3376. * grub-core/disk/lvm.c: Add LVM UUIDs.
  3377. * util/getroot.c: Use LVM UUIDs whenever possible.
  3378. 2013-09-19 Andrey Borzenkov <arvidjaar@gmail.com>
  3379. * docs/grub.texi (Networking commands): Add documentation for
  3380. network related commands.
  3381. 2013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
  3382. * util/getroot.c (grub_util_open_dm): Check major rather than the name
  3383. to determine if device is handled by devmapper.
  3384. (convert_system_partition_to_system_disk): Likewise.
  3385. (get_dm_uuid): Don't check explicitly if device is mapped, it's
  3386. already done in grub_util_open_dm.
  3387. 2013-09-19 Leif Lindholm <leif.lindholm@linaro.org>
  3388. * kern/arm/cache.S: Correct access to ilinesz/dlinesz variables.
  3389. Clean up stack manipulation (sync_caches_armv*)
  3390. 2013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
  3391. * util/lvm.c: Remove since unused. Remove remaining references.
  3392. 2013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
  3393. Handle the case of partitioned LVM properly.
  3394. * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
  3395. Stop on meeting LVM, mpath or DMRAID.
  3396. (grub_hostdisk_os_dev_to_grub_drive): Canonicalize os device.
  3397. (read_device_map): Likewise.
  3398. * util/getroot.c (convert_system_partition_to_system_disk): Assume that
  3399. device is full disk rather than erroring out on LVM and similar cases.
  3400. 2013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
  3401. * util/grub-mkconfig_lib.in: Keep supplied pkgdatadir if any.
  3402. 2013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
  3403. * grub-core/kern/mm.c (grub_mm_init_region): Skip regions less than
  3404. 4K before the end.
  3405. Reported by: Leif Lindholm
  3406. 2013-09-18 Pawel Wojtalczyk <eyak@wp.pl>
  3407. 2013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
  3408. * grub-core/term/efi/console.c (grub_console_getkey): Accept VT100-style
  3409. codes.
  3410. 2013-09-18 Colin Watson <cjwatson@ubuntu.com>
  3411. * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name_iter):
  3412. Remove no-longer-true __attribute__ ((unused)) on disk parameter.
  3413. 2013-09-18 Douglas Ray <dougray@cpan.org>
  3414. * util/grub-mkpasswd-pbkdf2.c (grub_get_random): Declare OpenBSD PRNG
  3415. as secure.
  3416. 2013-09-18 Aleš Nesrsta <starous@volny.cz>
  3417. * docs/grub.texi: Fix broken link.
  3418. 2013-09-18 Melki Christian <Christian.melki@saabgroup.com>
  3419. * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Add condition
  3420. to break endless loop.
  3421. 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
  3422. * util/grub-fstest.c: Fix several printf formats.
  3423. * util/grub-mkimage.c: Likewise.
  3424. * util/grub-mkimagexx.c: Likewise.
  3425. * util/grub-script-check.c: Likewise.
  3426. 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
  3427. * grub-core/lib/xzembed/xz_dec_lzma2.c: Make -Wattributes not cause
  3428. error.
  3429. 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
  3430. * config.h.in [GRUB_BUILD]: Explicitly undefine ENABLE_NLS.
  3431. 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
  3432. * util/getroot.c (grub_find_device): Use cygwin_conv_path ratherthan
  3433. removed in current versions cygwin_conv_*.
  3434. 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
  3435. * configure.ac: Disable efiemu runtime on cygwin.
  3436. 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
  3437. * conf/Makefile.extra-dist: Add missing util/grub-gen-asciih.c,
  3438. util/grub-gen-widthspec.c and util/grub-pe2elf.c.
  3439. 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
  3440. * util/grub-mkpasswd-pbkdf2.c (grub_password_get): Remove extraneous
  3441. error message.
  3442. 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
  3443. * grub-core/lib/crypto.c (grub_password_get) [GRUB_UTIL]: Add
  3444. windows variant.
  3445. * util/grub-mkpasswd-pbkdf2.c: Add windows flavour for retrieving random
  3446. data.
  3447. 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
  3448. * configure.ac: Add -Wl,-melf_i386 and -Wl,-melf_x86_64 systematically
  3449. when on x86 and not cygwin.
  3450. * conf/Makefile.common: Remove unsystematic -Wl,-melf_i386 and
  3451. -Wl,-melf_x86_64.
  3452. 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
  3453. * configure.ac: Set CPP to build one when checkoing for freetype for
  3454. build.
  3455. 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
  3456. * util/grub-mkfont.c [!GRUB_BUILD]: Define my_argp_state.
  3457. [!GRUB_BUILD]: Remove has_argument.
  3458. 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
  3459. * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath) [_WIN32]:
  3460. Replace with a dummy.
  3461. 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
  3462. * configure.ac: Don't change host_os from mingw to cygwin.
  3463. 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
  3464. * configure.ac: Change target_os from windows to cygwin.
  3465. 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
  3466. Handle grub-pe2elf and grub-mkfont for cases when build != host.
  3467. * Makefile.am (build-grub-mkfont): Don't include gnulib.
  3468. (build-grub-gen-asciih): Likewise.
  3469. (build-grub-gen-widthspec): Likewise.
  3470. * Makefile.util.def (grub-pe2elf): Remove.
  3471. * config.h.in [GRUB_BUILD]: Use build rather than host constants.
  3472. * configure.ac: Separate tests for build.
  3473. Move ./build-grub-pe2elf to grub-core.
  3474. Fix typo.
  3475. * grub-core/Makefile.am (build-grub-pe2elf): New target.
  3476. * grub-core/kern/emu/misc.c (xasprintf): Don't compile if GRUB_BUILD is
  3477. defined.
  3478. * include/grub/types.h [GRUB_BUILD]: Use build rather than host
  3479. constants.
  3480. * util/grub-mkfont.c [GRUB_BUILD]: Simplify not to rely on argp.
  3481. * util/grub-pe2elf.c: Simplify not to rely on getopt.
  3482. * util/misc.c (program_name) [GRUB_BUILD]: Define to static string.
  3483. 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
  3484. * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size): Adapt for
  3485. mingw32 as well based on grub_util_get_disk_size.
  3486. * util/misc.c (grub_util_get_disk_size): Removed. all users switched to
  3487. grub_util_get_fd_size.
  3488. (sync): Removed.
  3489. (fsync): Moved to ...
  3490. * grub-core/kern/emu/misc.c (fsync): ... here.
  3491. 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
  3492. * include/grub/mm.h (grub_extend_alloc): Remove.
  3493. * grub-core/loader/i386/pc/plan9.c: Use own version of
  3494. grub_extend_alloc with appropriate types.
  3495. 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
  3496. * conf/Makefile.common (CFLAGS_GCRY): Add -Wno-redundant-decls.
  3497. 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
  3498. * util/getroot.c: Include sys/wait.h only when we need waitpid.
  3499. 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
  3500. Fix dependencies on cygwin.
  3501. * gentpl.py: Support variable dependencies. Add $TARGET_OBJ2ELF to
  3502. dependencies when used and defined.
  3503. * grub-core/Makefile.core.def (regexp): Add dependency on libgnulib.a.
  3504. 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
  3505. * include/grub/zfs/spa.h (zio_cksum): Add explicit members for mac.
  3506. * grub-core/fs/zfs/zfs.c (zio_read): Don't use casts to retrieve mac.
  3507. 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
  3508. * grub-core/kern/emu/mm.c (grub_memalign): Don't define if there is no
  3509. implementation available to cause compile-time rather than runtime
  3510. error.
  3511. 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
  3512. * util/grub-fstest.c: Don't check for symlinks on windows.
  3513. 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
  3514. * INSTALL: Mention unavailability of man pages when cross-compiling.
  3515. 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
  3516. * include/grub/crypto.h: Don't declare gcry_log_bug, gcry_log_printf
  3517. and gcry_log_bug.
  3518. * grub-core/lib/libgcrypt_wrap/mem.c: Include g10lib.h
  3519. 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
  3520. * INSTALL: Document cross-compilation.
  3521. * acinclude.m4: Determine whether nm support -P and --defined-only.
  3522. * configure.ac: Add TARGET_ to all variables pertaining to target
  3523. that don't have it yet.
  3524. * gentpl.py: Likewise.
  3525. * grub-core/Makefile.am: Likewise.
  3526. * grub-core/genmod.sh.in: Likewise.
  3527. * grub-core/gensyminfo.sh.in: Handle OpenBSD and other non-GNU nm
  3528. as well.
  3529. 2013-08-21 Ilya Bakulin <Ilya_Bakulin@genua.de>
  3530. * configure.ac: Remove -Wempty-body. It's not essential and needs
  3531. recent gcc.
  3532. 2013-08-21 Ilya Bakulin <Ilya_Bakulin@genua.de>
  3533. * grub-core/kern/emu/hostdisk.c: Add conditionals for OpenBSD.
  3534. * util/getroot.c: Likewise.
  3535. 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
  3536. * grub-core/disk/ahci.c: Add needed explicit cast.
  3537. * grub-core/lib/backtrace.c: Likewise.
  3538. * grub-core/net/ip.c: Likewise.
  3539. * grub-core/net/tcp.c: Likewise.
  3540. * grub-core/net/udp.c: Likewise.
  3541. 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
  3542. * grub-core/lib/posix_wrap/wchar.h: Fix typo.
  3543. 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
  3544. * util/import_gcry.py: Add final newline in visibility.h.
  3545. 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
  3546. * conf/Makefile.common: Fix typo.
  3547. 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
  3548. * Makefile.util.def (grub-mkfont): Add missing libgnu.a.
  3549. 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
  3550. * Makefile.am (widthspec.h): Fix typo.
  3551. * util/grub-gen-widthspec.c: Likewise.
  3552. 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
  3553. Move ascii.h and widthspec.h generation to a separate build-time-only
  3554. tool.
  3555. 2013-08-16 Grégoire Sutre <gregoire.sutre@gmail.com>
  3556. * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
  3557. Always fill bootdisk info and improve check for NetBSD disklabel.
  3558. 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
  3559. * conf/Makefile.extra-dist: Add util/bin2h.c.
  3560. Reported by: floppym.
  3561. 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
  3562. * configure.ac: Make unifont mandatory for powerpc-ieee1275.
  3563. 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
  3564. * configure.ac: Disable unifont and starfield if no freetype was found.
  3565. 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
  3566. * grub-core/lib/posix_wrap/wchar.h: Fix wchar_t and mbstate_t conflict
  3567. on NetBSD and OpenBSD.
  3568. 2013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
  3569. * grub-core/gfxmenu/gui_list.c: Baseline misplacement fixed.
  3570. 2013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
  3571. * grub-core/gfxmenu/gui_list.c: The number of color mappings is
  3572. reduced. Inheritant options are processed during the theme loading.
  3573. 2013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
  3574. * grub-core/gfxmenu/gui_list.c: Minimal width fixed.
  3575. 2013-08-14 Avik Sil <aviksil@in.ibm.com>
  3576. * grub-core/net/tftp.c: Send tftp ack packet before closing the socket.
  3577. 2013-08-14 Avik Sil <aviksil@in.ibm.com>
  3578. * grub-core/net/drivers/ieee1275/ofnet.c: Get proper mac address when
  3579. using qemu.
  3580. 2013-08-14 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
  3581. * .bzrignore: Add bootinfo.txt, grub.chrp, gnulib/float.h, and
  3582. remove-potcdate.sed.
  3583. 2013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
  3584. * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Remove
  3585. unused attribute from pull argument.
  3586. 2013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
  3587. * util/getroot.c (grub_util_is_imsm): Fix descriptor and
  3588. memory leak.
  3589. 2013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
  3590. * util/getroot.c (pull_lvm_by_command): add --separator option
  3591. to vgs call to disable padding of output to 10 characters.
  3592. 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
  3593. * grub-core/kern/emu/misc.c (grub_device_mapper_supported): Move from
  3594. here ...
  3595. * grub-core/kern/emu/hostdisk.c (grub_device_mapper_supported): ... to
  3596. here.
  3597. 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
  3598. * include/grub/i386/pc/biosdisk.h (grub_biosdisk_drp): Fix device_path
  3599. length.
  3600. 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
  3601. Fix handling of build-time grub-bin2h and grub-mkfont when doing
  3602. full Canadian cross. Tested with build=x86_64, host=arm,
  3603. target=ppc-ieee1275.
  3604. 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
  3605. * configure.ac: Error if no $BUILD_CC could be found.
  3606. Reported by: DevHC.
  3607. 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
  3608. * grub-core/kern/i386/coreboot/init.c: Fix compilation on
  3609. i386-multiboot.
  3610. 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
  3611. * grub-core/kern/vga_init.c: Fix compilation on qemu-mips.
  3612. * grub-core/kern/mips/qemu_mips/init.c: Likewise.
  3613. 2013-08-13 Colin Watson <cjwatson@ubuntu.com>
  3614. * util/getroot.c (grub_util_biosdisk_get_grub_dev): Zero out
  3615. grub_errno in the case where we handle GRUB_ERR_UNKNOWN_DEVICE by
  3616. falling back to the partition device, otherwise a later call to this
  3617. function may fail spuriously.
  3618. Reported by Axel Beckert. Fixes Debian bug #708614.
  3619. 2013-08-12 Grégoire Sutre <gregoire.sutre@gmail.com>
  3620. * autogen.sh: Replace find -not by the POSIX-compliant find !.
  3621. 2013-08-12 Grégoire Sutre <gregoire.sutre@gmail.com>
  3622. Prevent shadowing of stdlib's devname(3) on BSD.
  3623. * grub-core/disk/cryptodisk.c (grub_cmd_cryptomount): Rename devname
  3624. and devlast to diskname and disklast, respectively.
  3625. 2013-08-11 Colin Watson <cjwatson@ubuntu.com>
  3626. * util/grub-mkconfig.in: Fix detection of Emacs autosave files.
  3627. 2013-08-08 Vladimir Testov <vladimir.testov@rosalab.ru>
  3628. * docs/grub.texi: Introduce terminal window position options:
  3629. terminal-left: terminal window's left position
  3630. terminal-top: terminal window's top position
  3631. terminal-width: terminal window's width
  3632. terminal-height: terminal window's height
  3633. terminal-border: terminal window's border width
  3634. * grub-core/gfxmenu/theme-loader.c: Likewise.
  3635. * include/grub/gfxmenu_view.h: Likewise.
  3636. * po/exlude.pot: Likewise.
  3637. * grub-core/gfxmenu/view.c: Likewise.
  3638. Also updated minimal window size.
  3639. Also terminal_sanity_check function has been introduced.
  3640. * grub-core/tests/checksums.h: Update (terminal window height
  3641. is adjusted now for low resolution screen)
  3642. 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
  3643. * grub-core/tests/checksums.h: Update (1-pixel difference in marker
  3644. position).
  3645. 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
  3646. * po/exclude.pot: Add few recent exceptions.
  3647. 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
  3648. * tests/grub_func_test.in: Add unicode.pf2.
  3649. 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
  3650. * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Start with
  3651. standard rather than noral color, in line with other terminals.
  3652. 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
  3653. * grub-core/partmap/dfly.c: Simplify dprintfs for easier gettext
  3654. analysis.
  3655. 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
  3656. * grub-core/loader/arm/linux.c: Change printf to dprintf.
  3657. 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
  3658. * grub-core/fs/zfs/zfs.c (check_feature): Cleanup and remove
  3659. inappropriate printf.
  3660. 2013-07-25 Andrey Borzenkov <arvidjaar@gmail.com>
  3661. * .bzrignore: Remove grub-core/lib/dtc-grub,
  3662. grub-core/Makefile.libfdt.def
  3663. * conf/Makefile.extra-dist: Remove grub-core/Makefile.libfdt.def.
  3664. 2013-07-25 Vladimir Serbinenko <phcoder@gmail.com>
  3665. * include/grub/video.h (grub_video_register): Keep double-linked as
  3666. well as single-linked invariants.
  3667. Reported by: qwertial.
  3668. 2013-07-25 Vladimir Serbinenko <phcoder@gmail.com>
  3669. * grub-core/commands/nativedisk.c (get_uuid): Handle
  3670. GRUB_DISK_DEVICE_UBOOTDISK_ID.
  3671. 2013-07-25 Vladimir Testov <vladimir.testov@rosalab.ru>
  3672. * grub-core/gfxmenu/widget-box.c: Fixed draw function. Now it takes
  3673. maximum of NW, N, NE heights instead of N's height and maximum of
  3674. NW, W, SW widths instead of W's width. (So the box will be always
  3675. correctly drawn)
  3676. 2013-07-20 Grégoire Sutre <gregoire.sutre@gmail.com>
  3677. * grub-core/partmap/bsdlabel.c (netopenbsdlabel_partition_map_iterate):
  3678. Fix misuse of variable count.
  3679. 2013-07-18 Leif Lindholm <leif.lindholm@arm.com>
  3680. 2013-07-18 Francesco Lavra <francescolavra.fl@gmail.com>
  3681. 2013-07-18 Vladimir Serbinenko <phcoder@gmail.com>
  3682. New ports to arm-uboot and arm-efi.
  3683. Mostly by Leif Lindholm with some additions from
  3684. Francesco Lavra and cleanup by Vladimir Serbinenko.
  3685. 2013-07-16 Vladimir Serbinenko <phcoder@gmail.com>
  3686. * grub-core/loader/multiboot_elfxx.c: Check eip after v2p translation
  3687. and not before.
  3688. Reported by: Leon Drugi.
  3689. 2013-07-16 Vladimir Serbinenko <phcoder@gmail.com>
  3690. * grub-core/kern/powerpc/ieee1275/startup.S: Handle unaligned bss.
  3691. Reported by: Paulo Flabiano Smorigo.
  3692. 2013-07-14 Vladimir Testov <vladimir.testov@rosalab.ru>
  3693. * grub-core/gfxmenu/gui_list.c: USe viewport when drawing strings.
  3694. 2013-07-14 Vladimir Testov <vladimir.testov@rosalab.ru>
  3695. * grub-core/gfxmenu/gui_list.c: Fix height calculation.
  3696. 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
  3697. * grub-core/fs/zfs/zfs.c: Stylistic fixes.
  3698. 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
  3699. * grub-core/fs/zfs/zfs.c: Run emacs indent on file.
  3700. 2013-07-14 Andrey Borzenkov <arvidjaar@gmail.com>
  3701. * grub-core/net/bootp.c: Export net_* variables.
  3702. * grub-core/net/net.c: Likewise.
  3703. 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
  3704. * grub-core/fs/zfs/zfs.c: Remove brackets around return value.
  3705. 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
  3706. * grub-core/fs/zfs/zfs_lz4.c: Add missing packed attribute.
  3707. 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
  3708. * grub-core/fs/zfs/zfs.c (nvlist_next_nvpair): Fix improper cast.
  3709. 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
  3710. * grub-core/fs/zfs/zfs_lz4.c: Remove restrict keyword.
  3711. 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
  3712. * grub-core/fs/zfs/zfs.c (nvlist_next_nvpair): Error is encode_size
  3713. <= 0.
  3714. 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
  3715. * grub-core/fs/zfs/zfs.c: Split nvpair iterators into separate
  3716. functions.
  3717. 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
  3718. * grub-core/fs/zfs/zfs_lz4.c: New file.
  3719. * grub-core/fs/zfs/zfs.c: Tie up lz4 decompression.
  3720. 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
  3721. * grub-core/fs/zfs/zfs.c: Check for feature compatibility.
  3722. 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
  3723. * grub-core/fs/zfs/zfs.c (uberblock_verify): Accept version 5000.
  3724. (check_pool_label): Likewise.
  3725. * include/grub/zfs/zfs.h: Rewrite SPA_VERSION_* macros.
  3726. 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
  3727. * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Fix RAIDZ reporting.
  3728. 2013-07-13 Andrey Borzenkov <arvidjaar@gmail.com>
  3729. * docs/grub.texi (Commands): Document postition parameters
  3730. for menuentry command.
  3731. 2013-07-13 Andrey Borzenkov <arvidjaar@gmail.com>
  3732. * util/grub-mknetdir.in: Remove stray line from help output.
  3733. 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
  3734. Remove early sm712 init as there is no reason for it (the "watchdog"
  3735. effect was due to wrong GPIO map).
  3736. 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
  3737. * grub-core/commands/pcidump.c: Remove static variables.
  3738. 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
  3739. * grub-core/commands/sleep.c: Refresh screen before sleeping.
  3740. 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
  3741. * configure.ac: Move delimiter after the infos.
  3742. 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
  3743. * grub-core/bus/usb/usbhub.c: Fix recheck logic.
  3744. 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
  3745. * util/grub-mkfont.c (write_font_ascii_bitmap): Fix handling of glyphs
  3746. not filling whole 8x16 space.
  3747. 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
  3748. * grub-core/normal/charset.c (bidi_line_wrap): Fix spurios warning.
  3749. 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
  3750. * configure.ac: Indicate which liblzma is used if any.
  3751. 2013-06-21 Paul Wise <pabs3@bonedaddy.net>
  3752. 2013-06-21 Craig Sanders <savannah@taz.net.au>
  3753. * util/grub-reboot.in: Document submenu usage.
  3754. 2013-06-25 Colin Watson <cjwatson@ubuntu.com>
  3755. * .bzrignore: Update with a number of new test-related files.
  3756. 2013-06-25 Colin Watson <cjwatson@ubuntu.com>
  3757. * util/grub-script-check.c: Fail on scripts containing no
  3758. commands, to guard against corrupted grub-mkconfig setups that
  3759. produce no useful output.
  3760. * tests/grub_script_no_commands.in: New test.
  3761. * Makefile.util.def (grub_script_no_commands): Add.
  3762. Reported by Hans Putter. Fixes Debian bug #713886.
  3763. 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
  3764. * grub-core/disk/diskfilter.c: Forgot to remove comment
  3765. from previous commit.
  3766. 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
  3767. * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
  3768. grub_term_normal_color, do not hardcode GRUB_TERM_DEFAULT_NORMAL_COLOR.
  3769. 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
  3770. * conf/Makefile.extra-dist: Add grub-core/fs/cpio_common.c.
  3771. 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
  3772. * grub-core/disk/diskfilter.c (scan_devices): Iteratively
  3773. rescan diskfilter devices until nothing new is found.
  3774. 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
  3775. Fix casts when compiling coreboot-specific code for 64-bit EFI.
  3776. 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
  3777. Don't try to detect cbfs on *-emu.
  3778. 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
  3779. * grub-core/term/gfxterm.c: USe right background color when scrolling.
  3780. 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
  3781. Add support for processed coreboot payload chainloading.
  3782. 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
  3783. Enable coreboot information commands even when not loaded as
  3784. coreboot payload (e.g. when loaded from SeaBIOS-as-payload).
  3785. 2013-06-15 Vladimir Serbinenko <phcoder@gmail.com>
  3786. Support for cbfs. Also factor out the part which is common
  3787. for all archives to a separate module. This splits tar from cpio
  3788. as they are very different but keeps cpio, cpio_be, odc and newc
  3789. together since they're very similar.
  3790. 2013-06-15 David Michael <fedora.dm0@gmail.com>
  3791. * configure.ac (FREETYPE): Change AC_CHECK_PROGS to AC_CHECK_TOOLS.
  3792. (freetype_cflags,freetype_libs): Change freetype-config to $FREETYPE.
  3793. 2013-06-15 Vladimir Serbinenko <phcoder@gmail.com>
  3794. * tests/grub_script_eval.in: Really add the eval test.
  3795. 2013-06-14 Vladimir Serbinenko <phcoder@gmail.com>
  3796. Move flavour-specific parts out of common cpio.c file and
  3797. rename remaining to cpio_common.c
  3798. 2013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
  3799. * grub-core/script/execute.c (grub_script_execute_sourcecode): Split
  3800. off new function grub_script_execute_new_scope. Change callers to use
  3801. either of them as appropriate.
  3802. * grub-core/commands/eval.c: New command eval.
  3803. * docs/grub.texi (Commands): Document it.
  3804. 2013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
  3805. * grub-core/kern/corecmd.c (grub_core_cmd_set): Use grub_env_get
  3806. to fetch values when listing.
  3807. 2013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
  3808. Fix make dist on non-pc.
  3809. 2013-06-07 Francesco Lavra <francescolavra.fl@gmail.com>
  3810. * grub-core/kern/corecmd.c (grub_core_cmd_ls): Fix handling of paths
  3811. without a device name.
  3812. 2013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
  3813. Remove enable_executable_check as it's not needed anymore.
  3814. Reported by: dougray.
  3815. 2013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
  3816. * grub-core/disk/diskfilter.c (insert_array): Fix order to discover
  3817. ambigouos RAID before discovering RAIDs on top of it.
  3818. Reported by: bodom.
  3819. 2013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
  3820. Fix typo (failback vs fallback).
  3821. 2013-05-31 Andrey Borzenkov <arvidjaar@gmail.com>
  3822. * util/grub.d/30_os-prober.in: Add support for probing EFI
  3823. System Partition (as of os-prober 1.58).
  3824. 2013-05-31 Vladimir Serbinenko <phcoder@gmail.com>
  3825. * configure.ac: Add yet another path to unifont. For parabola.
  3826. 2013-05-30 Josh Triplett <josh@joshtriplett.org>
  3827. * grub-core/normal/cmdline.c (grub_cmdline_get): Fix Ctrl-u
  3828. handling to copy the killed characters to the kill buffer as
  3829. UCS4 stored as grub_uint32_t rather than as 8-bit characters
  3830. stored as char. Eliminates UCS4 truncation and corruption
  3831. observed when killing characters with Ctrl-u and yanking them
  3832. back with Ctrl-y.
  3833. 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
  3834. Detach optional parts of gfxterm and integrate in with coreboot init.
  3835. 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
  3836. Move blit and fill dispatcher to appropriate files to decrease export
  3837. and relocation overhead.
  3838. 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
  3839. * grub-core/font/font.c, include/grub/font.h: Inline simple font
  3840. functions.
  3841. 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
  3842. * grub-core/Makefile.am: Fix compilation problem with some
  3843. automake versions.
  3844. 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
  3845. * configure.ac: Add Ubuntu path to unifont and report unifont path used.
  3846. 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
  3847. * Makefile.am, conf/Makefile.common: Fix compilation problem with some
  3848. automake versions.
  3849. 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
  3850. * grub-core/commands/acpihalt.c: Fix handling of DSDT in presence of
  3851. SSDT.
  3852. 2013-05-15 Radosław Szymczyszyn <lavrin@gmail.com>
  3853. * grub-core/partmap/dfly.c: New partition map.
  3854. 2013-05-15 Vladimir Serbinenko <phcoder@gmail.com>
  3855. * grub-core/kern/corecmd.c (grub_core_cmd_ls): Fix empty path
  3856. checking.
  3857. Reported by: Francesco Lavra.
  3858. 2013-05-14 Andrey Borzenkov <arvidjaar@gmail.com>
  3859. * gentpl.py: Replace EXTRA_DIST with dist_noinst_DATA or
  3860. dist_<directory>_DATA. EXTRA_DIST is ignored by automake inside
  3861. false conditions.
  3862. * conf/Makefile.common: define dist_grubconf_DATA
  3863. 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
  3864. Progressively skip menu elements on small terminals rather
  3865. than crashing.
  3866. 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
  3867. * grub-core/normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
  3868. to avoid losing last column.
  3869. 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
  3870. * po/exclude.pot: Add missing string "%C".
  3871. 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
  3872. * tests/util/grub-shell.in: Remove the temporary directory on grub-emu
  3873. after the test.
  3874. 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
  3875. * util/grub-install.in: Gettextize "Not found" message.
  3876. 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
  3877. Fix distfiles list.
  3878. Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
  3879. 2013-05-11 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
  3880. * grub-core/net/bootp.c (grub_cmd_bootp): Check if there is any card
  3881. present.
  3882. * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_NET_NO_CARD.
  3883. 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
  3884. * grub-core/tests/setjmp_test.c: Ignore missing noreturn.
  3885. 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
  3886. * grub-core/fs/hfspluscomp.c (grub_hfsplus_compress_attr): Add packed
  3887. attribute since structure is not necessarily aligned.
  3888. 2013-05-11 Andrey Borzenkov <arvidjaar@gmail.com>
  3889. * docs/grub.texi (Device syntax): Clarify description of network
  3890. drives.
  3891. 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
  3892. Redirect xasprintf to grub_xvasprintf rather than having #ifdef's
  3893. for vasprintf presence.
  3894. 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
  3895. * util/grub-install.in: Handle efibootmgr presence check.
  3896. Reported by: Leif Lindholm.
  3897. 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
  3898. * grub-core/commands/testspeed.c: Reuse formatting string to decrease
  3899. new strings to translate.
  3900. 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
  3901. * util/grub-mkrescue.in: Replace `STR' with `STRING' to avoid adding
  3902. yet another string (pun intended) to translate.
  3903. 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
  3904. * po/POTFILES-shell.in: Autogenerate it.
  3905. 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
  3906. * grub-core/net/net.c (grub_net_open_real): Autoload network modules.
  3907. 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
  3908. * grub-core/term/terminfo.c: Rename ANSI_C0 to ANSI_CSI to avoid
  3909. misnomer.
  3910. 2013-05-08 Andrey Borzenkov <arvidjaar@gmail.com>
  3911. * docs/grub.texi (Network): Add description of net_default_interface,
  3912. net_default_ip and net_default_mac. Rewrite variables description
  3913. to emphasize that they are per-interface.
  3914. 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
  3915. New test: cmdline and cat.
  3916. 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
  3917. * grub-core/commands/cat.c: Show UTF-8 characters.
  3918. 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
  3919. * conf/Makefile.common: Poison float and double on non-emu.
  3920. 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
  3921. * configure.ac: Don't disable extended registers on emu.
  3922. 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
  3923. * configure.ac: Don't use extended registers on x86_64.
  3924. Reported by: Peter Jones.
  3925. 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
  3926. * grub-core/term/efi/console.c: Fix compile error.
  3927. 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
  3928. Compressed HFS+ support.
  3929. 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
  3930. * grub-core/commands/videoinfo.c: Use "paletted" rather than "packed
  3931. pixel".
  3932. 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
  3933. Menu color test.
  3934. 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
  3935. * grub-core/tests/setjmp_test.c: New test.
  3936. 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
  3937. New variables 'net_default_*' to determine MAC/IP of default interface.
  3938. 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
  3939. * tests/gettext_strings_test.in: A test to check for strings not
  3940. marked for translation.
  3941. 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
  3942. * autogen.sh: Exclude unused libgcrypt files from translation.
  3943. 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
  3944. Simplify few strings.
  3945. 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
  3946. Mark few forgotten strings for translation.
  3947. 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
  3948. * grub-core/loader/linux.c: Use grub_dprintf for debug statements
  3949. rather than printf.
  3950. 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
  3951. * grub-core/video/readers/jpeg.c: Use grub_dprintf for debug statements
  3952. rather than printf.
  3953. * grub-core/video/readers/tga.c: Likewise.
  3954. 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
  3955. * tests/priority_queue_unit_test.cc: New test.
  3956. 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
  3957. * grub-core/font/font.c: Use grub_dprintf for debug statements rather
  3958. than printf.
  3959. 2013-05-06 Andrey Borzenkov <arvidjaar@gmail.com>
  3960. Reimplement grub-reboot to not depend on saved_entry. Use next_entry
  3961. variable for one time boot menu entry.
  3962. 2013-05-05 Bean <bean123ch@gmail.com>
  3963. * grub-core/commands/testspeed.c: New command testspeed.
  3964. 2013-05-05 Vladimir Serbinenko <phcoder@gmail.com>
  3965. Factor-out human-size printing.
  3966. 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
  3967. Agglomerate more mallocs to speed-up gfxterm.
  3968. 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
  3969. Speed-up gfxterm by slightly agglomerating mallocs.
  3970. 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
  3971. More video checks.
  3972. 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
  3973. Speed-up gfxterm by saving intermediate results in index+alpha
  3974. format.
  3975. 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
  3976. * grub-core/tests/lib/functional_test.c: Don't stop on first failed
  3977. test.
  3978. 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
  3979. * grub-core/normal/menu_text.c (menu_clear_timeout): Clear second
  3980. line of timeout as it may contain the rest of long line.
  3981. 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
  3982. * grub-core/normal/main.c: Fix freed memory dereference.
  3983. 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
  3984. Fix several memory leaks.
  3985. 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
  3986. * grub-core/normal/menu.c (run_menu): Fix timeout reference point.
  3987. 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
  3988. * grub-core/gettext/gettext.c: Try $lang.gmo as well.
  3989. 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
  3990. Fix test -a and -o precedence.
  3991. Reported by: adrian15.
  3992. 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
  3993. * grub-core/font/font.c (grub_font_construct_glyph): Fix memory leak.
  3994. 2013-05-03 Andrey Borzenkov <arvidjaar@gmail.com>
  3995. Rename grub-core/tests/checksums.c into grub-core/tests/checksums.h
  3996. and add it as source to functional_test module.
  3997. 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
  3998. * grub-core/tests/video_checksum.c: Don't set GENERATE_MODE.
  3999. 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
  4000. New series of tests for gfxterm and gfxmenu.
  4001. 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
  4002. * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Allow specifying
  4003. the theme path relative to $prefix/themes.
  4004. 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
  4005. * grub-core/video/fb/fbblit.c (grub_video_fbblit_blend_BGR888_RGBA8888):
  4006. Fix order bug.
  4007. (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
  4008. 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
  4009. * include/grub/gui.h (grub_gfxmenu_timeout_unregister): Free cb
  4010. descriptor.
  4011. 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
  4012. * grub-core/gfxmenu/view.c (grub_gfxmenu_view_new): Clear
  4013. grub_gfxmenu_timeout_notifications.
  4014. (grub_gfxmenu_view_destroy): Likewise.
  4015. 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
  4016. * grub-core/normal/term.c (print_ucs4_real): Fix startwidth in dry run.
  4017. 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
  4018. Several fixes to ieee1275 and big-endian video.
  4019. 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
  4020. Add missing exports on mips.
  4021. 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
  4022. * grub-core/tests/videotest_checksum.c (videotest_checksum): Error out
  4023. if no unifont is found.
  4024. Restore original keyboard.
  4025. 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
  4026. * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
  4027. GRUB_VIDEO_ADAPTER_CAPTURE: to handled drived ids.
  4028. 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
  4029. First automated video test (running videotest and comparing results)
  4030. 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
  4031. * grub-core/commands/videotest.c: Reduce flickering and draw 6 squares
  4032. instead of 2 to have full RGB/CMY test pattern.
  4033. 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
  4034. Add few more tests.
  4035. 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
  4036. * include/grub/arc/arc.h: Account for missing "other" peripheral on
  4037. ARCS. All users updated.
  4038. 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
  4039. * grub-core/kern/mips/loongson/init.c: Support halt for loongson 2E.
  4040. 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
  4041. * grub-core/partmap/amiga.c: Fix size of checksummed block.
  4042. 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
  4043. * configure.ac: Use -mcmodel=large on x86_64-emu as well.
  4044. Reported by: qwertial.
  4045. 2013-04-29 Vladimir Testov <vladimir.testov@rosalab.ru>
  4046. * grub-core/gfxmenu/circular_progress.c: Set start_angle in degrees
  4047. with syntax "XXX deg"/"XXX °".
  4048. 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
  4049. Make PCI init in i386-qemu port more robust.
  4050. 2013-04-29 Vladimir Testov <vladimir.testov@rosalab.ru>
  4051. * grub-core/gfxmenu/gui_list.c: Refresh first_shown_entry value when
  4052. cached view is reused.
  4053. * grub-core/gfxmenu/view.c: Call the refresh procedure for all
  4054. open boot menus.
  4055. 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
  4056. Unify more code in grub-install_header.
  4057. 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
  4058. Add few new tests.
  4059. 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
  4060. Enforce disabling of firmware disk drivers when native drivers kick in.
  4061. 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
  4062. * grub-core/commands/nativedisk.c: Customize the list of modules on
  4063. platform. Don't try to search for disks already using native drivers.
  4064. 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
  4065. * grub-core/bus/usb/uhci.c: Fix DMA handling and enable on all PCI
  4066. platforms.
  4067. 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
  4068. * grub-core/script/execute.c (grub_script_arglist_to_argv): Fix
  4069. handling of variables containing backslash.
  4070. 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
  4071. * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE):Fix a NULL pointer
  4072. dereference.
  4073. Reported by: qwertial.
  4074. 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
  4075. * grub-core/kern/mips/arc/init.c: Fix prefix detection.
  4076. 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
  4077. * grub-core/lib/arg.c (grub_arg_show_help): Fix a NULL pointer
  4078. dereference.
  4079. Reported by: qwertial.
  4080. 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
  4081. * docs/grub.texi: Add a comment about usefullness of nativedisk.
  4082. 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
  4083. * grub-core/commands/nativedisk.c: Ignore unknown filesystem error.
  4084. 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
  4085. New command `nativedisk'.
  4086. 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
  4087. * grub-core/io/lzopio.c: Use GRUB_PROPERLY_ALIGNED_ARRAY.
  4088. * grub-core/loader/i386/bsd.c: Likewise.
  4089. 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
  4090. * grub-core/disk/ahci.c: Fix compilation for amd64 (format warnings).
  4091. 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
  4092. * include/grub/efi/api.h (GRUB_EFI_DEVICE_PATH_LENGTH): Use
  4093. grub_get_unaligned16 rather than shifts.
  4094. 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
  4095. * grub-core/kern/file.c: Use const char * rather than casting to
  4096. non-const.
  4097. 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
  4098. * grub-core/commands/probe.c: Add missing grub_device_close.
  4099. 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
  4100. * INSTALL: Document linguas.sh.
  4101. 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
  4102. Remove POTFILES.in and regenerate it in autogen.sh.
  4103. 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
  4104. Move --directory/--override-directorry to grub-install_header and unify.
  4105. 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
  4106. * grub-core/term/morse.c: Macroify dih and dah.
  4107. 2013-04-27 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
  4108. * include/grub/macho.h: Set GRUB_MACHO_FAT_EFI_MAGIC as unsigned.
  4109. 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
  4110. * grub-core/term/ns8250.c: Systematically probe ports by writing
  4111. to SR before using them.
  4112. 2013-04-27 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
  4113. * util/ieee1275/ofpath.c (of_path_of_scsi): Fix path output for sas
  4114. disks.
  4115. (check_sas): Get sas_adress info.
  4116. 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
  4117. * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix handling of empty
  4118. ports.
  4119. 2013-04-27 Leon Drugi <eyak>
  4120. * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Fix cast in
  4121. BSS clearing.
  4122. 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
  4123. Core compression test.
  4124. 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
  4125. Implement grub_machine_get_bootlocation for ARC.
  4126. 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
  4127. Improve AHCI detection and command issuing.
  4128. 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
  4129. Fix pseries test.
  4130. 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
  4131. Make 'make check' work on emu.
  4132. 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
  4133. Replace libcurses with our own vt100 handling for the ease of testing
  4134. and decreasing prerequisites.
  4135. 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
  4136. * grub-core/Makefile.core.def: Fix grub-emu and grub-emu-lite sources.
  4137. 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
  4138. * util/getroot.c (exec_pipe): Put proper #if's so that its users don't
  4139. compile when not needed.
  4140. 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
  4141. * tests/pseries_test.in: New test.
  4142. 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
  4143. Add test to check that different boot mediums work.
  4144. 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
  4145. * util/grub-mkrescue.in: Rename i386-ieee1275 core image due to
  4146. ofw limited ISO support.
  4147. 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
  4148. * configure.ac: Fix loongson conditional.
  4149. 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
  4150. Enable mipsel-arc.
  4151. 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
  4152. Add serial on ARC platform.
  4153. 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
  4154. * grub-core/boot/powerpc/bootinfo.txt.in: Missing update from previous
  4155. commit.
  4156. 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
  4157. * tests/partmap_test.in: Add missing double semicolon.
  4158. 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
  4159. * util/grub-mkrescue.in: Fix loongson filename.
  4160. 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
  4161. * util/grub-mkrescue.in: Move all files that don't have a location
  4162. set in stone under /boot/grub. Use ISO hard links rather than copies
  4163. to save some space.
  4164. 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
  4165. * grub-core/term/ieee1275/console.c (grub_console_dimensions): Ignore
  4166. bogus SLOF values.
  4167. 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
  4168. Make check work on mips-arc.
  4169. 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
  4170. * util/grub-mkrescue.in: Alias sashARCS as sash.
  4171. 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
  4172. * grub-core/term/arc/console.c: Assume that console is 80x24 vt100 if
  4173. it's serial.
  4174. 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
  4175. * util/grub-install.in: Fix target fo qemu_mips.
  4176. Fix extension on EFI.
  4177. 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
  4178. * grub-core/normal/menu_text.c (print_entry): Put an asterisk
  4179. in front of chosen entry to mark it even if highlighting is lost.
  4180. 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
  4181. * grub-core/loader/i386/linux.c (grub_linux_boot): Default to
  4182. gfxpayload=keep if cbfb is active.
  4183. 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
  4184. * grub-core/disk/ata.c (grub_ata_real_open): Use grub_error properly.
  4185. 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
  4186. Add missing video ids to coreboot and ieee1275 video.
  4187. 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
  4188. * util/grub-mkrescue.in: Add mips-arc support.
  4189. 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
  4190. * grub-core/kern/dl.c (grub_dl_resolve_symbols): Handle malloc failure.
  4191. 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
  4192. Move mips-arc link address. Previous link address was chosen
  4193. in belief that RAM on SGI platforms grows down while in fact it
  4194. grows up from an unusual base.
  4195. 2013-04-21 Vladimir Serbinenko <phcoder@gmail.com>
  4196. * grub-core/disk/arc/arcdisk.c (grub_arcdisk_iterate_iter):
  4197. Fix a type which prevented CD-ROM and floppy boot.
  4198. 2013-04-21 Vladimir Serbinenko <phcoder@gmail.com>
  4199. Support coreboot framebuffer.
  4200. * grub-core/video/i386/coreboot/cbfb.c: New file.
  4201. 2013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
  4202. * grub-core/kern/mm.c (grub_mm_init_region): Fix condition for
  4203. detecting too small regions.
  4204. 2013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
  4205. * grub-core/Makefile.core.def (legacycfg): Enable on EFI.
  4206. 2013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
  4207. * grub-core/lib/efi/relocator.c (grub_relocator_firmware_alloc_region):
  4208. Remove dprintf.
  4209. * grub-core/lib/relocator.c (malloc_in_range): Likewise.
  4210. 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
  4211. * grub-core/kern/ieee1275/init.c (grub_claim_heap): Improve handling
  4212. of GRUB_IEEE1275_FLAG_FORCE_CLAIM.
  4213. * grub-core/loader/powerpc/ieee1275/linux.c
  4214. (grub_linux_claimmap_iterate): Handle GRUB_IEEE1275_FLAG_FORCE_CLAIM.
  4215. 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
  4216. * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options):
  4217. Look for /boot-rom as well as /rom/boot-rom.
  4218. 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
  4219. * grub-core/commands/videotest.c (grub_cmd_videotest): Fix error
  4220. handling when creating text_layer failed.
  4221. * grub-core/video/video.c (grub_video_create_render_target):
  4222. Set result to 0 on error.
  4223. (grub_video_delete_render_target): Do not dereference NULL.
  4224. 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
  4225. * grub-core/kern/elfXX.c (grub_elfXX_load): Handle
  4226. GRUB_ELF_LOAD_FLAGS_30BITS and GRUB_ELF_LOAD_FLAGS_62BITS.
  4227. * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32),
  4228. (grub_linux_load64): Mask out 2 high bits.
  4229. 2013-04-19 Andrey Borzenkov <arvidjaar@gmail.com>
  4230. * util/grub.d/30_os-prober.in: Add onstr to linux entries in one
  4231. more place.
  4232. 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
  4233. Add support for pseries and other bootinfo machines to grub-mkrescue.
  4234. Tested by: Paulo Flabiano Smorigo.
  4235. 2013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
  4236. * util/grub-mkrescue.in: Add GPT for EFI boot.
  4237. 2013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
  4238. * grub-core/disk/efi/efidisk.c: Detect floppies by ACPI ID.
  4239. It improves performance in qemu.
  4240. 2013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
  4241. * build-aux/snippet: Add missing gnulib files.
  4242. 2013-04-16 Andrey Borzenkov <arvidjaar@gmail.com>
  4243. * grub-core/disk/efi/efidisk.c: Really limit transfer chunk size.
  4244. 2013-04-16 Andrey Borzenkov <arvidjaar@gmail.com>
  4245. * autogen.sh: Use "-f" in addition for "-h" when checking file presence.
  4246. 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
  4247. 2013-04-15 Peter Jones <pjones@redhat.com>
  4248. * grub-core/disk/efi/efidisk.c: Limit disk read or write chunk to 0x500
  4249. sectors.
  4250. Based on patch by Peter Jones.
  4251. 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
  4252. Fix DMRAID partition handling.
  4253. 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
  4254. * tests/grub_cmd_date.in: Skip on sparc64.
  4255. 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
  4256. * tests/grub_script_expansion.in: Use fixed-string grep to skip over
  4257. firmware error messages.
  4258. 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
  4259. * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_devalias_next): Make
  4260. source and destination differ.
  4261. 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
  4262. * grub-core/disk/ieee1275/ofdisk.c: Fix CD-ROM and boot device
  4263. detection.
  4264. 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
  4265. * grub-core/lib/posix_wrap/sys/types.h: Make WORDS_BIGENDIAN definition
  4266. match config-util.h to avoid warnings and increase compatibility.
  4267. 2013-04-14 Szymon Janc <szymon@janc.net.pl>
  4268. 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
  4269. Add option to compress files on install/image creation.
  4270. 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
  4271. * docs/grub-dev.texi: Rearrange menu to match the section order.
  4272. Reported by: Bryan Hundven.
  4273. 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
  4274. * grub-core/loader/i386/linux.c: Remove useless leftover pointer.
  4275. 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
  4276. Move GRUB out of system area when using xorriso 1.2.9 or later.
  4277. 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
  4278. * tests/grub_cmd_date.in: Add missing exit 1.
  4279. 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
  4280. * tests/partmap_test.in: Skip on sparc64.
  4281. 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
  4282. Support grub-shell on sparc64.
  4283. 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
  4284. Support mkrescue on sparc64.
  4285. 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
  4286. Allow IEEE1275 ports on path even if it wasn't detected automatically.
  4287. Needed on OpenBIOS due to incomplete device tree.
  4288. 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
  4289. * grub-core/disk/ieee1275/ofdisk.c: Iterate over bootpath even if it
  4290. would be otherwise excluded.
  4291. 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
  4292. * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options):
  4293. Inline name defines used only once.
  4294. 2013-04-13 Vladimir Serbinenko <phcoder@gmail.com>
  4295. Fix memory leaks in ofnet.
  4296. Reported by: Francesco Lavra.
  4297. 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
  4298. * docs/man/grub-glue-efi.h2m: Add missing file.
  4299. 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
  4300. * util/grub-mkrescue.in: Fix wrong architecture for ppc dir.
  4301. 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
  4302. Better support Apple Intel Macs on CD.
  4303. 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
  4304. Replace stpcpy with grub_stpcpy in tools.
  4305. 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
  4306. Handle Japanese special keys.
  4307. Reported by: Hiroyuki YAMAMORI.
  4308. Codes supplied by: Hiroyuki YAMAMORI.
  4309. 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
  4310. * util/grub-mkimage.c: Document memdisk implying --prefix.
  4311. 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
  4312. * grub-core/bus/usb/ehci.c (grub_ehci_fini_hw): Ignore errors, not
  4313. much we can do about it anyway.
  4314. 2013-04-12 Aleš Nesrsta <starous@volny.cz>
  4315. Fix handling of split transfers.
  4316. 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
  4317. * grub-core/net/http.c: Fix bad free.
  4318. 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
  4319. * grub-core/net/drivers/ieee1275/ofnet.c: Don't attempt to send more
  4320. than buffer size.
  4321. 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
  4322. Disable partmap check on i386-ieee1275 due to openfirmware issues.
  4323. 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
  4324. * tests/util/grub-shell.in: Fix it on powerpc.
  4325. 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
  4326. Turn off QEMU ACPI-way since new releases don't have shutdown port
  4327. anymore.
  4328. 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
  4329. * docs/grub.texi: Update coreboot status info.
  4330. 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
  4331. * tests/grub_cmd_date.in: New test for datetime.
  4332. 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
  4333. * tests/partmap_test.in: Fix missing qemudisk setting.
  4334. 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
  4335. Support i386-ieee1275 grub-mkrescue and make check on it.
  4336. 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
  4337. Merge powerpc grub-mkrescue flavour with common. Use xorriso HFS+
  4338. feature for it.
  4339. 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
  4340. * docs/grub.texi: Fix description of GRUB_CMDLINE_XEN and
  4341. GRUB_CMDLINE_XEN_DEFAULT.
  4342. Reported by: Marc Warne (GigaTux) <gigatux>
  4343. 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
  4344. Import new gnulib.
  4345. 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
  4346. Use ACPI shutdown intests as traditional port was removed.
  4347. 2013-04-11 Andrey Borzenkov <arvidjaar@gmail.com>
  4348. * util/grub.d/30_os-prober.in: Add onstr to entries for visual
  4349. distinction.
  4350. 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
  4351. Fix missing PVs if they don't contain "interesting" LV. Closes #38677.
  4352. Fix few warining messages and leaks while on it.
  4353. 2013-04-09 Andrey Borzenkov <arvidjaar@gmail.com>
  4354. * autogen.sh: Use "-h", not "-f", to test for existence of symbolic
  4355. links under grub-core/lib/libgcrypt-grub/mpi.
  4356. 2013-04-08 Vladimir Serbinenko <phcoder@gmail.com>
  4357. Fix ia64-efi image generation on big-endian machines. Deduplicate
  4358. some code while on it.
  4359. Reported by: Leif Lindholm.
  4360. 2013-04-08 Andrey Borzenkov <arvidjaar@gmail.com>
  4361. * grub-core/Makefile.core.def: Add kern/elfXX.c to elf module
  4362. as extra_dist.
  4363. 2013-04-08 Andrey Borzenkov <arvidjaar@gmail.com>
  4364. * grub-core/term/i386/pc/console.c: Fix cursor moving algorithm.
  4365. 2013-04-08 Bryan Hundven <bryanhundven@gmail.com>
  4366. * docs/grub-dev.texi: Move @itemize after @subsection to satisfy
  4367. texinfo-5.1.
  4368. 2013-04-08 Vladimir Serbinenko <phcoder@gmail.com>
  4369. * grub-core/normal/term.c: Few more fixes for menu entry editor
  4370. rendering.
  4371. Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
  4372. 2013-04-07 Vladimir Serbinenko <phcoder@gmail.com>
  4373. * grub-core/normal/term.c: Few more fixes for menu entry editor
  4374. rendering.
  4375. Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
  4376. 2013-04-06 Andrey Borzenkov <arvidjaar@gmail.com>
  4377. * conf/Makefile.extra-dist (EXTRA_DIST): Add
  4378. grub-core/lib/libgcrypt/src/gcrypt.h.in and util/import_gcrypth.sed.
  4379. 2013-04-06 Andrey Borzenkov <arvidjaar@gmail.com>
  4380. * util/grub-install_header: Use @PACKAGE@.mo in message catalog name
  4381. instead of hardcoding grub.mo.
  4382. 2013-04-05 Fedora Ninjas <grub2-owner@fedoraproject.org>
  4383. * util/grub.d/30_os-prober.in: Support btrrfs linux-prober extensions.
  4384. 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
  4385. Use GRUB_PROPERLY_ALIGNED_ARRAY in grub-core/disk/cryptodisk.c and
  4386. grub-core/disk/geli.c.
  4387. 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
  4388. * util/grub-mkfont.c: Prefer enum to #define.
  4389. 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
  4390. * grub-core/commands/acpi.c: Use sizeof rather than hardcoding the size.
  4391. 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
  4392. Replace 8 with GRUB_CHAR_BIT in several places when appropriate.
  4393. 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
  4394. Add new defines GRUB_RSDP_SIGNATURE_SIZE and GRUB_RSDP_SIGNATURE.
  4395. 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
  4396. * grub-core/commands/verify.c: Use GRUB_CHAR_BIT.
  4397. 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
  4398. * include/grub/bsdlabel.h: Use enums.
  4399. 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
  4400. Move GRUB_CHAR_BIT to types.h.
  4401. 2013-04-04 Andrey Borzenkov <arvidjaar@gmail.com>
  4402. * docs/grub.texi: Document more user commands.
  4403. 2013-04-04 Andrey Borzenkov <arvidjaar@gmail.com>
  4404. * docs/grub.texi: Document menuentry --id option.
  4405. 2013-04-04 Francesco Lavra <francescolavra.fl@gmail.com>
  4406. * util/grub-mkimage.c: Introduce new define EFI32_HEADER_SIZE.
  4407. 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
  4408. Unify file copying setup across different install scripts. Add
  4409. options for performing partial install.
  4410. 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
  4411. 2013-04-04 Peter Jones <pjones@redhat.com>
  4412. * grub-core/disk/efi/efidisk.c: Handle partitions on non-512B disks.
  4413. 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
  4414. Use TSC as a possible time source on i386-ieee1275.
  4415. 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
  4416. * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_readwrite_packetize):
  4417. Init err.
  4418. 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
  4419. * util/grub-setup.c (setup): Handle some corner cases.
  4420. 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
  4421. * grub-core/lib/posix_wrap/locale.h [GRUB_UTIL]: Include host locale.h.
  4422. 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
  4423. * grub-core/commands/verify.c: Save verified file to avoid it being
  4424. tampered with after verification was done.
  4425. 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
  4426. * grub-core/term/i386/pc/console.c (grub_console_getwh): Decrease
  4427. reported width by one to compensate for curesor algorithm problem.
  4428. 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
  4429. Fix screen corruption in menu entry editor and simplify the code
  4430. flow while on it.
  4431. 2013-04-03 Andrey Borzenkov <arvidjaar@gmail.com>
  4432. * util/grub-mount.c (fuse_init): Return error if fuse_main
  4433. failed.
  4434. 2013-04-03 Francesco Lavra <francescolavra.fl@gmail.com>
  4435. * include/grub/elf.h: Add missing ARM relocation codes and fix
  4436. existing ones.
  4437. 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
  4438. * grub-core/gfxmenu/gui_progress_bar.c: Handle padding sizes.
  4439. 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
  4440. 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
  4441. * grub-core/gfxmenu/gui_circular_progress.c: Take both width and height
  4442. into account when calculating radius.
  4443. 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
  4444. * grub-core/gfxmenu/view.c: Fix off-by-one error.
  4445. 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
  4446. * grub-core/gfxmenu/gui_circular_progress.c: Fix off-by-one error.
  4447. 2013-04-01 Radosław Szymczyszyn <lavrin@gmail.com>
  4448. * grub-core/partmap/apple.c (apple_partition_map_iterate): Add
  4449. missing closing bracket.
  4450. 2013-04-01 Radosław Szymczyszyn <lavrin@gmail.com>
  4451. * INSTALL: Mention xorriso requirement.
  4452. 2013-03-31 Andrey Borzenkov <arvidjaar@gmail.com>
  4453. * grub-core/commands/verify.c: Fix hash algorithms values for
  4454. the first three hashes - they start with 1, not with 0.
  4455. 2013-03-26 Vladimir Serbinenko <phcoder@gmail.com>
  4456. * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services):
  4457. Try terminating EFI services several times due to quirks in some
  4458. implementations.
  4459. 2013-03-26 Colin Watson <cjwatson@ubuntu.com>
  4460. * grub-core/commands/acpihalt.c (skip_ext_op): Add support for
  4461. skipping Event, Device, Processor, PowerRes, ThermalZone, and
  4462. BankField extended opcodes.
  4463. (get_sleep_type): Add minimal scope handling (just enough to
  4464. handle setting the scope to the root path).
  4465. (grub_acpi_halt): Parse any SSDTs as well as the DSDT.
  4466. * include/grub/acpi.h: Add enumeration values for Event, Device,
  4467. Processor, PowerRes, ThermalZone, and BankField extended opcodes.
  4468. 2013-03-26 Vladimir Testov <vladimir.testov@rosalab.ru>
  4469. * grub-core/gfxmenu/font.c (grub_font_get_string_width): Fix
  4470. memory leak.
  4471. 2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
  4472. * grub-core/disk/ahci.c: Give more time for AHCI request.
  4473. 2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
  4474. * grub-core/normal/menu.c: Wait if there were errors shown at "boot"
  4475. command.
  4476. 2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
  4477. Replace the region at 0 from coreboot tables to available in BSD
  4478. memory map.
  4479. 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
  4480. * util/grub.d/20_linux_xen.in: Automatically add no-real-mode edd=off on
  4481. non-BIOS platforms.
  4482. 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
  4483. * grub-core/Makefile.core.def (vga): Disable on coreboot and multiboot
  4484. platforms.
  4485. 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
  4486. * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
  4487. handling of multi-device filesystems.
  4488. 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
  4489. * grub-core/Makefile.core.def (vbe): Disable on coreboot and multiboot
  4490. platforms.
  4491. 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
  4492. Add new 'proc' filesystem framework and put luks_script into it.
  4493. 2013-03-23 Vladimir Serbinenko <phcoder@gmail.com>
  4494. * grub-core/term/at_keyboard.c: Increase robustness on coreboot
  4495. and qemu.
  4496. 2013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
  4497. * grub-core/fs/zfs/zfs.c: Fix incorrect handling of special volumes.
  4498. 2013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
  4499. Add ability to generate newc additions on runtime.
  4500. 2013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
  4501. * grub-core/commands/i386/coreboot/cbls.c: Fix typos and wrong
  4502. description.
  4503. 2013-03-21 Vladimir Serbinenko <phcoder@gmail.com>
  4504. * po/POTFILES.in: Regenerate.
  4505. 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
  4506. * grub-core/commands/verify.c (hashes): Add several hashes
  4507. from the spec.
  4508. 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
  4509. Slight improve in USB-related boot-time checkpoints.
  4510. 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
  4511. * grub-core/commands/boottime.c: Fix copyright header.
  4512. 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
  4513. New commands cbmemc, lscoreboot, coreboot_boottime to inspect
  4514. coreboot tables content. Support for cbmemc.
  4515. 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
  4516. Fix a conflict between ports structures with 2 controllers of
  4517. same kind.
  4518. 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
  4519. * include/grub/boottime.h: Add missing file.
  4520. 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
  4521. Initialize USB ports in parallel to speed-up boot.
  4522. 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
  4523. Fix USB devices not being detected when requested
  4524. due to delayed attach.
  4525. 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
  4526. Implement boot time analysis framework.
  4527. 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
  4528. Remove get_endpoint_descriptor and change all functions needing
  4529. descriptor to just receive it as argument rather than endpoint
  4530. address.
  4531. 2013-03-19 Aleš Nesrsta <starous@volny.cz>
  4532. Better estimate the maximum USB transfer size.
  4533. 2013-03-17 Vladimir Serbinenko <phcoder@gmail.com>
  4534. Resend a packet if we got the wrong buffer in status.
  4535. 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
  4536. * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Use
  4537. multiplication rather than division.
  4538. 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
  4539. * grub-core/lib/arg.c (grub_arg_list_alloc): Use shifts rather
  4540. than divisions.
  4541. 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
  4542. * grub-core/commands/verify.c (grub_verify_signature): Use unsigned
  4543. operations to have intended shifts and not divisions.
  4544. 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
  4545. * grub-core/loader/i386/pc/plan9.c (fill_disk): Fix types to use
  4546. intended shifts rather than division.
  4547. 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
  4548. * include/grub/datetime.h (grub_datetime2unixtime): Fix unixtime
  4549. computation for some years before epoch. Avode confusing division
  4550. while on it.
  4551. 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
  4552. * grub-core/video/i386/pc/vbe.c
  4553. (grub_video_vbe_print_adapter_specific_info): Replace division by
  4554. shifts.
  4555. 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
  4556. Adjust types in gdb module to have intended unsigned shifts rather than
  4557. signed divisions.
  4558. 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
  4559. * grub-core/fs/hfs.c (grub_hfs_read_file): Avoid divmod64 since the
  4560. maximum size is 4G - 1 on hfs
  4561. 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
  4562. Avoid costly 64-bit division in grub_get_time_ms on most platforms.
  4563. 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
  4564. * grub-core/fs/fshelp.c (grub_fshelp_log2blksize): Remove now unused
  4565. function.
  4566. 2013-03-07 Andrey Borzenkov <arvidjaar@gmail.com>
  4567. * grub-core/fs/iso9660.c (add_part): Remove always_inline attribute
  4568. causing gcc error with gcc 4.7.1.
  4569. 2013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
  4570. * grub-core/commands/acpi.c (grub_acpi_create_ebda): Don't
  4571. dereference null pointer. While the code is technically correct, gcc
  4572. may eliminate a null check if pointer is already dereferenced.
  4573. 2013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
  4574. * grub-core/normal/crypto.c (read_crypto_list): Fix incorrect
  4575. OOM check.
  4576. * grub-core/normal/term.c (read_terminal_list): Likewise.
  4577. 2013-03-07 Vladimir Serbinenko <phcoder@gmail.com>
  4578. Lift up core size limits on some platforms. Fix potential memory
  4579. corruption with big core on small memory systems. Document remaining
  4580. limits.
  4581. 2013-03-05 Vladimir Serbinenko <phcoder@gmail.com>
  4582. * grub-core/term/terminfo.c (grub_terminfo_cls): Issue an explicit
  4583. gotoxy to 0,0.
  4584. 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
  4585. Remove all trampoline support. Add -Wtrampolines when
  4586. present. Remove symbols used for trampolines to make
  4587. link fail if trampolines are present.
  4588. 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
  4589. * grub-core/script/execute.c (grub_script_arglist_to_argv): Move
  4590. append out of its parent.
  4591. 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
  4592. * grub-core/commands/regexp.c (set_matches): Move setvar out of its
  4593. parent.
  4594. 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
  4595. * grub-core/kern/env.c, include/grub/env.h: Change iterator through
  4596. all vars to a macro. All users updated.
  4597. 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
  4598. * grub-core/disk/ieee1275/nand.c: Fix compilation on
  4599. i386-ieee1275.
  4600. 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
  4601. * include/grub/cmos.h: Handle high CMOS addresses on sparc64.
  4602. 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
  4603. * include/grub/mips/loongson/cmos.h: Fix high CMOS addresses.
  4604. 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
  4605. Move to more hookless approach in IEEE1275 devices handling.
  4606. 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
  4607. * grub-core/kern/term.c (grub_term_normal_color),
  4608. (grub_term_highlight_color): Add back lost defaults.
  4609. 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
  4610. Make elfload not use hooks. Opt for flags and iterators instead.
  4611. 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
  4612. * grub-core/lib/ia64/longjmp.S: Fix the name of longjmp function.
  4613. * grub-core/lib/ia64/setjmp.S: Fix the name of setjmp function.
  4614. 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
  4615. * grub-core/script/execute.c (gettext_append): Remove nested functions.
  4616. 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
  4617. * grub-core/normal/charset.c (grub_bidi_logical_to_visual): Add
  4618. hook pass-through parameter. All users updated and unnested.
  4619. 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
  4620. * grub-core/commands/loadenv.c (grub_cmd_list_env): Move print_var
  4621. out of its parent.
  4622. 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
  4623. * grub-core/fs/hfs.c: Remove nested functions.
  4624. 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
  4625. * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Pass
  4626. the context through.
  4627. (grub_hfsplus_iterate_dir): Move nested function out of its parent.
  4628. 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
  4629. * util/grub-editenv.c (list_variables): Move print_var out of its
  4630. parent.
  4631. 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
  4632. * grub-core/kern/emu/hostdisk.c (read_device_map): Remove nested
  4633. function.
  4634. 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
  4635. * grub-core/gentrigtables.c: Make tables const.
  4636. 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
  4637. Remove nested functions from videoinfo iterators.
  4638. 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
  4639. * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Fix compilation
  4640. for 64-bit platforms.
  4641. 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
  4642. * grub-core/disk/efi/efidisk.c: Transform iterate_child_devices into
  4643. a FOR_CHILDREN macro.
  4644. 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
  4645. * grub-core/kern/main.c (grub_set_prefix_and_root): Strip trailing
  4646. platform from firmware path.
  4647. 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
  4648. Enable linux16 on non-BIOS systems for i.a. memtest.
  4649. * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Handle hole at 0
  4650. correctly.
  4651. * grub-core/Makefile.core.def (linux16): Enable on all x86 flavours.
  4652. 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
  4653. * grub-core/kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate):
  4654. Fix end of table condition.
  4655. 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
  4656. * grub-core/lib/arg.c (grub_arg_show_help): Move showargs
  4657. out of its parent.
  4658. 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
  4659. * grub-core/fs/jfs.c: Remove nested functions.
  4660. 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
  4661. * grub-core/fs/minix.c: Remove nested functions.
  4662. 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
  4663. * grub-core/fs/iso9660.c: Remove nested functions.
  4664. 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
  4665. * grub-core/commands/parttool.c (grub_cmd_parttool): Move show_help out
  4666. of parent function.
  4667. 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
  4668. * util/grub-fstest.c: Remove nested functions.
  4669. 2013-02-27 Vladimir Serbinenko <phcoder@gmail.com>
  4670. * grub-core/loader/machoXX.c: Remove nested functions.
  4671. 2013-02-27 Colin Watson <cjwatson@ubuntu.com>
  4672. Remove nested functions from disk and file read hooks.
  4673. * include/grub/disk.h (grub_disk_read_hook_t): New type.
  4674. (struct grub_disk): Add read_hook_data member.
  4675. * include/grub/file.h (struct grub_file): Likewise.
  4676. * include/grub/fshelp.h (grub_fshelp_read_file): Add read_hook_data
  4677. argument.
  4678. Update all callers.
  4679. 2012-02-27 Andrey Borzenkov <arvidjaar@gmail.com>
  4680. * grub-core/partmap/msdos.c (grub_partition_msdos_iterate):
  4681. Fix off by one error in enumerating extended partitions.
  4682. 2013-02-26 Andrey Borzenkov <arvidjaar@gmail.com>
  4683. * grub-core/disk/efi/efidisk.c(grub_efidisk_get_device_name): Fix
  4684. memory leak if device name is not found.
  4685. 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
  4686. * grub-core/normal/menu_entry.c (update_screen): remove
  4687. unused variable `off' which caused scroll down arrow to be always shown.
  4688. 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
  4689. * grub-core/normal/menu_entry.c (insert_string): fix off by one
  4690. access to unallocated memory.
  4691. 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
  4692. * Makefile.util.def: Add partmap/msdos.c to common library.
  4693. * include/grub/msdos_partition.h: Add GRUB_PC_PARTITION_TYPE_LDM
  4694. * grub-core/disk/ldm.c: Check for existence of
  4695. GRUB_PC_PARTITION_TYPE_LDM.
  4696. 2013-02-25 Vladimir Serbinenko <phcoder@gmail.com>
  4697. * grub-core/normal/misc.c (grub_normal_print_device_info): Use KiB to display
  4698. sizes and display sector size.
  4699. 2013-02-24 Vladimir Serbinenko <phcoder@gmail.com>
  4700. Implement new command cmosdump.
  4701. 2013-02-19 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
  4702. Support Openfirmware disks with non-512B sectors.
  4703. * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Get the block
  4704. size of the disk.
  4705. * (grub_ofdisk_get_block_size): New function.
  4706. * (grub_ofdisk_prepare): Use the correct block size.
  4707. * (grub_ofdisk_read): Likewise.
  4708. * (grub_ofdisk_write): Likewise.
  4709. * include/grub/ieee1275/ofdisk.h (grub_ofdisk_get_block_size):
  4710. New proto.
  4711. 2013-02-06 Vladimir Serbinenko <phcoder@gmail.com>
  4712. * grub-core/commands/lsacpi.c: Fix types on 64-bit platform.
  4713. 2013-02-04 Vladimir Serbinenko <phcoder@gmail.com>
  4714. * grub-core/disk/cryptodisk.c (grub_cryptodisk_scan_device): Don't stop
  4715. on first error.
  4716. 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
  4717. * grub-core/fs/fshelp.c (find_file): Set oldnode to zero after
  4718. freeing it.
  4719. 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
  4720. Implement USBDebug (full USB stack variant).
  4721. 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
  4722. * grub-core/commands/lsacpi.c: Show more info. Hide some boring parts
  4723. unless they have unexpected values.
  4724. 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
  4725. * grub-core/bus/usb/usb.c (grub_usb_device_attach): Add missing
  4726. grub_print_error.
  4727. 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
  4728. * grub-core/bus/usb/serial/common.c (grub_usbserial_attach): Fix missing
  4729. zero-out of port structure.
  4730. 2013-01-30 Vladimir Serbinenko <phcoder@gmail.com>
  4731. * grub-core/fs/xfs.c (grub_xfs_read_block): Fix computation in presence
  4732. of extended attributes.
  4733. 2013-01-27 Andrey Borzenkov <arvidjaar@gmail.com>
  4734. * util/grub-install.in: change misleading comment about
  4735. device.map creation
  4736. 2013-01-27 Vladimir Serbinenko <phcoder@gmail.com>
  4737. * grub-core/normal/menu_text.c (grub_menu_init_page): Fix behaviour
  4738. when menu highlight color isn't set.
  4739. 2013-01-27 C. Masloch <pushbx@38.de>
  4740. Improve FreeDOS direct loading support compatibility.
  4741. * include/grub/i386/relocator.h (grub_relocator16_state):
  4742. New member ebp.
  4743. * grub-core/lib/i386/relocator.c (grub_relocator16_ebp): New extern
  4744. variable.
  4745. (grub_relocator16_boot): Handle %ebp.
  4746. * grub-core/lib/i386/relocator16.S: Likewise.
  4747. * grub-core/loader/i386/pc/freedos.c:
  4748. Load BPB to pass kernel which partition to load from.
  4749. Check that kernel file is not too large.
  4750. Set register dl to BIOS unit number as well.
  4751. 2013-01-22 Colin Watson <cjwatson@ubuntu.com>
  4752. * util/grub-reboot.in (usage): Document the need for
  4753. GRUB_DEFAULT=saved.
  4754. * util/grub-set-default.in (usage): Likewise.
  4755. Reported by: Brian Candler. Fixes Ubuntu bug #1102925.
  4756. 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
  4757. * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Include sys/types.h rather
  4758. than defining WORDS_BIGENDIAN manually.
  4759. 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
  4760. * include/grub/kernel.h (FOR_MODULES): Adjust to preserve alignment
  4761. invariants.
  4762. 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
  4763. * grub-core/font/font.c (blit_comb: do_blit): Make static instead of
  4764. nested.
  4765. (blit_comb: add_device_width): Likewise.
  4766. 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
  4767. Remove nested functions from USB iterators.
  4768. * include/grub/usb.h (grub_usb_iterate_hook_t): New type.
  4769. (grub_usb_controller_iterate_hook_t): Likewise.
  4770. (grub_usb_iterate): Add hook_data argument.
  4771. (grub_usb_controller_iterate): Likewise.
  4772. (struct grub_usb_controller_dev.iterate): Likewise.
  4773. Update all implementations and callers.
  4774. 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
  4775. * grub-core/normal/term.c (print_ucs4_terminal): Don't output right
  4776. margin when not needed.
  4777. 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
  4778. Make color variables global instead of it being per-terminal.
  4779. 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
  4780. * grub-core/commands/ls.c (grub_ls_print_devices): Add missing
  4781. asterisk.
  4782. 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
  4783. Fix powerpc and sparc64 build failures caused by un-nesting memory
  4784. map iterators.
  4785. 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
  4786. * grub-core/disk/arc/arcdisk.c (grub_arcdisk_iterate): Fix
  4787. parameter declarations.
  4788. 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
  4789. * grub-core/commands/lsmmap.c: Fix unused variable on emu.
  4790. 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
  4791. Improve spkmomdem reliability by adding a separator between bytes.
  4792. 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
  4793. * grub-core/partmap/msdos.c (embed_signatures): Add the signature of
  4794. an Acer registration utility with several sightings in the wild.
  4795. Reported by: Rickard Westman. Fixes Ubuntu bug #987022.
  4796. 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
  4797. Remove nested functions from filesystem directory iterators.
  4798. * include/grub/fs.h (grub_fs_dir_hook_t): New type.
  4799. (struct grub_fs.dir): Add hook_data argument.
  4800. Update all implementations and callers.
  4801. 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
  4802. * docs/grub.texi (Multi-boot manual config): Fix typo for
  4803. "recommended".
  4804. 2013-01-20 Leif Lindholm <leif.lindholm@arm.com>
  4805. * util/grub-mkimage.c (main): Postpone freeing arguments.output
  4806. until after its use in generate_image.
  4807. 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
  4808. * grub-core/loader/i386/linux.c (grub_cmd_initrd): Don't add the
  4809. initrd size to addr_min, since the initrd will be allocated after
  4810. this address.
  4811. 2013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
  4812. * conf/Makefile.common: Fix autogen rules to pass definition
  4813. files on stdin; Makefile.util.am needs Makefile.utilgcry.def
  4814. 2013-01-20 Leif Lindholm <leif.lindholm@arm.com>
  4815. * include/grub/elf.h: Update ARM definitions based on binutils.
  4816. 2013-01-20 Aleš Nesrsta <starous@volny.cz>
  4817. Split long USB transfers into short ones.
  4818. 2013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
  4819. * docs/grub.texi (Simple configuration): Clarify GRUB_HIDDEN_TIMEOUT
  4820. is interrupted by ESC.
  4821. 2013-01-20 Vladimir Serbinenko <phcoder@gmail.com>
  4822. * util/grub-script-check.c (main): Uniform the error message.
  4823. 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
  4824. Remove nested functions from ELF iterators.
  4825. 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
  4826. Remove nested functions from device iterators.
  4827. * include/grub/arc/arc.h (grub_arc_iterate_devs_hook_t): New type.
  4828. (grub_arc_iterate_devs): Add hook_data argument.
  4829. * include/grub/ata.h (grub_ata_dev_iterate_hook_t): New type.
  4830. (struct grub_ata_dev.iterate): Add hook_data argument.
  4831. * include/grub/device.h (grub_device_iterate_hook_t): New type.
  4832. (grub_device_iterate): Add hook_data argument.
  4833. * include/grub/disk.h (grub_disk_dev_iterate_hook_t): New type.
  4834. (struct grub_disk_dev.iterate): Add hook_data argument.
  4835. (grub_disk_dev_iterate): Likewise.
  4836. * include/grub/gpt_partition.h (grub_gpt_partition_map_iterate):
  4837. Likewise.
  4838. * include/grub/msdos_partition.h (grub_partition_msdos_iterate):
  4839. Likewise.
  4840. * include/grub/partition.h (grub_partition_iterate_hook_t): New
  4841. type.
  4842. (struct grub_partition_map.iterate): Add hook_data argument.
  4843. (grub_partition_iterate): Likewise.
  4844. * include/grub/scsi.h (grub_scsi_dev_iterate_hook_t): New type.
  4845. (struct grub_scsi_dev.iterate): Add hook_data argument.
  4846. Update all callers.
  4847. 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
  4848. Fix typos for "developer" and "development".
  4849. 2013-01-18 Vladimir Serbinenko <phcoder@gmail.com>
  4850. Add license header to spkmodem-recv.c.
  4851. 2013-01-17 Vladimir Serbinenko <phcoder@gmail.com>
  4852. Rewrite spkmodem to use PIT for timing. Double the speed.
  4853. 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
  4854. Add new command pcidump.
  4855. 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
  4856. New terminal outputs using serial: morse and spkmodem.
  4857. 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
  4858. Improve bidi handling in entry editor.
  4859. 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
  4860. * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
  4861. argument to prevent name collision.
  4862. 2013-01-15 Colin Watson <cjwatson@ubuntu.com>
  4863. Remove nested functions from script reading and parsing.
  4864. * grub-core/kern/parser.c (grub_parser_split_cmdline): Add
  4865. getline_data argument, passed to getline.
  4866. * grub-core/kern/rescue_parser.c (grub_rescue_parse_line): Add
  4867. getline_data argument, passed to grub_parser_split_cmdline.
  4868. * grub-core/script/lexer.c (grub_script_lexer_yywrap): Pass
  4869. lexerstate->getline_data to lexerstate->getline.
  4870. (grub_script_lexer_init): Add getline_data argument, saved in
  4871. lexerstate->getline_data.
  4872. * grub-core/script/main.c (grub_normal_parse_line): Add getline_data
  4873. argument, passed to grub_script_parse.
  4874. * grub-core/script/script.c (grub_script_parse): Add getline_data
  4875. argument, passed to grub_script_lexer_init.
  4876. * include/grub/parser.h (grub_parser_split_cmdline): Update
  4877. prototype. Update all callers to pass appropriate getline data.
  4878. (struct grub_parser.parse_line): Likewise.
  4879. (grub_rescue_parse_line): Likewise.
  4880. * include/grub/reader.h (grub_reader_getline_t): Add void *
  4881. argument.
  4882. * include/grub/script_sh.h (struct grub_lexer_param): Add
  4883. getline_data member.
  4884. (grub_script_parse): Update prototype. Update all callers to pass
  4885. appropriate getline data.
  4886. (grub_script_lexer_init): Likewise.
  4887. (grub_normal_parse_line): Likewise.
  4888. * grub-core/commands/legacycfg.c (legacy_file_getline): Add unused
  4889. data argument.
  4890. * grub-core/kern/parser.c (grub_parser_execute: getline): Make
  4891. static instead of nested. Rename to ...
  4892. (grub_parser_execute_getline): ... this.
  4893. * grub-core/kern/rescue_reader.c (grub_rescue_read_line): Add unused
  4894. data argument.
  4895. * grub-core/normal/main.c (read_config_file: getline): Make static
  4896. instead of nested. Rename to ...
  4897. (read_config_file_getline): ... this.
  4898. (grub_normal_read_line): Add unused data argument.
  4899. * grub-core/script/execute.c (grub_script_execute_sourcecode:
  4900. getline): Make static instead of nested. Rename to ...
  4901. (grub_script_execute_sourcecode_getline): ... this.
  4902. * util/grub-script-check.c (main: get_config_line): Make static
  4903. instead of nested.
  4904. 2013-01-15 Colin Watson <cjwatson@ubuntu.com>
  4905. Remove nested functions from memory map iterators.
  4906. * grub-core/efiemu/mm.c (grub_efiemu_mmap_iterate): Add hook_data
  4907. argument, passed to hook.
  4908. * grub-core/kern/i386/coreboot/mmap.c
  4909. (grub_linuxbios_table_iterate): Likewise.
  4910. (grub_machine_mmap_iterate: iterate_linuxbios_table): Make static
  4911. instead of nested.
  4912. (grub_machine_mmap_iterate): Add hook_data argument.
  4913. * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_iterate):
  4914. Add hook_data argument, passed to hook.
  4915. * grub-core/kern/i386/pc/mmap.c (grub_machine_mmap_iterate):
  4916. Likewise.
  4917. * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
  4918. Likewise.
  4919. * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate):
  4920. Likewise.
  4921. * grub-core/kern/mips/arc/init.c (grub_machine_mmap_iterate):
  4922. Likewise.
  4923. * grub-core/kern/mips/loongson/init.c (grub_machine_mmap_iterate):
  4924. Likewise.
  4925. * grub-core/kern/mips/qemu_mips/init.c (grub_machine_mmap_iterate):
  4926. Likewise.
  4927. * grub-core/mmap/efi/mmap.c (grub_efi_mmap_iterate): Likewise.
  4928. (grub_machine_mmap_iterate): Likewise.
  4929. * grub-core/mmap/mmap.c (grub_mmap_iterate): Likewise.
  4930. * include/grub/efiemu/efiemu.h (grub_efiemu_mmap_iterate): Update
  4931. prototype.
  4932. * include/grub/memory.h (grub_memory_hook_t): Add data argument.
  4933. Remove NESTED_FUNC_ATTR from here and from all users.
  4934. (grub_mmap_iterate): Update prototype.
  4935. (grub_efi_mmap_iterate): Update prototype. Update all callers to
  4936. pass appropriate hook data.
  4937. (grub_machine_mmap_iterate): Likewise.
  4938. * grub-core/commands/acpi.c (grub_acpi_create_ebda: find_hook): Make
  4939. static instead of nested.
  4940. * grub-core/commands/lsmmap.c (grub_cmd_lsmmap: hook): Likewise.
  4941. Rename to ...
  4942. (lsmmap_hook): ... this.
  4943. * grub-core/efiemu/mm.c (grub_efiemu_mmap_init: bounds_hook):
  4944. Likewise.
  4945. (grub_efiemu_mmap_fill: fill_hook): Likewise.
  4946. * grub-core/kern/i386/coreboot/init.c (grub_machine_init:
  4947. heap_init): Likewise.
  4948. * grub-core/kern/i386/pc/init.c (grub_machine_init: hook): Likewise.
  4949. Rename to ...
  4950. (mmap_iterate_hook): ... this.
  4951. * grub-core/kern/ieee1275/init.c (grub_claim_heap: heap_init):
  4952. Likewise.
  4953. * grub-core/lib/ieee1275/relocator.c
  4954. (grub_relocator_firmware_get_max_events: count): Likewise.
  4955. (grub_relocator_firmware_fill_events: fill): Likewise. Rename
  4956. to ...
  4957. (grub_relocator_firmware_fill_events_iter): ... this.
  4958. * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align:
  4959. hook): Likewise. Rename to ...
  4960. (grub_relocator_alloc_chunk_align_iter): ... this.
  4961. * grub-core/loader/i386/bsd.c (generate_e820_mmap: hook): Likewise.
  4962. Rename to ...
  4963. (generate_e820_mmap_iter): ... this.
  4964. * grub-core/loader/i386/linux.c (find_mmap_size: hook): Likewise.
  4965. Rename to ...
  4966. (count_hook): ... this.
  4967. (grub_linux_boot: hook): Likewise. Rename to ...
  4968. (grub_linux_boot_mmap_find): ... this.
  4969. (grub_linux_boot: hook_fill): Likewise. Rename to ...
  4970. (grub_linux_boot_mmap_fill): ... this.
  4971. * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap:
  4972. hook): Likewise. Rename to ...
  4973. (grub_fill_multiboot_mmap_iter): ... this.
  4974. * grub-core/loader/multiboot.c (grub_get_multiboot_mmap_count:
  4975. hook): Likewise. Rename to ...
  4976. (count_hook): ... this.
  4977. * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap:
  4978. hook): Likewise. Rename to ...
  4979. (grub_fill_multiboot_mmap_iter): ... this.
  4980. * grub-core/loader/powerpc/ieee1275/linux.c
  4981. (grub_linux_claimmap_iterate: alloc_mem): Likewise.
  4982. * grub-core/loader/sparc64/ieee1275/linux.c (alloc_phys: choose):
  4983. Likewise. Rename to ...
  4984. (alloc_phys_choose): ... this.
  4985. (determine_phys_base: get_physbase): Likewise.
  4986. * grub-core/mmap/i386/mmap.c (grub_mmap_malign_and_register:
  4987. find_hook): Likewise.
  4988. * grub-core/mmap/i386/pc/mmap.c (preboot: fill_hook): Likewise.
  4989. (malloc_hook: count_hook): Likewise.
  4990. * grub-core/mmap/i386/uppermem.c (grub_mmap_get_lower: hook):
  4991. Likewise. Rename to ...
  4992. (lower_hook): ... this.
  4993. (grub_mmap_get_upper: hook): Likewise. Rename to ...
  4994. (upper_hook): ... this.
  4995. (grub_mmap_get_post64: hook): Likewise. Rename to ...
  4996. (post64_hook): ... this.
  4997. * grub-core/mmap/mips/uppermem.c (grub_mmap_get_lower: hook):
  4998. Likewise. Rename to ...
  4999. (lower_hook): ... this.
  5000. (grub_mmap_get_upper: hook): Likewise. Rename to ...
  5001. (upper_hook): ... this.
  5002. * grub-core/mmap/mmap.c (grub_mmap_iterate: count_hook): Likewise.
  5003. (grub_mmap_iterate: fill_hook): Likewise.
  5004. (fill_mask): Pass addr and mask within a single struct.
  5005. (grub_cmd_badram: hook): Make static instead of nested. Rename
  5006. to ...
  5007. (badram_iter): ... this.
  5008. (grub_cmd_cutmem: hook): Likewise. Rename to ...
  5009. (cutmem_iter): ... this.
  5010. 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
  5011. * grub-core/kern/emu/hostdisk.c (read_device_map): Explicitly
  5012. delimit path in strings using quotes.
  5013. * util/getroot.c (grub_guess_root_devices): Likewise.
  5014. (grub_make_system_path_relative_to_its_root): Likewise.
  5015. * util/grub-probe.c (probe): Likewise.
  5016. * util/ieee1275/ofpath.c (find_obppath): Likewise.
  5017. (xrealpath): Likewise.
  5018. 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
  5019. Fix compilation with older compilers.
  5020. * grub-core/Makefile.core.def (mpi): Add mpi-inline.c.
  5021. * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Remove redundant
  5022. declarations.
  5023. * grub-core/lib/posix_wrap/string.h: Include sys/types.h.
  5024. * grub-core/lib/posix_wrap/sys/types.h: Add common types.
  5025. * grub-core/lib/xzembed/xz_dec_lzma2.c (dict_put): Replace byte
  5026. identifier with b.
  5027. * grub-core/lib/xzembed/xz_dec_stream.c (dec_vli): Likewise.
  5028. * include/grub/crypto.h: Add type defines.
  5029. * util/import_gcrypth.sed: Remove duplicate type defines.
  5030. 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
  5031. New command list_trusted.
  5032. * grub-core/commands/verify.c (grub_cmd_list): New function.
  5033. 2013-01-13 Colin Watson <cjwatson@ubuntu.com>
  5034. * util/grub-mkimage.c (generate_image): Fix "size of public key"
  5035. info message.
  5036. 2013-01-13 Colin Watson <cjwatson@ubuntu.com>
  5037. Remove nested functions from PCI iterators.
  5038. * grub-core/bus/pci.c (grub_pci_iterate): Add hook_data argument,
  5039. passed to hook. Update all callers to pass appropriate hook data.
  5040. * grub-core/bus/emu/pci.c (grub_pci_iterate): Likewise.
  5041. * include/grub/pci.h (grub_pci_iteratefunc_t): Add data argument.
  5042. Remove NESTED_FUNC_ATTR from here and from all users.
  5043. (grub_pci_iterate): Update prototype.
  5044. * grub-core/bus/cs5536.c (grub_cs5536_find: hook): Make static
  5045. instead of nested. Rename to ...
  5046. (grub_cs5536_find_iter): ... this.
  5047. * grub-core/kern/efi/mm.c (stop_broadcom: find_card): Likewise.
  5048. * grub-core/kern/mips/loongson/init.c (init_pci: set_card):
  5049. Likewise.
  5050. * grub-core/kern/vga_init.c (grub_qemu_init_cirrus: find_card):
  5051. Likewise.
  5052. * grub-core/video/bochs.c (grub_video_bochs_setup: find_card):
  5053. Likewise.
  5054. * grub-core/video/cirrus.c (grub_video_cirrus_setup: find_card):
  5055. Likewise.
  5056. * grub-core/video/efi_uga.c (find_framebuf: find_card): Likewise.
  5057. * grub-core/video/radeon_fuloong2e.c
  5058. (grub_video_radeon_fuloong2e_setup: find_card): Likewise.
  5059. * grub-core/video/sis315pro.c (grub_video_sis315pro_setup:
  5060. find_card): Likewise.
  5061. * grub-core/video/sm712.c (grub_video_sm712_setup: find_card):
  5062. Likewise.
  5063. 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
  5064. * grub-core/commands/verify.c: Mark messages for translating.
  5065. 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
  5066. * grub-core/lib/libgcrypt_wrap/mem.c (gcry_x*alloc): Make out of memory
  5067. fatal.
  5068. 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
  5069. * grub-core/lib/libgcrypt_wrap/mem.c (_gcry_log_bug): Make gcrypt bugs
  5070. fatal.
  5071. 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
  5072. * autogen.sh: Do not try to delete nonexistant files.
  5073. * util/import_gcrypth.sed: Add some missing header removals.
  5074. 2013-01-12 Colin Watson <cjwatson@ubuntu.com>
  5075. Clean up dangling references to grub-setup.
  5076. Fixes Ubuntu bug #1082045.
  5077. * docs/grub.texi (Images): Refer generally to grub-install rather
  5078. than directly to grub-setup.
  5079. (Installing GRUB using grub-install): Remove direct reference to
  5080. grub-setup.
  5081. (Device map) Likewise.
  5082. (Invoking grub-install): Likewise.
  5083. * docs/man/grub-install.h2m (SEE ALSO): Likewise.
  5084. * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
  5085. * util/grub-install.in (usage): Likewise.
  5086. * util/bash-completion.d/grub-completion.bash.in (_grub_setup):
  5087. Apply to grub-bios-setup and grub-sparc64-setup rather than to
  5088. grub-setup.
  5089. * configure.ac: Remove grub_setup output variable.
  5090. * docs/man/grub-bios-setup.h2m (NAME): Change name from grub-setup
  5091. to grub-bios-setup.
  5092. * docs/man/grub-sparc64-setup.h2m (NAME): Change name from
  5093. grub-setup to grub-sparc64-setup.
  5094. 2013-01-11 Vladimir Serbinenko <phcoder@gmail.com>
  5095. Import gcrypt public-key cryptography and implement signature checking.
  5096. 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
  5097. * grub-core/fs/ntfs.c: Ue more appropriate types.
  5098. * grub-core/fs/ntfscomp.c: Likewise.
  5099. * include/grub/ntfs.h: Likewise.
  5100. 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
  5101. Support Apple FAT binaries on non-Apple platforms.
  5102. * include/grub/macho.h (GRUB_MACHO_FAT_EFI_MAGIC): New define.
  5103. * include/grub/i386/macho.h (GRUB_MACHO_CPUTYPE_IS_HOST_CURRENT):
  5104. Likewise.
  5105. * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Parse
  5106. Apple FAT binaries.
  5107. 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
  5108. * grub-core/kern/disk.c (grub_disk_write): Fix sector number on 4K
  5109. sector devices.
  5110. 2013-01-07 Colin Watson <cjwatson@ubuntu.com>
  5111. * grub-core/io/bufio.c (grub_bufio_open): Use grub_zalloc instead of
  5112. explicitly zeroing elements.
  5113. * grub-core/io/gzio.c (grub_gzio_open): Likewise.
  5114. * grub-core/io/lzopio.c (grub_lzopio_open): Remove explicit zeroing
  5115. of elements in a structure already allocated using grub_zalloc.
  5116. * grub-core/io/xzio.c (grub_xzio_open): Likewise.
  5117. 2013-01-07 Colin Watson <cjwatson@ubuntu.com>
  5118. * docs/grub.texi (grub_cpu): New subsection.
  5119. (grub_platform): Likewise.
  5120. 2013-01-07 Vladimir Serbinenko <phcoder@gmail.com>
  5121. * grub-core/fs/minix.c (grub_minix_read_file): Simplify arithmetics.
  5122. 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
  5123. * grub-core/fs/ext2.c (grub_ext2_read_block): Use shifts rather than
  5124. divisions.
  5125. 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
  5126. * grub-core/fs/ntfs.c: Eliminate useless divisions in favor of shifts.
  5127. * grub-core/fs/ntfscomp.c: Likewise.
  5128. * include/grub/ntfs.h (grub_ntfs_data): Replace spc with log_spc.
  5129. (grub_ntfs_comp): Likewise.
  5130. 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
  5131. * grub-core/fs/nilfs2.c (-grub_nilfs2_palloc_groups_per_desc_block):
  5132. Rename to ...
  5133. (grub_nilfs2_palloc_log_groups_per_desc_block): ... this. Return log
  5134. of groups_per_block. All users updated.
  5135. 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
  5136. * grub-core/disk/diskfilter.c (grub_diskfilter_write): Call
  5137. grub_error properly.
  5138. * grub-core/disk/ieee1275/nand.c (grub_nand_write): Likewise.
  5139. * grub-core/disk/loopback.c (grub_loopback_write): Likewise.
  5140. 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
  5141. * util/grub.d/10_kfreebsd.in: Correct the patch to zpool.cache as it's
  5142. always in /boot/zfs.
  5143. Reported by: Yuta Satoh.
  5144. 2013-01-03 Yuta Satoh <nigoro>
  5145. * util/grub.d/10_kfreebsd.in: Fix improper references to grub-probe by
  5146. ${grub_probe}
  5147. 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
  5148. * configure.ac: Extend -Wno-trampolines to host.
  5149. 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
  5150. * grub-core/fs/iso9660.c (grub_iso9660_susp_iterate): Avoid hang if
  5151. entry->len = 0.
  5152. 2013-01-03 Colin Watson <cjwatson@ubuntu.com>
  5153. * docs/grub.texi (Invoking grub-mkrelpath): New section.
  5154. (Invoking grub-script-check): Likewise.
  5155. 2013-01-03 Colin Watson <cjwatson@ubuntu.com>
  5156. * docs/grub.texi (Invoking grub-mount): New section.
  5157. Reported by: Filipus Klutiero. Fixes Debian bug #666427.
  5158. 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
  5159. * grub-core/tests/lib/test.c (grub_test_run): Return non-zero on
  5160. test failures, so that a failing unit test correctly causes 'make
  5161. check' to fail.
  5162. 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
  5163. Fix failing printf test.
  5164. * grub-core/kern/misc.c (grub_vsnprintf_real): Parse '-', '.', and
  5165. '$' in the correct order when collecting type information.
  5166. 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
  5167. * docs/grub.texi (configfile): Explain environment variable
  5168. handling.
  5169. (source): New section.
  5170. Reported by: Arbiel Perlacremaz. Fixes Savannah bug #35564.
  5171. 2012-12-31 Colin Watson <cjwatson@ubuntu.com>
  5172. Remove several trivially-unnecessary uses of nested functions.
  5173. * grub-core/commands/i386/pc/sendkey.c
  5174. (grub_cmd_sendkey: find_key_code, find_ascii_code): Make static
  5175. instead of nested.
  5176. * grub-core/commands/legacycfg.c (legacy_file: getline): Likewise.
  5177. Rename to ...
  5178. (legacy_file_getline): ... this.
  5179. * grub-core/commands/loadenv.c (grub_cmd_load_env: set_var):
  5180. Likewise.
  5181. * grub-core/kern/corecmd.c (grub_core_cmd_set: print_env): Likewise.
  5182. * grub-core/kern/fs.c (grub_fs_probe: dummy_func): Likewise. Rename
  5183. to ...
  5184. (probe_dummy_iter): ... this.
  5185. * grub-core/kern/i386/coreboot/mmap.c
  5186. (grub_linuxbios_table_iterate: check_signature): Likewise.
  5187. * grub-core/kern/parser.c (grub_parser_split_cmdline:
  5188. check_varstate): Likewise. Mark inline.
  5189. * grub-core/lib/arg.c (find_short: fnd_short): Likewise. Pass
  5190. an additional parameter.
  5191. (find_long: fnd_long): Likewise. Pass two additional parameters.
  5192. * grub-core/lib/crc.c (init_crc32c_table: reflect): Likewise.
  5193. * grub-core/lib/crc64.c (init_crc64_table: reflect): Likewise.
  5194. * grub-core/lib/ieee1275/cmos.c (grub_cmos_find_port: hook):
  5195. Likewise. Rename to ...
  5196. (grub_cmos_find_port_iter): ... this.
  5197. * grub-core/lib/ieee1275/datetime.c (find_rtc: hook): Likewise.
  5198. Rename to ...
  5199. (find_rtc_iter): ... this.
  5200. * grub-core/normal/menu_entry.c (run): Fold nested editor_getsource
  5201. function directly into the function body, since it is only called
  5202. once.
  5203. 2012-12-30 Colin Watson <cjwatson@ubuntu.com>
  5204. * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Remove incorrect
  5205. __attribute__ ((unused)).
  5206. * grub-core/video/bochs.c (find_card): Likewise.
  5207. * grub-core/video/cirrus.c (find_card): Likewise.
  5208. * grub-core/video/radeon_fuloong2e.c (find_card): Likewise.
  5209. * grub-core/video/sis315pro.c (find_card): Likewise.
  5210. * grub-core/video/sm712.c (find_card): Likewise.
  5211. 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
  5212. * util/grub-mkconfig.in: Accept GRUB_TERMINAL_OUTPUT=vga_text.
  5213. Fixes Savannah bug #37821.
  5214. 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
  5215. Apply program name transformations at build-time rather than at
  5216. run-time. Fixes Debian bug #696465.
  5217. * acinclude.m4 (grub_TRANSFORM): New macro.
  5218. * configure.ac: Create output variables with transformed names for
  5219. most programs.
  5220. * util/bash-completion.d/grub-completion.bash.in: Use
  5221. pre-transformed variables for program names.
  5222. * util/grub-install.in: Likewise.
  5223. * util/grub-kbdcomp.in: Likewise.
  5224. * util/grub-mkconfig.in: Likewise.
  5225. * util/grub-mkconfig_lib.in: Likewise.
  5226. * util/grub-mknetdir.in: Likewise.
  5227. * util/grub-mkrescue.in: Likewise.
  5228. * util/grub-mkstandalone.in: Likewise.
  5229. * util/grub-reboot.in: Likewise.
  5230. * util/grub-set-default.in: Likewise.
  5231. * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
  5232. * tests/util/grub-shell-tester.in: Remove unused assignment.
  5233. * tests/util/grub-shell.in: Likewise.
  5234. * util/grub.d/00_header.in: Likewise.
  5235. 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
  5236. Backport gnulib fixes for C11. Fixes Savannah bug #37738.
  5237. * grub-core/gnulib/stdio.in.h (gets): Warn on use only if
  5238. HAVE_RAW_DECL_GETS.
  5239. * m4/stdio_h.m4 (gl_STDIO_H): Check for gets.
  5240. 2012-12-11 Vladimir Serbinenko <phcoder@gmail.com>
  5241. * util/grub.d/20_linux_xen.in: Addmissing assignment to machine.
  5242. Reported by: Eriks Latosheks <foresterlv>.
  5243. 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
  5244. * docs/grub.texi (Network): Update instructions on generating netboot
  5245. image.
  5246. 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
  5247. * grub-core/disk/cryptodisk.c (grub_cmd_cryptomount): Strip brackets
  5248. around device name if necessarry.
  5249. 2012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
  5250. * util/grub-install.in: Follow the symbolic link parameter added
  5251. to the file command.
  5252. 2012-12-10 Andrey Borzenkov <arvidjaar@gmail.com>
  5253. * util/grub-install.in: Remove stale TODO.
  5254. 2012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
  5255. * grub-core/kern/ieee1275/init.c (grub_machine_get_bootlocation): Use
  5256. dynamic allocation for the bootpath buffer.
  5257. 2012-12-10 Dr. Tilmann Bubeck <t.bubeck@reinform.de>
  5258. * grub-core/gfxmenu/view.c (init_terminal): Avoid making terminal
  5259. window too small.
  5260. 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
  5261. * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Get font as
  5262. argument rather than font name. All users updated.
  5263. (grub_gfxterm_set_window): Likewise.
  5264. 2012-12-10 Vladimir Testov <vladimir.testov@rosalab.ru>
  5265. * util/grub-mkfont.c (argp_parser): Fix a typo which prevented --asce
  5266. from working.
  5267. 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
  5268. * util/getroot.c (convert_system_partition_to_system_disk): Support
  5269. nbd disks.
  5270. 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
  5271. * grub-core/fs/ufs.c (grub_ufs_dir): Stop if direntlen is 0 to avoid
  5272. infinite loop on corrupted FS.
  5273. 2012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
  5274. Fix big-endian mtime.
  5275. * grub-core/fs/ufs.c (grub_ufs_inode): Split improperly attached
  5276. together sec and usec.
  5277. (grub_ufs_dir): Use correct byteswapping for UFS time.
  5278. 2012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
  5279. Support big-endian UFS1.
  5280. * Makefile.util.def (libgrubmods): Add ufs_be.c
  5281. * grub-core/Makefile.core.def (ufs1_be): New module.
  5282. * grub-core/fs/ufs_be.c: New file.
  5283. * grub-core/fs/ufs.c: Declare grub_ufs_to_le* and use them throughout
  5284. the file.
  5285. 2012-11-28 Leif Lindholm <leif.lindholm@arm.com>
  5286. * include/grub/types.h: Fix functionality unaffecting typo in
  5287. GRUB_TARGET_WORDSIZE conditional macro.
  5288. 2012-11-28 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
  5289. * grub-core/net/bootp.c (parse_dhcp_vendor): Fix double increment.
  5290. 2012-10-28 Grégoire Sutre <gregoire.sutre@gmail.com>
  5291. * util/grub.d/10_netbsd.in: Fix tab indentation and make sure
  5292. that /netbsd appears first (when it exists).
  5293. 2012-10-12 Christoph Junghans <ottxor@gentoo.org>
  5294. * grub-core/Makefile.am (moddep.lst): Use $(AWK) rather than awk.
  5295. Fixes Savannah bug #37558.
  5296. 2012-10-12 Colin Watson <cjwatson@ubuntu.com>
  5297. * grub-core/commands/configfile.c (GRUB_MOD_INIT): Correct
  5298. description of extract_entries_configfile.
  5299. 2012-10-05 Colin Watson <cjwatson@ubuntu.com>
  5300. * grub-core/loader/i386/linux.c (allocate_pages): Fix spelling of
  5301. preferred_address.
  5302. (grub_cmd_linux): Likewise.
  5303. * grub-core/net/icmp6.c (struct prefix_option): Fix spelling of
  5304. preferred_lifetime. Update all users.
  5305. 2012-09-26 Colin Watson <cjwatson@ubuntu.com>
  5306. * Makefile.util.def (grub-mknetdir): Move to $prefix/bin.
  5307. Reported by: Daniel Kahn Gillmor. Fixes Debian bug #688799.
  5308. 2012-09-26 Colin Watson <cjwatson@ubuntu.com>
  5309. * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Redirect
  5310. errors from grub-probe to /dev/null, not stdout.
  5311. 2012-09-26 Vladimir Serbinenko <phcoder@gmail.com>
  5312. * grub-core/fs/affs.c (grub_affs_mount): Support AFFS bootblock in
  5313. sector 1.
  5314. 2012-09-24 Colin Watson <cjwatson@ubuntu.com>
  5315. * util/grub-install.in: Make the error message if $source_dir
  5316. doesn't exist more useful.
  5317. 2012-09-22 Colin Watson <cjwatson@ubuntu.com>
  5318. Fix grub-emu build on FreeBSD.
  5319. * Makefile.util.def (grub-mount): Add LIBGEOM to ldadd.
  5320. * grub-core/net/drivers/emu/emunet.c: Only include Linux-specific
  5321. headers on Linux.
  5322. (GRUB_MOD_INIT): Return immediately on non-Linux platforms; this
  5323. implementation is currently Linux-specific.
  5324. * util/getroot.c (exec_pipe): Define only on Linux or when either
  5325. libzfs or libnvpair is unavailable.
  5326. (find_root_devices_from_poolname): Remove unused path variable.
  5327. 2012-09-19 Colin Watson <cjwatson@ubuntu.com>
  5328. * grub-core/partmap/msdos.c (pc_partition_map_embed): Revert
  5329. incorrect off-by-one fix from 2011-02-12. A 62-sector core image
  5330. should fit before end == 63.
  5331. 2012-09-19 Colin Watson <cjwatson@ubuntu.com>
  5332. * util/grub-setup.c (write_rootdev): Remove unused core_img
  5333. parameter. Update all callers.
  5334. (setup): Define core_sectors only if GRUB_SETUP_BIOS, to appease
  5335. 'gcc -Wunused-but-set-variable'. Remove unnecessary nested #ifdef
  5336. GRUB_SETUP_BIOS.
  5337. 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
  5338. * util/grub-mkconfig_lib.in (grub_tab): New variable.
  5339. (grub_add_tab): New function.
  5340. * util/grub.d/10_hurd.in: Replace \t with $grub_tab orgrub_add_tab.
  5341. * util/grub.d/10_illumos.in: Likewise.
  5342. * util/grub.d/10_kfreebsd.in: Likewise.
  5343. * util/grub.d/10_linux.in: Likewise.
  5344. * util/grub.d/10_netbsd.in: Likewise.
  5345. * util/grub.d/10_windows.in: Likewise.
  5346. * util/grub.d/10_xnu.in: Likewise.
  5347. * util/grub.d/20_linux_xen.in: Likewise.
  5348. * util/grub.d/30_os-prober.in: Likewise.
  5349. 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
  5350. * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
  5351. GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN on mac.
  5352. * grub-core/term/ieee1275/console.c (grub_console_init_lately): Use
  5353. ieee1275-nocursor if GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN is set.
  5354. * grub-core/term/terminfo.c (grub_terminfo_set_current): Add new type
  5355. ieee1275-nocursor.
  5356. * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
  5357. GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN.
  5358. 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
  5359. * grub-core/loader/i386/linux.c (grub_cmd_linux): Fix incorrect
  5360. le-conversion.
  5361. Reported by: BURETTE, Bernard.
  5362. 2012-09-17 Colin Watson <cjwatson@ubuntu.com>
  5363. * util/grub-mkconfig_lib.in (grub_quote): Remove outdated sentence
  5364. from comment.
  5365. 2012-09-14 Colin Watson <cjwatson@ubuntu.com>
  5366. * grub-core/term/terminfo.c: Only fix up powerpc key repeat on
  5367. IEEE1275 machines. Fixes powerpc-emu compilation.
  5368. * include/grub/terminfo.h: Likewise.
  5369. 2012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
  5370. * include/grub/efi/api.h (grub_efi_runtime_services): Make vendor_guid
  5371. a const pointer.
  5372. * grub-core/efiemu/runtime/efiemu.c (efiemu_memcpy): Make from a
  5373. const pointer.
  5374. (efiemu_set_variable): Make vendor_guid a const pointer.
  5375. 2012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
  5376. Don't require grub-mkconfig_lib to generate manpages for programs.
  5377. * gentpl.py (manpage): Additional argument adddeps. Add adddeps to
  5378. dependencies, don't add grub-mkconfig_lib.
  5379. (program): Pass empty adddeps.
  5380. (script): Pass grub-mkconfig_lib as adddeps.
  5381. 2012-09-11 Vladimir Serbinenko <phcoder@gmail.com>
  5382. * grub-core/disk/diskfilter.c (free_array) [GRUB_UTIL]: Fix memory leak.
  5383. * util/getroot.c (grub_find_device): Likewise.
  5384. (get_mdadm_uuid): Likewise.
  5385. (grub_util_is_imsm): Likewise.
  5386. (grub_util_pull_device): Likewise.
  5387. * util/grub-probe.c (probe): Likewise.
  5388. 2012-09-10 Benoit Gschwind <gschwind>
  5389. * grub-core/loader/efi/appleloader.c (devpath_8): New var.
  5390. (devs): Add devpath_8.
  5391. 2012-09-08 Peter Jones <pjones@redhat.com>
  5392. * grub-core/Makefile.core.def (efifwsetup): New module.
  5393. * grub-core/commands/efi/efifwsetup.c: New file.
  5394. * grub-core/kern/efi/efi.c (grub_efi_set_variable): New function
  5395. * include/grub/efi/api.h (GRUB_EFI_OS_INDICATIONS_BOOT_TO_FW_UI):
  5396. New define.
  5397. * include/grub/efi/efi.h (grub_efi_set_variable): New proto.
  5398. 2012-09-05 Jiri Slaby <jslaby@suse.cz>
  5399. * configure.ac: Add SuSe path.
  5400. 2012-09-05 Colin Watson <cjwatson@ubuntu.com>
  5401. * NEWS: Fix typo.
  5402. 2012-09-05 Colin Watson <cjwatson@ubuntu.com>
  5403. * util/import_gcry.py: Sort cipher_files, to make build system
  5404. generation more deterministic.
  5405. 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
  5406. * grub-core/disk/ieee1275/ofdisk.c (scan): Check function return value.
  5407. * grub-core/lib/ieee1275/datetime.c (grub_get_datetime): Likewise.
  5408. (grub_set_datetime): Likewise.
  5409. 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
  5410. * grub-core/script/yylex.l: Ignore unused-function and sign-compare
  5411. warnings.
  5412. 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
  5413. * grub-core/partmap/dvh.c (grub_dvh_is_valid): Add missing byteswap.
  5414. 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
  5415. * grub-core/fs/xfs.c (grub_xfs_read_block): Make keys a const pointer.
  5416. 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
  5417. * Makefile.am (EXTRA_DIST): Add linguas.sh. It's only strictly
  5418. required for checkouts from bzr, but it may be useful for users or
  5419. distributors wishing to update translations against a tarball
  5420. distribution, and it can be helpful for the tarball to be a superset
  5421. of what's in bzr.
  5422. 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
  5423. * Makefile.am (EXTRA_DIST): Add
  5424. grub-core/tests/boot/linux.init-mips.S,
  5425. grub-core/tests/boot/linux.init-ppc.S, and
  5426. grub-core/tests/boot/linux-ppc.cfg.
  5427. 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
  5428. * grub-core/mmap/mips/loongson: Remove empty directory.
  5429. 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
  5430. * docs/man/grub-mkdevicemap.h2m: Remove, since grub-mkdevicemap is
  5431. gone.
  5432. 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
  5433. * .bzrignore: Add grub-bios-setup, grub-ofpathname, and
  5434. grub-sparc64-setup.
  5435. 2012-08-05 Grégoire Sutre <gregoire.sutre@gmail.com>
  5436. * configure.ac: Strengthen the test for working -nostdinc -isystem.
  5437. 2012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
  5438. * po/POTFILES.in: Regenerated.
  5439. 2012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
  5440. * docs/grub.texi: Note that NetBSD/i386 is Multiboot-compliant.
  5441. (NetBSD): New subsection.
  5442. 2012-07-22 Ales Nesrsta <starous@volny.cz>
  5443. * grub-core/bus/usb/ehci.c: PCI iter. - added PCI bus master setting.
  5444. * grub-core/bus/usb/ohci.c: PCI iter. - added PCI bus master setting.
  5445. 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
  5446. * util/grub-mkconfig_lib.in (grub_quote): Remove extra layer of escape.
  5447. * util/grub.d/10_hurd.in: Add missing quoting.
  5448. * util/grub.d/10_illumos.in: Likewise.
  5449. * util/grub.d/10_kfreebsd.in: Likewise.
  5450. * util/grub.d/10_linux.in: Likewise.
  5451. * util/grub.d/20_linux_xen.in: Likewise.
  5452. 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
  5453. New command `lsefi'.
  5454. * grub-core/Makefile.core.def (lsefi): New module.
  5455. * grub-core/commands/efi/lsefi.c: New file.
  5456. * include/grub/efi/api.h: Add more GUIDs.
  5457. 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
  5458. * grub-core/loader/i386/bsd.c (grub_bsd_elf32_size_hook): Fix mask.
  5459. (grub_bsd_elf32_hook): Likewise.
  5460. (grub_bsd_elf64_size_hook): Likewise.
  5461. (grub_bsd_elf64_hook): Likewise.
  5462. (grub_bsd_load_elf): Likewise.
  5463. 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
  5464. * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Fix behaviour
  5465. if hash function is unavailable.
  5466. (dec_stream_header): Likewise.
  5467. 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
  5468. * grub-core/normal/autofs.c (autoload_fs_module): Save and restore
  5469. filter state.
  5470. 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
  5471. Fix coreboot compilation.
  5472. * grub-core/term/i386/pc/vga_text.c (grub_vga_text_init): Rename to ...
  5473. (grub_vga_text_init_real): ... this.
  5474. (grub_vga_text_fini): Rename to ...
  5475. (grub_vga_text_fini_real): ... this.
  5476. 2012-07-07 Vladimir Serbinenko <phcoder@gmail.com>
  5477. * grub-core/Makefile.am: Fix path to boot/i386/pc/startup_raw.S.
  5478. 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
  5479. * grub-core/lib/legacy_parse.c: Support clear and testload.
  5480. 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
  5481. * grub-core/term/efi/serial.c: Support 1.5 stop bits.
  5482. 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
  5483. * grub-core/fs/ext2.c: Experimental support for 64-bit.
  5484. 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
  5485. * grub-core/net/tftp.c (ack): Fix endianness problem.
  5486. (tftp_receive): Likewise.
  5487. Reported by: Michael Davidsaver.
  5488. 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
  5489. * gentpl.py: Make mans depend on grub-mkconfig_lib.
  5490. 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
  5491. * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE): New macro.
  5492. * include/grub/command.h (FOR_COMMANDS_SAFE): Likewise.
  5493. * grub-core/commands/help.c (grub_cmd_help): Use FOR_COMMANDS_SAFE.
  5494. 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
  5495. * grub-core/loader/i386/linux.c (find_efi_mmap_size): Don't decrease
  5496. efi_mmap_size.
  5497. Reported by: Stuart Hayes.
  5498. 2012-06-28 Vladimir Serbinenko <phcoder@gmail.com>
  5499. Add monochrome text support (mda_text, aka `hercules' in grub-legacy).
  5500. * grub-core/Makefile.core.def (mda_text): New module.
  5501. * grub-core/lib/legacy_parse.c (grub_legacy_parse): Support `hercules'.
  5502. * grub-core/term/i386/vga_common.c (grub_console_cur_color): Moved to ..
  5503. * grub-core/term/i386/pc/vga_text.c (cur_color): ... here
  5504. * grub-core/term/i386/pc/console.c (grub_console_cur_color): ... and
  5505. here.
  5506. * grub-core/term/i386/vga_common.c (grub_console_getwh): Moved to ..
  5507. * grub-core/term/i386/pc/vga_text.c (grub_console_getwh): ... here
  5508. * grub-core/term/i386/pc/console.c (grub_console_getwh): ... and
  5509. here.
  5510. * grub-core/term/i386/vga_common.c (grub_console_setcolorstate): Moved
  5511. to ..
  5512. * grub-core/term/i386/pc/vga_text.c (grub_console_setcolorstate):
  5513. ... here
  5514. * grub-core/term/i386/pc/console.c (grub_console_setcolorstate): ... and
  5515. here.
  5516. * grub-core/term/i386/vga_common.c: Removed.
  5517. * include/grub/i386/vga_common.h: Likewise.
  5518. * include/grub/vga.h (grub_vga_cr_bw_write): New function.
  5519. (grub_vga_cr_bw_read): Likewise.
  5520. * include/grub/vgaregs.h (GRUB_VGA_IO_CR_BW_INDEX): New enum value.
  5521. (GRUB_VGA_IO_CR_BW_DATA): Likewise.
  5522. * grub-core/term/i386/pc/vga_text.c [MODE_MDA]: Call
  5523. grub_vga_cr_bw_read/grub_vga_cr_bw_write instead of
  5524. grub_vga_cr_read/grub_vga_cr_write.
  5525. (grub_vga_text_setcolorstate) [MODE_MDA]: Ignore color.
  5526. 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
  5527. * configure.ac: Bump version to 2.00.
  5528. * grub-core/normal/main.c (features): Add feature_200_final.
  5529. 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
  5530. 2012-06-27 Jordan Uggla <jordan.uggla@gmail.com>
  5531. * NEWS: Fix unclarity and language mistakes.
  5532. 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
  5533. * grub-core/loader/i386/linux.c (find_efi_mmap_size): Increase
  5534. additional size to 3 pages.
  5535. Reported by: Stuart Hayes.
  5536. 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
  5537. * NEWS: Add 2.00 entry.
  5538. 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
  5539. * grub-core/commands/wildcard.c (check_file): Fix bad logic.
  5540. put explicit "/" for empty path.
  5541. (wildcard_expand): Improve dprintf.
  5542. 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
  5543. * grub-core/fs/fshelp.c (grub_fshelp_find_file): Don't free oldnode if
  5544. it's equal to currnode. This can happen with "" symlink.
  5545. 2012-06-27 Yves Blusseau <blusseau@zetam.org>
  5546. * util/grub-mkconfig_lib.in: Fix print messages replacing builtin
  5547. echo shell command by printf command.
  5548. 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
  5549. * grub-core/term/arc/console.c (grub_console_init_output): Add one since
  5550. the value returned by firmware is the maximal position, not diumension.
  5551. (grub_terminfo_output_state): Use a more sane fallback.
  5552. 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
  5553. * grub-core/term/terminfo.c (print_terminfo): Print terminal dimensions.
  5554. 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
  5555. * grub-core/kern/mips/arc/init.c (grub_machine_init): Set clock
  5556. frequency to 150 MHz.
  5557. 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
  5558. Apple fixes.
  5559. * grub-core/lib/i386/relocator16.S: Use correct __APPLE__ and not
  5560. __APPLE_
  5561. * grub-core/lib/i386/relocator_common.S [__APPLE__]: Fix gdtdesc
  5562. definition.
  5563. * grub-core/lib/i386/relocator64.S [__APPLE__]: Assemble jmp manually.
  5564. 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
  5565. Handle slash in HFS label.
  5566. * grub-core/fs/hfs.c (macroman_to_utf8): New argument slash_translate.
  5567. (grub_hfs_dir): Tanslate slash.
  5568. (grub_hfs_label): Don't translate slash.
  5569. 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
  5570. * grub-core/commands/ls.c (grub_ls_list_devices): Disable
  5571. network protocol listing since it introduces problematic dependency on
  5572. net module.
  5573. 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
  5574. * util/grub-mkimage.c (generate_image): Add Yeeloong verified hash.
  5575. 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
  5576. Init video early on yeeloong to avoid being rebooted by watchdog.
  5577. * grub-core/Makefile.am (gensm712): New target.
  5578. (sm712_start.S): Likewise.
  5579. (boot/mips/loongson/fwstart.S): Depend on sm712_start.S
  5580. * grub-core/boot/mips/loongson/fwstart.S [!FULOONG2F]: Init SM712.
  5581. * grub-core/video/sm712.c [GENINIT]: Generate compact init procedure
  5582. description.
  5583. * include/grub/vga.h: Move registry definitions to...
  5584. * include/grub/vgaregs.h: ... here.
  5585. 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
  5586. * grub-core/boot/decompressor/minilib.c (grub_memcmp): Fix the compare
  5587. signedness.
  5588. 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
  5589. * util/grub-install.in: Fix dvhtool invocation. Add arc to the list of
  5590. platforms with firmware disk drivers in the core.
  5591. 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
  5592. * grub-core/disk/diskfilter.c (scan_disk) [GRUB_UTIL]: Put more
  5593. informative verbose message.
  5594. (read_lv): Handle 64-bit segment size.
  5595. 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
  5596. * grub-core/disk/lvm.c (grub_lvm_getvalue): Handle 64-bit values.
  5597. 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
  5598. * grub-core/fs/fat.c (grub_fat_iterate_dir_next): Don't stop on a space
  5599. character but still remove trainling spaces.
  5600. (grub_fat_label): Ignore archive flag.
  5601. 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
  5602. * grub-core/loader/i386/linux.c (grub_cmd_initrd): Avoid unnecessarry
  5603. cast between linux_kernel_header and linux_kernel_params.
  5604. 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
  5605. * include/grub/diskfilter.h (grub_raid5_recover_func_t): Use proper
  5606. type for size.
  5607. (grub_raid6_recover_func_t): Likewise.
  5608. * grub-core/disk/raid5_recover.c (grub_raid5_recover): Likewise.
  5609. * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
  5610. 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
  5611. * util/grub-mkimage.c (generate_image): Add Fuloong2F verified hash.
  5612. 2012-06-25 Grégoire Sutre <gregoire.sutre@gmail.com>
  5613. Fix overflow.
  5614. * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size)
  5615. [__NetBSD__]: Add explicit cast before bitshift.
  5616. 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
  5617. * configure.ac: Bump to 2.00~rc1.
  5618. 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
  5619. * grub-core/boot/mips/loongson/fwstart.S: Add missing setting of high
  5620. half of $a0.
  5621. 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
  5622. 2012-06-23 Jordan Uggla <jordan.uggla@gmail.com>
  5623. * docs/grub.texi: Fix search syntax.
  5624. (Multi-boot manual config): Put msdos rather than GPT example.
  5625. Grammar corrections.
  5626. 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
  5627. * docs/grub.texi (Multi-boot manual config): Use --set. Improve remark.
  5628. 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
  5629. * grub-core/kern/mm.c (grub_free): Fix agglomerating of free regions.
  5630. 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
  5631. * grub-core/kern/mm.c (get_header_from_pointer): Put a more informative
  5632. message on double free. Put the value of magic in case of mismatch.
  5633. 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
  5634. Speed-up video on yeeloong.
  5635. * grub-core/video/sm712.c (framebuffer): Remove render_target and
  5636. add cached_ptr.
  5637. (grub_video_sm712_video_fini): Unmap cached_ptr.
  5638. (grub_video_sm712_setup): Use cache address and grub_video_fb_setup.
  5639. (grub_video_sm712_set_active_render_target): Removed.
  5640. (grub_video_adapter): Use grub_video_fb_set_active_render_target.
  5641. (grub_video_sm712_swap_buffers): Call grub_video_fb_swap_buffers and
  5642. sync caches.
  5643. 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
  5644. Avoid flushing the same line multiple times on loongson.
  5645. * grub-core/kern/mips/cache.S [GRUB_MACHINE_MIPS_LOONGSON]:
  5646. Step in 32 bytes and not 1 byte.
  5647. * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]:
  5648. Likewise.
  5649. 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
  5650. * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle btrfs
  5651. subvolumes.
  5652. 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
  5653. Implement flow control for http.
  5654. * grub-core/net/http.c (parse_line): Handle response 206.
  5655. (http_receive): Stall if too many packets are in the queue.
  5656. (http_establish): Fix range header.
  5657. (http_seek): Fix double free.
  5658. (http_close): Likewise.
  5659. (http_packets_pulled): New function.
  5660. (grub_http_protocol): Set http_seek
  5661. * grub-core/net/tcp.c (grub_net_tcp_socket): New field `i_stall'.
  5662. (ack_real): Set window depending on i_stall.
  5663. (grub_net_send_tcp_packet): Likewise.
  5664. (grub_net_tcp_stall): New function.
  5665. (grub_net_tcp_unstall): Likewise.
  5666. * include/grub/net/tcp.h (grub_net_tcp_stall): New proto.
  5667. (grub_net_tcp_unstall): Likewise.
  5668. 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
  5669. * grub-core/net/tftp.c: Decrease stall to 50 packets.
  5670. 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
  5671. * grub-core/net/net.c (grub_net_fs_open): Free resources on failed open.
  5672. 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
  5673. * tests/util/grub-shell.in: Fix a typo.
  5674. 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
  5675. Implement flow control for tftp.
  5676. * grub-core/net/net.c (receive_packets): Decrease the stop to 10
  5677. packets but stop only if stop condition is satisfied.
  5678. (grub_net_fs_read_real): Call packets_pulled after real read. Use
  5679. `stall' instead of `eof' as stop condition.
  5680. * grub-core/net/http.c (parse_line): Set `stall' on EOF.
  5681. (http_err): Likewise.
  5682. * grub-core/net/tftp.c (ack): Replace the first argument with data
  5683. instead of socket.
  5684. (tftp_receive): Stall if too many packets are in wait queue.
  5685. (tftp_packets_pulled): New function.
  5686. (grub_tftp_protocol): Set packets_pulled.
  5687. * include/grub/net.h (grub_net_packets): New field count.
  5688. (grub_net_put_packet): Increment count.
  5689. (grub_net_remove_packet): Likewise.
  5690. (grub_net_app_protocol): New field `packets_pulled'.
  5691. (grub_net): New field `stall'.
  5692. 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
  5693. * grub-core/net/net.c (receive_packets): Stop after 100 packets to let
  5694. sync part to handle them.
  5695. 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
  5696. * grub-core/kern/main.c (grub_set_prefix_and_root): Fix memory leak.
  5697. * grub-core/net/drivers/ieee1275/ofnet.c
  5698. (grub_ieee1275_net_config_real): Likewise.
  5699. 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
  5700. * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Don't create
  5701. the direct route for server/gateway.
  5702. 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
  5703. * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Prefer
  5704. IP address to server name since we may not hame the DNS.
  5705. 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
  5706. * grub-core/net/dns.c (grub_cmd_nslookup): Init addresses to 0 to avoid
  5707. freeing random buffer on failure.
  5708. * grub-core/net/net.c (grub_net_resolve_address): Likewise.
  5709. 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
  5710. * grub-core/net/bootp.c (grub_cmd_bootp): Fix packet allocation size.
  5711. 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
  5712. * grub-core/net/drivers/emu/emunet.c (get_card_packet): Allocate the
  5713. reserved bytes.
  5714. * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Likewise.
  5715. * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Likewise.
  5716. Handle malloc error correctly.
  5717. 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
  5718. * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
  5719. blocks.
  5720. 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
  5721. * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix double
  5722. increment.
  5723. 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
  5724. * grub-core/net/dns.c (grub_cmd_nslookup): Use configured DNS servers if
  5725. none is explicitly specified.
  5726. 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
  5727. * grub-core/net/dns.c (grub_net_add_dns_server): Don't erase old servers
  5728. while reallocating.
  5729. 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
  5730. Respect netmask from bootp/dhcp.
  5731. * grub-core/net/bootp.c (parse_dhcp_vendor): Parse mask.
  5732. (grub_net_configure_by_dhcp_ack): Use mask and grub_net_add_ipv4_local.
  5733. * grub-core/net/net.c (grub_net_add_addr): Split creating local route
  5734. into ...
  5735. (grub_net_add_ipv4_local): ... this.
  5736. (grub_cmd_addaddr): Use grub_net_add_ipv4_local.
  5737. * include/grub/net.h (GRUB_NET_BOOTP_NETMASK): New enum value.
  5738. (grub_net_add_ipv4_local): New proto.
  5739. 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
  5740. * grub-core/loader/i386/linux.c (grub_linux_boot): Setup video before
  5741. determining EFI memory map size.
  5742. 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
  5743. * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Escape commas.
  5744. 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
  5745. * grub-core/kern/main.c (grub_set_prefix_and_root): Skip escaped commas
  5746. when looking for partition separator.
  5747. 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
  5748. * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
  5749. Escape commas.
  5750. 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
  5751. Restructure FAT driver to avoid hook in label reading as it hits a
  5752. GCC bug.
  5753. * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_EOF.
  5754. * grub-core/fs/fat.c (grub_fat_iterate_context): New struct.
  5755. (grub_fat_iterate_dir): Split into ...
  5756. (grub_fat_iterate_init): ... this, ...
  5757. (grub_fat_iterate_fini): ... this, ...
  5758. (grub_fat_iterate_dir_next): ... and this. All users updated.
  5759. 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
  5760. * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
  5761. GRUB_IEEE1275_FLAG_BROKEN_REPEAT.
  5762. * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
  5763. GRUB_IEEE1275_FLAG_BROKEN_REPEAT on PowerBook3,3.
  5764. * include/grub/terminfo.h (grub_terminfo_input_state) [__powerpc__]:
  5765. New fields last_key and last_key_time.
  5766. * grub-core/term/terminfo.c (grub_terminfo_getkey): Transform
  5767. extended key-esc into extended key-extended key.
  5768. 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
  5769. Avoid unnecessary memcpy of whole video buffer.
  5770. * grub-core/video/fb/video_fb.c (dirty): New struct.
  5771. (framebuffer): Add members current_dirty and previous_dirty.
  5772. (dirty): New function.
  5773. (grub_video_fb_fill_rect): Update dirty.
  5774. (common_blitter): Likewise.
  5775. (grub_video_fb_scroll): Likewise.
  5776. (doublebuf_blit_update_screen): Copy only dirty part.
  5777. (doublebuf_pageflipping_update_screen): Likewise.
  5778. (grub_video_fb_doublebuf_blit_init): Init dirty.
  5779. (doublebuf_pageflipping_init): Likewise.
  5780. (grub_video_fb_setup): Likewise.
  5781. 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
  5782. * grub-core/net/drivers/ieee1275/ofnet.c (search_net_devices): Decrease
  5783. poll rate.
  5784. 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
  5785. Fix wildcard regexp dot and other special characters handling.
  5786. Reported by: Robert Mabee.
  5787. * grub-core/commands/wildcard.c (isregexop): Add "|+{}[]?".
  5788. (make_regex): Escape "|+{}[]". Transform '?' to '.?'.
  5789. (split_path): Trigger expansion on '?'.
  5790. (unescape): New function.
  5791. (wildcard_expand): Unescape parts copied without globbing.
  5792. * grub-core/script/execute.c (wildcard_escape): Escape '?'.
  5793. (grub_script_arglist_to_argv): Don't unescape expansions.
  5794. 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
  5795. * include/grub/net.h (grub_net_card): New member txbufsize.
  5796. * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum values
  5797. GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
  5798. GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN.
  5799. * grub-core/net/drivers/efi/efinet.c (grub_efinet_findcards): Use
  5800. txbufsize.
  5801. * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Use
  5802. compatible property to check for macs. Set
  5803. GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
  5804. GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN on macs.
  5805. * grub-core/net/drivers/ieee1275/ofnet.c (card_open): Don't add suffix
  5806. if GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX is set.
  5807. (send_card_buffer): Use txbuf.
  5808. (grub_ofnet_findcards): Allocate txbuf. Simplify code flow and move
  5809. nested function out of the parent while on it.
  5810. 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
  5811. * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Fix packet
  5812. presence check.
  5813. (grub_ieee1275_net_config_real): Fix config pointer.
  5814. 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
  5815. * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Extend
  5816. filename parsing to non-block devices.
  5817. 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
  5818. * grub-core/kern/device.c (grub_device_open): Remove dead code.
  5819. 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
  5820. * include/grub/elf.h: Rename R_PPC to GRUB_R_PPC to avoid collisions.
  5821. All users updated.
  5822. 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
  5823. * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Generate
  5824. UUID search command even if hints probing failed.
  5825. 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
  5826. * po/POTFILES.in: Regenerated.
  5827. 2012-06-17 Vladimir Serbinenko <phcoder@gmail.com>
  5828. Speed-up video on fuloong.
  5829. * grub-core/bus/bonito.c (grub_pci_device_map_range_cached):
  5830. New function.
  5831. (grub_pci_device_unmap_range): Handle non-cached address.
  5832. * grub-core/video/sis315pro.c (framebuffer): Remove render_target and
  5833. add direct_ptr.
  5834. (grub_video_sis315pro_video_fini): Unmap direct_ptr.
  5835. (grub_video_sis315pro_setup): Use cache address and grub_video_fb_setup.
  5836. (grub_video_sis315pro_set_active_render_target): Removed.
  5837. (grub_video_sis315pro_get_info_and_fini): Use uncached address.
  5838. (grub_video_adapter): Use grub_video_fb_set_active_render_target.
  5839. (grub_video_sis315pro_swap_buffers): Call grub_video_fb_swap_buffers and
  5840. sync caches.
  5841. * include/grub/mips/loongson/pci.h (grub_pci_device_map_range_cached):
  5842. New proto.
  5843. 2012-06-16 Vladimir Serbinenko <phcoder@gmail.com>
  5844. * docs/grub.texi (Multi-boot manual config): New section.
  5845. 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
  5846. Avoid slow read-back from VRAM.
  5847. * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
  5848. Move from here ...
  5849. * grub-core/video/fb/video_fb.c
  5850. (grub_video_fb_doublebuf_update_screen_t): ... here. Remove arguments.
  5851. * grub-core/video/fb/video_fb.c (framebuf_t): New type.
  5852. (front_target): Remove front_target. Add pages.
  5853. (grub_video_fb_init): Skip setting front_pages.
  5854. (grub_video_fb_fini): Likewise.
  5855. (doublebuf_blit_update_screen): Use pages.
  5856. (grub_video_fb_doublebuf_blit_init): Likewise.
  5857. (doublebuf_pageflipping_init): Allocate offscreen buffer.
  5858. (doublebuf_pageflipping_update_screen): Use offscreen buffer.
  5859. (grub_video_fb_setup): Prefer doublebuffing.
  5860. 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
  5861. * grub-core/normal/main.c (GRUB_MOD_INIT): Ignore errors when loading
  5862. gzio.
  5863. 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
  5864. Add loongson tests.
  5865. * tests/util/grub-shell.in: Handle loongson.
  5866. * tests/partmap_test.in: Add loongson to the list of platform using ATA
  5867. drivers.
  5868. * grub-core/tests/boot/linux.init-mips.S (SHUTDOWN_MAGIC3) [REBOOT]:
  5869. Reboot instead of shutdown if REBOOT is defined.
  5870. 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
  5871. * grub-core/lib/mips/loongson/reboot.c (grub_reboot): Use 32-bit
  5872. sized ports since unlike on real hardware qemu supports only 32-bit
  5873. regs.
  5874. 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
  5875. * Makefile.util.def (grub-mkrescue): Enable on loongson.
  5876. * util/grub-mkrescue.in: Handle loongson.
  5877. 2012-06-14 Vladimir Serbinenko <phcoder@gmail.com>
  5878. * util/getroot.c (convert_system_partition_to_system_disk) [__APPLE__]:
  5879. Set is_part appropriately.
  5880. (grub_util_biosdisk_get_grub_dev): Use is_part rather than comparing
  5881. names. Canonicalize partition without full disk.
  5882. 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
  5883. Revert usb-quiesce since it's wrong.
  5884. * grub-core/disk/ieee1275/ofdisk.c (quiesce): Removed.
  5885. (grub_ofdisk_init): Don't do quiesce.
  5886. 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
  5887. * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Apply
  5888. PowerMac workaround to Xserves as well.
  5889. Information supplied by: Benjamin Herrenschmidt.
  5890. 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
  5891. Don't assume that beginning address is also the entry point on ppc.
  5892. * grub-core/loader/powerpc/ieee1275/linux.c (linux_entry): New variable.
  5893. (grub_linux_boot): Use linux_entry.
  5894. (grub_linux_load32): Fill linux_entry. Fix setting linux_addr.
  5895. (grub_linux_load64): Likewise.
  5896. 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
  5897. * util/grub-install.in: Fix cross-disk check on non-PreP machines.
  5898. 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
  5899. * grub-core/term/ieee1275/console.c (grub_console_fini): Don't
  5900. needlessly lose the console.
  5901. 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
  5902. * grub-core/normal/dyncmd.c (read_command_list): Don't access freed
  5903. space.
  5904. 2012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
  5905. Remove non-functional EFI grub_get_rtc. Put a better fatal message
  5906. than current grub_get_rtc() not implemented when booted with
  5907. coreboot without TSC.
  5908. * grub-core/Makefile.am: Exclude efi/time.h from kernel headers.
  5909. Add machine/time.h to kernel headers on loongson.
  5910. * grub-core/Makefile.core.def (kernel): Remove
  5911. kern/generic/rtc_get_time_ms.c on qemu-multiboot-coreboot.
  5912. * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms): Removed.
  5913. (grub_get_rtc): Likewise.
  5914. * grub-core/kern/generic/rtc_get_time_ms.c: Include grub/machine/time.h.
  5915. * grub-core/kern/i386/coreboot/init.c (grub_get_rtc): Removed.
  5916. * grub-core/kern/i386/pc/init.c: Include grub/machine/init.h.
  5917. * grub-core/kern/i386/tsc.c (grub_tsc_init)
  5918. [!GRUB_MACHINE_PCBIOS && !GRUB_MACHINE_IEEE1275]: Call grub_fatal
  5919. rather than installing known non-working time source.
  5920. * grub-core/kern/ieee1275/init.c (grub_get_rtc): Removed.
  5921. * grub-core/kern/mips/loongson/init.c: Include grub/machine/time.h.
  5922. * include/grub/time.h: Don't include machine/time.h.
  5923. * include/grub/efi/time.h: Removed.
  5924. * include/grub/i386/efi/time.h: Likewise.
  5925. * include/grub/i386/ieee1275/time.h: Likewise.
  5926. * include/grub/powerpc/ieee1275/time.h: Likewise.
  5927. * include/grub/sparc64/ieee1275/time.h: Likewise.
  5928. * include/grub/x86_64/efi/time.h: Likewise.
  5929. 2012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
  5930. Remove dot on i and j when combining with above diacritics.
  5931. * include/grub/unicode.h (GRUB_UNICODE_DOTLESS_LOWERCASE_I): New enum
  5932. value.
  5933. (GRUB_UNICODE_DOTLESS_LOWERCASE_J): Likewise.
  5934. * grub-core/font/font.c (grub_font_construct_dry_run): Replace i and j
  5935. with dotless variants when any combining above is present.
  5936. 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
  5937. * tests/grub_script_expansion.in: Explicitly tell grep that we handle
  5938. text and not binary.
  5939. 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
  5940. Stop polling as soon as we have the packet we were waiting for.
  5941. * include/grub/net.h (grub_net_poll_cards): New argument stop_condition.
  5942. All users updated.
  5943. * grub-core/net/arp.c (have_pending): New var.
  5944. (pending_req): Likewise.
  5945. (grub_net_arp_send_request): Fill pending_req and use have_pending as
  5946. stop indicator.
  5947. (grub_net_arp_receive): Set have_pending.
  5948. * grub-core/net/dns.c (recv_data): New field stop.
  5949. (recv_hook): Set stop.
  5950. (grub_net_dns_lookup): Init stop and use as stop condition.
  5951. * grub-core/net/http.c (http_establish): Use headers_recv as stop
  5952. condition.
  5953. * grub-core/net/net.c (grub_net_poll_cards): New argument
  5954. stop_condition. Stop when it goes true.
  5955. * grub-core/net/tcp.c (grub_net_tcp_open): Use `established' as stop
  5956. indicator.
  5957. * grub-core/net/tftp.c (tftp_open): Use `have_oack' as stop indicator.
  5958. 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
  5959. Keep TX and RX buffers on EFI rather than always allocate new ones.
  5960. * include/grub/net.h (grub_net_card_driver): Allow driver to modify
  5961. card. All users updated.
  5962. (grub_net_card): New members txbuf, rcvbuf, rcvbufsize and txbusy.
  5963. * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Reuse buffer.
  5964. (get_card_packet): Likewise.
  5965. (grub_efinet_findcards): Init new fields.
  5966. 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
  5967. * grub-core/term/ieee1275/serial.c (do_real_config): Fix cast to fix
  5968. compilation error on sparc64.
  5969. 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
  5970. Use ITC on IA64 rather than broken routine based on daytime.
  5971. * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms) [__ia64__]: Remove on
  5972. ia64.
  5973. (grub_get_rtc) [__ia64__]: Likewise.
  5974. * grub-core/kern/ia64/efi/init.c (divisor): New variable.
  5975. (get_itc): New function.
  5976. (grub_rtc_get_time_ms): Likewise.
  5977. (grub_machine_init): Calibrate ITC.
  5978. * include/grub/efi/time.h (grub_get_rtc), (GRUB_TICKS_PER_SECOND):
  5979. Keep only on non-ia64. Don't export since it's broken and used only
  5980. if TSC is unavailable.
  5981. 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
  5982. * grub-core/disk/efi/efidisk.c (find_parent_device): Return the parent
  5983. even if it's used.
  5984. (name_devices): Replace #if 0 with #ifdef DEBUG_NAMES.
  5985. Skip if parent is unused.
  5986. 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
  5987. * tests/partmap_test.in: Skip on ppc due to serious firmware bug.
  5988. 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
  5989. Fix wildcard escaping.
  5990. * grub-core/commands/wildcard.c (wildcard_escape): Moved from here ...
  5991. * grub-core/script/execute.c (wildcard_escape): .. to here.
  5992. Don't escape dot.
  5993. * grub-core/commands/wildcard.c (wildcard_unescape): Moved from here ...
  5994. * grub-core/script/execute.c (wildcard_unescape): .. to here.
  5995. Don't escape dot.
  5996. * grub-core/script/execute.c (gettext_append): Always escape.
  5997. (grub_script_arglist_to_argv): Always handle escaping/unescaping.
  5998. * grub-core/script/yylex.l: Don't cut away the escaping.
  5999. * tests/grub_script_echo1.in: Add tests with wildcard.
  6000. 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
  6001. * grub-core/bus/usb/serial/ftdi.c (real_config): Handle 1.5 stop bits.
  6002. (ftdi_hw_configure): Likewise.
  6003. * grub-core/bus/usb/serial/pl2303.c (GRUB_PL2303_STOP_BITS_1_5): New
  6004. define.
  6005. (real_config): Handle 1.5 stop bits.
  6006. (pl2303_hw_configure): Likewise.
  6007. 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
  6008. * Makefile.am: Add ppc linux bootcheck.
  6009. * grub-core/tests/boot/linux-ppc.cfg: New file.
  6010. * grub-core/tests/boot/linux.init-ppc.S: Likewise.
  6011. 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
  6012. * tests/grub_script_expansion.in: Skip network protocols.
  6013. 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
  6014. * tests/util/grub-shell.in: Use escc-ch-a port on ppc.
  6015. 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
  6016. * util/powerpc/ieee1275/grub-mkrescue.in: Handle (and ignore)
  6017. --rom-directory.
  6018. Add -graft-points.
  6019. 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
  6020. ESCC serial driver for conducting sautomated tests in qemu.
  6021. Not tested on real hardware.
  6022. * include/grub/serial.h (grub_serial_port): New field escc_desc.
  6023. * grub-core/term/ieee1275/escc.c: New file.
  6024. * grub-core/Makefile.core.def (escc): New module.
  6025. 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
  6026. * grub-core/term/ieee1275/serial.c (do_real_config): Set handle to
  6027. invalid on error.
  6028. (serial_hw_fetch): Don't read invalid handle.
  6029. (serial_hw_put): Don't write into invalid handle.
  6030. 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
  6031. Add a 1.5 stop bits value.
  6032. * grub-core/term/serial.c (grub_cmd_serial): Handle 1.5.
  6033. * include/grub/serial.h (grub_serial_stop_bits_t): Add
  6034. GRUB_SERIAL_STOP_BITS_1_5.
  6035. 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
  6036. * grub-core/commands/wildcard.c (wildcard_expand): Set default return
  6037. value rather than let it uninited.
  6038. 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
  6039. * grub-core/commands/wildcard.c (+check_file): New function.
  6040. (wildcard_expand): Don't expand to non-existing files, expand with
  6041. suffix and not attempt to expand if not needed.
  6042. 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
  6043. * grub-core/disk/efi/efidisk.c (name_devices): Don't make disks
  6044. out of partitions containing other partitions.
  6045. 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
  6046. Pass PCIINFO on BIOS to OpenBSD since otherwise it fails to boot
  6047. on some qemu versions with GRUB.
  6048. * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_PCIBIOS): New
  6049. define.
  6050. (grub_openbsd_bootarg_pcibios): New struct.
  6051. * grub-core/loader/i386/bsd.c (grub_openbsd_boot) [GRUB_MACHINE_PCBIOS]:
  6052. Add PCIINFO.
  6053. 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
  6054. * tests/util/grub-shell.in: Trim firmware output on EFI.
  6055. 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
  6056. * grub-core/Makefile.core.def (vga_text): Disable on muliboot
  6057. and coreboot since it's already in kernel.
  6058. 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
  6059. * util/getroot.c (grub_util_get_dm_node_linear_info): Moved from here...
  6060. * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
  6061. to here. New return value start. All users updated.
  6062. Recursively scan linear mappings.
  6063. * include/grub/emu/hostdisk.h (grub_util_get_dm_node_linear_info): New
  6064. proto.
  6065. * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
  6066. Use grub_util_get_dm_node_linear_info.
  6067. * util/getroot.c (convert_system_partition_to_system_disk): Use
  6068. grub_util_info rather than grub_dprintf.
  6069. (grub_util_biosdisk_get_grub_dev): Add a new grub_util_info.
  6070. 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
  6071. Move handling of GRUB_QEMU_OPTS to grub-shell so that make check works.
  6072. * Makefile.am: Remove GRUB_QEMU_OPTS handling.
  6073. * tests/util/grub-shell.in: Add GRUB_QEMU_OPTS handling.
  6074. 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
  6075. * include/grub/types.h (grub_set_unaligned64): New function.
  6076. * util/grub-setup.c (write_rootdev): Use unaligned access functions.
  6077. (setup): Likewise.
  6078. 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
  6079. * grub-core/disk/ieee1275/ofdisk.c (quiesce): New function.
  6080. (grub_ofdisk_fini): Quiesce USB devices.
  6081. 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
  6082. * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_boot): Sync
  6083. caches.
  6084. 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
  6085. * util/grub-fstest.c (cmd_crc): Use grub_get_unaligned32 for safety.
  6086. 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
  6087. * grub-core/disk/pata.c (grub_pata_pio_read)
  6088. [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't byteswap even on mipseb.
  6089. (grub_pata_pio_write) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
  6090. 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
  6091. Extend automated tests to qemu-mips.
  6092. * Makefile.am: reorganise tests and enable qemu-mips.
  6093. * configure.ac (COND_mipseb), (COND_mipsel): New conditions.
  6094. * grub-core/tests/boot/linux.init-mips.S: New file.
  6095. * tests/partmap_test.in: Handle ata0 disks.
  6096. * tests/util/grub-shell.in: Handle qemu-mips. Make defaults work on
  6097. non-pc i386.
  6098. 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
  6099. * Makefile.util.def (grub-mkrescue) Anable on mips_qemu_mips and
  6100. ia64.
  6101. * util/grub-mkrescue.in: Handle qemu-mips and ia64. Add missing
  6102. quotes while on it.
  6103. 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
  6104. * grub-core/kern/mips/qemu_mips/init.c (grub_exit): Implement.
  6105. (grub_halt): Likewise.
  6106. * grub-core/lib/mips/qemu_mips/reboot.c (grub_reboot): Likewise.
  6107. 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
  6108. * grub-core/term/serial.c (grub_serial_register)
  6109. [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't autostart console in order to bring
  6110. the behaviour in line with x86 platforms.
  6111. 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
  6112. * grub-core/commands/hdparm.c (le16_to_char): Always byte-swap strings.
  6113. (grub_ata_strncpy): Likewise.
  6114. (grub_ata_identify): Add missing byteswaps.
  6115. 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
  6116. * grub-core/term/i386/pc/vga_text.c (screen_write_char): Add missing
  6117. byte-swap.
  6118. (screen_read_char): Likewise.
  6119. (grub_vga_text_cls): Likewise.
  6120. 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
  6121. * grub-core/loader/efi/chainloader.c (copy_file_path): Handle non-ASCII
  6122. filenames.
  6123. (make_file_path): Likewise.
  6124. 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
  6125. * grub-core/disk/ieee1275/ofdisk.c (scan): Support vscsi on IBM
  6126. machines.
  6127. Tested by: Paulo Flabiano Smorigo.
  6128. Crucial information about API supplied by: Coleen <Last name unknown>.
  6129. Reviewed by: Coleen <Last name unknown>.
  6130. 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
  6131. * util/grub-mkimage.c: Disable -Wcast-align.
  6132. 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
  6133. * grub-core/genmod.sh.in: Enable objconv errors 2030, 2050 and 2031
  6134. as they are fatal.
  6135. 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
  6136. * grub-core/Makefile.am (rs_decoder.S): Add missing -ffreestanding.
  6137. 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
  6138. * util/grub-probe.c (escape_of_path): Fix double free.
  6139. 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
  6140. * grub-core/commands/videoinfo.c (hook): Show pitch.
  6141. 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
  6142. * util/grub.d/20_linux_xen.in: Skip xen-syms.
  6143. 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
  6144. * util/grub-probe.c (escape_of_path): Don't add ieee1275/.
  6145. (probe): Add ieee1275 to OFW devices.
  6146. 2012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
  6147. * util/ieee1275/ofpath.c (of_path_of_scsi): Fix wrong format specifier.
  6148. 2012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
  6149. Handle IBM OFW path.
  6150. * util/ieee1275/ofpath.c (find_obppath): Use devspec if obppath isn't
  6151. available.
  6152. (of_path_of_scsi): Handle vdevice.
  6153. 2012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
  6154. * grub-core/mmap/i386/pc/mmap.c (malloc_hook):
  6155. Allocate in multiples of 16 to avoid adding a few bytes free region the
  6156. windows bugs upon.
  6157. 2012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
  6158. * grub-core/commands/i386/pc/drivemap.c (install_int13_handler):
  6159. Allocate in multiples of 16 to avoid adding a few bytes free region the
  6160. windows bugs upon.
  6161. * grub-core/mmap/i386/pc/mmap.c (malloc_hook): Likewise.
  6162. 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
  6163. * grub-core/video/efi_gop.c (grub_video_gop_setup): Reject invalid
  6164. resolutions.
  6165. * grub-core/video/i386/pc/vbe.c (grub_vbe_get_preferred_mode): Likewise.
  6166. * grub-core/video/video.c (grub_video_edid_preferred_mode): Likewise.
  6167. 2012-06-02 Isao Shimizu <isaoshimizu@gmail.com>
  6168. * util/ieee1275/ofpath.c (check_sas): Fix sas path.
  6169. 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
  6170. * grub-core/normal/menu_entry.c (print_line): Fix off-by-one error which
  6171. resulted in \\ at the end of the line.
  6172. 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
  6173. * grub-core/kern/parser.c (grub_parser_state_transitions): Handle \t.
  6174. (grub_parser_cmdline_state): Likewise.
  6175. (grub_parser_split_cmdline): Likewise.
  6176. 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
  6177. * util/getroot.c (grub_guess_root_devices): Don't canonicalise
  6178. /dev/root and /dev/dm-*.
  6179. 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
  6180. * grub-core/normal/menu_entry.c (update_screen): Fix loop condition to
  6181. fix partially stale display.
  6182. 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
  6183. * grub-core/normal/menu_entry.c (backward_char): Use right line for
  6184. substraction.
  6185. 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
  6186. * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write) [__linux__]:
  6187. Fix MBR remapping workaround.
  6188. (grub_util_biosdisk_read) [__linux__]: Likewise.
  6189. 2012-06-01 Vladimir Serbinenko <phcoder@gmail.com>
  6190. * util/grub-install.in: Check for ieee1275 and not ieee1276.
  6191. 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
  6192. * configure.ac: Bump to beta6.
  6193. 2012-05-31 Christer Weinigel <christer@weinigel.se>
  6194. * grub-core/normal/main.c (grub_file_getline): Fix off-by-one error.
  6195. 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
  6196. * grub-core/loader/i386/linux.c (grub_linux_boot): Use right version.
  6197. (grub_cmd_linux): Likewise.
  6198. 2012-05-31 Christer Weinigel <christer@weinigel.se>
  6199. Fix EHCI low-speed.
  6200. * grub-core/bus/usb/ehci.c (GRUB_EHCI_MULT_ONE): Fix the value.
  6201. (GRUB_EHCI_MULT_TWO): Likewise.
  6202. (GRUB_EHCI_MULT_THREE): Likewise.
  6203. (GRUB_EHCI_CMASK_MASK): New enum value.
  6204. (GRUB_EHCI_SMASK_MASK): Likewise.
  6205. (GRUB_EHCI_CMASK_OFF): Likewise.
  6206. (GRUB_EHCI_SMASK_OFF): Likewise.
  6207. (grub_ehci_pci_iter): Enable periodic schedule.
  6208. (grub_ehci_parse_notrun): Likewise.
  6209. (grub_ehci_restore_hw): Likewise.
  6210. (grub_ehci_setup_qh): Set flags for low speed transfers.
  6211. (grub_ehci_find_qh): Use periodic list for low speed.
  6212. (grub_ehci_setup_transfer): Check periodic queue as well.
  6213. (grub_ehci_check_transfer): Likewise.
  6214. (grub_ehci_cancel_transfer): Cancel periodic transfer.
  6215. 2012-05-31 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
  6216. * util/grub-install.in: Write core.elf in PReP even if the --no-nvram
  6217. parameter is used.
  6218. 2012-05-31 Peter Jones <pjones@redhat.com>
  6219. * include/grub/i386/linux.h (linux_kernel_params): Add v206.
  6220. * grub-core/loader/i386/linux.c (grub_linux_boot): Use v206.
  6221. (grub_cmd_linux) [__x86_64__]: Validate grub_efi_system_table.
  6222. 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
  6223. * grub-core/loader/i386/linux.c (grub_linux_boot): Fix overflow and
  6224. uninited variable. Allocate at least setup_sects.
  6225. 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
  6226. Fix handling of EFI with big memory maps.
  6227. * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_OFFSET): Removed.
  6228. (real_mode_mem): Likewise.
  6229. (real_mode_target): Likewise.
  6230. (real_mode_pages): Likewise.
  6231. (prot_mode_pages): Likewise.
  6232. (linux_params): New var.
  6233. (linux_cmdline): Likewise.
  6234. (free_pages): Don't set real mode variables.
  6235. (allocate_pages): Don't allocate real mode memory.
  6236. (grub_e820_add_region): Remove the limit.
  6237. (grub_linux_boot): Allocate and copy real mode memory.
  6238. (grub_linux_unload): Free linux_cmdline.
  6239. (grub_cmd_linux): Use temporary storage for parameters.
  6240. (grub_cmd_initrd): Likewise.
  6241. * include/grub/i386/linux.h (GRUB_E820_MAX_ENTRY): Removed.
  6242. (linux_kernel_params): Make it 1K big.
  6243. 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
  6244. * Makefile.util.def: Remove -Wno-format.
  6245. * grub-core/Makefile.core.def: Likewise.
  6246. 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
  6247. * tests/cmp_unit_test.c: Add missing failure message.
  6248. * tests/example_unit_test.c: Likewise.
  6249. * tests/printf_unit_test.c: Likewise.
  6250. 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
  6251. * grub-core/commands/gptsync.c (grub_cmd_gptsync): Propagate the
  6252. relaxation of protective MBR requirements.
  6253. 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
  6254. * configure.ac: Add condition for COND_HOST_XNU.
  6255. * Makefile.util.def (10_xnu): New script.
  6256. * util/grub.d/10_xnu.in: New file, extracted from 30_os_prober.in.
  6257. 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
  6258. * grub-core/kern/i386/pc/startup.S [__APPLE__]: Add a workaround for
  6259. objconv bug.
  6260. 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
  6261. * grub-core/gdb/i386/machdep.S: Make usable with Apple assembler.
  6262. Binary on other platforms stays identical.
  6263. 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
  6264. * configure.ac: Remove APPLE_CC and add -Wl,-allow_stack_execute on
  6265. Apple.
  6266. 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
  6267. * gentpl.py: Ignore error 2022 in objconv since it's irrelevant for us.
  6268. 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
  6269. * grub-core/lib/posix_wrap/sys/types.h [__APPLE__]: Include stddef
  6270. rather than defining size_t ourselves to avoid conflict.
  6271. 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
  6272. * grub-core/fs/hfs.c (grub_hfs_dir): Use memset instead of
  6273. initialisation to avoid __bzero reference.
  6274. 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
  6275. * grub-core/boot/i386/pc/startup_raw.S [__APPLE__]: Add Apple assembly
  6276. version.
  6277. * grub-core/commands/i386/pc/drivemap_int13h.S [__APPLE__]: Likewise.
  6278. * grub-core/kern/i386/pc/startup.S [__APPLE__]: Likewise.
  6279. * grub-core/lib/i386/relocator16.S [__APPLE__]: Likewise.
  6280. * grub-core/lib/i386/relocator_common.S [__APPLE__]: Likewise.
  6281. * grub-core/mmap/i386/pc/mmap_helper.S [__APPLE__]: Likewise.
  6282. 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
  6283. * grub-core/efiemu/runtime/efiemu.c: Replace APPLE_CC with __APPLE__.
  6284. * grub-core/kern/misc.c: Likewise.
  6285. * grub-core/loader/i386/xnu.c: Likewise.
  6286. * include/grub/i386/tsc.h: Likewise.
  6287. * include/grub/symbol.h: Likewise.
  6288. 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
  6289. * include/grub/list.h (grub_bad_type_cast_real): Remove return.
  6290. * include/grub/misc.h (ATTRIBUTE_ERROR): Make into noreturn attribute
  6291. on older compiler.
  6292. 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
  6293. * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__APPLE__]:
  6294. Implement Apple flavour.
  6295. (convert_system_partition_to_system_disk) [__APPLE__]: Likewise.
  6296. 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
  6297. * include/grub/misc.h (memcmp) [__APPLE__]: Mark as regparm 0.
  6298. (memmove) [__APPLE__]: Likewise.
  6299. (memcpy) [__APPLE__]: Likewise.
  6300. (memset) [__APPLE__]: Likewise.
  6301. * grub-core/kern/misc.c (memcmp) [__APPLE__]: Likewise.
  6302. (memmove) [__APPLE__]: Likewise.
  6303. (memcpy) [__APPLE__]: Likewise.
  6304. (memset) [__APPLE__]: Likewise.
  6305. 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
  6306. * grub-core/genmod.sh.in: Fix a bug in Apple part which caused
  6307. dependency discard.
  6308. 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
  6309. * grub-core/normal/main.c (read_config_file): Provide config_file and
  6310. config_directory.
  6311. * util/grub.d/41_custom.in: Use config_directoy when available.
  6312. 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
  6313. * grub-core/fs/bfs.c (iterate_in_b_tree): Add missing NESTED_FUNC_ATTR.
  6314. (grub_bfs_dir): Likewise.
  6315. 2012-05-27 Peter Jones <pjones@redhat.com>
  6316. The old code gives arguments to a printf function which can't work
  6317. correctly, and the compiler complains.
  6318. * grub-core/tests/example_functional_test.c (example_test): Add
  6319. missing text.
  6320. * grub-core/tests/lib/test.c (add_failure): Rewrite.
  6321. * include/grub/test.h (grub_test_assert_helper): New declaration.
  6322. (grub_test_assert): Use grub_test_assert_helper.
  6323. 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
  6324. * grub-core/Makefile.core.def (example_functional_test): Rename to ...
  6325. (exfctest): ... this to avoid overlong filenames.
  6326. All users updated.
  6327. 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
  6328. Handle "." and ".." on squashfs.
  6329. * grub-core/fs/squash4.c (grub_fshelp_node): New field stsize.
  6330. Make inode numbers into stack.
  6331. (grub_squash_read_symlink): Use stack.
  6332. (grub_squash_iterate_dir): Use stack. Create "." and ".." nodes.
  6333. (make_root_node): Fill stack.
  6334. (grub_squash_open): Use stack.
  6335. 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
  6336. * grub-core/kern/emu/hostdisk.c (open_device): Set dest->dev to 0 after
  6337. freeing.
  6338. 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
  6339. * util/grub-mkconfig_lib.in (print_option_help): Properly redirect
  6340. stderr on test calls.
  6341. 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
  6342. * grub-core/fs/jfs.c (grub_jfs_find_file): Handle "." and "..".
  6343. 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
  6344. * grub-core/fs/ntfs.c (list_file): Set mtime to correct value.
  6345. 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
  6346. * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't skip "." and
  6347. "..".
  6348. 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
  6349. * grub-core/fs/hfsplus.c (grub_hfsplus_catfile): New field parentid.
  6350. (grub_hfsplus_iterate_dir): Add "." and "..".
  6351. 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
  6352. * grub-core/fs/cpio.c (canonicalize): Handle "..".
  6353. (grub_cpio_find_file) [MODE_USTAR]: Handle hardlinks.
  6354. 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
  6355. * grub-core/fs/btrfs.c (GRUB_BTRFS_ITEM_TYPE_INODE_REF): New enum value.
  6356. (find_path): Handle "." and "..".
  6357. 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
  6358. * grub-core/fs/affs.c (grub_affs_file): New field hardlink.
  6359. (GRUB_AFFS_FILETYPE_HARDLINK): New enum value.
  6360. (grub_affs_iterate_dir): Handle hardlinks.
  6361. 2012-05-26 Matthew Garrett <mjg@redhat.com>
  6362. * grub-core/term/efi/console.c (grub_efi_console_init): Set text mode.
  6363. (grub_efi_console_fini): Likewise.
  6364. * grub-core/video/efi_gop.c (framebuffer): New field offscreen.
  6365. (grub_video_gop_fill_mode_info): Rename to ...
  6366. (grub_video_gop_fill_real_mode_info): ... this.
  6367. (grub_video_gop_fill_mode_info): New function.
  6368. (grub_video_gop_setup): Setup double framebuffer.
  6369. (grub_video_gop_get_info_and_fini): Use original framebuffer.
  6370. Free offscreen.
  6371. (grub_video_gop_swap_buffers): Copy framebuffer.
  6372. (grub_video_gop_fini): Free offscreen buffer.
  6373. * include/grub/efi/graphics_output.h (grub_efi_gop_blt_operation_t):
  6374. New enum.
  6375. (grub_efi_gop_blt_pixel): New struct.
  6376. 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
  6377. * gentpl.py: Remove error disabling for objconv.
  6378. 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
  6379. * configure.ac: Remove -Wunitialized as it's not available on older
  6380. compilers.
  6381. 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
  6382. Fix extent overflow comparator.
  6383. * grub-core/fs/hfsplus.c (grub_hfsplus_extkey_internal): Add type.
  6384. (grub_hfsplus_read_block): Set type.
  6385. (grub_hfsplus_cmp_extkey): Compare type.
  6386. 2012-05-25 Vladimir Serbinenko <phcoder@gmail.com>
  6387. * util/grub-fstest.c (cmd_cmp): Fix stat'ing of wrong file.
  6388. 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
  6389. * grub-core/fs/hfsplus.c (grub_hfsplus_label): Use found ptr rather
  6390. than 0.
  6391. 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
  6392. * Makefile.am (starfield_DATA): Add dejavu_bold_14.pf2.
  6393. (dejavu_bold_14.pf2): New target.
  6394. 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
  6395. * configure.ac: Fix djvu font detection.
  6396. 2012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
  6397. * grub-core/normal/misc.c (grub_normal_print_device_info): Dsiplay
  6398. ext* instead of ext2.
  6399. 2012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
  6400. * grub-core/normal/term.c (read_terminal_list): Terminate the terminal
  6401. name with \0.
  6402. 2012-05-22 Jordan Uggla <jordan.uggla@gmail.com>
  6403. * docs/grub-dev.texi: Remove dot from .png.
  6404. 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
  6405. * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Accept
  6406. protective entry in any slot.
  6407. * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Reject
  6408. if protective entry is found in any slot.
  6409. Protective entry in non-first slot make no sense but is a widespread
  6410. brain damage.
  6411. 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
  6412. * grub-core/fs/squash4.c (grub_squash_read_data): Add missing byte-swap.
  6413. 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
  6414. * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Fix size byteswap
  6415. with old reiserfs.
  6416. (grub_reiserfs_open): Don't free root.
  6417. 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
  6418. * grub-core/fs/fshelp.c (grub_fshelp_find_file): Set currnode to 0
  6419. after freeing for safety.
  6420. 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
  6421. * grub-core/commands/sleep.c (do_print): Add missing grub_refresh.
  6422. Reported by: Jordan Uggla.
  6423. 2012-05-21 Jordan Uggla <jordan.uggla@gmail.com>
  6424. * docs/grub.texi Fix documentation of GRUB_HIDDEN_TIMOUNT to match the
  6425. actual implementation. Specifically, clarify that the grub menu will
  6426. be displayed for GRUB_TIMOUT seconds after the hidden timeout has
  6427. passed.
  6428. 2012-05-21 Benjamin Herrenschmidt <benh@kernel.crashing.org>
  6429. * grub-core/kern/powerpc/dl.c (trampoline_template): Use r12 instead
  6430. of r0.
  6431. 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
  6432. Remove unjustified hard dependency of normal.mod on gfxterm.
  6433. * include/grub/term.h (grub_term_output): New member fullscreen.
  6434. * include/grub/gfxterm.h (grub_gfxterm_fullscreen): Removed.
  6435. * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Make static.
  6436. (grub_gfxterm): Set .fullscreen.
  6437. * grub-core/normal/menu.c (menu_init): Use fullscreen.
  6438. * grub-core/gfxmenu/gfxmenu.c (GRUB_MOD_INIT): Likewise.
  6439. 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
  6440. * docs/grub.texi (Internationalisation/Filesystems): Add precisions
  6441. mentioning possible problems with non-ASCII (non-compliant) ISOs.
  6442. Mention case-insensitive AFFS, SFS and JFS.
  6443. 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
  6444. * grub-core/fs/affs.c (grub_affs_mtime): Add missing grub_dl_ref.
  6445. 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
  6446. * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
  6447. a bad FS.
  6448. 2012-05-18 Vladimir Serbinenko <phcoder@gmail.com>
  6449. * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Mark plain
  6450. ISO9660 names as case-insensitive, lowercase it and remove trailing dot.
  6451. 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
  6452. * grub-core/fs/jfs.c (grub_jfs_data): New field caseins.
  6453. (grub_jfs_mount): Fill caseins.
  6454. (grub_jfs_find_file): Respect caseins.
  6455. 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
  6456. * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't strrchr
  6457. through UTF-16.
  6458. 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
  6459. * grub-core/fs/fat.c (grub_fat_find_dir): Fix error message.
  6460. New argument origpath. All users updated.
  6461. 2012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
  6462. * grub-core/fs/ntfs.c (read_data): Prevent overflow.
  6463. (read_attr): Ensure that we read start of possibly compressed block.
  6464. 2012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
  6465. * include/grub/ntfs.h (grub_ntfs_comp_table_element): New struct.
  6466. (grub_ntfs_comp): Use grub_ntfs_comp_table_element for comp_table.
  6467. All users updated.
  6468. 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
  6469. * Makefile.am (starfield_DATA): Replace dejavu.pf2 with dejavu_10.pf2,
  6470. dejavu_12.pf2, dejavu_14.pf2 and dejavu_16.pf2.
  6471. (dejavu.pf2): Replace with ...
  6472. (dejavu_10.pf2), (dejavu_12.pf2), (dejavu_14.pf2), (dejavu_16.pf2):
  6473. this.
  6474. 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
  6475. * util/grub.d/20_linux_xen.in: Add missing line.
  6476. 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
  6477. * include/grub/charset.h (GRUB_UTF16_UPPER_SURROGATE): Fix mask sizes.
  6478. (GRUB_UTF16_LOWER_SURROGATE): Likewise.
  6479. (grub_utf16_to_utf8): Likewise.
  6480. 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
  6481. * grub-core/disk/ieee1275/ofdisk.c (scan): Don't scan device tree if
  6482. GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS is set.
  6483. * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
  6484. GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS on IBM hardware.
  6485. * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
  6486. GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS.
  6487. 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
  6488. * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
  6489. a bad FS.
  6490. 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
  6491. * grub-core/fs/udf.c (read_string): Bail out on size=0.
  6492. (grub_udf_read_symlink): Handle read_string failure.
  6493. 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
  6494. * grub-core/kern/emu/hostdisk.c (read_device_map): Improve TRANSLATORS
  6495. comment.
  6496. 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
  6497. Fix handling of UDF symlinks.
  6498. * grub-core/fs/udf.c (read_string): New argument outbuf.
  6499. All users updated.
  6500. (grub_ufs_read_symlink): Rename to ...
  6501. (grub_udf_read_symlink): ... this. All users updated.
  6502. Handle symlinks with more than one component.
  6503. 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
  6504. * grub-core/fs/affs.c (grub_affs_read_symlink): Fix handling of long
  6505. symlinks. Replace leading colon with a slash.
  6506. 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
  6507. * grub-core/fs/jfs.c (grub_jfs_find_file): Handle multiple slashes in
  6508. filename.
  6509. 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
  6510. * grub-core/fs/bfs.c (find_in_b_tree) [MODE_AFS]: Fix handling of exact
  6511. match in inner node.
  6512. 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
  6513. * grub-core/fs/bfs.c (mount): Improve filesystem detection reliability.
  6514. * grub-core/fs/ext2.c (grub_ext2_mount): Likewise.
  6515. * grub-core/fs/hfs.c (grub_hfs_mount): Likewise.
  6516. * grub-core/fs/hfsplus.c (grub_hfsplus_mount): Likewise.
  6517. * grub-core/fs/jfs.c (grub_jfs_mount): Likewise.
  6518. * grub-core/fs/minix.c (grub_minix_mount): Likewise.
  6519. * grub-core/fs/ntfs.c (grub_ntfs_mount): Likewise.
  6520. * grub-core/fs/romfs.c (grub_romfs_mount): Likewise.
  6521. * grub-core/fs/xfs.c (grub_xfs_mount): Likewise.
  6522. 2012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
  6523. Use grub-probe and not cmp to check that disk is empty.
  6524. * util/grub-install.in: Use grub-probe for zero-check.
  6525. * util/grub-probe.c (PRINT_ZERO_CHECK): New enum value.
  6526. (probe): Handle PRINT_ZERO_CHECK.
  6527. (argp_parser): Handle -t zero_check.
  6528. 2012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
  6529. Flush block cache on adding disk to device map.
  6530. * grub-core/kern/emu/hostdisk.c (flush_initial_buffer): New function.
  6531. (grub_hostdisk_os_dev_to_grub_drive): Call flush_initial_buffer on
  6532. adding.
  6533. (read_device_map): Likewise.
  6534. (open_device): Flush on opening.
  6535. 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
  6536. * grub-core/fs/cpio.c (grub_cpio_find_file): Handle prefix.
  6537. (handle_symlink): Fix off-by-one error.
  6538. Canonicalize the target.
  6539. (grub_cpio_dir): Canonicalize the name.
  6540. Fix memory leak.
  6541. Set directory.
  6542. (grub_cpio_open): Canonicalize the name.
  6543. 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
  6544. * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix symlink
  6545. handling.
  6546. 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
  6547. * grub-core/fs/ufs.c (grub_ufs_find_file): Fix handling of double slash.
  6548. * grub-core/fs/minix.c (grub_minix_find_file): Likewise.
  6549. 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
  6550. * util/grub-menulst2cfg.c (main): Check return value of fwrite.
  6551. * util/grub-mklayout.c (write_file): Likewise. New argument fname.
  6552. All users updated.
  6553. 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
  6554. * util/grub.d/20_linux_xen.in: Update initrd list based on 10_linux.in
  6555. counterpart.
  6556. 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
  6557. Fix UFS1 big file support.
  6558. * grub-core/fs/ufs.c (INODE): Removed.
  6559. (INODE_SIZE): Always use 64-bit byte-swap since size field is always
  6560. 64-bit.
  6561. (INODE_MODE): Simplify.
  6562. (grub_ufs_inode): Use uint64_t for size and not int64_t.
  6563. (grub_ufs_lookup_symlink): Don't use INODE.
  6564. 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
  6565. Fix minixfs with non-power-of-two blocks since it's supported by minix.
  6566. * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use block_size.
  6567. (grub_minix_data): Replace log_block_size with block_size.
  6568. (grub_minix_read_file): Use block_size but avoid 64-bit division.
  6569. (grub_minix_mount): Fill block_size.
  6570. 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
  6571. * configure.ac: Bump to beta5.
  6572. 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
  6573. Fix wrapped HFS+ handling.
  6574. * grub-core/fs/fshelp.c (grub_fshelp_read_file): New argument
  6575. blocks_start. All users updated.
  6576. * grub-core/fs/hfsplus.c (grub_hfsplus_read_block): Don't add
  6577. wrapping offset.
  6578. (grub_hfsplus_read_file): Pass embedding offset to fshelp_read_file.
  6579. 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
  6580. Fix long symlinks on reiserfs.
  6581. * grub-core/fs/reiserfs.c (grub_fshelp_node): New field size.
  6582. (grub_reiserfs_read_symlink): Use grub_reiserfs_read_real.
  6583. (grub_reiserfs_iterate_dir): Save size for non-directories.
  6584. (grub_reiserfs_open): Don't reread stat block as we already know the
  6585. size.
  6586. (grub_reiserfs_read): Split into...
  6587. (grub_reiserfs_read_real): ... and ...
  6588. (grub_reiserfs_read): ...this.
  6589. 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
  6590. Fix non-indexed JFS.
  6591. * grub-core/fs/jfs.c (grub_jfs_sblock): New field flags.
  6592. (grub_jfs_data): New field namecomponentlen.
  6593. (grub_jfs_mount): Fill namecomponentlen.
  6594. (grub_jfs_getent): Use namecomponentlen rather than hardcoded 11.
  6595. 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
  6596. * grub-core/script/yylex.l: Ugly fix for "\\\n ".
  6597. * tests/grub_script_echo1.in: Add tests.
  6598. 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
  6599. * util/grub-install.in: Ignore empty devicetree directory.
  6600. 2012-05-08 Bean <bean123ch@gmail.com>
  6601. * grub-core/net/ip.c (reassemble): Make asm_buffer into asm_netbuff.
  6602. All users updated.
  6603. (free_rsm): Free header as well.
  6604. (free_old_fragments): Fix memory leak.
  6605. * grub-core/net/netbuff.c (grub_netbuff_free): Make return void.
  6606. * grub-core/net/tftp.c (tftp_receive): Fix memory leak.
  6607. (destroy_pq): Likewise.
  6608. * include/grub/net/netbuff.h (grub_netbuff_free): Make return void.
  6609. 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
  6610. * grub-core/commands/hashsum.c (grub_cmd_hashsum): Align space for
  6611. resulting hash as a precaution.
  6612. 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
  6613. * grub-core/net/bootp.c (set_env_limn_ro): Replace reserved ':' with
  6614. '_' in variable names.
  6615. * grub-core/net/net.c (grub_net_network_level_interface_register):
  6616. Likewise.
  6617. 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
  6618. Fix AFFS with non-512B blocks.
  6619. * grub-core/fs/affs.c (grub_affs_rblock): Make type uint32_t.
  6620. (AFFS_MAX_LOG_BLOCK_SIZE): New definition.
  6621. (grub_affs_data): Replace blocksize with log_blocksize.
  6622. (grub_affs_read_block): Fix non-512B blocks.
  6623. (grub_affs_read_symlink): Likewise.
  6624. (grub_affs_iterate_dir): Likewise. Fix freeing corruption.
  6625. (grub_affs_read): Fix non-512B blocks.
  6626. (grub_affs_label): Likewise.
  6627. (grub_affs_mtime): Likewise.
  6628. (grub_affs_mount): Fix block detection routine.
  6629. 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
  6630. Add filesystem mtime to AFFS.
  6631. * grub-core/fs/affs.c (grub_affs_file): Make type unsigned.
  6632. (aftime2ctime): New function.
  6633. (grub_affs_dir): Use aftime2ctime.
  6634. (grub_affs_label): Fix return value.
  6635. (grub_affs_mtime): New function.
  6636. (grub_affs_fs): Add mtime.
  6637. 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
  6638. * grub-core/fs/affs.c (grub_affs_read_symlink): Convert latin1 into
  6639. UTF-8.
  6640. 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
  6641. * grub-core/fs/sfs.c (grub_sfs_read_symlink): Convert latin1 into
  6642. UTF-8.
  6643. 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
  6644. * grub-core/fs/affs.c (grub_affs_iterate_dir): Mark as case insensitive.
  6645. 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
  6646. * grub-core/fs/sfs.c (grub_sfs_rblock): New fields createtime and
  6647. flags.
  6648. (FLAGS_CASE_SENSITIVE): New enum value.
  6649. (cache_entry): New struct.
  6650. (grub_fshelp_node): Add fields cache_off, next_extent, cache_allocated,
  6651. cache_size and cache.
  6652. (grub_sfs_data): Remove blocksize. All users switched to log_blocksize.
  6653. Add log_blocksize and fshelp_flags.
  6654. (grub_sfs_read_extent): Handle non-512 blocks.
  6655. (grub_sfs_read_block): Add cаche and handle non-512 blocks.
  6656. (grub_sfs_read_file): Handle non-512 blocks.
  6657. (grub_sfs_mount): Handle non-512 blocks. Fill log_blocksize and
  6658. fshelp_flags.
  6659. (grub_sfs_read_symlink): Handle non-512 blocks.
  6660. (grub_sfs_iterate_dir): Init new fields. Mark as case-insensitive.
  6661. (grub_sfs_dir): Free cache.
  6662. (grub_sfs_close): Likewise.
  6663. 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
  6664. * grub-core/fs/bfs.c (read_bfs_file): Fix overflow with over 2TiB
  6665. filesystems.
  6666. 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
  6667. * grub-core/fs/affs.c (grub_affs_read_block): Fix theoretical overflow.
  6668. 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
  6669. * grub-core/commands/ls.c (grub_ls_list_files): Fix overflow.
  6670. 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
  6671. * grub-core/fs/sfs.c (grub_fshelp_node): Fix types.
  6672. (grub_sfs_read_extent): Likewise.
  6673. (grub_sfs_read_block): Likewise.
  6674. (grub_sfs_mount): Likewise.
  6675. (grub_sfs_iterate_dir): Likewise.
  6676. (grub_sfs_read_symlink): Use strncpy instead of strcpy.
  6677. (grub_sfs_read): Remove unnecessarry and wrong temporary variable.
  6678. 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
  6679. Fix errors on compressed NTFS with 512B clusters.
  6680. * include/grub/ntfs.h (grub_ntfscomp_func_t): Use appropriately sized
  6681. types.
  6682. * grub-core/fs/ntfs.c (grub_ntfs_read): Return correct -1 on error and
  6683. not 0.
  6684. * grub-core/fs/ntfscomp.c (read_block): Use appropriately-sized types.
  6685. Relax check for inline extents.
  6686. (ntfscomp): Return correct -1 on error and not 0.
  6687. 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
  6688. * util/grub-install.in: Fix handling of prefix containing spaces.
  6689. 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
  6690. * grub-core/fs/squash4.c (grub_squash_inode): Fix offset field.
  6691. (grub_squash_read_data): Fix offset byte-swapping.
  6692. 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
  6693. * grub-core/kern/misc.c (grub_strcmp): Use unsigned comparison as
  6694. per common usage and preffered in several parts of code.
  6695. (grub_memcmp): Likewise.
  6696. (grub_strncmp): Likewise.
  6697. * include/grub/misc.h (grub_strcasecmp): Likewise.
  6698. (grub_strncasecmp): Likewise.
  6699. * Makefile.util.def (cmp_test): New test.
  6700. (grub_script_strcmp): Likewise.
  6701. * tests/cmp_unit_test.c: New file.
  6702. * tests/grub_script_strcmp.in: Likewise.
  6703. * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Add a comment.
  6704. 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
  6705. * include/grub/pci.h: Move enums into no-asm part.
  6706. 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
  6707. * grub-core/fs/bfs.c (bfs_strcmp) [MODE_AFS]: Use signed comparison.
  6708. 2012-05-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
  6709. * util/getroot.c (find_hurd_root_device): Try to make error message
  6710. and comments to translators clearer.
  6711. 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
  6712. * grub-core/commands/menuentry.c: Fix typo in TRANSLATORS comments.
  6713. 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
  6714. * grub-core/kern/fs.c (grub_fs_probe) [GRUB_UTIL]: Add workaround for
  6715. btrfs.
  6716. 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
  6717. * docs/grub.cfg: Update.
  6718. 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
  6719. * docs/grub.texi (PXE): Remove not present variables.
  6720. 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
  6721. * grub-core/net/net.c (defserver_set_env): New function.
  6722. (defserver_get_env): Likewise.
  6723. (GRUB_MOD_INIT): Register net_default_server and pxe_default_server.
  6724. 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
  6725. * grub-core/kern/emu/hostdisk.c (read_device_map): Skip invalid Fedora
  6726. entries.
  6727. 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
  6728. * grub-core/commands/menuentry.c: Add TRANSLATORS comments.
  6729. * grub-core/kern/emu/hostdisk.c: Likewise.
  6730. 2012-05-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
  6731. Handle hurd userspace partitions.
  6732. * util/getroot.c (find_hurd_root_device): New function.
  6733. (grub_guess_root_devices): Use find_hurd_root_device on Hurd.
  6734. 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
  6735. * util/getroot.c (convert_system_partition_to_system_disk); Add etherd
  6736. names.
  6737. Reported by: Bastian Blank.
  6738. 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
  6739. * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Fix offset when
  6740. crossing page boundary.
  6741. 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
  6742. Fix B-tree search in BFS, especially in presence of non-ASCII
  6743. characters.
  6744. * grub-core/fs/bfs.c (bfs_strcmp): New function.
  6745. (find_in_b_tree): Use standard bsearch + btree algorithm.
  6746. 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
  6747. * util/grub-fstest.c (cmd_cmp): Avoid comparing devices, pipes
  6748. and so on.
  6749. 2012-05-03 Matthew Garrett <mjg@redhat.com>
  6750. 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
  6751. Suspend broadcom cards in order to stop their DMA.
  6752. * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add pci.h on x86 EFI.
  6753. * grub-core/Makefile.core.def (kernel): Add pci.c on x86 EFI.
  6754. (pci): Don't build on x86 EFI.
  6755. * grub-core/bus/pci.c (grub_pci_find_capability): New function.
  6756. * grub-core/kern/efi/mm.c (stop_broadcom) [__i386__ || __x86_64__]:
  6757. New function.
  6758. (grub_efi_finish_boot_services) [__i386__ || __x86_64__]: Call
  6759. stop_broadcom if running on EFI.
  6760. * include/grub/pci.h (GRUB_PCI_CLASS_NETWORK): New enum value.
  6761. (GRUB_PCI_CAP_POWER_MANAGEMENT): Likewise.
  6762. (GRUB_PCI_VENDOR_BROADCOM): Likewise.
  6763. (grub_pci_find_capability): New proto.
  6764. 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
  6765. * docs/grub.texi: Remove dot from the extension as it apparently
  6766. doesn't work with some makeinfo versions.
  6767. 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
  6768. * po/Makefile.in.in: Make msgfmt output in little-endian in accordance
  6769. with GRUB expectance.
  6770. 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
  6771. * util/grub-fstest.c (cmd_cmp): Compare directories recursively.
  6772. 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
  6773. * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Put a trailing
  6774. zero after directory block since last entry may be not 0-terminated if
  6775. it ends on block boundary. Use continue instead of if spanning whole
  6776. loop.
  6777. 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
  6778. Support 4K sectors UDF inline files.
  6779. * grub-core/fs/udf.c (grub_udf_file_entry): Don't specify padding size.
  6780. (grub_udf_extended_file_entry): Likewise.
  6781. (grub_fshelp_node): Name the anonymous union. Put block at the end.
  6782. All users updated.
  6783. (get_fshelp_size): New function.
  6784. (grub_udf_read_icb): Read whole block.
  6785. (grub_udf_iterate_dir): Likewise.
  6786. (grub_udf_dir): Likewise.
  6787. (grub_udf_open): Likewise.
  6788. 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
  6789. * grub-core/fs/ufs.c (grub_ufs_get_file_block): Support triple indirect.
  6790. 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
  6791. * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Use proper check for
  6792. inline symlinks in addition to workaround.
  6793. 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
  6794. * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Handle read_inode errors.
  6795. 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
  6796. * grub-core/fs/xfs.c (GRUB_XFS_EXTENT_BLOCK): Fix bitmask.
  6797. 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
  6798. * grub-core/fs/zfs/zfs.c (nvlist_find_value): Fix return value.
  6799. 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
  6800. Fix reiserfs big seek times.
  6801. * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): New argument
  6802. exact. All users updated.
  6803. (grub_reiserfs_read): Use nearest btree search for seeking.
  6804. Fix return value on error.
  6805. 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
  6806. * grub-core/commands/legacycfg.c (legacy_file): Default to restricted
  6807. entries.
  6808. * grub-core/commands/menuentry.c (grub_cmd_menuentry): Likewise.
  6809. * docs/grub.texi: Update menuentry description.
  6810. 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
  6811. * util/grub-setup.c (setup): Remove duplicate call to embed. Fixes
  6812. crash when embedding onto filesystem.
  6813. 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
  6814. * util/getroot.c (find_root_devices_from_poolname): Handle spaces in the
  6815. name.
  6816. 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
  6817. * grub-core/net/ip.c (handle_dgram): Fix undeclared variable.
  6818. 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
  6819. * grub-core/normal/autofs.c (read_fs_list): Revert accidental wrong
  6820. commit.
  6821. 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
  6822. 2012-05-01 Bean <bean123ch@gmail.com>
  6823. * grub-core/net/ip.c (handle_dgram): Fix DHCP mac comparison.
  6824. 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
  6825. * grub-core/kern/file.c (grub_file_read): Read nothing if len = 0.
  6826. Special behaviour for len = 0 to read whole file isn't used anywhere and
  6827. can cause buffer ovewrflows in several places.
  6828. 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
  6829. * grub-core/normal/autofs.c (read_fs_list): Fix memory leak.
  6830. 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
  6831. Handle RAIDZ on non-512B sectors.
  6832. * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member
  6833. max_children_ashift.
  6834. (fill_vdev_info_real): Fill max_children_ashift.
  6835. (read_device): Use max_children_ashift.
  6836. 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
  6837. * grub-core/fs/fshelp.c (grub_fshelp_find_file): Fix memory leak.
  6838. 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
  6839. * grub-core/kern/emu/hostdisk.c (read_device_map): Reject non-standard
  6840. disk names.
  6841. * docs/grub.texi: Update device.map parts.
  6842. 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
  6843. Don't scan into non-diskfilter devices having diskfilter names.
  6844. * grub-core/disk/diskfilter.c (is_valid_diskfilter_name): New function.
  6845. (scan_disk): New argument accept_diskfilter. Fix recursion depth
  6846. handling.
  6847. (scan_disk_hook): New function.
  6848. 2012-04-29 Bean <bean123ch@gmail.com>
  6849. * grub-core/net/drivers/efi/efinet.c (get_card_packet): Fix buffer
  6850. allocation.
  6851. 2012-04-29 Mads Kiilerich <mads@kiilerich.com> (tiny)
  6852. * configure.ac: Detect starfield theme font path
  6853. /usr/share/fonts/dejavu/DejaVuSans.ttf for Fedora.
  6854. 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
  6855. * grub-core/term/ieee1275/console.c (grub_console_dimensions): Use 80x24
  6856. geometry on serial consoles.
  6857. 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
  6858. * grub-core/term/terminfo.c (grub_terminfo_readkey): Increase timeout
  6859. because of network consoles.
  6860. 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
  6861. * grub-core/term/terminfo.c (grub_terminfo_getkey): Fix incorrect queue
  6862. handling.
  6863. 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
  6864. * grub-core/disk/diskfilter.c (read_segment): Fix the case when disknr
  6865. falls on Q syndrom.
  6866. 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
  6867. * grub-core/fs/nilfs2.c (grub_nilfs2_palloc_entry_offset_log):
  6868. Fix argument to grub_nilfs2_palloc_bitmap_block_offset.
  6869. 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
  6870. * grub-core/fs/squash4.c (lzo_decompress): Set grub_errno on error.
  6871. Allocate at lest 8192 for temporary buffer as required for lzo.
  6872. 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
  6873. * grub-core/fs/fat.c (grub_fat_mount): Don't add logical_sector_bits
  6874. to cluster_bits, since it's already added in.
  6875. (grub_fat_read_data): Likewise.
  6876. 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
  6877. * grub-core/fs/ntfs.c (grub_ntfs_mount): Support 256-byte sectors,
  6878. as long as cluster size is multiple of 512 bytes.
  6879. 2012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
  6880. * util/grub-mkrescue.in: Fix locale directory.
  6881. 2012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
  6882. * grub-core/kern/emu/hostdisk.c (map): Make static.
  6883. 2012-04-23 Bean <bean123ch@gmail.com>
  6884. * util/grub-fstest.c (fstest): Add missing break.
  6885. 2012-04-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
  6886. Fix hurd build.
  6887. * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size) [__GNU__]: Do
  6888. not define nr variable.
  6889. * util/getroot.c [__GNU__] (strip_extra_slashes, xgetcwd, exec_pipe,
  6890. find_root_devices_from_poolname, find_root_devices_from_libzfs,
  6891. grub_find_device): Do not define.
  6892. 2012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
  6893. Fix kfreebsd compile and behaviour.
  6894. * grub-core/kern/emu/hostdisk.c (grub_util_follow_gpart_up): Fix
  6895. format-security.
  6896. * util/getroot.c: Fix wait.h include.
  6897. (grub_guess_root_devices): Error if grub_find_device fails.
  6898. (grub_util_get_geom_abstraction): Fix shadowing and format-security.
  6899. (grub_util_get_dev_abstraction): Likewise.
  6900. (grub_util_pull_device): Likewise.
  6901. (grub_util_get_grub_dev): Likewise.
  6902. * util/lvm.c (grub_util_lvm_isvolume): Likewise.
  6903. 2012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
  6904. Fix and unify wholedisk detection.
  6905. * util/getroot.c (convert_system_partition_to_system_disk): New argument
  6906. is_part. All users updated.
  6907. (device_is_wholedisk): Removed.
  6908. (grub_util_biosdisk_get_grub_dev): Use is_part.
  6909. 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
  6910. * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix opening
  6911. mode.
  6912. 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
  6913. * configure.ac: Bump to beta4.
  6914. 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
  6915. * grub-core/commands/search_wrap.c (grub_cmd_search): Handle old
  6916. --fs-uuid --set UUID syntax.
  6917. 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
  6918. * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix message
  6919. disunification.
  6920. 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
  6921. * conf/Makefile.common (LDFLAGS_PLATFORM): Use explicit -Wl.
  6922. 2012-04-18 Mads Kiilerich <mads@kiilerich.com>
  6923. * grub-mkconfig_lib.in: Ignore *.rpmnew and *.rpmsave.
  6924. 2012-04-18 Mike Gilbert <floppym@gentoo.org>
  6925. * util/grub.d/10_linux.in: Fix detection of genkernel initramfs.
  6926. 2012-04-18 Bean <bean123ch@gmail.com>
  6927. * grub-core/disk/ata.c (grub_ata_strncpy): Put terminating zero at right
  6928. place.
  6929. 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
  6930. * grub-core/kern/emu/hostdisk.c (open_device): New argument max. All
  6931. users updated.
  6932. (grub_util_biosdisk_read): Handle Linux partitions not exactly
  6933. corresponding to GRUB partitions.
  6934. (grub_util_biosdisk_write): Likewise.
  6935. 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
  6936. Scan mdraid before LVM.
  6937. * include/grub/diskfilter.h (grub_diskfilter_register): Renamed to ..
  6938. (grub_diskfilter_register_front): ... this.
  6939. (grub_diskfilter_register_back): New function.
  6940. All users of grub_diskfilter_register updated.
  6941. 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
  6942. * util/grub-install.in: Fix an automatic target detection bug.
  6943. 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
  6944. * util/grub-install.in: New option --efi-directory.
  6945. 2012-04-17 Vladimir Serbinenko <phcoder@gmail.com>
  6946. * grub-core/loader/i386/linux.c (allocate_pages): Overwrite low memory
  6947. boot services if we have no other choice.
  6948. 2012-04-14 Vladimir Serbinenko <phcoder@gmail.com>
  6949. * util/grub-mknetdir.in: Rename --override-directory to --directory and
  6950. document it.
  6951. * tests/util/grub-shell.in: Update to --directory.
  6952. 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
  6953. * grub-core/fs/zfs/zfs.c: Disable -Wstrict-aliasing.
  6954. 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
  6955. * grub-core/fs/minix.c (grub_minix_data): Fix ino type.
  6956. (grub_minix_read_file): Likewise.
  6957. (grub_minix_read_inode): Likewise.
  6958. (grub_minix_find_file): Likewise.
  6959. (grub_minix_dir): Likewise.
  6960. 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
  6961. * util/grub-setup.c (setup): Fix partition handling and blocklist
  6962. check.
  6963. 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
  6964. * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Remove
  6965. redundant buggy overlap check.
  6966. 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
  6967. * tests/util/grub-shell.in: Set pkgdatadir when calling grub-mkrescue
  6968. and grub-mknetdir.
  6969. 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
  6970. * grub-core/loader/i386/linux.c (grub_cmd_linux): Avoid accessing
  6971. kh.loadflags on pre-2.00 kernels.
  6972. 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
  6973. Terminate UNDI and PXE before launching the payload to avoid problems
  6974. with DMA.
  6975. * grub-core/commands/boot.c (grub_loader_noreturn): Rename to ...
  6976. (grub_loader_flags): ... this. All users updated.
  6977. (grub_loader_boot): Check for GRUB_LOADER_FLAG_NORETURN.
  6978. * grub-core/loader/i386/pc/pxechainloader.c (grub_cmd_pxechain): Mark
  6979. loader as GRUB_LOADER_FLAG_PXE_NOT_UNLOAD.
  6980. * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_shutdown): New
  6981. function.
  6982. (grub_pxe_restore): Likewise.
  6983. (fini_hnd): New var.
  6984. (GRUB_MOD_INIT): Register shutdown hook.
  6985. (GRUB_MOD_FINI): Shutdown and unregister shutdown hook.
  6986. * include/grub/loader.h (GRUB_LOADER_FLAG_NORETURN): New const.
  6987. (GRUB_LOADER_FLAG_PXE_NOT_UNLOAD): Likewise.
  6988. (grub_loader_set): Rename second argument to flags.
  6989. 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
  6990. * grub-core/normal/charset.c (grub_ucs4_to_utf8): Return number of
  6991. written bytes.
  6992. (grub_get_num_of_utf8_bytes): New function.
  6993. (grub_ucs4_to_utf8_alloc): Use grub_get_num_of_utf8_bytes.
  6994. * grub-core/normal/menu_entry.c (run): Convert entry to UTF-8 before
  6995. executing it.
  6996. * include/grub/charset.h (grub_get_num_of_utf8_bytes): New proto.
  6997. (grub_ucs4_to_utf8): Change return type.
  6998. 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
  6999. * grub-core/commands/usbtest.c (usb_print_str): Silence spurious
  7000. warning.
  7001. * grub-core/fs/bfs.c (hop_level): Likewise.
  7002. * grub-core/net/bootp.c (grub_cmd_bootp): Likewise.
  7003. 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
  7004. * grub-core/lib/adler32.c: Recode due to license unclearness.
  7005. 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
  7006. * grub-core/io/lzopio.c (read_block_header): Fix incorrect byte swapping
  7007. (test_header): Likewise.
  7008. 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
  7009. Fix --help formatting.
  7010. * util/grub-mkconfig_lib.in (print_option_help): New function.
  7011. (grub_fmt): Likewise.
  7012. * util/grub-install.in: Use print_option_help and grub_fmt.
  7013. * util/grub-kbdcomp.in: Likewise.
  7014. * util/grub-mkconfig.in: Likewise.
  7015. * util/grub-mknetdir.in: Likewise.
  7016. * util/grub-mkrescue.in: Likewise.
  7017. * util/grub-mkstandalone.in: Likewise.
  7018. * util/grub-reboot.in: Likewise.
  7019. * util/grub-set-default.in: Likewise.
  7020. * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
  7021. 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
  7022. * linguas.sh: Remove autogenerated *.po.
  7023. 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
  7024. * po/README: Move language fetcing to ...
  7025. * linguas.sh: ... here.
  7026. * po/README: Point to linguas.sh.
  7027. 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
  7028. * po/README: Exclude ko.po due to disclaimer problems.
  7029. 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
  7030. * grub-core/gettext/gettext.c (grub_gettext_pread): Fix the case when
  7031. len = 0.
  7032. (grub_gettext_translate_real): Handle 0th string.
  7033. (grub_gettext_translate): Ensure that "" isn't translated.
  7034. 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
  7035. * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add
  7036. TRANSLATORS comment.
  7037. (grub_diskfilter_print_partmap): Propagate changing of error into
  7038. warning.
  7039. 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
  7040. * include/grub/diskfilter.h (grub_diskfilter_vg): Increase extent_size
  7041. to uint64_t to prevent overflow.
  7042. (grub_diskfilter_lv): Increase start_extent and extent_count
  7043. to uint64_t to prevent overflow.
  7044. 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
  7045. * configure.ac: Increase version.
  7046. 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
  7047. Introduce en@cyrillic en@hebrew en@arabic and en@greek.
  7048. * po/Rules-translit: New file.
  7049. * po/arabic.sed: Likewise.
  7050. * po/cyrillic.sed: Likewise.
  7051. * po/greek.sed: Likewise.
  7052. * po/hebrew.sed: Likewise.
  7053. * po/README: Add en@cyrillic en@hebrew en@arabic and en@greek.
  7054. * po/Makefile.in.in: Add extra_dist4.
  7055. 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
  7056. Handle big-endian minixfs (fixes minixfs tests on bigendian).
  7057. * grub-core/fs/minix.c: Replace le with minix. Add necessary defines,
  7058. modify names. Introduce MODE_BIGENDIAN.
  7059. * grub-core/fs/minix_be.c: New file.
  7060. * grub-core/fs/minix2_be.c: Likewise
  7061. * grub-core/fs/minix3_be.c: Likewise.
  7062. * Makefile.util.def (libgrubmods): Add minix_be, minix2_be and
  7063. minix3_be.
  7064. * grub-core/Makefile.core.def (minix_be): New module.
  7065. (minix2_be): Likewise.
  7066. (minix3_be): Likewise.
  7067. 2012-04-01 Felix <email@hamburg.de>
  7068. * grub-core/loader/efi/appleloader.c (devpath_7): New var.
  7069. (devs): Add MBP 2011.
  7070. 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
  7071. * grub-core/font/font.c (blit_comb): Handle dagesh somewhat.
  7072. 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
  7073. * grub-core/normal/cmdline.c (print_completion): New field
  7074. prompt_len.
  7075. (grub_cmdline_get): Handle width properly.
  7076. 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
  7077. * grub-core/commands/lsacpi.c (options): Add missing terminator.
  7078. 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
  7079. * include/grub/datetime.h (grub_datetime2unixtime): Fix handling of days
  7080. after 29th of February.
  7081. 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
  7082. Fix exfat endianness handling.
  7083. * grub-core/fs/fat.c (grub_fat_data): Make fat_sector 32-bit.
  7084. (grub_fat_mount) [MODE_EXFAT]: Fix bpb.num_reserved_sectors byte-swap.
  7085. (grub_fat_iterate_dir) [MODE_EXFAT]: Fix attr byte-swap.
  7086. Byte-swap utf16 when necessary.
  7087. (grub_fat_label) [MODE_EXFAT]: Byte-swap utf16 when necessary.
  7088. 2012-03-31 Anton Blanchard <anton@samba.org>
  7089. 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
  7090. Fix btrfs endianness handling.
  7091. * grub-core/fs/btrfs.c (key_cmp): Use grub_le_to_cpu for clarity.
  7092. (lower_bound): Make root uint64_t. Use root in le.
  7093. (grub_btrfs_read_logical): Fix template key init. Fix address byteswap.
  7094. (find_path): Fix template key init.
  7095. (grub_btrfs_dir): Fix mtime byteswap.
  7096. * include/grub/types.h (grub_cpu_to_le64_compile_time): New macro.
  7097. 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
  7098. * grub-core/fs/btrfs.c (grub_btrfs_read_logical): New argument
  7099. recursion_depth. Break infinite resursions. All users updated.
  7100. 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
  7101. * util/getroot.c (convert_system_partition_to_system_disk): Fix use
  7102. after free.
  7103. Reported by: Peter Jones.
  7104. 2012-03-31 Anton Blanchard <anton@samba.org>
  7105. * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Do not byteswap
  7106. 8 bit values.
  7107. 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
  7108. * util/grub-install.in: Fix nvram call for PreP.
  7109. 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
  7110. * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Degrade
  7111. the error when some elements are missing into a warning.
  7112. 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
  7113. * grub-core/normal/charset.c (bidi_line_wrap): Fix out-of-range swap.
  7114. 2012-03-28 Colin Watson <cjwatson@ubuntu.com>
  7115. * docs/grub.texi (Invoking grub-probe): New section.
  7116. Reported by: Filipus Klutiero. Fixes Debian bug #666031.
  7117. 2012-03-27 Vladimir Serbinenko <phcoder@gmail.com>
  7118. Fix tab and wide character handling in editor and menu.
  7119. * grub-core/normal/charset.c (grub_unicode_aglomerate_comb): Don't
  7120. agglomerate control characters with combining marks.
  7121. (bidi_line_wrap): Allow break on tab.
  7122. (grub_unicode_get_comb_start): New function.
  7123. * grub-core/normal/menu_entry.c: Restructure to handle wide characters
  7124. and tab correctly.
  7125. * grub-core/normal/menu_text.c (print_entry): Replace \n, \r, \b and \e
  7126. with a space.
  7127. * grub-core/normal/term.c (print_ucs4_terminal): New argument
  7128. fixed_tab_size. All users updated.
  7129. * include/grub/term.h (GRUB_TERM_TAB_WIDTH): New const.
  7130. (grub_term_getcharwidth): Handle \t.
  7131. * include/grub/unicode.h (grub_unicode_glyph_dup): Fix allocation
  7132. and copy.
  7133. 2012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
  7134. Handle big-endian mdraid.
  7135. * Makefile.util.def (libgrubkern): Add mdraid_linux_be.c.
  7136. * grub-core/Makefile.core.def (mdraid09_be): New module.
  7137. * grub-core/disk/mdraid_linux.c: Use grub_md_to_cpu* and grub_cpu_to_md*
  7138. rather than grub_le_to_cpu* and grub_cpu_to_le*.
  7139. * grub-core/disk/mdraid_linux_be.c: New file.
  7140. 2012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
  7141. * grub-core/gettext/gettext.c (GRUB_MOD_INIT): Handle errors.
  7142. 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
  7143. * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
  7144. missing quotes which caused confusion among translators.
  7145. 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
  7146. * util/grub-mkconfig_lib.in: Fix typo.
  7147. 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
  7148. * grub-core/script/argv.c (grub_script_argv_split_append): Skip leading
  7149. spaces.
  7150. * tests/grub_script_leading_whitespace.in: New file.
  7151. * Makefile.util.def (grub_script_leading_whitespace): New test.
  7152. 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
  7153. * grub-core/kern/dl.c (grub_dl_add): Make global in order for gdb_grub
  7154. to work.
  7155. 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
  7156. * grub-core/fs/jfs.c (grub_jfs_label): Use first label if second one
  7157. starts with control character.
  7158. 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
  7159. * grub-core/gdb/cstub.c (grub_gdb_inbuf): Increase the size to avoid
  7160. overflow.
  7161. (grub_gdb_outbuf): Likewise.
  7162. 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
  7163. * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): Add
  7164. zero terminator. Fixes a crash.
  7165. 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
  7166. * grub-core/loader/i386/linux.c (allocate_pages): Don't allocate
  7167. beyond 4 GiB.
  7168. (grub_cmd_linux): Use GRUB_LINUX_BZIMAGE_ADDR for non-relocatable
  7169. images independently of preffered adderss field.
  7170. 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
  7171. * grub-core/commands/i386/pc/play.c: Improve TRANSLATORS comments.
  7172. * grub-core/commands/regexp.c: Likewise.
  7173. * grub-core/loader/i386/linux.c: Likewise.
  7174. * grub-core/partmap/msdos.c: Likewise.
  7175. * grub-core/script/execute.c: Likewise.
  7176. * grub-core/term/gfxterm.c: Likewise.
  7177. 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
  7178. Add variable parsing in $"..." and fix several mismatches with bash.
  7179. * Makefile.util.def (grub_script_gettext): New test.
  7180. * grub-core/script/execute.c (parse_string): New function.
  7181. (gettext_append): Likewise.
  7182. (grub_script_arglist_to_argv): Use gettext_append.
  7183. * grub-core/script/yylex.l: Fix slash and newline handling in $"...".
  7184. * tests/grub_script_gettext.in: New file.
  7185. 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
  7186. Fix handling of leading spaces in scripts.
  7187. * grub-core/normal/cmdline.c (grub_cmdline_get): Don't strip leading
  7188. spaces.
  7189. * grub-core/normal/main.c (grub_file_getline): Remove all preprocessing
  7190. other than skipping \r. All users updated.
  7191. * tests/grub_script_echo1.in: Add space-related tests.
  7192. * util/grub-menulst2cfg.c (main): Remove useless space skipping.
  7193. 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
  7194. * grub-core/commands/cat.c (grub_cmd_cat): Fix termination key check.
  7195. 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
  7196. * configure.ac: Bump up the version to beta2.
  7197. 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
  7198. Fix gettext reload bugs (e.g. inability to disable gettext
  7199. once enabled).
  7200. * grub-core/gettext/gettext.c: Encapsulate all static variables in
  7201. main_context and secondary_context. All functions updated.
  7202. (grub_gettext_translate): Rename to ...
  7203. (grub_gettext_translate_real): ... this. Return NULL on failed
  7204. translate.
  7205. (grub_gettext_translate): Handle secondary context.
  7206. (grub_gettext_delete_list): Close file and zero-out the context.
  7207. (grub_mofile_open): Don't call grub_gettext_delete_list.
  7208. Don't close file.
  7209. (grub_gettext_init_ext): Call grub_gettext_init_ext. Skip loading
  7210. if locale="" to avoid pointless error message.
  7211. (grub_gettext_env_write_lang): Update lang even if load fails.
  7212. Handle secondary context.
  7213. (grub_gettext_reread_prefix): New function.
  7214. (read_main): Likewise.
  7215. (read_secondary): Likewise.
  7216. (GRUB_MOD_INIT): Handle secondary context. Hook and export variables.
  7217. (GRUB_MOD_FINI): Handle secondary context. Don't close file.
  7218. * grub-core/normal/main.c (read_lists): Call grub_gettext_reread_prefix.
  7219. * include/grub/normal.h (grub_gettext_reread_prefix): New proto.
  7220. 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
  7221. * configure.ac: Decrease warning level to avoid spurious warnings and
  7222. to be able to compile with GCC 4.2.
  7223. * Makefile.util.def: Remove -Wno-error=logical-op.
  7224. 2012-03-10 William Bittner <william.bittner@gmail.com>
  7225. * util/import_unicode.py: Add missing brackets around string for
  7226. python 3 support.
  7227. 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
  7228. Fix efi chainloader on network root.
  7229. * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Handle
  7230. network devices.
  7231. * grub-core/net/drivers/efi/efinet.c (grub_efinet_get_device_handle):
  7232. New function.
  7233. 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
  7234. * grub-core/gfxmenu/gui_progress_bar.c (grub_gui_progress_bar): Remove
  7235. unused show_text member.
  7236. * docs/grub.texi: Document "text" property.
  7237. 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
  7238. * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Fix format
  7239. in dprintf.
  7240. 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
  7241. Fix IMSM handling on Fedora.
  7242. * util/getroot.c (grub_util_is_imsm): New function.
  7243. (grub_util_get_dev_abstraction): Treat IMSM as simple device, not RAID.
  7244. 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
  7245. * Makefile.am: Strip gold section.
  7246. * conf/Makefile.common: Likewise.
  7247. * gentpl.py: Likewise.
  7248. * grub-core/Makefile.core.def: Likewise.
  7249. * grub-core/genmod.sh.in: Likewise.
  7250. 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
  7251. * util/grub.d/10_linux.in: Use stat if grub-probe on root fails.
  7252. * util/grub.d/20_linux_xen.in: Likewise.
  7253. Based on Debian patch.
  7254. 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
  7255. * util/grub.d/10_linux.in: Fix syntax error resulting in
  7256. Richard Laager's patch.
  7257. * util/grub.d/20_linux_xen.in: Propagate Richard Laager's patch.
  7258. 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
  7259. * tests/partmap_test.in: Replace qemu-img usage with dd to decrease
  7260. dependencies.
  7261. 2012-03-10 Richard Laager <rlaager@wiktel.com>
  7262. * util/grub.d/10_linux.in: Fix ZFS root passing.
  7263. 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
  7264. * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
  7265. * grub-core/commands/xnu_uuid.c: Likewise.
  7266. * grub-core/loader/efi/appleloader.c: Likewise.
  7267. * grub-core/script/execute.c: Likewise.
  7268. * grub-core/script/main.c: Likewise.
  7269. * util/grub-mkfont.c: Likewise.
  7270. 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
  7271. * util/grub-mkfont.c (options): Use more appropriate "select" that
  7272. "set" for face index.
  7273. 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
  7274. * util/grub-editenv.c (options): Gettextize command summaries.
  7275. 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
  7276. * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Use
  7277. "out of memory" error messagge.
  7278. 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
  7279. * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add scanning
  7280. of diskfilter for diskfilter on diskfilter support.
  7281. 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
  7282. * util/getroot.c (exec_pipe): Ensure that the child is not localised.
  7283. 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
  7284. * util/grub-install.in: Check for themes/starfield/theme.txt and not
  7285. themes/starfield.
  7286. 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
  7287. * grub-core/gnulib/regcomp.c (regerror): Fix out-of-range array lookup.
  7288. 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
  7289. * grub-core/gdb/i386/idt.c (grub_gdb_breakpoint): Remove old debug code.
  7290. 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
  7291. * grub-core/commands/hashsum.c (grub_cmd_hashsum): Remove dot at the end
  7292. of error message.
  7293. 2012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
  7294. * util/grub-install.in: Fix install non-PreP IEEE1275 install.
  7295. 2012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
  7296. * grub-core/commands/i386/pc/sendkey.c (GRUB_MOD_INIT): Fix confusing
  7297. message.
  7298. * util/grub-install.in: Fix and gettextize error message.
  7299. 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
  7300. * util/grub-fstest.c (options): Replace N with NUM and S with STRING.
  7301. Gettextize.
  7302. * util/grub-mount.c (options): Likewise.
  7303. 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
  7304. * grub-core/commands/probe.c (options): Replace VAR with VARNAME and
  7305. gettextize.
  7306. * grub-core/commands/search_wrap.c (options): Likewise.
  7307. 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
  7308. * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning.
  7309. 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
  7310. * grub-core/boot/i386/pc/startup_raw.S (multiboot_trampoline): Fix
  7311. size calculation.
  7312. * grub-core/kern/i386/realmode.S (realidt): Assume default BIOS IDT if
  7313. none is known.
  7314. 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
  7315. * grub-core/net/net.c (grub_net_addr_to_str): Don't translate
  7316. "temporary" since it's used in identifier and is limited in space.
  7317. 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
  7318. * po/POTFILES.in: Regenerate. Include *.h since they contain
  7319. translatable strings as well.
  7320. 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
  7321. * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
  7322. byte-swap on big-endian.
  7323. Reported by: Lennart Sorensen
  7324. 2012-03-07 Vladimir Serbinenko <phcoder@gmail.com>
  7325. * grub-core/loader/i386/linux.c (prot_init_space): New variable.
  7326. (allocate_pages): Improve dprintf.
  7327. (grub_cmd_linux): Fill prot_init_space. Fix improper usage of
  7328. code32_start. Fill code32_start and kernel_alignment in params.
  7329. (grub_cmd_initrd): Use prot_init_space.
  7330. 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
  7331. * util/grub-mkstandalone.in: Propagate grub-mkimage.c change.
  7332. 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
  7333. * util/grub-install.in: Add missing dot at the end of sentence.
  7334. 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
  7335. * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
  7336. * grub-core/commands/videotest.c: Likewise.
  7337. * grub-core/loader/i386/linux.c: Likewise.
  7338. 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
  7339. * grub-core/commands/acpi.c (options): Fix a dot in the middle of the
  7340. sentence.
  7341. Reported by: Milo Casagrande.
  7342. 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
  7343. * grub-core/commands/acpi.c: Add TRANSLATORS comments.
  7344. * grub-core/commands/gptsync.c: Likewise.
  7345. * grub-core/commands/hashsum.c: Likewise.
  7346. * grub-core/commands/i386/pc/sendkey.c: Likewise.
  7347. * grub-core/commands/legacycfg.c: Likewise.
  7348. * grub-core/io/gzio.c: Likewise.
  7349. * grub-core/net/net.c: Likewise.
  7350. * grub-core/term/gfxterm.c: Likewise.
  7351. * grub-core/term/terminfo.c: Likewise.
  7352. * grub-core/tests/test_blockarg.c: Likewise.
  7353. * grub-core/video/video.c: Likewise.
  7354. * util/grub-install.in: Likewise.
  7355. * util/grub-mkfont.c: Likewise.
  7356. 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
  7357. * util/grub-mkimage.c (help_filter): Add missing capitalisation.
  7358. 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
  7359. * grub-core/commands/search_wrap.c (options): Fix a typo.
  7360. Reported by: David Prévot.
  7361. 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
  7362. * util/grub-kbdcomp.in: Change "layout" to "keyboard layout" in
  7363. description.
  7364. 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
  7365. * util/grub-script-check.c (main): Fix a syntax error message which was
  7366. unclear.
  7367. 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
  7368. * util/grub-mkrescue.in (usage): Fix ROM capitalisation.
  7369. 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
  7370. * grub-core/commands/search_wrap.c (options): Fix wrong copy-paste in
  7371. messages.
  7372. 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
  7373. * util/grub-fstest.c (options): Remove OPTION_ARG_OPTIONAL from options
  7374. without argument.
  7375. * util/grub-mount.c (options): Likewise.
  7376. 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
  7377. * util/grub-mkimage.c (generate_image): Unify diskboot.img size message.
  7378. 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
  7379. * grub-core/net/http.c: Add TRANSLATORS comments.
  7380. * grub-core/normal/cmdline.c: Likewise.
  7381. * grub-core/normal/misc.c: Likewise.
  7382. * grub-core/partmap/msdos.c: Likewise.
  7383. * grub-core/parttool/msdospart.c: Likewise.
  7384. * grub-core/script/execute.c: Likewise.
  7385. * grub-core/script/main.c: Likewise.
  7386. * grub-core/term/terminfo.c: Likewise.
  7387. * grub-core/video/bitmap.c: Likewise.
  7388. * util/grub-install.in: Likewise.
  7389. * util/grub-mkimage.c: Likewise.
  7390. * util/grub-mklayout.c: Likewise.
  7391. * util/grub-setup.c: Likewise.
  7392. 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
  7393. * util/grub-mount.c (fuse_init): Unify cryptomount and loopback messages
  7394. with similar messages in grub-fstest.
  7395. 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
  7396. * util/grub-install.in: Unify "option requires an argument" message
  7397. with similar messages in other files.
  7398. * util/grub-mkconfig.in: Likewise.
  7399. 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
  7400. * util/grub-set-default.in: Replace printf with gettext_printf (the
  7401. string in in question is already translated from grub-reboot)
  7402. 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
  7403. * configure.ac: Bump up the version to beta1.
  7404. 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
  7405. * grub-core/loader/i386/linux.c (allocate_pages): Fix handling of the
  7406. case when min_align = 0.
  7407. 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
  7408. * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning
  7409. and fix a case when line_start overflows.
  7410. 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
  7411. * util/grub-reboot.in (usage): Mention id posibility.
  7412. * util/grub-set-default.in (usage): Likewise.
  7413. 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
  7414. * include/grub/misc.h (ALIGN_UP_OVERHEAD): New define.
  7415. * grub-core/loader/i386/linux.c (grub_cmd_initrd): Align initrds at 4.
  7416. * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
  7417. * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
  7418. * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
  7419. * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
  7420. * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
  7421. 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
  7422. * grub-core/commands/menuentry.c (options): Remove
  7423. GRUB_ARG_OPTION_REPEATABLE.
  7424. Reported by: Andreas Vogel
  7425. 2012-03-04 Andreas Vogel <Andreas.Vogel@anvo-it.de>
  7426. * grub-core/normal/main.c (grub_normal_free_menu): Fix memory leak.
  7427. 2012-03-04 Hideki EIRAKU <hdk1983@gmail.com>
  7428. * grub-core/normal/menu_entry.c (kill_line): Fix a crash and off-by-one
  7429. error.
  7430. 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
  7431. Use sort -V by the idea of Georgi Georgiev.
  7432. * util/grub-mkconfig_lib.in (version_sort): New function.
  7433. (version_test_numeric): Use version_sort.
  7434. 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
  7435. Use submenus in grub-mkconfig.
  7436. * util/grub-mkconfig.in: Define GRUB_ACTUAL_DEFAULT.
  7437. * util/grub-mkconfig_lib.in (grub_quote): New function.
  7438. (gettext_printf): Use gettext and not gettext_quoted to fix several
  7439. messages.
  7440. * util/grub.d/10_hurd.in: Use submenus.
  7441. * util/grub.d/10_kfreebsd.in: Likewise.
  7442. * util/grub.d/10_linux.in: Likewise.
  7443. * util/grub.d/10_netbsd.in: Likewise.
  7444. * util/grub.d/20_linux_xen.in: Likewise.
  7445. * util/grub.d/30_os-prober.in: Likewise.
  7446. * util/grub.d/10_illumos.in: Add missing quoting.
  7447. * util/grub.d/10_windows.in: Likewise.
  7448. 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
  7449. Fix menu title instability bug.
  7450. * grub-core/commands/menuentry.c (options): New option --id.
  7451. (grub_normal_add_menu_entry): New argument id. All users updated.
  7452. (grub_cmd_menuentry): Handle --id.
  7453. (grub_menu_init): Accept unknown arguments.
  7454. * grub-core/normal/main.c (features): Add feature_menuentry_id and
  7455. feature_menuentry_options.
  7456. * grub-core/normal/menu.c (grub_menu_execute_entry): Use id for
  7457. saved_entry.
  7458. (get_entry_number): Match with id as well.
  7459. * include/grub/menu.h (grub_menu_entry): New member id.
  7460. * util/grub-mkconfig_lib.in (grub_get_device_id): New function.
  7461. * util/grub.d/00_header.in: Define menuentry_id_option.
  7462. * util/grub.d/10_hurd.in: Define id.
  7463. * util/grub.d/10_illumos.in: Likewise.
  7464. * util/grub.d/10_kfreebsd.in: Likewise.
  7465. * util/grub.d/10_linux.in: Likewise.
  7466. * util/grub.d/10_netbsd.in: Likewise.
  7467. * util/grub.d/10_windows.in: Likewise.
  7468. * util/grub.d/20_linux_xen.in: Likewise.
  7469. * util/grub.d/30_os-prober.in: Likewise.
  7470. 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
  7471. * grub-core/script/execute.c (grub_script_return): Replace ambiguous
  7472. "scope" with "body".
  7473. 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
  7474. * include/grub/i386/linux.h (linux_kernel_header): Fix init_size type.
  7475. * grub-core/loader/i386/linux.c (grub_cmd_linux): Differentiate between
  7476. prot_size and prot_file_size.
  7477. 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
  7478. * grub-core/disk/diskfilter.c (is_lv_readable): New argument "easily".
  7479. All users updated. If easily=1 require raid-5/-6 to be full.
  7480. (is_node_readable): Likewise.
  7481. (scan_devices): Scan incomplete but readable LVs at the end.
  7482. (grub_diskfilter_memberlist): Pull missing devices.
  7483. (insert_array): Skip scanning until device is complete or scan is
  7484. done otherwise.
  7485. * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix wrong
  7486. check.
  7487. * include/grub/diskfilter.h (grub_diskfilter_lv): New member scanned.
  7488. * util/raid.c (grub_util_raid_getmembers): Handle "removed" disks.
  7489. 2012-03-03 Matthew Garrett <mjg@redhat.com>
  7490. 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
  7491. Avoid EFI boot services when loading Linux.
  7492. * grub-core/lib/i386/relocator.c (grub_relocator32_boot): New argument
  7493. avoid_efi_bootservices. All users updated.
  7494. * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): New
  7495. argument avoid_efi_bootservices. All users updated.
  7496. Use grub_efi_mmap_iterate on EFI, grub_mmap_iterate if available.
  7497. * grub-core/loader/i386/linux.c (allocate_pages): New arguments
  7498. align, min_align, relocatable, prefered_address. All users updated.
  7499. Allocate avoiding boot services if kernel is relocatable.
  7500. (grub_cmd_linux): Check if kernel is relocatable.
  7501. * grub-core/mmap/efi/mmap.c (grub_machine_mmap_iterate): Move most to ..
  7502. (grub_efi_mmap_iterate): ... here. New argument avoid_efi_boot_services.
  7503. Skip GRUB_EFI_BOOT_SERVICES_DATA and GRUB_EFI_BOOT_SERVICES_CODE if
  7504. avoid_efi_boot_services.
  7505. (grub_machine_mmap_iterate): Wrap grub_efi_mmap_iterate.
  7506. * include/grub/i386/linux.h (linux_kernel_header): Update to 2.10.
  7507. (linux_kernel_params): Likewise.
  7508. 2012-03-03 Matthew Garrett <mjg@redhat.com>
  7509. 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
  7510. Use EDID on EFI.
  7511. * grub-core/kern/efi/efi.c (grub_efi_get_variable): New argument
  7512. datasize_out.
  7513. * grub-core/video/efi_gop.c (check_protocol): Check that GOP has usable
  7514. modes. Set gop_handle.
  7515. (grub_video_gop_get_edid): New function.
  7516. (grub_gop_get_preferred_mode): Likewise.
  7517. (grub_video_gop_setup): Use grub_gop_get_preferred_mode.
  7518. (grub_video_efi_gop_adapter): Set .get_edid.
  7519. * include/grub/efi/edid.h: New file.
  7520. * include/grub/efi/efi.h (grub_efi_get_variable): Update proto.
  7521. 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
  7522. * util/grub-install.in: Load efivars unconditionally.
  7523. 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
  7524. * po/Rules-piglatin: Change suffix from .po-update-en to
  7525. .po-update-en-piglatin.
  7526. 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
  7527. Add a pig farm.
  7528. * po/piglatin.sed: New file.
  7529. * po/en@piglatin.header: Likewise.
  7530. * po/Rules-piglatin: Likewise.
  7531. * po/README: Add en@piglatin to autogenerated languages.
  7532. 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
  7533. * grub-core/commands/date.c (GRUB_MOD_INIT): Remove non-uniform
  7534. "Command for ...".
  7535. * grub-core/commands/hdparm.c (options): Use "Display" rather than
  7536. "Check" since we don't check anything.
  7537. * grub-core/commands/i386/cpuid.c (options): Clarify that long mode
  7538. is 64-bit one.
  7539. * grub-core/commands/search_wrap.c (options): Clarify the conditions.
  7540. * grub-core/disk/geli.c (grub_md_sha256_real): Fix typo.
  7541. (grub_md_sha512_real): Likewise.
  7542. 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
  7543. * grub-core/commands/gptsync.c: Fix typographic quoting.
  7544. * grub-core/commands/ieee1275/suspend.c: Likewise.
  7545. * grub-core/commands/parttool.c: Likewise.
  7546. * grub-core/commands/search_wrap.c: Likewise.
  7547. * grub-core/commands/videoinfo.c: Likewise.
  7548. * grub-core/gfxmenu/gui_label.c: Likewise.
  7549. * grub-core/hello/hello.c: Likewise.
  7550. * grub-core/kern/emu/main.c: Likewise.
  7551. * grub-core/net/net.c: Likewise.
  7552. * grub-core/normal/menu.c: Likewise.
  7553. * grub-core/normal/menu_text.c: Likewise.
  7554. * grub-core/normal/misc.c: Likewise.
  7555. * util/grub-editenv.c: Likewise.
  7556. * util/grub-install.in: Likewise.
  7557. * util/grub-kbdcomp.in: Likewise.
  7558. * util/grub-mkconfig.in: Likewise.
  7559. * util/grub-mknetdir.in: Likewise.
  7560. * util/grub-mkrescue.in: Likewise.
  7561. * util/grub-mkstandalone.in: Likewise.
  7562. * util/grub-reboot.in: Likewise.
  7563. * util/grub-set-default.in: Likewise.
  7564. * util/grub-setup.c: Likewise.
  7565. * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
  7566. 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
  7567. * grub-core/commands/acpihalt.c: Add TRANSLATORS comments.
  7568. * grub-core/commands/keystatus.c: Likewise.
  7569. * grub-core/commands/loadenv.c: Likewise.
  7570. * grub-core/commands/probe.c: Likewise.
  7571. * grub-core/commands/regexp.c: Likewise.
  7572. * grub-core/commands/true.c: Likewise.
  7573. * grub-core/commands/videoinfo.c: Likewise.
  7574. * grub-core/disk/cryptodisk.c: Likewise.
  7575. * grub-core/disk/ldm.c: Likewise.
  7576. * grub-core/disk/loopback.c: Likewise.
  7577. * grub-core/disk/luks.c: Likewise.
  7578. * grub-core/fs/zfs/zfsinfo.c: Likewise.
  7579. * grub-core/kern/disk.c: Likewise.
  7580. * grub-core/kern/emu/hostdisk.c: Likewise.
  7581. 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
  7582. * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS comment.
  7583. * util/grub-install.in: Add missing quote in the comment.
  7584. 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
  7585. * grub-core/commands/i386/pc/drivemap.c: Add TRANSLATORS comments.
  7586. * grub-core/commands/lsmmap.c: Likewise.
  7587. * grub-core/commands/minicmd.c: Likewise.
  7588. * grub-core/commands/mips/loongson/lsspd.c: Likewise.
  7589. * grub-core/commands/regexp.c: Likewise.
  7590. * grub-core/gdb/gdb.c: Likewise.
  7591. * grub-core/term/gfxterm.c: Likewise.
  7592. * util/grub-mkconfig.in: Likewise.
  7593. * util/grub-mkfont.c: Likewise.
  7594. * util/grub-mklayout.c: Likewise.
  7595. * util/grub-mknetdir.in: Likewise.
  7596. * util/grub-mkrescue.in: Likewise.
  7597. * util/grub.d/30_os-prober.in: Likewise.
  7598. 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
  7599. * grub-core/commands/videoinfo.c (hook): Replace "Direct"
  7600. with "Direct color" and "Packed" with "Packed pixel".
  7601. (grub_cmd_videoinfo): Simplify legend.
  7602. 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
  7603. * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
  7604. absolutely unclear error message.
  7605. 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
  7606. * util/grub-mkstandalone.in: Remove confusing leftover print.
  7607. 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
  7608. * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS
  7609. comments.
  7610. * grub-core/gdb/gdb.c (grub_cmd_gdbstub): Likewise.
  7611. (GRUB_MOD_INIT): Likewise.
  7612. * grub-core/loader/i386/linux.c (grub_cmd_linux): Clarify that it's
  7613. VGA mode.
  7614. * grub-core/net/net.c (grub_net_route_address): Add TRANSLATORS
  7615. comments.
  7616. * util/grub-install.in (usage): Likewise.
  7617. Spell ID in whole letters.
  7618. Add missing ending dot.
  7619. Quote variables.
  7620. * util/grub-reboot.in: Fix capitalisation.
  7621. * util/grub-set-default.in: Likewise.
  7622. 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
  7623. * util/getroot.c (strip_extra_slashes) [CYGWIN]: #ifdef-out.
  7624. (exec_pipe) [CYGWIN || MINGW32]: Likewise.
  7625. (find_root_devices_from_poolname) [CYGWIN || MINGW32]: Likewise.
  7626. (find_root_devices_from_libzfs) [CYGWIN || MINGW32]: Likewise.
  7627. Disable -Werror for -Wdeprecated-declarations.
  7628. (grub_guess_root_devices) [CYGWIN || MINGW32]: #ifdef-out.
  7629. (get_dm_uuid) [!HAVE_DEVICE_MAPPER]: Likewise.
  7630. (grub_util_get_dm_abstraction) [! __linux__]: #ifdef-out.
  7631. (grub_util_get_grub_dev): Make luks handling dependent on
  7632. HAVE_DEVICE_MAPPER and not __linux__.
  7633. (get_win32_path): Fix format security.
  7634. (grub_find_zpool_from_dir) [CYGWIN || MINGW32]: #ifdef-out.
  7635. (grub_make_system_path_relative_to_its_root) [CYGWIN || MINGW32]:
  7636. Don't try grub_find_zpool_from_dir.
  7637. (grub_make_system_path_relative_to_its_root) [!__linux__]:
  7638. #ifdef-out paresdir.
  7639. 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
  7640. * util/grub-pe2elf.c (usage): Add missing noreturn.
  7641. (write_section_data): Rename name to shname to avoid shadowing.
  7642. (write_symbol_table): Rename name to symname to avoid shadowing.
  7643. Fix write_reloc_section call.
  7644. 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
  7645. * grub-core/boot/i386/pc/startup_raw.S: Move decompressor_end to .bss
  7646. to ensure that it's after the last byte of .text.
  7647. 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
  7648. * util/ieee1275/ofpath.c (my_isdigit): New function.
  7649. (trailing_digits): Use my_isdigit.
  7650. (strip_trailing_digits): Likewise.
  7651. 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
  7652. * util/resolve.c (read_dep_list): Use grub_isspace instead of isspace.
  7653. * grub-core/kern/emu/hostdisk.c (read_device_map): Likewise.
  7654. 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
  7655. * grub-core/kern/i386/pc/startup.S: Define __start.
  7656. 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
  7657. * gentpl.py (kernel): Remove the use of TARGET_OBJ2ELF after strip since
  7658. strip already transforms he format.
  7659. 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
  7660. * conf/i386-pc-cygwin-img-ld.sc: Define also _edata and __edata.
  7661. 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
  7662. * util/grub-install.in: Add missing gettext init.
  7663. * util/grub-kbdcomp.in: Likewise.
  7664. * util/grub-mkconfig.in: Likewise.
  7665. * util/grub-mknetdir.in: Likewise.
  7666. * util/grub-mkrescue.in: Likewise.
  7667. * util/grub-mkstandalone.in: Likewise.
  7668. * util/grub-reboot.in: Likewise.
  7669. * util/grub-set-default.in: Likewise.
  7670. * util/grub.d/00_header.in: Likewise.
  7671. * util/grub.d/10_hurd.in: Likewise.
  7672. * util/grub.d/10_windows.in: Likewise.
  7673. * util/grub.d/30_os-prober.in: Likewise.
  7674. * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
  7675. 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
  7676. * po/Rules-swiss: Fix header comment.
  7677. 2012-02-29 Andreas Vogel <anvoit>
  7678. * grub-core/kern/misc.c (grub_xvasprintf): Fix an exit path which
  7679. resulted in leak of arguments.
  7680. 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
  7681. * grub-core/boot/i386/pc/startup_raw.S: Use separate
  7682. reed_solomon_size const definition instead of computing it since
  7683. Apple assembler doesn't support the later.
  7684. 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
  7685. * gentpl.py (kernel): Rewrite Apple part.
  7686. 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
  7687. * include/grub/kernel.h (FOR_MODULES): Check module magic.
  7688. 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
  7689. * util/grub-mkimagexx.c (locate_sections): Support non-standard
  7690. ELF section gap.
  7691. (load_image): Likewise.
  7692. 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
  7693. * configure.ac: Fix a typo in previous commit.
  7694. 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
  7695. Don't add -Wl,-N on Apple platform.
  7696. * configure.ac (TARGET_LDFLAGS_OLDMAGIC): New subst.
  7697. * conf/Makefile.common: Use TARGET_LDFLAGS_OLDMAGIC instead of -Wl,-N
  7698. 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
  7699. * grub-core/Makefile.core.def (lzma_decompress): Use
  7700. TARGET_IMG_BASE_LDOPT rather than hardcoding -Wl,-Ttext.
  7701. 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
  7702. * grub-core/genmod.sh.in: Rewrite the Apple part.
  7703. 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
  7704. * grub-core/loader/machoXX.c (grub_macho_load): Fix signed vs unsigned
  7705. comparison.
  7706. 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
  7707. * acinclude.m4 (grub_CHECK_PIC): New test.
  7708. * configure.ac: Add -fno-PIC to TARGET_CFLAGS if -fPIC is default.
  7709. 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
  7710. * include/grub/libgcc.h (__STDC_VERSION__): Define if it's not yet so
  7711. to avoid the warning.
  7712. 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
  7713. * grub-core/boot/i386/pc/diskboot.S (firstlist): Rename to ...
  7714. (LOCAL(firstlist)): ... this. Move it before the firstlist and not
  7715. after. All users updated.
  7716. 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
  7717. Use the common size routine in hostfs so we can read disks as well.
  7718. * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Rename to ..
  7719. (grub_util_get_fd_size): ... this. Return size in bytes.
  7720. All users updated.
  7721. * grub-core/kern/emu/hostfs.c (grub_hostfs_open): Use
  7722. grub_util_get_fd_size.
  7723. 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
  7724. * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__APPLE__]:
  7725. Add blocksize retrieval.
  7726. 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
  7727. * configure.ac: Restore CFLAGS after efiemu check.
  7728. 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
  7729. * configure.ac: Move -fnested-functions to CPPFLAGS to workaround
  7730. Apple bug.
  7731. 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
  7732. * grub-core/Makefile.am (MACHO2IMG): Add missing variable.
  7733. 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
  7734. * grub-core/commands/i386/pc/halt.c (grub_halt): Add noreturn attribute.
  7735. (grub_cmd_halt): Likewise.
  7736. 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
  7737. * grub-core/lib/i386/relocator16.S: Declare LOCAL(relocator16_end)
  7738. for local arithmetics.
  7739. Break %sp init into 2 instructions.
  7740. Add 0 byte at the end.
  7741. 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
  7742. * grub-core/disk/diskfilter.c (read_segment): Initialise err
  7743. before loops.
  7744. 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
  7745. * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Use void *
  7746. for context.
  7747. 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
  7748. * grub-core/disk/ldm.c (make_vg): Init part.name.
  7749. (grub_ldm_detect): Silence spurious warning.
  7750. (grub_util_is_ldm): Likewise.
  7751. 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
  7752. * grub-core/loader/i386/xnu.c (grub_xnu_boot): Init fsbfreq to
  7753. sane value to avoid a spurious warning.
  7754. 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
  7755. * include/grub/dl.h: Switch from APPLE_CC to __APPLE__.
  7756. (GRUB_MOD_LICENSE) [ASM_FILE]: Make into macro. All users updated.
  7757. 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
  7758. * include/grub/symbol.h (EXT_C) [!ASM_FILE]: Redefine with strings.
  7759. * grub-core/lib/i386/backtrace.c (grub_backtrace): Use EXT_C.
  7760. 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
  7761. * grub-core/gdb/i386/machdep.S: Use VARIABLE and EXT_C instead of
  7762. hardcoding the relevant info.
  7763. 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
  7764. * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Add
  7765. missing const qualifiers.
  7766. * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): Likewise.
  7767. 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
  7768. * util/getroot.c [__APPLE__]: Add missing includes.
  7769. (grub_util_biosdisk_is_floppy): Fix usage of undefined variable.
  7770. 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
  7771. * util/grub-mkimage.c (generate_image): Silence spurious warning.
  7772. 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
  7773. * util/ieee1275/ofpath.c: Rename devname to sys_devname everywhere to
  7774. avoid conflicts.
  7775. 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
  7776. * util/ieee1275/grub-ofpathname.c: Add missing config.h include.
  7777. 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
  7778. * util/grub-setup.c (setup) [!__linux__]: Add missing file declaration
  7779. and grub_file_close call.
  7780. 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
  7781. Add LZSS Mach-O support (needed for new xnu kernelcache).
  7782. * grub-core/Makefile.core.def (xnu): Add file lzss.c
  7783. * grub-core/loader/lzss.c: New file.
  7784. * grub-core/loader/xnu.c (grub_xnu_load_driver): Close binaryfile
  7785. on Mach-O open failure.
  7786. * grub-core/loader/macho.c (grub_macho_close): Free uncompressedXX.
  7787. Don't free cmdsXX in uncompressedXX is set.
  7788. (grub_macho_file): Init new fields.
  7789. New argument is_64bit. All users updated.
  7790. Handle compressed. Error out if no suitable architecture is found.
  7791. Don't close file.
  7792. (grub_macho_open): New argument is_64bit. All users updated.
  7793. * grub-core/loader/macho32.c: Add defines for new fields.
  7794. * grub-core/loader/macho64.c: Likewise.
  7795. * grub-core/loader/machoXX.c (grub_macho_contains_macho): Make static.
  7796. (grub_macho_parse): Handle compressed.
  7797. Defer actual processing if compressed.
  7798. (grub_macho_cmds_iterate): Decompress if compressed. New argument
  7799. "filename". All users updated.
  7800. (grub_macho_size): New argument "filename". All users updated.
  7801. (grub_macho_get_entry_point): Likewise.
  7802. (grub_macho_load): Handle compressed.
  7803. * include/grub/macho.h (grub_macho_lzss_header): New struct.
  7804. (GRUB_MACHO_LZSS_OFFSET): New define.
  7805. (grub_decompress_lzss): New proto.
  7806. * include/grub/machoload.h (grub_macho_file): New fields to handle
  7807. compressed.
  7808. (grub_macho_contains_macho64): Remove proto.
  7809. (grub_macho_contains_macho32): Likewise.
  7810. * util/grub.d/30_os-prober.in: Use kernel cache if available.
  7811. 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
  7812. * grub-core/disk/pata.c (grub_pata_readwrite): Fix ATAPI protocol error.
  7813. 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
  7814. Fix make dist.
  7815. * Makefile.am (starfield_theme_files): New var.
  7816. (starfield_DATA): Use starfield_theme_files.
  7817. (EXTRA_DIST): Add starfield_theme_files. Add starfield source files.
  7818. Add bootcheck-related files.
  7819. * conf/Makefile.extra-dist (EXTRA_DIST): Add several missing files.
  7820. * docs/Makefile.am (EXTRA_DIST): Add font_char_metrics.png
  7821. and font_char_metrics.txt.
  7822. * grub-core/Makefile.core.def (kernel): Update extra_dist.
  7823. (setjmp): Add lib/ia64/longjmp.S.
  7824. * po/Makefile.in.in (DISTFILES): Add POTFILES-shell.in and grub.d.sed.
  7825. * po/POTFILES.in: Regenerate.
  7826. * po/Rules-swiss: use DISTFILES.common.extra2 and not
  7827. DISTFILES.common.extra1.
  7828. * util/devicemap.c: Removed.
  7829. * grub-core/lib/i386/relocator_backward.S: Likewise.
  7830. * util/import_gcry.py: Remove unused files. Add extra_dist for
  7831. ChangeLog.
  7832. 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
  7833. * grub-core/gettext/gettext.c (grub_mofile_open): Call
  7834. grub_gettext_delete_list before changing grub_gettext_max to avoid
  7835. running out of array bounds.
  7836. 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
  7837. * grub-core/term/i386/pc/vga_text.c: Add GRUB_MACHINE_MULTIBOOT to
  7838. grub_vga_text_init/grub_vga_text_fini.
  7839. 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
  7840. * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix format specification.
  7841. 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
  7842. * configure.ac: Bump to 2.00~beta0.
  7843. 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
  7844. * util/getroot.c (grub_find_root_devices_from_btrfs): Add
  7845. missing initialisation.
  7846. 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
  7847. * grub-core/partmap/msdos.c (message_warn): Clarify messages.
  7848. 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
  7849. Support v2 xnu boot arguments.
  7850. * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree):
  7851. New argument fsbfreq_out.
  7852. (grub_xnu_set_video): Receive an argument grub_xnu_boot_params_common.
  7853. (grub_xnu_boot): Support v2 arguments. Disable PIC so that APIC can
  7854. be used.
  7855. * grub-core/loader/machoXX.c (grub_macho_load): New argument
  7856. darwin_version.
  7857. * grub-core/loader/xnu.c (grub_xnu_darwin_version): New variable.
  7858. * include/grub/i386/xnu.h (grub_xnu_boot_params_common): New struct.
  7859. (grub_xnu_boot_params): Rename to ...
  7860. (grub_xnu_boot_params_v1): ...this. Use grub_xnu_boot_params_common.
  7861. (grub_xnu_boot_params_v2): New struct.
  7862. 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
  7863. * grub-core/efiemu/prepare.c (grub_efiemu_crc): Add missing
  7864. zeroing of CRC field before computing CRC.
  7865. 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
  7866. * grub-core/lib/relocator.c (malloc_in_range): Fix memory leak.
  7867. Change order of allocations to decrease fragmentation.
  7868. 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
  7869. * Makefile.util.def (grub-ofpathname): Enable on all platforms.
  7870. 2012-02-27 Colin Watson <cjwatson@ubuntu.com>
  7871. Use write-combining MTRR to speed up video with buggy BIOSes.
  7872. * grub-core/video/i386/pc/vbe.c (framebuffer): New member mtrr.
  7873. (cpuid): New define.
  7874. (rdmsr): Likewise.
  7875. (wrmsr): Likewise.
  7876. (mtrr_base): Likewise.
  7877. (mtrr_mask): Likewise.
  7878. (grub_vbe_enable_mtrr_entry): New function.
  7879. (grub_vbe_enable_mtrr): Likewise.
  7880. (grub_vbe_disable_mtrr): Likewise.
  7881. (grub_vbe_bios_set_display_start): Disable mtrr when handing the
  7882. control off to BIOS.
  7883. (grub_video_vbe_init): Fill mtrr.
  7884. (grub_video_vbe_fini): Disable mtrr.
  7885. (grub_video_vbe_get_info_and_fini): Likewise.
  7886. (grub_video_vbe_setup): Enable mtrr.
  7887. 2012-02-27 Colin Watson <cjwatson@ubuntu.com>
  7888. * include/grub/partition.h (grub_partition_map): Change prototype of
  7889. embed to take a maximum value for nsectors.
  7890. * include/grub/emu/hostdisk.h (grub_util_ldm_embed): Likewise.
  7891. * include/grub/fs.h (grub_fs): Likewise.
  7892. * grub-core/partmap/msdos.c (embed_signatures): New array.
  7893. (pc_partition_map_embed): Check for and avoid sectors matching any
  7894. of the signatures in embed_signatures, up to max_nsectors.
  7895. * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restrict
  7896. returned sector map to max_nsectors.
  7897. * grub-core/disk/ldm.c (grub_util_ldm_embed): Likewise.
  7898. * grub-core/fs/btrfs.c (grub_btrfs_embed): Likewise.
  7899. * grub-core/fs/zfs/zfs.c (grub_zfs_embed): Likewise.
  7900. * util/grub-setup.c (setup): Allow for the embedding area being
  7901. split into multiple blocklists. Tell dest_partmap->embed the
  7902. maximum number of sectors we care about.
  7903. 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
  7904. * include/grub/fs.h (grub_fs) [GRUB_UTIL]: Add blocklist_install field.
  7905. Specify blocklist_install and reserver_first_sector for all fs.
  7906. * util/grub-setup.c (setup): Use FIBMAP/FIEMAP on Linux. Check resulting
  7907. blocklists.
  7908. 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
  7909. * util/grub-install.in: Clarify strings.
  7910. Fix source dir check.
  7911. 2012-02-27 Richard Laager <rlaager@wiktel.com>
  7912. * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle
  7913. "zfs" and "fuse.zfs" as synonyms.
  7914. 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
  7915. * configure.ac: Put platform and target_cpu substitutions back since
  7916. they are used for directories.
  7917. 2012-02-27 Richard Laager <rlaager@wiktel.com>
  7918. 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
  7919. * util/grub.d/10_linux.in: Add ZFS-related arguments.
  7920. * util/grub.d/20_linux_xen.in: Likewise.
  7921. 2012-02-27 Richard Laager <rlaager@wiktel.com>
  7922. * util/getroot.c (find_root_devices_from_poolname): Handle vdevs
  7923. with full paths.
  7924. 2012-02-27 Richard Laager <rlaager@wiktel.com>
  7925. * util/getroot.c (grub_find_root_devices_from_mountinfo): Add missing
  7926. unescape.
  7927. 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
  7928. Don't use insecure popen in getroot.
  7929. * util/getroot.c (get_mdadm_uuid): Move pipe logic to ...
  7930. (exec_pipe): ... here.
  7931. (find_root_devices_from_poolname): Use exec_pipe.
  7932. 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
  7933. Remove platform and target_cpu replacement.
  7934. * configure.ac: Remove platform and target_cpu substitutions.
  7935. * tests/util/grub-shell.in: Use modinfo.
  7936. * util/powerpc/ieee1275/grub-mkrescue.in: Specify powerpc-ieee1275
  7937. explicitly.
  7938. 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
  7939. Autodetect platform in grub-install but allow override.
  7940. * util/grub-install.in: Autodetect platform. Support --target and
  7941. --directory. Read platform from modinfo.sh.
  7942. 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
  7943. Support btrfs multi-volume probe.
  7944. * util/getroot.c (btrfs_ioctl_dev_info_args) [__linux__]: New struct.
  7945. (btrfs_ioctl_fs_info_args) [__linux__]: Likewise.
  7946. (BTRFS_IOC_DEV_INFO) [__linux__]: New define.
  7947. (BTRFS_IOC_FS_INFO) [__linux__]: Likewise.
  7948. (grub_find_root_devices_from_btrfs) [__linux__]: New function.
  7949. (grub_find_root_devices_from_mountinfo) [__linux__]: Use
  7950. grub_find_root_devices_from_btrfs if on btrfs.
  7951. 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
  7952. Remove any awareness of *.c util files about target.
  7953. * Makefile.util.def (grub-setup): Split to ...
  7954. (grub-bios-setup): ... and this.
  7955. (grub-sparc64-setup): ... and this.
  7956. * configure.ac: Don't add machine_CPPFLAGS into HOST_CPPFLAGS.
  7957. * docs/man/grub-setup.h2m: Split into ...
  7958. * docs/man/grub-sparc64-setup.h2m: ... this.
  7959. * docs/man/grub-bios-setup.h2m: ... and this.
  7960. * include/grub/dl.h (grub_dl) [GRUB_UTIL]: Remove struct.
  7961. * include/grub/elf.h (Elf_*) [GRUB_UTIL]: Remove types.
  7962. (GRUB_TARGET_WORDSIZE) [GRUB_UTIL]: Remove.
  7963. (grub_target_addr_t): Remove.
  7964. (grub_target_size_t): Remove.
  7965. (grub_target_ssize_t): Remove.
  7966. * util/grub-install.in: Use new grub-*-setup.
  7967. * util/grub-mkimagexx.c (Elf_Word): New define.
  7968. (Elf_Half): Likewise.
  7969. (Elf_Section): Likewise.
  7970. (ELF_ST_TYPE): Likewise.
  7971. * util/grub-setup.c: Switch from GRUB_MACHINE_SPARC64 to
  7972. GRUB_SETUP_SPARC64 and from GRUB_MACHINE_PCBIOS to GRUB_SETUP_BIOS.
  7973. 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
  7974. Replace grub_target_addr with more appropriate types.
  7975. * grub-core/commands/efi/fixvideo.c (scan_card): Replace
  7976. grub_target_addr with grub_addr.
  7977. * grub-core/commands/iorw.c (grub_cmd_read): Replace
  7978. grub_target_addr with grub_port.
  7979. (grub_cmd_write): Likewise.
  7980. * grub-core/commands/memrw.c (grub_cmd_read): Replace
  7981. grub_target_addr with grub_addr.
  7982. (grub_cmd_write): Likewise.
  7983. * grub-core/video/efi_uga.c (find_line_len): Likewise.
  7984. 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
  7985. * include/grub/efi/api.h (grub_efi_runtime_services): Add missing
  7986. const qualifier for vendor_guid.
  7987. 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
  7988. * grub-core/efiemu/runtime/efiemu.c (efiemu_get_variable): Add missing
  7989. const qualifier.
  7990. (efiemu_memequal): Likewise.
  7991. (find_variable): Likewise.
  7992. 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
  7993. Fix missing console prototype on qemu-mips.
  7994. * include/grub/mips/qemu_mips/console.h: New file.
  7995. 2012-02-27 Matthew Garrett <mjg@redhat.com>
  7996. 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
  7997. * grub-core/kern/efi/efi.c (grub_efi_get_variable): Add new function.
  7998. * include/grub/efi/efi.h: Likewise.
  7999. * include/grub/efi/api.h: Add guid for EFI-specified variables.
  8000. * include/grub/charset.h (GRUB_MAX_UTF16_PER_UTF8): New definition.
  8001. * grub-core/normal/charset.c (grub_utf8_process): Move from here ...
  8002. * include/grub/charset.h (grub_utf8_process): ... to here. Inline.
  8003. * grub-core/normal/charset.c (grub_utf8_to_utf16): Move from here ...
  8004. * include/grub/charset.h (grub_utf8_to_utf16): ... to here. Inline.
  8005. 2012-02-27 Matthew Garrett <mjg@redhat.com>
  8006. * include/grub/efi/pci.h: New file to define EFI PCI protocols.
  8007. 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
  8008. * grub-core/disk/diskfilter.c (grub_diskfilter_iterate): Fix off-by-one
  8009. error.
  8010. 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
  8011. * configure.ac: Remove inappropriate use of program_transform_name
  8012. on grubdir and bootdir but allow explicit specification of those
  8013. variables.
  8014. 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
  8015. * util/grub-mknetdir.in (grub_prefix): Removed.
  8016. (subdir): Use @bootdirname@ and @grubdirname@.
  8017. 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
  8018. Replace PACKAGE_TARNAME with PACKAGE in pkglibdir and pkgdatadir.
  8019. 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
  8020. * po/POTFILES.in: Regenerated.
  8021. 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
  8022. Remove improper use of program_transform_name on pkglibrootdir.
  8023. * configure.ac (pkglibrootdir): Removed.
  8024. (grub-mkimage): Replace PKGLIBROOTDIR with PKGLIBDIR.
  8025. * util/grub-mkimage.c: Likewise.
  8026. 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
  8027. * grub-core/normal/menu_text.c (grub_print_message_indented_real): Fix a
  8028. warning.
  8029. 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
  8030. * util/grub-install.in: Use file identifier if no UUID is available
  8031. or user explicitly prompted for it.
  8032. 2012-02-27 Navdeep Parhar <nparhar@gmail.com>
  8033. * grub-core/loader/i386/bsd.c (freebsd_zfsguid): New variable.
  8034. (freebsd_get_zfs): New function.
  8035. (grub_freebsd_boot): Pass zfs UUID.
  8036. (grub_cmd_freebsd): Set zfs UUID.
  8037. 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
  8038. * conf/Makefile.common (platformdir): Base on pkglibdir and not
  8039. pkglibrootdir.
  8040. 2012-02-27 Mike Gilbert <floppym@gentoo.org>
  8041. Add configure flag to control libzfs integration.
  8042. * configure.ac: Add AC_ARG_ENABLE(libzfs ...) and associated logic.
  8043. 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
  8044. * grub-core/disk/diskfilter.c (insert_array): Choose the smallest
  8045. device.
  8046. * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Reject too
  8047. small devices.
  8048. 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
  8049. Remove grub_{modname}_init and grub_{modname}_fini. They should never
  8050. be used directly if it's really a module and GRUB_MOD_INIT shouldn't
  8051. be used on non-modules.
  8052. * grub-core/commands/boot.c (GRUB_MOD_INIT) [LOONGSON || QEMU_MIPS]:
  8053. Rename to grub_boot_init.
  8054. (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_boot_fini.
  8055. * grub-core/commands/keylayouts.c (GRUB_MOD_INIT)
  8056. [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_init.
  8057. (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_fini.
  8058. * grub-core/font/font_cmd.c (GRUB_MOD_INIT)
  8059. [LOONGSON || QEMU_MIPS]: Rename to grub_font_init.
  8060. (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_font_fini.
  8061. * grub-core/kern/mips/loongson/init.c: Replace explicit protos with
  8062. includes.
  8063. (grub_machine_init): Remove empty inits.
  8064. * grub-core/kern/mips/qemu_mips/init.c: Replace explicit protos with
  8065. includes.
  8066. (grub_machine_init): Remove empty inits.
  8067. * grub-core/term/arc/console.c: Remove explicit proto.
  8068. * grub-core/term/at_keyboard.c (GRUB_MOD_INIT)
  8069. [LOONGSON || QEMU_MIPS]: Rename to grub_at_keyboard_init.
  8070. (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
  8071. grub_at_keyboard_fini.
  8072. * grub-core/term/gfxterm.c (GRUB_MOD_INIT)
  8073. [LOONGSON || QEMU_MIPS]: Rename to grub_gfxterm_init.
  8074. (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
  8075. grub_gfxterm_fini.
  8076. * grub-core/term/i386/pc/vga_text.c (GRUB_MOD_INIT)
  8077. [LOONGSON || QEMU_MIPS]: Rename to grub_vgatext_init.
  8078. (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
  8079. grub_vgatext_fini.
  8080. * grub-core/term/ieee1275/console.c: Remove explicit proto.
  8081. * grub-core/term/serial.c (GRUB_MOD_INIT)
  8082. [LOONGSON || QEMU_MIPS]: Rename to grub_serial_init.
  8083. (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
  8084. grub_serial_fini.
  8085. * grub-core/term/terminfo.c (GRUB_MOD_INIT)
  8086. [LOONGSON || QEMU_MIPS]: Rename to grub_terminfo_init.
  8087. (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
  8088. grub_terminfo_fini.
  8089. * grub-core/video/bitmap.c (GRUB_MOD_INIT): Removed.
  8090. (GRUB_MOD_FINI): Likewise.
  8091. * grub-core/video/radeon_fuloong2e.c (GRUB_MOD_INIT)
  8092. [LOONGSON]: Rename to grub_video_radeon_fuloong2e_init.
  8093. (GRUB_MOD_FINI) [LOONGSON]: Rename to
  8094. grub_video_radeon_fuloong2e_fini.
  8095. * grub-core/video/sis315pro.c (GRUB_MOD_INIT)
  8096. [LOONGSON]: Rename to grub_video_sis315pro_init.
  8097. (GRUB_MOD_FINI) [LOONGSON]: Rename to
  8098. grub_video_sis315pro_fini.
  8099. * grub-core/video/sm712.c (GRUB_MOD_INIT)
  8100. [LOONGSON]: Rename to grub_video_sm712_init.
  8101. (GRUB_MOD_FINI) [LOONGSON]: Rename to
  8102. grub_video_sm712_fini.
  8103. * include/grub/at_keyboard.h (grub_at_keyboard_init): New proto.
  8104. (grub_at_keyboard_fini): Likewise.
  8105. * include/grub/dl.h (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]:
  8106. Don't declare grub_{modname}_init.
  8107. (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]: Don't declare grub_{modname}_fini.
  8108. * include/grub/keyboard_layouts.h (grub_keylayouts_init) [!EMU]:
  8109. New proto.
  8110. (grub_keylayouts_fini) [!EMU]: Likewise.
  8111. * include/grub/serial.h (grub_serial_init) [!EMU]:
  8112. New proto.
  8113. (grub_serial_fini) [!EMU]: Likewise.
  8114. * include/grub/terminfo.h (grub_terminfo_init) [!EMU]:
  8115. New proto.
  8116. (grub_terminfo_fini) [!EMU]: Likewise.
  8117. * include/grub/video.h (grub_font_init) [!EMU]:
  8118. New proto.
  8119. (grub_font_fini) [!EMU]: Likewise.
  8120. (grub_gfxterm_init) [!EMU]: Likewise.
  8121. (grub_gfxterm_fini) [!EMU]: Likewise.
  8122. (grub_video_sm712_init) [!EMU]: Likewise.
  8123. (grub_video_sm712_fini) [!EMU]: Likewise.
  8124. (grub_video_sis315pro_init) [!EMU]: Likewise.
  8125. (grub_video_sis315pro_fini) [!EMU]: Likewise.
  8126. (grub_video_radeon_fuloong2e_init) [!EMU]: Likewise.
  8127. (grub_video_radeon_fuloong2e_fini) [!EMU]: Likewise.
  8128. 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
  8129. Make nand a prefix for nand devices.
  8130. * grub-core/disk/ieee1275/nand.c (grub_nand_open): Use prefix nand.
  8131. 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
  8132. * grub-core/kern/misc.c (grub_stpcpy): Move from here ...
  8133. * include/grub/misc.h (grub_stpcpy): ... to here. Inlined.
  8134. 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
  8135. * include/grub/env.h (grub_env_find): Remove prototype.
  8136. * grub-core/kern/env.c (grub_env_find): Make static.
  8137. (grub_env_set): Remove useless set.
  8138. 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
  8139. * grub-core/kern/i386/realmode.S: Remove useless align.
  8140. 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
  8141. * include/grub/dl.h (grub_dl_load_file): Don't export.
  8142. 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
  8143. * grub-core/disk/diskfilter.c (grub_diskfilter_open): Remove useless
  8144. grub_dprintf.
  8145. 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
  8146. * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Remove useless
  8147. grub_errors.
  8148. * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Simplify by
  8149. not reloading whole superblock but only the part which is really needed.
  8150. Remove useless grub_errors.
  8151. * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Remove useless
  8152. grub_errors.
  8153. 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
  8154. Don't export grub_get_rtc.
  8155. * include/grub/i386/pc/time.h (grub_get_rtc): Don't export.
  8156. * grub-core/commands/i386/pc/play.c (play): Use grub_get_time_ms.
  8157. 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
  8158. * grub-core/genmod.sh.in: Add -R .note.GNU-stack to strip.
  8159. 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
  8160. * grub-core/disk/diskfilter.c (insert_array): Remove scanner_name
  8161. argument since it can be deduced from diskfilter. All users updated.
  8162. 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
  8163. Remove prio_list.
  8164. * include/grub/list.h (grub_prio_list): Removed.
  8165. (GRUB_PRIO_LIST_PRIO_MASK): Removed. All users switched to
  8166. GRUB_COMMAND_PRIO_MASK.
  8167. (GRUB_PRIO_LIST_FLAG_ACTIVE): Removed. All users switched to
  8168. GRUB_COMMAND_FLAG_ACTIVE.
  8169. (grub_prio_list_insert): Removed.
  8170. (grub_prio_list_remove): Likewise.
  8171. (GRUB_AS_PRIO_LIST): Likewise.
  8172. (GRUB_AS_PRIO_LIST_P): Likewise.
  8173. * include/grub/command.h (GRUB_COMMAND_PRIO_MASK): New define.
  8174. (GRUB_COMMAND_FLAG_ACTIVE): Likewise.
  8175. * grub-core/kern/list.c (grub_prio_list_insert): Remove.
  8176. * grub-core/kern/command.c (grub_register_command_prio): Inline
  8177. the prio_list code.
  8178. (grub_unregister_command): Likewise.
  8179. 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
  8180. Fix interrupt mixup from previous commit.
  8181. * include/grub/i386/pc/int.h (grub_i386_idt): New struct.
  8182. (grub_realidt): New var.
  8183. * grub-core/lib/i386/relocator16.S (grub_relocator16_idt): New variable
  8184. Load idt.
  8185. * grub-core/lib/i386/relocator.c (grub_relocator16_idt):
  8186. New declaration.
  8187. (grub_relocator16_boot): Set grub_relocator16_idt.
  8188. * grub-core/kern/i386/realmode.S (realidt): Renamed to ...
  8189. (LOCAL(realidt)): ... this.
  8190. * grub-core/boot/i386/pc/startup_raw.S: Pass pointer to realidt in eax.
  8191. * grub-core/kern/i386/pc/startup.S: Save pointer to realidt.
  8192. (grub_realidt): New variable.
  8193. 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
  8194. * grub-core/lib/i386/backtrace.c (grub_cmd_backtrace): Move from ...
  8195. * grub-core/lib/backtrace.c (grub_cmd_backtrace): ... to here.
  8196. * grub-core/lib/i386/backtrace.c (GRUB_MOD_INIT): Move from ...
  8197. * grub-core/lib/backtrace.c (GRUB_MOD_INIT): ... to here.
  8198. Gettextize.
  8199. * grub-core/lib/i386/backtrace.c (GRUB_MOD_FINI): Move from ...
  8200. * grub-core/lib/backtrace.c (GRUB_MOD_FINI): ... to here.
  8201. * po/POTFILES.in: Regenerate.
  8202. 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
  8203. * grub-core/commands/probe.c (grub_cmd_probe): Gettextise UUID and label
  8204. errors.
  8205. 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
  8206. * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Stop on
  8207. \0.
  8208. (add_length): Likewise.
  8209. 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
  8210. 2012-02-26 Lubomir Kundrak <lkundrak@redhat.com>
  8211. GDB serial and backtrace support.
  8212. * grub-core/kern/i386/realmode.S (real_to_prot): Reload IDT.
  8213. (prot_to_real): Likewise.
  8214. * grub-core/kern/i386/int.S (grub_bios_interrupt): Remove IDT reload.
  8215. * grub-core/Makefile.core.def (backtrace): New module.
  8216. (gdb): Likewise.
  8217. * grub-core/gdb/cstub.c: New file.
  8218. * grub-core/gdb/gdb.c: Likewise.
  8219. * grub-core/gdb/i386/idt.c: Likewise.
  8220. * grub-core/gdb/i386/machdep.S: Likewise.
  8221. * grub-core/gdb/i386/signal.c: Likewise.
  8222. * grub-core/lib/i386/backtrace.c: Likewise.
  8223. * grub-core/lib/backtrace.c: Likewise.
  8224. * include/grub/backtrace.h: Likewise.
  8225. * include/grub/gdb.h: Likewise.
  8226. * include/grub/i386/gdb.h: Likewise.
  8227. 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
  8228. * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len):
  8229. New function.
  8230. (add_length): Likewise.
  8231. (__argp_fmtstream_update): Handle strings with non-ASCII chars.
  8232. * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): New
  8233. proto.
  8234. * grub-core/gnulib/argp-help.c (argp_args_usage): Use
  8235. __argp_get_display_len.
  8236. 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
  8237. $"..." support in scripts.
  8238. * grub-core/script/execute.c (grub_script_arglist_to_argv): Handle
  8239. GRUB_SCRIPT_ARG_TYPE_GETTEXT.
  8240. * grub-core/script/yylex.l: Likewise.
  8241. * include/grub/script_sh.h (GRUB_SCRIPT_ARG_TYPE_GETTEXT): New enum
  8242. value.
  8243. 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
  8244. * gentpl.py: Remove obsolete pkglib_DATA handling.
  8245. 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
  8246. Don't transform PACKAGE_TARNAME following a discussion on autoconf
  8247. mailing list.
  8248. * util/grub-install.in: Don't transform PACKAGE_TARNAME.
  8249. * util/grub-kbdcomp.in: Likewise.
  8250. * util/grub-mkconfig.in: Likewise.
  8251. * util/grub-mkconfig_lib.in: Likewise.
  8252. * util/grub-mknetdir.in: Likewise.
  8253. * util/grub-mkrescue.in: Likewise.
  8254. * util/grub-mkstandalone.in: Likewise.
  8255. * util/grub-reboot.in: Likewise.
  8256. * util/grub-set-default.in: Likewise.
  8257. * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
  8258. 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
  8259. Remove GRUB_PREFIX.
  8260. * util/grub-mkconfig.in: Remove GRUB_PREFIX.
  8261. * util/grub.d/00_header.in: Compute prefix in the only place it's still
  8262. used for backward compatibility.
  8263. 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
  8264. Add new all_video module.
  8265. * grub-core/Makefile.am (moddep.lst): Make dependent on video.lst.
  8266. * grub-core/Makefile.core.def (all_video): New module.
  8267. * grub-core/genmoddep.awk: Generate dependency of all_video from
  8268. video.lst.
  8269. * grub-core/lib/fake_module.c: New file.
  8270. * grub-core/normal/main.c (features): Add feature_all_video_module.
  8271. * util/grub.d/00_header.in: Define locale_dir based on $prefix and
  8272. don't do explicit search again.
  8273. insmod all_video in load_video if available.
  8274. 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
  8275. Another round of string clarification and adding TRANSLATORS comments.
  8276. 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
  8277. * util/grub-mknetdir.in: Remove erroneous reference to install_device.
  8278. 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
  8279. * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Fix return type
  8280. to grub_ssize_t.
  8281. * grub-core/normal/main.c (grub_normal_init_page): Fix msg_len type.
  8282. * include/grub/charset.h (grub_utf8_to_ucs4_alloc): Fix prototype.
  8283. 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
  8284. * grub-core/normal/menu_text.c (grub_print_message_indented_real): Add
  8285. trailing newline implicitly. All users updated.
  8286. 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
  8287. Implement serial on IEEE1275 and EFI.
  8288. * docs/grub.texi (Platform-specific limitations): Fix the columen video
  8289. on emu. Mention arc and emu as the only platforms without serial
  8290. support.
  8291. * grub-core/Makefile.core.def (serial): Enable on all terminfomodule and
  8292. ieee1275 platforms.
  8293. * grub-core/term/efi/serial.c: New file.
  8294. * grub-core/term/ieee1275/serial.c: Likewise.
  8295. * grub-core/term/serial.c (grub_serial_find): Disable direct port
  8296. specification if no ns8250 driver is available.
  8297. (grub_cmd_serial): Likewise.
  8298. (GRUB_MOD_INIT) [GRUB_MACHINE_IEEE1275]: Init ofserial.
  8299. (GRUB_MOD_INIT) [GRUB_MACHINE_EFI]: Init efiserial.
  8300. * include/grub/efi/api.h (GRUB_EFI_SERIAL_IO_GUID): New define.
  8301. (grub_efi_parity_type_t): New type.
  8302. (grub_efi_stop_bits_t): Likewise.
  8303. (grub_efi_serial_io_interface): New struct.
  8304. * include/grub/serial.h (grub_serial_port): Make 'broken' field
  8305. available for all interfaces.
  8306. Add EFI and IEEE1275 fields.
  8307. (grub_ofserial_init): New proto.
  8308. (grub_efiserial_init): Likeiwse.
  8309. * util/grub.d/00_header.in: Don't check for the presence of serial
  8310. module.
  8311. 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
  8312. * grub-core/disk/ieee1275/ofdisk.c (scan): Fix improper use of device
  8313. name as if it was an alias.
  8314. 2012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
  8315. * grub-core/commands/lsacpi.c (options): Fix typo.
  8316. 2012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
  8317. Convert grub-emu to argp.
  8318. * grub-core/Makefile.core.def (kernel): Add kern/emu/argp_common.c on
  8319. emu.
  8320. * util/argp_common.c: Rename to ...
  8321. * grub-core/kern/emu/argp_common.c: ... this. All users updated.
  8322. Add missing includes.
  8323. * grub-core/kern/emu/main.c: Convert to argp.
  8324. * po/POTFILES.in: Regenerate.
  8325. * util/grub-install.in (usage): Make first letter lowcase in messages
  8326. for uniformity.
  8327. * util/grub-setup.c (options): Likewise.
  8328. 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
  8329. * grub-core/gfxmenu/gui_progress_bar.c (progress_bar_set_property):
  8330. Put back accidently commented-out code.
  8331. 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
  8332. * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Add btree
  8333. loop check using Brent algorithm.
  8334. (grub_hfsplus_btree_search): Likewise.
  8335. 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
  8336. * util/grub-install.in: Fix usage of wrong device for PreP install.
  8337. 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
  8338. * conf/Makefile.common (CFLAGS_GNULIB): Add
  8339. -Wno-unsafe-loop-optimizations.
  8340. * configure.ac: Remove -Wmissing-declarations and -Wmissing-prototypes
  8341. on tools.
  8342. * grub-core/commands/legacycfg.c: Add pragma to skip
  8343. -Wunsafe-loop-optimizations.
  8344. (check_password_md5_real): Fix loop counter type.
  8345. * grub-core/commands/testload.c (grub_cmd_testload): Fix over the EOF
  8346. reading.
  8347. * grub-core/disk/ldm.c (grub_util_get_ldm): Fix logic error.
  8348. * grub-core/fs/zfs/zfs_sha256.c (zio_checksum_SHA256): Add safety
  8349. loop condition.
  8350. * grub-core/io/gzio.c: Add pragma to skip -Wunsafe-loop-optimizations.
  8351. * grub-core/lib/LzmaEnc.c (GetOptimum): Avoid possible infinite loop.
  8352. * grub-core/net/net.c (grub_net_route_address): Add safety loop
  8353. condition.
  8354. * grub-core/normal/charset.c (bidi_line_wrap): Likewise.
  8355. * grub-core/normal/cmdline.c (grub_set_history): Fix loop types and
  8356. avoid possible infinite loops.
  8357. * grub-core/script/parser.y: Add pragma to skip -Wmissing-declarations
  8358. and -Wunsafe-loop-optimizations.
  8359. * grub-core/script/yylex.l: Likewise.
  8360. * util/grub-mkfont.c: Add pragma to skip -Wunsafe-loop-optimizations.
  8361. (print_glyphs): Avoid infinite loops.
  8362. * util/grub-mkimage.c (compress_kernel_xz): Fix format security.
  8363. 2012-02-24 Grégoire Sutre <gregoire.sutre@gmail.com>
  8364. * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): Fix loop condition
  8365. to avoid infinite loop.
  8366. (disp_acpi_rsdt_table): Likewise.
  8367. 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
  8368. * grub-core/font/font.c (grub_font_load): Add support for default
  8369. path for fonts ($prefix/fonts).
  8370. * grub-core/kern/corecmd.c (grub_core_cmd_insmod): Unify condition
  8371. for checking if string is a path.
  8372. * grub-core/normal/main.c (features): Add feature_default_font_path.
  8373. * util/grub-mkconfig.in: Skip mangling of GRUB_FONT into GRUB_FONT_PATH.
  8374. * util/grub.d/00_header.in: Use default directory if possible.
  8375. * util/grub-install.in: Install unicode.pf2.
  8376. 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
  8377. * po/README: Add de_CH and en@quot to po/LINGUAS generation command.
  8378. * po/Rules-swiss: New file.
  8379. * po/swiss.sed: Likewise.
  8380. 2012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
  8381. * grub-core/fs/btrfs.c (find_device): Fix typos.
  8382. * grub-core/fs/zfs/zfs.c (read_device): Likewise.
  8383. * util/grub-mkrelpath.c (argp_parser): Likewise.
  8384. Reported by: Yuri Chornoivan.
  8385. 2012-02-23 Dalet Omega <daletomega@gmail.com>
  8386. * grub-core/gfxmenu/gui_label.c (label_set_property): Add template
  8387. for usual informative messages.
  8388. 2012-02-23 Dalet Omega <daletomega@gmail.com>
  8389. Starfield theme.
  8390. * Makefile.am: Define starfield_DATA and dejavu.pf2 generation.
  8391. * conf/Makefile.common: Define starfielddir.
  8392. * configure.ac: Configure starfield.
  8393. * themes/starfield/COPYING.CC-BY-SA-3.0: New file.
  8394. * themes/starfield/README: Likewise.
  8395. * themes/starfield/blob_w.png: Likewise.
  8396. * themes/starfield/boot_menu_c.png: Likewise.
  8397. * themes/starfield/boot_menu_e.png: Likewise.
  8398. * themes/starfield/boot_menu_n.png: Likewise.
  8399. * themes/starfield/boot_menu_ne.png: Likewise.
  8400. * themes/starfield/boot_menu_nw.png: Likewise.
  8401. * themes/starfield/boot_menu_s.png: Likewise.
  8402. * themes/starfield/boot_menu_se.png: Likewise.
  8403. * themes/starfield/boot_menu_sw.png: Likewise.
  8404. * themes/starfield/boot_menu_w.png: Likewise.
  8405. * themes/starfield/slider_c.png: Likewise.
  8406. * themes/starfield/slider_n.png: Likewise.
  8407. * themes/starfield/slider_s.png: Likewise.
  8408. * themes/starfield/src/blob_nw.xcf: Likewise.
  8409. * themes/starfield/src/bootmenu/: Likewise.
  8410. * themes/starfield/src/bootmenu/center.xcf: Likewise.
  8411. * themes/starfield/src/bootmenu/corner.xcf: Likewise.
  8412. * themes/starfield/src/bootmenu/side.xcf: Likewise.
  8413. * themes/starfield/src/slider_c.xcf: Likewise.
  8414. * themes/starfield/src/slider_n.xcf: Likewise.
  8415. * themes/starfield/src/slider_s.xcf: Likewise.
  8416. * themes/starfield/src/terminalbox/: Likewise.
  8417. * themes/starfield/src/terminalbox/center.xcf: Likewise.
  8418. * themes/starfield/src/terminalbox/corner.xcf: Likewise.
  8419. * themes/starfield/src/terminalbox/side.xcf: Likewise.
  8420. * themes/starfield/starfield.png: Likewise.
  8421. * themes/starfield/terminal_box_c.png: Likewise.
  8422. * themes/starfield/terminal_box_e.png: Likewise.
  8423. * themes/starfield/terminal_box_n.png: Likewise.
  8424. * themes/starfield/terminal_box_ne.png: Likewise.
  8425. * themes/starfield/terminal_box_nw.png: Likewise.
  8426. * themes/starfield/terminal_box_s.png: Likewise.
  8427. * themes/starfield/terminal_box_se.png: Likewise.
  8428. * themes/starfield/terminal_box_sw.png: Likewise.
  8429. * themes/starfield/terminal_box_w.png: Likewise.
  8430. * themes/starfield/theme.txt: Likewise.
  8431. 2012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
  8432. * util/grub.d/00_header.in: Add missing export theme.
  8433. 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
  8434. * util/ieee1275/ofpath.c: Remove include of malloc.h since stdlib is
  8435. already included.
  8436. Reported by: Eren D.
  8437. 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
  8438. * conf/Makefile.common (grubdatadir): Removed.
  8439. (Makefile.am): Move eveything grubdata to pkgdata.
  8440. 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
  8441. * grub-core/commands/acpihalt.c (get_sleep_type):
  8442. Remove unused variable.
  8443. 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
  8444. * include/grub/acpi.h (GRUB_ASCII_OPCODE): Add
  8445. GRUB_ACPI_OPCODE_STRING_CONST, GRUB_ACPI_OPCODE_BUFFER,
  8446. GRUB_ACPI_OPCODE_CREATE_WORD_FIELD
  8447. and GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD.
  8448. * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Replace include of
  8449. i18n with gettext no-op.
  8450. (skip_data_ref_object): Support GRUB_ACPI_OPCODE_BUFFER and
  8451. GRUB_ACPI_OPCODE_STRING_CONST.
  8452. (get_sleep_type): Support GRUB_ACPI_OPCODE_CREATE_WORD_FIELD and
  8453. GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD. Add handling of unknown opcodes.
  8454. 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
  8455. * po/POTFILES.in: Regenerate.
  8456. 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
  8457. * Makefile.util.def (libgrubmods.a): Add -Wno-error=logical-op
  8458. -Wno-error=missing-noreturn.
  8459. 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
  8460. * grub-core/fs/affs.c (grub_affs_read_block): Avoid <= in loop
  8461. condition to avoid possibly infinite loops.
  8462. * grub-core/lib/pbkdf2.c (grub_crypto_pbkdf2): Likewise.
  8463. * grub-core/lib/xzembed/xz_dec_bcj.c (bcj_powerpc): Likewise.
  8464. 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
  8465. * grub-core/normal/charset.c (bidi_line_wrap): Avoid <= in loop
  8466. condition to avoid possibly infinite loops.
  8467. 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
  8468. * grub-core/kern/emu/hostdisk.c (read_device_map): Add missing noreturn
  8469. on show_error.
  8470. 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
  8471. * grub-core/kern/disk.c (grub_disk_write): Add missing const qualifier.
  8472. 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
  8473. * grub-core/kern/corecmd.c (grub_core_cmd_ls): Add missing var init.
  8474. 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
  8475. * util/bin2h.c (usage): Add missing attribute noreturn.
  8476. 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
  8477. * grub-core/commands/testload.c (grub_cmd_testload): Fix overflow
  8478. if the size isn't divisible by 512.
  8479. 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
  8480. Make list_push and list_remove functions rather than inline functions
  8481. to decrease size and avoid aliasing violations.
  8482. * include/grub/list.h (grub_list_push): Move to ...
  8483. * grub-core/kern/list.c (grub_list_push): ... here. Don't inline.
  8484. * include/grub/list.h (grub_list_remove): Move to ...
  8485. * grub-core/kern/list.c (grub_list_remove): ... here. Don't inline.
  8486. 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
  8487. * configure.ac: Disable for now -Wstack-protector, -Wunreachable-code
  8488. and -Wunused-result.
  8489. 2012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
  8490. * grub-core/net/net.c (grub_cmd_deladdr): Fix index.
  8491. Reported by: Seth Goldberg
  8492. 2012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
  8493. * configure.ac: Add -fno-builtin-gettext on host if NLS is disabled.
  8494. 2012-02-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
  8495. * util/grub-mkconfig.in (GRUB_CMDLINE_GNUMACH): Export variable.
  8496. * util/grub.d/10_hurd.in: Include GRUB_CMDLINE_GNUMACH in gnumach
  8497. command line.
  8498. * docs/grub.texi (Simple configuration): Document
  8499. GRUB_CMDLINE_GNUMACH.
  8500. 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
  8501. * conf/Makefile.common (platform_SCRIPTS): New variable.
  8502. (platform_PROGRAMS): Likewise.
  8503. * gentpl.py: Mark *,module and *.image for install.
  8504. * grub-core/gdb_grub.in: Add a notice of expected environment.
  8505. * grub-core/Makefile.core.def (gdb_grub): Mark for install.
  8506. (gmodule.pl): Likewise.
  8507. 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
  8508. Replace grub_checkkey with grub_getkey_noblock.
  8509. * grub-core/kern/term.c (grub_checkkey): Replaced with ...
  8510. (grub_getkey_noblock): ... this. All users updated.
  8511. 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
  8512. * grub-core/kern/emu/console.c: Move to ...
  8513. * grub-core/term/emu/console.c: ...here.
  8514. (grub_ncurses_getkey): Fix return value if no key is detected.
  8515. 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
  8516. * include/grub/test.h (grub_unit_test_init): Add missing prototype.
  8517. (grub_unit_test_fini): Likewise.
  8518. * tests/lib/unit_test.c (main): Remove extra nested external prototype.
  8519. 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
  8520. * include/grub/test.h (GRUB_UNIT_TEST)
  8521. 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
  8522. * grub-core/script/execute.c (grub_script_break): Clarify logic.
  8523. Better error handling.
  8524. (grub_script_return): Likewise.
  8525. * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
  8526. 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
  8527. * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (__GNU_LIBRARY__): Avoid
  8528. rimplicit redifinition.
  8529. 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
  8530. * docs/grub.texi (Internationalisation): Detail (lack of) collation in
  8531. GRUB.
  8532. 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
  8533. * grub-core/normal/cmdline.c (grub_cmdline_get): Don't gettext prompt.
  8534. * grub-core/normal/main.c (grub_normal_read_line_real): Gettext
  8535. prompt here.
  8536. 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
  8537. * grub-core/fs/zfs/zfs.c (zfs_fetch_nvlist): Mark unknown member here
  8538. as GRUB_ERR_BUG. Don't malloc if no device is available.
  8539. 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
  8540. * grub-core/term/terminfo.c (grub_terminfo_output_unregister):
  8541. Mark calling with invalid term as GRUB_ERR_BUG.
  8542. 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
  8543. * grub-core/net/tftp.c (tftp_receive): Silently discard too short
  8544. packets rather than raising an error.
  8545. 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
  8546. * grub-core/loader/xnu.c (grub_xnu_writetree_toheap_real): Avoid set
  8547. in if.
  8548. 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
  8549. * grub-core/loader/efi/appleloader.c (grub_cmd_appleloader): Move
  8550. diagnostic to dprintf.
  8551. * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
  8552. 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
  8553. * grub-core/kern/corecmd.c (grub_core_cmd_ls): Handle error in parsing
  8554. device name.
  8555. 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
  8556. * grub-core/fs/ntfs.c (locate_attr): Avoid set in if.
  8557. (grub_ntfs_iterate_dir): Likewise.
  8558. 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
  8559. Efiemu stylistic fixes and gettext.
  8560. * grub-core/efiemu/i386/loadcore32.c
  8561. (grub_arch_efiemu_relocate_symbols32): Avoid set in if.
  8562. * grub-core/efiemu/i386/loadcore64.c
  8563. (grub_arch_efiemu_relocate_symbols64): Likewise.
  8564. * grub-core/efiemu/i386/pc/cfgtables.c
  8565. (grub_machine_efiemu_init_tables): Likewise.
  8566. * grub-core/efiemu/loadcore.c (grub_efiemu_resolve_symbols): Likewise.
  8567. (grub_efiemu_loadcore_initXX): Add a filename argument.
  8568. All users updated.
  8569. Improved error message.
  8570. * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_init):
  8571. Add a filename argument.
  8572. All users updated.
  8573. * grub-core/efiemu/symbols.c (grub_efiemu_set_virtual_address_map):
  8574. Reclassify double relocation as GRUB_ERR_BUG.
  8575. 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
  8576. * grub-core/commands/i386/pc/play.c (grub_cmd_play): Improve error
  8577. handling.
  8578. 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
  8579. * grub-core/commands/hdparm.c (grub_cmd_hdparm): Allow running
  8580. on partition.
  8581. 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
  8582. * include/grub/misc.h (grub_error_save): Fix cleaning grub_errno.
  8583. 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
  8584. Improve string. Gettextize.
  8585. 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
  8586. * configure.ac: Remove -Winline altogether and -Wmissing-prototypes on
  8587. utils.
  8588. * util/import_gcry.py: Add -Wno-strict-aliasing on checked modules.
  8589. 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
  8590. * grub-core/disk/diskfilter.c (grub_diskfilter_print_partmap)
  8591. [GRUB_UTIL]: New function.
  8592. (insert_array) [GRUB_UTIL]: Store partmaps.
  8593. * include/grub/diskfilter.h (grub_diskfilter_pv) [GRUB_UTIL]: New member
  8594. partmaps.
  8595. (grub_diskfilter_print_partmap) [GRUB_UTIL]: New proto.
  8596. * util/grub-probe.c (probe_partmap): Call grub_diskfilter_print_partmap.
  8597. (probe_abstraction): Print diskfilter and not raid.
  8598. Reported by: Lennart Sorensen
  8599. 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
  8600. * util/grub-mkimage.c (generate_image): Explicitly init decompress_size.
  8601. * util/grub-mkimagexx.c (MASK3): New define.
  8602. (add_value_to_slot_20b): Use MASK3.
  8603. (add_value_to_slot_21): Likewise.
  8604. (relocate_addresses): Fix format specification.
  8605. (load_image): Explicitly init symtab_section.
  8606. 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
  8607. * util/getroot.c (grub_find_root_devices_from_mountinfo): Fix types.
  8608. (grub_util_biosdisk_get_grub_dev): Fix format specification.
  8609. 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
  8610. * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size): Enable
  8611. on powerpc.
  8612. Reported by: Lennart Sorensen
  8613. 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
  8614. * gentpl.py: Add missing license header.
  8615. * docs/grub.texi: Update copyright year.
  8616. 2012-02-10 Grégoire Sutre <gregoire.sutre@gmail.com>
  8617. Source grub-mkconfig_lib from the build directory at build time.
  8618. Suggested by: Vladimir Serbinenko.
  8619. * gentpl.py (manpage): Set pkgdatadir to $(builddir) on help2man call.
  8620. * util/grub-install.in: Define pkgdatadir if not already set, and source
  8621. grub-mkconfig_lib from there.
  8622. * util/grub-kbdcomp.in: Likewise.
  8623. * util/grub-mkconfig.in: Likewise.
  8624. * util/grub-mknetdir.in: Likewise.
  8625. * util/grub-mkrescue.in: Likewise.
  8626. * util/grub-mkstandalone.in: Likewise.
  8627. * util/grub-reboot.in: Likewise.
  8628. * util/grub-set-default.in: Likewise.
  8629. * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
  8630. 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
  8631. Increase warning level.
  8632. * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-redundant-decls
  8633. -Wno-unreachable-code -Wno-conversion -Wno-old-style-definition.
  8634. * configure.ac (HOST_CFLAGS): Add bunch of -W arguments.
  8635. (TARGET_CFLAGS): Likewise.
  8636. (HOST_CFLAGS): Add -Werror unless --disable-werror is activated.
  8637. * grub-core/Makefile.core.def (decompressor_xz): Add
  8638. -Wno-unreachable-code.
  8639. (normal): Add -Wno-redundant-decls.
  8640. (xzio): Add -Wno-unreachable-code.
  8641. (lzopio): Add -Wno-redundant-decls -Wno-error.
  8642. * grub-core/commands/acpi.c: Add exception to -Wcast-align.
  8643. * grub-core/commands/lsacpi.c: Add exception to -Wcast-align.
  8644. * grub-core/gensymlist.sh: Add exception to -Wmissing-format-attribute.
  8645. * grub-core/kern/dl.c: Add exception to -Wcast-align.
  8646. * grub-core/kern/efi/efi.c (grub_efi_modules_addr): Likewise.
  8647. * grub-core/kern/i386/coreboot/init.c: Add exception to
  8648. -Wsuggest-attribute=noreturn.
  8649. * grub-core/kern/ia64/dl.c: Add exception to -Wcast-align.
  8650. * grub-core/kern/ia64/dl_helper.c: Likewise.
  8651. * grub-core/kern/mips/dl.c: Likewise.
  8652. * grub-core/kern/sparc64/dl.c: Likewise.
  8653. * grub-core/lib/LzmaEnc.c: Add exception to -Wshadow.
  8654. * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy): Likewise.
  8655. (memcmp): Likewise.
  8656. * grub-core/lib/pbkdf2.c: Add exception to -Wunreachable-code.
  8657. * grub-core/loader/ia64/efi/linux.c: Add exception to -Wcast-align.
  8658. * grub-core/loader/mips/linux.c: Likewise.
  8659. * grub-core/loader/multiboot_elfxx.c: Likewise.
  8660. * grub-core/script/parser.y: Add exception to -Wunreachable-code.
  8661. * grub-core/video/sm712.c: Add exception to -Wcast-align.
  8662. * util/import_gcry.py: Add -Wno-cast-align to modules checked by hand.
  8663. * grub-core/font/font.c (grub_font_loader_init): Add explicit cast and
  8664. fixme.
  8665. * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
  8666. * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_init):
  8667. Fix prototype.
  8668. 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
  8669. * grub-core/lib/i386/relocator16.S: Fix incorrect use of absolute
  8670. address.
  8671. 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
  8672. * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
  8673. Avoid improper use of strings.
  8674. (grub_cmd_legacy_initrdnounzip): Likewise.
  8675. 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
  8676. * include/grub/emu/misc.h (grub_util_warn): Add missing format
  8677. attribute.
  8678. (grub_util_info): Likewise.
  8679. (grub_util_error): Likewise.
  8680. 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
  8681. * util/grub-mount.c (fuse_init): Avoid improper use of strings.
  8682. * util/grub-fstest.c (fstest): Likewise.
  8683. 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
  8684. * grub-core/disk/geli.c (grub_md_sha256_real): Respect format security.
  8685. (grub_md_sha512_real): Likewise.
  8686. (grub_util_get_geli_uuid): Likewise.
  8687. * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Likewise.
  8688. (grub_util_biosdisk_open): Fix format specification.
  8689. Respect format security.
  8690. * grub-core/kern/emu/misc.c (xmalloc): Respect format security.
  8691. (xrealloc): Likewise.
  8692. (xasprintf): Likewise.
  8693. 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
  8694. * util/import_gcry.py: Include grub/crypto.h in init.c.
  8695. 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
  8696. * util/grub-mkimage.c (compress_kernel_lzma): Respect format security.
  8697. (generate_image): Make prefix a const char *.
  8698. Fix format specifications. Respect format security.
  8699. Avoid void * arithmetics.
  8700. Avoid shadowing.
  8701. (argp_parser): Remove unused variable. Respect format security.
  8702. * util/grub-mkimagexx.c (relocate_symbols): Avoid shadowing.
  8703. (count_funcs) [!MKIMAGE_ELF64]: #if-out.
  8704. (count_funcs): Remove unused variable.
  8705. (relocate_addresses): Fix format specification.
  8706. Disable x86-64 with elf32. Remove unused variables.
  8707. (add_fixup_entry): Avoid shadowing.
  8708. (make_reloc_section): Fix format specification.
  8709. Use assert.
  8710. (locate_sections): Fix format specifications.
  8711. (load_image): Avoid shadowing.
  8712. 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
  8713. * util/grub-setup.c (setup): Remove unused variable. Avoid shadowing.
  8714. Fix format specifications. Respect format security.
  8715. Don't translate already translated grub_errmsg.
  8716. (argp_parser): Remove unused variable
  8717. 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
  8718. * util/grub-mkrelpath.c (argp_parser): Remove unused variable.
  8719. 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
  8720. * util/grub-mkpasswd-pbkdf2.c (argp_parser): Remove unused variable.
  8721. (main): Likewise. Use xmalloc. Respect format security.
  8722. 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
  8723. * util/grub-mklayout.c (console_grub_equivalence): Make "layout"
  8724. a const char *.
  8725. (argp_parser): Remove unused variable.
  8726. 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
  8727. * util/grub-mkfont.c (grub_font_info): Make name a const char *.
  8728. (add_pixel): Make static.
  8729. (add_font): Likewise.
  8730. (write_string_section): Make name and str a const char *.
  8731. (write_be16_section): Make name a const char *.
  8732. (print_glyphs): Make static.
  8733. (write_font_ascii_bitmap): Likewise.
  8734. (write_font_width_spec): Likewise.
  8735. (write_font_pf2): Likewise.
  8736. (argp_parser): Remove unused variable.
  8737. Respect format security.
  8738. (main): Avoid shadowing. Respect format security.
  8739. 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
  8740. * util/grub-editenv.c (argp_parser): Make static.
  8741. (create_envblk_file): Use xmalloc.
  8742. (open_envblk_file): Likewise.
  8743. Resepect format security.
  8744. (set_variables): Respect format security.
  8745. 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
  8746. * util/getroot.c (grub_find_device): Respect format security.
  8747. (get_mdadm_uuid): Remove unused variable.
  8748. (grub_util_pull_device): Dont call gettext on already translated
  8749. grub_errmsg.
  8750. (find_system_device): Remove unused variable.
  8751. (grub_util_get_grub_dev): Likewise.
  8752. (grub_make_system_path_relative_to_its_root): Respect format security.
  8753. 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
  8754. * util/grub-fstest.c (execute_command): Make first argument
  8755. a const char *.
  8756. (read_file): Avoid shadowing.
  8757. Reuse underlying error message if device open fails.
  8758. (cmd_cmp): Respect format security.
  8759. (root): Make const char *.
  8760. (fstest): Remove args argument and use global copy.
  8761. Respect format security.
  8762. (argp_parser): Make static.
  8763. (main): Make default_root const char *.
  8764. 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
  8765. * util/grub-mount.c (root): Make const char *.
  8766. (execute_command): Make first argument a const char *.
  8767. (fuse_init): Respect format security.
  8768. (argp_parser): Make static. Remove unused variable.
  8769. (main): Make default_root a const char *.
  8770. Respect format security.
  8771. 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
  8772. * util/grub-probe.c (probe): Don't call gettext on already translated
  8773. grub_errmsg.
  8774. Remove unused variables.
  8775. (argp_parser): Remove unused variable.
  8776. 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
  8777. * util/grub-script-check.c (argp_parser): Remove unused variable.
  8778. (main): Rename read to curread to avoid shadowing.
  8779. 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
  8780. * util/misc.c (grub_util_write_image_at): Fix format specification.
  8781. (grub_util_write_image): Likewise.
  8782. (grub_script_execute_argument_to_string): Removed (unused).
  8783. (grub_script_execute_menuentry): Likewise.
  8784. (grub_putchar): Likewise.
  8785. 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
  8786. * include/grub/symbol.h (EXT_C) [GRUB_UTIL]: Removed.
  8787. (FUNCTION) [GRUB_UTIL]: Likewise.
  8788. (VARIABLE) [GRUB_UTIL]: Likewise.
  8789. 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
  8790. * include/grub/misc.h: Avoid evaluationg NEED_ENABLE_EXECUTE_STACK and
  8791. NEED_REGISTER_FRAME_INFO in GRUB_UTIL.
  8792. 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
  8793. * grub-core/partmap/bsdlabel.c (iterate_real): Fix freeing of static
  8794. buffer.
  8795. 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
  8796. * grub-core/lib/LzmaEnc.c (LzmaEnc_FastPosInit): Made static.
  8797. (LzmaEnc_SaveState): Removed (unused).
  8798. (LzmaEnc_RestoreState): Likewise.
  8799. (LzmaEnc_InitPriceTables): Made static.
  8800. (LzmaEnc_Construct): Likewise.
  8801. (LzmaEnc_FreeLits): Likewise.
  8802. (LzmaEnc_Destruct): Likewise.
  8803. (LzmaEnc_Init): Likewise.
  8804. (LzmaEnc_InitPrices): Likewise.
  8805. (LzmaEnc_Finish): Likewise.
  8806. (LzmaEnc_PrepareForLzma2): Removed (unused).
  8807. (LzmaEnc_MemPrepare): Likewise.
  8808. (LzmaEnc_GetNumAvailableBytes): Likewise.
  8809. (LzmaEnc_GetCurBuf): Likewise.
  8810. (LzmaEnc_CodeOneMemBlock): Likewise.
  8811. 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
  8812. * grub-core/disk/ldm.c (grub_util_get_ldm): Remove unused variables.
  8813. (grub_util_ldm_embed): Likewise.
  8814. 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
  8815. * util/grub-editenv.c (print_var): Rename name to varname to
  8816. avoid shadowing.
  8817. (main): Rename index to curindex to avoid shadowing.
  8818. Make filename a const char *.
  8819. 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
  8820. * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
  8821. to arg_getline to avoid shadowing.
  8822. 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
  8823. * grub-core/partmap/gpt.c (gpt_partition_map_embed): Rename disk to
  8824. disk_ to avoid shadowing.
  8825. 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
  8826. * grub-core/lib/LzFind.c (MatchFinder_GetIndexByte): Rename index to
  8827. curindex to avoid shadowing.
  8828. Make static.
  8829. (MatchFinder_GetNumAvailableBytes): Make static.
  8830. 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
  8831. * grub-core/fs/squash4.c (direct_read): Rename read to curread to
  8832. avoid shadowing.
  8833. 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
  8834. * grub-core/disk/cryptodisk.c (grub_cryptodisk_endecrypt): Rename
  8835. argument from encrypt to do_encrypt to avoid shadowing.
  8836. 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
  8837. * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elf): Fix
  8838. incorrect nesting of #if's.
  8839. 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
  8840. * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): #if'-out the
  8841. checks which are always false on some platforms.
  8842. (grub_cmd_lsacpi): Likewise.
  8843. * grub-core/kern/misc.c (grub_strtoul): Likewise.
  8844. * grub-core/loader/multiboot.c (grub_multiboot_set_video_mode):
  8845. Likewise.
  8846. 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
  8847. * grub-core/disk/diskfilter.c (read_segment): Renome unreachable code.
  8848. * grub-core/net/ip.c (grub_net_recv_ip4_packets): Likewise.
  8849. 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
  8850. * grub-core/gnulib/regex.h (re_pattern_buffer): Declare buffer as
  8851. re_dfa_t to avoid breaking alignment invariants.
  8852. * grub-core/gnulib/regex_internal.h (re_dfa_t): Moved to ...
  8853. * grub-core/gnulib/regex.h (re_dfa_t): ... here.
  8854. 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
  8855. * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix printf.
  8856. * grub-core/loader/ia64/efi/linux.c (grub_cmd_fpswa): Likewise.
  8857. 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
  8858. * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init):
  8859. Fix declaration.
  8860. 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
  8861. * grub-core/bus/usb/ehci.c (grub_ehci_ehcc_read32): Restructure to
  8862. conserve alignment invariants.
  8863. (grub_ehci_ehcc_read16): Likewise.
  8864. (grub_ehci_oper_read32): Likewise.
  8865. (grub_ehci_oper_write32): Likewise.
  8866. (grub_ehci_pci_iter) [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
  8867. Conserve alignment invariants.
  8868. 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
  8869. * grub-core/kern/emu/full.c (grub_emu_post_init): Remove raid reinit.
  8870. * include/grub/disk.h [GRUB_MACHINE_EMU]: Remove now useless LVM/RAID
  8871. declarations.
  8872. 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
  8873. * grub-core/kern/emu/hostfs.c (grub_hostfs_close):
  8874. Remove unused variable.
  8875. 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
  8876. * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_load):
  8877. Remove set in if.
  8878. 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
  8879. * include/grub/net.h: Remove double declarations.
  8880. 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
  8881. Remove "payload" command in ia64 Linux loader since I couldn't
  8882. find any evidence of it being used for anything.
  8883. Replace "relocate" command with an environment variable
  8884. * grub-core/loader/ia64/efi/linux.c (ia64_boot_param): Remove extra
  8885. fields.
  8886. (ia64_boot_payload): Removed.
  8887. (last_payload): Likewise.
  8888. (RELOCATE_OFF): Likewise.
  8889. (RELOCATE_ON): Likewise.
  8890. (RELOCATE_FORCE): Likewise.
  8891. (relocate): Likewise.
  8892. (free_pages): Don't free payloads.
  8893. (grub_load_elf64): Use common error messages.
  8894. Use "linux_relocate" variable.
  8895. Increase the space after boot_params.
  8896. (grub_cmd_payload): Removed.
  8897. (grub_cmd_relocate): Likewise.
  8898. (grub_cmd_fpswa): Improve messages.
  8899. (cmd_payload): Removed.
  8900. (cmd_relocate): Likewise.
  8901. (GRUB_MOD_INIT): Don't register "payload" and "relocate".
  8902. (GRUB_MOD_FINI): Don't unregister "payload" and "relocate".
  8903. 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
  8904. Convert UHCI to DMA framework.
  8905. * grub-core/bus/usb/uhci.c (grub_uhci): Add chunk and phys members.
  8906. (grub_uhci_pci_iter): Fill new members
  8907. (grub_alloc_td): Use P2V and V2P functions.
  8908. (grub_free_queue): Likewise.
  8909. (grub_alloc_qh): Likewise.
  8910. (grub_uhci_setup_transfer): Likewise.
  8911. (grub_uhci_check_transfer): Likewise.
  8912. 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
  8913. * grub-core/video/colors.c (grub_video_parse_color): Fix error message.
  8914. Remove assignment in if while on it.
  8915. 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
  8916. * util/grub-mkstandalone.in: Fix modules directory.
  8917. 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
  8918. * util/grub-mkimage.c (image_targets): Set default_compression to lzma
  8919. on i386-pc target.
  8920. (argp_parser): Accept "auto" as compression specification.
  8921. 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
  8922. Fix `help' with unloaded modules.
  8923. * include/grub/normal.h (grub_dyncmd_get_cmd): New proto.
  8924. * grub-core/normal/dyncmd.c (grub_dyncmd_get_cmd): New function.
  8925. (grub_dyncmd_dispatcher): Small stylistic fix.
  8926. * grub-core/commands/help.c (grub_cmd_help): Load missing modules when
  8927. explicit help is requested.
  8928. 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
  8929. * grub-core/fs/cpio.c (grub_cpio_dir): Fix a bug with multiple listing.
  8930. Explicitly init restart while on it.
  8931. 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
  8932. * grub-core/lib/posix_wrap/wchar.h (mbrtowc): Set pwc to zero to avoid
  8933. uninited variable.
  8934. 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
  8935. * util/grub-mknetdir.in: Use . rather than source for POSIX
  8936. compatibility.
  8937. 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
  8938. * util/grub-probe.c (main): Fix trailing space in compatibility hint.
  8939. 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
  8940. * grub-core/kern/partition.c (grub_partition_get_name): Fix uninited
  8941. variable.
  8942. 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
  8943. * grub-core/commands/hdparm.c (grub_cmd_hdparm): Accept device name
  8944. without quotes.
  8945. 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
  8946. * grub-core/net/net.c (GRUB_MOD_INIT): Don't register netfs.
  8947. 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
  8948. * grub-core/kern/partition.c (grub_partition_get_name): Fix reverse
  8949. iteration of partitions.
  8950. 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
  8951. Improve gettext support. Stylistic fixes and error handling fixes while
  8952. on it.
  8953. 2012-02-07 Vladimir Serbinenko <phcoder@gmail.com>
  8954. * grub-core/lib/i386/relocator16.S: Revert moving A20 code into PM
  8955. part. Instead setup the correct stack in RM.
  8956. * grub-core/lib/i386/relocator.c (grub_relocator16_boot): Reserve place
  8957. for stack.
  8958. * include/grub/i386/relocator_private.h: New file.
  8959. 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
  8960. * grub-core/commands/minicmd.c (GRUB_MOD_INIT): Add missing SIZE
  8961. argument.
  8962. * util/grub-fstest.c (options): Add missing DEVICE part.
  8963. 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
  8964. Clarify and unify messages.
  8965. * grub-core/commands/hashsum.c (options): Unify messages.
  8966. * grub-core/commands/keystatus.c (GRUB_MOD_INIT): Don't mark a
  8967. literal-only message as translatable.
  8968. * grub-core/commands/lsacpi.c (GRUB_MOD_INIT): Likewise.
  8969. * grub-core/loader/ia64/efi/linux.c (GRUB_MOD_INIT): Likewise.
  8970. * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Add quoting around
  8971. commands.
  8972. * grub-core/commands/menuentry.c (options): Clarify that it's a keyboard
  8973. key, not the key used to unlock. Clarify what it's used for.
  8974. * grub-core/kern/emu/hostdisk.c (read_device_map): Unify error message.
  8975. * grub-core/loader/xnu.c (grub_xnu_load_driver): Remove erroneous colon.
  8976. * grub-core/script/main.c (GRUB_MOD_INIT): Clarify [n] to be [NUM].
  8977. * util/grub-editenv.c (options): Unify "verbose" message.
  8978. * util/grub-fstest.c (read_file): Unify error message.
  8979. (fstest): Add quotes around commands.
  8980. (options): Unify "verbose" message.
  8981. * util/grub-install.in: Add quotes around variable name.
  8982. * util/grub-kbdcomp.in: Unify error message.
  8983. * util/grub-mkfont.c (main): Likewise.
  8984. * util/grub-mkrescue.in: Likewise.
  8985. * util/grub-mklayout.c (options): Unify "verbose" message.
  8986. * util/grub-mkstandalone.in: Unify help and verbose messages.
  8987. * util/grub-mount.c (options): Unify "verbose" message.
  8988. * util/grub-probe.c (options): Likewise.
  8989. * util/grub-script-check.c (options): Likewise.
  8990. * util/grub-setup.c (setup): Unify no-terminator message.
  8991. (options): Use DEVICE and not DEV.
  8992. Unify "verbose" message.
  8993. * util/ieee1275/ofpath.c (xrealpath): Unify error message.
  8994. 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
  8995. Improve and unify messages.
  8996. * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Add argument
  8997. name. All users updated.
  8998. Print filename in error.
  8999. (read_device_map): Print filename in error.
  9000. * util/getroot.c (grub_guess_root_devices): Print filename in error.
  9001. (grub_util_get_os_disk): Likewise.
  9002. (grub_util_biosdisk_get_grub_dev): Likewise.
  9003. (grub_util_check_block_device): Likewise.
  9004. (grub_util_check_char_device): Likewise.
  9005. (grub_make_system_path_relative_to_its_root): Likewise.
  9006. * util/grub-editenv.c (create_envblk_file): Likewise.
  9007. (open_envblk_file): Likewise.
  9008. (write_envblk): Likewise.
  9009. * util/grub-fstest.c (cmd_cp): Likewise.
  9010. (cmd_cat): Likewise.
  9011. (cmd_cmp): Likewise.
  9012. * util/grub-menulst2cfg.c (main): Likewise.
  9013. * util/grub-mkfont.c (write_font_ascii_bitmap): Likewise.
  9014. (write_font_width_spec): Likewise.
  9015. (write_font_pf2): Likewise.
  9016. * util/grub-mkimage.c (generate_image): New argument outname.
  9017. All users updated.
  9018. Remove unreacheable message.
  9019. (options): Unify messages.
  9020. (help_filter): Likewise.
  9021. * util/grub-mklayout.c (usage): Removed (unused).
  9022. (main): Print filename in error.
  9023. * util/grub-mkrescue.in: Fix wrong quoting.
  9024. * util/grub-setup.c (setup): Print filename in error.
  9025. * util/ieee1275/ofpath.c (vendor_is_ATA): Likewise.
  9026. (check_sas): Likewise.
  9027. * util/misc.c (grub_util_get_fp_size): Removed.
  9028. (grub_util_get_image_size): Print filename in error.
  9029. (grub_util_read_at): Removed.
  9030. (grub_util_read_image): Print filename in error.
  9031. (grub_util_load_image): Likewise.
  9032. (grub_util_write_image_at): New argument filename. All users updated.
  9033. Print filename in error.
  9034. (grub_util_write_image): New argument filename. All users updated.
  9035. Print filename in error.
  9036. * util/raid.c (grub_util_raid_getmembers): Print filename in error.
  9037. * util/resolve.c (grub_util_resolve_dependencies): Likewise.
  9038. 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
  9039. * grub-core/Makefile.core.def (pxechain): New module.
  9040. * grub-core/loader/i386/pc/pxechainloader.c: New file.
  9041. * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_get_cached): New
  9042. function.
  9043. (grub_pc_net_config_real): Use grub_pxe_get_cached.
  9044. * include/grub/i386/pc/pxe.h (grub_pxe_get_cached): New proto.
  9045. 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
  9046. * grub-core/kern/err.c (GRUB_MAX_ERRMSG): Move to ...
  9047. * include/grub/err.h (GRUB_MAX_ERRMSG): ... here.
  9048. * include/grub/err.h (grub_error_saved): New struct.
  9049. (grub_errmsg): Make array size explicit.
  9050. * include/grub/misc.h (grub_error_save): New function.
  9051. (grub_error_load): Likewise.
  9052. * grub-core/kern/err.c (grub_error_stack_items): Use grub_error_saved.
  9053. (grub_error_push): Update `errno' member name.
  9054. (grub_error_pop): Likewise
  9055. * grub-core/net/tftp.c (tftp_data): New member save_err.
  9056. (tftp_receive): Save error.
  9057. (tftp_open): Restore error.
  9058. 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
  9059. * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move switch
  9060. to real mode down to execute A20-related code in protected mode as
  9061. intended.
  9062. 2012-02-05 Grégoire Sutre <gregoire.sutre@gmail.com>
  9063. * grub-core/disk/diskfilter.c (grub_diskfilter_make_raid): Return
  9064. NULL when the argument `level' has an unexpected value.
  9065. 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
  9066. Move platform-dependent files from $prefix to $prefix/$platform.
  9067. * config.h.in (GRUB_TARGET_CPU): New definition.
  9068. (GRUB_PLATFORM): Likewise.
  9069. * configure.ac: Define GRUB_TARGET_CPU and GRUB_PLATFORM.
  9070. * grub-core/commands/parttool.c (grub_cmd_parttool): Update dir.
  9071. * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
  9072. * grub-core/kern/dl.c (grub_dl_load): Likewise.
  9073. * grub-core/normal/autofs.c (read_fs_list): Likewise.
  9074. * grub-core/normal/crypto.c (read_crypto_list): Likewise.
  9075. * grub-core/normal/dyncmd.c (read_command_list): Likewise.
  9076. * grub-core/normal/term.c (read_terminal_list): Likewise.
  9077. * grub-core/gettext/gettext.c (grub_mofile_open_lang): Use
  9078. $prefix/locale.
  9079. (grub_gettext_init_ext): Likewise.
  9080. * grub-core/normal/main.c (GRUB_MOD_INIT): Define grub_cpu and
  9081. grub_platform.
  9082. * util/grub-install.in: Update directories.
  9083. * util/grub-mknetdir.in: Likewise.
  9084. * util/grub-mkrescue.in: Likewise.
  9085. 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
  9086. * grub-core/kern/ieee1275/openfw.c (grub_claimmap): Change to
  9087. grub_error framework. All users updated.
  9088. 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
  9089. * grub-core/gettext/gettext.c: Mostly rewritten to avoid using
  9090. lists (by always binsearching), improve caching (cache strings
  9091. used for binsearch, not only results), improve
  9092. maintainability (by using more structured binary search) and correct
  9093. error handling.
  9094. 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
  9095. * grub-core/script/execute.c (grub_script_return): Fix warning.
  9096. 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
  9097. * grub-core/script/execute.c (grub_script_return): Fix potential
  9098. NULL-dereference.
  9099. Reported by: Jim Meyering.
  9100. 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
  9101. * po/POTFILES.in: Regenerate.
  9102. * util/grub-install.in: Gettextize the strings missed in first pass.
  9103. 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
  9104. * Makefile.util.def (grub-mkdevicemap): Removed.
  9105. * include/grub/emu/hostdisk.h (grub_util_get_os_disk): New proto.
  9106. * include/grub/util/deviceiter.h: Removed.
  9107. * util/deviceiter.c: Likewise.
  9108. * util/getroot.c (grub_util_get_os_disk): New function.
  9109. * util/grub-install.in: Remove grub-mkdevicemap. Use -t disk as
  9110. replacement for EFI.
  9111. * util/grub-mkdevicemap.c: Removed.
  9112. * util/grub-probe.c (probe): Handle PRINT_DISK.
  9113. (argp_parser): Handle -t disk.
  9114. 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
  9115. * util/grub-mkfont.c: Migrate to argp.
  9116. * util/grub-mklayout.c: Likewise.
  9117. * util/grub-mkpasswd-pbkdf2.c: Likewise.
  9118. * util/grub-mkrelpath.c: Likewise.
  9119. * util/grub-probe.c: Likewise.
  9120. * util/grub-script-check.c: Likewise.
  9121. 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
  9122. * util/grub-reboot.in: Add missing datarootdir.
  9123. Add missing newline.
  9124. * util/grub-set-default.in: Add missing datarootdir.
  9125. * util/powerpc/ieee1275/grub-mkrescue.in: Add missing newline.
  9126. * util/grub-mkrescue.in: Likewise.
  9127. 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
  9128. * util/grub.d/30_os-prober.in: Fix TRANSLATORS comment.
  9129. 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
  9130. * util/grub-kbdcomp.in: Add decent help and gettextize.
  9131. * docs/man/grub-kbdcomp.h2m: New file.
  9132. 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
  9133. Migrate grub-mkimage.c to argp.
  9134. * Makefile.util.def (grub-mkimage): Add util/argp_common.c.
  9135. (grub-setup): Likewise.
  9136. * util/grub-setup.c (print_version): Move to ...
  9137. * util/argp_common.c (print_version): ... here.
  9138. * util/grub-setup.c (argp_program_version_hook): Move to ...
  9139. * util/argp_common.c (argp_program_version_hook): ... here.
  9140. * util/grub-setup.c (argp_parser): Add exit (1) on fatal error for
  9141. safety.
  9142. * util/grub-mkimage.c (main): Migrate to argp.
  9143. 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
  9144. * util/grub-mkrescue.in: Use same message as
  9145. util/powerpc/ieee1275/grub-mkrescue.in with %s in place of command
  9146. for better translations.
  9147. 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
  9148. * util/powerpc/ieee1275/grub-mkrescue.in: Gettextize. Unify the command
  9149. options with generic grub-mkrescue.in with the goal of future
  9150. merge.
  9151. 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
  9152. * grub-core/kern/mm.c: Add missing include of i18n.h
  9153. * grub-core/lib/relocator.c: Likewise.
  9154. 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
  9155. * grub-core/loader/ia64/efi/linux.c (find_mmap_size): Replace fatal with
  9156. error.
  9157. (allocate_pages): Check return value.
  9158. Replace fatal with error.
  9159. (grub_linux_boot): Replace printf with dprintf.
  9160. Check find_mmap_size return value.
  9161. Replace fatal with error.
  9162. Don't call grub_machine_fini.
  9163. (grub_load_elf64): Replace printf with dprintf.
  9164. (grub_cmd_linux): Likewise.
  9165. (grub_cmd_initrd): Likewise.
  9166. (grub_cmd_payload): Likewise.
  9167. 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
  9168. * grub-core/loader/i386/xnu.c (grub_cmd_devprop_load): Fix error
  9169. message.
  9170. * grub-core/video/radeon_fuloong2e.c
  9171. (grub_video_radeon_fuloong2e_setup): Likewise.
  9172. * grub-core/video/sis315pro.c (grub_video_sis315pro_setup): Likewise.
  9173. * grub-core/video/video.c (grub_video_set_mode): Don't override
  9174. standard out of memory message.
  9175. 2012-02-03 Grégoire Sutre <gregoire.sutre@gmail.com>
  9176. NetBSD disk wedge support.
  9177. * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start)
  9178. [__NetBSD__]: Handle NetBSD disk wedges.
  9179. * util/getroot.c (convert_system_partition_to_system_disk)
  9180. [__NetBSD__]: Likewise.
  9181. 2012-02-03 Mark Wooding <mdw@distorted.org.uk>
  9182. * util/grub-mkconfig.in: Use umask rather than chmod to create
  9183. grub.cfg.new to avoid insecure grub.cfg.
  9184. 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
  9185. * grub-core/commands/ls.c: Gettextize.
  9186. * grub-core/commands/setpci.c: Likewise.
  9187. * grub-core/commands/videotest.c: Likewise.
  9188. * grub-core/disk/geli.c: Likewise.
  9189. * grub-core/kern/mm.c: Likewise.
  9190. * grub-core/lib/relocator.c: Likewise.
  9191. * grub-core/loader/efi/appleloader.c: Likewise.
  9192. * grub-core/loader/i386/xnu.c: Likewise.
  9193. * grub-core/loader/ia64/efi/linux.c: Likewise.
  9194. * grub-core/loader/xnu.c: Likewise.
  9195. * grub-core/net/dns.c: Likewise.
  9196. * grub-core/net/net.c: Likewise.
  9197. * grub-core/script/lexer.c: Likewise.
  9198. * grub-core/script/parser.y: Likewise.
  9199. * grub-core/script/yylex.l: Likewise.
  9200. * util/getroot.c: Likewise.
  9201. * util/grub-setup.c: Likewise.
  9202. 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
  9203. * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): Use proper error
  9204. number.
  9205. 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
  9206. * grub-core/disk/ldm.c (grub_util_ldm_embed): Correct error message.
  9207. 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
  9208. * grub-core/commands/search_file.c (SEARCH_TARGET): Remove obsolete
  9209. macro.
  9210. * grub-core/commands/search_label.c (SEARCH_TARGET): Likewise.
  9211. * grub-core/commands/search_uuid.c (SEARCH_TARGET): Likewise.
  9212. 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
  9213. * util/grub-mkstandalone.in: Fix help messages. Gettextize.
  9214. * util/grub-install.in: Gettextize.
  9215. * util/grub-mkconfig.in: Likewise.
  9216. * util/grub-mkconfig_lib.in: Replace gettext with echo -n and not echo
  9217. if not available.
  9218. (grub_warn): Gettextize.
  9219. * util/grub-mknetdir.in: Gettextize.
  9220. * util/grub-mkrescue.in: Likewise.
  9221. * util/grub-mkstandalone.in: Likewise.
  9222. * util/grub-reboot.in: Likewise.
  9223. * util/grub-set-default.in: Likewise.
  9224. * util/grub.d/00_header.in: Likewise.
  9225. * util/grub.d/10_hurd.in: Likewise.
  9226. * util/grub.d/10_kfreebsd.in: Likewise.
  9227. * util/grub.d/10_linux.in: Likewise.
  9228. * util/grub.d/10_netbsd.in: Likewise.
  9229. * util/grub.d/10_windows.in: Likewise.
  9230. * util/grub.d/20_linux_xen.in: Likewise.
  9231. * util/grub.d/30_os-prober.in: Likewise.
  9232. * po/POTFILES-shell.in: Regenerate.
  9233. 2012-02-03 Richard Laager <rlaager@wiktel.com>
  9234. * util/grub-mkimage.c (main): Fix format-security warning.
  9235. * util/grub-mkrelpath.c (main): Likewise.
  9236. * util/grub-probe.c (main): Likewise.
  9237. 2012-02-03 Richard Laager <rlaager@wiktel.com>
  9238. * util/grub-probe.c (probe): Don't crash on canonicalize_file_name
  9239. failure.
  9240. Put back lost PRINT_DRIVE.
  9241. 2012-02-03 Richard Laager <rlaager@wiktel.com>
  9242. * util/getroot.c (find_root_devices_from_libzfs): Fix compilation error.
  9243. (grub_guess_root_devices): Replace strlen with sizeof.
  9244. Avoid crash.
  9245. (find_root_devices_from_poolname): Remove unused variable.
  9246. Handle raidzN.
  9247. 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
  9248. Support install on multi-device filesystems.
  9249. * include/grub/emu/getroot.h (grub_guess_root_device): Renamed to ...
  9250. (grub_guess_root_devices): ...this. Return char **. All users updated.
  9251. * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo):
  9252. Removed.
  9253. * util/getroot.c (find_root_device_from_libzfs): Moved pool logic to ...
  9254. (find_root_devices_from_poolname): ... here.
  9255. (grub_find_root_devices_from_mountinfo): Return char **. Make static.
  9256. Support zfs-fuse.
  9257. (grub_guess_root_device): Rename to ...
  9258. (grub_guess_root_devices): ... this. Return char **. All users updated.
  9259. * util/grub-install.in: Handle multi-device filesystems.
  9260. * util/grub-probe.c (probe). Make device_names a char **. Add delim
  9261. argument. All users updated.
  9262. Handle multi-device filesystems.
  9263. Use 'delim' as separator.
  9264. Remove device check to allow filesystems on file.
  9265. (main): Support -0 argument. Handle multi-device.
  9266. * util/grub-setup.c (setup): Remove root argument. Handle multi-device.
  9267. Fix a cross-device check while on it.
  9268. (arguments): Remove root_dev.
  9269. (argp_parser): Remove -r.
  9270. (main): Remove root_dev.
  9271. 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
  9272. * grub-core/fs/zfs/zfscrypt.c: Add link to documentation.
  9273. 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
  9274. * grub-core/commands/videotest.c (grub_cmd_videotest): Fix subset
  9275. symbol.
  9276. Reported by: NODA, Kai <nodakai>.
  9277. 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
  9278. Fix ehci on amd64.
  9279. * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): Use %p to print
  9280. pointers.
  9281. * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Likewise.
  9282. (grub_ehci_setup_qh): Likewise.
  9283. (grub_ehci_find_qh): Likewise.
  9284. (grub_ehci_transaction): Likewise.
  9285. (grub_ehci_setup_transfer): Likewise.
  9286. (grub_ehci_check_transfer): Likewise.
  9287. (grub_ehci_portstatus): Likewise.
  9288. (grub_ehci_detect_dev): Likewise.
  9289. (grub_ehci_transfer_controller_data): New field td_last_phys.
  9290. (grub_ehci_setup_transfer): Fill td_last_phys.
  9291. (grub_ehci_check_transfer): Use td_last_phys.
  9292. 2012-02-01 Seth Goldberg <seth.goldberg@oracle.com>
  9293. * grub-core/normal/context.c (grub_env_extractor_close): Don't crash
  9294. if no submenu is present.
  9295. 2012-02-01 Aleš Nesrsta <starous@volny.cz>
  9296. CBI support.
  9297. * include/grub/usb.h (grub_usbms_protocol_t): New values
  9298. GRUB_USBMS_PROTOCOL_CB and GRUB_USBMS_PROTOCOL_CBI.
  9299. * grub-core/disk/usbms.c (GRUB_USBMS_CBI_CMD_SIZE): New define.
  9300. (GRUB_USBMS_CBI_ADSC_REQ): Likewise.
  9301. (grub_usbms_dev): Add subclass, protocol and intrpt.
  9302. Remove in_maxsz and out_maxsz.
  9303. (grub_usbms_reset): Rename to ...
  9304. (grub_usbms_bo_reset): .. this.
  9305. (grub_usbms_cbi_cmd): New function.
  9306. (grub_usbms_cbi_reset): Likewise.
  9307. (grub_usbms_reset): Likewise.
  9308. (grub_usbms_attach): Recognize cbi. Same subclass and protocol.
  9309. (grub_usbms_transfer): Rename to ...
  9310. (grub_usbms_transfer_bo): ... this.
  9311. (grub_usbms_transfer_cbi): Likewise.
  9312. (grub_usbms_transfer): Likewise.
  9313. 2012-02-01 Aleš Nesrsta <starous@volny.cz>
  9314. 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
  9315. EHCI support. All of the credit goes to Aleš Nesrsta. I've just added
  9316. the support for the CS5536 modification thereos and few bugfixes.
  9317. * grub-core/Makefile.core.def (ehci): New module.
  9318. * grub-core/bus/usb/ehci.c: New file.
  9319. * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): New arguments
  9320. port and hubaddr. All users updated.
  9321. Save port and hubaddr into dev structure.
  9322. * include/grub/cs5536.h (GRUB_CS5536_MSR_USB_BASE_SMI_ENABLE): New
  9323. define.
  9324. * include/grub/pci.h (grub_dma_phys2virt): New function.
  9325. (grub_dma_virt2phys): Likewise.
  9326. * include/grub/usb.h (grub_usb_device): New members port and hubaddr.
  9327. 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
  9328. * grub-core/fs/fat.c (grub_fat_mount) [!MODE_EXFAT]: Remove fstype
  9329. check as some mkfs implementations omit it.
  9330. 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
  9331. * docs/grub.texi (Unicode): Mention identifier and space limitations.
  9332. 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
  9333. * grub-core/fs/jfs.c (grub_jfs_sblock): Make volname a char array.
  9334. Add new member volname2.
  9335. (grub_jfs_label): Use volname2 if available.
  9336. 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
  9337. * grub-core/fs/nilfs2.c (grub_nilfs2_super_block): Expand volume_name
  9338. over last_mounted as seen in image generated by mkfs.nilfs2.
  9339. (grub_nilfs2_label): Use sizeof for the size of s_volume_name.
  9340. 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
  9341. * grub-core/fs/fat.c (grub_fat_dir_entry) [MODE_EXFAT]: Expand label
  9342. to 15 UTF-16 characters as seen in FS generated by mkexfatfs.
  9343. (grub_fat_label) [MODE_EXFAT]: Use macros for size.
  9344. 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
  9345. * grub-core/fs/romfs.c (grub_romfs_mount): Fix a bug with labels going
  9346. over the sector.
  9347. 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
  9348. * grub-core/fs/zfs/zfs.c (get_filesystem_dnode): Support space in
  9349. subvolume name (by removing a bogus and useless check).
  9350. 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
  9351. * grub-core/fs/ext2.c (grub_ext2_label): Fix field size. Change to
  9352. sizeof while on it.
  9353. 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
  9354. * grub-core/disk/scsi.c (grub_scsi_read_capacity): Renamed to ...
  9355. (grub_scsi_read_capacity10): ... this.
  9356. (grub_scsi_read_capacity16): New function.
  9357. (grub_scsi_open): Use read_capacity16 if read_capacity10 returned
  9358. 0xffffffff.
  9359. Fix off-by-one error.
  9360. * include/grub/scsi.h (grub_scsi): Rename size to last_block and make it
  9361. 64-bit unsigned.
  9362. * include/grub/scsicmd.h (grub_scsi_read_capacity): Rename to ...
  9363. (grub_scsi_read_capacity10): ... this.
  9364. (grub_scsi_read_capacity_data): Rename to ...
  9365. (grub_scsi_read_capacity10_data): ... this. Rename size to last_block.
  9366. (grub_scsi_read_capacity16): New struct.
  9367. (grub_scsi_read_capacity16_data): Likewise.
  9368. (grub_scsi_cmd_t): Rename grub_scsi_cmd_read_capacity to
  9369. grub_scsi_cmd_read_capacity10.
  9370. New command grub_scsi_cmd_read_capacity16.
  9371. 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
  9372. SCSI >2TiB support.
  9373. * grub-core/disk/scsi.c (grub_scsi_read16): New function.
  9374. (grub_scsi_write16): Likewise.
  9375. (grub_scsi_read): Use read16 when necessary.
  9376. (grub_scsi_write): Likewise.
  9377. * include/grub/scsicmd.h (grub_scsi_read16): New struct.
  9378. (grub_scsi_write16): Likewise.
  9379. (grub_scsi_cmd_t): Add READ16 and WRITE16.
  9380. 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
  9381. SCSI write support (for usbms mainly).
  9382. * grub-core/disk/scsi.c (grub_scsi_write10): Uncomment. Make buffer
  9383. a const pointer.
  9384. (grub_scsi_write): Implement.
  9385. * include/grub/scsi.h (grub_scsi_dev): Make write buffer a const pointer
  9386. 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
  9387. * grub-core/io/lzopio.c (uncompress_block): Fix use of incorrect
  9388. variable.
  9389. 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
  9390. * grub-core/lib/posix_wrap/string.h (memchr): New function.
  9391. 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
  9392. * po/POTFILES.in: Regenerate.
  9393. 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
  9394. * grub-core/lib/posix_wrap/assert.h (assert_real): Replace grub_fatal
  9395. with grub_printf to avoid unnecessary fatal failure.
  9396. 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
  9397. * grub-core/lib/posix_wrap/limits.h (SHRT_MAX): New define.
  9398. (INT_MAX): Likewise.
  9399. * grub-core/lib/posix_wrap/stdio.h (snprintf): New function.
  9400. * grub-core/lib/posix_wrap/stdlib.h (abs): Likewise.
  9401. * grub-core/lib/posix_wrap/string.h (memcmp): Likewise.
  9402. (strcpy): Likewise.
  9403. (strstr): Likewise.
  9404. (strchr): Likewise.
  9405. (strncpy): Likewise.
  9406. (strcat): Likewise.
  9407. (strncat): Likewise.
  9408. (strcoll): Likewise.
  9409. * include/grub/types.h (GRUB_SHRT_MAX): New define.
  9410. (GRUB_INT_MAX): Likewise.
  9411. 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
  9412. * grub-core/gnulib/regcomp.c (regerror): Don't use abort on
  9413. unexpected error.
  9414. (optimize_utf8): Likewise.
  9415. * grub-core/lib/posix_wrap/stdlib.h (abort): Removed.
  9416. 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
  9417. * grub-core/boot/i386/pc/lnxboot.S: Use
  9418. GRUB_DECOMPRESSOR_MAX_DECOMPRESSOR_SIZE.
  9419. * grub-core/boot/i386/pc/startup_raw.S: Ensure about boot_dev
  9420. location.
  9421. * include/grub/offsets.h (GRUB_DECOMPRESSOR_I386_PC_BOOT_DEVICE): New
  9422. definition.
  9423. (GRUB_DECOMPRESSOR_I386_PC_MAX_DECOMPRESSOR_SIZE): Likewise.
  9424. 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
  9425. * util/getroot.c (grub_util_get_dm_node_linear_info): Fix memory leak.
  9426. * grub-core/disk/cryptodisk.c (cryptodisk_cleanup): Disable for
  9427. now to avoid double free.
  9428. * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_dev): Rename to
  9429. hostdisk.
  9430. * include/grub/disk.h (grub_disk_dev_id): New id HOSTDISK.
  9431. * util/grub-probe.c (escape_of_path): Always return a new copy.
  9432. (print_full_name): Escape path.
  9433. (probe): Don't call grub_util_devname_to_ofpath on NULL.
  9434. Fix hints on abstractions.
  9435. 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
  9436. * util/grub-mkconfig_lib.in (prepare_grub_to_access_device):
  9437. Don't add "root" line if no compatibility hont is available.
  9438. Suggested by: Seth Goldberg.
  9439. 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
  9440. * include/grub/ata.h (grub_ata): Add a new element maxbuffer.
  9441. * grub-core/disk/ata.c (grub_ata_readwrite): Limit to ata->maxbuffer.
  9442. * grub-core/disk/pata.c (grub_pata_open): Set ata->maxbuffer.
  9443. * grub-core/disk/ahci.c (grub_ahci_open): Likewise.
  9444. 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
  9445. * include/grub/zfs/dnode.h (DN_MIN_INDBLKSHIFT): Removed.
  9446. 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
  9447. * util/grub-pe2elf.c (ehdr): Make static.
  9448. (shdr): Likewise.
  9449. (num_sections): Likewise.
  9450. (offset): Likewise.
  9451. 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
  9452. Eliminate ofpath limits and possible overflows.
  9453. * util/ieee1275/ofpath.c (grub_util_info) [STANDALONE]: New function.
  9454. (OF_PATH_MAX): Removed.
  9455. (MAX_DISK_CAT): New const.
  9456. (find_obppath): Use allocated rather than preallocated buffer.
  9457. Return result. Argument of_path removed. All users updated.
  9458. Add missing fdstat.
  9459. (xrealpath): New function.
  9460. (block_device_get_sysfs_path_and_link): Remove sysfs argument.
  9461. Allocate rather than use preallocated buffer. All users updated.
  9462. (__of_path_common): Use allocated rather than preallocatecd buffer.
  9463. Return result. Argument of_path removed. All users updated.
  9464. (vendor_is_ATA): Read only needed part form the file.
  9465. (check_sas): Allocate depending on contents rather than fixed.
  9466. (main) [STANDALONE]: Handle NULL result.
  9467. 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
  9468. * grub-core/normal/completion.c (iterate_dev): Close the disk.
  9469. 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
  9470. Cryptodisk write support.
  9471. * grub-core/disk/cryptodisk.c (grub_crypto_pcbc_encrypt): New function.
  9472. (grub_cryptodisk_decrypt): Moved logic to ...
  9473. (grub_cryptodisk_endecrypt): ...this. New argument "encrypt".
  9474. (grub_cryptodisk_write): Implement.
  9475. * grub-core/kern/emu/hostdisk.c (nwrite): Rename to ...
  9476. (grub_util_fd_write): ... this. Make global.
  9477. * include/grub/emu/hostdisk.h (grub_util_fd_write): New proto.
  9478. 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
  9479. * include/grub/list.h (grub_list_remove): Don't crash if element is
  9480. removed twice.
  9481. 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
  9482. Rename ofconsole to console.
  9483. * grub-core/commands/terminal.c (handle_command): Handle ofconsole
  9484. as sysnonym to console.
  9485. * grub-core/term/ieee1275/ofconsole.c: Renamed to ..
  9486. * grub-core/term/ieee1275/console.c: ... this. All users updated.
  9487. Rename grub_ofconsole_ to grub_console_. All users updated
  9488. (grub_console_term_output): Rename "ofconsole" to "console".
  9489. * grub-core/term/terminfo.c (grub_cmd_terminfo): Handle "ofconsole"
  9490. as "console".
  9491. 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
  9492. * grub-core/loader/i386/pc/plan9.c (grub_cmd_plan9): Remove PXE
  9493. handling.
  9494. * include/grub/disk.h (grub_disk_dev_id): Remove obsolete
  9495. GRUB_DISK_DEVICE_UUID_ID, GRUB_DISK_DEVICE_PXE_ID and
  9496. GRUB_DISK_DEVICE_FILE_ID.
  9497. 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
  9498. * grub-core/kern/partition.c (grub_partition_get_name): Simplify logic
  9499. and improve performance.
  9500. 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
  9501. * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Fix
  9502. missing ieee1275/ prefix on whole disk.
  9503. 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
  9504. * include/grub/powerpc/ieee1275/util/biosdisk.h: Remove.
  9505. * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
  9506. 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
  9507. * grub-core/fs/cpio.c (handle_symlink): Fix a bug.
  9508. 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
  9509. Merge common RAID and LVM logic to an abstract diskfilter.
  9510. Add LDM support using the same framework.
  9511. * Makefile.util.def (libgrubkern): Add grub-core/disk/ldm.c,
  9512. grub-core/disk/diskfilter.c and grub-core/partmap/gpt.c.
  9513. (libgrubmods): Remove grub-core/disk/raid.c and
  9514. grub-core/partmap/gpt.c.
  9515. * grub-core/Makefile.core.def (ldm): New module.
  9516. (raid): Renamed to diskfilter. All users updated.
  9517. * grub-core/disk/raid.c: Moved to ...
  9518. * grub-core/disk/diskfilter.c: ... here.
  9519. * grub-core/disk/diskfilter.c: Rename grub_raid_ to grub_diskfilter_.
  9520. (lv_num): New var.
  9521. (find_array): Renamed to ...
  9522. (find_lv): ... this. Support multi-LV. Skip nameless LVs
  9523. (grub_is_array_readable): Renamed to ...
  9524. (grub_is_lv_readable): ... this. Support multinode hierarchy.
  9525. (insert_array): New argument id.
  9526. (is_node_readable): New function.
  9527. (scan_device): Rename to ...
  9528. (scan_disk): .. this. Restrict to one disk.
  9529. (scan_devices): New function.
  9530. (grub_diskfilter_iterate): Support multi-LV.
  9531. Skip invisible and nameless LVs.
  9532. (grub_diskfilter_memberlist): Support multi-LV.
  9533. (grub_diskfilter_read_node): New function.
  9534. (grub_raid_read): Most of logic moved to ...
  9535. (read_segment): ... here
  9536. (read_lv): New function.
  9537. (grub_diskfilter_get_vg_by_uuid): New function.
  9538. (grub_diskfilter_make_raid): Likewise.
  9539. * grub-core/disk/ldm.c: New file.
  9540. * grub-core/disk/lvm.c (vg_list): Removed.
  9541. (lv_count): Likewise.
  9542. (scan_depth): Likewise.
  9543. (is_lv_readable): Likewise.
  9544. (grub_lvm_getvalue): Advance pointer past the number.
  9545. (find_lv): Removed.
  9546. (do_lvm_scan): Refactored into ...
  9547. (grub_lvm_detect): ... this. Support raid.
  9548. (grub_lvm_iterate): Removed.
  9549. (grub_lvm_memberlist): Likewise.
  9550. (grub_lvm_open): Likewise.
  9551. (grub_lvm_close): Likewise.
  9552. (read_lv): Likewise.
  9553. (read_node): Likewise.
  9554. (is_node_readable): Likewise.
  9555. (is_lv_readable): Likewise.
  9556. (grub_lvm_read): Likewise.
  9557. (grub_lvm_write): Likewise.
  9558. (grub_lvm_dev): Use diskfilter
  9559. (GRUB_MOD_INIT): Likewise.
  9560. (GRUB_MOD_FINI): Likewise.
  9561. * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Use
  9562. new interface.
  9563. * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Likewise.
  9564. * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
  9565. * grub-core/disk/raid5_recover.c (grub_raid5_recover): Use
  9566. grub_diskfilter_read_node.
  9567. Fix a bug with xor.
  9568. * grub-core/disk/raid6_recover.c (grub_raid6_recover): Use
  9569. grub_diskfilter_read_node.
  9570. Support GRUB_RAID_LAYOUT_MUL_FROM_POS.
  9571. * grub-core/kern/disk.c (grub_disk_dev_list): Make global.
  9572. (grub_disk_dev_iterate): Move from here...
  9573. * include/grub/disk.h (grub_disk_dev_iterate): ... to here. Inlined.
  9574. * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
  9575. Make global.
  9576. (grub_hostdisk_find_partition_start): Likewise.
  9577. (grub_hostdisk_os_dev_to_grub_drive): New function.
  9578. (grub_util_biosdisk_get_osdev): Check that disk is biosdisk.
  9579. * grub-core/kern/emu/hostdisk.c (make_device_name): Move to ...
  9580. * util/getroot.c (make_device_name): ... here.
  9581. * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
  9582. Move to ...
  9583. * util/getroot.c (grub_util_get_dm_node_linear_info): ...here.
  9584. * grub-core/kern/emu/hostdisk.c
  9585. (convert_system_partition_to_system_disk): Move to ...
  9586. * util/getroot.c (convert_system_partition_to_system_disk): ...here.
  9587. * grub-core/kern/emu/hostdisk.c (device_is_wholedisk): Move to ...
  9588. * util/getroot.c (device_is_wholedisk): ... here.
  9589. * grub-core/kern/emu/hostdisk.c (find_system_device): Move to ...
  9590. * util/getroot.c (find_system_device): ... here.
  9591. * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_present):
  9592. Move to ...
  9593. * util/getroot.c (grub_util_biosdisk_is_present): ...here.
  9594. * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
  9595. Move to ...
  9596. * util/getroot.c (grub_util_biosdisk_get_grub_dev): ... here.
  9597. Handle LDM.
  9598. * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
  9599. Move to ...
  9600. * util/getroot.c (grub_util_biosdisk_is_floppy): ... here.
  9601. * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Made global.
  9602. * include/grub/disk.h (grub_disk_dev_id): Replaced RAID and LVM with
  9603. DISKFILTER.
  9604. * include/grub/raid.h: Renamed to ...
  9605. * include/grub/diskfilter.h: ... this.
  9606. * include/grub/diskfilter.h: Rename grub_raid_* to grub_diskfilter_*
  9607. (GRUB_RAID_LAYOUT_*): Make into array.
  9608. (GRUB_RAID_LAYOUT_MUL_FROM_POS): New value.
  9609. (grub_diskfilter_vg): New struct.
  9610. (grub_diskfilter_pv_id): Likewise.
  9611. (grub_raid_member): Removed.
  9612. (grub_raid_array): Likewise.
  9613. (grub_diskfilter_pv): New struct.
  9614. (grub_diskfilter_lv): Likewise.
  9615. (grub_diskfilter_segment): Likewise.
  9616. (grub_diskfilter_node): Likewise.
  9617. (grub_diskfilter_get_vg_by_uuid): New proto.
  9618. (grub_raid_register): Inline.
  9619. (grub_diskfilter_unregister): Likewise.
  9620. (grub_diskfilter_make_raid): New proto.
  9621. (grub_diskfilter_vg_register): Likewise.
  9622. (grub_diskfilter_read_node): Likewise.
  9623. (grub_diskfilter_get_pv_from_disk) [GRUB_UTIL]: Likewise.
  9624. * include/grub/emu/hostdisk.h (grub_util_get_ldm): New proto.
  9625. (grub_util_is_ldm): Likewise.
  9626. (grub_util_ldm_embed) [GRUB_UTIL]: Likewise.
  9627. (grub_hostdisk_find_partition_start): Likewise.
  9628. (grub_hostdisk_os_dev_to_grub_drive): Likewise.
  9629. * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_LDM):
  9630. New definition.
  9631. (grub_gpt_partition_map_iterate): New proto.
  9632. * include/grub/lvm.h (grub_lvm_vg): Removed.
  9633. (grub_lvm_pv): Likewise.
  9634. (grub_lvm_lv): Likewise.
  9635. (grub_lvm_segment): Likewise.
  9636. (grub_lvm_node): Likewise.
  9637. * util/getroot.c [...]
  9638. * util/grub-probe.c (probe_raid_level): Handle diskfilter.
  9639. (probe_abstraction): Likewise.
  9640. * util/grub-setup.c (setup): Remove must_embed. Support LDM.
  9641. (main): Remove dead logic.
  9642. 2012-01-28 Vladimir Serbinenko <phcoder@gmail.com>
  9643. Simplify root device discover and don't fail when trying to open
  9644. incorrect devices.
  9645. * grub-core/disk/efi/efidisk.c (get_diskname_from_path_real): New
  9646. function.
  9647. (get_diskname_from_path): Likewise.
  9648. (grub_efidisk_get_device_name): Use get_diskname_from_path instead
  9649. of iterating.
  9650. 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
  9651. * grub-core/Makefile.core.def (setpci): Enable on all PCI platforms.
  9652. 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
  9653. * grub-core/fs/zfs/zfs.c (nvlist_find_value): Check that we don't go
  9654. pastthe end.
  9655. 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
  9656. * util/grub-install.in: Add missing \.
  9657. Reported by: gentoofan
  9658. 2012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
  9659. * grub-core/fs/squash4.c (xz_decompress): Fix return value.
  9660. (direct_read): Use correct compressed size.
  9661. (grub_squash_read_data): Likewise.
  9662. 2012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
  9663. * docs/grub.texi (Platform limitations): New section.
  9664. (Platform-specific operations): Likewise.
  9665. * docs/grub-dev.texi (Porting): Likewise.
  9666. 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
  9667. IEEE1275 disk write support.
  9668. * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_write): Make buffer
  9669. const void *.
  9670. * include/grub/ieee1275/ieee1275.h (grub_ieee1275_write): Likewise.
  9671. * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_read): Move open
  9672. and seek loginc to ...
  9673. (grub_ofdisk_prepare): ... here.
  9674. (grub_ofdisk_write): Implement.
  9675. 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
  9676. ARC disk write support.
  9677. * grub-core/disk/arc/arcdisk.c (handle_writable): New var.
  9678. (reopen): New argument writable. All users updated.
  9679. Handle required access mode.
  9680. (grub_arcdisk_write): Implement.
  9681. * include/grub/arc/arc.h (grub_arc_file_access): New enum.
  9682. (grub_arc_firmware_vector): Make buffer to write a const buffer.
  9683. 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
  9684. * grub-core/fs/btrfs.c (grub_btrfs_device): New field size.
  9685. (read_sblock): Don't attempt to read superblocks outside the disk size.
  9686. 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
  9687. * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Use device size from
  9688. first superblock to find the second one when possible.
  9689. 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
  9690. * util/grub-install.in: Fix an ARC bug.
  9691. Print a warning if no platform-specific setup is available.
  9692. 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
  9693. Use static allocation rather than scratch pointer in reed_solomon.
  9694. It decreases its size significantly and avoids a variable in .text.
  9695. * grub-core/lib/reed_solomon.c (scratch): Removed.
  9696. (chosenstat): New const or static array.
  9697. (sigma): Likewise.
  9698. (errpot): Likewise.
  9699. (errpos): Likewise.
  9700. (sy): Likewise.
  9701. (mstat): Likewise.
  9702. (errvals): Likewise.
  9703. (eqstat): Likewise.
  9704. (pol_evaluate): Replace x with log_x argument. All users updated.
  9705. (syndroms): Removed.
  9706. (gauss_solve): Use statically allocated arrays.
  9707. (rs_recover): Likewise.
  9708. Calculate syndroms directly.
  9709. (decode_block): Use statically allocated arrays.
  9710. (grub_reed_solomon_add_redundancy) [TEST]: Fix -DTEST compilation.
  9711. (main) [TEST]: Allow -DTEST -DSTANDALONE.
  9712. 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
  9713. Eliminate fixed limit on reed solomon decoder length.
  9714. * grub-core/boot/i386/pc/lnxboot.S: Scan for multiboot signature
  9715. rather than hardcoding the address.
  9716. * grub-core/boot/i386/pc/startup_raw.S: Add new data field
  9717. no_reed_solomon_length.
  9718. Move gate_a20 to no-reed-solomon part.
  9719. Don't force a particular size of no reed-solomon part.
  9720. * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
  9721. Removed.
  9722. (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_LENGTH): New define.
  9723. * util/grub-setup.c (setup): Read no_rs_length from the image itself.
  9724. 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
  9725. * grub-core/commands/wildcard.c (match_files): Handle filenames
  9726. without explicit device.
  9727. (wildcard_expand): Don't add explicit device if not already present.
  9728. * tests/grub_script_echo1.in: Add a new expansion test.
  9729. 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
  9730. Replace single-linked with double-linked lists. It results in more
  9731. compact and more efficient code.
  9732. * grub-core/kern/list.c (grub_list_push): Moved from here ...
  9733. * include/grub/list.h (grub_list_push): ... to here. Set prev.
  9734. (grub_list_remove): Moved from here ...
  9735. * include/grub/list.h (grub_list_remove): ... here. Use and set prev.
  9736. (grub_prio_list_insert): Set prev.
  9737. * include/grub/list.h (grub_list): Add prev. All users updated.
  9738. 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
  9739. Handle newer autotools. Add some missing quotes while on it.
  9740. * Makefile.am (pkglib_DATA): Remove update-grub_lib.
  9741. (pkglib_DATA): Move grub-mkconfig_lib from here ...
  9742. (pkgdata_DATA): ... here.
  9743. * Makefile.util.def (update-grub_lib): Removed.
  9744. * conf/Makefile.common (pkglib_DATA): Removed.
  9745. (pkglib_SCRIPTS): Likewise.
  9746. (pkgdata_DATA): New variable.
  9747. * tests/util/grub-shell-tester.in: Replace pkglib with pkgdata where
  9748. needed.
  9749. Add missing quotes.
  9750. Remove unused variable while on it.
  9751. * tests/util/grub-shell.in: Likewise.
  9752. * util/grub-install.in: Likewise.
  9753. * util/grub-mkconfig.in: Likewise.
  9754. * util/grub-mknetdir.in: Likewise.
  9755. * util/grub-mkrescue.in: Likewise.
  9756. * util/grub-mkstandalone.in: Likewise.
  9757. * util/grub.d/00_header.in: Likewise.
  9758. * util/grub.d/10_hurd.in: Likewise.
  9759. * util/grub.d/10_illumos.in: Likewise.
  9760. * util/grub.d/10_kfreebsd.in: Likewise.
  9761. * util/grub.d/10_linux.in: Likewise.
  9762. * util/grub.d/10_netbsd.in: Likewise.
  9763. * util/grub.d/10_windows.in: Likewise.
  9764. * util/grub.d/20_linux_xen.in: Likewise.
  9765. * util/grub.d/30_os-prober.in: Likewise.
  9766. * util/update-grub_lib.in: Removed.
  9767. 2012-01-24 Seth Goldberg <seth.goldberg@oracle.com>
  9768. * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Relax checks as
  9769. a workaround for intel problem.
  9770. 2012-01-23 Paulo de Rezende Pinatti <ppinatti@linux.vnet.ibm.com>
  9771. 2012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
  9772. 2012-01-23 pfsmorigo
  9773. * util/grub-install.in: Support dd'in into PreP partition.
  9774. * util/grub-probe.c (probe): Support discovering partition type.
  9775. (main): Support -t msdos_parttype.
  9776. 2012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
  9777. * grub-core/normal/crypto.c (grub_crypto_autoload): Prevent
  9778. infinite recursion using counter.
  9779. * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_init): Defer s->crc32
  9780. init to skip it if the magic check fails.
  9781. (dec_stream_header): Init s->crc32.
  9782. 2012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
  9783. 2012-01-22 Zachary Bedell <pendorbound@gmail.com>
  9784. 2012-01-22 Richard Laager <rlaager@wiktel.com>
  9785. * grub-core/fs/zfs/zfs.c (uberblock_verify): New parameter size.
  9786. All users updated.
  9787. (find_bestub): Determine correct size.
  9788. (fill_vdev_info_real): Fill ashift. New argument. All users updated.
  9789. (scan_disk): Align the size down.
  9790. Call check pool before find_bestub to have ashift.
  9791. 2012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
  9792. * grub-core/lib/relocator.c (malloc_in_range): Remove couple of
  9793. dprintf in no-malloc zone.
  9794. 2012-01-22 Mario Limonciello <mario_limonciello@dell.com>
  9795. * configure.ac: Add back in test for limits.h.
  9796. 2012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
  9797. Support 4K-sector NTFS.
  9798. * include/grub/ntfs.h (GRUB_NTFS_MAX_MFT): Increase to 8.
  9799. (grub_ntfs_data): Remove blocksize.
  9800. * grub-core/fs/ntfs.c (fixup): Fix size comparison.
  9801. Remove data argument. All users updated.
  9802. 2012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
  9803. * grub-core/kern/mips/arc/init.c (grub_total_modules_size): Mark as
  9804. being in .text to avoid dprel references.
  9805. * include/grub/mips/loongson/kernel.h (grub_arch_machine): Likewise.
  9806. * include/grub/mips/loongson/memory.h (grub_arch_memsize): Likewise.
  9807. (grub_arch_highmemsize): Likewise.
  9808. * include/grub/mips/loongson/time.h (grub_arch_busclock): Likewise.
  9809. * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): Likewise.
  9810. * include/grub/mips/time.h (grub_arch_cpuclock): Likewise.
  9811. 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
  9812. Support powerpc with GCC that defines __PPC__ but not __powerpc__.
  9813. * config.h.in (__powerpc__) [__PPC__ && !__powerpc__]: New definition.
  9814. * grub-core/lib/setjmp.S: Treat __PPC__ as equivalent to __powerpc__.
  9815. 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
  9816. * include/grub/datetime.h (grub_get_datetime_cmos): Don't define in
  9817. GRUB_UTIL.
  9818. (grub_set_datetime_cmos): Likewise.
  9819. 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
  9820. Make XZ compression parameters dependent on target and not host CPU.
  9821. * configure.ac: Define GRUB_TARGET_CPU_XYZ series.
  9822. * grub-core/lib/xzembed/xz_config.h: Use GRUB_TARGET_CPU_XYZ.
  9823. 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
  9824. * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): Remove
  9825. set but not used variable.
  9826. 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
  9827. * grub-core/fs/reiserfs.c (grub_reiserfs_uuid): Reject 0-uuid as
  9828. created when no uuid support is compiled into mkfs.reiser.
  9829. 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
  9830. * grub-core/fs/hfs.c (macroman_to_utf8): Convert / to :.
  9831. (utf8_to_macroman): Do the opposite.
  9832. * grub-core/fs/hfsplus.c (grub_hfsplus_iterate_dir): Convert / to :.
  9833. 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
  9834. * configure.ac: Refise build qemu_mips w/o unifont.
  9835. 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
  9836. Eliminate grub_min/grub_max prone to overflow usage.
  9837. * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Eliminate grub_min.
  9838. (poll_nonroot_hub): Likewise.
  9839. * grub-core/fs/affs.c (grub_affs_iterate_dir): Likewise.
  9840. (grub_affs_label): Likewise.
  9841. * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Likewise.
  9842. * grub-core/fs/hfs.c (grub_hfs_dir): Likewise.
  9843. (grub_hfs_label): Likewise.
  9844. * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
  9845. * grub-core/fs/zfs/zfs.c (MIN): Remove.
  9846. (zap_leaf_array_equal): Use grub_size. Remove MIN.
  9847. (zap_leaf_array_get): Likewise.
  9848. (dnode_get_path): Likewise.
  9849. * grub-core/io/lzopio.c (grub_lzopio_read): Eliminate grub_min.
  9850. * grub-core/io/xzio.c (grub_xzio_read): Likewise.
  9851. * grub-core/script/execute.c (grub_script_break): Likewise.
  9852. * grub-core/script/lexer.c (grub_script_lexer_record): Eliminate
  9853. grub_max.
  9854. * grub-core/script/yylex.l (grub_lexer_yyrealloc): Likewise.
  9855. * include/grub/misc.h (grub_min): Removed.
  9856. (grub_max): Likewise.
  9857. 2012-01-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
  9858. * grub-core/fs/ext2.c (grub_ext2_iterate_dir): Ignore entries with
  9859. direct.inode = 0.
  9860. 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
  9861. * grub-core/lib/posix_wrap/wctype.h (CHARCLASS_NAME_MAX): New define.
  9862. 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
  9863. * include/grub/datetime.h (grub_datetime2unixtime): Fix offset.
  9864. 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
  9865. * grub-core/lib/posix_wrap/stdlib.h (MB_CUR_MAX): Moved from here ...
  9866. * grub-core/lib/posix_wrap/wchar.h (MB_CUR_MAX): ... here. Value fixed.
  9867. 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
  9868. * grub-core/fs/fshelp.c (grub_fshelp_find_file): Use grub_strcasecmp
  9869. rather than a hack for grub_strncasemap.
  9870. 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
  9871. Support multiple initrds
  9872. Note: part of this was accidently committed in r3739.
  9873. * grub-core/loader/i386/linux.c (grub_cmd_initrd): Support multiple
  9874. initrd.
  9875. * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
  9876. * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
  9877. * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
  9878. * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
  9879. * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
  9880. 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
  9881. * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Skip
  9882. disks with unknown size.
  9883. * grub-core/disk/raid.c (scan_devices): Allow disks with unknown sizes.
  9884. 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
  9885. Remove defines pertaining to arbitrary limits not affecting GRUB
  9886. anymore.
  9887. * grub-core/fs/ext2.c (EXT2_PATH_MAX): Removed.
  9888. (EXT2_MAX_SYMLINKCNT): Likewise.
  9889. * grub-core/fs/nilfs2.c (NILFS_BTREE_LEVEL_MAX): Likewise.
  9890. * grub-core/net/tftp.c (TFTP_MAX_PACKET): Likewise.
  9891. * include/grub/i386/pc/pxe.h (GRUB_PXE_MIN_BLKSIZE): Likewise.
  9892. (GRUB_PXE_MAX_BLKSIZE): Likewise.
  9893. * include/grub/normal.h (GRUB_MAX_CMDLINE): Likewise.
  9894. * include/grub/zfs/dnode.h (DN_MAX_INDBLKSHIFT): Likewise.
  9895. (DN_MAX_OBJECT_SHIFT): Likewise.
  9896. (DN_MAX_OFFSET_SHIFT): Likewise.
  9897. (DN_MAX_OBJECT): Likewise.
  9898. (DNODES_PER_LEVEL_SHIFT): Likewise.
  9899. * include/grub/zfs/spa.h (SPA_MAXBLOCKSHIFT): Likewise.
  9900. (SPA_MAXBLOCKSIZE): Likewise.
  9901. (SPA_BLOCKSIZES): Likewise.
  9902. * include/grub/zfs/zap_impl.h (MZAP_MAX_BLKSHIFT): Likewise.
  9903. (MZAP_MAX_BLKSZ): Likewise.
  9904. 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
  9905. * grub-core/fs/zfs/zfs.c (grub_zfs_read): Remove useless alloc and
  9906. handle NULL appropriately.
  9907. Remove MIN.
  9908. 2012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
  9909. Fix efiemu.
  9910. * grub-core/efiemu/runtime/efiemu.c: explicitly include right
  9911. cpu/types.h.
  9912. (efiemu_set_virtual_address_map): Remove UINT_TO_PTR.
  9913. * configure.ac: Fix efiemu check.
  9914. 2012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
  9915. * util/grub.d/30_os-prober.in: Fix occurence of grub-probe instead of
  9916. grub_probe.
  9917. Reported by: adamwill
  9918. 2012-01-12 Seth Goldberg <seth.goldberg@oracle.com>
  9919. * grub-core/lib/arg.c (grub_arg_parse): Fix NULL pointer dereference.
  9920. 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
  9921. Fix handling of wide characters in gfxterm.
  9922. * grub-core/term/gfxterm.c (grub_colored_char): Remove width and index.
  9923. (clear_char): Likewise.
  9924. (paint_char): Skip code == NULL chars.
  9925. (grub_gfxterm_putchar): Set code = NULL on "shadowed" positions.
  9926. 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
  9927. * grub-core/normal/charset.c: Move comment to right place.
  9928. 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
  9929. * grub-core/fs/affs.c (grub_affs_bblock): Revert flags.
  9930. (GRUB_AFFS_FLAG_FFS): Put back where it was.
  9931. (grub_affs_mount): Revert the correct version checking.
  9932. 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
  9933. * docs/grub.texi (Unicode): Mention several other unsupported features.
  9934. 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
  9935. * grub-core/fs/squash4.c (squash_mount): Mark endian conversion in
  9936. case statements as compile-time one.
  9937. (direct_read): Prevent spurious warnings.
  9938. (grub_squash_read_data): Likewise.
  9939. 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
  9940. Various squash4 fixes and LZO and XZ support.
  9941. * Makefile.util.def (libgrubmods.a): Add xzembed directory to cppflags.
  9942. Add xzembed source files.
  9943. * grub-core/Makefile.core.def (squash4): Add xzembed and minilzo flags.
  9944. * grub-core/fs/squash4.c (grub_squash_super): New field compression.
  9945. (grub_squash_inode): New subtype long_dir.
  9946. (SQUASH_TYPE_LONG_DIR): New inode type.
  9947. (COMPRESSION): New enum.
  9948. (XZBUFSIZ): New const.
  9949. (grub_squash_data): New fields blksz, decompress, xzdec, xzbuf.
  9950. (read_chunk): Use data->decompress.
  9951. (zlib_decompress): New function.
  9952. (lzo_decompress): Likewise.
  9953. (xz_decompress): Likewise.
  9954. (squash_mount): Set new data fields.
  9955. (grub_squash_iterate_dir): Handle long dir.
  9956. (squash_unmount): Free xzdec and xzbuf.
  9957. (grub_squash_open): Check ino type.
  9958. (direct_read): Stylistic fixes. Use data->decompress.
  9959. (grub_squash_read_data): Likewise.
  9960. * grub-core/io/gzio.c (grub_gzio): Remove disk_input.
  9961. (get_byte): Likewise.
  9962. (grub_zlib_disk_read): Removed.
  9963. * grub-core/lib/posix_wrap/sys/types.h (ssize_t): New type.
  9964. (GRUB_POSIX_BOOL_DEFINED): New define.
  9965. * grub-core/lib/posix_wrap/unistd.h: Include sys/types.h.
  9966. * grub-core/lib/xzembed/xz.h: Addmissing includes.
  9967. [!GRUB_POSIX_BOOL_DEFINED]: Define bool.
  9968. * include/grub/deflate.h (grub_zlib_disk_read): Removed.
  9969. 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
  9970. Don't override more informative errors.
  9971. * grub-core/commands/acpi.c (grub_cmd_acpi): Don't override errors.
  9972. * grub-core/font/font.c (open_section): Likewise.
  9973. * grub-core/loader/i386/bsd.c (grub_bsd_load_aout): New argument
  9974. filename. Don't override errors.
  9975. (grub_cmd_openbsd_ramdisk): Don't override errors.
  9976. * grub-core/loader/i386/linux.c (grub_cmd_linux): Likewise.
  9977. (grub_cmd_initrd): Likewise.
  9978. * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
  9979. (grub_cmd_initrd): Likewise.
  9980. * grub-core/loader/ia64/efi/linux.c (grub_load_elf64): Likewise.
  9981. (grub_cmd_linux): Likewise.
  9982. (grub_cmd_initrd): Likewise.
  9983. (grub_cmd_payload): Likewise.
  9984. * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
  9985. * grub-core/loader/multiboot.c (grub_cmd_multiboot): Likewise.
  9986. (grub_cmd_module): Likewise.
  9987. * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
  9988. * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
  9989. * grub-core/loader/xnu.c (grub_xnu_load_driver): Likewise.
  9990. (grub_cmd_xnu_mkext): Likewise.
  9991. (grub_cmd_xnu_ramdisk): Likewise.
  9992. (grub_xnu_check_os_bundle_required): Likewise.
  9993. (grub_xnu_load_kext_from_dir): Likewise.
  9994. (grub_cmd_xnu_kextdir): Likewise.
  9995. * grub-core/loader/xnu_resume.c (grub_xnu_resume): Likewise.
  9996. 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
  9997. * grub-core/fs/minix.c (grub_minix_mount) [MODE_MINIX3]: Treat 0xffff
  9998. as 1024 in block size field. Found on one of my test images.
  9999. Small optimisation while on it.
  10000. 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
  10001. * docs/grub.texi (Filesystems): Mention SFS as Latin1 filesystem.
  10002. * grub-core/fs/sfs.c (grub_sfs_mount): Fix a memory leak while on it.
  10003. (grub_sfs_iterate_dir): Convert Latin1 to UTF8. Stylistic and
  10004. performance fixes while on it.
  10005. (grub_sfs_close): Fix memory leak while on it.
  10006. (grub_sfs_label): Convert Latin1 to UTF-8.
  10007. 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
  10008. * grub-core/fs/hfs.c (grub_hfs_dir): Cap keylen to actually available
  10009. space to avoid overflows.
  10010. (grub_hfs_label): Convert from macroman to UTF-8.
  10011. 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
  10012. * grub-core/fs/affs.c (grub_affs_label): Interpret label as latin1.
  10013. 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
  10014. * grub-core/normal/menu.c (menu_init): Don't stop menu init at gfxterm.
  10015. 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
  10016. * unicode: Import Unicode 6.0 data.
  10017. 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
  10018. * grub-core/term/gfxterm.c (grub_gfxterm_putchar): Don't set values
  10019. outside of range.
  10020. 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
  10021. Avoid cutting in the middle of UTF-8 character.
  10022. * include/grub/charset.h (grub_getend): New function.
  10023. * grub-core/script/function.c (grub_script_function_find): Use
  10024. grub_getend.
  10025. * grub-core/normal/completion.c (add_completion): Likewise.
  10026. 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
  10027. * grub-core/normal/charset.c (grub_ucs4_to_utf8): Small stylistic fix.
  10028. (grub_bidi_line_logical_to_visual): Skip tags. They are deprecated.
  10029. * include/grub/unicode.h (GRUB_UNICODE_TAG_START): New enum value.
  10030. (GRUB_UNICODE_TAG_END): Likewise.
  10031. (GRUB_UNICODE_LAST_VALID): Likewise.
  10032. 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
  10033. * include/grub/unicode.h (grub_unicode_compact_range): Replace end with
  10034. len and make it smaller. All users updated.
  10035. * util/import_unicode.py: Put length and not end character.
  10036. Check length.
  10037. 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
  10038. Make better Unicode-compliant and unify some UTF-8 code pathes.
  10039. * grub-core/normal/charset.c (grub_utf8_to_utf16): Don't eat possibly
  10040. valid character.
  10041. (grub_is_valid_utf8): Use grub_utf8_process.
  10042. Check resulting code range.
  10043. (grub_utf8_to_ucs4): Use grub_utf8_process.
  10044. * include/grub/charset.h (grub_utf16_to_utf8): Don't eat up a possibly
  10045. valid character.
  10046. 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
  10047. * grub-core/io/bufio.c (grub_bufio_read): Fix handling of corner cases.
  10048. 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
  10049. * docs/grub.texi (Filesystems): Mention AFS.
  10050. 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
  10051. * docs/grub.texi (Filesystems): Clarify restrictions.
  10052. (Regexp): Mention non-Unicode regexp behaviour.
  10053. (Other): Mention non-Unicode matching behaviour.
  10054. 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
  10055. Make HFS implementation use MacRoman.
  10056. * grub-core/fs/hfs.c (MAX_UTF8_PER_MAC_ROMAN): New define.
  10057. (macroman): New const array.
  10058. (macroman_to_utf8): New function.
  10059. (utf8_to_macroman): Likewise.
  10060. (grub_hfs_find_dir): Use utf8_to_macroman.
  10061. (grub_hfs_dir): Use macroman_to_utf8.
  10062. Set case_insensitive.
  10063. 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
  10064. * docs/grub.texi (Filesystems): Add IEEE1275 full-path example.
  10065. 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
  10066. Integrate hints into autogeneration scripts.
  10067. * docs/grub.texi (Filesystems): Add a hostdisk example.
  10068. * Makefile.util.def (grub-mkdevicemap): Remove ofpath.
  10069. (grub-probe): Add ofpath.
  10070. * gentpl.py: Remove group nosparc64.
  10071. * grub-core/commands/search.c (cache_entry): New struct.
  10072. (cache): New var.
  10073. (FUNC_NAME): Use and save cache. Fix handling of trailing comma.
  10074. * grub-core/commands/search_wrap.c (options): Add platform-specific
  10075. hint options.
  10076. (grub_cmd_search): Handle platform-specific hints.
  10077. (GRUB_MOD_INIT): Declare grub_cmd_search as accept_dash.
  10078. * grub-core/kern/emu/hostdisk.c (map): New field device_map.
  10079. (grub_util_biosdisk_data): Likewise.
  10080. (grub_util_biosdisk_open): Set device_map.
  10081. (read_device_map): Handle "" as indication of no map.
  10082. Set device_map.
  10083. (find_system_device): Add hostdisk/ prefix for autogenerated entries.
  10084. (grub_util_biosdisk_get_compatibility_hint): New function.
  10085. * grub-core/normal/main.c (features): Add feature_platform_search_hint.
  10086. * include/grub/emu/hostdisk.h
  10087. (grub_util_biosdisk_get_compatibility_hint): New proto.
  10088. * util/grub-install.in: Don't call grub-mkdevicemap.
  10089. Add platform-specific hint to load.cfg.
  10090. * util/grub-mkconfig.in: Don't call grub-mkdevicemap.
  10091. * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
  10092. hints. Set root preliminary to compatibility hint, not to OS name.
  10093. * util/grub-probe.c (PRINT_*): Add hints.
  10094. (print): Make static.
  10095. (escape_of_path): New function.
  10096. (guess_bios_drive): Likewise.
  10097. (guess_efi_drive): Likewise.
  10098. (guess_baremetal_drive): Likewise.
  10099. (print_full_name): Likewise.
  10100. (probe): Handle hints.
  10101. (main): Likewise.
  10102. * util/ieee1275/devicemap.c: Removed.
  10103. * util/ieee1275/ofpath.c (find_obppath): Allow to fail. All users
  10104. updated.
  10105. (grub_util_devname_to_ofpath): Return NULL on failure.
  10106. * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Fix
  10107. resource leak.
  10108. * util/getroot.c (grub_util_pull_device): Fix memory leak.
  10109. * po/POTFILES.in: Regenerated.
  10110. Allow purely long options
  10111. * grub-core/lib/arg.c (SHORT_ARG_HELP): Removed.
  10112. (SHORT_ARG_USAGE): Likewise.
  10113. (grub_arg_show_help): Compare opt with help_options.
  10114. (parse_option): Receive opt as argument. If makes big simplificatons.
  10115. All users updated
  10116. 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
  10117. * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN):
  10118. Restructure to avoid warning.
  10119. 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
  10120. * util/grub-install.in: Account for possible escaped comma in device
  10121. name.
  10122. 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
  10123. * util/ieee1275/ofpath.c (of_path_of_ide): Fix address for secondary
  10124. channel.
  10125. 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
  10126. * grub-core/kern/ieee1275/openfw.c (grub_devalias_iterate): Fix
  10127. allocation and zero-setting.
  10128. (grub_ieee1275_get_devname): Check that alias is complete.
  10129. 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
  10130. * grub-core/kern/disk.c (grub_disk_read): Fix hook calling for
  10131. unaligned segments.
  10132. 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
  10133. * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Add ieee1275/
  10134. prefix.
  10135. (grub_ofdisk_open): Check and discard ieee1275 prefix.
  10136. * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
  10137. Add ieee1275 prefix.
  10138. 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
  10139. * docs/grub.texi (Filesystems): Update.
  10140. 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
  10141. Support odc, newc and bigendian cpio formats.
  10142. * Makefile.util.def (libgrubmods): Add odc.c, newc.c and cpio_be.c.
  10143. * grub-core/Makefile.core.def (newc): New module.
  10144. (odc): Likewise.
  10145. (cpio_be): Likewise.
  10146. * grub-core/fs/cpio.c (ALIGN_CPIO): New macro.
  10147. (MAGIC): Likewise.
  10148. (MAGIC2): Likewise.
  10149. (head) [MODE_ODC]: Adapt for the format.
  10150. (head) [MODE_NEWC]: Likewise.
  10151. (head) [!MODE_*]: Write fields of interest as arrays.
  10152. (MAGIC_USTAR): Removed.
  10153. (read_number) [MODE_NEWC]: Change to hex.
  10154. (read_number) [!MODE_*]: Parse binary arrays.
  10155. (grub_cpio_find_file): Factor out the code for better structure and
  10156. always use read_number.
  10157. (grub_cpio_mount): Use MAGIC and MAGIC2.
  10158. (grub_cpio_dir): Exit on first hook non-0 return.
  10159. (grub_cpio_fs) [MODE_ODC]: Set name to odc.
  10160. (grub_cpio_fs) [MODE_NEWC]: Set name to newc.
  10161. (GRUB_MOD_INIT) [MODE_ODC]: Set name to odc.
  10162. (GRUB_MOD_INIT) [MODE_NEWC]: Set name to newc.
  10163. (GRUB_MOD_FINI) [MODE_ODC]: Set name to odc.
  10164. (GRUB_MOD_FINI) [MODE_NEWC]: Set name to newc.
  10165. * grub-core/fs/newc.c: New file.
  10166. * grub-core/fs/odc.c: Likewise.
  10167. * grub-core/fs/cpio_be.c: Likewise.
  10168. 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
  10169. Fix handling of tar numbers occupying the whole field.
  10170. * grub-core/fs/cpio.c (read_number): New function.
  10171. (grub_cpio_find_file): Use read_number instead of strtoull.
  10172. 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
  10173. * grub-core/fs/cpio.c (grub_cpio_find_file): Fix handling of names
  10174. occupying the whole field size.
  10175. 2011-12-23 Lukas Anzinger <l.anzinger@gmail.com>
  10176. * util/grub-mkconfig_lib.in (version_test_gt): Fix variable names.
  10177. 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
  10178. * grub-core/net/net.c (grub_cmd_delroute): Add missing out condition.
  10179. 2011-12-23 Seth Goldberg <seth.goldberg@oracle.com>
  10180. * grub-core/Makefile.core.def (lzma_decompress): Add missing
  10181. TARGET_IMG_LDFLAGS.
  10182. 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
  10183. * util/getroot.c (ESCAPED_PATH_MAX): New define.
  10184. (mountinfo_entry): Increase the field size to take escaping into
  10185. account.
  10186. (find_root_device_from_libzfs): Add one byte to size of strings for
  10187. security.
  10188. 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
  10189. * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy): Add
  10190. an assert.
  10191. * util/grub-setup.c (setup): Likewise.
  10192. 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
  10193. * grub-core/boot/i386/pc/startup_raw.S: Add missing argument for
  10194. _LzmaDecodeA.
  10195. 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
  10196. * docs/grub.texi (Internationalisation): New section.
  10197. 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
  10198. * docs/grub.texi (Loopback booting): New section.
  10199. 2011-12-22 Keshav P R <the.ridikulus.rat@gmail.com>
  10200. * util/grub-mkstandalone.in: Fix minor typo errors.
  10201. 2011-12-20 Vladimir Serbinenko <phcoder@gmail.com>
  10202. IPv6, TCP, HTTP, ICMP and DNS support. Several cleanups and bugfixes.
  10203. * grub-core/Makefile.core.def (net): Add net/dns.c, net/tcp.c,
  10204. net/icmp.c and net/icmp6.c.
  10205. (http): New module.
  10206. (priority_queue): Likewise.
  10207. * grub-core/io/bufio.c: Rewritten.
  10208. * grub-core/lib/legacy_parse.c (legacy_command): New argument type
  10209. TYPE_WITH_CONFIGFILE_OPTION.
  10210. (legacy_commands): Add bootp and dhcp.
  10211. (is_option): Handle TYPE_WITH_CONFIGFILE_OPTION.
  10212. (grub_legacy_parse): Likewise.
  10213. * grub-core/lib/priority_queue.c: New file.
  10214. * grub-core/net/arp.c: Add missing license header.
  10215. (arp_find_entry): Removed.
  10216. (arp_find_entry): Likewise.
  10217. (grub_net_arp_resolve): Rename to ...
  10218. (grub_net_arp_send_request): ...this.
  10219. (grub_net_arp_receive): New card argument.
  10220. * grub-core/net/bootp.c (parse_dhcp_vendor): Clean up.
  10221. Set router and DNS server.
  10222. (grub_net_configure_by_dhcp_ack): Handle routing information.
  10223. (grub_cmd_bootp): Set checksum.
  10224. (grub_bootp_init): Remove net_dhcp.
  10225. * grub-core/net/dns.c: New file.
  10226. * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Wait for
  10227. completion.
  10228. (get_card_packet): Handle allocation.
  10229. (grub_efinet_findcards): Set mtu.
  10230. * grub-core/net/drivers/emu/emunet.c: Add missing license header.
  10231. (get_card_packet): Handle allocation.
  10232. (emucard): Set mtu.
  10233. * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Handle allocation
  10234. (GRUB_MOD_INIT): Set mtu.
  10235. * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnetcard_data): Remove
  10236. mtu.
  10237. (get_card_packet): Handle allocation.
  10238. (grub_ofnet_findcards): Set mtu.
  10239. * grub-core/net/ethernet.c (send_ethernet_packet): Add compile time
  10240. assert.
  10241. (grub_net_recv_ethernet_packet): Handle IPv6.
  10242. * grub-core/net/http.c: New file.
  10243. * grub-core/net/icmp.c: Likewise.
  10244. * grub-core/net/icmp6.c: Likewise.
  10245. * grub-core/net/ip.c (ip6addr): New type.
  10246. (ip6hdr): Likewise.
  10247. (reassemble): Likewise.
  10248. (cmp): New function.
  10249. (reassembles): New variable.
  10250. (grub_net_ip_chksum): Handle 0xffff sum and unaligned buffers.
  10251. (id): New variable.
  10252. (send_fragmented): New function.
  10253. (grub_net_send_ip_packet): Rename to ...
  10254. (grub_net_send_ip4_packet): ... this. Send fragmented if needed.
  10255. Handle non-UDP.
  10256. (grub_net_recv_ip_packets): Rename to ...
  10257. (handle_dgram): ... this. Check checksum. Handle non-UDP.
  10258. (free_rsm): New function.
  10259. (free_old_fragments): Likewise.
  10260. (grub_net_recv_ip4_packets): New function.
  10261. (grub_net_send_ip6_packet): Likewise.
  10262. (grub_net_send_ip_packet): Likewise.
  10263. (grub_net_recv_ip6_packets): Likewise.
  10264. (grub_net_recv_ip_packets): Likewise.
  10265. * grub-core/net/net.c (grub_net_link_layer_entry): New struct.
  10266. (LINK_LAYER_CACHE_SIZE): New const.
  10267. (link_layer_find_entry): New function.
  10268. (grub_net_link_layer_add_address): Likewise.
  10269. (grub_net_link_layer_resolve_check): Likewise.
  10270. (grub_net_link_layer_resolve): Likewise.
  10271. (grub_net_ipv6_get_slaac): Likewise.
  10272. (grub_net_ipv6_get_link_local): Likewise.
  10273. (grub_cmd_ipv6_autoconf): Likewise.
  10274. (parse_ip): Handle one number representation.
  10275. (parse_ip6): New functoion.
  10276. (match_net): Handle IPv6.
  10277. (grub_net_resolve_address): Handle IPv6 and DNS.
  10278. (grub_net_resolve_net_address): Handle IPv6.
  10279. (route_cmp): New function.
  10280. (grub_net_route_address): Find best route.
  10281. (grub_net_addr_to_str): Handle IPv6.
  10282. (grub_net_addr_cmp): New function.
  10283. (grub_net_add_addr): Register local route.
  10284. (print_net_address): Handle net address.
  10285. (grub_net_poll_cards): Retransmit TCP.
  10286. (grub_net_poll_cards_idle_real): Likewise.
  10287. (have_ahead): New function.
  10288. (grub_net_seek_real): Use underlying seek.
  10289. (GRUB_MOD_INIT): Register net_ipv6_autoconf and init dns.
  10290. * grub-core/net/tcp.c: New file.
  10291. * grub-core/net/tftp.c (tftp_data): Add priority_queue.
  10292. (cmp): New function.
  10293. (ack): Likewise.
  10294. (tftp_receive): Handle unordered input.
  10295. (destroy_pq): New function.
  10296. (tftp_close): Close pq.
  10297. * grub-core/net/udp.c: Put missing license header.
  10298. (grub_net_udp_socket): New function.
  10299. (udp_socket_register): Likewise.
  10300. (grub_net_udp_close): Likewise.
  10301. (grub_net_recv_udp_packet): Check checksum.
  10302. * include/grub/efi/api.h (grub_efi_simple_network): Add status.
  10303. * include/grub/misc.h (grub_memchr): New function.
  10304. * include/grub/net.h (GRUB_NET_*_SIZE): New enum.
  10305. (grub_net_card_driver): Return buf in recv.
  10306. (grub_net_slaac_mac_list): New struct.
  10307. (grub_network_level_protocol_id): Add ipv6.
  10308. (grub_net_network_level_addr): Likewise.
  10309. (grub_net_network_level_net_addr): Likewise.
  10310. (grub_net_app_protocol): Add seek.
  10311. (grub_net_socket): Removed.
  10312. (grub_net_sockets): Likewise.
  10313. (grub_net_socket_register): Likewise.
  10314. (grub_net_socket_unregister): Likewise.
  10315. (FOR_NET_SOCKETS): Likewise.
  10316. (grub_net_add_addr): Add const.
  10317. (GRUB_NET_BOOTP_*): New enum.
  10318. (grub_net_addr_cmp): New proto.
  10319. (GRUB_NET_MAX_STR_ADDR_LEN): Take IPV6 into account.
  10320. (GRUB_NET_MAX_STR_HWADDR_LEN): New define.
  10321. (grub_net_hwaddr_to_str): NEw proto.
  10322. (FOR_NET_NETWORK_LEVEL_INTERFACES): New macro.
  10323. (FOR_NET_NETWORK_LEVEL_INTERFACES_SAFE): Handle NULL.
  10324. (grub_dns_init): New proto.
  10325. (grub_dns_fini): Likewise.
  10326. (grub_net_tcp_retransmit): Likewise.
  10327. (grub_net_link_layer_add_address): Likewise.
  10328. (grub_net_link_layer_resolve_check): Likewise.
  10329. (grub_net_link_layer_resolve): Likewise.
  10330. (grub_net_dns_lookup): Likewise.
  10331. (grub_net_add_dns_server): Likewise.
  10332. (grub_net_remove_dns_server): Likewise.
  10333. (GRUB_NET_TRIES): New const.
  10334. (GRUB_NET_INTERVAL): Likewise.
  10335. * include/grub/net/arp.h: Mostly rewritten.
  10336. * include/grub/net/ethernet.h (grub_net_ethertype_t): New enum.
  10337. * include/grub/net/ip.h: Mostly rewritten.
  10338. * include/grub/net/netbuff.h: Indent.
  10339. * include/grub/net/tcp.h: New file.
  10340. * include/grub/net/udp.h: Mostly rewritten.
  10341. * include/grub/priority_queue.h: New file.
  10342. * include/grub/types.h (PRIdGRUB_SSIZE): New define.
  10343. (grub_swap_bytes64_compile_time): Likewise.
  10344. (grub_cpu_to_be16_compile_time): Likewise.
  10345. (grub_cpu_to_be32_compile_time): Likewise.
  10346. (grub_cpu_to_be64_compile_time): Likewise.
  10347. (grub_be_to_cpu64_compile_time): Likewise.
  10348. 2011-12-16 Vladimir Serbinenko <phcoder@gmail.com>
  10349. * grub-core/commands/i386/pc/drivemap.c (int13slot): Replace
  10350. UINT_TO_PTR with cast.
  10351. 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
  10352. * util/import_gcry.py: Skip _gcry_rmd160_mixblock and serpent_test. We
  10353. don't use them.
  10354. 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
  10355. * util/import_gcry.py: Don't add include camellia.h to camellia.c. It's
  10356. already there.
  10357. 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
  10358. * util/grub-mkimage.c (generate_image): Clean multiboot header to avoid
  10359. confusing ipxe.
  10360. 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
  10361. * grub-core/lib/libgcrypt/cipher/md4.c (transform) [WORDS_BIGENDIAN]:
  10362. Add missing const attribute.
  10363. * grub-core/lib/libgcrypt/cipher/md5.c (transform) [WORDS_BIGENDIAN]:
  10364. Likewise.
  10365. * grub-core/lib/libgcrypt/cipher/rmd160.c (transform) [WORDS_BIGENDIAN]:
  10366. Likewise.
  10367. 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
  10368. * grub-core/lib/libgcrypt/cipher/serpent.c (serpent_key_prepare): Fix
  10369. misaligned access.
  10370. (serpent_setkey): Likewise.
  10371. (serpent_encrypt_internal): Likewise.
  10372. (serpent_decrypt_internal): Likewise.
  10373. (serpent_encrypt): Don't put an alignment-increasing cast.
  10374. (serpent_decrypt): Likewise.
  10375. (serpent_test): Likewise.
  10376. 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
  10377. * grub-core/loader/multiboot.c (grub_cmd_module): Fix target address.
  10378. 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
  10379. Replace UINT_TO_PTR and PTR_TO_UINT with explicit grub_addr_t casts.
  10380. * include/grub/types.h (UINT_TO_PTR): Removed. All users switched to
  10381. grub_addr_t casts.
  10382. (PTR_TO_UINT64): Likewise.
  10383. (PTR_TO_UINT32): Likewise.
  10384. 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
  10385. * util/grub-mkimage.c (generate_image): Decrease the higher limit
  10386. because of stack.
  10387. * util/grub-setup.c (setup): Don't add redundancy past the higher load
  10388. limit.
  10389. 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
  10390. * grub-core/gfxmenu/gui_label.c (label_paint): Handle the case
  10391. text_width > available width a bit more gracefully.
  10392. 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
  10393. * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Fix
  10394. current address calculation.
  10395. 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
  10396. * grub-core/lib/reed_solomon.c (decode_block): Allocate on heap and not
  10397. stack.
  10398. (encode_block): Likewise.
  10399. 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
  10400. * grub-core/boot/i386/pc/startup_raw.S: Clear direction flag for
  10401. certainety.
  10402. 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
  10403. * grub-core/boot/i386/pc/startup_raw.S: Move realmode routines to
  10404. non-RS part to avoid RS messing with GDT.
  10405. * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
  10406. Increase to suit in realmode routines.
  10407. 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
  10408. * grub-core/kern/i386/realmode.S: Increase alignment.
  10409. * grub-core/boot/i386/pc/startup_raw.S: Likewise.
  10410. 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
  10411. * grub-core/lib/reed_solomon.c (init_powx): Set gf_powx_inv[0] just to
  10412. be deterministic.
  10413. (syndroms): Compute 0 syndrom.
  10414. (rs_recover): Use 0 syndrom.
  10415. 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
  10416. * include/grub/kernel.h (FOR_MODULES): Make it a bit faster.
  10417. 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
  10418. * include/grub/types.h (GRUB_PROPERLY_ALIGNED_ARRAY): Add missing
  10419. brackets.
  10420. 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
  10421. * grub-core/gfxmenu/widget-box.c (get_left_pad): Take corners into
  10422. account.
  10423. (get_top_pad): Likewise.
  10424. (get_right_pad): Likewise.
  10425. (get_bottom_pad): Likewise.
  10426. 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
  10427. * grub-core/gfxmenu/gui_list.c (draw_menu): Don't use assignment in if.
  10428. 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
  10429. * include/grub/efi/api.h (grub_efi_memory_descriptor): Add packed
  10430. attribute as the structure isn't guaranteed to be properly aligned.
  10431. (grub_efi_pci_device_path): Likewise.
  10432. (grub_efi_pccard_device_path): Likewise.
  10433. (grub_efi_memory_mapped_device_path): Likewise. Additionaly explicitly
  10434. specify the size of `memory_type'.
  10435. (grub_efi_vendor_device_path): Likewise.
  10436. (grub_efi_controller_device_path): Likewise.
  10437. (grub_efi_acpi_device_path): Likewise.
  10438. (grub_efi_expanded_acpi_device_path): Likewise.
  10439. (grub_efi_atapi_device_path): Likewise.
  10440. (grub_efi_scsi_device_path): Likewise.
  10441. (grub_efi_fibre_channel_device_path): Likewise.
  10442. (grub_efi_1394_device_path): Likewise.
  10443. (grub_efi_usb_device_path): Likewise.
  10444. (grub_efi_usb_class_device_path): Likewise.
  10445. (grub_efi_i2o_device_path): Likewise.
  10446. (grub_efi_mac_address_device_path): Likewise.
  10447. (grub_efi_ipv4_device_path): Likewise.
  10448. (grub_efi_ipv6_device_path): Likewise.
  10449. (grub_efi_infiniband_device_path): Likewise.
  10450. (grub_efi_uart_device_path): Likewise.
  10451. (grub_efi_vendor_messaging_device_path): Likewise.
  10452. (grub_efi_hard_drive_device_path): Likewise.
  10453. (grub_efi_cdrom_device_path): Likewise.
  10454. (grub_efi_vendor_media_device_path): Likewise.
  10455. (grub_efi_file_path_device_path): Likewise.
  10456. (grub_efi_protocol_device_path): Likewise.
  10457. (grub_efi_piwg_device_path): Likewise.
  10458. (grub_efi_bios_device_path): Likewise.
  10459. 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
  10460. * include/grub/charset.h (grub_utf16_to_utf8): Make src a const pointer.
  10461. (grub_ucs4_to_utf8_alloc): Likewise.
  10462. (grub_ucs4_to_utf8): Likewise.
  10463. * grub-core/normal/charset.c (grub_ucs4_to_utf8): Likewise.
  10464. (grub_ucs4_to_utf8_alloc): Likewise.
  10465. 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
  10466. AFFS never uses unicode.
  10467. * include/grub/charset.h (GRUB_MAX_UTF8_PER_LATIN1): New const.
  10468. (grub_latin1_to_utf8): New inline function.
  10469. * grub-core/fs/affs.c (grub_affs_iterate_dir): Convert latin1 to UTF8.
  10470. 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
  10471. * grub-core/fs/romfs.c (grub_romfs_mount): Fix pointer comparison
  10472. overflow.
  10473. 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
  10474. * grub-core/fs/squash4.c (grub_squash_inode): Fix field sizes.
  10475. (grub_squash_dirent_header): Likewise.
  10476. (read_chunk): Don't double swap.
  10477. (grub_squash_iterate_dir): Fix swap sizes.
  10478. 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
  10479. * grub-core/fs/jfs.c (grub_jfs_getent): Handle UTF16 endianness.
  10480. 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
  10481. * grub-core/fs/hfs.c (grub_hfs_find_node): Handle unaligned keys.
  10482. (grub_hfs_iterate_dir): Likewise.
  10483. 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
  10484. Fix video on platforms where unaligned access is forbidden.
  10485. Make several optimisations while on it.
  10486. * grub-core/video/fb/fbblit.c (grub_video_fbblit_replace_directN):
  10487. Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
  10488. (grub_video_fbblit_replace_32bit_1bit): Likewise.
  10489. (grub_video_fbblit_replace_24bit_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
  10490. Disable.
  10491. (grub_video_fbblit_replace_16bit_1bit):
  10492. Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
  10493. (grub_video_fbblit_replace_8bit_1bit): Likewise.
  10494. (grub_video_fbblit_replace_BGRX8888_RGBX8888): Likewise.
  10495. (grub_video_fbblit_replace_BGRX8888_RGB888): Likewise.
  10496. (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
  10497. (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
  10498. (grub_video_fbblit_replace_BGR888_RGB888): Likewise.
  10499. (grub_video_fbblit_replace_RGBX8888_RGB88): Likewise.
  10500. (grub_video_fbblit_replace_RGB888_RGBX888): Likewise.
  10501. (grub_video_fbblit_replace_RGB888_RGBX8888): Likewise.
  10502. (grub_video_fbblit_replace_index_RGBX8888): Likewise.
  10503. (grub_video_fbblit_replace_index_RGB888): Likewise.
  10504. (grub_video_fbblit_blend_BGRA8888_RGBA8888): Likewise.
  10505. (grub_video_fbblit_blend_BGR888_RGBA8888): Likewise.
  10506. (grub_video_fbblit_blend_RGBA8888_RGBA8888): Likewise.
  10507. (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
  10508. (grub_video_fbblit_blend_index_RGBA8888): Likewise.
  10509. (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
  10510. (grub_video_fbblit_blend_XXX888_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
  10511. Disable.
  10512. (grub_video_fbblit_blend_XXX565_1bit):
  10513. Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
  10514. * grub-core/video/fb/fbfill.c (grub_video_fbfill_direct32): Likewise.
  10515. * grub-core/video/fb/fbutil.c (grub_video_fb_get_video_ptr): Return
  10516. void *.
  10517. * grub-core/video/fb/video_fb.c (common_blitter)
  10518. [!GRUB_HAVE_UNALIGNED_ACCESS]: Skip disabled blitters.
  10519. (grub_video_fb_create_render_target_from_pointer)
  10520. [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
  10521. * include/grub/fbutil.h (grub_video_fb_get_video_ptr): Return void *.
  10522. * include/grub/i386/types.h (GRUB_HAVE_UNALIGNED_ACCESS): New
  10523. definition.
  10524. * include/grub/x86_64/types.h (GRUB_HAVE_UNALIGNED_ACCESS): Likewise.
  10525. 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
  10526. * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Support
  10527. HH22 and HM10 relocations.
  10528. 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
  10529. * grub-core/kern/misc.c (grub_vsnprintf_real): Fix fmt2 parsing.
  10530. 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
  10531. * grub-core/commands/videotest.c (grub_cmd_videotest): Check that
  10532. allocation succeeded.
  10533. 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
  10534. * grub-core/fs/iso9660.c (grub_iso9660_convert_string): Make first
  10535. argument a u8 pointer. All users updated.
  10536. Handle unaligned buffers.
  10537. 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
  10538. * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Force inlining of
  10539. add_part to workaround compiler bug.
  10540. 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
  10541. * include/grub/kernel.h (FOR_MODULES): Preserve alignment invariants.
  10542. 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
  10543. * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_elfsyms):
  10544. Reserve alignment invariants.
  10545. (grub_multiboot_load): Likewise.
  10546. (retrieve_video_parameters): Likewise.
  10547. (grub_multiboot_make_mbi): Likewise.
  10548. 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
  10549. * grub-core/loader/i386/xnu.c (grub_xnu_devprop_remove_property): Fix
  10550. incorrect pointer.
  10551. 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
  10552. * grub-core/disk/pata.c (grub_pata_pio_read): Handle unaligned buffer.
  10553. (grub_pata_pio_write): Likewise.
  10554. 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
  10555. Add noreturn attributes and remove unreachable code.
  10556. * grub-core/bus/cs5536.c (grub_cs5536_smbus_wait): Remove unreachable
  10557. code.
  10558. * grub-core/commands/halt.c (grub_cmd_halt): Remove unreachable
  10559. code. Mark as noreturn.
  10560. * grub-core/commands/minicmd.c (grub_mini_cmd_exit): Likewise.
  10561. * grub-core/commands/reboot.c (grub_cmd_reboot): Likewise.
  10562. * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Remove
  10563. unreachable code.
  10564. * grub-core/kern/main.c (grub_main): Mark as noreturn.
  10565. * grub-core/kern/rescue_reader.c (grub_rescue_run): Likewise.
  10566. * grub-core/lib/posix_wrap/stdlib.h (abort): Likewise.
  10567. * grub-core/normal/menu.c (run_menu): Remove unreachable code.
  10568. * include/grub/kernel.h (grub_main): Mark as noreturn.
  10569. * include/grub/reader.h (grub_rescue_run): Likewise.
  10570. 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
  10571. * include/grub/i386/qemu/memory.h (grub_machine_mmap_init): Remove
  10572. redundant declaration.
  10573. 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
  10574. * include/grub/net.h (grub_net_network_level_interfaces): Remove
  10575. redundant declaration.
  10576. (FOR_NET_NETWORK_LEVEL_INTERFACES): Move to appropriate place.
  10577. 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
  10578. * grub-core/commands/hdparm.c (le16_to_char): Make src and dest uint16 *
  10579. to ensure alignment.
  10580. (grub_hdparm_print_identify): Make argument uint16 * to ensure
  10581. alignment. Ensure tmp alignment.
  10582. (grub_cmd_hdparm): Ensure buf alignment.
  10583. * grub-core/disk/ata.c (grub_ata_strncpy): Make src and dest uint16 *
  10584. to ensure alignment.
  10585. (grub_ata_dumpinfo): Ensure text alignment.
  10586. (grub_atapi_identify): Preserve alignment invariant.
  10587. (grub_ata_identify): Likewise. Use grub_get_unaligned32 when necessary.
  10588. 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
  10589. * include/grub/emu/misc.h (xasprintf): Add missing format attribute.
  10590. * include/grub/mips/kernel.h (grub_halt): Remove redundant declaration.
  10591. * include/grub/mips/qemu_mips/kernel.h (grub_halt): Likewise.
  10592. * include/grub/misc.h (grub_reboot)
  10593. [GRUB_MACHINE_EMU || GRUB_MACHINE_QEMU_MIPS]: Export.
  10594. (grub_halt) [__mips__]: Likewise.
  10595. 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
  10596. * include/grub/efi/memory.h (grub_machine_mmap_iterate):
  10597. Remove redundant declaration.
  10598. (grub_mmap_get_post64): Likewise.
  10599. (grub_mmap_get_upper): Likewise.
  10600. (grub_mmap_get_lower): Likewise.
  10601. 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
  10602. * grub-core/partmap/dvh.c (grub_dvh_is_valid): Make argument
  10603. uint32_t * to ensure alignment.
  10604. (dvh_partition_map_iterate): Make `block' a union to ensure alignment.
  10605. 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
  10606. * grub-core/partmap/sunpc.c (grub_sun_is_valid): Make argument
  10607. uint16_t * to ensure alignment.
  10608. (sun_pc_partition_map_iterate): Make `block' a union to ensure
  10609. alignment.
  10610. 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
  10611. * grub-core/partmap/sun.c (grub_sun_is_valid): Make argument uint16_t *
  10612. to ensure alignment.
  10613. (sun_partition_map_iterate): Make `block' a union to ensure alignment.
  10614. 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
  10615. * grub-core/fs/ntfs.c (u16at): Make into inline function.
  10616. Handle unaligned pointers.
  10617. (u32at): Likewise.
  10618. (u64at): Likewise.
  10619. (fixup): Use byte access instead of v16at.
  10620. (find_attr): Fix imporper usage of v32at.
  10621. (read_data): Likewise.
  10622. (list_file): Handle byte-swapping and unaligned strings.
  10623. (grub_ntfs_label): Likewise.
  10624. 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
  10625. * grub-core/fs/udf.c (grub_udf_partmap): Add packed attribute
  10626. as it's not necessarily aligned.
  10627. 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
  10628. * grub-core/kern/mips/qemu_mips/init.c (grub_at_keyboard_init): Remove
  10629. redundant declaration.
  10630. (grub_serial_init): Likewise.
  10631. (grub_terminfo_init): Likewise.
  10632. 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
  10633. * grub-core/fs/zfs/zfs.c (DVA_OFFSET_TO_PHYS_SECTOR): Make into inline
  10634. function.
  10635. (ZAP_HASH_IDX): Likewise.
  10636. (ZAP_LEAF_HASH_SHIFT): Likewise.
  10637. (ZAP_LEAF_HASH_NUMENTRIES): Likewise.
  10638. (LEAF_HASH): Likewise.
  10639. (ZAP_LEAF_NUMCHUNKS): Likewise.
  10640. (ZAP_LEAF_CHUNK): Likewise. Changed pointer arithmetic to preserve
  10641. alignment invariants. Return pointer. All users updated.
  10642. (ZAP_LEAF_ENTRY): Make into inline function.
  10643. (NBBY): Removed.
  10644. (xor): LIkewise.
  10645. (xor_out): Use grub_crypto_xor.
  10646. (dnode_get_path): Use grub_get_unaligned.
  10647. (nvlist_find_value): Likewise.
  10648. (grub_zfs_nvlist_lookup_uint64): Likewise.
  10649. (grub_zfs_nvlist_lookup_string): Likewise.
  10650. (get_nvlist_size): Likewise.
  10651. (grub_zfs_open): Likewise.
  10652. (fill_fs_info): Likewise.
  10653. (grub_zfs_dir): Likewise.
  10654. * include/grub/zfs/zap_leaf.h (zap_leaf_phys): Adapt to preserve
  10655. alignment invariants.
  10656. * include/grub/zfs/zio.h (zio_eck_t): Mark as packed as it's not
  10657. necessarily aligned.
  10658. 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
  10659. * grub-core/net/netbuff.c (grub_netbuff_alloc): Ensure proper alignment.
  10660. 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
  10661. * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Change pointer
  10662. arithmetic to conserve alignment invariants.
  10663. 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
  10664. * include/grub/efiemu/efiemu.h (grub_efiemu_get_memory_map): Remove
  10665. redundant declaration.
  10666. (grub_efiemu_mm_obtain_request): Likewise.
  10667. (grub_efiemu_prepare): Likewise.
  10668. 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
  10669. * include/grub/list.h: Explicitly cast return of grub_bad_type_cast
  10670. to match types.
  10671. 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
  10672. * grub-core/fs/hfsplus.c (grub_hfsplus_btree_recoffset): Handle the
  10673. case of aunaligned recptr.
  10674. (grub_hfsplus_read_block): Declare extoverflow as key to ensure
  10675. alignment.
  10676. (grub_hfsplus_btree_search): Handle unaligned index.
  10677. 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
  10678. * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Use grub_get_unaligned16
  10679. to get freetag and skip.
  10680. 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
  10681. * grub-core/fs/nilfs2.c (grub_nilfs2_btree_node): Add zero-size keys
  10682. array.
  10683. (grub_nilfs2_btree_node_dkeys): Ensure return pointer alignment.
  10684. (grub_nilfs2_btree_lookup): Ensure buffer alignment.
  10685. 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
  10686. * grub-core/fs/romfs.c (grub_romfs_iterate_dir): Properly align
  10687. name for checksum and fix allocation algorithm.
  10688. 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
  10689. * include/grub/types.h (grub_properly_aligned_t): New type.
  10690. (GRUB_PROPERLY_ALIGNED_ARRAY): New macro.
  10691. (grub_get_unaligned16): Add explicit casts.
  10692. (grub_get_unaligned32): Likewise.
  10693. (grub_get_unaligned64): Likewise.
  10694. (grub_set_unaligned16): New function.
  10695. (grub_set_unaligned32): Likewise.
  10696. 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
  10697. * grub-core/normal/datetime.c (grub_weekday_names): Make const.
  10698. 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
  10699. * grub-core/fs/udf.c (read_string): Macroify GRUB_MAX_UTF8_PER_UTF16.
  10700. * grub-core/fs/jfs.c (grub_jfs_diropen): Likewise.
  10701. * grub-core/fs/fat.c (grub_fat_iterate_dir): Likewise.
  10702. 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
  10703. * grub-core/term/at_keyboard.c (set_scancodes): Fix preprocessor
  10704. conditionals.
  10705. 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
  10706. * grub-core/kern/emu/main.c (main): Add missing const qualifier.
  10707. * grub-core/loader/efi/appleloader.c (devdata): Likewise.
  10708. 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
  10709. Unify and improve RAID and crypto xor.
  10710. * grub-core/disk/raid.c (grub_raid_block_xor): Removed. All users
  10711. changed to grub_crypto_xor
  10712. * grub-core/lib/crypto.c (grub_crypto_xor): Moved from here ...
  10713. * include/grub/crypto.h (grub_crypto_xor): ... here. Inlined.
  10714. Use bigger types when possible.
  10715. 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
  10716. * grub-core/disk/raid.c (scan_devices): Fix condition.
  10717. 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
  10718. * grub-core/net/drivers/ieee1275/ofnet.c (bootp_response_properties):
  10719. Make name a const ptr.
  10720. 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
  10721. * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_finddevice): Make
  10722. first argument a const pointer.
  10723. * grub-core/kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
  10724. * include/grub/ieee1275/ieee1275.h (grub_ieee1275_finddevice): Update
  10725. proto.
  10726. (grub_children_iterate): Likewise.
  10727. (grub_machine_mmap_iterate): Remove redundant declaration.
  10728. 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
  10729. * grub-core/commands/acpi.c (grub_acpi_create_ebda) [!x86]: Disable.
  10730. (grub_cmd_acpi) [!x86]: Disable EBDA.
  10731. 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
  10732. Enable UTF8 in gnulib regexp.
  10733. * config.h.in (RE_ENABLE_I18N) [!GRUB_UTIL]: New define.
  10734. * grub-core/lib/posix_wrap/ctype.h (islower): Use grub_islower.
  10735. (isupper): Use grub_isupper.
  10736. (isascii): New inline function.
  10737. * grub-core/lib/posix_wrap/wchar.h: Replace dummy with real contents.
  10738. * grub-core/lib/posix_wrap/wctype.h: Likewise.
  10739. * grub-core/normal/charset.c (grub_utf8_process): New function.
  10740. (grub_utf8_to_utf16): Use grub_utf8_process.
  10741. (grub_encode_utf8_character): New function.
  10742. (grub_ucs4_to_utf8): Use grub_encode_utf8_character.
  10743. * include/grub/charset.h (grub_utf8_process): New declaration.
  10744. (grub_encode_utf8_character): Likewise.
  10745. * include/grub/misc.h (grub_islower): New inline function.
  10746. (grub_isupper): Likewise.
  10747. (grub_strchrsub): Moved down to fix the definitions.
  10748. 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
  10749. * grub-core/bus/usb/ohci.c (grub_ohci_check_transfer): Add an unsigned
  10750. specification.
  10751. 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
  10752. * include/grub/loader.h (grub_loader_register_preboot_hook):
  10753. Use struct preboot * and not void * for handle. All users updated.
  10754. (grub_loader_unregister_preboot_hook): Likewise.
  10755. 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
  10756. * include/grub/charset.h (GRUB_MAX_UTF8_PER_UTF16): New const.
  10757. * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Change to
  10758. UTF-16-BE. All users updated.
  10759. (grub_hfsplus_cmp_catkey): Fix unicode handling.
  10760. (grub_hfsplus_iterate_dir): Likewise.
  10761. (grub_hfsplus_label): Likewise.
  10762. 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
  10763. * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix compat condition.
  10764. 2011-11-30 Vladimir Serbinenko <phcoder@gmail.com>
  10765. Add missing const qualifiers.
  10766. * grub-core/commands/i386/pc/sendkey.c (keysym): Add missing const.
  10767. * grub-core/commands/lspci.c (grub_pci_classname): Likewise.
  10768. * grub-core/commands/menuentry.c (hotkey_aliases): Likewise.
  10769. * grub-core/disk/lvm.c (grub_lvm_getvalue): Likewise.
  10770. (grub_lvm_check_flag): Likewise.
  10771. * grub-core/efiemu/i386/coredetect.c
  10772. (grub_efiemu_get_default_core_name): Likewise
  10773. * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
  10774. * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Likewise.
  10775. * grub-core/fs/ntfs.c (fixup): Likewise.
  10776. * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Likewise.
  10777. * grub-core/fs/zfs/zfs.c (decomp_entry): Likewise.
  10778. (fzap_lookup): Likewise.
  10779. (zap_lookup): Likewise.
  10780. * grub-core/gnulib/regcomp.c (init_dfa): Likewise.
  10781. * grub-core/lib/legacy_parse.c (check_option): Likewise.
  10782. * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Likewise.
  10783. * grub-core/loader/i386/bsd.c (grub_bsd_add_meta): Likewise.
  10784. (grub_freebsd_add_meta_module): Likewise.
  10785. (grub_cmd_freebsd_module): Likewise.
  10786. * grub-core/loader/i386/xnu.c (tbl_alias): Likewise.
  10787. * grub-core/loader/xnu.c (grub_xnu_register_memory): Likewise.
  10788. (grub_xnu_writetree_get_size): Likewise.
  10789. (grub_xnu_writetree_toheap_real): Likewise.
  10790. (grub_xnu_find_key): Likewise.
  10791. (grub_xnu_create_key): Likewise.
  10792. (grub_xnu_create_value): Likewise.
  10793. (grub_xnu_register_memory): Likewise.
  10794. (grub_xnu_check_os_bundle_required): Likewise.
  10795. (grub_xnu_scan_dir_for_kexts): Likewise.
  10796. (grub_xnu_load_kext_from_dir): Likewise.
  10797. * grub-core/normal/color.c (color_list): Likewise.
  10798. * grub-core/normal/completion.c (current_word): Likewise.
  10799. * grub-core/normal/menu_entry.c (insert_string): Likewise.
  10800. * grub-core/term/serial.c (grub_serial_find): Likewise.
  10801. * grub-core/term/tparm.c (grub_terminfo_tparm): Likewise.
  10802. * include/grub/efiemu/efiemu.h (grub_efiemu_get_default_core_name):
  10803. Likewise.
  10804. * include/grub/i386/bsd.h (grub_bsd_add_meta): Likewise.
  10805. (grub_freebsd_add_meta_module): Likewise.
  10806. * include/grub/lib/arg.h (grub_arg_option): Likewise.
  10807. * include/grub/net.h (grub_net_card_driver): Likewise.
  10808. (grub_net_card): Likewise.
  10809. (grub_net_app_protocol): Likewise.
  10810. * include/grub/parttool.h (grub_parttool_argdesc): Likewise.
  10811. * include/grub/serial.h (grub_serial_find): Likewise.
  10812. * include/grub/tparm.h (grub_terminfo_tparm): Likewise.
  10813. * include/grub/xnu.h (grub_xnu_create_key): Likewise.
  10814. (grub_xnu_create_value): Likewise.
  10815. (grub_xnu_find_key): Likewise.
  10816. (grub_xnu_scan_dir_for_kexts): Likewise.
  10817. (grub_xnu_load_kext_from_dir): Likewise.
  10818. * include/grub/zfs/zio_checksum.h (zio_checksum_t): Moved from here ...
  10819. * grub-core/fs/zfs/zfs.c (zio_checksum_t): ...here.
  10820. * include/grub/zfs/zio_checksum.h (zio_checksum_info):
  10821. Moved from here ...
  10822. * grub-core/fs/zfs/zfs.c (zio_checksum_info): ... here. Added missing const.
  10823. 2011-11-28 Colin Watson <cjwatson@ubuntu.com>
  10824. * util/getroot.c (find_root_device_from_libzfs): Use xasprintf.
  10825. 2011-11-27 Vladimir Serbinenko <phcoder@gmail.com>
  10826. * grub-core/fs/zfs/zfs.c (recovery): Fix spelling.
  10827. (read_device): Fix size calculation.
  10828. 2011-11-25 Robert Millan <rmh@gnu.org>
  10829. * util/getroot.c [HAVE_LIMITS_H]: Include `<limits.h>'.
  10830. (find_root_device_from_libzfs): Add zpool output parser to be used
  10831. as fallback when libzfs isn't available.
  10832. 2011-11-25 Seth Goldberg <seth.goldberg@oracle.com>
  10833. * po/Makefile.in.in: Add missing escape-continuation.
  10834. 2011-11-25 Vladimir Serbinenko <phcoder@gmail.com>
  10835. * grub-core/fs/cpio.c (grub_cpio_dir): Handle subdirs correctly.
  10836. 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
  10837. * grub-core/kern/dl.c (grub_dl_load_segments): Fix alignment handling.
  10838. 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
  10839. * grub-core/kern/dl.c (grub_dl_unload): Fix freeing segments.
  10840. 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
  10841. * grub-core/kern/x86_64/efi/callwrap.S: Fix the comment.
  10842. 2011-11-14 Vladimir Serbinenko <phcoder@gmail.com>
  10843. * grub-core/lib/adler32.c: Add missing license specification.
  10844. * grub-core/lib/crc64.c: Likewise.
  10845. * grub-core/loader/i386/pc/plan9.c: Likewise.
  10846. * grub-core/partmap/plan.c: Likewise.
  10847. 2011-11-13 Lubomir Kundrak <lkundrak@redhat.com>
  10848. Add facility to debug GRUB with gdb under qemu.
  10849. * grub-core/gdb_grub.in: New file.
  10850. * grub-core/gmodule.pl.in: Likewise.
  10851. * grub-core/Makefile.core.def (gmodule.pl): New script.
  10852. (gdb_grub): Likewise.
  10853. 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
  10854. * util/grub-mount.c (argp_parser): Accept relative pathes.
  10855. * util/grub-fstest.c (argp_parser): Likewise.
  10856. 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
  10857. Plan9 support.
  10858. * Makefile.util.def (libgrubmods): Add
  10859. grub-core/partmap/plan.c.
  10860. * docs/grub.texi: Notice Plan9 support.
  10861. * grub-core/Makefile.core.def (plan9): New module.
  10862. (part_plan): Likewise.
  10863. * grub-core/loader/i386/pc/plan9.c: New file.
  10864. * grub-core/partmap/plan.c: Likewise.
  10865. * include/grub/msdos_partition.h (GRUB_PC_PARTITION_TYPE_PLAN9): New
  10866. define.
  10867. (GRUB_PC_PARTITION_TYPE_LINUX_SWAP): Likewise.
  10868. * include/grub/mm.h (grub_extend_alloc): New inline function.
  10869. 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
  10870. Make Reed-Solomon faster by using power of generator representation of
  10871. GF(256)*.
  10872. * grub-core/lib/reed_solomon.c (grub_uint16_t) [TEST]: Removed.
  10873. (gf_double_t): Likewise.
  10874. (gf_invert): Removed.
  10875. (gf_powx): New array.
  10876. (gf_powx_inv): Likewise.
  10877. (scratch): Move higher.
  10878. (gf_reduce): Removed.
  10879. (gf_mul): Use powx.
  10880. (gf_invert): Likewise.
  10881. (init_inverts): Replaced with ...
  10882. (init_powx): ...this. All users updated.
  10883. (pol_evaluate): Replace multiplications with additions.
  10884. (rs_encode): Likewise.
  10885. (gauss_eliminate): Call gf_invert.
  10886. (grub_reed_solomon_add_redundancy): Call init_powx.
  10887. (grub_reed_solomon_recover): Call init_powx unconditionally.
  10888. 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
  10889. * grub-core/partmap/gpt.c (gpt_partition_map_embed): Fix spelling.
  10890. 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
  10891. * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restore
  10892. disk->partiton for safety.
  10893. 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
  10894. * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
  10895. Fix a memory leak.
  10896. (grub_util_biosdisk_get_grub_dev): Add a useful debug info.
  10897. 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
  10898. * grub-core/kern/emu/hostdisk.c (find_system_device): Fix a memory leak.
  10899. 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
  10900. * include/grub/lvm.h (grub_lvm_pv): Correct start type.
  10901. 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
  10902. Fix spaces handling in proc/self/mountinfo.
  10903. * util/getroot.c (unescape): New function.
  10904. (grub_find_root_device_from_mountinfo): Use unescape.
  10905. 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
  10906. Support ZFS embedding.
  10907. * grub-core/fs/zfs/zfs.c (grub_zfs_embed): New function.
  10908. (grub_zfs_fs): Register grub_zfs_embed.
  10909. 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
  10910. Fix MIPS compilation.
  10911. * grub-core/boot/mips/startup_raw.S: Use GRUB_DECOMPRESSOR_*
  10912. * include/grub/offsets.h: Rename decompressor fields from
  10913. GRUB_KERNEL_* to GRUB_DECOMPRESSOR_*.
  10914. * util/grub-mkimage.c (image_targets): Use new names.
  10915. 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
  10916. Defer multiboot device parsing until we're in compressed part.
  10917. * grub-core/boot/i386/pc/lnxboot.S: Remove setting dos_part and
  10918. bsd_part. setdevice has fallen into disuse.
  10919. * grub-core/boot/i386/pc/startup_raw.S (dos_part): Removed.
  10920. (bsd_part): Likewise.
  10921. (boot_dev): New variable.
  10922. (multiboot_trampoline): Don't parse multiboot device.
  10923. Pass multiboot device in %edx.
  10924. * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Parse
  10925. grub_boot_device.
  10926. * grub-core/kern/i386/pc/init.c (grub_machine_get_bootlocation):
  10927. Likewise.
  10928. * grub-core/kern/i386/pc/startup.S: Save edx.
  10929. (grub_boot_drive): Removed.
  10930. (grub_install_dos_part): Likewise.
  10931. (grub_install_bsd_part): Likewise.
  10932. (grub_boot_device): New variable.
  10933. * include/grub/i386/pc/kernel.h (grub_install_dos_part): Removed.
  10934. (grub_install_bsd_part): Likewise.
  10935. (grub_boot_drive): Likewise.
  10936. (grub_boot_device): New variable.
  10937. * include/grub/offsets.h (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART):
  10938. Removed.
  10939. (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
  10940. (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Moved lower.
  10941. (GRUB_KERNEL_MACHINE_INSTALL_BSD_PART): Removed.
  10942. (GRUB_KERNEL_MACHINE_INSTALL_DOS_PART): Likewise.
  10943. * util/grub-install.in: Remove redundant condition.
  10944. 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
  10945. Fix bug introduced by previous commit.
  10946. * grub-core/boot/i386/pc/startup_raw.S: Compute RS start correctly.
  10947. 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
  10948. Use decompressors framework on i386-pc. It increases core size
  10949. by 46 bytes but improves compatibility and maintainability.
  10950. * grub-core/Makefile.core.def (lzma_decompress): New image.
  10951. (kernel): Add i386_pc_ldflags.
  10952. * grub-core/kern/i386/pc/startup.S: Move intial part to ..
  10953. * grub-core/boot/i386/pc/startup_raw.S: ... here. Pass pointers
  10954. to real_to_prot, prot_to_real and device info.
  10955. * include/grub/offsets.h: Renamed decompressor offsets.
  10956. * util/grub-mkimage.c (grub_compression_t): New cmpression lzma.
  10957. (image_target_desc): Remove raw_size and rename decompressor fields.
  10958. (compress_kernel): Handle lzma.
  10959. (generate_image): Handle decompressors on i386-pc.
  10960. 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
  10961. * configure.ac: Add -fno-asynchronous-unwind-tables.
  10962. 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
  10963. Move assembly code to C by using intwrap. It increases core size
  10964. by 88 bytes but improves compatibility and maintainability.
  10965. * grub-core/kern/i386/pc/startup.S (grub_console_putchar): Moved to ...
  10966. * grub-core/term/i386/pc/console.c (grub_console_putchar_real):
  10967. ... here. Translated to C.
  10968. * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Moved to ...
  10969. * grub-core/term/i386/pc/console.c (grub_console_getkey):
  10970. ... here. Translated to C.
  10971. * grub-core/kern/i386/pc/startup.S (grub_console_getxy): Moved to ...
  10972. * grub-core/term/i386/pc/console.c (grub_console_getxy):
  10973. ... here. Translated to C.
  10974. * grub-core/kern/i386/pc/startup.S (grub_console_gotoxy): Moved to ...
  10975. * grub-core/term/i386/pc/console.c (grub_console_gotoxy):
  10976. ... here. Translated to C.
  10977. * grub-core/kern/i386/pc/startup.S (grub_console_cls): Moved to ...
  10978. * grub-core/term/i386/pc/console.c (grub_console_cls):
  10979. ... here. Translated to C.
  10980. * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Moved to ..
  10981. * grub-core/term/i386/pc/console.c (grub_console_setcursor):
  10982. ... here. Translated to C.
  10983. * grub-core/kern/i386/pc/startup.S (grub_get_rtc): Moved to ..
  10984. * grub-core/kern/i386/pc/init.c (grub_get_rtc): ... here.
  10985. Translated to C.
  10986. * grub-core/term/i386/pc/console.c (int10_9): New function.
  10987. (grub_console_putchar): Likewise.
  10988. * include/grub/i386/pc/console.h: Removed the not anymore shared
  10989. functions.
  10990. 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
  10991. Move grub_chainloader_real_boot out of the kernel.
  10992. * grub-core/Makefile.am: Remove machine/loader.h.
  10993. * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
  10994. Removed.
  10995. * grub-core/lib/i386/relocator.c (grub_relocator16_esi): New extern
  10996. variable.
  10997. (grub_relocator16_keep_a20_enabled): Likewise.
  10998. (grub_relocator16_boot): Fill new variables.
  10999. * grub-core/lib/i386/relocator16.S: Add gate a20 handling.
  11000. * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_boot): Use
  11001. relocator.
  11002. (grub_chainloader_unload): Likewise.
  11003. (grub_chainloader_cmd): Likewise.
  11004. * include/grub/i386/pc/loader.h: Removed.
  11005. * include/grub/i386/relocator.h (grub_relocator16_state): Add a20
  11006. and esi. All initialisers updated.
  11007. 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
  11008. 2011-11-12 Colin Watson <cjwatson@ubuntu.com>
  11009. * Makefile.util.def (grub-mount): New util.
  11010. * .bzrignore: Add grub-mount.
  11011. * configure.ac: Check for fuse and enable grub-mount if available.
  11012. * docs/man/grub-mount.h2m: New file.
  11013. * util/grub-mount.c: Likewise.
  11014. 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
  11015. * grub-core/commands/efi/fixvideo.c: Gettextize.
  11016. * grub-core/commands/hashsum.c: Likewise.
  11017. * grub-core/commands/i386/cmostest.c: Likewise.
  11018. * grub-core/commands/i386/pc/drivemap.c: Likewise.
  11019. * grub-core/commands/i386/pc/lsapm.c: Likewise.
  11020. * grub-core/commands/i386/pc/sendkey.c: Likewise.
  11021. * grub-core/commands/lsmmap.c: Likewise.
  11022. * grub-core/commands/menuentry.c: Likewise.
  11023. * grub-core/commands/mips/loongson/lsspd.c: Likewise.
  11024. * grub-core/commands/setpci.c: Likewise.
  11025. * grub-core/loader/i386/bsd.c: Likewise.
  11026. * grub-core/loader/i386/linux.c: Likewise.
  11027. * util/getroot.c: Likewise.
  11028. * util/grub-editenv.c: Likewise.
  11029. * util/grub-fstest.c: Likewise.
  11030. * util/grub-mkfont.c: Likewise.
  11031. * util/grub-mkimage.c: Likewise.
  11032. * util/grub-mkpasswd-pbkdf2.c: Likewise.
  11033. * util/grub-pe2elf.c: Likewise.
  11034. * util/grub-probe.c: Likewise.
  11035. * util/grub-setup.c: Likewise.
  11036. * util/ieee1275/ofpath.c: Likewise.
  11037. * util/misc.c: Likewise.
  11038. * util/raid.c: Likewise.
  11039. 2011-11-11 Robert Millan <rmh@gnu.org>
  11040. * util/getroot.c (grub_util_get_geom_abstraction): Remove
  11041. __attribute__((unused)) from `os_dev', which *is* being used.
  11042. 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
  11043. * include/grub/dl.h (GRUB_ARCH_DL_TRAMP_SIZE) [__ia64__]: Add back
  11044. forgotten define.
  11045. (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Redefine in terms of
  11046. GRUB_IA64_DL_GOT_ALIGN.
  11047. (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Redefine in terms of
  11048. GRUB_IA64_DL_TRAMP_ALIGN.
  11049. 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
  11050. Replace grub_fatal with normal errors in i386 linux loader.
  11051. * grub-core/loader/i386/linux.c (find_efi_mmap_size): Return 0 on error.
  11052. (allocate_pages): Check find_efi_mmap_size return value.
  11053. (grub_e820_add_region): Return error.
  11054. (grub_linux_boot): Check mmap return value.
  11055. 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
  11056. * grub-core/commands/acpihalt.c: Gettextized.
  11057. * grub-core/commands/cacheinfo.c: Likewise.
  11058. * grub-core/commands/cmp.c: Likewise.
  11059. * grub-core/commands/efi/loadbios.c: Likewise.
  11060. * grub-core/commands/gptsync.c: Likewise.
  11061. * grub-core/commands/ieee1275/suspend.c: Likewise.
  11062. * grub-core/commands/legacycfg.c: Likewise.
  11063. * grub-core/commands/memrw.c: Likewise.
  11064. * grub-core/commands/minicmd.c: Likewise.
  11065. * grub-core/commands/parttool.c: Likewise.
  11066. * grub-core/commands/time.c: Likewise.
  11067. * grub-core/commands/videoinfo.c: Likewise.
  11068. * grub-core/disk/geli.c: Likewise.
  11069. * grub-core/disk/i386/pc/biosdisk.c: Likewise.
  11070. * grub-core/disk/luks.c: Likewise.
  11071. * grub-core/disk/lvm.c: Likewise.
  11072. * grub-core/font/font_cmd.c: Likewise.
  11073. * grub-core/fs/zfs/zfscrypt.c: Likewise.
  11074. * grub-core/fs/zfs/zfsinfo.c: Likewise.
  11075. * grub-core/gfxmenu/view.c: Likewise.
  11076. * grub-core/kern/emu/hostdisk.c: Likewise.
  11077. * grub-core/kern/emu/main.c: Likewise.
  11078. * grub-core/kern/emu/misc.c: Likewise.
  11079. * grub-core/kern/emu/mm.c: Likewise.
  11080. * grub-core/kern/mips/arc/init.c: Likewise.
  11081. * grub-core/kern/mips/loongson/init.c: Likewise.
  11082. * grub-core/kern/partition.c: Likewise.
  11083. * grub-core/lib/i386/halt.c: Likewise.
  11084. * grub-core/lib/mips/arc/reboot.c: Likewise.
  11085. * grub-core/lib/mips/loongson/reboot.c: Likewise.
  11086. * grub-core/loader/i386/pc/chainloader.c: Likewise.
  11087. * grub-core/loader/i386/xnu.c: Likewise.
  11088. * grub-core/loader/multiboot.c: Likewise.
  11089. * grub-core/net/bootp.c: Likewise.
  11090. * grub-core/net/net.c: Likewise.
  11091. * grub-core/normal/term.c: Likewise.
  11092. * grub-core/partmap/bsdlabel.c: Likewise.
  11093. * grub-core/parttool/msdospart.c: Likewise.
  11094. * grub-core/term/gfxterm.c: Likewise.
  11095. * grub-core/term/terminfo.c: Likewise.
  11096. * grub-core/video/i386/pc/vbe.c: Likewise.
  11097. * util/grub-menulst2cfg.c: Likewise.
  11098. * util/grub-mkdevicemap.c: Likewise.
  11099. * util/grub-mklayout.c: Likewise.
  11100. * util/grub-mkrelpath.c: Likewise.
  11101. * util/grub-script-check.c: Likewise.
  11102. * util/ieee1275/grub-ofpathname.c: Likewise.
  11103. * util/resolve.c: Likewise.
  11104. 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
  11105. Support %1$d syntax.
  11106. * tests/printf_unit_test.c: New file.
  11107. * Makefile.util.def (printf_test): New test.
  11108. * grub-core/kern/misc.c (grub_vsnprintf_real): Support %1$d syntax.
  11109. 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
  11110. * grub-core/hook/datehook.c (grub_read_hook_datetime): Small stylistic
  11111. fix.
  11112. 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
  11113. * grub-core/efiemu/mm.c (grub_efiemu_mmap_fill): Change printf into
  11114. dprintf.
  11115. * grub-core/font/font.c (grub_font_load): Likewise.
  11116. 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
  11117. * util/grub-macho2img.c: Add comment concerning gettext.
  11118. * grub-core/lib/legacy_parse.c: Likewise.
  11119. 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
  11120. * grub-core/kern/misc.c (grub_vprintf): Add missing va_end.
  11121. (grub_xvasprintf): Likewise.
  11122. 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
  11123. Add const keyword to grub_env_get and gettextize week days.
  11124. * grub-core/hook/datehook.c (grub_datetime_names): Make const.
  11125. (grub_read_hook_datetime): Return const char *.
  11126. * grub-core/kern/env.c (grub_env_get): Return const char *. All users
  11127. updated.
  11128. * grub-core/normal/datetime.c (grub_weekday_names): Make const.
  11129. Mark for gettext.
  11130. (grub_get_weekday_name): Return const char *. Call gettext.
  11131. * grub-core/script/argv.c (grub_script_argv_append): Receive const
  11132. char * and len as the argument. All users updated.
  11133. (grub_script_argv_split_append): Receive const char *.
  11134. * include/grub/datetime.h (grub_get_weekday_name): Update proto.
  11135. * include/grub/env.h (grub_env_get): Likewise.
  11136. (grub_env_read_hook_t): Return const char *.
  11137. * include/grub/script_sh.h (grub_script_argv_append): Update proto.
  11138. (grub_script_argv_split_append): Likewise.
  11139. 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
  11140. * grub-core/normal/main.c (grub_normal_execute): Remove leftover call.
  11141. 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
  11142. * grub-core/kern/misc.c (grub_strstr): Moved from here ...
  11143. * include/grub/misc.h (grub_strstr): ... here. Make static and inline.
  11144. 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
  11145. * include/grub/ieee1275/ieee1275.h (grub_ieee1275_set_property):
  11146. Fix prototype.
  11147. 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
  11148. Fix mips compilation.
  11149. * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec): Restrict hash_id to
  11150. normal decoder.
  11151. (hashes): Use in embed decoder as well (for sizes).
  11152. (dec_stream_header): Fix embed decompressor logic.
  11153. (dec_stream_footer): Likewise.
  11154. 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
  11155. * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Issue
  11156. an error and not a fatal on unrecognised relocation types.
  11157. 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
  11158. * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
  11159. Issue error rather than printf on unknown arguments.
  11160. 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
  11161. * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_set_property):
  11162. Make buf a const.
  11163. 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
  11164. * grub-core/fs/zfs/zfscrypt.c (GRUB_MOD_INIT), (GRUB_MOD_FINI):
  11165. Fix module name.
  11166. 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
  11167. * grub-core/fs/ntfs.c (grub_ntfs_read_symlink): Stylistic fix. Remove
  11168. leftover debug printf.
  11169. 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
  11170. * grub-core/fs/btrfs.c (grub_btrfs_embed): Spelling fix.
  11171. 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
  11172. * grub-core/efiemu/main.c (grub_efiemu_register_configuration_table):
  11173. A stylistic fix.
  11174. 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
  11175. * grub-core/commands/probe.c (grub_cmd_probe): Fix error message.
  11176. 2011-11-10 Shea Levy <slevy@tieronedesign.com>
  11177. Allow all modules to perform serial IO
  11178. * grub-core/term-serial.c (grub_serial_find): Remove static qualifier
  11179. * include/grub/serial.h (grub_serial_port_configure): New inline
  11180. function.
  11181. (grub_serial_port_fetch): Likewise.
  11182. (grub_serial_port_put): Likewise.
  11183. (grub_serial_port_fini): Likewise.
  11184. (grub_serial_find): New proto.
  11185. 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
  11186. Put symlink at the end of the node and fix a potential
  11187. memory corruption.
  11188. * grub-core/fs/iso9660.c (grub_fshelp_node): New field have_symlink.
  11189. Make symlink into an array.
  11190. (set_rockridge): Set have_symlink and alloc_dirents.
  11191. (grub_iso9660_read_symlink): Use new layout.
  11192. (grub_iso9660_iterate_dir): Fix memory corruption.
  11193. Use new layout.
  11194. (grub_iso9660_dir): Set have_symlink.
  11195. (grub_iso9660_open): Likewise.
  11196. 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
  11197. Remove local keyword.
  11198. * util/grub-mkconfig_lib.in (version_test_numeric): Remove local.
  11199. (version_test_gt): Likewise.
  11200. (version_find_latest): Likewise.
  11201. (gettext_printf): Likewise.
  11202. * util/grub.d/10_windows.in (get_os_name_from_boot_ini): Likewise.
  11203. 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
  11204. * grub-core/fs/zfs/zfs.c (zfs_mount): Fix spurious warning.
  11205. 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
  11206. Fix ZFS memory and resource leaks.
  11207. * grub-core/fs/zfs/zfs.c (fill_vdev_info_real): New paramter inserted.
  11208. All users updated.
  11209. Free type on exit.
  11210. (fill_vdev_info): New parameter inserted. All users updated.
  11211. (check_pool_label): Likewise.
  11212. (scan_disk): Likewise.
  11213. (scan_devices): Close non-inserted disks.
  11214. (fzap_iterate): Free l.
  11215. (unmount_device): Free children descripto memory.
  11216. 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
  11217. * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix grub_strncat
  11218. argument (access out of bounds).
  11219. 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
  11220. * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Fix RAID10 logic for
  11221. >= 6 drives.
  11222. 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
  11223. * include/grub/i386/netbsd_bootinfo.h (grub_netbsd_btinfo_bootwedge):
  11224. Fix declaration.
  11225. 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
  11226. Fix several memory leaks.
  11227. * grub-core/fs/btrfs.c (grub_btrfs_dir): Fix memory leak.
  11228. * grub-core/fs/cpio.c (grub_cpio_find_file): Likewise.
  11229. (grub_cpio_dir): Likewise.
  11230. * grub-core/fs/fat.c (grub_fat_label): Likewise.
  11231. * grub-core/fs/jfs.c (grub_jfs_label): Likewise.
  11232. * grub-core/fs/romfs.c (grub_romfs_close): Likewise.
  11233. (grub_romfs_label): Likewise.
  11234. * grub-core/fs/squash4.c (squash_mount): Use zalloc for safety.
  11235. (squash_unmount): New function.
  11236. (grub_squash_dir): Fix memory leak.
  11237. (grub_squash_open): Likewise.
  11238. (grub_squash_read): Likewise.
  11239. (grub_squash_mtime): Likewise.
  11240. * grub-core/fs/xfs.c (grub_xfs_open): Likewise.
  11241. * grub-core/fs/zfs/zfs.c (check_pool_label): Likewise.
  11242. * util/grub-fstest.c (fstest): Likewise.
  11243. 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
  11244. * include/grub/misc.h (grub_strncat): Fix the order of conditionals to
  11245. avoid accessing beyond the array.
  11246. 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
  11247. * configure.ac: Add missing -mXX to TARGET_CPPFLAGS.
  11248. 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
  11249. Several AFFS fixes.
  11250. * grub-core/fs/affs.c (grub_affs_bblock): Replace flags with version.
  11251. (GRUB_AFFS_FLAG_FFS): Removed.
  11252. (GRUB_AFFS_SYMLINK_SIZE): Likewise.
  11253. (GRUB_AFFS_FILETYPE_DIR): Make positive and unsigned.
  11254. (GRUB_AFFS_FILETYPE_DIR), (GRUB_AFFS_FILETYPE_REG): Fix a mix-up.
  11255. (grub_fshelp_node): Make block 32-bit.
  11256. Add block_cache and last_block_cache.
  11257. (grub_affs_read_block): Fill and use block cache.
  11258. (grub_affs_read_file): Removed.
  11259. (grub_affs_mount): Zero-fill node. Fix version check. Don't reread
  11260. boot block.
  11261. (grub_affs_read_symlink): Fix symlink size. Add a \0 at the end for
  11262. safety.
  11263. (grub_affs_iterate_dir): Use more appropriate types. Zero-fill allocated
  11264. space.
  11265. (grub_affs_close): Free block cache.
  11266. (grub_affs_read): Use grub_fshelp_read_file directly.
  11267. 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
  11268. * grub-core/fs/zfs/zfs.c (read_dva): Issue an error if read failed
  11269. with no error set.
  11270. 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
  11271. * grub-core/lib/LzmaEnc.c (LzmaEnc_CodeOneBlock): Remove set but not
  11272. used variable.
  11273. * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
  11274. Likewise.
  11275. 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
  11276. Fix potential problem with calling zfs_to_cpu and cpu_to_be in a row.
  11277. * grub-core/fs/zfs/zfscrypt.c (grub_zfs_decrypt_real): Use explicit
  11278. byteswap when needed.
  11279. 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
  11280. Fix FreeBSD compilation.
  11281. * grub-core/disk/geli.c (GRUB_MD_SHA256) [GRUB_UTIL]: Redefine in a way
  11282. to avoid circular dependency.
  11283. (GRUB_MD_SHA512) [GRUB_UTIL]: Likewise.
  11284. * util/getroot.c (grub_util_follow_gpart_up): Move from here...
  11285. * grub-core/kern/emu/hostdisk.c (+grub_util_follow_gpart_up): ... here.
  11286. 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
  11287. Fix ZFS crypto error types.
  11288. * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Fix return type.
  11289. (grub_gcm_decrypt): Likewise.
  11290. (grub_zfs_load_key_real): Fix error code type. Handle possible error
  11291. from PBKDF2.
  11292. 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
  11293. Illumos support.
  11294. * Makefile.util.def (10_illumos): New script.
  11295. * configure.ac: Set COND_HOST_ILLUMOS.
  11296. * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__sun__]:
  11297. Support Illumos calls.
  11298. (find_partition_start) [__sun__]: Likewise.
  11299. (convert_system_partition_to_system_disk) [__sun__]: Likewise.
  11300. (device_is_wholedisk) [__sun__]: Handle Illumos naming scheme.
  11301. (grub_util_biosdisk_get_grub_dev) [__sun__]: Handle Illumos.
  11302. * util/getroot.c (find_root_device_from_libzfs) [__sun__]: Return raw
  11303. device.
  11304. * util/grub-probe.c (probe) [__sun__]: Do character check.
  11305. * util/grub.d/10_illumos.in: New file.
  11306. 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
  11307. Support escaped commas in hostdisk.
  11308. * grub-core/kern/emu/hostdisk.c (unescape_cmp): New function.
  11309. (find_grub_drive): Use unescape_cmp.
  11310. (make_device_name): Escape commas.
  11311. 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
  11312. * util/grub.d/10_kfreebsd.in: Use ${grub_mkrelpath} not grub-mkrelpath.
  11313. 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
  11314. * grub-core/fs/zfs/zfs.c (zap_iterate): Remove set but not used
  11315. variable.
  11316. 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
  11317. Support trampoline jumps on powerpc.
  11318. * grub-core/kern/dl.c (grub_dl_load_segments) [__powerpc__]: Follow
  11319. __ia64__ path.
  11320. (grub_dl_load_segments): Set mod->sz.
  11321. (grub_dl_flush_cache): Flush whole space occupied by module, not just
  11322. segments.
  11323. * grub-core/kern/ia64/dl.c (nopm): Make const while on it.
  11324. (jump): Likewise.
  11325. * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): New
  11326. function.
  11327. (trampoline): New struct.
  11328. (trampoline_template): New const.
  11329. (grub_arch_dl_relocate_symbols): Create trampolines on overflow.
  11330. * include/grub/dl.h (grub_dl): Add sz element.
  11331. [__powerpc__]: Follow __ia64__.
  11332. (GRUB_ARCH_DL_TRAMP_ALIGN): Define on ppc.
  11333. (GRUB_ARCH_DL_GOT_ALIGN): Likewise.
  11334. (GRUB_ARCH_DL_TRAMP_SIZE): Likewise.
  11335. (grub_arch_dl_get_tramp_got_size) [__powerpc__]: New proto.
  11336. 2011-11-06 Vladimir Serbinenko <phcoder@gmail.com>
  11337. ZFS crypto support.
  11338. * Makefile.util.def (libgrubmods): Add grub-core/fs/zfs/zfscrypt.c.
  11339. * grub-core/Makefile.core.def (zfscrypt): New module.
  11340. * grub-core/fs/zfs/zfs.c (subvolume): New structure.
  11341. (grub_zfs_data): Replace mdn with subvol. Put case_insensitivity inside
  11342. it. All users updated.
  11343. (grub_zfs_decrypt): New var.
  11344. (grub_zfs_load_key): Likewise.
  11345. (zio_checksum_functions): Add SHA256+MAC.
  11346. (zio_checksum_verify): Handle incomplete comparison due to MAC.
  11347. (zio_read): Handle encrypted blocks.
  11348. (zap_verify): Remove incorrect check.
  11349. (fzap_iterate): Handle non-standard fzap.
  11350. (zap_iterate): Likewise.
  11351. (zap_iterate_u64): New function.
  11352. (dnode_get_fullpath): Load keys.
  11353. * grub-core/fs/zfs/zfscrypt.c: New file.
  11354. * grub-core/lib/crypto.c (grub_crypto_cipher_close): Removed.
  11355. (grub_crypto_ecb_encrypt): Make input const.
  11356. * include/grub/crypto.h (grub_crypto_cipher_close): Inline.
  11357. (grub_crypto_ecb_encrypt): Make input const.
  11358. (GRUB_CIPHER_AES): New macro.
  11359. * include/grub/zfs/dmu.h (dmu_object_type): Add DMU_OT_DSL_KEYCHAIN.
  11360. * include/grub/zfs/dsl_dir.h (dsl_dir_phys): Add keychain.
  11361. * include/grub/zfs/spa.h (grub_zfs_endian): Moved from here ...
  11362. * include/grub/zfs/zfs.h (grub_zfs_endian): ... here. Added GURB_ZFS_
  11363. prefix. All users updated.
  11364. (grub_zfs_add_key): New proto.
  11365. (grub_zfs_decrypt): Likewise.
  11366. (grub_zfs_load_key): Likewise.
  11367. * include/grub/zfs/zio.h (zio_checksum): Add SHA256+MAC.
  11368. * util/grub-fstest.c (options): Add -K option.
  11369. (argp_parser): Likewise.
  11370. 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
  11371. Support zle compression on ZFS.
  11372. * grub-core/fs/zfs/zfs.c (zle_decompress): New function.
  11373. (decomp_table): Add zle.
  11374. * include/grub/zfs/zio.h (zio_compress): Add zle.
  11375. 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
  11376. Support BtrFS embedding.
  11377. * grub-core/fs/btrfs.c (grub_btrfs_embed) [GRUB_UTIL]: New function.
  11378. (grub_btrfs_fs) [GRUB_UTIL]: Set embed.
  11379. * include/grub/fs.h (grub_fs) [GRUB_UTIL]: New field embed.
  11380. * util/grub-setup.c (setup): Use fs embedding if available.
  11381. Add additional sanity check.
  11382. 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
  11383. * util/grub-install.in: Fix condition for config_opt.
  11384. 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
  11385. Support third redundancy strip on raidz3.
  11386. * grub-core/fs/zfs/zfs.c (recovery): Add Gauss for general case.
  11387. Return error on singularity. All users updated.
  11388. (read_device): Don't stop on 3rd failure on raidz3.
  11389. 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
  11390. Support case-insensitive ZFS subvolumes.
  11391. * grub-core/fs/zfs/zfs.c (mzap_lookup): New parameter case_insensitive.
  11392. All users updated.
  11393. (zap_hash): Likewise.
  11394. (name_cmp): New function.
  11395. (zap_leaf_array_equal): New parameter case_insensitive.
  11396. All users updated.
  11397. (zap_leaf_lookup): Likewise.
  11398. (fzap_lookup): Likewise.
  11399. (zap_lookup): Likewise.
  11400. (dnode_get_path): New parameter case_insensitive. Retrieve case
  11401. sensitiviness of a volume. All users updated.
  11402. (dnode_get_fullpath): New parameter case_insensitive.
  11403. All users updated.
  11404. (grub_zfs_dir): Set info.case_insensitiveness.
  11405. 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
  11406. Support second redundancy strip on raidz(2,3).
  11407. * grub-core/fs/zfs/zfs.c (powx): New array.
  11408. (powx_inv): Likewise.
  11409. (poly): New const.
  11410. (xor_out): New function.
  11411. (gf_mul): Likewise.
  11412. (recovery): Likewise.
  11413. (read_device): Use second redundancy strip.
  11414. 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
  11415. Use a power of generator representation of GF(256) multiplication group
  11416. to save space time and complexity.
  11417. * grub-core/disk/raid6_recover.c (raid6_table1): Removed.
  11418. (raid6_table2): Likewise.
  11419. (powx): New array.
  11420. (powx_inv): Likewise.
  11421. (poly): New const.
  11422. (grub_raid_block_mul): Replace with ...
  11423. (grub_raid_block_mulx): ...this.
  11424. (grub_raid6_init_table): Rewritten.
  11425. (grub_raid6_recover): Use power of generator representation.
  11426. 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
  11427. * grub-core/disk/raid6_recover.c (grub_raid6_recover): Get start_sector
  11428. for the right device.
  11429. 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
  11430. * include/grub/kernel.h (grub_module_header): Make type into uint32 as
  11431. expected by grub-mkimage and it's more clear since there is no implicit
  11432. padding.
  11433. 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
  11434. * grub-core/disk/raid.c (scan_devices): Don't derference NULL on whole
  11435. disk.
  11436. * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
  11437. 2011-11-03 Philipp Matthias Hahn <pmhahn@debian.org>
  11438. * util/grub-mkrescue.in: Fix handling xorriso option.
  11439. 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
  11440. * grub-core/gettext/gettext.c (grub_gettext_init_ext): Exit if local is
  11441. NULL.
  11442. 2011-11-03 crocket <crockabiscuit@gmail.com>
  11443. * util/grub.d/10_linux.in: Add Slackware initrd naming.
  11444. 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
  11445. XZ CRC64 and SHA256 support.
  11446. * Makefile.util.def (libgrubmods): Add crc64.c.
  11447. * grub-core/Makefile.core.def (crc64): New module.
  11448. * grub-core/lib/crc64.c: New file.
  11449. * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_hash)
  11450. [!GRUB_EMBED_DECOMPRESSOR]: Rename crc32_context to hash_context.
  11451. Fix the type.
  11452. (MAX_HASH_SIZE): New define.
  11453. (xz_dec) [!GRUB_EMBED_DECOMPRESSOR]: Add generic hash fields.
  11454. (dec_block) [!GRUB_EMBED_DECOMPRESSOR]: Handle non-crc32 hashes.
  11455. (index_update) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
  11456. (dec_index) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
  11457. (crc32_validate) [!GRUB_EMBED_DECOMPRESSOR]: Rename to ...
  11458. (hash_validate) [!GRUB_EMBED_DECOMPRESSOR]: ... this.
  11459. Handle non-crc32 hashes.
  11460. (hashes) [!GRUB_EMBED_DECOMPRESSOR]: New variable.
  11461. (dec_stream_header): Handle non-crc32 hashes.
  11462. (dec_stream_footer): Likewise.
  11463. (dec_block_header): Likewise.
  11464. (dec_main): Likewise.
  11465. (xz_dec_init): Likewise.
  11466. (xz_dec_reset): Likewise.
  11467. (xz_dec_end): Likewise.
  11468. * util/import_gcry.py: Add CRC64 line.
  11469. 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
  11470. * grub-core/fs/ufs.c (grub_ufs_mtime) [MODE_UFS2]: Check mtime field
  11471. as well.
  11472. 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
  11473. Make reiserfs label retrieval similar to other *_label functions.
  11474. * grub-core/fs/reiserfs.c (grub_reiserfs_superblock): New field label.
  11475. (REISERFS_MAX_LABEL_LENGTH): Removed.
  11476. (REISERFS_LABEL_OFFSET): Likewise.
  11477. (grub_reiserfs_label): Rewritten.
  11478. 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
  11479. * grub-core/fs/nilfs2.c (grub_nilfs2_mtime): Use correct superblock
  11480. field.
  11481. 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
  11482. * grub-core/fs/zfs/zfs.c (read_device): Support raidz3.
  11483. 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
  11484. * grub-core/fs/zfs/zfs.c (read_device): Add ability to sustain a single
  11485. drive failure on both raidz and raidz2.
  11486. 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
  11487. Fix RAIDZ(2) for >= 5 devices.
  11488. * grub-core/fs/zfs/zfs.c (read_device): Fix length formula. Remove
  11489. asize argument. All users updated.
  11490. 2011-11-01 Vladimir Serbinenko <phcoder@gmail.com>
  11491. Fix RAIDZ(2).
  11492. * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member ashift.
  11493. (fill_vdev_info_real): Set ashift.
  11494. (read_device): Rewrite RAIDZ part based on reverse engineering.
  11495. 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
  11496. * grub-core/fs/btrfs.c (grub_btrfs_extent_read): Add sanity check and
  11497. don't report potentially unavialiable fields in debug output.
  11498. (find_path): Fix double-free and memory leak.
  11499. 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
  11500. Read label on UFS1.
  11501. * grub-core/fs/ufs.c (grub_ufs_label): Remove MODE_UFS2 condition.
  11502. (grub_ufs_fs): Always set .label.
  11503. 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
  11504. Use shifts in UFS.
  11505. * grub-core/fs/ufs.c (UFS_LOG_BLKSZ): New macro.
  11506. (grub_ufs_data): New field log2_blksz.
  11507. (grub_ufs_read_file): Use shifts.
  11508. (grub_ufs_mount): Check block size and logarithm it.
  11509. 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
  11510. * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Fix handling of
  11511. long symlinks.
  11512. 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
  11513. Handle symlinks and long names on tar and cpio.
  11514. * grub-core/fs/cpio.c (ATTR_TYPE): New definition.
  11515. (ATTR_FILE): Likewise.
  11516. (ATTR_DIR): Likewise.
  11517. (ATTR_LNK): Likewise.
  11518. (grub_cpio_data) [MODE_USTAR]: New fields linkname and linkname_alloc.
  11519. (grub_cpio_find_file): Fill mode, handle linkname field as well as
  11520. L and K entries.
  11521. (grub_cpio_mount): Zero-fill data.
  11522. (handle_symlink): New function.
  11523. (grub_cpio_dir): Handle symlinks.
  11524. (grub_cpio_open): Likewise.
  11525. (grub_cpio_close) [MODE_USTAR]: Free linkname.
  11526. 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
  11527. Fix iso9660 filename limitations and fix memory leaks.
  11528. * grub-core/fs/iso9660.c (set_rockridge): Free sua at the end.
  11529. (grub_iso9660_iterate_dir): Fix slash handling in symlinks.
  11530. 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
  11531. Fix JFS file name length limitations.
  11532. * grub-core/fs/jfs.c (grub_jfs_inode): Fix in-place symlink length.
  11533. (grub_jfs_diropen): Fix maximum filename length.
  11534. (grub_jfs_getent): Fix filename length.
  11535. (grub_jfs_lookup_symlink): Fix size checks.
  11536. 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
  11537. * grub-core/loader/mips/linux.c (loongson_machtypes): Fix fuloong type
  11538. string.
  11539. 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
  11540. Leverage BFS implementation to read AFS.
  11541. * Makefile.util.def (libgrubmods): Add afs.c.
  11542. * grub-core/Makefile.core.def (afs): New module
  11543. * grub-core/fs/afs.c: New file.
  11544. * grub-core/fs/bfs.c [MODE_AFS]: Adapt for AFS.
  11545. 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
  11546. * grub-core/fs/bfs.c: Macroify and add some necessary sanity checks.
  11547. 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
  11548. * grub-core/fs/bfs.c: Run indent.
  11549. 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
  11550. BFS implementation based on the specification.
  11551. * grub-core/fs/bfs.c: New file.
  11552. * Makefile.util.def (libgrubmods): Add bfs.c.
  11553. * grub-core/Makefile.core.def (bfs): New module.
  11554. 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
  11555. * util/grub-fstest.c (cmd_cp): Clarify error message.
  11556. (cmd_cmp): Likewise.
  11557. 2011-10-30 Yves Blusseau <blusseau@zetam.org>
  11558. * po/POTFILES.in: Regenerate because of the removal of afs, afs_be, befs
  11559. and befs_be.
  11560. 2011-10-29 Vladimir Serbinenko <phcoder@gmail.com>
  11561. Remove afs and befs because of copyright problem.
  11562. * grub-core/fs/afs.c: Removed.
  11563. * grub-core/fs/afs_be.c: Removed.
  11564. * grub-core/fs/befs.c: Removed.
  11565. * grub-core/fs/befs_be.c: Removed.
  11566. * Makefile.util.def (libgrubkern): Remove afs, afs_be, befs and befs_be.
  11567. * grub-core/Makefile.core.def (afs): Removed.
  11568. (afs_be): Likewise.
  11569. (befs): Likewise.
  11570. (befs_be): Likewise.
  11571. 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
  11572. Prefer rockridge over Joliet.
  11573. * grub-core/fs/iso9660.c (grub_iso9660_mount): Move rockridge detection
  11574. to ...
  11575. (set_rockridge): ... here.
  11576. (grub_iso9660_mount): Check rockridge on the primary label when
  11577. discovering. Ignore Joliet if Rockridge is present.
  11578. 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
  11579. Use shifts in nilfs2.
  11580. * grub-core/fs/nilfs2.c (LOG_INODE_SIZE): New definition.
  11581. (LOG_NILFS_DAT_ENTRY_SIZE): Likewise.
  11582. (grub_nilfs2_palloc_entries_per_group): Replace with ...
  11583. (grub_nilfs2_log_palloc_entries_per_group): ... this.
  11584. (grub_nilfs2_palloc_group): Use shifts and bitmasks.
  11585. (grub_nilfs2_entries_per_block): Replaced with ...
  11586. (grub_nilfs2_log_entries_per_block_log): ... this.
  11587. (grub_nilfs2_blocks_per_group): Replaced with ...
  11588. (grub_nilfs2_blocks_per_group_log): ... this.
  11589. (grub_nilfs2_blocks_per_desc_block): Replaced with ...
  11590. (grub_nilfs2_blocks_per_desc_block_log): ... this.
  11591. (grub_nilfs2_palloc_desc_block_offset): Replaced with ...
  11592. (grub_nilfs2_palloc_desc_block_offset_log): ... this.
  11593. (grub_nilfs2_palloc_entry_offset): Replaced ...
  11594. (grub_nilfs2_palloc_entry_offset_log): ... this. Use shifts.
  11595. (grub_nilfs2_dat_translate): Use shifts.
  11596. (grub_nilfs2_read_inode): Likewise.
  11597. (GRUB_MOD_INIT): Ensure that logs are correct.
  11598. 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
  11599. Use shifts in minix filesystem.
  11600. * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use log_block_size.
  11601. (GRUB_MINIX_ZONE2SECT): Likewise.
  11602. (grub_minix_data): Replace block_size with log_block_size.
  11603. (grub_minix_read_file): Use shifts.
  11604. (grub_minix_mount): Check block size and take a logarithm.
  11605. 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
  11606. Use shifts in squash4.
  11607. * grub-core/fs/squash4.c (grub_squash_data): New field log2_blksz.
  11608. (squash_mount): Check block size and take logarithm.
  11609. (direct_read): Use shifts.
  11610. 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
  11611. Correct befs block counting logic.
  11612. * grub-core/fs/afs.c (GRUB_AFS_BLOCKS_PER_DI_RUN): Replaced with...
  11613. (GRUB_AFS_LOG_BLOCKS_PER_DI_RUN): ... this.
  11614. (GRUB_AFS_BLOCKRUN_LOG_SIZE): New definition.
  11615. (grub_afs_read_inode): Use block_shift.
  11616. (RANGE_SHIFT): New definition.
  11617. (grub_afs_read_block): Account for RANGE_SHIFT, emit errors on
  11618. unexpected conditions, use shifts and appropriate types.
  11619. (GRUB_MOD_INIT): Check the value of GRUB_AFS_BLOCKRUN_LOG_SIZE.
  11620. 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
  11621. * grub-core/disk/raid.c (scan_devices): Check partition.
  11622. * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
  11623. 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
  11624. Support BFS (befs) UUID.
  11625. * grub-core/fs/afs.c (grub_afs_inode): Make small_data zero-size.
  11626. (grub_afs_small_data_element_header): New struct.
  11627. (grub_afs_read_inode): Read complete inode. Fix ino type while on it.
  11628. (grub_afs_read_attribute) [MODE_BFS]: New function.
  11629. (grub_afs_iterate_dir): Allocate for complete inode.
  11630. (grub_afs_mount): Likewise.
  11631. (grub_afs_uuid) [MODE_BFS]: New function.
  11632. (grub_afs_fs) [MODE_BFS]: Add .uuid.
  11633. 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
  11634. * grub-core/fs/zfs/zfs.c (read_device): Silence spurious warning.
  11635. (zfs_unmount): Fix memory leak.
  11636. 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
  11637. Support NTFS reparse points.
  11638. * grub-core/fs/ntfs.c (list_file): Set symlink type when appropriate.
  11639. (symlink_descriptor): New struct.
  11640. (grub_ntfs_read_symlink): New function.
  11641. (grub_ntfs_iterate_dir): Use grub_ntfs_read_symlink.
  11642. (grub_ntfs_open): Likewise.
  11643. 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
  11644. * include/grub/ntfs.h: Add GRUB_NTFS_ prefix. All users updated.
  11645. 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
  11646. fstest xnu_uuid subcommand.
  11647. * grub-core/commands/xnu_uuid.c (libgrubkrn): Add
  11648. grub-core/commands/xnu_uuid.c.
  11649. * util/grub-fstest.c (CMD_XNU_UUID): New enum value.
  11650. (fstest): Handle xnu_uuid.
  11651. (options): Document xnu_uuid.
  11652. (argp_parser): Parse xnu_uuid.
  11653. 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
  11654. * grub-core/commands/xnu_uuid.c (grub_cmd_xnu_uuid): Support
  11655. -l argument. Add newline at the end if printing.
  11656. (GRUB_MOD_INIT): Document -l.
  11657. 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
  11658. * grub-core/fs/nilfs2.c (grub_nilfs2_uuid): Add missing field length.
  11659. 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
  11660. ZFS multi-device and version 33 support.
  11661. * Makefile.util.def (libgrubkern): Add grub-core/fs/zfs/zfsinfo.c.
  11662. * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New struct.
  11663. (grub_zfs_data): Add multidev-ice-related fields.
  11664. (zio_checksum_verify): Zero-pad printed values. Print checksum name.
  11665. (dva_get_offset): Make dva const.
  11666. (zfs_fetch_nvlist): New function.
  11667. (fill_vdev_info_real): Likewise.
  11668. (fill_vdev_info): Likewise.
  11669. (check_pool_label): Likewise.
  11670. (scan_disk): Likewise.
  11671. (scan_devices): Likewise.
  11672. (read_device): Likewise.
  11673. (read_dva): Likewise.
  11674. (zio_read_gang): Use read_dva.
  11675. (zio_read_data): Likewise.
  11676. (zap_leaf_lookup): Add missing endian conversion.
  11677. (zap_verify): Add missing endian conversion. All users updated.
  11678. (fzap_lookup): Likewise.
  11679. (fzap_iterate): Likewise.
  11680. (dnode_get_path): Handle SA bonus.
  11681. (nvlist_find_value): Make input const. All users updated.
  11682. (unmount_device): New function.
  11683. (zfs_unmount): Use unmount_device.
  11684. (zfs_mount): Use scan_disk.
  11685. (zfs_mtime): New function.
  11686. (grub_zfs_open): Handle system attributes.
  11687. (fill_fs_info): Likewise.
  11688. (grub_zfs_dir): Likewise.
  11689. (grub_zfs_fs): Add mtime.
  11690. * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add missing return.
  11691. * include/grub/zfs/sa_impl.h (SA_TYPE_OFFSET): New definition.
  11692. (SA_MTIME_OFFSET): Likewise.
  11693. (SA_SYMLINK_OFFSET): Likewise.
  11694. * include/grub/zfs/zfs.h (SPA_VERSION): Increase to 33.
  11695. * util/grub-fstest.c (CMD_ZFSINFO): New enum value.
  11696. (fstest): Support zfsinfo.
  11697. (argp_parser): Likewise.
  11698. 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
  11699. * include/grub/datetime.h (grub_datetime2unixtime): Fix off-by-one
  11700. error.
  11701. 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
  11702. ZFS fixes.
  11703. * grub-core/fs/zfs/zfs.c (fzap_iterate): Fix handling of indexes
  11704. sharing the same block. Iterate over correct number of indices.
  11705. (dnode_get_path): Handle symlinks correctly.
  11706. 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
  11707. * grub-core/fs/jfs.c (grub_jfs_sblock): Fix offset to volname.
  11708. 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
  11709. Read label on HFS+.
  11710. * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey_id): New function.
  11711. (grub_hfsplus_btree_search): Fix types.
  11712. (grub_hfsplus_label): Implement.
  11713. 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
  11714. * grub-core/fs/ntfs.c (grub_ntfs_uuid): Fix a memory leak.
  11715. 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
  11716. * grub-core/fs/fat.c (grub_fat_uuid): Make uppercase to match Linux.
  11717. 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
  11718. Fix symlink handling on iso9660.
  11719. * grub-core/fs/iso9660.c (grub_fshelp_node): Remove dir_off. Add symlink
  11720. All users updated.
  11721. (grub_iso9660_susp_iterate): Accept zero-size iterate.
  11722. (grub_iso9660_read_symlink): Moved most of code ...
  11723. (grub_iso9660_iterate_dir): ... here. Fill node->symlink.
  11724. 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
  11725. * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
  11726. Use union to avoid breaking strict-aliasing rules.
  11727. 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
  11728. Support multi-extent iso files.
  11729. * grub-core/fs/iso9660.c (grub_iso9660_data): Remove first_sector.
  11730. Add node.
  11731. (grub_fshelp_node): Revamp. All users updated.
  11732. (FLAG_*): New enum.
  11733. (read_node): New function.
  11734. (grub_iso9660_susp_iterate): Use read_node. Receive a node as argument.
  11735. All users updated.
  11736. (grub_iso9660_mount): Don't attempt to read sua when there is none.
  11737. (get_node_size): New function.
  11738. (grub_iso9660_iterate_dir): Use read_node. Agglomerate multi-extent
  11739. entries.
  11740. Fix memory leak on . and ..
  11741. (grub_iso9660_read): Use read_node.
  11742. (grub_iso9660_close): Free node.
  11743. 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
  11744. Fix tar 4G limit and handle paths containing dot.
  11745. * grub-core/fs/cpio.c (grub_cpio_data): Use grub_off_t for offsets.
  11746. (canonicalize): New function.
  11747. (grub_cpio_find_file): Use canonicalize. Store offs in
  11748. grub_disk_addr_t.
  11749. (grub_cpio_dir): Use grub_disk_addr_t.
  11750. (grub_cpio_open): Likewise.
  11751. 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
  11752. Fix handling of uncompressed blocks on squashfs and break 4G limit.
  11753. * grub-core/fs/squash4.c (grub_squash_super): Add block_size. Remove
  11754. unused flags.
  11755. (grub_squash_inode): Add long_file and block_size.
  11756. (grub_squash_cache_inode): New struct.
  11757. (grub_squash_dirent): Make types into enum.
  11758. (SQUASH_TYPE_LONG_REGULAR): New type.
  11759. (grub_squash_frag_desc): Add field size.
  11760. (SQUASH_BLOCK_FLAGS): New enum.
  11761. (grub_squash_data): Use grub_squash_cache_inode.
  11762. (grub_fshelp_node): Make ino_chunk 64-bit.
  11763. (read_chunk): Minor argument change. All users updated.
  11764. (squash_mount): Use correct le_to_cpu.
  11765. (grub_squash_open): Handle LONG_REGULAR.
  11766. (direct_read): New function.
  11767. (grub_squash_read_data): Handle blocks correctly.
  11768. 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
  11769. * grub-core/kern/disk.c (grub_disk_read_small): Fix memory leak.
  11770. 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
  11771. * grub-core/fs/romfs.c (grub_romfs_open): Add missing return.
  11772. 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
  11773. Fix 2G limit on ZFS.
  11774. * grub-core/fs/zfs/zfs.c (zio_checksum_verify): Use more appropriate
  11775. types.
  11776. (uberblock_verify): Likewise.
  11777. (dmu_read): Likewise.
  11778. (grub_zfs_read): Likewise. Remove invalid cast.
  11779. 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
  11780. * grub-core/fs/jfs.c (grub_jfs_blkno): Use more appropriate types.
  11781. (grub_jfs_blkno): Fix incorrect shift.
  11782. (grub_jfs_read_file): Use more appropriate types.
  11783. 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
  11784. Support triple indirect on minix2 and minix3.
  11785. * grub-core/fs/minix.c (grub_minix_inode) [MODE_MINIX2 || MODE_MINIX3]:
  11786. Declare triple_indir_zone.
  11787. (grub_minix_get_file_block) [MODE_MINIX2 || MODE_MINIX3]: Handle triple
  11788. indirect.
  11789. 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
  11790. Minix FS fixes.
  11791. * grub-core/fs/minix.c (GRUB_MINIX_INODE_SIZE): Size is always 32-bit.
  11792. (grub_minix_inode) [!MODE_MINIX2 && !MODE_MINIX3]: Make size 32-bit.
  11793. Rename ctime to mtime. All users updated.
  11794. (grub_minix_get_file_block): Fix types and double indirect computations.
  11795. 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
  11796. * grub-core/fs/fat.c (grub_fat_label) [MODE_EXFAT]: Set *label to 0
  11797. if no label is found.
  11798. (grub_fat_iterate_dir): Fix file size type.
  11799. (grub_fat_iterate_dir): Likewise.
  11800. 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
  11801. * grub-core/lib/reed_solomon.c (gf_invert): Declare as const and
  11802. save some space.
  11803. * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
  11804. (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
  11805. 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
  11806. * util/import_gcry.py: Automatically fix camellia.c and camellia.h.
  11807. 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
  11808. * util/import_gcry.py: Accept space between # and include.
  11809. 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
  11810. * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/longjmp.S.
  11811. 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
  11812. Fine grainely disable warnings on lexer. Remove Wno-error on it.
  11813. * grub-core/Makefile.core.def (normal): Remove -Wno-error.
  11814. * grub-core/script/lexer.c: Declare yytext_ptr to avoid having
  11815. yylex_strncpy.
  11816. * grub-core/script/yylex.l: Add fine-grained #pragma.
  11817. 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
  11818. * grub-core/lib/posix_wrap/string.h (memcpy) [GRUB_UTIL]:
  11819. New inline function.
  11820. * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy) [GRUB_UTIL]:
  11821. Likewise.
  11822. (memset) [GRUB_UTIL]: Likewise.
  11823. (memcmp) [GRUB_UTIL]: Likewise.
  11824. 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
  11825. * include/grub/misc.h (grub_memcpy): Declare grub_memcpy with static
  11826. inline function rather than a define.
  11827. 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
  11828. * util/grub-setup.c: Add missing include.
  11829. 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
  11830. * util/ieee1275/grub-ofpathname.c: Add missing include.
  11831. 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
  11832. * grub-core/kern/i386/pc/startup.S (grub_exit): Add missing zeroing-out.
  11833. * grub-core/lib/i386/reboot_trampoline.S (grub_reboot_start):
  11834. Likewise.
  11835. 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
  11836. * grub-core/io/lzopio.c (test_header): Fix incorrect memcmp instead of
  11837. grub_memcmp usage.
  11838. 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
  11839. * util/grub-install.in: Add datarootdir as per automake manual
  11840. suggestion.
  11841. * util/grub-mknetdir.in: Likewise.
  11842. 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
  11843. * util/grub.d/10_hurd.in: Add datarootdir as per automake manual
  11844. suggestion.
  11845. * util/grub.d/10_kfreebsd.in: Likewise.
  11846. * util/grub.d/10_linux.in: Likewise.
  11847. * util/grub.d/10_netbsd.in: Likewise.
  11848. * util/grub.d/10_windows.in: Likewise.
  11849. * util/grub.d/20_linux_xen.in: Likewise.
  11850. 2011-10-20 Vladimir Serbinenko <phcoder@gmail.com>
  11851. Remove redundant grub_kernel_image_size.
  11852. * grub-core/kern/i386/coreboot/init.c (grub_machine_init): Use
  11853. _edata and _start.
  11854. * grub-core/kern/i386/coreboot/startup.S: Move multiboot header after
  11855. the small code. It moves it only by few bytes but simplifies the code.
  11856. * grub-core/kern/i386/pc/init.c (grub_machine_init): Use _edata and
  11857. _start.
  11858. * grub-core/kern/i386/pc/startup.S: Use _edata and _start.
  11859. (grub_kernel_image_size): Removed.
  11860. * grub-core/kern/i386/qemu/startup.S: Use _edata and _start.
  11861. (grub_kernel_image_size): Removed.
  11862. [APPLE_CC]: Remove apple compiler support. i386-qemu port can't be
  11863. compiled with Apple toolchain.
  11864. * grub-core/kern/sparc64/ieee1275/crt0.S: Remove leftover fields.
  11865. * include/grub/i386/pc/kernel.h (grub_kernel_image_size): Removed.
  11866. * include/grub/i386/qemu/kernel.h (grub_kernel_image_size): Removed.
  11867. (grub_total_module_size): Likewise.
  11868. * include/grub/offsets.h (GRUB_KERNEL_I386_PC_KERNEL_IMAGE_SIZE):
  11869. Removed.
  11870. (GRUB_KERNEL_I386_PC_COMPRESSED_SIZE): Put it lower.
  11871. (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART): Likewise.
  11872. (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
  11873. (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Likewise.
  11874. (GRUB_KERNEL_I386_QEMU_KERNEL_IMAGE_SIZE): Removed.
  11875. (GRUB_KERNEL_SPARC64_IEEE1275_KERNEL_IMAGE_SIZE): Likewise.
  11876. (GRUB_KERNEL_SPARC64_IEEE1275_COMPRESSED_SIZE): Likewise.
  11877. * include/grub/sparc64/ieee1275/kernel.h (grub_kernel_image_size):
  11878. Removed.
  11879. (grub_total_module_size): Removed.
  11880. * util/grub-mkimage.c (image_target_desc): Remove image_size.
  11881. (image_targets): Likewise.
  11882. Set .compressed_size to no field on sparc.
  11883. (generate_image): Remove kernel_image_size handling.
  11884. 2011-10-19 Szymon Janc <szymon@janc.net.pl>
  11885. * grub-core/bus/usb/uhci.c (grub_uhci_setup_transfer): Fix possible
  11886. NULL pointer dereference.
  11887. 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
  11888. Removed unused GRUB_BOOT_VERSION. Check for kernel version is better
  11889. done with a dedicated section.
  11890. * grub-core/boot/sparc64/ieee1275/boot.S: Remove GRUB_BOOT_VERSION.
  11891. Ensure the correct position of boot_path.
  11892. * grub-core/kern/i386/efi/startup.S: Remove GRUB_BOOT_VERSION.
  11893. * grub-core/kern/i386/pc/startup.S: Likewise. Ensure correct position of
  11894. other fields.
  11895. * grub-core/kern/x86_64/efi/startup.S: Remove GRUB_BOOT_VERSION.
  11896. * include/grub/boot.h: Removed. All references removed.
  11897. * include/grub/sparc64/ieee1275/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
  11898. Removed.
  11899. (GRUB_BOOT_MACHINE_BOOT_DEVPATH): Make it lower.
  11900. 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
  11901. * util/grub-install.in: Declare IEEE1275 as able to find out the disk
  11902. name.
  11903. 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
  11904. * grub-core/kern/main.c (grub_set_prefix_and_root): Init prefix.
  11905. 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
  11906. * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
  11907. Don't add the bogus brackets.
  11908. 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
  11909. ExFAT support.
  11910. * Makefile.util.def (libgrubmods.a): Add grub-core/fs/exfat.c.
  11911. * grub-core/Makefile.core.def (exfat): New module.
  11912. * grub-core/fs/exfat.c: New file.
  11913. * grub-core/fs/fat.c (GRUB_FAT_DIR_ENTRY_SIZE): Removed.
  11914. (GRUB_FAT_ATTR_*): Make into an enum.
  11915. (GRUB_FAT_ATTR_LONG_NAME) [MODE_EXFAT]: Removed.
  11916. (GRUB_FAT_ATTR_VALID) [MODE_EXFAT]: Remove GRUB_FAT_ATTR_VOLUME_ID.
  11917. (GRUB_FAT_ATTR_VOLUME_ID) [MODE_EXFAT]: Removed.
  11918. (GRUB_FAT_MAXFILE): Removed.
  11919. (grub_exfat_bpb) [MODE_EXFAT]: New struct.
  11920. (grub_current_fat_bpb_t): New type.
  11921. (grub_fat_dir_entry) [MODE_EXFAT]: New struct.
  11922. (grub_fat_dir_node) [MODE_EXFAT]: New struct.
  11923. (grub_fat_dir_node_t): New type.
  11924. (grub_fat_data) [MODE_EXFAT]: Remove root_sector and num_root_sectors.
  11925. (fat_log2) [MODE_EXFAT]: Removed.
  11926. (grub_fat_mount): Use grub_current_fat_bpb_t. Add some sanity checks.
  11927. (grub_fat_mount) [MODE_EXFAT]: Handle ExFAT.
  11928. (grub_fat_iterate_dir) [MODE_EXFAT]: New function.
  11929. (grub_fat_find_dir) [MODE_EXFAT]: Handle ExFAT.
  11930. (grub_fat_label) [MODE_EXFAT]: New function.
  11931. (grub_fat_fs) [MODE_EXFAT]: Set name to "exfat" and
  11932. reserved_first_sector to 0.
  11933. 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
  11934. Move grub_reboot out of the kernel.
  11935. * grub-core/Makefile.core.def (reboot): Add platform-specific files.
  11936. * grub-core/kern/efi/efi.c (grub_reboot): Moved to ...
  11937. * grub-core/lib/efi/reboot.c: ... here.
  11938. * grub-core/kern/i386/efi/startup.S: Remove including of realmode.S.
  11939. * grub-core/kern/i386/ieee1275/startup.S: Likewise.
  11940. * grub-core/kern/i386/pc/startup.S (grub_exit): Inline cold_reboot.
  11941. * grub-core/kern/i386/realmode.S (grub_reboot): Moved to...
  11942. * grub-core/lib/i386/reboot_trampoline.S: ... here.
  11943. * grub-core/kern/ieee1275/openfw.c (grub_reboot): Moved to...
  11944. * grub-core/lib/ieee1275/reboot.c: ... here.
  11945. * grub-core/kern/mips/arc/init.c (grub_reboot): Moved to...
  11946. * grub-core/lib/mips/arc/reboot.c: ... here.
  11947. * grub-core/kern/mips/loongson/init.c (grub_reboot): Moved to...
  11948. * grub-core/lib/mips/loongson/reboot.c: ...here.
  11949. * grub-core/kern/mips/qemu_mips/init.c (grub_reboot): Moved to...
  11950. * grub-core/lib/mips/qemu_mips/reboot.c: ... here.
  11951. * include/grub/emu/misc.h (grub_reboot): New function declaration.
  11952. * include/grub/i386/reboot.h: New file.
  11953. * include/grub/mips/loongson/ec.h: Fix includes.
  11954. * include/grub/mips/qemu_mips/kernel.h (grub_reboot): Removed.
  11955. * include/grub/misc.h (grub_reboot): Don't mark as kernel function.
  11956. * grub-core/lib/i386/reboot.c: New file.
  11957. 2011-10-18 Vladimir Serbinenko <phcoder@gmail.com>
  11958. Make grub_prefix into module to fix the arbitrary limit and save
  11959. some space.
  11960. * grub-core/kern/emu/main.c (grub_prefix): Removed.
  11961. * grub-core/kern/i386/coreboot/startup.S (grub_prefix): Likewise.
  11962. * grub-core/kern/i386/efi/startup.S (grub_prefix): Likewise.
  11963. * grub-core/kern/i386/ieee1275/startup.S (grub_prefix): Likewise.
  11964. * grub-core/kern/i386/pc/startup.S (grub_prefix): Likewise.
  11965. * grub-core/kern/i386/qemu/startup.S (grub_prefix): Likewise.
  11966. * grub-core/kern/ia64/efi/startup.S (grub_prefix): Likewise.
  11967. * grub-core/kern/mips/startup.S (grub_prefix): Likewise.
  11968. * grub-core/kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
  11969. * grub-core/kern/sparc64/ieee1275/crt0.S (grub_prefix): Likewise.
  11970. * grub-core/kern/x86_64/efi/startup.S (grub_prefix): Likewise.
  11971. * include/grub/ia64/efi/kernel.h: Removed.
  11972. * include/grub/kernel.h: New module type OBJ_TYPE_PREFIX.
  11973. (grub_prefix): Removed.
  11974. * include/grub/offsets.h (GRUB_KERNEL_I386_PC_PREFIX): Removed.
  11975. (GRUB_KERNEL_I386_PC_PREFIX_END): Likewise.
  11976. (GRUB_KERNEL_I386_QEMU_PREFIX): Likewise.
  11977. (GRUB_KERNEL_I386_QEMU_PREFIX_END): Likewise.
  11978. (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX): Likewise.
  11979. (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX_END): Likewise.
  11980. (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX): Likewise.
  11981. (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX_END): Likewise.
  11982. (GRUB_KERNEL_MIPS_LOONGSON_PREFIX): Likewise.
  11983. (GRUB_KERNEL_MIPS_LOONGSON_PREFIX_END): Likewise.
  11984. (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
  11985. (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
  11986. (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
  11987. (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
  11988. (GRUB_KERNEL_I386_EFI_PREFIX): Likewise.
  11989. (GRUB_KERNEL_I386_EFI_PREFIX_END): Likewise.
  11990. (GRUB_KERNEL_IA64_EFI_PREFIX): Likewise.
  11991. (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
  11992. (GRUB_KERNEL_X86_64_EFI_PREFIX): Likewise.
  11993. (GRUB_KERNEL_X86_64_EFI_PREFIX_END): Likewise.
  11994. (GRUB_KERNEL_I386_COREBOOT_PREFIX): Likewise.
  11995. (GRUB_KERNEL_I386_COREBOOT_PREFIX_END): Likewise.
  11996. (GRUB_KERNEL_I386_MULTIBOOT_PREFIX): Likewise.
  11997. (GRUB_KERNEL_I386_MULTIBOOT_PREFIX_END): Likewise.
  11998. (GRUB_KERNEL_I386_IEEE1275_PREFIX): Likewise.
  11999. (GRUB_KERNEL_I386_IEEE1275_PREFIX_END): Likewise.
  12000. (GRUB_KERNEL_MACHINE_PREFIX): Likewise.
  12001. (GRUB_KERNEL_MACHINE_PREFIX_END): Likewise.
  12002. * grub-core/kern/main.c (grub_set_prefix_and_root): Retrieve grub_prefix
  12003. from module.
  12004. * util/grub-mkimage.c (image_target_desc): Removed prefix and
  12005. prefix_end.
  12006. (image_targets): Likewise.
  12007. (generate_image): Put prefix as a module.
  12008. 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
  12009. Replace grub_module_iterate with FOR_MODULES.
  12010. * grub-core/disk/memdisk.c (GRUB_MOD_INIT): Switched to new interface.
  12011. * grub-core/kern/efi/efi.c (grub_arch_modules_addr): Renamed to...
  12012. (grub_efi_modules_addr): ...this.
  12013. * grub-core/kern/efi/init.c (grub_modbase): New variable.
  12014. (grub_efi_init): Set grub_modbase.
  12015. * grub-core/kern/emu/main.c (grub_arch_modules_addr): Removed.
  12016. (grub_modbase): New variable.
  12017. * grub-core/kern/i386/coreboot/init.c (grub_arch_modules_addr): Removed.
  12018. (grub_modbase): New variable.
  12019. (grub_machine_init): Set grub_modbase.
  12020. * grub-core/kern/i386/pc/init.c (grub_arch_modules_addr): Removed.
  12021. (grub_modbase): New variable.
  12022. (grub_machine_init): Set grub_modbase.
  12023. * grub-core/kern/ieee1275/init.c (grub_arch_modules_addr): Removed.
  12024. (grub_modbase): New variable.
  12025. (grub_machine_init): Set grub_modbase.
  12026. * grub-core/kern/main.c (grub_module_iterate): Remove.
  12027. (grub_modules_get_end): Use grub_modbase.
  12028. (grub_load_modules): Use FOR_MODULES.
  12029. (grub_load_config): Likewise.
  12030. * grub-core/kern/mips/arc/init.c (grub_arch_modules_addr): Removed.
  12031. (grub_modbase): New variable.
  12032. (grub_machine_init): Set grub_modbase.
  12033. * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): Removed.
  12034. (grub_modbase): New variable.
  12035. (grub_machine_init): Set grub_modbase.
  12036. * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr):
  12037. Removed.
  12038. (grub_modbase): New variable.
  12039. (grub_machine_init): Set grub_modbase.
  12040. * include/grub/efi/efi.h (grub_efi_modules_addr): New declaration.
  12041. * include/grub/kernel.h (grub_arch_modules_addr): Removed.
  12042. (grub_module_iterate): Likewise.
  12043. (grub_modbase): New variable declaration.
  12044. (FOR_MODULES): New macro.
  12045. 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
  12046. * configure.ac: Check for __ctzdi2 and __ctzsi2.
  12047. * include/grub/libgcc.h: Include __ctzdi2 and __ctzsi2 if present.
  12048. 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
  12049. Fix few obvious type discrepancies.
  12050. * grub-core/fs/affs.c (grub_affs_read_file): Use grub_off_t for offset.
  12051. * grub-core/fs/afs.c (grub_afs_read_file): Likewise.
  12052. * grub-core/fs/fshelp.c (grub_fshelp_find_file): Remove leftover
  12053. variable.
  12054. * grub-core/fs/hfs.c (grub_hfs_read_file): Use grub_off_t for offset
  12055. and connected types.
  12056. * grub-core/fs/nilfs2.c (grub_nilfs2_read_file): Use grub_off_t for
  12057. offset.
  12058. (grub_nilfs2_iterate_dir): Use grub_off_t for fpos.
  12059. * grub-core/fs/sfs.c (grub_sfs_read_file): Use grub_off_t for offset.
  12060. * grub-core/fs/ufs.c (grub_ufs_read_file): Use grub_off_t for offset
  12061. and connected types.
  12062. 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
  12063. Fix python 3.x incompatibilities.
  12064. * gentpl.py: Put brackets around print strings.
  12065. * util/import_gcry.py: Open explicitly as utf-8.
  12066. Use in instead of has_key.
  12067. 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
  12068. * grub-core/fs/xfs.c (grub_xfs_inode): New field fork_offset.
  12069. (GRUB_XFS_INO_AGBITS): Make into inline function.
  12070. (GRUB_XFS_INO_INOINAG): Likewise.
  12071. (GRUB_XFS_INO_AG): Likewise.
  12072. (GRUB_XFS_FSB_TO_BLOCK): Likewise.
  12073. (GRUB_XFS_EXTENT_OFFSET): Likewise.
  12074. (GRUB_XFS_EXTENT_BLOCK): Likewise.
  12075. (GRUB_XFS_EXTENT_SIZE): Likewise.
  12076. (GRUB_XFS_ROUND_TO_DIRENT): Likewise.
  12077. (GRUB_XFS_NEXT_DIRENT): Likewise.
  12078. (grub_xfs_read_block): Rewrite the btree parsing. Fixes invalid BMAP.
  12079. (grub_xfs_read_file): Fix offset type.
  12080. 2011-10-15 Robert Millan <rmh@gnu.org>
  12081. * util/getroot.c (grub_util_get_grub_dev): Fix OS selection #ifdefs.
  12082. 2011-10-15 Robert Millan <rmh@gnu.org>
  12083. Fix build problem on FreeBSD and GNU/kFreeBSD.
  12084. * util/getroot.c [__FreeBSD_kernel__]: Include `<sys/mount.h>'.
  12085. 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
  12086. Fix overflow with >2GiB file on HFS+. >4GiB wasn't tested.
  12087. * grub-core/fs/hfsplus.c (grub_hfsplus_btree): Use more appropriate
  12088. types.
  12089. (grub_hfsplus_btree_recoffset): Likewise.
  12090. (grub_hfsplus_btree_recptr): Likewise.
  12091. (grub_hfsplus_find_block): Likewise.
  12092. (grub_hfsplus_btree_search): Likewise.
  12093. (grub_hfsplus_read_block): Likewise.
  12094. (grub_hfsplus_read_file): Likewise.
  12095. (grub_hfsplus_mount): Likewise.
  12096. (grub_hfsplus_btree_iterate_node): Likewise.
  12097. (grub_hfsplus_btree_search): Likewise.
  12098. (grub_hfsplus_iterate_dir): Likewise.
  12099. (grub_hfsplus_read): A small code simplification.
  12100. 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
  12101. * grub-core/kern/emu/hostdisk.c
  12102. (convert_system_partition_to_system_disk): Don't assume that children
  12103. of mapper nodes are mapper nodes.
  12104. 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
  12105. * grub-core/lib/posix_wrap/ctype.h (isxdigit): Use grub_isxdigit.
  12106. * include/grub/misc.h (grub_isxdigit): New function.
  12107. * grub-core/video/colors.c (my_isxdigit): Removed. All users
  12108. switched to grub_isxdigit.
  12109. * grub-core/term/serial.c (grub_serial_find): Fix in case of port
  12110. number starting with a letter.
  12111. 2011-10-09 Robert Millan <rmh@gnu.org>
  12112. LVM support for FreeBSD and GNU/kFreeBSD.
  12113. * util/lvm.c (grub_util_lvm_isvolume): Enable on FreeBSD and
  12114. GNU/kFreeBSD.
  12115. (LVM_DEV_MAPPER_STRING): Move from here ...
  12116. * include/grub/util/lvm.h (LVM_DEV_MAPPER_STRING): ... to here.
  12117. * util/getroot.c: Include `<grub/util/lvm.h>'.
  12118. (grub_util_get_dev_abstraction): Enable
  12119. grub_util_biosdisk_is_present() on FreeBSD and GNU/kFreeBSD.
  12120. Check for LVM abstraction on FreeBSD and GNU/kFreeBSD.
  12121. (grub_util_get_grub_dev): Replace "/dev/mapper/" with
  12122. `LVM_DEV_MAPPER_STRING'. Enable LVM and mdRAID only on platforms that
  12123. support it.
  12124. * util/grub-setup.c (main): Check for LVM also on FreeBSD and
  12125. GNU/kFreeBSD.
  12126. * util/grub.d/10_kfreebsd.in: Load `geom_linux_lvm' kernel module
  12127. when LVM abstraction is required for ${GRUB_DEVICE}.
  12128. 2011-10-06 Szymon Janc <szymon@janc.net.pl>
  12129. Add support for LZO compression in GRUB:
  12130. - import of minilzo library,
  12131. - LZO decompression for btrfs,
  12132. - lzop files decompression.
  12133. * grub-core/io/lzopio.c: New file.
  12134. * grub-core/lib/adler32.c: Likewise.
  12135. * grub-core/lib/minilzo/lzoconf.h: Likewise.
  12136. * grub-core/lib/minilzo/lzodefs.h: Likewise.
  12137. * grub-core/lib/minilzo/minilzo.c: Likewise.
  12138. * grub-core/lib/minilzo/minilzo.h: Likewise.
  12139. * Makefile.util.def (libgrubmods.a): Add grub-core/io/lzopio.c,
  12140. grub-core/lib/adler32.c, grub-core/io/lzopio.c,
  12141. grub-core/lib/minilzo/minilzo.c to common.
  12142. * Makefile.util.def (libgrubmods.a): Add flags required by minilzo to
  12143. cflags in cppflags.
  12144. * grub-core/Makefile.core.def (btrfs): Likewise.
  12145. * grub-core/Makefile.core.def (lzopio): New module.
  12146. (adler32): Likewise.
  12147. * grub-core/fs/btrfs.c: Include minilzo.h.
  12148. (GRUB_BTRFS_COMPRESSION_LZO): New define.
  12149. (GRUB_BTRFS_LZO_BLOCK_SIZE): Likewise.
  12150. (GRUB_BTRFS_LZO_BLOCK_MAX_CSIZE): Likewise.
  12151. (grub_btrfs_lzo_decompress): New function.
  12152. (grub_btrfs_extent_read): Add support for LZO compression type.
  12153. * include/grub/types.h (GRUB_UCHAR_MAX): New define.
  12154. (GRUB_USHRT_MAX): Likewise.
  12155. (GRUB_UINT_MAX): Likewise.
  12156. * grub-core/lib/posix_wrap/limits.h (USHRT_MAX): Likewise.
  12157. (UINT_MAX): Likewise.
  12158. (CHAR_BIT): Likewise.
  12159. * grub-core/lib/posix_wrap/sys/types.h (ULONG_MAX): Moved to
  12160. grub-core/lib/posix_wrap/limits.h
  12161. (UCHAR_MAX): Likewise.
  12162. * include/grub/file.h (grub_file_filter_id): New compression filter
  12163. GRUB_FILE_FILTER_LZOPIO.
  12164. * include/grub/file.h (grub_file_filter_id): Set
  12165. GRUB_FILE_FILTER_LZOPIO as GRUB_FILE_FILTER_COMPRESSION_LAST.
  12166. * include/grub/types.h (grub_get_unaligned16): New function.
  12167. (grub_get_unaligned32): Likewise.
  12168. (grub_get_unaligned64): Likewise.
  12169. * util/import_gcry.py (cryptolist): Add adler32.
  12170. 2011-10-05 Vladimir Serbinenko <phcoder@gmail.com>
  12171. * grub-core/Makefile.core.def: Eliminate rarely used emu_condition. This
  12172. in perspective decreases the complexity of build system and fixes
  12173. compilation right now.
  12174. 2011-10-01 Ales Nesrsta <starous@volny.cz>
  12175. * grub-core/bus/usb/uhci.c: Changes made by Rock Cui - thanks!
  12176. (fixed problem related to using UHCI with coreboot).
  12177. 2011-08-25 BVK Chaitanya <bvk.groups@gmail.com>
  12178. * gentpl.py: Use Autogen macros so that the output template file
  12179. (Makefile.tpl) size is reduced.
  12180. 2011-09-29 Mads Kiilerich <mads@kiilerich.com>
  12181. * grub-core/Makefile.core.def (kernel): Add kern/i386/int.S to
  12182. extra_dist.
  12183. 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
  12184. * util/misc.c (grub_util_get_disk_size) [__MINGW32__]: Strip trailing
  12185. slashes on PHYSICALDRIVE%d paths when making Windows CreateFile calls.
  12186. 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
  12187. * grub-core/kern/emu/misc.c (canonicalize_file_name) [__MINGW32__]: Use
  12188. _fullpath.
  12189. 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
  12190. Remove extra declaration of sleep for mingw32.
  12191. * util/misc.c (sleep) [__MINGW32__]: Removed.
  12192. * include/grub/util/misc.h (sleep) [__MINGW32__]: Likewise.
  12193. 2011-09-28 Grégoire Sutre <gregoire.sutre@gmail.com>
  12194. * include/grub/bsdlabel.h (grub_partition_bsd_disk_label): Add fields
  12195. type and packname.
  12196. * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK):
  12197. Resurrected.
  12198. (NETBSD_BTINFO_BOOTWEDGE): New definition.
  12199. (grub_netbsd_btinfo_bootwedge): New struct.
  12200. * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
  12201. New function.
  12202. (grub_cmd_netbsd): Call grub_netbsd_add_boot_disk_and_wedge.
  12203. 2011-09-28 Thomas Haller <thomas.haller@fen-net.de>
  12204. * grub-core/loader/multiboot_elfxx.c (Elf_Shdr): Set according to
  12205. loader.
  12206. 2011-09-28 Andreas Born <futur.andy@googlemail.com>
  12207. Fix incorrect identifiers in bash-completion.
  12208. * util/bash-completion.d/grub-completion.bash.in
  12209. (_grub_mkpasswd-pbkdf2): Rename to ...
  12210. (_grub_mkpasswd_pbkdf2): ... this. All users updated.
  12211. (_grub_script-check): Rename to ...
  12212. (_grub_script_check): ... this. All users updated.
  12213. 2011-09-28 Vladimir Serbinenko <phcoder@gmail.com>
  12214. * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
  12215. Return 0 if disk isn't biosdisk.
  12216. 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
  12217. * Makefile.util.def (grub-mkrelpath): Add LIBUTIL for getrawpartition(3)
  12218. on NetBSD.
  12219. * Makefile.util.def (grub-fstest): Likewise.
  12220. 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
  12221. * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__NetBSD__]:
  12222. Get sector size from disk label.
  12223. 2011-09-05 Colin Watson <cjwatson@ubuntu.com>
  12224. * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Return 1 for
  12225. */README* as well as README*.
  12226. Reported by: Axel Beckert.
  12227. 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
  12228. * grub-core/kern/mips/loongson/init.c (grub_machine_init): Handle the
  12229. case of less than 256 MiB of RAM.
  12230. 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
  12231. * grub-core/commands/wildcard.c (make_regex): Handle @.
  12232. 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
  12233. * util/grub-install.in: Move cryptodisk logic to appropriate place.
  12234. 2011-08-21 Szymon Janc <szymon@janc.net.pl>
  12235. * acinclude.m4: Use AC_LANG_PROGRAM macro to generate source code for
  12236. AC_LANG_CONFTEST macros.
  12237. 2011-08-20 Szymon Janc <szymon@janc.net.pl>
  12238. Add grub-fstest option to uncompress data for commands.
  12239. * util/grub-fstest.c (uncompress): New var.
  12240. (options): New option -u.
  12241. 2011-08-20 Szymon Janc <szymon@janc.net.pl>
  12242. * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
  12243. GRUB_VIDEO_DRIVER_RADEON_FULOONG2E to switch case statement.
  12244. 2011-08-20 Szymon Janc <szymon@janc.net.pl>
  12245. * grub-core/io/gzio.c (grub_gzio_open): Always return original io if
  12246. file type was not recognized correctly (not gzip or corrupted).
  12247. 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
  12248. * grub-core/kern/mips/loongson/init.c (grub_reboot): Reboot Fuloong.
  12249. * include/grub/cs5536.h (GRUB_CS5536_MSR_DIVIL_RESET): New definition.
  12250. 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
  12251. * grub-core/Makefile.core.def (kernel): Add video/radeon_fuloong2e.c on
  12252. loongson.
  12253. * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
  12254. video_radeon_fuloong2e.
  12255. * grub-core/video/radeon_fuloong2e.c: New file.
  12256. * include/grub/video.h (grub_video_id_t): Add new ID
  12257. GRUB_VIDEO_DRIVER_RADEON_FULOONG2E.
  12258. 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
  12259. * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_COP0_PRID): New
  12260. define.
  12261. * grub-core/kern/mips/loongson/init.c (grub_machine_init): Check
  12262. that PRID matches the detected subplatform and reset the subplatform
  12263. if it doesn't.
  12264. 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
  12265. * grub-core/kern/misc.c (grub_vprintf): Fix a bug on malloc failure.
  12266. 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
  12267. Fix PCI iterating on functions >= 4.
  12268. * grub-core/bus/pci.c (grub_pci_iterate): Remove useless ghost skipping.
  12269. * include/grub/mips/loongson/pci.h (GRUB_LOONGSON_OHCI_GHOST_FUNCTION):
  12270. Removed.
  12271. (GRUB_LOONGSON_EHCI_GHOST_FUNCTION): Likewise.
  12272. (grub_pci_read): Fix bitmask.
  12273. (grub_pci_read_word): Likewise.
  12274. (grub_pci_read_byte): Likewise.
  12275. (grub_pci_write): Likewise.
  12276. (grub_pci_write_word): Likewise.
  12277. (grub_pci_write_byte): Likewise.
  12278. 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
  12279. * configure.ac: Don't impose march=loongson2f on loongson platform. (It
  12280. can still be specified in TARGET_CFLAGS)
  12281. 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
  12282. Rename Fuloong into Fuloong 2F. Add new ID for Fuloong2E.
  12283. * grub-core/Makefile.core.def (fwstart_fuloong): Rename fwstart_fuloong
  12284. into fwstart_fuloong2f. Use boot/mips/loongson/fuloong2f.S.
  12285. * grub-core/boot/mips/loongson/fuloong.S: Rename to ...
  12286. * grub-core/boot/mips/loongson/fuloong2f.S: ... this.
  12287. (FULOONG): Rename to ...
  12288. (FULOONG2F): ... this. All users updated.
  12289. * grub-core/boot/mips/startup_raw.S (machtype_fuloong_str): Rename to
  12290. (machtype_fuloong2f_str): ... this.
  12291. (machtype_fuloong2e_str): New string.
  12292. Check for machtype_fuloong2e_str.
  12293. * grub-core/loader/mips/linux.c (loongson_machtypes)
  12294. [GRUB_MACHINE_MIPS_LOONGSON]: Add GRUB_ARCH_MACHINE_FULOONG2E.
  12295. * grub-core/term/serial.c (loongson_defserial)
  12296. [GRUB_MACHINE_MIPS_LOONGSON]: New array.
  12297. (grub_serial_register) [GRUB_MACHINE_MIPS_LOONGSON]: Use
  12298. loongson_defserial.
  12299. * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_FULOONG):
  12300. Rename to ...
  12301. (GRUB_ARCH_MACHINE_FULOONG2F): ... this.
  12302. (GRUB_ARCH_MACHINE_FULOONG2E): New const.
  12303. * util/grub-mkimage.c (image_target_desc): Rename IMAGE_FULOONG_FLASH
  12304. to IMAGE_FULOONG2F_FLASH. All users updated.
  12305. (image_targets): Rename images.
  12306. * util/grub-mkstandalone.in: Accept fuloong2f and fuloong2e.
  12307. 2011-08-19 Szymon Janc <szymon@janc.net.pl>
  12308. Make enable of disk cache statistics code configurable.
  12309. * configure.ac: --enable-cache-stats added.
  12310. * config.h.in (DISK_CACHE_STATS): New define.
  12311. * grub-core/Makefile.core.def (cacheinfo): New command.
  12312. * include/grub/disk.h(grub_disk_cache_get_performance): New function.
  12313. * grub-core/commands/cacheinfo.c: New file.
  12314. * grub-core/commands/minicmd.c (grub_rescue_cmd_info): Updated and
  12315. moved to cacheinfo.c.
  12316. * grub-core/kern/disk.c: Use DISK_CACHE_STATS to disable disk cache
  12317. debug code.
  12318. * include/grub/disk.h: Likewise.
  12319. 2011-08-19 Szymon Janc <szymon@janc.net.pl>
  12320. * Makefile.am (AUTOMAKE_OPTIONS): = Added -Wno-portability flag.
  12321. * grub-core/Makefile.am: Likewise.
  12322. 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
  12323. * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_iterate): Skip with
  12324. non-zero pull.
  12325. 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
  12326. * grub-core/fs/jfs.c (grub_jfs_read_file): New parameter ino.
  12327. All users updated.
  12328. (grub_jfs_lookup_symlink): Use correct starting inode.
  12329. 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
  12330. * util/grub-setup.c (main): Add missing gcry initialisation.
  12331. 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
  12332. Don't accept text modes on EFI when booting Linux.
  12333. * grub-core/loader/i386/linux.c (ACCEPTS_PURE_TEXT): New define.
  12334. (grub_linux_boot) [!ACCEPTS_PURE_TEXT]: Restrict to graphics modes.
  12335. 2011-08-15 Mario Limonciello <mario_limonciello@dell.com>
  12336. 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
  12337. * util/grub-probe.c (probe): Canonicalise the path argument, fixing
  12338. use of "/path/.." as in grub-install for EFI as well as handling
  12339. symlinks correctly.
  12340. Fixes Debian bug #637768.
  12341. 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
  12342. * util/grub-probe.c: Remove duplicate #include.
  12343. 2011-08-10 Robert Millan <rmh@gnu.org>
  12344. Detect LSI MegaRAID SAS (`mfi') devices on GNU/kFreeBSD.
  12345. * util/deviceiter.c [__FreeBSD_kernel__] (get_mfi_disk_name): New
  12346. function.
  12347. [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for mfi
  12348. (/dev/mfid[0-9]+) devices using get_mfi_disk_name().
  12349. 2011-08-03 Robert Millan <rmh@gnu.org>
  12350. * include/grub/zfs/zap_leaf.h (typedef union zap_leaf_chunk): Mark
  12351. la_array as packed.
  12352. Reported by: Zachary Bedell
  12353. 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
  12354. * configure.ac: The Loongson port requires grub-mkfont due to its
  12355. use of -DUSE_ASCII_FAILBACK. Raise an error if it is not going to
  12356. be built.
  12357. 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
  12358. * util/grub-install.in: Don't source grub-mkconfig_lib until after
  12359. processing arguments (otherwise help2man fails when GRUB has not yet
  12360. been installed).
  12361. 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
  12362. New script grub-mkstandalone.
  12363. * Makefile.util.def (grub-mkstandalone): New script.
  12364. * docs/man/grub-mkstandalone.h2m: New file.
  12365. * util/grub-mkstandalone.in: Likewise.
  12366. 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
  12367. Support ATA disks with 4K sectors.
  12368. * include/grub/ata.h (grub_ata): New member log_sector_size.
  12369. * grub-core/disk/ata.c (grub_ata_dumpinfo): Show sector size.
  12370. (grub_ata_identify): Read sector size.
  12371. (grub_ata_readwrite): Use log_sector_size rather than hardcoded value.
  12372. 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
  12373. * util/grub-install.in: Don't use uhci outside of x86.
  12374. 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
  12375. * util/grub-mkrescue.in: Add missing quotes.
  12376. 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
  12377. * grub-core/normal/menu.c (grub_menu_execute_entry): Fix NULL
  12378. dereference.
  12379. 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
  12380. * grub-core/disk/pata.c (grub_pata_readwrite): Add missing wait.
  12381. 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
  12382. * include/grub/video.h: add missing EXPORT_FUND on
  12383. grub_video_edid_checksum and grub_video_edid_preferred_mode.
  12384. 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
  12385. * include/grub/mips/kernel.h: Fix define conflict.
  12386. 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
  12387. * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]: Flush
  12388. all four ways.
  12389. 2011-07-21 Colin Watson <cjwatson@ubuntu.com>
  12390. Preferred resolution detection for VBE.
  12391. * grub-core/video/video.c (grub_video_edid_checksum): New function.
  12392. (grub_video_edid_preferred_mode): Likewise. Try EDID followed by
  12393. the Flat Panel extension, in line with the X.org VESA driver.
  12394. * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_flat_panel_info):
  12395. New function.
  12396. (grub_vbe_bios_get_ddc_capabilities): Likewise.
  12397. (grub_vbe_bios_read_edid): Likewise.
  12398. (grub_vbe_get_preferred_mode): Likewise.
  12399. (grub_video_vbe_setup): When the mode is "auto", try to get the
  12400. preferred mode from VBE, and use the largest mode that is no larger
  12401. than the preferred mode (some BIOSes expose a preferred mode that is
  12402. not in their mode list!). If this fails, fall back to 640x480 as a
  12403. safe conservative choice.
  12404. (grub_video_vbe_get_edid): New function.
  12405. (grub_video_vbe_adapter): Add get_edid.
  12406. * include/grub/video.h (struct grub_vbe_edid_info): New structure.
  12407. (struct grub_video_adapter): Add get_edid.
  12408. (grub_video_edid_checksum): Add prototype.
  12409. (grub_video_edid_preferred_mode): Likewise.
  12410. * include/grub/i386/pc/vbe.h (struct grub_vbe_flat_panel_info): New
  12411. structure.
  12412. * grub-core/commands/videoinfo.c (print_edid): New function.
  12413. (grub_cmd_videoinfo): Print EDID if available.
  12414. * util/grub.d/00_header.in (GRUB_GFXMODE): Default to "auto". This
  12415. is more appropriate on a wider range of platforms than 640x480.
  12416. * docs/grub.texi (Simple configuration): Update GRUB_GFXMODE
  12417. documentation.
  12418. 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
  12419. * util/grub-install.in: Recognize ESP mounted at /boot/EFI.
  12420. 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
  12421. * po/POTFILES.in: Regenerate.
  12422. 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
  12423. * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix
  12424. incorrect memory usage.
  12425. 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
  12426. * util/grub-install.in: Source grub-mkconfig_lib.
  12427. 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
  12428. Remove getroot.c from core on emu platform.
  12429. * grub-core/Makefile.core.def (kernel): Remove kern/emu/getroot.c and
  12430. kern/emu/raid.c.
  12431. * grub-core/kern/emu/main.c (main): Don't try to guess root device. It's
  12432. useless.
  12433. * grub-core/kern/emu/misc.c (get_win32_path): Moved from here...
  12434. * util/getroot.c (get_win32_path): ... here.
  12435. * grub-core/kern/emu/misc.c (fini_libzfs): Moved from here...
  12436. * util/getroot.c (fini_libzfs): ... here.
  12437. * grub-core/kern/emu/misc.c (grub_get_libzfs_handle): Moved from here...
  12438. * util/getroot.c (grub_get_libzfs_handle): ... here.
  12439. * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir):
  12440. Moved from here...
  12441. * util/getroot.c (grub_find_zpool_from_dir): ... here.
  12442. * grub-core/kern/emu/misc.c
  12443. (grub_make_system_path_relative_to_its_root): Moved from here...
  12444. * util/getroot.c (grub_make_system_path_relative_to_its_root): ... here.
  12445. * grub-core/kern/emu/getroot.c: Moved from here ...
  12446. * util/getroot.c: ... here. All users updated.
  12447. * grub-core/kern/emu/raid.c: Moved from here ...
  12448. * util/raid.c: ... here. All users updated.
  12449. 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
  12450. * po/POTFILES.in: Regenerate.
  12451. 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
  12452. Fix compilation on GNU/Linux.
  12453. * grub-core/kern/emu/getroot.c (grub_util_pull_device) [!FreeBSD]:
  12454. Disable geli.
  12455. (grub_util_get_grub_dev) [!FreeBSD]: Likewise.
  12456. (grub_util_pull_device) [HAVE_DEVICE_MAPPER]: Fix const and func name.
  12457. * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Fix proto.
  12458. 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
  12459. 2011-07-07 Michael Gorven <michael@gorven.za.net>
  12460. 2011-07-07 Clemens Fruhwirth <clemens@endorphin.org>
  12461. LUKS and GELI support.
  12462. * Makefile.util.def (libgrubkern.a): Add grub-core/lib/crypto.c,
  12463. grub-core/disk/luks.c, grub-core/disk/geli.c,
  12464. grub-core/disk/cryptodisk.c, grub-core/disk/AFSplitter.c,
  12465. grub-core/lib/pbkdf2.c, grub-core/commands/extcmd.c,
  12466. grub-core/lib/arg.c.
  12467. (libgrubmods.a): Remove gcrypts cflags and cppflags.
  12468. Remove grub-core/commands/extcmd.c, grub-core/lib/arg.c,
  12469. grub-core/lib/crypto.c, grub-core/lib/libgcrypt-grub/cipher/sha512.c,
  12470. grub-core/lib/libgcrypt-grub/cipher/crc.c and grub-core/lib/pbkdf2.c.
  12471. (grub-bin2h): Add libgcry.a.
  12472. (grub-mkimage): Likewise.
  12473. (grub-mkrelpath): Likewise.
  12474. (grub-script-check): Likewise.
  12475. (grub-editenv): Likewise.
  12476. (grub-mkpasswd-pbkdf2): Likewise.
  12477. (grub-pe2elf): Likewise.
  12478. (grub-fstest): Likewise.
  12479. (grub-mkfont): Likewise.
  12480. (grub-mkdevicemap): Likewise.
  12481. (grub-probe): Likewise.
  12482. (grub-ofpath): Likewise.
  12483. (grub-mklayout): Likewise.
  12484. (example_unit_test): Likewise.
  12485. (grub-menulst2cfg): Likewise.
  12486. * autogen.sh (UTIL_DEFS): Add Makefile.utilgcry.def.
  12487. * grub-core/Makefile.core.def (cryptodisk): New module.
  12488. (luks): Likewise.
  12489. (geli): Likewise.
  12490. * grub-core/disk/AFSplitter.c: New file.
  12491. * grub-core/disk/cryptodisk.c: Likewise.
  12492. * grub-core/disk/geli.c: Likewise.
  12493. * grub-core/disk/luks.c: Likewise.
  12494. * grub-core/kern/emu/getroot.c (get_dm_uuid): New function based on
  12495. grub_util_is_lvm.
  12496. (grub_util_get_dm_abstraction): New function.
  12497. (grub_util_follow_gpart_up): Likewise.
  12498. (grub_util_get_geom_abstraction): Likewise.
  12499. (grub_util_get_dev_abstraction): Use new functions.
  12500. (grub_util_pull_device): Pull GELI and LUKS.
  12501. (grub_util_get_grub_dev): Handle LUKS and GELI.
  12502. * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): New function.
  12503. (grub_util_biosdisk_open): Use grub_util_get_fd_sectors.
  12504. (follow_geom_up): Removed.
  12505. (grub_util_fd_seek): New function.
  12506. (open_device): Use grub_util_fd_seek.
  12507. (nread): Rename to ..
  12508. (grub_util_fd_read): ... this. All users updated.
  12509. * grub-core/lib/crypto.c (grub_crypto_ecb_decrypt): A better prototype.
  12510. (grub_crypto_cbc_decrypt): Likewise.
  12511. (grub_crypto_hmac_write): Likewise.
  12512. (grub_crypto_hmac_buffer): Likewise.
  12513. (grub_password_get): Extend to util.
  12514. * include/grub/crypto.h (gcry_cipher_spec) [GRUB_UTIL]:
  12515. New member modname.
  12516. (gcry_md_spec) [GRUB_UTIL]: Likewise.
  12517. * include/grub/cryptodisk.h: New file.
  12518. * include/grub/disk.h (grub_disk_dev_id): Rename LUKS to CRYPTODISK.
  12519. * include/grub/emu/getroot.h (grub_dev_abstraction_types): Add
  12520. LUKS and GELI.
  12521. (grub_util_follow_gpart_up): New proto.
  12522. * include/grub/emu/hostdisk.h (grub_util_fd_seek): Likewise.
  12523. (grub_util_fd_read): Likewise.
  12524. (grub_cryptodisk_cheat_mount): Likewise.
  12525. (grub_util_cryptodisk_print_uuid): Likewise.
  12526. (grub_util_get_fd_sectors): Likewise.
  12527. * util/grub-fstest.c (mount_crypt): New var.
  12528. (fstest): Mount crypto if requested.
  12529. (options): New option -C.
  12530. (argp_parser): Parse -C.
  12531. (main): Init and fini gcry.
  12532. * util/grub-install.in: Support cryptodisk install.
  12533. * util/grub-mkconfig.in: Export GRUB_ENABLE_CRYPTODISK.
  12534. * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Support
  12535. cryptodisk.
  12536. (prepare_grub_to_access_device): Likewise.
  12537. * util/grub-mkpasswd-pbkdf2.c (main): Use grub_password_get.
  12538. * util/grub-probe.c (probe_partmap): Support cryptodisk UUID probe.
  12539. (probe_cryptodisk_uuid): New function.
  12540. (probe_abstraction): Likewise.
  12541. (probe): Use new functions.
  12542. * util/import_gcry.py: Create Makefile.utilgcry.def.
  12543. Add modname member.
  12544. 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
  12545. Lazy device scanning.
  12546. * Makefile.util.def (libgrubkern.a): Add grub-core/kern/emu/raid.c.
  12547. (grub-setup): Remove util/raid.c.
  12548. * grub-core/Makefile.core.def (kernel): Add kern/emu/raid.c on emu.
  12549. * grub-core/disk/lvm.c (scan_depth): New variable.
  12550. (grub_lvm_iterate): Rescan if necessary.
  12551. (find_lv): New function based on grub_lvm_open.
  12552. (grub_lvm_open): Use find_lv. Rescan on error.
  12553. (is_node_readable): New function.
  12554. (is_lv_readable): Likewise.
  12555. (grub_lvm_scan_device): Skip already found disks.
  12556. (do_lvm_scan): New function. Move grub_lvm_scan_device inside of it.
  12557. Stop if searched device is found and readable.
  12558. * grub-core/disk/raid.c (inscnt): New variable.
  12559. (scan_depth): Likewise.
  12560. (scan_devices): New function based on grub_raid_register. Abort if
  12561. looked for device is found.
  12562. (grub_raid_iterate): Rescan if needed.
  12563. (find_array): NEw function based on -grub_raid_open.
  12564. (grub_raid_open): Use find_array and rescan.
  12565. (insert_array): Set became_readable_at.
  12566. * grub-core/kern/disk.c (grub_disk_dev_iterate): Iterate though "pull.
  12567. * grub-core/kern/emu/getroot.c (grub_util_open_dm) [HAVE_DEVICE_MAPPER]:
  12568. New function.
  12569. (grub_util_is_lvm) [HAVE_DEVICE_MAPPER]: Use grub_util_open_dm.
  12570. (grub_util_pull_device): New function.
  12571. (grub_util_get_grub_dev): Call grub_util_pull_device.
  12572. * util/raid.c: Moved to ..
  12573. * grub-core/kern/emu/raid.c: ... here.
  12574. (grub_util_raid_getmembers): New parameter "bootable".
  12575. All users updated. Support 1.x.
  12576. * include/grub/ata.h (grub_ata_dev): Change iterate prototype.
  12577. All users updated.
  12578. * include/grub/disk.h (grub_disk_pull_t): New enum.
  12579. (grub_disk_dev): Change iterate prototype.
  12580. All users updated.
  12581. * include/grub/emu/getroot.h (grub_util_raid_getmembers) [__linux__]:
  12582. New proto.
  12583. * include/grub/emu/hostdisk.h (grub_util_pull_device): Likewise.
  12584. * include/grub/lvm.h (grub_lvm_lv): New members fullname and compatname.
  12585. * include/grub/raid.h (grub_raid_array): New member became_readable_at.
  12586. * include/grub/scsi.h (grub_scsi_dev): Change iterate prototype.
  12587. All users updated.
  12588. * include/grub/util/raid.h: Removed.
  12589. 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
  12590. * po/POTFILES.in: Regenerate.
  12591. 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
  12592. Unify sparc init with other ieee1275.
  12593. * grub-core/Makefile.core.def (kernel): Use kern/ieee1275/init.c
  12594. instead of kern/sparc64/ieee1275/init.c.
  12595. * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options)
  12596. [__sparc__]: Set GRUB_IEEE1275_FLAG_NO_PARTITION_0.
  12597. * grub-core/kern/ieee1275/init.c [__sparc__]: Include
  12598. grub/machine/kernel.h.
  12599. (grub_ieee1275_original_stack) [__sparc__]: New variable.
  12600. (grub_claim_heap) [__sparc__]: Use sparc version.
  12601. (grub_machine_init): Moved args parsing to
  12602. (grub_parse_cmdline): ...this.
  12603. * grub-core/kern/sparc64/ieee1275/init.c: Removed.
  12604. * include/grub/offsets.h (GRUB_KERNEL_SPARC64_IEEE1275_MOD_GAP):
  12605. New definition.
  12606. (GRUB_KERNEL_SPARC64_IEEE1275_MOD_ALIGN): Likewise.
  12607. Move BOOTP to separate file.
  12608. * grub-core/Makefile.core.def (net): Add net/bootp.c.
  12609. * grub-core/net/net.c: Move all BOOTP functions to
  12610. * grub-core/net/bootp.c: ... here.
  12611. Use frame interface on PXE.
  12612. * grub-core/Makefile.core.def (pxecmd): Removed.
  12613. (pxe): Use net/drivers/i386/pc/pxe.c rather than net/i386/pc/pxe.c.
  12614. * grub-core/commands/i386/pc/pxecmd.c: Removed.
  12615. * grub-core/i386/pc/pxe.c: Moved from here ...
  12616. * grub-core/net/i386/pc/pxe.c: ... here. Rewritten.
  12617. * grub-core/net/net.c (grub_net_open_real): Handle old pxe syntax.
  12618. * include/grub/i386/pc/pxe.h (grub_pxe_unload): Removed.
  12619. EFI network support.
  12620. * grub-core/Makefile.core.def (efinet): New module.
  12621. * grub-core/disk/efi/efidisk.c (compare_device_paths): Moved from
  12622. here...
  12623. * grub-core/kern/efi/efi.c (grub_efi_compare_device_paths): ... here.
  12624. All users updated.
  12625. * grub-core/kern/efi/init.c (grub_efi_net_config): New variable.
  12626. (grub_machine_get_bootlocation): Call grub_efi_net_config if needed.
  12627. * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_7): New function.
  12628. * grub-core/net/drivers/efi/efinet.c: New file.
  12629. * include/grub/efi/efi.h (grub_efi_compare_device_paths): New proto.
  12630. (grub_efi_net_config): New extern var.
  12631. Various cleanups and bugfixes.
  12632. * grub-core/disk/efi/efidisk.c (grub_efidisk_open): Fix off-by-one
  12633. error.
  12634. (grub_efidisk_get_device_name): Unify similar codepaths. Accept whole
  12635. disk declared as partition.
  12636. * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Fix memory
  12637. leak on failure.
  12638. * grub-core/kern/dl.c (grub_dl_load_file): Fix memory leak.
  12639. * grub-core/kern/mm.c (grub_debug_malloc): Don't use unsupported %zx.
  12640. (grub_debug_zalloc): Likewise.
  12641. (grub_debug_realloc): Likewise.
  12642. (grub_debug_memalign): Likewise.
  12643. * grub-core/net/arp.c (grub_net_arp_receive): IPv4 is 4-byte wide.
  12644. Check that target is IPv4.
  12645. * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnet_findcards): Use
  12646. local-mac-address as fallback.
  12647. * grub-core/net/ethernet.c (grub_net_recv_ethernet_packet): Prevent
  12648. memory leak.
  12649. * grub-core/net/ip.c (ipchksum): Rename to ...
  12650. (grub_net_ip_chksum): ... this. All users updated.
  12651. (grub_net_recv_ip_packets): Special handling for DHCP.
  12652. * util/grub-mkimage.c (generate_image): Zero-out aout header.
  12653. Unify prefix handling
  12654. * grub-core/kern/efi/init.c (grub_efi_set_prefix): Revamped into ...
  12655. (grub_machine_get_bootlocation): ... this.
  12656. * grub-core/kern/emu/main.c (grub_machine_set_prefix): Revamped into ...
  12657. (grub_machine_get_bootlocation): ... this.
  12658. (grub_prefix): New variable.
  12659. (prefix): Removed.
  12660. (root_dev): New variable.
  12661. (dir): Likewise.
  12662. (main): Use new variables.
  12663. * grub-core/kern/i386/coreboot/init.c (grub_machine_set_prefix):
  12664. Revamped into ...
  12665. (grub_machine_get_bootlocation): ... this.
  12666. * grub-core/kern/i386/efi/init.c (grub_machine_set_prefix): Removed.
  12667. * grub-core/kern/i386/pc/init.c (make_install_device): Revamped into ...
  12668. (grub_machine_get_bootlocation): ... this.
  12669. (grub_machine_set_prefix): Removed.
  12670. * grub-core/kern/ia64/efi/init.c (grub_machine_set_prefix): Removed.
  12671. * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix):
  12672. Revamped into ...
  12673. (grub_machine_get_bootlocation): ... this.
  12674. * grub-core/kern/main.c (grub_set_root_dev): Revamped into ...
  12675. (grub_set_prefix_and_root): ... this. All users updated.
  12676. * grub-core/kern/mips/init.c (grub_machine_set_prefix):
  12677. Revamped into ...
  12678. (grub_machine_get_bootlocation): ... this.
  12679. * include/grub/kernel.h (grub_machine_set_prefix): Removed.
  12680. (grub_machine_get_bootlocation): New proto.
  12681. * include/grub/i386/pc/kernel.h (grub_pc_net_config): New var.
  12682. Less intrusive and more reliable seek on network implementation.
  12683. * grub-core/kern/file.c (grub_file_net_seek): Removed.
  12684. (grub_file_seek): Don't call grub_file_net_seek.
  12685. * grub-core/net/net.c (grub_net_fs_read): Renamed to ...
  12686. (grub_net_fs_read_real): .. this.
  12687. (grub_net_seek_real): Use net->offset.
  12688. (grub_net_fs_read): Seek if necessary.
  12689. Unify IEEE1275 netwotk config with the other platforms.
  12690. * grub-core/kern/ieee1275/init.c (grub_ieee1275_net_config):
  12691. New variable.
  12692. (grub_machine_get_bootlocation): Support network.
  12693. * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
  12694. Support type and device parsing.
  12695. (grub_ieee1275_get_device_type): New function.
  12696. * grub-core/net/drivers/ieee1275/ofnet.c (grub_getbootp_real): Revamped
  12697. into ...
  12698. (grub_ieee1275_net_config_real): ... this.
  12699. (grub_ofnet_probecards): Removed.
  12700. * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove ofnet.h.
  12701. * include/grub/ieee1275/ofnet.h: Removed.
  12702. * include/grub/ieee1275/ieee1275.h (grub_ieee1275_net_config): NEw
  12703. extern var.
  12704. (grub_ieee1275_get_device_type): New function.
  12705. Unify network device closing across platforms and make more robust.
  12706. * grub-core/kern/ieee1275/init.c (grub_machine_fini): Don't call
  12707. grub_grubnet_fini.
  12708. * grub-core/net/ethernet.c (send_ethernet_packet): Open card if it isn't
  12709. already.
  12710. * grub-core/net/net.c (grub_net_network_level_interface_register):
  12711. Update num_ifaces.
  12712. (grub_net_card_unregister): Close all interfaces.
  12713. (receive_packets): Don't poll if no iterfaces are registered.
  12714. Open if necessary.
  12715. (grub_net_fini_hw): New function.
  12716. (grub_net_restore_hw): Likewise.
  12717. (fini_hnd): New variable.
  12718. (GRUB_MOD_INIT): Register preboot hook.
  12719. (GRUB_MOD_FINI): Run and unregister preboot hook.
  12720. Poll network cards when idle.
  12721. * grub-core/kern/term.c (grub_net_poll_cards_idle): New variable.
  12722. (grub_checkkey): Call grub_net_poll_cards_idle if it's not NULL.
  12723. * grub-core/net/net.c (receive_packets): Save last poll time.
  12724. (grub_net_poll_cards_idle_real): New function.
  12725. (GRUB_MOD_INIT): Register grub_net_poll_cards_idle.
  12726. (GRUB_MOD_FINI): Unregister grub_net_poll_cards_idle.
  12727. * include/grub/kernel.h (grub_poll_cards_idle): New extern variable.
  12728. Rename ofnet interfaces.
  12729. * grub-core/net/drivers/ieee1275/ofnet.c (find_alias): New function.
  12730. (grub_ofnet_findcards): Use ofnet_%s names.
  12731. * util/grub-mknetdir.in: Support for EFI and IEEE1275.
  12732. Cleanup socket opening.
  12733. * grub-core/net/net.c (grub_net_fs_open): Rewritten.
  12734. (grub_net_fs_close): Likewise.
  12735. (grub_net_fs_read_real): Use eof member.
  12736. * include/grub/net/udp.h (+grub_net_udp_open): New proto.
  12737. (+grub_net_udp_close): New inline function.
  12738. * include/grub/net/tftp.h: Moved to the top of ...
  12739. * grub-core/net/tftp.c: ... here.
  12740. * include/grub/net/ip.h: Moved mostly to the top of ...
  12741. * grub-core/net/ip.c: ... here.
  12742. * include/grub/net/ethernet.h: Moved mostly to the top of ...
  12743. * grub-core/net/ethernet.c: ... here.
  12744. * grub-core/kern/device.c (grub_device_close): Free device->net->server.
  12745. * grub-core/commands/probe.c (grub_cmd_probe): Use protocol name for
  12746. FS name.
  12747. * include/grub/net/ip.h (ipv4_ini): Removed.
  12748. (ipv4_fini): Likewise.
  12749. * include/grub/net/ip.h (grub_net_recv_ip_packets): New proto.
  12750. (grub_net_send_ip_packets): Likewise.
  12751. 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
  12752. * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init): Use new
  12753. grub_read_cmos prototype.
  12754. 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
  12755. VGA text support in qemu-mips
  12756. * grub-core/Makefile.core.def (kernel): Add term/i386/pc/vga_text.c,
  12757. term/i386/vga_common.c and kern/vga_init.c on qemu-mips.
  12758. * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init vga
  12759. text.
  12760. * grub-core/kern/i386/qemu/init.c: Renamed to ...
  12761. * grub-core/kern/vga_init.c: ... this.
  12762. * grub-core/kern/vga_init.c (VGA_ADDR) [__mips__]: Adjust.
  12763. (grub_qemu_init_cirrus) [__mips__]: Skip PCI and adjust the I/O base.
  12764. * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN) [__mips__]:
  12765. Adjust.
  12766. * include/grub/vga.h [GRUB_MACHINE_MIPS_QEMU_MIPS]: Declare
  12767. GRUB_MACHINE_PCI_IO_BASE.
  12768. 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
  12769. MIPS qemu flash support.
  12770. * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]: Check
  12771. magic.
  12772. * grub-core/kern/mips/qemu_mips/init.c (probe_mem): New function.
  12773. (grub_machine_init): Probe memory if its size isn't known.
  12774. * util/grub-mkimage.c (image_targets): Add flash targets.
  12775. (generate_image): Handle flash targets.
  12776. 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
  12777. MIPS qemu at_keyboard support.
  12778. * gentpl.py (videoinkernel): Add qemu-mips.
  12779. * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add necessary headers.
  12780. * grub-core/Makefile.core.def (kernel): Add at_keyboard and layout.
  12781. * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init new
  12782. modules.
  12783. * grub-core/term/at_keyboard.c (grub_keyboard_controller_init)
  12784. [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't consider original set.
  12785. * grub-core/term/serial.c (grub_serial_register)
  12786. [GRUB_MACHINE_MIPS_QEMU_MIPS]: Make com0 explicitly active.
  12787. 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
  12788. CMOS support on sparc.
  12789. * gentpl.py (cmos): Add powerpc and sparc.
  12790. * grub-core/Makefile.core.def (datetime): Add lib/ieee1275/cmos.c on
  12791. powerpc and sparc.
  12792. * grub-core/lib/cmos_datetime.c (grub_get_datetime)
  12793. [__powerpc__ || __sparc__]: Rename to grub_get_datetime_cmos.
  12794. (grub_set_datetime) [__powerpc__ || __sparc__]: Likewise to
  12795. grub_set_datetime_cmos.
  12796. * grub-core/lib/ieee1275/cmos.c: New file.
  12797. * grub-core/lib/ieee1275/datetime.c (no_ieee1275_rtc): New vaiable.
  12798. (find_rtc): Set no_ieee1275_rtc on error.
  12799. (grub_get_datetime): Call grub_get_datetime_cmos on error.
  12800. (grub_set_datetime): Call grub_set_datetime_cmos on error.
  12801. * include/grub/cmos.h (grub_cmos_read): Return grub_err_t since it may
  12802. fail. Move value to argument. All users updated
  12803. (grub_cmos_write): Likewise.
  12804. (grub_cmos_read) [__powerpc__ || __sparc__]: Rewritten.
  12805. (grub_cmos_write) [__powerpc__ || __sparc__]: Likewise.
  12806. * include/grub/datetime.h [__powerpc__ || __sparc__]: Declare
  12807. grub_get_datetime_cmos and grub_set_datetime_cmos.
  12808. 2011-07-02 Grégoire Sutre <gregoire.sutre@gmail.com>
  12809. * util/grub-mkconfig.in: Use @PACKAGE@ instead of hardcoded name when
  12810. sourcing grub-mkconfig_lib.
  12811. * util/update-grub_lib.in: Likewise.
  12812. * util/grub.d/00_header.in: Likewise.
  12813. * util/grub.d/10_hurd.in: Likewise.
  12814. * util/grub.d/10_kfreebsd.in: Likewise.
  12815. * util/grub.d/10_linux.in: Likewise.
  12816. * util/grub.d/10_netbsd.in: Likewise.
  12817. * util/grub.d/10_windows.in: Likewise.
  12818. * util/grub.d/20_linux_xen.in: Likewise.
  12819. * util/grub.d/30_os-prober.in: Likewise.
  12820. 2011-06-28 Colin Watson <cjwatson@ubuntu.com>
  12821. * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
  12822. default_bg_color rather than black.
  12823. (grub_gfxterm_fullscreen): Likewise.
  12824. (grub_gfxterm_background_color_cmd): Save new background color in
  12825. default_bg_color.
  12826. 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
  12827. * grub-core/Makefile.core.def (chain): Fix coreboot filename.
  12828. 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
  12829. * grub-core/disk/pata.c (grub_pata_initialize) [QEMU_MIPS]: Fix a
  12830. mismerge.
  12831. 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
  12832. Chainloading on coreboot support.
  12833. * grub-core/Makefile.core.def (chain): Add coreboot.
  12834. * grub-core/loader/i386/coreboot/chainloader.c: New file.
  12835. 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
  12836. * grub-core/loader/i386/bsd.c (grub_bsd_load): Handle relocator failure
  12837. if it happens.
  12838. 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
  12839. Implement time command.
  12840. * grub-core/Makefile.core.def (time): New module.
  12841. * grub-core/commands/time.c: New file.
  12842. * grub-core/script/parser.y: Remove "time" keyword.
  12843. * grub-core/script/yylex.l: Likewise.
  12844. 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
  12845. * include/grub/loader.h (grub_loader_unregister_preboot_hook): Export.
  12846. 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
  12847. * grub-core/lib/relocator.c (malloc_in_range): Fix a memory corruption
  12848. when handling leftovers.
  12849. 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
  12850. * util/ieee1275/grub-ofpathname.c (main): Handle --help and --version
  12851. so that help2man doesn't fail.
  12852. 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
  12853. * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer) Use right
  12854. type in pointers on sparc64.
  12855. (get_card_packet): Likewise.
  12856. 2011-06-27 Colin Watson <cjwatson@ubuntu.com>
  12857. * grub-core/commands/videoinfo.c (hook): Indicate current video mode
  12858. with `*'.
  12859. (grub_cmd_videoinfo): Fetch current video mode.
  12860. 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
  12861. * grub-core/disk/scsi.c (grub_scsi_read): Limit SCSI reads to 32K
  12862. because of underlying system restrictions.
  12863. 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
  12864. * util/grub-mkrescue.in: Rename "ata" to "pata" and add ahci when
  12865. necessary.
  12866. 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
  12867. Coreboot video support.
  12868. * grub-core/Makefile.core.def (vga): Extend to coreboot and multiboot.
  12869. (vbe): Likewise.
  12870. * grub-core/kern/i386/coreboot/startup.S: Include int.S.
  12871. * grub-core/kern/i386/pc/startup.S (grub_bios_interrupt): Moved from
  12872. here ...
  12873. * grub-core/kern/i386/int.S: ... here.
  12874. * grub-core/video/i386/pc/vbe.c: Updated includes.
  12875. * grub-core/video/i386/pc/vga.c: Likewise.
  12876. * include/grub/i386/coreboot/memory.h
  12877. (GRUB_MEMORY_MACHINE_SCRATCH_ADDR): New definition.
  12878. (GRUB_MEMORY_MACHINE_SCRATCH_SEG): Likewise.
  12879. (GRUB_MEMORY_MACHINE_SCRATCH_SIZE): Likewise.
  12880. * include/grub/i386/pc/int.h (GRUB_CPU_INT_FLAGS_DEFAULT) [!PCBIOS]:
  12881. Disable interrupts.
  12882. * include/grub/i386/pc/vga.h: Removed. All users updated.
  12883. 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
  12884. * grub-core/disk/ahci.c (grub_ahci_readwrite_real): Use proper
  12885. definitions for dprintf.
  12886. * grub-core/disk/pata.c (grub_pata_readwrite): Likewise.
  12887. 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
  12888. * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer): Fix
  12889. prototype.
  12890. (get_card_packet): Likewise.
  12891. 2011-06-26 Yves Blusseau <blusseau@zetam.org>
  12892. Display the path of the file when file is not found
  12893. * grub-core/fs/fat.c: Display the filename when file is not found.
  12894. * grub-core/fs/fshelp.c: Likewise.
  12895. * grub-core/fs/hfs.c: Likewise.
  12896. * grub-core/fs/jfs.c: Likewise.
  12897. * grub-core/fs/minix.c: Likewise.
  12898. * grub-core/fs/ufs.c: Likewise.
  12899. * grub-core/fs/btrfs.c: Likewise.
  12900. * grub-core/commands/i386/pc/play.c: Likewise.
  12901. 2011-06-26 Szymon Janc <szymon@janc.net.pl>
  12902. * grub-core/commands/cmp.c (grub_cmd_cmp): Remove unnecessary NULL
  12903. pointer checks before calling grub_free().
  12904. * grub-core/commands/wildcard.c (match_devices): Likewise.
  12905. * grub-core/commands/wildcard.c (match_files): Likewise.
  12906. * grub-core/fs/cpio.c (grub_cpio_dir): Likewise.
  12907. * grub-core/fs/cpio.c (grub_cpio_open): Likewise.
  12908. * grub-core/fs/udf.c (grub_udf_read_block): Likewise.
  12909. * grub-core/fs/xfs.c (grub_xfs_read_block): Likewise.
  12910. * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Likewise.
  12911. * grub-core/normal/cmdline.c (grub_cmdline_get): Likewise.
  12912. * grub-core/script/yylex.l (grub_lexer_unput): Likewise.
  12913. * grub-core/video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
  12914. * grub-core/video/readers/png.c (grub_png_output_byte): Likewise.
  12915. 2011-06-25 Patrick <p55@mailinator.com>
  12916. * grub-core/kern/main.c (grub_load_normal_mode): Correct the comment.
  12917. 2011-06-25 Vladimir Serbinenko <phcoder@gmail.com>
  12918. * grub-core/net/i386/pc/pxe.c (grub_pxe_recv): Fix declaration.
  12919. (grub_pxe_send): Likewise.
  12920. (GRUB_MOD_INIT): Fix types.
  12921. 2011-06-24 Szymon Janc <szymon@janc.net.pl>
  12922. * grub-core/io/xzio.c: Fix code style issues
  12923. 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
  12924. 2011-06-24 Manoel Rebelo Abranches <mrabran@gmail.com>
  12925. Network infrastructure.
  12926. The ARP protocol was made by Paulo Pinatti <ppinatti@br.ibm.com>
  12927. * include/grub/net/arp.h: New file.
  12928. * include/grub/net/device.h: Likewise.
  12929. * include/grub/net/ethernet.h: Likewise.
  12930. * include/grub/net/ip.h: Likewise.
  12931. * include/grub/net/netbuff.h: Likewise.
  12932. * include/grub/net/tftp.h: Likewise.
  12933. * include/grub/net/udp.h: Likewise.
  12934. * include/grub/ieee1275/ofnet.h: Likewise.
  12935. * include/grub/emu/export.h: Likewise.
  12936. * include/grub/net.h: Likewise.
  12937. * grub-core/net/arp.c: Likewise.
  12938. * grub-core/net/ethernet.c: Likewise.
  12939. * grub-core/net/ip.c: Likewise.
  12940. * grub-core/net/udp.c: Likewise.
  12941. * grub-core/net/tftp.c: Likewise.
  12942. * grub-core/net/netbuff.c: Likewise.
  12943. * grub-core/net/net.c: Likewise.
  12944. * grub-core/net/drivers/emu/emunet.c: Likewise.
  12945. * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
  12946. * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add net.h, ofnet.h and
  12947. export.h.
  12948. * grub-core/Makefile.core.def (net): New module.
  12949. (tftp): Likewise.
  12950. (ofnet): Likewise.
  12951. (emunet): Likewise.
  12952. * grub-core/commands/ls.c (grub_ls_list_devices) [!GRUB_UTIL]: List
  12953. network protocols.
  12954. * grub-core/kern/device.c (grub_net_open) : New variable.
  12955. (grub_device_open): Handle network device.
  12956. (grub_device_close): Likewise.
  12957. * grub-core/kern/file.c (grub_file_net_seek) : New variable.
  12958. (grub_grubnet_fini): Likewise.
  12959. (grub_file_seek): Seek in network device.
  12960. * grub-core/kern/fs.c (grub_fs_probe): Handle network devices.
  12961. * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix): Handle
  12962. network root.
  12963. (grub_machine_fini): Call grub_grubnet_fini.
  12964. * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Handle
  12965. network.
  12966. (grub_ieee1275_get_aliasdevname): New function.
  12967. * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
  12968. Add unofficial Solaris network info.
  12969. (grub_multiboot_make_mbi): Likewise.
  12970. * grub-core/fs/i386/pc/pxe.c: Moved from here ...
  12971. * grub-core/net/i386/pc/pxe.c: ...here. Adapted for new design.
  12972. * include/grub/device.h (grub_fs): Removed.
  12973. * include/grub/err.h (grub_err_t): Add network-related values.
  12974. * include/grub/i386/pc/pxe.h: Removed bootp parts.
  12975. * include/grub/ieee1275/ieee1275.h (grub_ofnetcard_data): New struct.
  12976. (grub_ieee1275_get_aliasdevname): New proto.
  12977. * include/grub/net.h: Rewritten.
  12978. 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
  12979. * grub-core/disk/raid.c (insert_array): Ensure uniqueness of readable
  12980. names.
  12981. 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
  12982. * grub-core/commands/wildcard.c (match_files): Add a useful dprintf.
  12983. (wildcard_expand): Don't stop on nonregexp parts after regexp ones since
  12984. it truncates the output.
  12985. Reported by: Ximin Luo.
  12986. 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
  12987. * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Skip . and ..
  12988. 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
  12989. * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
  12990. partmap before abstraction.
  12991. 2011-06-24 Alexander Kurtz <kurtz.alex@googlemail.com>
  12992. * util/grub-mkconfig_lib.in: Add missing quotes.
  12993. 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
  12994. * grub-core/kern/emu/getroot.c (grub_guess_root_device): Revert to
  12995. old method if mountinfo would return /dev/root and /dev/root doesn't
  12996. exist.
  12997. 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
  12998. ZFS zlib support
  12999. * grub-core/fs/zfs/zfs.c (zlib_decompress): New function.
  13000. (decomp_table): Add zlib entries.
  13001. (zio_read): USe 8 bits for compression function rather than 3.
  13002. * include/grub/zfs/zio.h (zio_compress): Add zlib values.
  13003. 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
  13004. * grub-core/disk/ahci.c: Add missing license statements.
  13005. * grub-core/fs/romfs.c: Likewise.
  13006. * grub-core/lib/ia64/setjmp.S: Likewise.
  13007. * grub-core/loader/i386/pc/freedos.c: Likewise.
  13008. * grub-core/loader/ia64/efi/linux.c: Likewise.
  13009. * grub-core/video/colors.c: Likewise.
  13010. * include/grub/dl.h (GRUB_MOD_DEP): New macro.
  13011. 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
  13012. AHCI support.
  13013. * grub-core/Makefile.core.def (ata_pthru): Removed.
  13014. (ahci): New module.
  13015. (pata): Likewise.
  13016. * grub-core/bus/usb/ohci.c (GRUB_MOD_FINI): Unregister preboot hook
  13017. on unload.
  13018. * grub-core/commands/hdparm.c (grub_hdparm_do_ata_cmd): Use ATA
  13019. readwrite.
  13020. (grub_hdparm_do_check_powermode_cmd): Likewise.
  13021. (grub_hdparm_do_smart_cmd): Likewise.
  13022. (grub_hdparm_set_val_cmd): Likewise.
  13023. (grub_cmd_hdparm): Likewise. Check thta we have an ATA device.
  13024. * grub-core/disk/ahci.c: New file.
  13025. * grub-core/disk/ata.c: Factor out the low-level part into ...
  13026. * grub-core/disk/pata.c: ... here.
  13027. * grub-core/disk/ata_pthru.c: Contents moved to ...
  13028. * grub-core/disk/pata.c: ... here.
  13029. * grub-core/disk/scsi.c (grub_scsi_names): New array.
  13030. (grub_scsi_iterate): Use grub_scsi_names.
  13031. (grub_scsi_open): Likewise.
  13032. * grub-core/kern/disk.c (grub_disk_ata_pass_through): Removed.
  13033. * include/grub/ata.h (grub_ata_commands): Add DMA commands.
  13034. (grub_ata_regs_t): New struct.
  13035. (grub_disk_ata_pass_through_parms): Likewise.
  13036. (grub_ata_device): Renamed to ...
  13037. (grub_ata): ... this.
  13038. (grub_ata_dev): New struct.
  13039. Removed all low-level inline functions.
  13040. * include/grub/scsi.h: Add PATA and AHCI subsystems.
  13041. (grub_scsi_dev): Removed 'name' and 'id'. Added 'id' parameter to
  13042. iterate hooks and open. All users updated.
  13043. * util/grub-install.in: Handle AHCI disk module.
  13044. 2011-06-23 Szymon Janc <szymon@janc.net.pl>
  13045. Add support for DRI and RSTn markers in JPEG files.
  13046. * grub-core/video/readers/jpeg.c (JPEG_MARKER_DRI): New define.
  13047. (JPEG_MARKER_RST0): Likewise.
  13048. (JPEG_MARKER_RST1): Likewise.
  13049. (JPEG_MARKER_RST2): Likewise.
  13050. (JPEG_MARKER_RST3): Likewise.
  13051. (JPEG_MARKER_RST4): Likewise.
  13052. (JPEG_MARKER_RST5): Likewise.
  13053. (JPEG_MARKER_RST6): Likewise.
  13054. (JPEG_MARKER_RST7): Likewise.
  13055. (grub_jpeg_data): New fields dri, r1, bitmap_ptr.
  13056. (grub_jpeg_decode_dri): New function.
  13057. (grub_jpeg_decode_sos): Move image data related part into
  13058. grub_jpeg_decode_data function.
  13059. (grub_jpeg_decode_data): New function.
  13060. (grub_jpeg_reset): New function.
  13061. (grub_jpeg_decode_jpeg): Handle new markers.
  13062. 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
  13063. * util/ieee1275/ofpath.c (check_sas): Close fd.
  13064. (main): Free of_path.
  13065. Reported by: David Volgyes <dvolgyes>.
  13066. 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
  13067. * util/grub-mkpasswd-pbkdf2.c (main): Don't double-close.
  13068. Reported by: David Volgyes <dvolgyes>.
  13069. 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
  13070. * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Close
  13071. file after stat.
  13072. Reported by: David Volgyes <dvolgyes>.
  13073. 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
  13074. * util/raid.c (grub_util_raid_getmembers): Close fd before returning.
  13075. Reported by: David Volgyes <dvolgyes>.
  13076. 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
  13077. * grub-core/lib/reed_solomon.c (rs_recover) [STANDALONE]:
  13078. Prevent memory leak.
  13079. 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
  13080. * grub-core/lib/reed_solomon.c (rs_recover): Prevent memory leak.
  13081. (main): Close file.
  13082. Reported by: David Volgyes <dvolgyes>.
  13083. 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
  13084. * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devprop): Don't attempt
  13085. to continue if allocation is failed.
  13086. Reported by: David Volgyes <dvolgyes>.
  13087. 2011-06-23 David Volgyes <dvolgyes>
  13088. * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Avoid NULL-pointer
  13089. dereference.
  13090. 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
  13091. Fix spurious warning.
  13092. * grub-core/partmap/acorn.c (grub_acorn_boot_block): Make a union.
  13093. (acorn_partition_map_find): Use .bin member.
  13094. 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
  13095. * grub-core/kern/emu/getroot.c (grub_guess_root_device): Don't accept
  13096. /dev/root as a valid device.
  13097. 2011-06-23 Jim Meyering <meyering@redhat.com>
  13098. Avoid NULL deref in grub_device_open.
  13099. * grub-core/kern/device.c (grub_device_open): Don't dereference
  13100. a NULL pointer upon failed grub_env_get.
  13101. 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
  13102. Support non-512B sectors and agglomerate reads.
  13103. * Makefile.util.def (libgrubmods.a): Add grub-core/commands/testload.c.
  13104. * grub-core/disk/efi/efidisk.c (grub_efidisk_data): Remove disk_io.
  13105. (disk_io_guid): Removed.
  13106. (make_devices): Locate solely by BlockIO.
  13107. (grub_efidisk_open): Fill log_sector_size and total_sectors.
  13108. (grub_efidisk_read): Use read_blocks.
  13109. (grub_efidisk_write): Use write_blocks.
  13110. * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Fill
  13111. log_sector_size.
  13112. (get_safe_sectors): Handle non-512B sectors.
  13113. (grub_biosdisk_read): Remove special CDROM handling. Handle non-512B
  13114. sectors.
  13115. (grub_biosdisk_write): Handle non-512B sectors.
  13116. * grub-core/disk/scsi.c (grub_scsi_open): Fill log_sector_size.
  13117. (grub_scsi_read): Remove special non-512B block handling (now handled
  13118. one level up).
  13119. * grub-core/kern/disk.c (grub_disk_open): Fill default log_sector_size
  13120. and do sanity checks.
  13121. (grub_disk_adjust_range): Handle non-512B sectors.
  13122. (transform_sector): New function.
  13123. (grub_disk_read_small): Likewise.
  13124. (grub_disk_read): Rewritten.
  13125. (grub_disk_write): Handle non-512B sectors.
  13126. * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Fill
  13127. log_sector_size.
  13128. (open_device): Use log_sector_size.
  13129. (grub_util_biosdisk_read): Likewise.
  13130. (grub_util_biosdisk_write): Likewise.
  13131. * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Handle
  13132. non-512B sectors.
  13133. (pc_partition_map_embed): Likewise.
  13134. * include/grub/disk.h (grub_disk): New field log_sector_size.
  13135. (GRUB_DISK_CACHE_SIZE): Redefined from GRUB_DISK_CACHE_BITS.
  13136. (GRUB_DISK_CACHE_BITS): Increased to 6.
  13137. * util/grub-fstest.c (fstest): New command testload.
  13138. (argp_parser): Likewise.
  13139. 2011-06-16 Robert Millan <rmh@gnu.org>
  13140. Detect `ataraid' devices on GNU/kFreeBSD. Fix for ATA devices using
  13141. `ata' driver on kernel of FreeBSD 9.
  13142. * util/deviceiter.c [__FreeBSD_kernel__] (get_ada_disk_name)
  13143. (get_ataraid_disk_name): New functions.
  13144. [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for ataraid
  13145. (/dev/ar[0-9]+) and ada (/dev/ada[0-9]+) devices using
  13146. get_ataraid_disk_name() and get_ada_disk_name().
  13147. 2011-06-13 Colin Watson <cjwatson@ubuntu.com>
  13148. * docs/man/grub-mklayout.h2m (DESCRIPTION): Add a reference to the
  13149. input format.
  13150. 2011-05-29 Colin Watson <cjwatson@ubuntu.com>
  13151. * docs/grub.texi (Obtaining and Building GRUB): Substitute
  13152. `ftp.gnu.org' for `alpha.gnu.org'.
  13153. 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
  13154. * grub-core/kern/emu/hostdisk.c (linux_find_partition): Handle
  13155. partitions under /dev/disk/by-id/.
  13156. 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
  13157. * grub-core/kern/emu/hostdisk.c (linux_find_partition): Give up
  13158. after ten consecutive open failures. Scanning all the way up to
  13159. 10000 is excessive and can cause serious performance problems in
  13160. some configurations.
  13161. Fixes Ubuntu bug #787461.
  13162. 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
  13163. * grub-core/disk/arc/arcdisk.c (reopen): Close old handle before
  13164. opening new one.
  13165. 2011-05-21 Colin Watson <cjwatson@ubuntu.com>
  13166. 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
  13167. Don't stat devices unless we have to.
  13168. * grub-core/kern/emu/getroot.c (grub_find_device): Recognize
  13169. dir == /dev/mapper.
  13170. (grub_guess_root_device): Use already known os_dev if possible.
  13171. * grub-core/kern/emu/hostdisk.c
  13172. (convert_system_partition_to_system_disk): Scan only in /dev/mapper
  13173. if device is known to be a dm one.
  13174. 2011-05-20 Colin Watson <cjwatson@ubuntu.com>
  13175. * util/grub-mkconfig.in: Export GRUB_CMDLINE_LINUX_XEN_REPLACE and
  13176. GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT.
  13177. Reported by: Pawel Tecza.
  13178. 2011-05-19 Vladimir Serbinenko <phcoder@gmail.com>
  13179. * grub-core/Makefile.core.def (lsacpi): Fix ia64 mismerge.
  13180. (lsefisystab): Likewise.
  13181. (lssal): Likewise.
  13182. (lsefimmap): Likewise.
  13183. (hdparm): Enable on qemu-mips.
  13184. (setjmp): Add ia64 nodist.
  13185. (serial): Simplify tags.
  13186. 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
  13187. * Makefile.util.def (grub-ofpathname): Install manual page.
  13188. 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
  13189. * grub-core/fs/squash4.c: Add missing GRUB_MOD_LICENSE.
  13190. 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
  13191. * .bzrignore: Add grub-core/modinfo.sh and a number of test files.
  13192. 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
  13193. * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Downgrade a printf
  13194. into dprintf.
  13195. 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
  13196. Use full 64-bit division.
  13197. * grub-core/kern/misc.c (grub_divmod64_full): Renamed to ...
  13198. (grub_divmod64): ... this.
  13199. * include/grub/misc.h (grub_divmod64): Removed. All users switch to full
  13200. version.
  13201. 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
  13202. * util/grub-mkrescue.in: Use portable `.' rather than non-portable
  13203. `source'.
  13204. 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
  13205. * grub-core/genmod.sh.in: Use 'set -e' rather than '#! /bin/sh -e',
  13206. to avoid accidents when debugging with 'sh -x'.
  13207. * grub-core/gensyminfo.sh.in: Likewise.
  13208. * tests/example_scripted_test.in: Likewise.
  13209. * tests/grub_cmd_regexp.in: Likewise.
  13210. * tests/grub_script_blanklines.in: Likewise.
  13211. * tests/grub_script_dollar.in: Likewise.
  13212. * tests/grub_script_expansion.in: Likewise.
  13213. * tests/grub_script_final_semicolon.in: Likewise.
  13214. * tests/partmap_test.in: Likewise.
  13215. * tests/util/grub-shell-tester.in: Likewise.
  13216. * tests/util/grub-shell.in: Likewise.
  13217. 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
  13218. Move gfxmenu color handling to video, so that gfxterm can use it
  13219. too.
  13220. * grub-core/gfxmenu/named_colors.c: Move to ...
  13221. * grub-core/video/colors.c: ... here. Rename
  13222. grub_gui_get_named_color to grub_video_get_named_color.
  13223. * grub-core/gfxmenu/gui_string_util.c (my_isxdigit): Move to ...
  13224. * grub-core/video/colors.c (my_isxdigit): ... here.
  13225. * grub-core/gfxmenu/gui_string_util.c (parse_hex_color_component):
  13226. Move to ...
  13227. * grub-core/video/colors.c (parse_hex_color_component): ... here.
  13228. * grub-core/gfxmenu/gui_string_util.c (grub_gui_parse_color): Move
  13229. to ...
  13230. * grub-core/video/colors.c (grub_video_parse_color): ... here.
  13231. * include/grub/gui.h (grub_gui_color_t): Move to ...
  13232. * include/grub/video.h (grub_video_rgba_color_t): ... here.
  13233. * include/grub/gui.h (grub_gui_color_rgb): Move to ...
  13234. * include/grub/video.h (grub_video_rgba_color_rgb): ... here.
  13235. * include/grub/gui.h (grub_gui_map_color): Move to ...
  13236. * include/grub/video.h (grub_video_map_rgba_color): ... here.
  13237. * include/grub/gui_string_util.h (grub_gui_get_named_color): Move
  13238. to ...
  13239. * include/grub/video.h (grub_video_get_named_color): ... here.
  13240. * include/grub/gui_string_util.h (grub_gui_parse_color): Move to ...
  13241. * include/grub/video.h (grub_video_parse_color): ... here.
  13242. * grub-core/Makefile.core.def (kernel) [videoinkernel]: Add
  13243. video/colors.c.
  13244. (gfxmenu): Remove gfxmenu/named_colors.c.
  13245. (video) [videomodules]: Add video/colors.c.
  13246. Add a background_color command.
  13247. * grub-core/term/gfxterm.c (grub_gfxterm_background_color_cmd): New
  13248. function.
  13249. (GRUB_MOD_INIT): Register background_color command.
  13250. (GRUB_MOD_FINI): Unregister background_color command.
  13251. (redraw_screen_rect): Allow blend/replace of text layer to be
  13252. controlled independently from whether there is a background bitmap.
  13253. (grub_gfxterm_background_image_cmd): Change blend_text_bg when
  13254. changing bitmap.
  13255. 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
  13256. Patch BPB in ntldr and chainloader --bpb.
  13257. * grub-core/fs/fat.c: Include grub/fat.h.
  13258. (grub_fat_bpb): Moved to ...
  13259. * include/grub/fat.h (grub_fat_bpb): ... here. New file.
  13260. * grub-core/loader/i386/pc/chainloader.c: Include grub/fat.h and
  13261. grub/ntfs.h.
  13262. * include/grub/i386/pc/chainloader.h (grub_chainloader_flags_t):
  13263. Moved from here...
  13264. * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_flags_t): ...
  13265. here.
  13266. * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_patch_bpb):
  13267. New function.
  13268. (grub_chainloader_cmd): Patch BPB if --bpb is given.
  13269. (GRUB_MOD_INIT): Show --bpb.
  13270. * grub-core/loader/i386/pc/ntldr.c (grub_cmd_ntldr): Patch BPB.
  13271. * grub-core/normal/main.c (features): New variable.
  13272. (GRUB_MOD_INIT): Set feature_* variables.
  13273. * include/grub/i386/pc/chainloader.h (grub_chainloader_patch_bpb): New
  13274. proto.
  13275. * include/grub/ntfs.h (grub_ntfs_bpb): New field bios_drive.
  13276. 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
  13277. * grub-core/Makefile.core.def (ieee1275_fb): Use enable=powerpc_ieee1275
  13278. for cleanness.
  13279. 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
  13280. FreeDOS direct loading support.
  13281. * docs/grub.texi (Supported OS): Add FreeDOS.
  13282. * grub-core/Makefile.core.def (freedos): New module.
  13283. * grub-core/lib/i386/relocator.c (grub_relocator16_ebx): New extern
  13284. variable.
  13285. (grub_relocator16_boot): Handle %ebx.
  13286. * grub-core/lib/i386/relocator16.S: Likewise.
  13287. * grub-core/loader/i386/pc/freedos.c: New file.
  13288. 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
  13289. Long Linux command line support.
  13290. * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
  13291. (maximal_cmdline_size): New variable.
  13292. (allocate_pages): Use maximal_cmdline_size.
  13293. (grub_cmd_linux): Set and use maximal_cmdline_size.
  13294. * grub-core/loader/i386/pc/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
  13295. (allocate_pages): Use maximal_cmdline_size.
  13296. (grub_cmd_linux): Set and use maximal_cmdline_size.
  13297. * include/grub/i386/linux.h (GRUB_LINUX_SETUP_MOVE_SIZE): Removed.
  13298. (linux_kernel_header): Add fields kernel_alignment, relocatable, pad
  13299. and cmdline_size.
  13300. 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
  13301. 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
  13302. Improve devmapper support
  13303. * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Removed.
  13304. (grub_util_is_lvm): New function.
  13305. (grub_util_get_dev_abstraction): Assume dmraid if not lvm rather
  13306. than lvm if not dmraid.
  13307. Handle mapped md nodes.
  13308. * grub-core/kern/emu/hostdisk.c (device_is_mapped): Rename to ...
  13309. (grub_util_device_is_mapped): ... this. Make always available. All users
  13310. updated.
  13311. (grub_util_get_dm_node_linear_info) [HAVE_DEVICE_MAPPER]: New function.
  13312. (convert_system_partition_to_system_disk): Handle lvm, mpath and
  13313. dmraid nodes.
  13314. * include/grub/emu/misc.h (grub_util_device_is_mapped): New proto.
  13315. 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
  13316. Unify grub-mkrescue (except powerpc) and grrub-mknetdir across platforms
  13317. * grub-core/Makefile.am (platform_DATA): Add modinfo.sh.
  13318. * grub-core/modinfo.sh.in: New file.
  13319. * grub-core/Makefile.core.def (modinfo.sh): New script.
  13320. * util/grub-mknetdir.in: Use modinfo.sh.
  13321. * util/grub-mkrescue.in: Likewise.
  13322. 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
  13323. * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
  13324. Fix potential usage of Elf32 instead of Elf64 when compiling on
  13325. 32-bit architecture. Add endianness macros while on it.
  13326. 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
  13327. Use mipsel- rather than mips- in directories involving mipsel ports to
  13328. allow both endiannesses coexist.
  13329. * configure.ac: proparate target_cpu=mipsel rather than resetting to
  13330. mips. All conditions adjusted.
  13331. * tests/util/grub-shell-tester.in: Remove gratuitious target_cpu
  13332. variable.
  13333. * util/grub-install.in: Adjust conditions to take renaming into account.
  13334. * util/grub-mkimage.c (image_targets): Likewise. New target
  13335. mips-qemu_mips-elf for bigendian mips.
  13336. 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
  13337. Avoid unnecessary copying on MIPS.
  13338. * grub-core/boot/decompressor/none.c (grub_decompress_core): Exit
  13339. early if src == dest.
  13340. * util/grub-mkimage.c (generate_image): Arange for src == dest if
  13341. compression is none.
  13342. 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
  13343. Reduce memory footprint on SGI by putting modules before the kernel
  13344. as opposed to after.
  13345. * grub-core/Makefile.core.def (kernel): Increase linking address.
  13346. (none_decompress): Likewise.
  13347. (xz_decompress): Likewise.
  13348. * grub-core/boot/mips/startup_raw.S: Use prewritten uncompression
  13349. address.
  13350. * grub-core/kern/mips/arc/init.c (grub_machine_init): Handle memory
  13351. layout change.
  13352. (grub_arch_modules_addr): New function.
  13353. * grub-core/kern/mips/init.c (grub_arch_modules_addr): Moved from here...
  13354. * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): .. here
  13355. * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr): ... and
  13356. here.
  13357. * grub-core/kern/mips/startup.S (total_size): Rename to ...
  13358. (grub_total_modules_size): ... this. Make global.
  13359. [GRUB_MACHINE_ARC]: Don't attempt to move modules out of the bss.
  13360. * include/grub/offsets.h (GRUB_KERNEL_MIPS_LOONGSON_UNCOMPRESSED_ADDR):
  13361. New definition.
  13362. (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_ADDR): Likewise.
  13363. (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_ADDR): Likewise.
  13364. (GRUB_KERNEL_MACHINE_UNCOMPRESSED_ADDR): Likewise.
  13365. (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): Increased.
  13366. * util/grub-mkimage.c (image_target_desc): New flag
  13367. PLATFORM_FLAGS_MODULES_BEFORE_KERNEL.
  13368. (image_targets): Set PLATFORM_FLAGS_MODULES_BEFORE_KERNEL on mips-arc.
  13369. (generate_image): Handle images with modules before kernel.
  13370. 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
  13371. Prevent potential loss of memory map by overwrite on qemu-mips.
  13372. * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]:
  13373. Save ram size in $s4.
  13374. * grub-core/kern/mips/qemu_mips/init.c (RAMSIZE): Removed.
  13375. All users changed to grub_arch_memsize.
  13376. * grub-core/kern/mips/startup.S (grub_arch_machine): Restrict to
  13377. Loongson.
  13378. [GRUB_MACHINE_MIPS_QEMU_MIPS]: Save grub_arch_memsize.
  13379. * grub-core/loader/mips/linux.c (grub_linux_boot): Pass memory size.
  13380. * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): New
  13381. external variable.
  13382. 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
  13383. * .bzrignore: Remove grub-dumpbios.
  13384. 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
  13385. * util/grub.d/20_linux_xen.in: Honour GRUB_CMDLINE_LINUX_XEN_REPLACE
  13386. and GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT, which replace
  13387. GRUB_CMDLINE_LINUX and GRUB_CMDLINE_LINUX_DEFAULT (complementing the
  13388. existing options which append).
  13389. * docs/grub.texi (Simple configuration): Document new options.
  13390. Reported by: Ian Jackson. Fixes Debian bug #617538.
  13391. 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
  13392. * util/grub-fstest.c (cmd_cat): New function.
  13393. (fstest): Handle CMD_CAT.
  13394. (options): Add cat.
  13395. (argp_parser): Handle cat.
  13396. 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
  13397. * Makefile.util.def (grub-bin2h): Don't install.
  13398. * docs/man/grub-bin2h.h2m: Remove.
  13399. 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
  13400. * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Move to the right
  13401. place.
  13402. 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
  13403. Reenable qemu-mips port.
  13404. * configure.ac: Handle --target=qemu-mips and --target=qemu_mips.
  13405. Fix small arc bug while on it.
  13406. * gentpl.py: Handle qemu_mips.
  13407. * grub-core/Makefile.am: Likewise.
  13408. * grub-core/Makefile.core.def: Likewise.
  13409. * grub-core/disk/ata.c [GRUB_MACHINE_MIPS_QEMU_MIPS]: Remove
  13410. inappropriate includes.
  13411. (grub_ata_pciinit) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Removed.
  13412. (grub_ata_initialize): [GRUB_MACHINE_MIPS_QEMU_MIPS]: Rewritten.
  13413. * grub-core/kern/main.c (grub_modules_get_end)
  13414. [GRUB_MACHINE_MIPS_QEMU_MIPS]: Enable.
  13415. * grub-core/kern/mips/qemu-mips: Moved to ..
  13416. * grub-core/kern/mips/qemu_mips: ... this.
  13417. * grub-core/kern/mips/qemu_mips/init.c (grub_get_rtc): Removed.
  13418. (grub_machine_init): Call terminfo_init and serial_init.
  13419. * grub-core/kern/mips/startup.S: Change MIPS_LOONGSON to MACHINE.
  13420. * grub-core/loader/mips/linux.c (params) [GRUB_MACHINE_MIPS_QEMU_MIPS]:
  13421. New variable.
  13422. (grub_linux_boot) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle the qemu-mips
  13423. parameter passing.
  13424. (grub_linux_unload) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Free params.
  13425. (grub_cmd_linux) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle params.
  13426. (grub_cmd_initrd) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
  13427. * include/grub/mips/qemu_mips/cmos.h: New file.
  13428. * include/grub/mips/qemu-mips/kernel.h: Don't include cpu/kernel.h.
  13429. * include/grub/mips/qemu-mips/memory.h (grub_machine_mmap_iterate):
  13430. Removed.
  13431. * include/grub/mips/qemu-mips/serial.h (GRUB_MACHINE_SERIAL_PORTS):
  13432. Use correct mips-style address.
  13433. * include/grub/mips/qemu-mips/time.h: Include cpu/time.h.
  13434. (GRUB_TICKS_PER_SECOND): Removed.
  13435. (grub_get_rtc): Likewise.
  13436. (grub_cpu_idle): Likewise.
  13437. * include/grub/offsets.h (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ADDR):
  13438. New definition.
  13439. (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ALIGN): Likewise.
  13440. (GRUB_KERNEL_MIPS_QEMU_MIPS_COMPRESSED_SIZE): Likewise.
  13441. (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_SIZE): Likewise.
  13442. (GRUB_KERNEL_MIPS_QEMU_MIPS_TOTAL_MODULE_SIZE): Likewise.
  13443. (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
  13444. (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
  13445. (GRUB_KERNEL_MIPS_QEMU_MIPS_MOD_ALIGN): Likewise.
  13446. * util/grub-mkimage.c (image_targets): Add mipsel-qemu_mips-elf.
  13447. 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
  13448. SGI ARCS port.
  13449. * Makefile.util.def (libgrubmods.a): Add dvh.c.
  13450. * conf/Makefile.common (CCASFLAGS_PLATFORM): Add -mips3 on all mips
  13451. platforms.
  13452. * configure.ac: New target mips-arc.
  13453. * gentpl.py: Likewise.
  13454. * grub-core/Makefile.am: Likewise.
  13455. * grub-core/Makefile.core.def: Likewise.
  13456. (xz_decompress): Remove -D GRUB_MACHINE_LINK_ADDR.
  13457. (none_decompress): Likewise.
  13458. (lsdev): New module.
  13459. (datetime): Use lib/arc/datetime.c on ARC.
  13460. (part_dvh): New module.
  13461. * grub-core/commands/arc/lsdev.c: New file.
  13462. * grub-core/disk/arc/arcdisk.c: Likewise.
  13463. * grub-core/kern/mips/arc/init.c: Likewise.
  13464. * grub-core/kern/mips/cache_flush.S: Don't flush non 4-byte
  13465. aligned addresses.
  13466. * grub-core/kern/mips/dl.c (grub_arch_dl_check_header): Fix bigendian
  13467. support.
  13468. (grub_arch_dl_relocate_symbols): Likewise.
  13469. * grub-core/kern/mips/loongson/init.c (grub_get_rtc): Moved from here...
  13470. * grub-core/kern/mips/init.c (grub_get_rtc): ... here.
  13471. * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Have on all
  13472. platforms.
  13473. * grub-core/lib/arc/datetime.c: New file.
  13474. * grub-core/loader/mips/linux.c: Always include time.h. Don't include
  13475. pci.h on non-loongson.
  13476. (envp_off) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove.
  13477. (grub_linux_boot): Set unused registers to 0.
  13478. (grub_cmd_linux) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove envp.
  13479. * grub-core/mmap/mips/loongson/uppermem.c: Moved from here ...
  13480. * grub-core/mmap/mips/uppermem.c: ...here.
  13481. * grub-core/partmap/dvh.c: New file.
  13482. * grub-core/term/arc/console.c: Likewise.
  13483. * grub-core/term/terminfo.c (ANSI_C0_STR): New const.
  13484. (grub_terminfo_set_current): Add terminal "arc".
  13485. (grub_terminfo_readkey): Support ARC sequences.
  13486. * include/grub/arc/arc.h: New file.
  13487. * include/grub/arc/console.h: Likewise.
  13488. * include/grub/disk.h (grub_disk_dev_id): Add
  13489. GRUB_DISK_DEVICE_ARCDISK_ID.
  13490. * include/grub/mips/arc/kernel.h: New file.
  13491. * include/grub/mips/arc/memory.h: Likewise.
  13492. * include/grub/mips/arc/time.h: Likewise.
  13493. * include/grub/mips/loongson/kernel.h (grub_halt): Moved from here ...
  13494. * include/grub/mips/kernel.h (grub_halt): ... here.
  13495. * include/grub/mips/loongson.h (GRUB_CPU_REGISTER_WRAP): Moved from
  13496. here...
  13497. * include/grub/mips/mips.h (GRUB_CPU_REGISTER_WRAP): ... here.
  13498. (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): Moved from here ...
  13499. * include/grub/mips/mips.h (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): .. here
  13500. * include/grub/mips/loongson/kernel.h (grub_reboot): Removed redundant
  13501. proto.
  13502. * include/grub/mips/loongson/memory.h (GRUB_ARCH_LOWMEMVSTART): Moved
  13503. from here ...
  13504. * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMVSTART): ... here.
  13505. (GRUB_ARCH_LOWMEMPSTART): Moved from here ...
  13506. * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMPSTART): ... here.
  13507. (GRUB_ARCH_LOWMEMMAXSIZE): Moved from here ...
  13508. * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMMAXSIZE): ... here.
  13509. (GRUB_ARCH_HIGHMEMPSTART): Moved from here ...
  13510. * include/grub/mips/memory.h (GRUB_ARCH_HIGHMEMPSTART): ... here.
  13511. (grub_phys_addr_t): Moved from here ...
  13512. * include/grub/mips/memory.h (grub_phys_addr_t): ... here.
  13513. (grub_vtop): Moved from here ...
  13514. * include/grub/mips/memory.h (grub_vtop): ... here.
  13515. (grub_map_memory): Moved from here ...
  13516. * include/grub/mips/memory.h (grub_map_memory): ... here.
  13517. (grub_unmap_memory): Moved from here ...
  13518. * include/grub/mips/memory.h (grub_unmap_memory): ... here.
  13519. (grub_machine_mmap_iterate): Moved from here ...
  13520. * include/grub/mips/memory.h (grub_machine_mmap_iterate): ... here.
  13521. (grub_mmap_get_lower): Moved from here ...
  13522. * include/grub/mips/memory.h (grub_mmap_get_lower): ... here.
  13523. (grub_mmap_get_upper): Moved from here ...
  13524. * include/grub/mips/memory.h (grub_mmap_get_upper): ... here.
  13525. * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
  13526. here ...
  13527. * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
  13528. * include/grub/mips/loongson/time.h (grub_get_rtc): Moved from
  13529. here ...
  13530. * include/grub/mips/time.h (grub_get_rtc): ... here.
  13531. * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
  13532. here ...
  13533. * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
  13534. * include/grub/mips/loongson/time.h (grub_cpu_idle): Moved from
  13535. here ...
  13536. * include/grub/mips/time.h (grub_cpu_idle): ... here.
  13537. * include/grub/offsets.h (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): New
  13538. definition.
  13539. (GRUB_KERNEL_MIPS_ARC_LINK_ALIGN): Likewise.
  13540. (GRUB_KERNEL_MIPS_ARC_COMPRESSED_SIZE): Likewise.
  13541. (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_SIZE): Likewise.
  13542. (GRUB_KERNEL_MIPS_ARC_TOTAL_MODULE_SIZE): Likewise.
  13543. (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
  13544. (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
  13545. (GRUB_KERNEL_MIPS_ARC_MOD_ALIGN): Likewise.
  13546. (GRUB_MACHINE_LINK_ADDR): Likewise.
  13547. * include/grub/terminfo.h (GRUB_TERMINFO_READKEY_MAX_LEN): Increased
  13548. to 6.
  13549. * util/grub-install.in: Run dvhtool on ARC.
  13550. * util/grub-mkimage.c (image_targets): Add mips-arc.
  13551. (generate_image): Handle ECOFF output for mips-arc.
  13552. 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
  13553. * grub-core/bus/pci.c (grub_memalign_dma32): Always allocate in 64-byte
  13554. blocks.
  13555. 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
  13556. * grub-core/bus/usb/usbhub.c (attach_root_port): Wait 10ms
  13557. after enabling port.
  13558. 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
  13559. Skip incorrect USB devices.
  13560. * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Fail if
  13561. configcnt == 0.
  13562. * include/grub/usb.h (grub_usb_err_t): New enum value
  13563. GRUB_USB_ERR_BADDEVICE.
  13564. 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
  13565. Fuloong video init support.
  13566. * include/grub/vga.h (grub_vga_write_arx): inb monochrome address as
  13567. well.
  13568. (grub_vga_read_arx): New function.
  13569. * grub-core/video/sis315pro.c (GRUB_SIS315PRO_MMIO_SPACE): New
  13570. definition.
  13571. (framebuffer): New members io, mmioptr and mmiobase.
  13572. (read_sis_cmd): New function.
  13573. (write_sis_cmd): Likewise.
  13574. (grub_video_sis315pro_setup): Do the initialisation. Use 640x480
  13575. rather than 640x400.
  13576. * grub-core/video/sis315_init.c: New file.
  13577. 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
  13578. * grub-core/bus/cs5536.c: Don't include grub/machine/kernel.h on
  13579. non-loongson.
  13580. * grub-core/kern/mips/dl.c (grub_arch_dl_init_linker): Fix argument
  13581. to grub_dl_register_symbol.
  13582. 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
  13583. Fix compilation errors.
  13584. * grub-core/term/ns8250.c (serial_get_divisor): Declare 'port' as
  13585. potentially unused.
  13586. * grub-core/loader/i386/linux.c (grub_linux_setup_video):
  13587. Handle GRUB_VIDEO_DRIVER_SIS315PRO.
  13588. * grub-core/bus/cs5536.c (grub_cs5536_init_geode): Restrict DIVIL init
  13589. to loongson machines.
  13590. 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
  13591. Several FS mtime support.
  13592. * grub-core/fs/affs.c (grub_affs_time): New struct.
  13593. (grub_affs_file): New field mtime.
  13594. (grub_fshelp_node): Changed 'block' and 'parent' to more appropriate
  13595. type. Removed 'size'. New field 'di'. All users updated.
  13596. (grub_affs_mount): Simplify checsum checking.
  13597. (grub_affs_iterate_dir): New helper grub_affs_create_node.
  13598. (grub_affs_dir): Handle mtime.
  13599. * grub-core/fs/cpio.c (grub_cpio_find_file): Handle mtime.
  13600. (grub_cpio_dir): Likewise.
  13601. * grub-core/fs/hfs.c (grub_hfs_dirrec): New fields 'ctime' and 'mtime'.
  13602. (grub_hfs_filerec): New field mtime.
  13603. (grub_hfs_dir): Handle mtime.
  13604. (grub_hfs_mtime): New function.
  13605. (grub_hfs_fs): Register grub_hfs_mtime.
  13606. * grub-core/fs/iso9660.c (grub_iso9660_date2): New struct.
  13607. (grub_iso9660_dir): New field mtime.
  13608. (grub_fshelp_node): New field dirent.
  13609. (iso9660_to_unixtime): New function.
  13610. (iso9660_to_unixtime2): Likewise.
  13611. (grub_iso9660_read_symlink): Use node->dirent.
  13612. (grub_iso9660_iterate_dir): Likewise.
  13613. (grub_iso9660_dir): Set mtime.
  13614. (grub_iso9660_mtime): New function.
  13615. (grub_iso9660_fs): Register grub_iso9660_mtime.
  13616. * grub-core/fs/jfs.c (grub_jfs_time): New struct.
  13617. (grub_jfs_inode): New fields atime, ctime and mtime.
  13618. (grub_jfs_dir): Set mtime.
  13619. * grub-core/fs/minix.c (grub_minix_dir): Likewise.
  13620. * grub-core/fs/ntfs.c (list_file): Set mtime.
  13621. (grub_ntfs_dir): Likewise.
  13622. * grub-core/fs/reiserfs.c (grub_fshelp_node): New field 'mtime'.
  13623. (grub_reiserfs_iterate_dir): Set mtime.
  13624. (grub_reiserfs_dir): Likewise.
  13625. * grub-core/fs/sfs.c (grub_sfs_obj): New field mtime.
  13626. (grub_fshelp_node): Likewise.
  13627. (grub_sfs_iterate_dir): Set mtime.
  13628. (grub_sfs_dir): Likewise.
  13629. * grub-core/fs/udf.c (grub_udf_dir): Set mtime.
  13630. * grub-core/fs/xfs.c (grub_xfs_time): New struct.
  13631. (grub_xfs_inode): New fields atime, mtime, ctime.
  13632. (grub_xfs_dir): Set mtime.
  13633. * include/grub/datetime.h (grub_datetime2unixtime): New function.
  13634. * include/grub/hfs.h (grub_hfs_sblock): New fields ctime and mtime.
  13635. * include/grub/ntfs.h (grub_fshelp_node): New field mtime.
  13636. Support UDF symlinks.
  13637. * grub-core/fs/udf.c (grub_udf_iterate_dir): Handle symlinks.
  13638. (grub_ufs_read_symlink): New function. All users updated.
  13639. Check amiga partmap checksum.
  13640. * grub-core/partmap/amiga.c (grub_amiga_rdsk): Pad to 128 bytes.
  13641. (grub_amiga_partition): Likewise.
  13642. (amiga_partition_map_checksum): New function.
  13643. (amiga_partition_map_iterate): Check checksum.
  13644. 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
  13645. ROMFS support.
  13646. * Makefile.util.def (libgrubmods.a): Add romfs.
  13647. * grub-core/Makefile.core.def (romfs): New module.
  13648. * grub-core/fs/romfs.c: New file.
  13649. 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
  13650. Squashfs v4 support.
  13651. * Makefile.util.def (libgrubmods.a): Add squash4.
  13652. * grub-core/Makefile.core.def (squash4): New module.
  13653. * grub-core/fs/squash4.c: New file.
  13654. * grub-core/io/gzio.c (grub_gzio): New members disk_input_off,
  13655. disk_input_start, disk_input.
  13656. (get_byte): Handle disk_input.
  13657. (grub_zlib_disk_read): New function.
  13658. * include/grub/deflate.h (grub_zlib_disk_read): New proto.
  13659. 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
  13660. 2011-05-15 Feiran Zheng <famcool@gmail.com>
  13661. * Makefile.util.def (libgrubmods.a): Add minix3.
  13662. * grub-core/Makefile.core.def (minix3): New module.
  13663. * grub-core/fs/minix.c (GRUB_MINIX_MAGIC) [MODE_MINIX3]: New value.
  13664. (GRUB_MINIX_BSIZE): Removed.
  13665. (GRUB_MINIX_INODE_DIR_BLOCKS): New definition. All users updated.
  13666. (grub_minix_ino_t): New type.
  13667. (grub_minix_le_to_cpu_ino): New macro.
  13668. (GRUB_MINIX_ZONE2SECT): New definition. All users updated.
  13669. (grub_minix_sblock) [MODE_MINIX3]: Change for minix3.
  13670. (grub_minix_data): New field block_size.
  13671. (grub_minix_read_file): Handle 64-bit correctly.
  13672. * grub-core/fs/minix3.c: New file.
  13673. 2011-05-15 Tristan Gingold <gingold@free.fr>
  13674. 2011-05-15 Robert Millan <rmh.grub@aybabtu.com>
  13675. 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
  13676. IA64 support.
  13677. * Makefile.util.def (libgrubmods.a): Add grub-core/kern/ia64/dl_helper.c
  13678. * configure.ac: Add ia64-efi target.
  13679. Probe for __ia64_trampoline, __udivsi3, __umoddi3, __udivdi3,
  13680. __divsi3, __modsi3, __umodsi3, __moddi3 and __divdi3 symbols.
  13681. * gentpl.py: Add ia64_efi platform.
  13682. Rename x86_efi to efi and Add ia64-efi. All users updated.
  13683. * grub-core/Makefile.am: Set KERNEL_HEADER_FILES for ia64-efi.
  13684. * grub-core/Makefile.core.def (kernel.img): Add compile flags for ia64.
  13685. Remove kern/generic/rtc_get_time_ms.c on EFI.
  13686. Add kern/ia64/efi/startup.S, kern/ia64/efi/init.c, kern/ia64/dl.c,
  13687. kern/ia64/dl_helper.c on ia64-efi.
  13688. Add kern/emu/cache.c on emu.
  13689. (linux): Use on loader/ia64/efi/linux.c on ia64.
  13690. * grub-core/gensymlist.sh (grub_register_exported_symbols): Check
  13691. whether symbol is a function.
  13692. * grub-core/kern/dl.c [GRUB_MACHINE_EMU]: Include sys/mman.h.
  13693. (grub_symbol): New field 'isfunc'.
  13694. (grub_dl_resolve_symbol): Return whole symbol rather than just address.
  13695. (grub_dl_register_symbol): New argument 'isfunc'. All users updated.
  13696. (grub_dl_load_segments): Place all sections into the same region.
  13697. [__ia64__]: Create trampolines and got.
  13698. [GRUB_MACHINE_EMU]: Call mprotect.
  13699. (grub_dl_resolve_symbols): Resolve symbol type as well.
  13700. [__ia64__]: Create function descriptors.
  13701. * grub-core/kern/efi/efi.c (grub_get_rtc): Renamed to ...
  13702. (grub_rtc_get_time_ms): ... this. Expressions simplified.
  13703. (grub_get_rtc): New function.
  13704. * grub-core/kern/emu/cache.c [__ia64__]: New file.
  13705. * grub-core/kern/emu/cache.S: Renamed to ...
  13706. * grub-core/kern/emu/cache_s.S: ... this.
  13707. [__ia64__]: Add a nop.
  13708. * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size)
  13709. [__ia64__]: New function.
  13710. * grub-core/kern/emu/lite.c [__ia64__]: Include ../ia64/dl.c.
  13711. * grub-core/kern/ia64/dl.c: New file.
  13712. * grub-core/kern/ia64/dl_helper.c: Likewise.
  13713. * grub-core/kern/ia64/efi/init.c: New file.
  13714. * grub-core/kern/ia64/efi/startup.S: Likewise.
  13715. * grub-core/lib/efi/halt.c [__ia64__]: Don't try acpi.
  13716. * grub-core/lib/ia64/longjmp.S: New file (from glibc).
  13717. * grub-core/lib/ia64/setjmp.S: Likewise (from glibc).
  13718. * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/setjmp.S.
  13719. * grub-core/loader/ia64/efi/linux.c: New file.
  13720. * include/grub/dl.h (GRUB_MOD_NAME): Redefined using C rather than asm.
  13721. (GRUB_MOD_DEP): Likewise.
  13722. (grub_dl) [__ia64__]: New fields got and tramp.
  13723. (grub_dl): New field 'base'.
  13724. (grub_dl_register_symbol): New argument isfunc. All users updated.
  13725. (GRUB_IA64_DL_TRAMP_ALIGN): New definition.
  13726. (GRUB_IA64_DL_TRAMP_SIZE): Likewise.
  13727. (GRUB_IA64_DL_GOT_ALIGN): Likewise.
  13728. (grub_ia64_dl_get_tramp_got_size): New proto.
  13729. (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Likewise
  13730. (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Likewise
  13731. (grub_arch_dl_get_tramp_got_size) [__ia64__]: Likewise
  13732. * include/grub/efi/api.h: Skip call wrappers on ia64.
  13733. * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_IA64): New definition.
  13734. * include/grub/efi/time.h (GRUB_TICKS_PER_SECOND): Change to 1000.
  13735. * include/grub/elf.h (ELF_ST_INFO): New definition.
  13736. * include/grub/ia64/efi/kernel.h: New file.
  13737. * include/grub/ia64/efi/memory.h: Likewise.
  13738. * include/grub/ia64/efi/time.h: Likewise.
  13739. * include/grub/ia64/kernel.h: Likewise.
  13740. * include/grub/ia64/setjmp.h: Likewise (from glibc).
  13741. * include/grub/ia64/time.h: New file.
  13742. * include/grub/ia64/types.h: Likewise.
  13743. * include/grub/libgcc.h (__udivsi3, __umodsi3, __umoddi3, __udivdi3,
  13744. __moddi3, __divdi3, __divsi3, __modsi3, __ia64_trampoline):
  13745. New protos.
  13746. * include/grub/offsets.h (GRUB_KERNEL_IA64_EFI_PREFIX): New definition.
  13747. (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
  13748. * include/grub/types.h (PRIxGRUB_ADDR): Likewise.
  13749. * util/grub-mkimage.c (image_target_desc): New field pe_target.
  13750. All users updated.
  13751. (EFI64_HEADER_SIZE): New definition. All users updated.
  13752. (image_targets): Add ia64-efi.
  13753. * util/grub-mkimagexx.c (relocate_symbols): New arguments jumpers and
  13754. jumpers_addr. All users updated.
  13755. Create function descriptors.
  13756. (count_funcs): New function.
  13757. (unaligned_uint32): New struct.
  13758. (MASK20): New definition.
  13759. (MASK19): Likewise.
  13760. (MASKF21): Likewise.
  13761. (add_value_to_slot_20b): New function.
  13762. (add_value_to_slot_21_real): Likewise.
  13763. (add_value_to_slot_21): Likewise.
  13764. (ia64_kernel_trampoline): New struct.
  13765. (nopm): New variable.
  13766. (jump): Likewise.
  13767. (make_trampoline): New function.
  13768. (relocate_addresses): Handle ia64.
  13769. (make_reloc_section): Likewise.
  13770. (load_image): Likewise.
  13771. 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
  13772. * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Silence spurious
  13773. warning. Move variables before code while on it.
  13774. 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
  13775. Fuloong support.
  13776. * configure.ac: Rename yeeloong platform to loongson. All users updated.
  13777. * grub-core/Makefile.core.def (fwstart_fuloong): New image.
  13778. * grub-core/boot/mips/loongson/fuloong.S: New file.
  13779. * grub-core/boot/mips/loongson/fwstart.S: Wait for CS5536 to come up.
  13780. Explicitly init CS5536.
  13781. [FULOONG]: Don't use serial until CS5536 is available.
  13782. Set GPIO based on dumps.
  13783. (serial_hw_init) [FULOONG]: Handle CS5536 parts.
  13784. [FULOONG]: Handle GPIO and memory controller differences.
  13785. Parse machine type in $a2.
  13786. * grub-core/boot/mips/startup_raw.S: Determine and save the
  13787. architecture.
  13788. * grub-core/bus/cs5536.c (gpiodump): Move to fwstart.S.
  13789. (grub_cs5536_init_geode): Remove gpio part. Conditionalise DIVIL
  13790. init on architecture type.
  13791. * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
  13792. SIS315E. Don't init at_keyboard on fuloong.
  13793. (grub_halt): Support Fuloong.
  13794. * grub-core/kern/mips/startup.S [LOONGSON]: Save $s7.
  13795. * grub-core/loader/mips/linux.c (LOONGSON_MACHTYPE): Removed.
  13796. (loongson_machtypes): New array.
  13797. (grub_cmd_linux) [GRUB_MACHINE_MIPS_LOONGSON]: Pass the right machine
  13798. type.
  13799. * grub-core/term/ns8250.c (serial_get_divisor): New parameter port and
  13800. config. All users updated. Handle CS5536 serial.
  13801. * grub-core/term/serial.c (grub_serial_register): Conditionalise
  13802. default port on machine type. Register serial as inactive.
  13803. * grub-core/video/sis315pro.c: New file.
  13804. * include/grub/cs5536.h (GRUB_CS5536_MSR_MAILBOX_CONFIG_ENABLED): New
  13805. definition.
  13806. (GRUB_CS5536_MSR_MAILBOX_CONFIG): Likewise.
  13807. (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART1_COM1): Likewise.
  13808. (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART2_COM3): Likewise.
  13809. (GRUB_CS5536_MSR_DIVIL_UART1_CONF): Likewise.
  13810. (GRUB_CS5536_MSR_DIVIL_UART2_CONF): Likewise.
  13811. * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_SHUTDOWN_GPIO): Rename
  13812. to ...
  13813. (GRUB_CPU_YEELOONG_SHUTDOWN_GPIO): ... this.
  13814. * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_YEELOONG): New
  13815. definition.
  13816. (GRUB_ARCH_MACHINE_FULOONG): Likewise.
  13817. (grub_arch_machine): New extern var.
  13818. * include/grub/mips/loongson/serial.h
  13819. (GRUB_MACHINE_SERIAL_DIVISOR_115200): Renamed to ...
  13820. (GRUB_MACHINE_SERIAL_PORT0_DIVISOR_115200): ... this.
  13821. (GRUB_MACHINE_SERIAL_PORT): Renamed to ...
  13822. (GRUB_MACHINE_SERIAL_PORT0): ... this.
  13823. (GRUB_MACHINE_SERIAL_PORT2_DIVISOR_115200): New definition.
  13824. (GRUB_MACHINE_SERIAL_PORT1): Likewise.
  13825. (GRUB_MACHINE_SERIAL_PORT2): Likewise.
  13826. (GRUB_MACHINE_SERIAL_PORTS): Include ports 1 and 2.
  13827. * include/grub/term.h (grub_term_register_input_inactive): New inline
  13828. function.
  13829. (grub_term_register_output_inactive): Likewise.
  13830. * include/grub/video.h (grub_video_driver_id): New value
  13831. GRUB_VIDEO_DRIVER_SIS315PRO.
  13832. * util/grub-mkimage.c (image_target_desc): Rename name to dirname.
  13833. New field "names". All users updated.
  13834. New field value IMAGE_FULOONG_FLASH.
  13835. (generate_image): USe separate fwstart hashes for yeeloong and fuloong.
  13836. 2011-05-14 Jordan Uggla <jordan.uggla@gmail.com>
  13837. * docs/grub.texi (Invoking grub-install): Fix additional outdated claims
  13838. and add some clarification.
  13839. 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
  13840. * util/grub.d/10_linux.in: Autoload gzio since it's needed on some
  13841. platforms if kernel is compressed.
  13842. 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
  13843. * grub-core/kern/mm.c (grub_memalign): Disable auto-unloadding of
  13844. unused modules since currently referrence counter isn't reliable and
  13845. there isn't much memory to recover there anyway.
  13846. 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
  13847. * grub-core/kern/dl.c (grub_dl_load_file): Decrease ref counter
  13848. rather than resetting it to allow modules to reference themselves
  13849. in init.
  13850. 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
  13851. * grub-core/kern/dl.c (grub_dl_unload): Don't decrease reference
  13852. counter on dependencies since grub_dl_unref already handles this.
  13853. 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
  13854. * grub-core/font/font_cmd.c (loadfont_command): Set grub_errno
  13855. on error if not already done.
  13856. 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
  13857. Fix few potential memory misusage.
  13858. * grub-core/font/font.c (load_font_index): Don't free char_index to
  13859. avoid double free.
  13860. (grub_font_load): Zero-fill font at alloc for safety.
  13861. Close file on error.
  13862. (free_font): Free bmp_idx.
  13863. 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
  13864. * docs/grub.texi (Installation): Fix several outdated claims.
  13865. 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
  13866. Handle module_license on windows.
  13867. * util/grub-pe2elf.c (MODLICENSE_SECTION): New definition. All following
  13868. sections shifted.
  13869. (insert_string): Make argument const char * instead of char *.
  13870. (write_section_data): Handle long section names.
  13871. Handle module_license.
  13872. 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
  13873. * grub-core/commands/menuentry.c (grub_cmd_menuentry): Correctly
  13874. handle class-free menuentries.
  13875. (grub_normal_add_menu_entry): Add a check to be sure.
  13876. 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
  13877. * grub-core/term/at_keyboard.c (set1_e0_mapping): Fix swap between
  13878. PgUp and PgDown.
  13879. 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
  13880. * configure.ac: Bump version to 1.99.
  13881. 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
  13882. Give ATA device a bit more time on first try in order to allow disks
  13883. to spin up.
  13884. * grub-core/disk/ata.c (grub_atapi_identify): Use GRUB_ATA_TOUT_DEV_INIT
  13885. if dev->present is 1. Reset dev->present on failure.
  13886. (grub_ata_device_initialize): Set dev->present to 1.
  13887. * include/grub/ata.h (GRUB_ATA_TOUT_DEV_INIT): New value.
  13888. (grub_ata_device): New member 'present'.
  13889. 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
  13890. * util/grub-mkimage.c (generate_image): Update hash.
  13891. 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
  13892. Flush caches on DMA memory.
  13893. * grub-core/kern/mips/cache.S (grub_arch_sync_dma_caches): New function.
  13894. * grub-core/bus/pci.c (grub_memalign_dma32): Flush caches.
  13895. (grub_dma_free): Likewise.
  13896. * include/grub/cache.h (grub_arch_sync_dma_caches): New declaration.
  13897. 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
  13898. * grub-core/boot/mips/yeeloong/fwstart.S: Add explicit set mips3
  13899. to avoid asm treating ld and sd as macros.
  13900. 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
  13901. * grub-core/boot/mips/startup_raw.S: Flush cache after loading
  13902. decompressor.
  13903. 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
  13904. * grub-core/boot/mips/startup_raw.S: Use jalr rather than bal to call
  13905. grub_decompress_core since later would fail if grub_decompress_core
  13906. is too far.
  13907. 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
  13908. * grub-core/kern/mips/dl.c (grub_arch_dl_relocate_symbols): Handle
  13909. R_MIPS_JALR since it's used by newer compiler.
  13910. 2011-05-10 Vladimir Serbinenko <phcoder@gmail.com>
  13911. * util/grub.d/10_linux.in: Correctly handle the Linux in root.
  13912. 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
  13913. * grub-core/loader/efi/chainloader.c (grub_chainloader_unload): Set
  13914. file_path to 0 for surety.
  13915. (grub_chainloader_boot): Set exit_data to NULL.
  13916. Unset the loader once done.
  13917. (grub_cmd_chainloader): Fix confusing error message if file is empty.
  13918. 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
  13919. * grub-core/term/at_keyboard.c (fetch_key): Make a printf on
  13920. unknown key into a dprintf.
  13921. 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
  13922. * grub-core/kern/emu/hostdisk.c (linux_find_partition): Don't abort
  13923. on first non-existant partition.
  13924. 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
  13925. * grub-core/kern/emu/hostdisk.c (open_device): Set data->fd to -1 if
  13926. openning fails.
  13927. Reported by: Mark Korenberg.
  13928. 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
  13929. * grub-core/kern/emu/hostdisk.c (linux_find_partition): Prevent possible
  13930. overflow.
  13931. 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
  13932. * util/grub-mkimage.c (main): Explicitely flush and sync the output
  13933. before closing to ensure that it will be readable by grub-setup.
  13934. 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
  13935. * grub-core/loader/efi/appleloader.c (MAKE_PIWG_PATH): New macro.
  13936. (devpath_1): Use MAKE_PIWG_PATH.
  13937. (devpath_2): Likewise.
  13938. (devpath_3): Likewise.
  13939. (devpath_4): Likewise.
  13940. (devpath_5): Likewise.
  13941. (devpath_6): Likewise.
  13942. The appleldr.mod was checked that to be binary identical to previous
  13943. version.
  13944. 2011-05-05 Zach <mikezackles>
  13945. Support 2010 Macbooks.
  13946. * grub-core/loader/efi/appleloader.c (devpath_6): New variable.
  13947. (devs): Add devpath_6.
  13948. 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
  13949. * util/grub-mkpasswd-pbkdf2.c (main): Use /dev/urandom and not
  13950. /dev/random. /dev/urandom is good enough for our purposes (salting).
  13951. 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
  13952. * util/grub-mkrescue.in (process_input_dir): Include efiemu??.o.
  13953. 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
  13954. * grub-core/lib/legacy_parse.c (grub_legacy_parse): Correctly handle
  13955. hexadecimal.
  13956. 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
  13957. * grub-core/efiemu/main.c (grub_efiemu_load_file): Return grub_errno
  13958. and not 0 on failure.
  13959. 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
  13960. * grub-core/fs/i386/pc/pxe.c (grub_pxefs_dir): Return
  13961. GRUB_ERR_BAD_FS rather than GRUB_ERR_IO if the disk is not a pxe
  13962. disk; otherwise grub_fs_probe will not fall back to the next
  13963. filesystem.
  13964. (grub_pxefs_open): Likewise, for consistency.
  13965. Reported and tested by: Ezekiel Grave.
  13966. 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
  13967. * tests/partmap_test.in: Don't hardcode path to parted.
  13968. Reported by: Peter Hjalmarsson. Fixes Savannah bug #33150.
  13969. 2011-05-01 Colin Watson <cjwatson@ubuntu.com>
  13970. * docs/grub.texi (GRUB only offers a rescue shell): Suggest the use
  13971. of `ls' to find out which devices are available.
  13972. 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
  13973. * grub-core/loader/i386/linux.c (grub_linux_boot): Supply target rather
  13974. than source address for efi mmap buffer.
  13975. 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
  13976. * grub-core/partmap/amiga.c (amiga_partition_map_iterate): Fix a
  13977. wrong action on non-detecting the magic.
  13978. 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
  13979. * grub-core/gnulib/regex.c: Remove GRUB_MOD_LICENSE since it's
  13980. already supplied by another part of the module (fixes compilation on
  13981. FreeBSD).
  13982. 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
  13983. * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Make mdraid UUID
  13984. match the one used by mdadm.
  13985. 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
  13986. * po/README: Add instructions for creating po/LINGUAS.
  13987. 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
  13988. Add "SEE ALSO" sections to most man pages. Fixes Debian bug
  13989. #551428.
  13990. * docs/man/grub-editenv.h2m (SEE ALSO): New section.
  13991. * docs/man/grub-emu.h2m (SEE ALSO): Likewise.
  13992. * docs/man/grub-fstest.h2m (SEE ALSO): Likewise.
  13993. * docs/man/grub-install.h2m (SEE ALSO): Likewise.
  13994. * docs/man/grub-macho2img.h2m (SEE ALSO): Likewise.
  13995. * docs/man/grub-menulst2cfg.h2m (SEE ALSO): Likewise.
  13996. * docs/man/grub-mkconfig.h2m (SEE ALSO): Likewise.
  13997. * docs/man/grub-mkdevicemap.h2m (SEE ALSO): Likewise.
  13998. * docs/man/grub-mkfont.h2m (SEE ALSO): Likewise.
  13999. * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
  14000. * docs/man/grub-mklayout.h2m (SEE ALSO): Likewise.
  14001. * docs/man/grub-mknetdir.h2m (SEE ALSO): Likewise.
  14002. * docs/man/grub-mkpasswd-pbkdf2.h2m (SEE ALSO): Likewise.
  14003. * docs/man/grub-mkrelpath.h2m (SEE ALSO): Likewise.
  14004. * docs/man/grub-mkrescue.h2m (SEE ALSO): Likewise.
  14005. * docs/man/grub-ofpathname.h2m (SEE ALSO): Likewise.
  14006. * docs/man/grub-pe2elf.h2m (SEE ALSO): Likewise.
  14007. * docs/man/grub-probe.h2m (SEE ALSO): Likewise.
  14008. * docs/man/grub-reboot.h2m (SEE ALSO): Likewise.
  14009. * docs/man/grub-script-check.h2m (SEE ALSO): Likewise.
  14010. * docs/man/grub-set-default.h2m (SEE ALSO): Likewise.
  14011. * docs/man/grub-setup.h2m (SEE ALSO): Likewise.
  14012. 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
  14013. * grub-core/kern/emu/getroot.c
  14014. (grub_find_root_device_from_mountinfo): Remove non-virtual-device
  14015. test that was incorrectly reintroduced in r3214.
  14016. Reported by: Ian Dall. Fixes Savannah bug #33133.
  14017. 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
  14018. Fix stack pointer handling in 16-bit relocator.
  14019. * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move
  14020. grub_relocator16_sp to %esp rather than %ss, and zero-extend it.
  14021. Fixes Ubuntu bug #683904.
  14022. 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
  14023. * configure.ac: Bump version to 1.99~rc2.
  14024. 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
  14025. * include/grub/dl.h [ASM_FILE]: Adapt for assembly.
  14026. * grub-core/lib/i386/setjmp.S: Add missing GRUB_MOD_LICENSE.
  14027. * grub-core/lib/x86_64/setjmp.S: Likewise.
  14028. * grub-core/lib/mips/setjmp.S: Likewise.
  14029. * grub-core/lib/powerpc/setjmp.S: Likewise.
  14030. * grub-core/lib/sparc64/setjmp.S: Likewise.
  14031. 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
  14032. * grub-core/lib/efi/datetime.c: Add missing GRUB_MOD_LICENSE.
  14033. * grub-core/lib/efi/datetime.c: Likewise.
  14034. 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
  14035. * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_flush):
  14036. New function.
  14037. (grub_util_biosdisk_close): Use grub_util_biosdisk_flush.
  14038. * include/grub/emu/hostdisk.h (grub_util_biosdisk_flush): New proto.
  14039. * util/grub-setup.c (setup): Use grub_util_biosdisk_flush.
  14040. 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
  14041. * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Preserve previous
  14042. bitmap.
  14043. (grub_gfxterm_term_init): Likewise.
  14044. 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
  14045. Take into account the decorations the computing menu entry width.
  14046. * grub-core/gfxmenu/widget-box.c (get_border_width): New function.
  14047. (grub_gfxmenu_create_box): Register get_border_width.
  14048. * grub-core/gfxmenu/gui_list.c (draw_menu): Use get_border_width
  14049. if available.
  14050. * include/grub/gfxwidgets.h (grub_gfxmenu_box): New member
  14051. get_border_width.
  14052. 2011-04-18 Endres Puschner <code@e7p.de>
  14053. * grub-core/gfxmenu/icon_manager.c (grub_gfxmenu_icon_manager_get_icon):
  14054. Don't skip first class.
  14055. 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
  14056. * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Support huge
  14057. chunks.
  14058. * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_BUG.
  14059. 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
  14060. Complete 64-bit division support.
  14061. * grub-core/kern/misc.c (grub_divmod64): Rename to ...
  14062. (grub_divmod64_full): ... this. Support 64-bit divisor and reminder.
  14063. * include/grub/misc.h (grub_divmod64): Rename to ...
  14064. (grub_divmod64_full): ... this.
  14065. (grub_divmod64): New inline function.
  14066. 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
  14067. * util/grub-mkimage.c (generate_image): Add forgotten comma.
  14068. 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
  14069. * util/grub-mkimage.c (generate_image): Update fwstart.img hash after
  14070. performing the necessary test.
  14071. 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
  14072. * Makefile.am (multiboot.elf): Add -Wl,--build-id=none.
  14073. (kfreebsd.elf): Likewise.
  14074. (pc-chainloader.elf): Likewise.
  14075. (ntldr.elf): Likewise.
  14076. 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
  14077. Identify RAID by its UUID rather than (guessed) name.
  14078. * grub-core/disk/raid.c (ascii2hex): New function.
  14079. (grub_raid_open): Accept mduuid/%s specification.
  14080. * grub-core/kern/emu/getroot.c (get_mdadm_name): Revamped into ...
  14081. (get_mdadm_uuid): ... this.
  14082. (grub_util_get_grub_dev): Use mduuid/%s if UUID is available.
  14083. 2011-04-16 Vladimir Serbinenko <phcoder@gmail.com>
  14084. * grub-core/gfxmenu/gui_image.c (rescale_image): Don't attempt to scale
  14085. to negative size.
  14086. 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
  14087. * util/grub.d/10_linux.in: Add rootflags=subvol=<name> if / is on a
  14088. btrfs subvolume.
  14089. * util/grub.d/20_linux_xen.in: Likewise.
  14090. 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
  14091. Rewrite /proc/self/mountinfo handling to cope with bind-mounts and
  14092. move-mounts appearing out of order. Fixes Ubuntu bug #738345.
  14093. * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
  14094. Build a list of relevant visible mounts using the mnt_id and
  14095. parent_mnt_id fields, and then scan that list at the end.
  14096. 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
  14097. * docs/grub.texi (normal): New section.
  14098. (normal_exit): New section.
  14099. (Embedded configuration): Add reference to normal.
  14100. (GRUB only offers a rescue shell): Likewise.
  14101. * docs/grub-dev.texi (Error Handling): Fix typo.
  14102. 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
  14103. * NEWS: Drop obsolete entry about probe-only btrfs support.
  14104. 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
  14105. * util/import_gcry.py: Fix typo.
  14106. 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
  14107. * NEWS: Add btrfs support.
  14108. 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
  14109. 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
  14110. BtrFS support. Written by me (Vladimir) with important bugfixes and
  14111. even more important testing by Colin.
  14112. * Makefile.util.def (libgrubmods.a): Add crc.c and gzio.c
  14113. * grub-core/Makefile.core.def (btrfs): Add crc.c.
  14114. * grub-core/fs/btrfs.c: Stub replaced with real implementation.
  14115. * grub-core/io/gzio.c (grub_gzio): New fields mem_input_size,
  14116. mem_input_off and mem_input. All users updated to accept in-RAM input.
  14117. (gzio_seek): New function.
  14118. (test_zlib_header): Likewise.
  14119. (grub_gzio_read): Likewise.
  14120. (grub_zlib_decompress): Likewise.
  14121. * grub-core/kern/emu/getroot.c (grub_find_root_device_from_mountinfo):
  14122. Accept partial and non-virtual mounts.
  14123. (grub_guess_root_device): Do rescanning after device_from_mountinfo to
  14124. avoid receiving /dev/dm-X as device.
  14125. * grub-core/kern/emu/misc.c (grub_make_system_path_relative_to_its_root):
  14126. Handle bind and partial mounts.
  14127. * grub-core/lib/crc.c: New file.
  14128. * include/grub/deflate.h: Likewise.
  14129. * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo): New
  14130. proto.
  14131. * include/grub/lib/crc.h: New file.
  14132. 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
  14133. Implement automatic module license checking according to new GNU
  14134. guidelines.
  14135. * grub-core/kern/dl.c (grub_dl_check_license): New function.
  14136. (grub_dl_load_core): Use grub_dl_check_license.
  14137. * include/grub/dl.h (GRUB_MOD_SECTION): New macro.
  14138. (GRUB_MOD_LICENSE): Likewise.
  14139. (GRUB_MOD_DUAL_LICENSE): Likewise.
  14140. All modules updated.
  14141. 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
  14142. * grub-core/fs/btrfs.c (grub_btrfs_fs) [GRUB_UTIL]: Set
  14143. reserved_first_sector to 1. btrfs reserves plenty of space for boot
  14144. loaders.
  14145. Reported by: Gene Cumm. Fixes Ubuntu bug #757446.
  14146. 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
  14147. * util/grub-fstest.c (cmd_cmp): Check that sizes match.
  14148. 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
  14149. * util/grub-fstest.c (read_file): Report GRUB error if file opening
  14150. failed.
  14151. 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
  14152. * grub-core/kern/file.c (grub_file_open): Don't take into account the
  14153. parenthesis in the middle of the filename.
  14154. 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
  14155. * grub-core/loader/mips/linux.c (grub_cmd_initrd): Use correct limits
  14156. rather than trying to put initrd way too high.
  14157. Reported by: Ryan Lortie <desrt@desrt.ca>
  14158. 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
  14159. * grub-core/boot/mips/yeeloong/fwstart.S (no_cs5536): Put back
  14160. improperly removed string.
  14161. 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
  14162. * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_data): New member
  14163. is_disk.
  14164. (grub_util_biosdisk_open): Don't apply ioctl on non-disk devices.
  14165. (open_device) Likewise.
  14166. (grub_util_biosdisk_close): Likewise.
  14167. Reported by: Mark Korenberg.
  14168. 2011-04-10 Alexander Kurtz <kurtz.alex@googlemail.com>
  14169. * util/grub-mkconfig_lib.in: Add missing quotes.
  14170. 2011-04-10 Colin Watson <cjwatson@ubuntu.com>
  14171. * grub-core/gnulib/argp-parse.c (__argp_input): Don't crash if pstate
  14172. is NULL.
  14173. 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
  14174. Dynamically count the number of lines for the lower banner.
  14175. * grub-core/normal/menu_entry.c (per_term_screen): New member
  14176. num_entries.
  14177. (print_down): Use num_entries.
  14178. (update_screen): Likewise.
  14179. (grub_menu_entry_run): Set num_entries.
  14180. * grub-core/normal/menu_text.c (menu_viewer_data): New member
  14181. num_entries.
  14182. (grub_print_message_indented): Move real part to ...
  14183. (grub_print_message_indented_real): ... here. Additional argument
  14184. dry_run.
  14185. (draw_border): Additional argument num_entries.
  14186. (print_message): Additional argument dry_run.
  14187. (print_entries): Receive menu viewer data.
  14188. (grub_menu_init_page): New argment num_entries.
  14189. (menu_text_set_chosen_entry): Use num_entries.
  14190. (grub_menu_try_text): Likewise.
  14191. * grub-core/normal/term.c (print_ucs4_terminal): New argument dry_run.
  14192. All users updated.
  14193. (grub_ucs4_count_lines): New function.
  14194. * include/grub/term.h (grub_term_cursor_x): Moved from here ..
  14195. * grub-core/normal/menu_text.c (grub_term_cursor_x): ... to here.
  14196. * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): Removed.
  14197. (grub_term_border_height): Likewise.
  14198. (grub_term_num_entries): Likewise.
  14199. 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
  14200. * grub-core/boot/mips/yeeloong/fwstart.S: Fix address to error message.
  14201. Remove now unused string.
  14202. 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
  14203. * docs/grub-dev.texi (Finding your way around): Update for 1.99
  14204. build system.
  14205. (Getting started): GRUB is developed in Bazaar now, not Subversion.
  14206. (Comment): Fix typo.
  14207. (Getting started): General copy-editing.
  14208. (Typical Development Experience): Likewise.
  14209. (Error Handling): Likewise.
  14210. (Video API): Likewise.
  14211. 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
  14212. * docs/grub-dev.texi: Replace MoinMoin syntax with Texinfo syntax
  14213. throughout.
  14214. 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
  14215. * util/grub-mkimage.c (main): Handle special naming of yeeloong
  14216. directory.
  14217. 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
  14218. * docs/grub-dev.texi: Fix spelling of "developer" throughout.
  14219. * grub-core/fs/i386/pc/pxe.c (parse_dhcp_vendor): Fix spelling of
  14220. "development".
  14221. 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
  14222. * grub-core/normal/menu_entry.c (run): Use grub_memcpy rather than
  14223. grub_strcpy since the lines aren't necessarily 0-terminated.
  14224. 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
  14225. * grub-core/lib/legacy_parse.c (legacy_commands): Find doesn't set
  14226. root on legacy.
  14227. 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
  14228. * grub-core/commands/probe.c (options): Argument to set isn't optional.
  14229. (GRUB_MOD_INIT): DEVICE isn't optional.
  14230. 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
  14231. * grub-core/normal/term.c (print_ucs4_terminal): Don't try to put the
  14232. word on new line if it's too long anyway. Fixes a hang.
  14233. 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
  14234. * include/grub/util/raid.h (grub_util_raid_getmembers): Make argument
  14235. const.
  14236. * util/grub-setup.c (main): Reuse md device name if available.
  14237. * util/raid.c (grub_util_raid_getmembers): Receive device name and
  14238. not GRUB name as argument.
  14239. Based on patch by: Florian Wagner <fwagner>.
  14240. 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
  14241. * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
  14242. Place mbi on low memory for better compatibility.
  14243. 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
  14244. * include/grub/efiemu/efiemu.h: Use grub_memory_hook_t type.
  14245. 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
  14246. 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
  14247. * autogen.sh: Ensure that collate and ctype locale is C.
  14248. * conf/Makefile.common: Likewise.
  14249. 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
  14250. * grub-core/normal/menu.c: Add missing include.
  14251. 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
  14252. * grub-core/disk/raid.c [GRUB_UTIL]: Add missing include.
  14253. 2011-04-08 Martin Zuther <mzuther@mzuther.de>
  14254. * util/grub-mkconfig.in: Ignore emacsen backup.
  14255. 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
  14256. * grub-core/kern/emu/hostdisk.c (open_device): Sync on close and not
  14257. on open.
  14258. (grub_util_biosdisk_close): Likewise.
  14259. 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
  14260. * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Add missing
  14261. const attribute and use grub_isdigit.
  14262. 2011-04-06 Andrey <dev_null@ukr.net>
  14263. * grub-core/video/fb/video_fb.c (grub_video_fb_setup): Silence older
  14264. gcc warning.
  14265. 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
  14266. * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Add few
  14267. useful grub_dprintf's.
  14268. 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
  14269. * include/grub/fs.h (grub_dirhook_info): Use unsigned for 1-bit fields.
  14270. 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
  14271. * util/grub.d/00_header.in: Don't use LANG unless unifont is available.
  14272. 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
  14273. Output errors if theme loading failed.
  14274. * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Move the call to
  14275. grub_gfxterm_fullscreen on error paths to ...
  14276. * grub-core/normal/menu.c (menu_init): ...here. Wait after showing
  14277. theme loading error.
  14278. 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
  14279. * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Let a bit more
  14280. space for older compilers.
  14281. (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
  14282. 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
  14283. * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Detect spares
  14284. and report them as not RAID members since they are useless for GRUB.
  14285. * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
  14286. 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
  14287. Increase LVM implementation robustness in order not to crash on
  14288. configurations like pvmove. Previously code assumed that in some places
  14289. only lvs or only pvs are used whereas it seems that they are used
  14290. interchangeably.
  14291. * grub-core/disk/lvm.c (read_node): New function.
  14292. (read_lv): Use read_node.
  14293. (grub_lvm_scan_device): Use only first mirror on pvmove'd lvs.
  14294. Match volumes only at the end when all lvs are found. Take both
  14295. pvs (first) and lvs (second) into account.
  14296. * include/grub/lvm.h (grub_lvm_segment): Merge fields stripe_* and
  14297. mirror_* into node_*. All users updated.
  14298. (grub_lvm_stripe): Merge this ...
  14299. (grub_lvm_mirror): ... and this ...
  14300. (grub_lvm_node): ... into this. All users updated.
  14301. 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
  14302. * grub-core/disk/lvm.c (grub_lvm_scan_device): Print errors on the end
  14303. of function to allow further scanning for LVMs.
  14304. 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
  14305. * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_read): Don't close
  14306. on failed seek as it breaks open fd reusage.
  14307. 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
  14308. * util/grub-install.in: Add a recommendation to use --recheck before
  14309. reporting bugs.
  14310. 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
  14311. * docs/grub.texi (Vendor power-on buttons): Explain how the numbers
  14312. are obtained.
  14313. 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
  14314. GRUB developper manual based on existing Internals section and
  14315. contributions by the various authors with active copyright assignment.
  14316. * docs/Makefile.am (info_TEXINFOS): Add grub-dev.texi.
  14317. * docs/font_char_metrics.png: New file.
  14318. * docs/font_char_metrics.txt: Likewise.
  14319. * docs/grub-dev.texi: Likewise.
  14320. * docs/grub.texi (Internals): Move from here ...
  14321. * docs/grub-dev.texi: ... here.
  14322. 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
  14323. Store the loopback device as data on loopback grub_disk structures,
  14324. rather than the file it points to. This fixes use of freed memory
  14325. if an existing loopback device is replaced.
  14326. * grub-core/disk/loopback.c (grub_loopback_open): Store dev in
  14327. disk->data, not dev->file.
  14328. (grub_loopback_read): Adjust file assignment to match.
  14329. Fixes Ubuntu bug #742967.
  14330. 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
  14331. * grub-core/disk/loopback.c (grub_cmd_loopback): Fix a memory leak
  14332. when replacing an existing device.
  14333. 2011-04-01 Vladimir Serbinenko <phcoder@gmail.com>
  14334. Fix incorrect types in jfs.c. This enables >2TiB disks and fixes some
  14335. memory corruptions.
  14336. * grub-core/fs/jfs.c (struct grub_jfs_diropen): Interpret bytes as
  14337. unsigned.
  14338. (grub_jfs_lookup_symlink): Make ino a grub_uint32_t rather than int.
  14339. (grub_jfs_blkno): Use 64-bit quantities for block sectors.
  14340. (grub_jfs_read_inode): Likewise.
  14341. (grub_jfs_opendir): Likewise. Remove now useless casts.
  14342. (grub_jfs_getent): Likewise.
  14343. Make ino a grub_uint32_t rather than int.
  14344. (grub_jfs_mount): Ensure that blksize and log2_blksize are consistent.
  14345. (grub_jfs_read_file): Use 64-bit quantities when necessary. Replace
  14346. division and module with bit operations.
  14347. (grub_jfs_find_file): Make ino a grub_uint32_t.
  14348. (grub_jfs_lookup_symlink): Likewise. Use 64-bit quantities
  14349. 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
  14350. * grub-core/normal/menu_entry.c (run): Quieten uninitialised
  14351. warning. (This was in fact always initialised before use, but GCC
  14352. wasn't smart enough to prove that.)
  14353. * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
  14354. 2011-03-31 Vladimir Serbinenko <phcoder@gmail.com>
  14355. * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_0): Preserve 16-byte
  14356. stack alignment.
  14357. (efi_wrap_1): Likewise.
  14358. (efi_wrap_2): Likewise.
  14359. (efi_wrap_3): Likewise.
  14360. (efi_wrap_4): Likewise.
  14361. (efi_wrap_5): Likewise.
  14362. (efi_wrap_6): Likewise.
  14363. (efi_wrap_10): Likewise.
  14364. Based on information by: Red Hat/Peter Jones.
  14365. 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
  14366. * grub-core/mmap/efi/mmap.c (grub_mmap_unregister): Remove
  14367. set-but-not-used variable.
  14368. 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
  14369. * docs/grub.texi (Simple configuration): Be more explicit about
  14370. GRUB_DEFAULT, and add an example.
  14371. Reported by: Leslie Rhorer.
  14372. 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
  14373. * docs/grub.texi (Commands): Link to "GRUB only offers a rescue
  14374. shell".
  14375. 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
  14376. * util/grub.d/10_linux.in: Add gentoo-specific config filename.
  14377. * util/grub.d/20_linux_xen.in: Likewise.
  14378. 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
  14379. * util/grub.d/10_linux.in: Try alternative config filenames where
  14380. we parse config file.
  14381. * util/grub.d/20_linux_xen.in: Likewise.
  14382. 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
  14383. * util/grub.d/10_linux.in: Add gentoo-specific Linux and initrd names.
  14384. * util/grub.d/20_linux_xen.in: Likewise.
  14385. 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
  14386. * grub-core/disk/raid.c (insert_array): Add few potentially
  14387. useful grub_util_info.
  14388. (grub_raid_register): Likewise.
  14389. 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
  14390. * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev) [__linux__]:
  14391. Preserve partition number in mdadm code path.
  14392. 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
  14393. * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Add
  14394. few potentially useful grub_util_info.
  14395. 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
  14396. * grub-core/disk/lvm.c (grub_lvm_scan_device): Remove spurious \n.
  14397. 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
  14398. * docs/grub.texi (default): Use @example rather than nested
  14399. itemized lists to avoid breaking gendocs.
  14400. 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
  14401. * docs/grub.texi (Future): Update.
  14402. 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
  14403. * docs/grub.texi (Environment): New chapter.
  14404. (Changes from GRUB Legacy): Link to "Environment block" section for
  14405. details of limitations.
  14406. (Simple configuration): Likewise. Link to documentation of gfxmode
  14407. and gfxpayload variables from GRUB_GFXMODE and GRUB_GFXPAYLOAD
  14408. respectively.
  14409. (Shell-like scripting): Note that normal variables are stored in the
  14410. environment.
  14411. (gettext): Link to documentation of lang and locale_dir.
  14412. (list_env): New section.
  14413. (load_env): New section.
  14414. (save_env): New section.
  14415. (Reporting bugs): Fix typo.
  14416. 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
  14417. * docs/grub.texi: Correctly use "terminal_input" and not "terminal" in
  14418. the example.
  14419. 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
  14420. * grub-core/term/at_keyboard.c (set_scancodes)
  14421. [!GRUB_MACHINE_MIPS_YEELOONG && !GRUB_MACHINE_QEMU]: Use scancode set 1.
  14422. 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
  14423. * docs/grub.texi (Menu-specific commands): Remove some semantics
  14424. that were true in GRUB Legacy but not in GRUB 2.
  14425. (submenu): New section.
  14426. (false): New section.
  14427. (read): New section.
  14428. (true): New section.
  14429. 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
  14430. * docs/grub.texi (Changes from GRUB Legacy): Minor proofreading.
  14431. 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
  14432. * docs/grub.texi (Simple configuration): Explain some of the
  14433. current limitations of grub-mkconfig.
  14434. Reported by: Leslie Rhorer.
  14435. 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
  14436. Old macs search for boot.efi rather than for bootia32.efi.
  14437. * util/grub-install.in: Copy bootia32.efi to boot.efi.
  14438. * util/grub-mkrescue.in: Likewise.
  14439. Suggested by: Peter Jones.
  14440. 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
  14441. * util/grub.d/20_linux_xen.in: Accept old-style xen kernels.
  14442. 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
  14443. * include/grub/lvm.h (grub_lvm_lv): New field 'visible'.
  14444. (grub_lvm_segment): New fields 'type', 'mirror_count' and 'mirrors'.
  14445. (grub_lvm_mirror): New struct.
  14446. * grub-core/disk/lvm.c (grub_lvm_checkvalue): Commented out.
  14447. (grub_lvm_iterate): Iterate only visible volumes.
  14448. (grub_lvm_read): Factor out to ..
  14449. (read_lv): ... this. Support mirrors.
  14450. (grub_lvm_read): New wrapper function.
  14451. (grub_lvm_scan_device): Parse mirrors. Skip everything that isn't
  14452. stripped or mirrored.
  14453. 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
  14454. * util/grub.d/10_linux.in: Skip vmlinux-* on x86 platforms.
  14455. 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
  14456. * docs/grub.texi (loopback): New section.
  14457. 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
  14458. * grub-core/disk/loopback.c (GRUB_MOD_INIT): Stop documenting
  14459. removed -p option.
  14460. 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
  14461. * docs/grub.texi (BIOS installation): New section, partly based on
  14462. previous text in other sections.
  14463. (Installing GRUB using grub-install): Replace BIOS discussion with a
  14464. cross-reference.
  14465. (Images): Likewise.
  14466. 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
  14467. * grub-core/kern/emu/hostdisk.c (find_partition_start)
  14468. [HAVE_DIOCGDINFO]: Add safety checks.
  14469. 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
  14470. * util/grub.d/10_kfreebsd.in: Allow ufs.ko to be missing as it's
  14471. per default compiled in kernel and prior to 8.0 isn't shipped at all.
  14472. 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
  14473. * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): If
  14474. real_sb->size is zero (e.g. RAID-0), get the disk size from
  14475. real_sb->data_size instead.
  14476. Fixes Ubuntu bug #743136.
  14477. 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
  14478. * grub-core/normal/misc.c (grub_normal_print_device_info): Use correct
  14479. printf clauses for printing size and start.
  14480. 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
  14481. * grub-core/fs/ext2.c (grub_ext2_read_inode): Fix an overflow.
  14482. Reported and tested by: Timothy Nikkel.
  14483. 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
  14484. * grub-core/term/gfxterm.c (dirty_region_add): Move core part to ...
  14485. (dirty_region_add_real): ... this.
  14486. (dirty_region_add): Don't discard margin refresh when performing
  14487. scheduled repaint.
  14488. 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
  14489. * grub-core/lib/relocator.c (allocate_regstart)
  14490. [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Avoid grub_dprintf since not all
  14491. terminals are capabple of malloc-free operation.
  14492. (allocate_inreg) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
  14493. (malloc_in_range) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
  14494. 2011-03-29 Mario Limonciello <Mario_Limonciello@Dell.com>
  14495. * util/grub-setup.c: Copy the partition table zone if floppy support
  14496. is disabled, even if no partition table is found.
  14497. Otherwise, the BIOS on Dell Latitude E series laptops will freeze
  14498. during POST if an invalid partition table is contained in the PBR
  14499. of the active partition when GRUB is installed to a partition.
  14500. 2011-03-28 Colin Watson <cjwatson@debian.org>
  14501. * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Remove stale
  14502. comment.
  14503. 2011-03-28 Colin Watson <cjwatson@debian.org>
  14504. * grub-core/disk/raid.c (grub_raid_register): Adjust debug message
  14505. to be specific about what kind of RAID device we're scanning for.
  14506. 2011-03-26 Seth Goldberg <seth.goldberg@oracle.com>
  14507. * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): Don't
  14508. return freed string.
  14509. 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
  14510. * grub-core/fs/iso9660.c (grub_iso9660_label): Rtrim the label.
  14511. 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
  14512. Use libgeom on FreeBSD to detect partitions.
  14513. * Makefile.util.def (grub-mkimage): Add LIBGEOM to ldadd.
  14514. (grub-mkrelpath): Likewise.
  14515. (grub-script-check): Likewise.
  14516. (grub-editenv): Likewise.
  14517. (grub-mkpasswd-pbkdf2): Likewise.
  14518. (grub-fstest): Likewise.
  14519. (grub-mkfont): Likewise.
  14520. (grub-mkdevicemap): Likewise.
  14521. (grub-probe): Likewise.
  14522. (grub-setup): Likewise.
  14523. (grub-ofpathname): Likewise.
  14524. (grub-mklayout): Likewise.
  14525. (example_unit_test): Likewise.
  14526. (grub-menulst2cfg): Likewise.
  14527. * grub-core/Makefile.core.def (grub-emu): Likewise.
  14528. (grub-emu-lite): Likewise.
  14529. * configure.ac: Check for -lgeom on FreeBSD and set LIBGEOM.
  14530. * grub-core/kern/emu/hostdisk.c [FreeBSD]: Include libgeom.h. Don't
  14531. define HAVE_DIOCGDINFO.
  14532. (follow_geom_up) [FreeBSD]: New function.
  14533. (find_partition_start) [FreeBSD]: Rewritten using follow_geom_up.
  14534. (convert_system_partition_to_system_disk) [FreeBSD]: Likewise.
  14535. (grub_util_biosdisk_get_grub_dev) [FreeBSD]: Use FreeBSD path
  14536. unconditionally of HAVE_DIOCGDINFO.
  14537. 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
  14538. Fix FreeBSD compilation problem.
  14539. * grub-core/kern/emu/hostdisk.c (MAJOR) [FreeBSD]: New definition.
  14540. (FLOPPY_MAJOR) [FreeBSD]: Likewise.
  14541. 2011-03-24 Colin Watson <cjwatson@ubuntu.com>
  14542. * grub-core/video/fb/video_fb.c (grub_video_fb_get_info_and_fini):
  14543. Switch back to page zero before loading a kernel, since some kernel
  14544. drivers expect that.
  14545. Thanks to: Felix Kuehling.
  14546. 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
  14547. * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_addr)
  14548. [DEBUG_RELOCATOR]: Reuse grub_mm_check.
  14549. (grub_relocator_alloc_chunk_align) [DEBUG_RELOCATOR]: Likewise.
  14550. 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
  14551. * include/grub/mm.h (GRUB_MM_CHECK): Rename to ...
  14552. (grub_mm_check): ... this. MAke a function-like macro and use GRUB_FILE.
  14553. 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
  14554. * grub-core/lib/relocator.c (allocate_inreg): Avoid dprintf unless
  14555. DEBUG_RELOCATOR is defined since gfxterm can't cope with output when
  14556. malloc is disabled.
  14557. 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
  14558. * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Account
  14559. for modules headers when counting the needed allocation size.
  14560. 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
  14561. * grub-core/term/gfxterm.c (calculate_normal_character_width): Return 8
  14562. if no ASCII character is found to prevent crash.
  14563. 2011-03-23 Alexander Kurtz <kurtz.alex@googlemail.com>
  14564. * grub-core/video/bitmap.c (match_extension): Ignore case.
  14565. 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
  14566. * grub-core/normal/menu_entry.c (init_line): Fix off-by-one error.
  14567. 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
  14568. * grub-core/script/parser.y: Declare "time" as valid argument.
  14569. 2011-03-23 Peter Jones <pjones@redhat.com>
  14570. Fix incorrect assert failure reporting.
  14571. * grub-core/tests/example_functional_test.c (example_test): Add
  14572. a failure comment.
  14573. * grub-core/tests/lib/test.c (add_failure): Renamed to ...
  14574. (failure_start): ...this. Check that malloc succeeded.
  14575. Don't call xvasprintf. Return failure struct.
  14576. (failure_append_vtext): New function.
  14577. (failure_append_text): Likewise.
  14578. (add_failure): Likewise.
  14579. (grub_test_assert_helper): Likewise.
  14580. * include/grub/test.h (grub_test_assert_helper): New declaration.
  14581. (grub_test_assert): Macro rewritten.
  14582. 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
  14583. * grub-core/normal/main.c (GRUB_MOD_INIT): Export pager variable.
  14584. 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
  14585. * grub-core/lib/i386/pc/biosnum.c: Add missing include.
  14586. 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
  14587. * grub-core/disk/usbms.c (grub_usbms_reset): Transform USB-style error
  14588. into GRUB-style one.
  14589. 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
  14590. * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Return usb-style
  14591. error and not grub_errno.
  14592. * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
  14593. 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
  14594. * grub-core/bus/usb/uhci.c (grub_uhci_detect_dev): Return
  14595. GRUB_USB_SPEED_NONE in case of failure and not the error code.
  14596. 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
  14597. * grub-core/efiemu/i386/pc/cfgtables.c
  14598. (grub_machine_efiemu_init_tables): Make declaration a prototype.
  14599. * grub-core/loader/xnu.c (grub_xnu_lock): Likewise.
  14600. (grub_xnu_unlock): Likewise.
  14601. * grub-core/normal/cmdline.c (grub_cmdline_get/cl_set_pos_all): Likewise.
  14602. 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
  14603. * grub-core/bus/usb/usb.c (attach_hooks): Make static.
  14604. * grub-core/bus/usb/usbhub.c (hubs): Likewise.
  14605. * grub-core/commands/hashsum.c (aliases): Likewise.
  14606. * grub-core/commands/setpci.c (pci_registers): Likewise.
  14607. * grub-core/disk/usbms.c (attach_hook): Likewise.
  14608. * grub-core/fs/zfs/zfs.c (decomp_table): Likewise.
  14609. (zio_checksum_table): Likewise.
  14610. * grub-core/gettext/gettext.c (grub_gettext_msg_list): Likewise.
  14611. * grub-core/gfxmenu/gfxmenu.c (cached_view): Likewise.
  14612. * grub-core/lib/legacy_parse.c (legacy_commands): Likewise.
  14613. * grub-core/lib/relocator.c (leftovers): Likewise.
  14614. (extra_blocks): Likewise.
  14615. * grub-core/loader/i386/bsd.c (relocator): Likewise.
  14616. * grub-core/loader/i386/multiboot_mbi.c (modules): Likewise.
  14617. (modules_last): Likewise.
  14618. * grub-core/loader/i386/xnu.c (table_aliases): Likewise.
  14619. (devices): Likewise.
  14620. * grub-core/loader/multiboot_mbi2.c (modules): Likewise.
  14621. (modules_last): Likewise.
  14622. * grub-core/normal/auth.c (users): Likewise.
  14623. * grub-core/normal/context.c (initial_menu): Likewise.
  14624. (current_menu): Likewise.
  14625. * grub-core/normal/crypto.c (crypto_specs): Likewise.
  14626. * grub-core/term/serial.c (grub_serial_ports): Likewise.
  14627. (grub_serial_terminfo_input_template): Likewise.
  14628. (grub_serial_terminfo_output_template): Likewise.
  14629. (grub_serial_terminfo_input): Likewise.
  14630. (grub_serial_terminfo_output): Likewise.
  14631. (registered): Likewise.
  14632. * grub-core/term/usb_keyboard.c (attach_hook): Likewise.
  14633. 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
  14634. * grub-core/video/bochs.c (grub_video_bochs_setup): Use
  14635. grub_video_mode_type_t.
  14636. * grub-core/video/cirrus.c (grub_video_cirrus_setup): Likewise.
  14637. * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Likewise.
  14638. * grub-core/video/i386/pc/vga.c (grub_video_vga_setup): Likewise.
  14639. 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
  14640. * util/grub-install.in: Correct the x86-64 name as x86_64.
  14641. 2011-03-11 Colin Watson <cjwatson@ubuntu.com>
  14642. * grub-core/boot/i386/pc/lnxboot.S (real_code_2): Ensure that the
  14643. initial chunk read from the kernel always includes GRUB's multiboot
  14644. header, which is now outside the first sector.
  14645. 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
  14646. * grub-core/loader/i386/linux.c (find_efi_mmap_size): Page-align
  14647. cached mmap_size, so that this works correctly when called multiple
  14648. times.
  14649. Reported by: Daniel Kahn Gillmor. Should fix Debian bug #616638.
  14650. 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
  14651. * docs/grub.texi (Simple configuration): Tidy up formatting.
  14652. 2011-03-07 Szymon Janc <szymon@janc.net.pl>
  14653. * grub-core/fs/zfs/zfs.c (zap_leaf_lookup):
  14654. Set-but-not-used variable removed.
  14655. 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
  14656. Workaround yet another IEEE1275 bug.
  14657. * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
  14658. GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS.
  14659. * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate): Ignore
  14660. adress_cells and size:cells if GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS
  14661. is set.
  14662. * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
  14663. GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS on powermacs.
  14664. 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
  14665. * grub-core/partmap/msdos.c (pc_partition_map_embed): Fix off by one
  14666. error.
  14667. 2011-02-11 Colin Watson <cjwatson@ubuntu.com>
  14668. * util/grub.d/20_linux_xen.in: Bail out early if linux_list is
  14669. empty, since in that case we can only generate either nothing or a
  14670. syntactically invalid configuration file.
  14671. Reported by: Michal Suchanek. Fixes Debian bug #612898.
  14672. 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
  14673. * docs/grub.texi (Kernel): Add reference to grub-mkrescue.
  14674. (Making a GRUB bootable CD-ROM): Likewise.
  14675. (Invoking grub-mkrescue): New section.
  14676. Reported by: Yann Dirson. Fixes Debian bug #612585.
  14677. 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
  14678. * util/grub-install.in: Remove unnecessary brackets from tr
  14679. arguments.
  14680. * util/grub.d/10_hurd.in: Likewise.
  14681. * util/grub.d/10_kfreebsd.in: Likewise.
  14682. * util/grub.d/10_linux.in: Likewise.
  14683. * util/grub.d/20_linux_xen.in: Likewise.
  14684. Reported by: Jamie Heilman. Fixes Debian bug #612564.
  14685. 2011-02-08 Colin Watson <cjwatson@ubuntu.com>
  14686. * include/grub/file.h (not_easly_seekable): Rename to ...
  14687. (not_easily_seekable): ... this. Update all users.
  14688. 2011-01-28 Colin Watson <cjwatson@ubuntu.com>
  14689. * docs/grub.texi (Making a GRUB bootable CD-ROM): Update to describe
  14690. grub-mkrescue.
  14691. 2011-01-24 Vladimir Serbinenko <phcoder@gmail.com>
  14692. * util/grub-mkimage.c (generate_image): Refuse to create the images
  14693. bigger than the actual flash (512K) in Loongson machines. 512K is also
  14694. the biggest chip supported by them.
  14695. 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
  14696. * grub-core/kern/emu/getroot.c: Include config-util.h explicitly.
  14697. 2011-01-22 Anthony DeRobertis <anthony@derobert.net>
  14698. * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Check
  14699. super_offset field.
  14700. 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
  14701. * util/grub-install.in: Ignore install device on platforms
  14702. where it doesn't make sense. Always use UUIDs except on pc, efi and
  14703. sparc64.
  14704. Reported by: Daniel Kahn Gillmor.
  14705. 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
  14706. * grub-core/bus/bonito.c (write_bases): Fix direction of the shift.
  14707. 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
  14708. * grub-core/partmap/bsdlabel.c: Include grub/emu/misc.h and not grub/util/misc.h.
  14709. (iterate_real): Don't rely on partition being non-NULL.
  14710. 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
  14711. * grub-core/script/argv.c (round_up_exp): unsigned is 32-bit on all
  14712. supported platforms. Put a compile time assert for this rather than
  14713. generate a warning with 32-bit shift.
  14714. 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
  14715. * grub-core/disk/scsi.c (grub_scsi_read): Fix binary and check and make
  14716. logical expression more readable.
  14717. 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
  14718. * grub-core/disk/raid.c (insert_array): Ensure uniqueness of p->number
  14719. even if some elements have a name.
  14720. Reported by: Alexander GQ Gerasiov.
  14721. 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
  14722. * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Consider a
  14723. path unreadable if `grub-probe -t abstraction' fails, for example if
  14724. memberlist fails on an LVM volume group.
  14725. Reported by: Darius Jahandarie.
  14726. 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
  14727. * docs/grub.texi (Simple configuration): Document
  14728. GRUB_PRELOAD_MODULES.
  14729. 2011-01-17 Colin Watson <cjwatson@ubuntu.com>
  14730. * .bzrignore: Remove nonexistent grub-pbkdf2.
  14731. 2011-01-16 Vladimir Serbinenko <phcoder@gmail.com>
  14732. * configure.ac: Bump version to 1.99~rc1.
  14733. 2011-01-15 Vladimir Serbinenko <phcoder@gmail.com>
  14734. * util/grub-mkimage.c (generate_image): Check fwstart.img checksum
  14735. for safety.
  14736. 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
  14737. * grub-core/kern/mips/yeeloong/init.c (grub_machine_init): Init boot
  14738. module.
  14739. 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
  14740. * grub-core/Makefile.core.def (fwstart): Add lost LDFLAGS.
  14741. 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
  14742. * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Quote bootpath and
  14743. diskdevid.
  14744. 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
  14745. Fix compilation on cygwin.
  14746. * conf/Makefile.common (STRIPFLAGS_KERNEL): Add -F elf32-i386 and
  14747. -R .drectve on cygwin.
  14748. * conf/i386-pc-cygwin-img-ld.sc: Merge rdata and pdata into data.
  14749. * configure.ac: Use $(top_builddir) in TARGET_OBJ2ELF.
  14750. (COND_CYGWIN): New condition.
  14751. * grub-core/Makefile.am (%.mod): Set TARGET_OBJ2ELF.
  14752. * grub-core/genmod.sh.in: Use ${TARGET_OBJ2ELF} and
  14753. not @TARGET_OBJ2ELF@.
  14754. * util/grub-pe2elf.c (write_symbol_table): Use pe_symtab->type and not
  14755. type to determine whether aux is to be used.
  14756. 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
  14757. * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Use the
  14758. realpath'ed device string.
  14759. Handle floppy (somewhat).
  14760. Issue error in unknown case rather than garbage.
  14761. Reported by: Axel Beckert.
  14762. 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
  14763. * util/grub.d/00_header.in (load_video): Handle the case when no video
  14764. drivers available.
  14765. Thanks to: Axel Beckert.
  14766. 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
  14767. * util/grub-mkfont.c (write_font_pf2): Use appropriate type for data
  14768. variable. Fixes problem on big endian platforms.
  14769. 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
  14770. * grub-core/Makefile.core.def (ieee1275_fb): Disable on sparc.
  14771. It doesn't work well there.
  14772. 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
  14773. * grub-core/normal/context.c (grub_env_context_close): Silence spurious
  14774. warning.
  14775. * grub-core/normal/menu.c (grub_menu_execute_entry): Likewise.
  14776. * grub-core/partmap/msdos.c (pc_partition_map_embed): Use unsigned
  14777. counter.
  14778. 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
  14779. Use alias->path rather than buggy "canon".
  14780. * grub-core/disk/ieee1275/ofdisk.c (ofdisk_hash_add_real): New function.
  14781. (ofdisk_hash_add): New argument curcan. All users updated.
  14782. 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
  14783. * configure.ac: Fall back to `true' if `makeinfo' does not exist.
  14784. 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
  14785. * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32): Apply
  14786. loadmask before doing any calculations. Use correct type for offset.
  14787. (grub_linux_load64): Likewise.
  14788. 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
  14789. * util/grub-mklayout.c (console_grub_equivalences_shift): Terminate
  14790. with NULL.
  14791. (console_grub_equivalences_unshift): Likewise.
  14792. Reported by: Daniel Dehennin.
  14793. 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
  14794. * grub-core/fs/i386/pc/pxe.c (set_mac_env): Export variable.
  14795. (set_env_limn_ro): Likewise.
  14796. (GRUB_MOD_INIT): Likewise.
  14797. * grub-core/hook/datehook.c (GRUB_MOD_INIT): Likewise. Change to
  14798. ARRAY_SIZE while on it.
  14799. (GRUB_MOD_FINI): Change to ARRAY_SIZE.
  14800. * grub-core/normal/context.c (grub_env_export): Move from here ...
  14801. * grub-core/kern/env.c (grub_env_export): ... here.
  14802. * grub-core/normal/context.c (grub_cmd_export): Skip exporting root and
  14803. prefix.
  14804. * grub-core/kern/main.c (grub_main): Export root and prefix.
  14805. * include/grub/env.h (grub_env_export): Export.
  14806. Reported by: Seth Goldberg.
  14807. 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
  14808. * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
  14809. Take into account space used by ELF sections and multiboot palette.
  14810. Reported by: Grégoire Sutre.
  14811. 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
  14812. * BUGS: New file.
  14813. 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
  14814. Pass more appropriate video id to Linux.
  14815. * grub-core/loader/i386/linux.c (grub_linux_setup_video): Use
  14816. grub_video_get_driver_id and variable gfxpayloadforcelfb to
  14817. fill have_vga.
  14818. (grub_linux_boot): Rely on grub_linux_setup_video to fill have_vga and
  14819. shift params->lfb_size.
  14820. * include/grub/i386/linux.h: Make an enume out of have_vga values.
  14821. 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
  14822. * util/grub-menulst2cfg.c: Add missing include of misc.h.
  14823. 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
  14824. * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Use comma as
  14825. separator and pass bootpath/devid even if only one of them is available.
  14826. Reported by: Seth Goldberg.
  14827. 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
  14828. Don't use post-4G memory on EFI even if 64-bit since some non-compliant
  14829. implementations bug on them.
  14830. * grub-core/kern/efi/mm.c (grub_efi_allocate_pages): Skip post-4G
  14831. memory.
  14832. (filter_memory_map): Likewise.
  14833. 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
  14834. * util/grub-kbdcomp.in: Add missing prefix and exec_prefix variables.
  14835. Reported by: nebuchadnezzar.
  14836. 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
  14837. * util/grub-kbdcomp.in: Add missing transform and bindir variables.
  14838. Reported by: nebuchadnezzar.
  14839. 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
  14840. Submenu default support.
  14841. * grub-core/normal/menu.c (grub_menu_execute_entry): New parameter
  14842. auto_boot. All users updated.
  14843. Declared static.
  14844. Handle chosen and default with submenus.
  14845. (grub_menu_execute_with_fallback): Declared static.
  14846. Don't notify failure if autobooted. Upper level does it.
  14847. (menuentry_eq): New function.
  14848. (get_entry_number): Use menuentry_eq.
  14849. (show_menu): New parameter "autobooted". All users updated.
  14850. (grub_show_menu): Likewise.
  14851. * include/grub/normal.h (grub_show_menu): Likewise.
  14852. * include/grub/menu.h (grub_menu_execute_entry): Removed.
  14853. (grub_menu_execute_with_fallback): Likewise.
  14854. 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
  14855. * util/grub-mklayout.c (usage): Update help text.
  14856. 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
  14857. * grub-core/commands/legacycfg.c (legacy_file): Trim the line.
  14858. 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
  14859. * util/grub-menulst2cfg.c (main): Trim the line.
  14860. 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
  14861. * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): Removed.
  14862. (grub_machine_init): Don't check amount of low memory as reportedly
  14863. INT 12h can be broken and if low memory is too low we wouldn't have
  14864. gotten into grub_machine_init anyway.
  14865. 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
  14866. * grub-core/kern/i386/pc/mmap.c (grub_get_conv_memsize): New function.
  14867. (grub_machine_mmap_iterate): Take low memory into account
  14868. 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
  14869. * grub-core/fs/btrfs.c (grub_btrfs_mount): Transform out of range into
  14870. badfs.
  14871. Reported by: TiCPU.
  14872. 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
  14873. * grub-core/disk/raid.c (insert_array): Display RAID name in duplicate
  14874. members errors.
  14875. 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
  14876. * util/grub.d/10_netbsd.in (netbsd_load_fs_module): New function.
  14877. (netbsd_entry): Use netbsd_load_fs_module() to load filesystem module.
  14878. 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
  14879. * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Handle
  14880. openbsd and netbsd types being in part_bsd module.
  14881. 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
  14882. * config.h.in (_LARGEFILE_SOURCE): Add missing define.
  14883. (_FILE_OFFSET_BITS): Likewise.
  14884. Reported by: Seth Goldberg.
  14885. 2011-01-08 Grégoire Sutre <gregoire.sutre@gmail.com>
  14886. * configure.ac: Check for libdevmapper header.
  14887. 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
  14888. * grub-core/fs/zfs/zfs.c (dmu_read): Use void * for some pointers to
  14889. avoid aliasing.
  14890. (fzap_lookup): Likewise.
  14891. (dnode_get): Likewise.
  14892. (make_mdn): Likewise.
  14893. (zfs_mount): Likewise.
  14894. (fzap_iterate): Use temporary pointer to avoid aliasing.
  14895. (grub_zfs_read): Likewise.
  14896. * grub-core/loader/i386/xnu.c (grub_xnu_boot): Likewise.
  14897. * grub-core/loader/xnu.c (grub_cmd_xnu_kernel): Use void * for some
  14898. pointers to avoid aliasing.
  14899. (grub_cmd_xnu_kernel64): Likewise.
  14900. (grub_xnu_load_driver): Likewise.
  14901. 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
  14902. * grub-core/commands/terminal.c (grub_cmd_terminal_input): Silence
  14903. aliasing warning.
  14904. (grub_cmd_terminal_output): Likewise.
  14905. Reported and tested by: Grégoire Sutre.
  14906. 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
  14907. * grub-core/term/at_keyboard.c (grub_keyboard_getkey): Silence spurious
  14908. warning.
  14909. Reported and tested by: Grégoire Sutre.
  14910. 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
  14911. * configure.ac: Do CPU substitution even if it's specified explicitly.
  14912. Reported and tested by: Alain Greppin.
  14913. 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
  14914. * grub-core/Makefile.am (rs_decoder.S): Force compilation with -Os.
  14915. Reported and tested by: Alain Greppin.
  14916. 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
  14917. Satisfy some bison versions need for inttypes.h.
  14918. * grub-core/lib/posix_wrap/inttypes.h: New file.
  14919. * grub-core/lib/posix_wrap/sys/types.h (int8_t): New type.
  14920. (int16_t): Likewise.
  14921. (int32_t): Likewise.
  14922. (int64_t): Likewise.
  14923. Reported and tested by: Alain Greppin.
  14924. 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
  14925. * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta):
  14926. Silence spurious warning.
  14927. Reported and tested by: Alain Greppin.
  14928. 2011-01-07 Szymon Janc <szymon@janc.net.pl>
  14929. * docs/grub.texi (Support automatic decompression): Update with xz
  14930. decompression support.
  14931. 2011-01-07 Szymon Janc <szymon@janc.net.pl>
  14932. Improve loaders' kernel command line handling.
  14933. * grub-core/lib/cmdline.c: New file.
  14934. * include/grub/lib/cmdline.h: Likewise.
  14935. * grub-core/loader/i386/linux.c (grub_cmd_linux): Use
  14936. grub_create_loader_cmdline to create kernel command line.
  14937. * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
  14938. * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Likewise.
  14939. * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_linux): Likewise.
  14940. * grub-core/Makefile.core.def (linux16): Add lib/cmdline.c on i386_pc.
  14941. (linux): Add lib/cmdline.c on common.
  14942. 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
  14943. * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Take into account that
  14944. inopos might be unaligned.
  14945. 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
  14946. * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
  14947. endian transformations.
  14948. * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
  14949. Based on report by: Doug Nazar.
  14950. 2011-01-07 Doug Nazar <nazard.michi@gmail.com>
  14951. * grub-core/disk/raid5_recover.c (grub_raid5_recover): Add missing
  14952. array->members[i].start_sector.
  14953. * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
  14954. 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
  14955. * util/grub-setup.c (setup): Handle NetBSD and OpenBSD disklabels.
  14956. Reported and tested by: Grégoire Sutre.
  14957. 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
  14958. * tests/util/grub-shell.in: Set serial terminfo type to `dumb', to
  14959. avoid causing test failures by clearing the screen.
  14960. 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
  14961. * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
  14962. Fix prefix check to handle the case where dir ends with a slash
  14963. (most significantly, "/" itself).
  14964. Reported by: Michael Vogt.
  14965. 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
  14966. Run terminfo_cls on initing terminfo output to clear the screen and
  14967. move the cursor to (0,0).
  14968. * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_init_output):
  14969. Call grub_terminfo_output_init.
  14970. * grub-core/term/serial.c (grub_serial_term_output): Set .init.
  14971. * grub-core/term/terminfo.c (grub_terminfo_output_init): New function.
  14972. * include/grub/terminfo.h (grub_terminfo_output_init): New declaration.
  14973. 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
  14974. * util/grub-install.in: Determine ofpathname, nvsetenv and efibootmgr
  14975. only when needed.
  14976. 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
  14977. * grub-core/term/terminfo.c (grub_terminfo_readkey): Handle keys with
  14978. CTRL.
  14979. 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
  14980. The E820 type 5 is BADRAM, not EXEC_CODE.
  14981. * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
  14982. (GRUB_E820_BADRAM): New define.
  14983. * grub-core/loader/i386/linux.c (grub_linux_boot): Translate code
  14984. into reserved. Propagate BADRAM.
  14985. * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
  14986. (GRUB_E820_BADRAM): New define.
  14987. 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
  14988. * grub-core/lib/efi/relocator.c (grub_relocator_firmware_fill_events):
  14989. Ignore the memory post-4G.
  14990. (grub_relocator_firmware_alloc_region): Additional debug statement.
  14991. 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
  14992. * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Check md/%s
  14993. names.
  14994. Reported by: David Pravec.
  14995. 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
  14996. * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Workaround buggy
  14997. BIOSes.
  14998. 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
  14999. * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy):
  15000. Prevent overflow.
  15001. (grub_reed_solomon_recover): Likewise.
  15002. 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
  15003. * grub-core/lib/reed_solomon.c (main) [TEST]: Reactivate normal test.
  15004. 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
  15005. * grub-core/lib/reed_solomon.c (scratch) [! STANDALONE]: Remove leftover
  15006. variable.
  15007. 2011-01-04 Colin Watson <cjwatson@ubuntu.com>
  15008. * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Fix typo in
  15009. descriptions of extract_legacy_entries_source and
  15010. extract_legacy_entries_configfile.
  15011. Reported by: Seung Soo, Ha.
  15012. 2011-01-03 Colin Watson <cjwatson@ubuntu.com>
  15013. * grub-core/bus/pci.c (grub_pci_iterate): Skip remaining functions
  15014. on devices that do not implement function 0.
  15015. 2011-01-03 Dave Vasilevsky <dave@vasilevsky.ca>
  15016. * grub-core/fs/hfsplus.c: Make parent unsigned.
  15017. (grub_hfsplus_cmp_catkey): Don't compare using subtraction, it
  15018. overflows.
  15019. (grub_hfsplus_cmp_extkey): Likewise
  15020. 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
  15021. * util/grub-install.in: Correctly use bootloader_id and not
  15022. GRUB_DISTRIBUTOR on efibootmgr line.
  15023. 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
  15024. * util/grub-mkfont.c (main): Report errors in FT_New_Face.
  15025. 2010-12-31 Ian Campbell <ijc@hellion.org.uk>
  15026. * util/grub.d/20_linux_xen.in (linux_entry): Correctly capitalize
  15027. Xen and reorder menu item wording to make it clearer that this entry
  15028. will launch Xen. Print separate messages when loading Xen and
  15029. Linux.
  15030. 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
  15031. * grub-core/partmap/amiga.c (GRUB_AMIGA_PART_MAGIC): New define.
  15032. (amiga_partition_map_iterate): Check "PART" magic to avoid a very long
  15033. loop in case of incorrect amiga partmap.
  15034. 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
  15035. * grub-core/partmap/amiga.c (GRUB_AMIGA_RDSK_MAGIC): New define.
  15036. (amiga_partition_map_iterate): Use grub_memcmp instead of grub_strcmp.
  15037. Reported by:EHeM.
  15038. 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
  15039. * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Silence
  15040. spurious warning.
  15041. Reported by: crocket
  15042. 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
  15043. * grub-core/loader/xnu.c (grub_cmd_xnu_kernel) [! GRUB_MACHINE_EFI]:
  15044. Preload EFIemu.
  15045. (grub_cmd_xnu_kernel64) [! GRUB_MACHINE_EFI]: Likewise.
  15046. 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
  15047. * grub-core/loader/xnu.c (grub_cmd_xnu_kext): Abort if no kernel
  15048. is loaded
  15049. (grub_cmd_xnu_kextdir): Likewise.
  15050. (grub_cmd_xnu_splash): Likewise.
  15051. 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
  15052. Avoid using Reed-Solomon with 0 redundancy.
  15053. * grub-core/kern/i386/pc/startup.S: Remove 0-data check.
  15054. * grub-core/lib/reed_solomon.c (decode_block): Do not proceed on 0 data
  15055. or 0 redundancy.
  15056. (grub_reed_solomon_add_redundancy): Do not proceed with 0 redundancy.
  15057. (grub_reed_solomon_recover): Likewise.
  15058. 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
  15059. Don't use disk subsystem in freebsd_boot.
  15060. * grub-core/loader/i386/bsd.c (freebsd_bootdev): New variable.
  15061. (freebsd_biosdev): Likewise.
  15062. (grub_freebsd_boot): Use freebsd_bootdev and freebsd_biosdev.
  15063. (grub_cmd_freebsd): Set freebsd_bootdev and freebsd_biosdev.
  15064. 2010-12-26 Vladimir Serbinenko <phcoder@gmail.com>
  15065. Handling of files of unknown size is currently limited. They can't be
  15066. used e.g. for initrd or modules. Moreover gzip handling of not
  15067. easily seekable files is buggy. Disable unknown file size for now. May
  15068. be inefficient but works.
  15069. * grub-core/io/gzio.c (test_header): Always retrieve the file size.
  15070. * grub-core/io/xzio.c (grub_xzio_open): Likewise.
  15071. 2010-12-25 Mirko Parthey <mirko.parthey@informatik.tu-chemnitz.de>
  15072. * grub-core/boot/i386/pc/boot.S: Fix %es:%bx pointing to nowhere on
  15073. floppy probe.
  15074. 2010-12-25 Jeroen Dekkers <jeroen@dekkers.ch>
  15075. * grub-core/disk/raid.c (insert_array): Don't add spurious members.
  15076. 2010-12-25 Shea Levy <shlevy>
  15077. * grub-core/genmod.sh.in: Use @OBJCOPY@ rather than objcopy.
  15078. 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
  15079. * util/grub.d/30_os-prober.in: Don't emit drivemap directive for
  15080. Windows Server 2008.
  15081. Reported by: Devin Giddings.
  15082. 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
  15083. * grub-core/commands/acpihalt.c (grub_acpi_halt): Sleep for 1.5 before
  15084. writing an error message because of async power management.
  15085. * grub-core/kern/mips/yeeloong/init.c (grub_halt): Likewise.
  15086. (grub_reboot): Likewise.
  15087. 2010-12-23 Jordan Uggla <jordan.uggla@gmail.com>
  15088. * tests/util/grub-shell.in: Suppress "ACPI shutdown failed" error to
  15089. keep unit tests from failing when they shouldn't.
  15090. 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
  15091. * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): The
  15092. previous patch increased the size of the RS code by 20 bytes (at
  15093. least with gcc-4.4), so increase this by 20 bytes to match.
  15094. (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
  15095. 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
  15096. * grub-core/lib/reed_solomon.c (gauss_solve): Fix size of standalone
  15097. scratch area. Make sure to initialise chosen in standalone mode as
  15098. well as non-standalone.
  15099. Reported by: Robert Hooker and Andy Whitcroft.
  15100. Tested by: Andy Whitcroft.
  15101. 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
  15102. * grub-core/commands/echo.c (grub_cmd_echo): Make UTF-8-clean by
  15103. constructing a new unescaped string and passing it to grub_xputs in
  15104. one go, rather than passing characters to grub_printf one at a time.
  15105. 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
  15106. * grub-core/fs/udf.c (read_string): Pacify GCC warning by
  15107. initialising utf16.
  15108. 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
  15109. * util/grub-mkconfig_lib.in (gettext_quoted): Add clarifying
  15110. comment. Add an extra layer of quotation, requiring the output of
  15111. this function to be used in a printf format string.
  15112. (gettext_printf): New function.
  15113. * util/grub.d/10_hurd.in: Use gettext_printf where appropriate.
  15114. Extract translatable strings from here-documents and use a temporary
  15115. variable instead, so that xgettext can find them.
  15116. * util/grub.d/10_kfreebsd.in: Likewise.
  15117. * util/grub.d/10_linux.in: Likewise.
  15118. * util/grub.d/20_linux_xen.in: Likewise.
  15119. * po/grub.d.sed: New file.
  15120. * po/Makefile.in.in ($(DOMAIN).pot-update): Extract gettext_printf
  15121. arguments. Set c-format flags on all strings extracted from
  15122. util/grub.d/ (xgettext refuses to include these itself for strings
  15123. it extracted from a shell file, but these really are c-format).
  15124. 2010-12-20 Vladimir Serbinenko <phcoder@gmail.com>
  15125. * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_add_module):
  15126. Avoid next pointing to nowhere.
  15127. 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
  15128. * grub-core/fs/affs.c (grub_affs_mount): Read data->bblock.rootblock
  15129. rather than assuming than rootblock is exactly in the middle.
  15130. (grub_affs_label): Likewise.
  15131. 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
  15132. * grub-core/fs/affs.c (grub_affs_fs) [GRUB_UTIL]: Explicitly set
  15133. reserved_first_sector to 0.
  15134. * grub-core/fs/cpio.c (grub_cpio_fs) [GRUB_UTIL]: Likewise.
  15135. * grub-core/fs/sfs.c (grub_sfs_fs) [GRUB_UTIL]: Likewise.
  15136. * grub-core/fs/xfs.c (grub_xfs_fs) [GRUB_UTIL]: Likewise.
  15137. 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
  15138. Fix handling of UTF-16 UDF labels.
  15139. * grub-core/fs/udf.c (grub_udf_iterate_dir): Move string-parsing part
  15140. (read_string): .. here.
  15141. (grub_udf_label): Use read_string.
  15142. 2010-12-19 BVK Chaitanya <bvk.groups@gmail.com>
  15143. * grub-core/normal/menu_entry.c (run): Execute commands from menu
  15144. editor under argument scope.
  15145. Reported by: Jordan Uggla
  15146. 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
  15147. * util/grub-mkfont.c (main): Handle errors from FT_Set_Pixel_Sizes.
  15148. 2010-12-18 Colin Watson <cjwatson@ubuntu.com>
  15149. * grub-core/normal/term.c (print_more): Make \r or \n scroll one
  15150. line, and other keys scroll an entire page (previous handling was
  15151. for \r and \n to scroll a page and other keys to scroll two lines).
  15152. 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
  15153. * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
  15154. Set ptrdest to correct get_physical_target_address rather than
  15155. incorrect get_virtual_current_address.
  15156. 2010-12-18 kashyap garimella <garimella.kashyap@gmail.com>
  15157. * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_load): Use
  15158. correct cat to grub_uint8_t * rather than grub_uint32_t *.
  15159. 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
  15160. * .bzrignore: Ignore grub-core/rs_decoder.S.
  15161. 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
  15162. * grub-core/gettext/gettext.c (grub_gettext_init_ext): Factor out
  15163. .mo/.mo.gz opening sequence to ...
  15164. (grub_mofile_open_lang): ... here.
  15165. (grub_gettext_init_ext): If opening ll_CC fails, try ll.
  15166. * util/grub.d/00_header.in (grub_lang): Include country part of
  15167. locale.
  15168. Reported by: Mario Limonciello.
  15169. 2010-12-09 Robert Millan <rmh@gnu.org>
  15170. * NEWS: Document addition of ZFS support.
  15171. 2010-12-04 Colin Watson <cjwatson@ubuntu.com>
  15172. * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Use `>> 1'
  15173. rather than `/ 2', as the latter requires -Wa,--divide which would
  15174. require bumping our minimum binutils version.
  15175. 2010-12-03 BVK Chaitanya <bvk.groups@gmail.com>
  15176. * util/grub-script-check.c (main): Print script line number on
  15177. error.
  15178. 2010-12-01 Robert Millan <rmh@gnu.org>
  15179. * grub-core/fs/zfs/zfs.c: New file.
  15180. * grub-core/fs/zfs/zfs_fletcher.c: Likewise.
  15181. * grub-core/fs/zfs/zfs_lzjb.c: Likewise.
  15182. * grub-core/fs/zfs/zfs_sha256.c: Likewise.
  15183. * grub-core/fs/zfs/zfsinfo.c: Likewise.
  15184. * include/grub/zfs/dmu.h: Likewise.
  15185. * include/grub/zfs/dmu_objset.h: Likewise.
  15186. * include/grub/zfs/dnode.h: Likewise.
  15187. * include/grub/zfs/dsl_dataset.h: Likewise.
  15188. * include/grub/zfs/dsl_dir.h: Likewise.
  15189. * include/grub/zfs/sa_impl.h: Likewise.
  15190. * include/grub/zfs/spa.h: Likewise.
  15191. * include/grub/zfs/uberblock_impl.h: Likewise.
  15192. * include/grub/zfs/vdev_impl.h: Likewise.
  15193. * include/grub/zfs/zap_impl.h: Likewise.
  15194. * include/grub/zfs/zap_leaf.h: Likewise.
  15195. * include/grub/zfs/zfs.h: Likewise.
  15196. * include/grub/zfs/zfs_acl.h: Likewise.
  15197. * include/grub/zfs/zfs_znode.h: Likewise.
  15198. * include/grub/zfs/zil.h: Likewise.
  15199. * include/grub/zfs/zio.h: Likewise.
  15200. * include/grub/zfs/zio_checksum.h: Likewise.
  15201. * Makefile.util.def: Build ZFS into libgrubmods.
  15202. * grub-core/Makefile.core.def: Build zfs.mod.
  15203. 2010-11-30 Szymon Janc <szymon@janc.net.pl>
  15204. * grub-core/commands/regexp.c (grub_cmd_regexp): Remove unused
  15205. variable.
  15206. * grub-core/commands/wildcard.c (match_files): Likewise.
  15207. 2010-11-30 Robert Millan <rmh@gnu.org>
  15208. * grub-core/loader/i386/bsd.c
  15209. (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module_elf): Check
  15210. whether kernel is loaded using grub_loader_is_loaded(), rather
  15211. than `kernel_type', which may still be `KERNEL_TYPE_NONE' under
  15212. certain error conditions.
  15213. 2010-11-30 Robert Millan <rmh@gnu.org>
  15214. * grub-core/commands/echo.c: Include `<grub/term.h>'.
  15215. (grub_cmd_echo): Call grub_refresh() after printing a message.
  15216. 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
  15217. Avoid using tricks for initialising endian variables.
  15218. * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot):
  15219. Make const.
  15220. (GRUB_MOD_INIT): Don't byte-swap.
  15221. * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
  15222. Use grub_cpu_to_le16_compile_time and grub_cpu_to_le32_compile_time.
  15223. * include/grub/types.h (grub_swap_bytes16_compile_time): New macro.
  15224. (grub_swap_bytes32_compile_time): Likewise.
  15225. (grub_cpu_to_le32_compile_time): Likewise.
  15226. (grub_cpu_to_le16_compile_time): Likewise.
  15227. 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
  15228. * util/grub-setup.c (setup): Stop recommending --force. People who
  15229. understand the dangers of blocklists are able to find this option
  15230. anyway and the ones who don't shouldn't use it anyway.
  15231. 2010-11-26 Robert Millan <rmh@gnu.org>
  15232. * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN): Beautify.
  15233. Update all users.
  15234. 2010-11-26 Colin Watson <cjwatson@ubuntu.com>
  15235. Fix LVM-on-RAID probing.
  15236. * util/grub-probe.c (probe): Remember which disk was detected as
  15237. RAID (perhaps an LVM physical volume). Use that disk's raidname
  15238. rather than that of the top-level disk.
  15239. 2010-11-25 BVK Chaitanya <bvk.groups@gmail.com>
  15240. Fix cmdline argument quotes for setparams command of menuentry
  15241. definitions.
  15242. * grub-core/commands/menuentry.c (setparams_prefix): Use single
  15243. quotes for arguments.
  15244. * grub-core/lib/legacy_parse.c (grub_legacy_escape): Use
  15245. grub_strchrsub function instead.
  15246. * include/grub/misc.h (grub_strchrsub): New function.
  15247. 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
  15248. * util/deviceiter.c (grub_util_iterate_devices): Save a bit of
  15249. effort by skipping "." and ".." entries up-front.
  15250. Suggested by: Michael Lazarev.
  15251. 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
  15252. * grub-core/Makefile.core.def (xz_decompress): Move -lgcc from
  15253. ldflags to ldadd, to fix link line ordering.
  15254. (none_decompress): Likewise.
  15255. 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
  15256. * grub-core/Makefile.core.def (kernel): Add kern/emu/cache.S for emu
  15257. platforms.
  15258. (grub-emu-lite): Remove kern/emu/cache.S.
  15259. 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
  15260. * util/deviceiter.c (compare_devices): If the by-id link for a
  15261. device couldn't be resolved, fall back to sorting by the by-id link
  15262. rather than segfaulting.
  15263. Reported and tested by: Daniel Mierswa.
  15264. 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
  15265. * Makefile.util.def (grub-menulst2cfg): List libraries in ldadd, not
  15266. ldflags, to fix link line ordering.
  15267. 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
  15268. * grub-core/Makefile.am (gentrigtables): Put -lm after $<; some
  15269. linkers are picky about this.
  15270. 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
  15271. * grub-core/Makefile.am (command.lst): Adjust sed expression
  15272. ordering so that extended and priority commands aren't treated as
  15273. ordinary commands.
  15274. 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
  15275. * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
  15276. Remove byte-swapping function calls, which are not valid in
  15277. structure initialisers.
  15278. * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot): Make
  15279. non-const.
  15280. (GRUB_MOD_INIT): Byte-swap data1, data2, and data3 fields of
  15281. grub_gpt_partition_type_bios_boot.
  15282. 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
  15283. Fix test program build on GNU/kFreeBSD.
  15284. * Makefile.util.def (example_unit_test): Add `$(LIBZFS)
  15285. $(LIBNVPAIR)' library dependencies.
  15286. 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
  15287. * util/grub-install.in: Fix parsing of --grub-mkrelpath= option.
  15288. 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
  15289. * util/grub-install.in: Remove excessive quoting that broke
  15290. installations to RAID devices.
  15291. 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
  15292. * grub-core/loader/i386/linux.c (grub_cmd_linux): Pass correctly the
  15293. bootloader version instead of 0.
  15294. 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
  15295. * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix spurious
  15296. warning.
  15297. 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
  15298. * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Don't try to
  15299. retrieve the metadat sector if size isn't known.
  15300. * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
  15301. 2010-11-18 Robert Millan <rmh@gnu.org>
  15302. * grub-core/fs/btrfs.c (grub_btrfs_mount): Replace grub_strncmp()
  15303. with grub_memcmp().
  15304. 2010-11-18 Vladimir Serbinenko <phcoder@gmail.com>
  15305. * grub-core/normal/menu_entry.c (print_up): Fix displacement of up
  15306. arrow.
  15307. Reported by: Jordan Uggla.
  15308. 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
  15309. Make better UTF compliant.
  15310. * grub-core/normal/charset.c (grub_utf8_to_utf16): Handle 6- and 7-byte
  15311. sequences as incorrect.
  15312. (grub_is_valid_utf8): Likewise.
  15313. (grub_utf8_to_ucs4): Likewise.
  15314. (grub_ucs4_to_utf8): Handle codepoints outside of BMP.
  15315. (grub_ucs4_to_utf8_alloc): Likewise.
  15316. * include/grub/charset.h (grub_utf16_to_utf8): Likewise.
  15317. 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
  15318. Make legacy_source behave like source.
  15319. * grub-core/commands/legacycfg.c (legacy_file): Don't call
  15320. grub_show_menu.
  15321. (grub_cmd_legacy_source): Call grub_show_menu if needed.
  15322. 2010-11-16 Colin Watson <cjwatson@debian.org>
  15323. * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-unused-parameter.
  15324. (-Wunused implies -Wunused-parameter, but not vice versa).
  15325. 2010-11-16 Colin Watson <cjwatson@ubuntu.com>
  15326. * configure.ac: Make error messages less confusing by testing for
  15327. -Wtrampolines rather than -Wno-trampolines (since -Wno-* is always
  15328. accepted, but produces a diagnostic if something else is wrong).
  15329. 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
  15330. * grub-core/term/at_keyboard.c (grub_keyboard_controller_read)
  15331. [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: ifdef-ed out
  15332. (now unused).
  15333. (grub_keyboard_controller_init)
  15334. [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: Don't attempt to
  15335. read the initial state since controller isn't inited yet.
  15336. 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
  15337. * grub-core/lib/relocator.c (malloc_in_range): Take into account that
  15338. allocate_regbeg may need to create new chunk header.
  15339. 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
  15340. Fix quoting in legacy parser.
  15341. * grub-core/lib/legacy_parse.c (grub_legacy_escape): Correctly handle
  15342. single quotes.
  15343. (grub_legacy_parse): Likewise.
  15344. Reported by: Jordan Uggla.
  15345. Tested by: Jordan Uggla.
  15346. 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
  15347. Don't add -lgcc on i386 and x86_64.
  15348. * configure.ac (LIBS): Don't add -lgcc on i386 and x86_64.
  15349. * conf/Makefile.common (LDADD_KERNEL): Likewise.
  15350. * grub-core/Makefile.core.def (kernel): Use LDADD_KERNEL.
  15351. 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
  15352. * configure.ac: Add -Wno-trampolines when supported.
  15353. 2010-11-14 Modestas Vainius <modax@debian.org>
  15354. * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Recognise ddf1_
  15355. fakeraid.
  15356. 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
  15357. Add generic logical block size support for UDF.
  15358. * grub-core/fs/udf.c (GRUB_UDF_LOG2_BLKSIZE): Removed.
  15359. (GRUB_UDF_BLKSZ): Removed.
  15360. (struct grub_udf_data): New field "lbshift" to hold the logical block
  15361. size of the file system in log2 format. All users updated.
  15362. (sblocklist): Change type to unsigned.
  15363. (grub_udf_mount): Change type of "sblklist" to unsigned.
  15364. Move AVDP search before VRS recognition, because the latter requires
  15365. knowledge of the logical block size, which is detected during the
  15366. former.
  15367. Detect and validate logical block size during AVDP search, adding
  15368. support for block sizes 512, 1024 and 4096.
  15369. Make VRS recognition independent of block size.
  15370. 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
  15371. Properly handle deleted files on UDF.
  15372. * grub-core/fs/udf.c (grub_udf_iterate_dir): Skip directory entries
  15373. whose "characteristics" field has the bit GRUB_UDF_FID_CHAR_DELETED
  15374. set.
  15375. 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
  15376. Support reading files larger than 2 GiB.
  15377. * grub-core/fs/udf.c (grub_udf_iterate_dir): Change type of variable
  15378. "offset" to grub_off_t.
  15379. (grub_udf_read_file): Likewise for parameter "pos".
  15380. 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
  15381. * docs/grub.texi (Changes from GRUB Legacy): Note when save_env is
  15382. unavailable.
  15383. (Simple configuration): Refer to Changes from GRUB Legacy about
  15384. save_env availability.
  15385. 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
  15386. * util/grub-install.in: Ignore empty partition table detection
  15387. instead of trying to include part_ module.
  15388. 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
  15389. * grub-core/disk/lvm.c (GRUB_MOD_FINI): Reset the vg_list. Fixes
  15390. LVM on RAID support.
  15391. 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
  15392. Properly define WORDS_BIGENDIAN in wrapped environments.
  15393. * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN): New
  15394. definition.
  15395. * grub-core/lib/posix_wrap/sys/types.h (WORDS_BIGENDIAN): Likewise.
  15396. Reported by: Manoel Rebelo Abranches.
  15397. Tested by: Manoel Rebelo Abranches.
  15398. 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
  15399. * util/grub-mkconfig.in: Fix quoting.
  15400. 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
  15401. Support big ext2 files.
  15402. * grub-core/fs/ext2.c (grub_ext2_inode): Rename dir_acl to size_high.
  15403. (grub_ext2_read_block): Support triple indirect blocks.
  15404. (grub_ext2_read_file): Use 64-bit types and read size_high.
  15405. (grub_ext2_open): Read size_high.
  15406. Reported by: Ximin Luo.
  15407. Tested by: Manoel Rebelo Abranches.
  15408. 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
  15409. * util/grub-install.in: Handle filenames containing spaces.
  15410. Reported by: Jordan Uggla.
  15411. Tested by: Jordan Uggla.
  15412. 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
  15413. * util/grub-mkconfig.in (grub_script_check): New variable.
  15414. Use grub_script_check instead of grub-script-check.
  15415. Reported by: Barry Jackson.
  15416. 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
  15417. * docs/grub.texi (menu): Correct the order.
  15418. Reported by: D. Hugh Redelmeier.
  15419. 2010-11-12 Vladimir Serbinenko <phcoder@gmail.com>
  15420. * grub-core/kern/i386/pc/startup.S (multiboot_trampoline): Add missing
  15421. jump.
  15422. 2010-11-08 Manoel Rebelo Abranches <mrabran@br.ibm.com>
  15423. * include/grub/elfload.h (grub_elf32_size): New parameter.
  15424. All users updated.
  15425. Return maximum segments alignment.
  15426. (grub_elf64_size): Likewise.
  15427. * kern/elf.c (grub_elf32_size): New parameter. All users updated.
  15428. Return maximum segments alignment.
  15429. (grub_elf64_size): Likewise.
  15430. * grub-core/loader/powerpc/ieee1275/linux.c:
  15431. (grub_linux_claimmap_iterate): New function. Uses the
  15432. "available" property in the "memory" node for memory allocation
  15433. for kernel in the PowerPC loader.
  15434. (grub_linux_load32): Correctly find linux entry point offset.
  15435. (grub_linux_load64): Likewise.
  15436. 2010-11-07 Robert Millan <rmh@gnu.org>
  15437. On mips-yeeloong, build with -march=loongson2f when this flag is
  15438. available (GCC >= 4.4).
  15439. * conf/Makefile.common [COND_mips_yeeloong] (CFLAGS_PLATFORM): Remove
  15440. `-march=mips3'.
  15441. * configure.ac: For mips-yeeloong, add -march=loongson2f if available,
  15442. or otherwise add -march=mips3.
  15443. 2010-11-07 BVK Chaitanya <bvk.groups@gmail.com>
  15444. Suppress shell expansion on echo '*' and echo "*" like cases.
  15445. Reported by: Jordan Uggla.
  15446. * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
  15447. string arguments before shell expansion.
  15448. * tests/grub_cmd_echo.in: New testcases.
  15449. 2010-11-07 Robert Millan <rmh@gnu.org>
  15450. * conf/mips-qemu-mips.rmk: Remove stale file from previous
  15451. transition.
  15452. 2010-11-07 Vladimir Serbinenko <phcoder@gmail.com>
  15453. * grub-core/kern/emu/hostdisk.c
  15454. (convert_system_partition_to_system_disk): Handle devices like "sdaa1".
  15455. 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
  15456. * include/grub/emu/misc.h: Don't include grub/util/libzfs.h.
  15457. * include/grub/emu/misc.h (grub_get_libzfs_handle): Move from here ...
  15458. * include/grub/util/libzfs.h (grub_get_libzfs_handle): ... here.
  15459. 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
  15460. * grub-core/fs/ntfs.c (grub_ntfs_uuid): Make uppercase.
  15461. 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
  15462. * util/grub-install.in: Replace useless recomendation to pass
  15463. --modules with a recomendation to report a bug.
  15464. 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
  15465. Properly register serial terminfo.
  15466. Reported by: Jordan Uggla
  15467. * grub-core/term/serial.c (grub_serial_terminfo_input_template): New
  15468. const.
  15469. (grub_serial_terminfo_output_template): Likewise.
  15470. (grub_cmd_serial): Register "serial" with terminfo.
  15471. (GRUB_MOD_INIT(serial)): Fill grub_serial_terminfo_input and
  15472. grub_serial_terminfo_output.
  15473. 2010-11-05 Robert Millan <rmh@gnu.org>
  15474. * util/grub-mkconfig.in: Remove gfxterm.mod probe (no longer
  15475. needed).
  15476. 2010-11-05 Robert Millan <rmh@gnu.org>
  15477. On Yeeloong, pass machine type information to Linux.
  15478. * grub-core/loader/mips/linux.c [GRUB_MACHINE_MIPS_YEELOONG]
  15479. (LOONGSON_MACHTYPE): New macro, set to
  15480. "machtype=lemote-yeeloong-2f-8.9inches".
  15481. [LOONGSON_MACHTYPE] (grub_cmd_linux): Pass LOONGSON_MACHTYPE as
  15482. additional argument to Linux.
  15483. 2010-11-04 Robert Millan <rmh@gnu.org>
  15484. * util/deviceiter.c (grub_util_iterate_devices): Increase SCSI
  15485. limit to 48 (to cope with Sun Fire X4500), and IDE limit to 96
  15486. (its SATA disks are detected as slaveless IDE master drives on
  15487. kFreeBSD).
  15488. Reported by Carsten Aulbert.
  15489. 2010-11-02 Colin Watson <cjwatson@ubuntu.com>
  15490. * util/bin2h.c (main): Fix spelling error in generated output.
  15491. 2010-11-01 Grégoire Sutre <gregoire.sutre@gmail.com>
  15492. * grub-core/partmap/bsdlabel.c (iterate_real): Fix an integer overflow.
  15493. 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
  15494. * grub-core/loader/i386/linux.c (grub_cmd_linux): Autoload vbe.mod if
  15495. vga= option is supplied.
  15496. 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
  15497. * util/grub.d/10_hurd.in: Don't call savedefault on recovery entries.
  15498. * util/grub.d/10_kfreebsd.in: Likewise.
  15499. * util/grub.d/10_linux.in: Likewise.
  15500. * util/grub.d/20_linux_xen.in: Likewise.
  15501. 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
  15502. * grub-core/lib/arg.c (grub_arg_parse): Avoid interpreting direct
  15503. argument as an argument to no-argument option.
  15504. 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
  15505. * util/grub.d/10_linux.in: Add missing load_video with explicit
  15506. GRUB_GFXPAYLOAD_LINUX.
  15507. 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
  15508. * Makefile.am (libgrub.pp): Propagate the libgrub.a split.
  15509. 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
  15510. * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Do not put
  15511. elements with invlid index.
  15512. * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
  15513. * grub-core/disk/raid.c (insert_array): Automatically reallocate
  15514. members.
  15515. * include/grub/raid.h (grub_raid_member): New struct.
  15516. (grub_raid_array): Transform devices and start_sector into usage of
  15517. grub_raid_member. All users updated
  15518. (allocated_devs): New member.
  15519. 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
  15520. * docs/man/grub-set-default.h2m: Clarify that only saved default entry
  15521. is modified
  15522. 2010-10-29 BVK Chaitanya <bvk.groups@gmail.com>
  15523. NetBSD build fix for getline function conflict from gnulib.
  15524. * Makefile.util.def (libgrubkern.a): New library for grub kernel
  15525. components that depend on gnulib headers.
  15526. (libgrubmods.a): Renamed from earlier libgrub.a.
  15527. * conf/Makefile.common: Remove gnulib from *_LIBRARY flags.
  15528. 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
  15529. * util/grub-setup.c (setup): Refuse to do a cross-disk embeddingless
  15530. install rather than creating a broken install.
  15531. 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
  15532. * util/grub-setup.c (argp): Remove misleading example of installing to
  15533. a partition.
  15534. 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
  15535. * util/grub-setup.c (setup): Clarify the error message.
  15536. 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
  15537. * include/grub/types.h (grub_target_off_t): Removed no longer used type.
  15538. 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
  15539. * grub-core/kern/emu/misc.c
  15540. (grub_make_system_path_relative_to_its_root)
  15541. [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Fix mountpoint return on ZFS.
  15542. 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
  15543. * grub-core/kern/emu/misc.c
  15544. (grub_make_system_path_relative_to_its_root): Revert r2882.
  15545. 2010-10-22 Vladimir Serbinenko <phcoder@gmail.com>
  15546. * grub-core/lib/relocator.c (grub_relocator_subchunk): Remove now
  15547. useless field head. All users updated.
  15548. (free_subchunk): Correct handling of IN_REGION subchunk.
  15549. 2010-10-22 Colin Watson <cjwatson@ubuntu.com>
  15550. * docs/grub.texi (Installing GRUB using grub-install): Proofread.
  15551. (Supported kernels): Likewise.
  15552. 2010-10-18 Grégoire Sutre <gregoire.sutre@gmail.com>
  15553. Make mktemp invocations portable.
  15554. * grub-core/genmod.sh.in: Use mktemp with an explicit template, and
  15555. exit if mktemp fails.
  15556. * tests/grub_script_blockarg.in: Likewise.
  15557. * tests/partmap_test.in: Likewise.
  15558. * tests/util/grub-shell-tester.in: Likewise.
  15559. * tests/util/grub-shell.in: Likewise.
  15560. * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
  15561. * Makefile.am: Likewise, and chain shell commands with `&&'
  15562. instead of ';'.
  15563. * util/grub-mkrescue.in: Use the same explicit template as above, and
  15564. exit if mktemp fails.
  15565. 2010-10-18 BVK Chaitanya <bvk.groups@gmail.com>
  15566. * util/grub.d/10_linux.in: Fix built-in initramfs image mode for
  15567. Linux kernel, reported by Dennis Schridde.
  15568. 2010-10-17 Szymon Janc <szymon@janc.net.pl>
  15569. * grub-core/normal/auth.c (grub_auth_check_authentication):
  15570. Set-but-not-used variable removed.
  15571. 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
  15572. * docs/grub.texi (GNU/Linux): Document APM unavailability with
  15573. 32-bit linux protocol.
  15574. 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
  15575. * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Check
  15576. cursor shape for sanity.
  15577. 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
  15578. * docs/grub.texi (Installation): Document buggy BIOS install.
  15579. 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
  15580. * docs/grub.texi (Installation): Indent.
  15581. 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
  15582. * util/grub-setup.c (setup): New parameter allow_floppy.
  15583. (arguments): New member allow_floppy.
  15584. (argp_parser): Handle --allow-floppy.
  15585. (main): Pass allow_floppy.
  15586. * util/grub-install.in: New option --allow-floppy passed though to
  15587. grub-setup.
  15588. 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
  15589. * util/grub-install.in: Handle partitionless disks.
  15590. 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
  15591. * util/grub-setup.c (setup): Don't clean blocklists before readability
  15592. verfification.
  15593. 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
  15594. * docs/grub.texi (Installation): Document embedding zone. Remove
  15595. obsolete grub-install example.
  15596. 2010-10-16 Szymon Janc <szymon@janc.net.pl>
  15597. * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
  15598. Set-but-not-used variable ifdef'ed.
  15599. * grub-core/lib/legacy_parse.c (grub_legacy_parse): Likewise.
  15600. * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Set-but-not-used
  15601. variable removed.
  15602. * grub-core/disk/lvm.c (grub_lvm_scan_device): Likewise.
  15603. * grub-core/fs/jfs.c (grub_jfs_find_file): Likewise.
  15604. * grub-core/fs/minix.c (grub_minix_dir): Likewise.
  15605. * grub-core/fs/sfs.c (grub_sfs_read_extent): Likewise.
  15606. * grub-core/fs/ufs.c (grub_ufs_dir): Likewise.
  15607. * grub-core/gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
  15608. * grub-core/gfxmenu/view.c (redraw_menu_visit): Likewise.
  15609. * grub-core/gfxmenu/widget-box.c (draw): Likewise.
  15610. * grub-core/lib/relocator.c (malloc_in_range): Likewise.
  15611. * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta): Likewise.
  15612. * grub-core/loader/i386/bsd_pagetable.c (fill_bsd64_pagetable):
  15613. Likewise.
  15614. 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
  15615. * grub-core/commands/acpihalt.c (skip_ext_op): Skip index field op.
  15616. * include/grub/acpi.h (GRUB_ACPI_EXTOPCODE_INDEX_FIELD_OP): New
  15617. enum value.
  15618. 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
  15619. * grub-core/commands/acpihalt.c (get_sleep_type): Accept \_S5_ as
  15620. synonym to _S5_. Needed for some DSDTs.
  15621. 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
  15622. Userspace ACPI parser debugging.
  15623. * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Include userspace
  15624. headers and add relevant defines. Don't include standard headers.
  15625. (main) [GRUB_DSDT_TEST]: New function.
  15626. * include/grub/acpi.h [GRUB_DSDT_TEST]: Don't include standard headers.
  15627. Don't declare functions.
  15628. 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
  15629. Remove dead grub_efi_mm_fini.
  15630. * grub-core/kern/efi/mm.c (allocated_page): Removed.
  15631. (ALLOCATED_PAGES_SIZE): Likewise.
  15632. (MAX_ALLOCATED_PAGES): Likewise.
  15633. (allocated_pages): Likewise.
  15634. (grub_efi_allocate_pages): Don't record allocated pages.
  15635. (grub_efi_free_pages): Likewise.
  15636. (grub_efi_mm_init): Likewise.
  15637. (grub_efi_mm_fini): Removed.
  15638. 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
  15639. * grub-core/kern/efi/mm.c (BYTES_TO_PAGES): Round up instead of down.
  15640. (grub_efi_mm_init): Take into account the memory map size increase.
  15641. 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
  15642. * grub-core/term/ns8250.c (do_real_config): Set port->broken to 0.
  15643. (serial_hw_put): Wait based on real time rather than port reads. Don't
  15644. roken ports.
  15645. * include/grub/serial.h (grub_serial_port): New field broken.
  15646. 2010-10-16 Robert Millan <rmh@gnu.org>
  15647. * grub-core/kern/emu/misc.c
  15648. (grub_make_system_path_relative_to_its_root): Fix premature return
  15649. when processing non-root ZFS filesystems.
  15650. Reported by Sergio Talens-Oliag.
  15651. 2010-10-15 Robert Millan <rmh@gnu.org>
  15652. * util/grub.d/10_linux.in (list): Expand "vmlinu[zx]" instances to
  15653. guarantee compressed ones are processed first.
  15654. 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
  15655. * grub-core/efiemu/main.c (grub_efiemu_prepare): Handle errors from
  15656. grub_efiemu_autocore.
  15657. 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
  15658. * grub-core/kern/i386/pc/startup.S (bypass_table): Use 0x1b explicitly
  15659. rather than 0x1b.
  15660. (grub_console_getkey): Use correct jae opcode rather than ja.
  15661. 2010-10-12 Robert Millan <rmh@gnu.org>
  15662. * util/grub-mkconfig.in: Merge `GRUB_DISABLE_LINUX_RECOVERY' and
  15663. `GRUB_DISABLE_NETBSD_RECOVERY' into a single `GRUB_DISABLE_RECOVERY'
  15664. variable. All references updated.
  15665. * util/grub.d/10_kfreebsd.in: Support recovery boot entries.
  15666. 2010-10-08 Vladimir Serbinenko <phcoder@gmail.com>
  15667. Correctly distinguish mdraid flavours.
  15668. * grub-core/disk/raid.c (grub_raid_getname) [GRUB_UTIL]: New function.
  15669. (insert_array): New argument raid.
  15670. * include/grub/disk.h (grub_disk_dev) [GRUB_UTIL]: New member raidname.
  15671. * include/grub/raid.h (grub_raid_array) [GRUB_UTIL]: New member driver.
  15672. * util/grub-probe.c (probe): PRint raidname instead of plainly "mdraid".
  15673. 2010-10-09 Vladimir Serbinenko <phcoder@gmail.com>
  15674. * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Fix incorrect
  15675. handling of special keys.
  15676. 2010-10-02 Aleš Nesrsta <starous@volny.cz>
  15677. * include/grub/scsi.h (grub_make_scsi_id): Fix incorrect usgae of
  15678. GRUB_SCSI_ID_BUS_SHIFT instead of GRUB_SCSI_ID_LUN_SHIFT.
  15679. 2010-10-02 Aleš Nesrsta <starous@volny.cz>
  15680. * grub-core/bus/usb/ohci.c (GRUB_OHCI_TDS): Increase.
  15681. * grub-core/bus/usb/uhci.c (N_TD): New definition. All previous implicit
  15682. users updated.
  15683. * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_setup_readwrite):
  15684. Use right endpoint when querying descriptor.
  15685. 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
  15686. Clear out 0x80 color bit on EFI.
  15687. Tested by: decoder
  15688. Reported by: decoder and meta tech.
  15689. * grub-core/term/efi/console.c (grub_console_standard_color): Removed.
  15690. (grub_console_setcolorstate): Clear out 0x80 bit.
  15691. Use GRUB_TERM_DEFAULT_STANDARD_COLOR.
  15692. (grub_console_output): Use GRUB_TERM_DEFAULT_NORMAL_COLOR.
  15693. Use GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR.
  15694. 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
  15695. * grub-core/loader/i386/linux.c (DEFAULT_VIDEO_MODE) [GRUB_MACHINE_EFI]:
  15696. Set to "auto".
  15697. 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
  15698. * grub-core/gettext/gettext.c (grub_gettext_init_ext): Avoid using
  15699. mo_file after freeing.
  15700. 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
  15701. * grub-core/normal/term.c (read_terminal_list): Free in a right order.
  15702. 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
  15703. * grub-core/script/execute.c (grub_script_execute_sourcecode): Set
  15704. flags.
  15705. 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
  15706. * util/grub-setup.c (main) [GRUB_MACHINE_IEEE1275]: Propagate argp
  15707. usage.
  15708. 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
  15709. Put terminfo into core on ieee1275 and yeeloong (needed for console).
  15710. * gentpl.py: New groups terminfoinkernel and terminfomodule.
  15711. * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include extcmd.h, arg.h
  15712. and terminfo.h when needed.
  15713. * grub-core/Makefile.core.def (kernel): Include term/terminfo.c,
  15714. term/tparm.c, commands/extcmd.c, lib/arg.c on terminfokernel.
  15715. (terminfo): Enable only on terminfokernel.
  15716. (extcmd): Likewise.
  15717. * include/grub/extcmd.h: Add missing EXPORT_FUNC.
  15718. * include/grub/lib/arg.h: Likewise.
  15719. * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Fix
  15720. incorrect usage of ->.
  15721. 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
  15722. * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi]
  15723. [GRUB_MACHINE_EFI && __i386__]: Fix typo.
  15724. 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
  15725. Fix coreboot compilation.
  15726. * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
  15727. Take VBE info into account even if only text is supported.
  15728. (fill_vbe_info): Take into account the case when only VGA text
  15729. is supported.
  15730. * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): Set to zero
  15731. on coreboot, multiboot and qemu.
  15732. 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
  15733. * grub-core/lib/relocator.c (malloc_in_range): Trim too verbose
  15734. debug messages.
  15735. (grub_relocator_prepare_relocs): Set movers_chunk.srcv.
  15736. 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
  15737. * grub-core/loader/i386/bsd.c (grub_cmd_netbsd): Provide default serial
  15738. parameters.
  15739. 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
  15740. * grub-core/lib/arg.c (grub_arg_parse): Fix treating of all commands as
  15741. if they were BSD-style.
  15742. 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
  15743. * grub-core/boot/i386/pc/lnxboot.S: Replace
  15744. GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE with
  15745. GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART.
  15746. 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
  15747. Write embedding zone using Reed-Solomon.
  15748. * Makefile.util.def (grub-setup): Add grub-core/lib/reed_solomon.c.
  15749. * grub-core/Makefile.am (rs_decoder.S): New target.
  15750. (kern/i386/pc/startup.S): Depend on rs_decoder.S.
  15751. * grub-core/kern/i386/pc/startup.S (reed_solomon_redundancy): New field.
  15752. (multiboot): Move to RS part.
  15753. (post_reed_solomon): New label.
  15754. (grub_boot_drive): Move to non-RS part since it's modified in memory
  15755. on boot.
  15756. Include rs_decoder.S.
  15757. * grub-core/lib/reed_solomon.c: New file.
  15758. * include/grub/offsets.h (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY):
  15759. New definition.
  15760. (GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE): Removed.
  15761. (GRUB_KERNEL_I386_PC_RAW_SIZE): Updated.
  15762. (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): New definition.
  15763. * include/grub/partition.h (grub_partition_map): Change prototype of
  15764. embed to allow returning additional sectors.
  15765. * include/grub/reed_solomon.h: New file.
  15766. * util/grub-setup.c (setup): Handle Reed-Solomon.
  15767. 2010-09-28 Colin Watson <cjwatson@ubuntu.com>
  15768. * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
  15769. i386 and x86-64 definedness tests.
  15770. 2010-09-27 Yves Blusseau <blusseau@zetam.org>
  15771. Fix generation of kernel_syms.lst
  15772. * grub-core/Makefile.am (kernel_syms.lst): Fix value and position of
  15773. ASM_PREFIX
  15774. 2010-09-26 Robert Millan <rmh@gnu.org>
  15775. Support degraded ZFS arrays in "grub-probe -t device" resolution.
  15776. * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): When
  15777. the pool is an array of devices, iterate through it and return the
  15778. first device that passes a stat() test (instead of blindly returning
  15779. the first one).
  15780. 2010-09-26 Robert Millan <rmh@gnu.org>
  15781. Build fixes for GNU/kFreeBSD.
  15782. * Makefile.util.def: Add `$(LIBZFS) $(LIBNVPAIR)' library dependencies
  15783. to programs that require ZFS conversion.
  15784. * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Support
  15785. kernels that don't have FLOPPY_MAJOR.
  15786. 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
  15787. * grub-core/kern/emu/full.c (grub_emu_post_init): Fix typo.
  15788. 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
  15789. Fix grub-emu build.
  15790. * grub-core/kern/emu/main.c: Remove #include <getopt.h>.
  15791. * grub-core/kern/emu/full.c: Split grub_mdraid_{init,fini} into
  15792. mdraid09 and mdraid1x.
  15793. 2010-09-24 Colin Watson <cjwatson@ubuntu.com>
  15794. Re-enable grub-extras.
  15795. * autogen.sh: Create symlinks to ${GRUB_CONTRIB} if necessary to
  15796. avoid confusing Automake. Run autogen only twice, once for the top
  15797. level and once for grub-core. Add Makefile.util.def and
  15798. Makefile.core.def from extra modules to the appropriate autogen
  15799. invocations. If Makefile.common exists in an extra module, include
  15800. it in both Makefile.util.am and grub-core/Makefile.core.am;
  15801. similarly, include any Makefile.util.common file in Makefile.util.am
  15802. and any Makefile.core.common file in grub-core/Makefile.core.am.
  15803. * conf/Makefile.common ($(top_srcdir)/grub-core/Makefile.core.am):
  15804. Depend on $(top_srcdir)/grub-core/Makefile.gcry.def.
  15805. ($(top_srcdir)/grub-core/Makefile.gcry.def): Remove.
  15806. * grub-core/Makefile.am: Remove inclusion of Makefile.gcry.am.
  15807. * gentpl.py (gvar_add): Turn GVARS into a set.
  15808. (global_variable_initializers): Sort global variables on output.
  15809. (vars_init): New function.
  15810. (first_time): Likewise.
  15811. (library): Ensure that non-global variable initialisations are
  15812. emitted before the first time we emit code for a library block.
  15813. Append to variables rather than setting them. Only emit
  15814. noinst_LIBRARIES, BUILT_SOURCES, and CLEANFILES the first time for
  15815. each conditional path.
  15816. (program): installdir() emits an Autogen macro, so must be passed to
  15817. var_add rather than gvar_add.
  15818. (data): Likewise.
  15819. (script): Likewise.
  15820. (rules): New function, centralising handling for different target
  15821. types. Set up Guile association lists for first_time and vars_init,
  15822. and send most output to a diversion so that variable initialisations
  15823. can be emitted first.
  15824. (module_rules): Use new rules function.
  15825. (kernel_rules): Likewise.
  15826. (image_rules): Likewise.
  15827. (library_rules): Likewise.
  15828. (program_rules): Likewise.
  15829. (script_rules): Likewise.
  15830. (data_rules): Likewise.
  15831. * configure.ac: Add AC_PROG_LN_S, for the benefit of ntldr-img.
  15832. * .bzrignore: Add contrib and grub-core/contrib. Remove
  15833. grub-core/Makefile.gcry.am.
  15834. 2010-09-24 Yves Blusseau <blusseau@zetam.org>
  15835. * grub-core/lib/LzFind.c: Add missing include.
  15836. * grub-core/lib/LzmaEnc.c: Likewise.
  15837. * grub-core/script/lexer.c: Likewise.
  15838. * grub-core/script/yylex.l: Likewise.
  15839. * util/grub-macho2img.c: Likewise.
  15840. * util/grub-menulst2cfg.c: Likewise.
  15841. * util/grub-mklayout.c: Likewise.
  15842. * util/grub-mkpasswd-pbkdf2.c
  15843. * util/grub-mkrelpath.c: Likewise.
  15844. * util/resolve.c: Likewise.
  15845. 2010-09-24 BVK Chaitanya <bvk.groups@gmail.com>
  15846. * Makefile.util.def (example_unit_test): Add
  15847. grub-core/gnulib/libgnu.a.
  15848. 2010-09-23 Grégoire Sutre <gregoire.sutre@gmail.com>
  15849. * grub-core/commands/acpihalt.c (get_sleep_type): Initialize prev.
  15850. 2010-09-23 Vladimir Serbinenko <phcoder@gmail.com>
  15851. Support xz compression on yeeloong.
  15852. * Makefile.util.def (grub-mkimage): Add $(LIBLZMA).
  15853. * configure.ac: Check for LZMA.
  15854. * grub-core/Makefile.core.def (xz_decompress): New target.
  15855. (none_decompress): Likewise.
  15856. * grub-core/boot/decompressor/minilib.c: New file.
  15857. * grub-core/boot/decompressor/none.c: Likewise.
  15858. * grub-core/boot/decompressor/xz.c: Likewise.
  15859. * grub-core/kern/mips/cache.S: Change to noreorder nomacro.
  15860. * grub-core/kern/mips/cache_flush.S: Likewise.
  15861. * grub-core/kern/i386/pc/lzma_decode.S: Remove dead code.
  15862. * grub-core/kern/mips/startup.S: Move first stage to ...
  15863. * grub-core/boot/mips/startup_raw.S: ...here. Change to noreorder
  15864. nomacro.
  15865. * grub-core/kern/mips/startup.S: Change to noreorder nomacro.
  15866. * grub-core/lib/mips/relocator_asm.S: Change to noreorder nomacro.
  15867. * grub-core/lib/xzembed/xz_dec_bcj.c [GRUB_EMBED_DECOMPRESSOR]:
  15868. Allocate statically.
  15869. * grub-core/lib/xzembed/xz_dec_lzma2.c [GRUB_EMBED_DECOMPRESSOR]:
  15870. Allocate statically or use scratch. Don't check CRC32.
  15871. * grub-core/lib/xzembed/xz_dec_stream.c [GRUB_EMBED_DECOMPRESSOR]:
  15872. Allocate statically. Don't check CRC32.
  15873. * include/grub/decompressor.h: New file.
  15874. * include/grub/offsets.h (GRUB_KERNEL_MIPS_YEELOONG_RAW_SIZE):
  15875. Removed.
  15876. (GRUB_KERNEL_MIPS_YEELOONG_UNCOMPRESSED_SIZE): New field.
  15877. (GRUB_KERNEL_MIPS_YEELOONG_TOTAL_MODULE_SIZE): Adjusted.
  15878. (GRUB_KERNEL_MIPS_YEELOONG_PREFIX): Likewise.
  15879. (GRUB_KERNEL_MIPS_YEELOONG_PREFIX_END): Likewise.
  15880. (GRUB_KERNEL_MACHINE_UNCOMPRESSED_SIZE): New define.
  15881. * util/grub-mkimage.c (grub_compression_t): New type.
  15882. (PLATFORM_FLAGS_DECOMPRESSORS): New flag.
  15883. (image_target_desc): New field default_compression.
  15884. (image_targets): Adjust yeeloong targets.
  15885. (compress_kernel_xz) [HAVE_LIBLZMA]: New function.
  15886. (compress_kernel): New parameter comp.
  15887. (generate_image): Likewise. Handle new compression case.
  15888. (options): New option --compression
  15889. (help): Likewise.
  15890. (main): Handle new option.
  15891. 2010-09-22 Grégoire Sutre <gregoire.sutre@gmail.com>
  15892. * grub-core/kern/emu/hostdisk.c [__NetBSD__]: Define FLOPPY_MAJOR.
  15893. 2010-09-22 Colin Watson <cjwatson@ubuntu.com>
  15894. * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
  15895. typo in __i386__ conditional.
  15896. 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
  15897. * grub-core/loader/multiboot_mbi2.c (GRUB_MACHINE_EFI): Add missing
  15898. include.
  15899. 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
  15900. Implement EFI and ACPI multiboot2 extensions.
  15901. * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare
  15902. new tags as supported.
  15903. (acpiv2_size): New function.
  15904. (grub_multiboot_get_mbi_size): Take new tags into account.
  15905. (grub_multiboot_make_mbi): Add new tags.
  15906. * include/grub/multiboot.h (GRUB_MACHINE_HAS_ACPI): New definition.
  15907. 2010-09-21 Aleš Nesrsta <starous@volny.cz>
  15908. * grub-core/bus/usb/serial/common.c (grub_usbserial_attach):
  15909. Added missing configuration of USB device.
  15910. 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
  15911. * grub-core/normal/menu_entry.c (run): Make sure we always return
  15912. a value.
  15913. 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
  15914. * grub-core/commands/efi/lsefimmap.c (grub_cmd_lsefimmap):
  15915. NumberOfPages is UINT64 according to the UEFI specification, not
  15916. UINTN. Fix printf format.
  15917. 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
  15918. * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Change type of
  15919. `err' to grub_usb_err_t.
  15920. Reported and tested by: KESHAV P.R.
  15921. 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
  15922. * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Make
  15923. tpart non-const, so that we can assign to it. (Since this is a
  15924. typedef, the constness refers to the pointer rather than what it
  15925. points to.)
  15926. 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
  15927. * conf/Makefile.common (CPPFLAGS_GNULIB): Add
  15928. $(top_srcdir)/grub-core/gnulib as well as
  15929. $(top_builddir)/grub-core/gnulib.
  15930. Reported by: KESHAV P.R.
  15931. 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
  15932. * util/grub-install.in: Fix the bootloader ID option to be
  15933. consistently --bootloader-id, not --bootloader_id.
  15934. Reported by: KESHAV P.R.
  15935. 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
  15936. * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Make "Compute or
  15937. check hash checksum." consistently translatable.
  15938. 2010-09-21 Yves Blusseau <blusseau@zetam.org>
  15939. * conf/Makefile.common (CPPFLAGS_GNULIB): Replace $(top_srcdir) with
  15940. $(top_builddir).
  15941. 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
  15942. * grub-core/commands/hashsum.c (aliases): Add sha1sum alias.
  15943. (GRUB_MOD_INIT): Register sha1sum command.
  15944. (GRUB_MOD_FINI): Unregister sha1sum command.
  15945. 2010-09-21 Yves Blusseau <blusseau@zetam.org>
  15946. Keep boot and grub directory names in sync with utils scripts
  15947. * configure.ac: Define GRUB_BOOT_DIR_NAME and GRUB_DIR_NAME macros.
  15948. * config.h.in: Add previous macros.
  15949. * include/grub/emu/misc.h (DEFAULT_DIRECTORY): Use previous macros.
  15950. * util/grub-install.in: Use $bootdir and $grubdir variables.
  15951. 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
  15952. * grub-core/kern/emu/hostdisk.c (find_system_device): Only try to
  15953. convert partition names to disk names if the new `convert' parameter
  15954. is set.
  15955. (grub_util_biosdisk_get_grub_dev): If opening the disk device
  15956. returns GRUB_ERR_UNKNOWN_DEVICE, treat the partition device as a
  15957. disk in its own right. This can happen with Xen disk images.
  15958. 2010-09-21 Yves Blusseau <blusseau@zetam.org>
  15959. * util/grub-editenv.c: Update strings to avoid warnings when generating
  15960. grub.pot file.
  15961. * util/grub-setup.c: Likewise.
  15962. 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
  15963. * configure.ac: Change version to 1.99~beta0.
  15964. 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
  15965. * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
  15966. Add BADRAM.
  15967. * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap):
  15968. Likewise.
  15969. * include/multiboot.h: Resynced with specification.
  15970. * include/multiboot2.h: Likewise.
  15971. 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
  15972. Fix po directory handling.
  15973. * configure.ac: Create po/Makefile.in rather than po/Makefile.
  15974. * grub-core/gnulib/Makefile.am: Import gettext module.
  15975. * m4/gnulib-cache.m4: Likewise.
  15976. * m4/gnulib-comp.m4: Likewise.
  15977. * m4/gettext.m4: New file, from gnulib.
  15978. * m4/glibc2.m4: Likewise.
  15979. * m4/iconv.m4: Likewise.
  15980. * m4/intdiv0.m4: Likewise.
  15981. * m4/intl.m4: Likewise.
  15982. * m4/intldir.m4: Likewise.
  15983. * m4/intlmacosx.m4: Likewise.
  15984. * m4/intmax.m4: Likewise.
  15985. * m4/inttypes-pri.m4: Likewise.
  15986. * m4/lcmessage.m4: Likewise.
  15987. * m4/lib-ld.m4: Likewise.
  15988. * m4/lib-link.m4: Likewise.
  15989. * m4/lib-prefix.m4: Likewise.
  15990. * m4/lock.m4: Likewise.
  15991. * m4/nls.m4: Likewise.
  15992. * m4/po.m4: Likewise.
  15993. * m4/printf-posix.m4: Likewise.
  15994. * m4/progtest.m4: Likewise.
  15995. * m4/threadlib.m4: Likewise.
  15996. * m4/uintmax_t.m4: Likewise.
  15997. * m4/visibility.m4: Likewise.
  15998. * po/Makefile.am: Remove.
  15999. * po/Makefile.in.in: New file, from gettext.
  16000. ($(DOMAIN).pot-update): Support POTFILES-shell.
  16001. * po/Makevars: New file.
  16002. * po/POTFILES-shell: Rename to ...
  16003. * po/POTFILES-shell.in: ... this. Update.
  16004. * po/POTFILES: Rename to ...
  16005. * po/POTFILES.in: ... this. Update.
  16006. * po/Rules-quot: New file, from gettext.
  16007. * po/boldquot.sed: Likewise.
  16008. * po/en@boldquot.header: Likewise.
  16009. * po/en@quot.header: Likewise.
  16010. * po/insert-header.sin: Likewise.
  16011. * po/quot.sed: Likewise.
  16012. * po/remove-potcdate.sin: Likewise.
  16013. 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
  16014. * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Use UUID when possible.
  16015. 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
  16016. * util/grub.d/20_linux_xen.in: Use submenus.
  16017. 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
  16018. Support submenus.
  16019. * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): New
  16020. parameter submenu. All users updated.
  16021. * grub-core/normal/main.c (free_menu): Rename to ...
  16022. (grub_normal_free_menu): ... this. Made global.
  16023. * grub-core/normal/menu.c (grub_menu_execute_entry): Open new context
  16024. if requested.
  16025. * grub-core/normal/menu_entry.c (screen): New field submenu.
  16026. (make_screen): Set submenu.
  16027. (run): Open new context if requested.
  16028. * include/grub/menu.h (grub_menu_entry): New field submenu.
  16029. * include/grub/normal.h (grub_normal_free_menu): New proto.
  16030. 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
  16031. Menu entries extractor.
  16032. * grub-core/commands/configfile.c (grub_cmd_source): Implement extractor
  16033. variants.
  16034. (GRUB_MOD_INIT): Register new variants.
  16035. (GRUB_MOD_FINI): Unregister new variants.
  16036. * grub-core/commands/legacycfg.c (grub_cmd_legacy_configfile): Merge
  16037. into grub_cmd_legacy_source.
  16038. (grub_cmd_legacy_source): Implement extractor variants.
  16039. (GRUB_MOD_INIT): Register new variants.
  16040. (GRUB_MOD_FINI): Unregister new variants.
  16041. * grub-core/commands/menuentry.c (grub_menu_init): Declare menuentry
  16042. as an extractor.
  16043. * grub-core/commands/search_wrap.c (GRUB_MOD_INIT): Declare
  16044. search as an extractor.
  16045. * grub-core/commands/test.c (GRUB_MOD_INIT): Declare
  16046. test as an extractor.
  16047. * grub-core/kern/corecmd.c (grub_register_core_commands): Declare set
  16048. as an extractor.
  16049. * grub-core/normal/context.c (grub_env_context_open): Reorganised.
  16050. (grub_env_new_context): New function.
  16051. (grub_env_context_open): Likewise.
  16052. (grub_env_extractor_open): Likewise.
  16053. (grub_env_extractor_close): Likewise.
  16054. * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
  16055. grub_extractor_level.
  16056. * include/grub/command.h (GRUB_COMMAND_FLAG_EXTRACTOR): New flag.
  16057. * include/grub/env.h (grub_env_extractor_open): New proto.
  16058. (grub_env_extractor_close): Likewise.
  16059. * include/grub/normal.h (grub_extractor_level): New external variable.
  16060. 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
  16061. Make cutmem accept a region specification.
  16062. Suggested by: Samuel Thibault
  16063. * grub-core/mmap/mmap.c (parsemem): New function.
  16064. (grub_cmd_cutmem): Handle new arguments.
  16065. 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
  16066. New command cutmem.
  16067. * grub-core/mmap/mmap.c (grub_cmd_cutmem): New function.
  16068. (GRUB_MOD_INIT): Register new command.
  16069. (GRUB_MOD_FINI): Unregister new command.
  16070. 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
  16071. Support some annoying BSD and Minix subpartitions.
  16072. * Makefile.util.def (libgrub.a): Add grub-core/partmap/bsdlabel.c.
  16073. * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
  16074. Properly handle concatenation.
  16075. * grub-core/kern/device.c (grub_device_iterate): Likewise.
  16076. * grub-core/normal/completion.c (iterate_partition): Likewise.
  16077. * grub-core/kern/disk.c (grub_disk_open): Make disk->name not
  16078. contain partition. All users updated.
  16079. * grub-core/partmap/bsdlabel.c (grub_netbsdlabel_partition_map): New
  16080. struct.
  16081. (grub_openbsdlabel_partition_map): Likewise.
  16082. (bsdlabel_partition_map_iterate): Rename to ..
  16083. (iterate_real): ... this. New arguments sector, freebsd and pmap.
  16084. (bsdlabel_partition_map_iterate): New function.
  16085. (netopenbsdlabel_partition_map_iterate): Likewise.
  16086. (netbsdlabel_partition_map_iterate): Likewise.
  16087. (openbsdlabel_partition_map_iterate): Likewise.
  16088. (GRUB_MOD_INIT): Register new partmaps.
  16089. (GRUB_MOD_FINI): Unregister new partmaps.
  16090. * grub-core/partmap/msdos.c (pc_partition_map_iterate): Rename to ...
  16091. (grub_partition_msdos_iterate): ... this. All users updated.
  16092. Don't support embedding other than in a minix partition.
  16093. * include/grub/msdos_partition.h (grub_partition_msdos_iterate): New
  16094. proto.
  16095. * include/grub/partition.h (grub_partition): New field msdostype.
  16096. * util/grub-install.in: Handle openbsd and netbsd types being in
  16097. part_bsd module.
  16098. 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
  16099. Split mdraid.mod into mdraid09.mod and mdraid1x.mod.
  16100. * Makefile.util.def (libgrub.a): Add grub-core/disk/mdraid1x_linux.c.
  16101. * grub-core/Makefile.core.def (mdraid): Renamed to ...
  16102. (mdraid09): ... this.
  16103. (mdraid1x): New module.
  16104. * grub-core/disk/mdraid_linux.c: Move 1.x parts ...
  16105. * grub-core/disk/mdraid1x_linux.c: ...here. All users updated.
  16106. 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
  16107. * grub-core/kern/emu/misc.c (asprintf): Use vsnprintf instead of
  16108. vsprintf.
  16109. 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
  16110. * grub-core/commands/efi/lsefimmap.c: Correct header.
  16111. * NEWS: Update.
  16112. 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
  16113. * util/grub-editenv.c (argp_parser): Don't pass translated strings
  16114. as printf format strings; the translations might contain '%' which
  16115. could cause a crash.
  16116. (main): Likewise.
  16117. * util/grub-fstest.c (argp_parser): Likewise.
  16118. * util/grub-setup.c (argp_parser): Likewise.
  16119. (main): Likewise.
  16120. 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
  16121. Use argp in grub-fstest.
  16122. * util/grub-fstest.c: Don't include getopt.h.
  16123. Include argp.h.
  16124. (root): New variable.
  16125. (args_count): Likewise.
  16126. (nparm): Likewise.
  16127. (num_disks): Likewise.
  16128. (images): Likewise.
  16129. (cmd): Likewise.
  16130. (debug_str): Likewise.
  16131. (args): Likewise.
  16132. (options): Transformed to argp.
  16133. (usage): Removed.
  16134. (main): Split argument parsing into ...
  16135. (argp_parser): ... this. Changed to argp format.
  16136. (argp): New variable.
  16137. (main): Use argp_parse.
  16138. 2010-09-20 Tristan Gingold <gingold@free.fr>
  16139. 2010-09-20 Robert Millan <rmh.grub@aybabtu.com>
  16140. 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
  16141. * grub-core/commands/efi/lsefimmap.c: New file.
  16142. * grub-core/Makefile.core.def (lsefimmap): New module.
  16143. * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): New definition.
  16144. 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
  16145. Pause the execution (10s max) if any errors are displayed so the user
  16146. has a chance to see them.
  16147. * grub-core/kern/err.c (grub_err_printed_errors): New variable.
  16148. (grub_print_error): Increment grub_err_printed_errors.
  16149. * grub-core/normal/menu.c (grub_menu_execute_entry): Pause the
  16150. execution if any errors were displayed.
  16151. (show_menu): Remove old code for pause.
  16152. * grub-core/normal/menu_entry.c (run): Likewise.
  16153. * grub-core/normal/term.c (grub_normal_char_counter): Removed. All
  16154. users updated.
  16155. (grub_normal_get_char_counter): Likewise.
  16156. * include/grub/err.h (grub_err_printed_errors): New external variable.
  16157. * include/grub/normal.h (grub_normal_get_char_counter): Removed.
  16158. 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
  16159. Support multiboot VBE info.
  16160. * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
  16161. Take VBE info into account.
  16162. (fill_vbe_info) [GRUB_MACHINE_HAS_VBE]: New function.
  16163. (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
  16164. Call fill_vbe_info when appropriate.
  16165. (grub_multiboot_make_mbi): Account for the size occupied by VBE info.
  16166. * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare tags
  16167. as supported.
  16168. (grub_multiboot_get_mbi_size): Take new tags into account.
  16169. (fill_vbe_tag) [GRUB_MACHINE_HAS_VBE]: New function.
  16170. (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
  16171. Call fill_vbe_tag when appropriate.
  16172. (grub_multiboot_make_mbi): Properly align tags.
  16173. * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_pm_interface): New
  16174. function.
  16175. * include/grub/i386/pc/vbe.h (grub_vbe_bios_get_pm_interface): New
  16176. proto.
  16177. * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): New definition.
  16178. 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
  16179. Suport manual terminal geometry specification.
  16180. * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions):
  16181. Save state in grub_ofconsole_terminfo_output.
  16182. (grub_ofconsole_term): Use grub_terminfo_getwh.
  16183. (grub_ofconsole_getwh): Removed.
  16184. * grub-core/term/serial.c (grub_serial_getwh): Removed.
  16185. (grub_serial_term): Use grub_terminfo_getwh.
  16186. * grub-core/term/terminfo.c (grub_terminfo_getwh): New function.
  16187. (options): New struct.
  16188. (OPTION_*): New enum.
  16189. (grub_cmd_terminfo): Transform into extcmd and handle new parameters.
  16190. * include/grub/terminfo.h (grub_terminfo_output_state): New fields
  16191. width and height.
  16192. (grub_terminfo_getwh): New proto.
  16193. * grub-core/lib/legacy_parse.c (grub_legacy_parse): Handle --lines.
  16194. 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
  16195. Handle legacy "terminal" command.
  16196. * grub-core/lib/legacy_parse.c (legacy_command): New flags FLAG_TITLE
  16197. and FLAG_TERMINAL.
  16198. (legacy_commands): Add terminal and title.
  16199. (grub_legacy_parse): Handle terminal. Simplify title handling.
  16200. 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
  16201. * grub-core/lib/arg.c (grub_arg_show_help): Correctly handle
  16202. parameters overflow.
  16203. 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
  16204. * .bzrignore: Add grub-core/gnulib/sys, widthspec.bin, and
  16205. widthspec.h.
  16206. * docs/grub.texi (Shell-like scripting): Document `!'.
  16207. (Network): Simplify using new i386-pc-pxe format. Mention
  16208. grub-mknetdir.
  16209. * NEWS: Update.
  16210. 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
  16211. * Makefile.am (SUBDIRS): Restore "."; it's important to force
  16212. ordering, so that e.g. ascii.h is built before grub-core/font/font.c
  16213. when needed.
  16214. 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
  16215. * grub-core/commands/efi/lsefisystab.c: Correct header.
  16216. * grub-core/commands/efi/lssal.c: Likewise.
  16217. * grub-core/commands/testload.c: Likewise.
  16218. 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
  16219. * util/grub-mkrescue.in: Add explicit root argument to --set to
  16220. prevent the UUID being interpreted as an argument to --set (matches
  16221. previous change to prepare_grub_to_access_device).
  16222. 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
  16223. * kern/emu/hostdisk.c: Include <sys/ioctl.h> and <sys/disklabel.h>
  16224. on FreeBSD. Define HAVE_DIOCGDINFO on NetBSD and FreeBSD to reduce
  16225. the verbosity of later #ifs.
  16226. (find_partition_start): Define this function on FreeBSD too.
  16227. (device_is_wholedisk) [__FreeBSD__ || __FreeBSD_kernel__]: New
  16228. function.
  16229. (grub_util_biosdisk_get_grub_dev): Use partition-start-sector logic
  16230. on FreeBSD.
  16231. 2010-09-20 Yves Blusseau <blusseau@zetam.org>
  16232. * util/grub-editenv.c: Use argp instead of getopt.
  16233. 2010-09-20 Yves Blusseau <blusseau@zetam.org>
  16234. * util/grub-setup.c: Use argp instead of getopt.
  16235. 2010-09-20 Yves Blusseau <blusseau@zetam.org>
  16236. Use gnulib-tool to create gnulib source files.
  16237. * Add gnulib files generated by gnulib-tool in build-aux, m4 and
  16238. grub-core/gnulib directories
  16239. * .bzignore: Add **/.deps and autogenerated gnulib files
  16240. * configure.ac: Assign auxiliary directory to build-aux, add invocation
  16241. of gnulib macros, add grub-core/gnulib/Makefile
  16242. * Makefile.am: Add gnulib directory in SUBDIRS (removing unnecessary .),
  16243. include m4 directory to aclocal.
  16244. * Makefile.util.def: Remove direct compilation of gnulib source files
  16245. and use the new grub-core/gnulib/libgnu.a.
  16246. * build-aux/config.rpath: move config.rpath from top directory to
  16247. build-aux
  16248. * conf/Makefile.common: Remove the macro _GL_UNUSED already defined
  16249. in gnulib headers
  16250. * conf/Makefile.extra-dist: Add m4/gnulib-cache.m4
  16251. * grub-core/Makefile.core.def: Remove unnecessary extra_dist
  16252. * grub-core/lib/posix_wrap/localcharset.h (locale_charset): Update
  16253. header.
  16254. * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Return static
  16255. string.
  16256. 2010-09-20 Yves Blusseau <blusseau@zetam.org>
  16257. * .bzrignore: Add grub-kbdcomp, grub-menulst2cfg, *.marker,
  16258. grub-core/genmod.sh and grub-core/gensyminfo.sh
  16259. 2010-09-20 BVK Chaitanya <bvk.groups@gmail.com>
  16260. Add a test for echo command options.
  16261. * tests/grub_cmd_echo.in: New test.
  16262. * Makefile.util.def: Rules for new test.
  16263. 2010-09-20 Szymon Janc <szymon@janc.net.pl>
  16264. Remove crc.mod and move crc command to hashsum.mod.
  16265. Remove lib/crc.c - users updated to use gcrypt implementation.
  16266. * grub-core/commands/crc.c: Removed.
  16267. * grub-core/Makefile.core.def (crc): Module removed.
  16268. * grub-core/commands/hashsum.c (aliases[]): Add crc alias.
  16269. * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Register crc command.
  16270. * grub-core/commands/hashsum.c (GRUB_MOD_FINI): Unregister crc command.
  16271. * grub-core/lib/crc.c: Removed.
  16272. * include/grub/lib/crc.h: Removed.
  16273. * Makefile.util.def (crc): Remove lib/crc.c
  16274. * grub-core/Makefile.core.def (libgrub.a): Remove grub-core/lib/crc.c.
  16275. * util/grub-fstest.c (cmd_crd): Use libgcrypt crc implementation.
  16276. * Makefile.util.def (libgrub.a): Add grub-core/lib/libgcrypt-grub/cipher/crc.c.
  16277. * Makefile.util.def (grub-fstest): Add CFLAGS_GCRY to cflags.
  16278. * Makefile.util.def (grub-fstest): Add CPPFLAGS_GCRY to cppflags.
  16279. * grub-core/efiemu/prepare.c (grub_efiemu_crc): Use libgcrypt crc implementation.
  16280. 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
  16281. * grub-core/boot/i386/pc/boot.S: Ignore %dl if it's not in a sane range.
  16282. 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
  16283. Split config.h for util and core.
  16284. * acinclude.m4 (HAVE_ASM_USCORE): Transformed into a variable.
  16285. (ADDR32): Likewise.
  16286. (DATA32): Likewise.
  16287. (BSS_START_SYMBOL): Likewise.
  16288. (END_SYMBOL): Likewise.
  16289. (NEED_ENABLE_EXECUTE_STACK): Likewise. All users updated.
  16290. (grub_I386_ASM_ABSOLUTE_WITHOUT_ASTERISK): Removed.
  16291. * config.h.in: New file.
  16292. * configure.ac: Use config-util.h as config define file.
  16293. Rename MACHINE into GRUB_MACHINE. All users updated.
  16294. (NEED_REGISTER_FRAME_INFO): Transformed into a variable. All users
  16295. updated.
  16296. (NESTED_FUNC_ATTR): Likewise.
  16297. Substitue new variables.
  16298. (COND_HAVE_ASM_USCORE): New conditional.
  16299. * grub-core/Makefile.am (ASM_PREFIX): New variable.
  16300. (kernel_syms.lst): Use ASM_PREFIX.
  16301. * grub-core/kern/emu/console.c: Include config-util.h.
  16302. * grub-core/kern/emu/misc.c: Likewise.
  16303. * grub-core/kern/emu/mm.c: Likewise.
  16304. * include/grub/emu/misc.h: Likewise.
  16305. * include/grub/libgcc.h: Likewise.
  16306. 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
  16307. * grub-core/term/efi/console.c (efi_codes): Fix GRUB_TERM_KEY_*
  16308. constants usage.
  16309. * grub-core/kern/emu/console.c (grub_ncurses_getkey):
  16310. Fix GRUB_TERM_KEY_* constants usage.
  16311. * grub-core/kern/emu/misc.c (asprintf): Fix vasprintf usage.
  16312. 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
  16313. * grub-core/bus/usb/ohci.c (grub_ohci_cancel_transfer): Use %p to
  16314. print pointer.
  16315. * grub-core/bus/usb/uhci.c: Remove empty define.
  16316. (grub_uhci_check_transfer): Add missing cast.
  16317. * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Use %p to
  16318. print pointer.
  16319. * grub-core/term/usb_keyboard.c (grub_usb_keyboard_getkey): Use
  16320. PRIuGRUB_SIZE.
  16321. * include/grub/types.h (PRIuGRUB_SIZE): New definition.
  16322. 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
  16323. * grub-core/Makefile.core.def (legacycfg): Add
  16324. lib/i386/pc/vesa_modes_table.c on emu.
  16325. 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
  16326. Reduce number of temporary files generated by build system.
  16327. * grub-core/gencmdlist.sh: Removed.
  16328. * grub-core/genfslist.sh: Removed.
  16329. * grub-core/genhandlerlist.sh: Removed.
  16330. * grub-core/genmodsrc.sh: Removed.
  16331. * grub-core/genpartmaplist.sh: Removed.
  16332. * grub-core/genparttoollist.sh: Removed.
  16333. * grub-core/gentermiinallist.sh: Removed.
  16334. * grub-core/genvideolist.sh: Removed.
  16335. * grub-core/genmod.sh.in: New file.
  16336. * grub-core/gensyminfo.sh.in: New file.
  16337. * conf/Makefile.common (CPPFLAGS_*_LIST): New marker flags.
  16338. * conf/Makefile.extra-dist: Update with new files.
  16339. * gentpl.py: Remove rules related to unnecessary temporary files.
  16340. * grub-core/Makefile.am (syminfo.lst): New replacement for def-*
  16341. and und-* files.
  16342. * grub-core/Makefile.core.def: New rules for gensyminfo.sh and
  16343. genmod.sh scripts.
  16344. * grub-core/bus/usb/uhci.c: Remove empty #define.
  16345. * grub-core/genmoddep.awk: Updated with new syminfo format.
  16346. * util/bash-completion.d/Makefile.am: Add config.log to
  16347. CLEANFILES.
  16348. 2010-09-19 Yves Blusseau <blusseau@zetam.org>
  16349. * Makefile.util.def: Add forgotten $(LIBINTL) library.
  16350. 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
  16351. * util/grub-mkconfig.in: Check the config script for syntax errors
  16352. before saving.
  16353. 2010-09-19 Colin Watson <cjwatson@ubuntu.com>
  16354. 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
  16355. * Makefile.util.def (grub-install): Use util/grub-install.in on all
  16356. platforms.
  16357. * util/grub-install.in: Add EFI and IEEE1275 support.
  16358. * util/i386/efi/grub-install.in: Removed.
  16359. * util/ieee1275/grub-install.in: Likewise.
  16360. 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
  16361. * grub-core/commands/i386/cmostest.c (+parse_args): New function.
  16362. (grub_cmd_cmosclean): Likewise.
  16363. (GRUB_MOD_INIT): Register command cmosclean.
  16364. * util/grub-mkconfig.in: Export GRUB_BUTTON_CMOS_CLEAN.
  16365. * util/grub.d/00_header.in: Handle GRUB_BUTTON_CMOS_CLEAN.
  16366. 2010-09-18 Carles Pina i Estany <carles@pina.cat>
  16367. 2010-09-18 Aleš Nesrsta <starous@volny.cz>
  16368. 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
  16369. Add keyboard layouts support.
  16370. * Makefile.util.def (grub-mklayout): New file.
  16371. (grub-kbdcomp): New script.
  16372. * grub-core/Makefile.am (KERNEL_HEADER_FILES) [COND_mips_yeeloong]:
  16373. Add keyboard_layouts.h.
  16374. * grub-core/Makefile.core.def (kernel): Add commands/keylayouts.c and
  16375. commands/boot.c on yeeloong.
  16376. (keylayouts): New module.
  16377. * grub-core/bus/usb/ohci.c
  16378. * grub-core/bus/usb/uhci.c
  16379. * grub-core/bus/usb/usbhub.c (rescan): New variable.
  16380. (grub_usb_add_hub): Poll interrupt pipe for device handling.
  16381. (attach_root_port): Likewise.
  16382. (poll_nonroot_hub): Likewise.
  16383. (grub_usb_poll_devices): Likewise.
  16384. (detach_device): Close transfer.
  16385. * grub-core/bus/usb/usbtrans.c (grub_usb_execute_and_wait_transfer): New
  16386. function.
  16387. (grub_usb_bulk_setup_readwrite): Likewise.
  16388. (grub_usb_bulk_finish_readwrite): Likewise.
  16389. * grub-core/commands/keylayouts.c: New file.
  16390. * grub-core/commands/keystatus.c (grub_getkeystatus): New function.
  16391. * grub-core/commands/menuentry.c (hotkey_aliases): All several new
  16392. aliases.
  16393. * grub-core/term/at_keyboard.c: Restructured to use keylayouts and
  16394. support scancode 2.
  16395. * grub-core/term/usb_keyboard.c: Restructured to use keylayouts.
  16396. * include/grub/keyboard_layouts.h: New file.
  16397. * util/grub-mklayout.c: New file.
  16398. * util/grub-kbdcomp.in: Likewise.
  16399. 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
  16400. Unify memory types.
  16401. * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include memory.h.
  16402. * grub-core/commands/lsmmap.c (grub_cmd_lsmmap): Output user-readable
  16403. types.
  16404. * grub-core/kern/i386/multiboot_mmap.c (grub_lower_mem): Removed.
  16405. (grub_upper_mem): Likewise.
  16406. * grub-core/kern/ieee1275/init.c (grub_upper_mem): Likewise.
  16407. * include/grub/memory.h (grub_memory_type_t): New enum.
  16408. All users updated.
  16409. 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
  16410. * grub-core/Makefile.core.def (lsapm): New module.
  16411. * grub-core/commands/i386/pc/lsapm.c: New file.
  16412. * grub-core/loader/i386/multiboot_mbi.c (make_mbi) [GRUB_MACHINE_PCBIOS]: Pass APM info.
  16413. * grub-core/loader/multiboot_mbi2.c (make_mbi) [GRUB_MACHINE_PCBIOS]:
  16414. Likewise.
  16415. * include/grub/i386/pc/apm.h: New file.
  16416. * include/multiboot.h (multiboot_apm_info): New struct.
  16417. 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
  16418. GRUB-legacy configuration file support.
  16419. * Makefile.util.def (grub-menulst2cfg): New util.
  16420. * docs/man/grub-menulst2cfg.h2m: New file.
  16421. * grub-core/Makefile.core.def (legacycfg): New module.
  16422. * grub-core/commands/legacycfg.c: New file.
  16423. * grub-core/commands/menuentry.c (append_menu_entry): Rename to ...
  16424. (grub_normal_add_menu_entry): ... this.
  16425. * grub-core/commands/password.c (grub_cmd_password): Split main part to ...
  16426. (grub_normal_set_password): ...this.
  16427. * grub-core/commands/videoinfo.c (grub_cmd_videoinfo): Support MODE.
  16428. * grub-core/loader/i386/linux.c (linux_vesafb_res): Move to ..,
  16429. * grub-core/lib/i386/pc/vesa_modes_table.c: ... here.
  16430. * grub-core/lib/legacy_parse.c: New file.
  16431. * grub-core/normal/auth.c (grub_cmd_authenticate): New command.
  16432. * include/grub/i386/pc/vesa_modes_table.h: New file.
  16433. * include/grub/legacy_parse.h: Likewise.
  16434. * include/grub/normal.h (grub_normal_add_menu_entry): New proto.
  16435. * util/grub-menulst2cfg.c: New file.
  16436. 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
  16437. * grub-core/kern/emu/hostdisk.c
  16438. (convert_system_partition_to_system_disk): Initialise node.
  16439. 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
  16440. * grub-core/kern/emu/hostdisk.c
  16441. (convert_system_partition_to_system_disk): Fix devmapper memory pool
  16442. leak.
  16443. Reported and based on patch by: Modestas Vainius.
  16444. 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
  16445. Fix DM-RAID probing with recent versions of device-mapper udev
  16446. rules.
  16447. * grub-core/kern/emu/hostdisk.c (read_device_map): Don't
  16448. canonicalise device paths under /dev/mapper/.
  16449. (convert_system_partition_to_system_disk): Compare the
  16450. uncanonicalised path to /dev/mapper/ rather than the canonicalised
  16451. path, since device nodes under /dev/mapper/ are often symlinks.
  16452. 2010-09-17 Yves Blusseau <blusseau@zetam.org>
  16453. * .bzrignore: *.d removed (old rule), add *.image and symlist.h.
  16454. 2010-09-16 Yves Blusseau <blusseau@zetam.org>
  16455. * configure.ac: Avoid some annoying error messages if freetype-config
  16456. program is not found.
  16457. 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
  16458. Support RAID on virtio devices, and others.
  16459. * grub-core/kern/emu/getroot.c [__MINGW32__] (find_root_device):
  16460. Rename to ...
  16461. [__MINGW32__] (grub_find_device): ... this.
  16462. [! __MINGW32__ && ! __CYGWIN__] (find_root_device): Rename to ...
  16463. [! __MINGW32__ && ! __CYGWIN__] (grub_find_device): ... this. Use a
  16464. reasonable default if dir is NULL.
  16465. [! __MINGW32__ && __CYGWIN__] (find_cygwin_root_device): Rename to
  16466. ...
  16467. [! __MINGW32__ && __CYGWIN__] (grub_find_device): ... this.
  16468. (grub_guess_root_device): Update callers.
  16469. * include/grub/emu/getroot.h (grub_find_device): Add prototype.
  16470. * util/raid.c (grub_util_getdiskname): Remove.
  16471. (grub_util_raid_getmembers): Use grub_find_device rather than
  16472. grub_util_getdiskname.
  16473. 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
  16474. * docs/grub.texi (serial): Remove obsolete comment about GRUB
  16475. needing to be compiled with serial support.
  16476. (ls): Indicate that multiple files are accepted.
  16477. * grub-core/commands/ls.c (GRUB_MOD_INIT): Update help text to
  16478. indicate that multiple files are accepted.
  16479. 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
  16480. * .bzrignore: Add *.1, *.8, grub-shell, grub-shell-tester,
  16481. libgrub_a_init.c, and util/bash-completion.d/grub.
  16482. 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
  16483. * util/grub-setup.c (setup): Fix incorrect container semantics.
  16484. 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
  16485. * grub-core/commands/parttool.c (grub_cmd_parttool): Fix a variable
  16486. misusage.
  16487. Reported by: J. Nick Terry
  16488. 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
  16489. Move embedding routines to partmap sources files.
  16490. * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot)
  16491. [GRUB_UTIL]: New variable.
  16492. (gpt_partition_map_iterate): Set part.parent.
  16493. (gpt_partition_map_embed) [GRUB_UTIL]: New function.
  16494. (grub_gpt_partition_map) [GRUB_UTIL]: Set .embed.
  16495. * grub-core/partmap/msdos.c (pc_partition_map_embed) [GRUB_UTIL]:
  16496. New function.
  16497. (grub_msdos_partition_map) [GRUB_UTIL]: Set .embed.
  16498. * include/grub/partition.h (grub_embed_type_t) [GRUB_UTIL]: New type.
  16499. (grub_partition_map) [GRUB_UTIL]: New field embed.
  16500. * util/grub-setup.c (grub_gpt_partition_type_bios_boot): Removed.
  16501. (setup): Use ->embed.
  16502. 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
  16503. * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): New
  16504. function.
  16505. * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_floppy): New proto.
  16506. * util/grub-setup.c (setup): Use grub_util_biosdisk_is_floppy.
  16507. 2010-09-15 Yves Blusseau <blusseau@zetam.org>
  16508. Add function to get completions from usage.
  16509. * util/bash-completion.d/grub-completion.bash.in: Add function to get
  16510. completions from usage. Use LC_ALL=C to get options properly.
  16511. 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
  16512. * grub-core/gnulib/basename-lgpl.c: Imported.
  16513. * grub-core/gnulib/basename.c: Likewise.
  16514. * grub-core/gnulib/dirname-lgpl.c: Likewise.
  16515. * grub-core/gnulib/dirname.c: Likewise.
  16516. * grub-core/gnulib/dirname.h: Likewise.
  16517. * grub-core/gnulib/stripslash.c: Likewise.
  16518. 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
  16519. * grub-core/gnulib/error.c: Resynced.
  16520. * grub-core/gnulib/getopt.c: Likewise.
  16521. * grub-core/gnulib/getopt_int.h: Likewise.
  16522. * grub-core/gnulib/regex.h: Likewise.
  16523. * grub-core/gnulib/regex_internal.c: Likewise.
  16524. * grub-core/gnulib/regex_internal.h: Likewise.
  16525. 2010-09-15 Szymon Janc <szymon@janc.net.pl>
  16526. * grub-core/lib/xzembed/xz_dec_stream.c (dec_main): Fix index and block
  16527. CRC calculations and validity checks.
  16528. * grub-core/lib/xzembed/xz_dec_stream.c (dec_index): Fix index CRC
  16529. calculations.
  16530. 2010-09-15 Szymon Janc <szymon@janc.net.pl>
  16531. * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_end): Fix memory leak.
  16532. 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
  16533. Fix incorrect echo options handling.
  16534. Reported by: Yves Blusseau.
  16535. * include/grub/command.h (grub_command_flags_t): New flags
  16536. GRUB_COMMAND_ACCEPT_DASH and GRUB_COMMAND_OPTIONS_AT_START.
  16537. * grub-core/lib/arg.c (grub_arg_parse): Handle new flags.
  16538. * grub-core/commands/echo.c (GRUB_MOD_INIT): Use new flags.
  16539. 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
  16540. * include/grub/command.h (GRUB_COMMAND_FLAG_CMDLINE): Removed. All
  16541. users updated.
  16542. (GRUB_COMMAND_FLAG_MENU): Likewise.
  16543. (GRUB_COMMAND_FLAG_BOTH): Likewise.
  16544. (GRUB_COMMAND_FLAG_TITLE): Removed.
  16545. (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
  16546. (GRUB_COMMAND_FLAG_EXTCMD): Moved into enum.
  16547. (GRUB_COMMAND_FLAG_DYNCMD): Likewise.
  16548. (GRUB_COMMAND_FLAG_BLOCKS): Likewise.
  16549. (grub_command_flags_t): New enum. All users updated.
  16550. 2010-09-14 Seth Goldberg <seth.goldberg@oracle.com>
  16551. Fix solaris compilation.
  16552. * grub-core/Makefile.core.def (kernel): Include gnulib/error.c on emu.
  16553. (grub-emu): Add LIBZFS and LIBNVPAIR to ldadd.
  16554. (grub-emu-list): Likewise.
  16555. 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
  16556. Remove deprecated root command.
  16557. * grub-core/commands/minicmd.c (grub_mini_cmd_root): Removed. All users
  16558. updated.
  16559. 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
  16560. * util/i386/pc/grub-setup.c: Merge this ...
  16561. * util/sparc64/ieee1275/grub-setup.c: ... and this ...
  16562. * util/grub-setup.c: ... into this.
  16563. * include/grub/sparc64/ieee1275/boot.h (grub_boot_blocklist) [ASM_FILE]:
  16564. New struct.
  16565. 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
  16566. * grub-core/fs/ext2.c (grub_ext2_open): Use return error value when
  16567. possible.
  16568. 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
  16569. * grub-core/partmap/sun.c (sun_partition_map_iterate): Don't needlesly
  16570. allocate p.
  16571. 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
  16572. * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
  16573. explicit root argument to set to prevent UUID to be interpreted as
  16574. argument to set.
  16575. 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
  16576. * grub-core/kern/sparc64/ieee1275/crt0.S: Align stack.
  16577. 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
  16578. Don't export grub_gate_a20.
  16579. * grub-core/kern/i386/pc/init.c: Remove leftovers.
  16580. * grub-core/kern/i386/pc/startup.S (FUNCTION(grub_gate_a20)): Rename
  16581. to ...
  16582. (grub_gate_a20): ... this. All users updated.
  16583. * include/grub/i386/pc/init.h: Removed. All users updated.
  16584. 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
  16585. Create euro.pf2 which supports most European languages.
  16586. * Makefile.am (grubdata_DATA): Add euro.pf2.
  16587. (euro.pf2): New target.
  16588. (CLEANFILES): Add euro.pf2.
  16589. 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
  16590. * configure.ac: Disable emu-usb by default to prevent inadvertent
  16591. device takeover.
  16592. 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
  16593. Disable usbserial on grub-emu since our libusb code isn't good enough
  16594. yet.
  16595. * grub-core/Makefile.core.def (usbserial_common): Disable on emu.
  16596. (usbserial_pl2303): Likewise.
  16597. (usbserial_ftdi): Likewise.
  16598. 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
  16599. * include/grub/disk.h (grub_disk): Remove has_partitions.
  16600. All users updated.
  16601. * disk/loopback.c (grub_loopback): Remove has_partitions.
  16602. All users updated.
  16603. (options): Remove partitions. All users updated.
  16604. * util/grub-fstest.c (fstest): Don't pass "-p" to loopback.
  16605. * util/i386/pc/grub-setup.c (setup): copy partition table only when
  16606. actual partition table is found.
  16607. 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
  16608. Remove readability checks (too many false negatives).
  16609. * util/grub-install.in: Remove readability checks.
  16610. * util/grub-mkconfig.in: Likewise.
  16611. * util/grub.d/10_hurd.in: Likewise.
  16612. * util/grub.d/10_kfreebsd.in: Likewise.
  16613. * util/grub.d/10_linux.in: Likewise.
  16614. * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Revert to old
  16615. way.
  16616. 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
  16617. Enable acpi shutdown on all ACPI platforms.
  16618. * grub-core/Makefile.core.def (halt): Inlude commands/acpihalt.c
  16619. on coreboo, multiboot and EFI.
  16620. * grub-core/commands/acpihalt.c (get_sleep_type): Add missing casts.
  16621. (grub_acpi_halt): Likewise.
  16622. * grub-core/commands/i386/pc/halt.c (grub_halt): Call grub_acpi_halt.
  16623. (grub_cmd_halt): Don't call grub_acpi_halt directly.
  16624. * grub-core/lib/efi/halt.c (grub_halt): Call grub_acpi_halt.
  16625. * grub-core/lib/i386/halt.c (grub_halt)
  16626. [GRUB_MACHINE_COREBOOT || GRUB_MACHINE_MULTIBOOT]: Likewise.
  16627. 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
  16628. * grub-core/commands/iorw.c (grub_cmd_read): Declare buf in smallest
  16629. context.
  16630. 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
  16631. * grub-core/video/efi_gop.c: Fix over-80-chars line.
  16632. * grub-core/video/efi_uga.c: Likewise.
  16633. 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
  16634. Filter devaliases and never open same device twice.
  16635. * grub-core/disk/ieee1275/ofdisk.c (last_devpath): New variable.
  16636. (last_ihandle): Likewise.
  16637. (ofdisk_hash_ent): New member shortest.
  16638. (ofdisk_hash_add): Add canonical path too.
  16639. (scan): New function.
  16640. (grub_ofdisk_iterate): Iterate over hashed entries.
  16641. (compute_dev_path): Don't add :0.
  16642. (grub_ofdisk_open): Don't really open the disk.
  16643. (grub_ofdisk_close): Avoid closing unrelated disk.
  16644. (grub_ofdisk_read): Implement reopen logic.
  16645. * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_canonicalise_devname):
  16646. New function.
  16647. * include/grub/ieee1275/ieee1275.h (grub_ieee1275_canonicalise_devname):
  16648. New proto.
  16649. 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
  16650. Fix sparc64.
  16651. * configure.ac (GRUB_KERNEL_MACHINE_LINK_ADDR): Removed.
  16652. * grub-core/Makefile.core.def (kernel): Make ldflags just use the
  16653. right address. Add sparc64_ieee1275_ldflags.
  16654. * grub-core/loader/sparc64/ieee1275/linux.c: Remove leftover include.
  16655. * util/grub-mkimagexx.c (locate_sections): Correct grub_host_to_target32
  16656. to grub_host_to_target_addr
  16657. (load_image): Likewise.
  16658. 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
  16659. * grub-core/normal/completion.c (complete_file): Handle device
  16660. containing slash.
  16661. Fix based on patch by Doug Nazar.
  16662. 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
  16663. grub-mknetdir script.
  16664. * Makefile.util.def (grub-mknetdir): New module.
  16665. * tests/util/grub-shell.in: Support boot=net
  16666. * util/grub-mknetdir.in: New file.
  16667. 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
  16668. videoinfo on non-vbe.
  16669. * grub-core/Makefile.core.def (vbeinfo): Removed.
  16670. (vbetest): Removed.
  16671. (videoinfo): New module.
  16672. * grub-core/commands/i386/pc/vbeinfo.c: Removed.
  16673. * grub-core/commands/i386/pc/vbetest.c: Removed.
  16674. * grub-core/commands/videoinfo.c: New file.
  16675. * grub-core/commands/videotest.c (grub_cmd_videotest): Support mode
  16676. specification.
  16677. (grub_cmd_videotest) [GRUB_MACHINE_PCBIOS]: Load vbe.mod when invoked
  16678. as vbetest.
  16679. (GRUB_MOD_INIT) [GRUB_MACHINE_PCBIOS]: New command vbetest.
  16680. (GRUB_MOD_FINI) [GRUB_MACHINE_PCBIOS]: Unregister vbetest.
  16681. * grub-core/video/efi_gop.c (grub_video_gop_fill_mode_info): Fill
  16682. mode_number. New parameter mode. All users updated.
  16683. (grub_video_gop_iterate): New function.
  16684. (grub_video_efi_gop): New member iterate.
  16685. * grub-core/video/i386/pc/vbe.c (framebuffer): Removed leftover fields.
  16686. (grub_vbe_set_video_mode): Remove setting useless fields.
  16687. (vbe2videoinfo): New function.
  16688. (grub_video_vbe_iterate): Likewise.
  16689. (grub_video_vbe_setup): Use vbe2videoinfo.
  16690. (grub_video_vbe_print_adapter_specific_info): New function.
  16691. (grub_video_vbe_adapter): New fields iterate and
  16692. print_adapter_specific_info.
  16693. * include/grub/video.h (GRUB_VIDEO_MODE_*): Transform into enum.
  16694. All users updated.
  16695. (grub_video_mode_info): New field mode_number.
  16696. (grub_video_adapter): New fields iterate and
  16697. print_adapter_specific_info.
  16698. 2010-09-13 Tristan Gingold <gingold@free.fr>
  16699. 2010-09-13 Robert Millan <rmh.grub@aybabtu.com>
  16700. 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
  16701. * grub-core/commands/efi/lsefisystab.c: New file.
  16702. * grub-core/commands/efi/lssal.c: Likewise.
  16703. * grub-core/Makefile.core.def (lsacpi): New module.
  16704. (lsefisystab): Likewise.
  16705. * include/grub/efi/api.h (GRUB_EFI_SAL_TABLE_GUID): New definition.
  16706. (GRUB_EFI_HCDP_TABLE_GUID): Likewise.
  16707. (grub_efi_sal_system_table): New struct.
  16708. (grub_efi_sal_system_table_entrypoint_descriptor): Likewise.
  16709. (grub_efi_sal_system_table_memory_descriptor): Likewise.
  16710. (grub_efi_sal_system_table_platform_features): Likewise.
  16711. (grub_efi_sal_system_table_translation_register_descriptor): Likewise.
  16712. (grub_efi_sal_system_table_purge_translation_coherence): Likewise.
  16713. (grub_efi_sal_system_table_ap_wakeup): Likewise.
  16714. * include/grub/types.h (PRIuGRUB_UINT64_T): New definition.
  16715. 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
  16716. Support explicit user claim that a device is BIOS-visible.
  16717. * grub-core/kern/emu/getroot.c (grub_util_get_dev_abstraction):
  16718. Return GRUB_DEV_ABSTRACTION_NONE if device is in device.map.
  16719. * grub-core/kern/emu/hostdisk.c
  16720. (convert_system_partition_to_system_disk): Support mdX.
  16721. (find_system_device): New parameter add. All users updated.
  16722. (grub_util_biosdisk_is_present): New function.
  16723. * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_present): New
  16724. proto.
  16725. 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
  16726. Search hints support.
  16727. * commands/search.c (FUNC_NAME): New arguments hints and nhints.
  16728. All users updated.
  16729. 2010-09-13 Yves Blusseau <blusseau@zetam.org>
  16730. Bash completion script for util commands
  16731. * Makefile.am: Add util/bash-completion.d directory
  16732. * configure.ac: Likewise.
  16733. * util/bash-completion.d/Makefile.am: New file.
  16734. * util/bash-completion.d/grub-completion.bash.in: Likewise.
  16735. 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
  16736. * grub-core/normal/term.c (put_glyphs_terminal): Correct sign.
  16737. (print_backlog): set backlog_ucs4 and backlog_glyphs.
  16738. Reported by: Yves Blusseau.
  16739. 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
  16740. * grub-core/normal/misc.c (grub_normal_print_device_info): Show
  16741. partition size and offset.
  16742. 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
  16743. * grub-core/commands/wildcard.c (make_regex): Escape brackets.
  16744. 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
  16745. * grub-core/commands/ls.c (grub_cmd_ls): Accept multiple files.
  16746. 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
  16747. * grub-core/kern/misc.c (grub_vprintf): Use va_copy when necessary.
  16748. (grub_xvasprintf): Likewise.
  16749. 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
  16750. * grub-core/kern/emu/main.c (main): Call hostfs_init only after init_all.
  16751. 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
  16752. * grub-core/commands/menuentry.c (append_menu_entry): Don't rely on
  16753. args ending with NULL.
  16754. 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
  16755. * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_reset): Preserve context
  16756. pointer.
  16757. 2010-09-11 Szymon Janc <szymon@janc.net.pl>
  16758. * grub-core/commands/lsacpi.c (grub_cmd_lsacpi): Fix prototype.
  16759. 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
  16760. Shutdown using ACPI.
  16761. * grub-core/Makefile.core.def (halt): Add commands/acpihalt.c on i386-pc.
  16762. * grub-core/commands/acpihalt.c: New file.
  16763. * grub-core/commands/i386/pc/halt.c (grub_cmd_halt): Call grub_acpi_halt.
  16764. * include/grub/acpi.h (grub_acpi_fadt): New member pm1a.
  16765. (grub_acpi_halt): New proto.
  16766. (GRUB_ACPI_SLP_EN): New const.
  16767. (GRUB_ACPI_SLP_TYP_OFFSET): Likewise.
  16768. (GRUB_ACPI_OPCODE_*): New enum.
  16769. (GRUB_ACPI_EXTOPCODE_*): Likewise.
  16770. 2010-09-11 Tristan Gingold <gingold@free.fr>
  16771. 2010-09-11 Robert Millan <rmh.grub@aybabtu.com>
  16772. 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
  16773. * commands/lsacpi.c: New file.
  16774. * grub-core/Makefile.core.def (lsacpi): New module.
  16775. * include/grub/acpi.h (GRUB_ACPI_FADT_SIGNATURE): New definition.
  16776. (GRUB_ACPI_MADT_SIGNATURE): Likewise.
  16777. (grub_acpi_madt_entry_header): New struct.
  16778. (grub_acpi_madt): Likewise.
  16779. (grub_acpi_madt_entry_interrupt_override): Likewise.
  16780. (grub_acpi_madt_entry_sapic): Likewise.
  16781. (grub_acpi_madt_entry_lsapic): Likewise.
  16782. (grub_acpi_madt_entry_platform_int_source): Likewise.
  16783. * include/grub/types.h (PRIxGRUB_UINT32_T): New definition.
  16784. (PRIuGRUB_UINT32_T): Likewise.
  16785. (PRIxGRUB_UINT64_T): Likewise.
  16786. 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
  16787. Implement loading palette on ieee1275_fb.
  16788. * grub-core/video/ieee1275.c (stdout_ihandle): New variable.
  16789. (have_setcolors): Likewise.
  16790. (grub_video_ieee1275_init): Fill stdout_ihandle and have_setcolors.
  16791. (grub_video_ieee1275_setup): Use grub_video_ieee1275_set_palette.
  16792. (grub_video_ieee1275_set_palette): Implement.
  16793. 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
  16794. 2010-09-11 Colin Watson <cjwatson@ubuntu.com>
  16795. * util/grub-install.in (grub_partition): New variable.
  16796. Set prefix_drive on EFI and PC to (,$grub_partition) as last resort.
  16797. * util/i386/pc/grub-setup.c (setup): Don't touch prefix.
  16798. Fixes a bug reported by Yves Blusseau.
  16799. 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
  16800. Fix emu on mipsel.
  16801. * conf/Makefile.common (CFLAGS_PLATFORM): Add -mflush-func
  16802. =grub_cpu_flush_cache on all mips and not only yeeloong.
  16803. * configure.ac (COND_mips): New conditional.
  16804. * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add libgcc on all
  16805. platforms.
  16806. * grub-core/kern/emu/cache.S (__mips__): Use _flush_cache.
  16807. * grub-core/kern/emu/full.c (grub_arch_dl_init_linker)
  16808. [GRUB_LINKER_HAVE_INIT]: New function.
  16809. (grub_emu_post_init): Likewise.
  16810. * grub-core/kern/emu/lite.c (grub_emu_post_init): Likewise.
  16811. * grub-core/kern/emu/main.c: Use grub_emu_post_init.
  16812. * include/grub/cache.h (_mips): Include mips/cache.h.
  16813. * include/grub/disk.h [GRUB_UTIL || GRUB_MACHINE_EMU]: Add missing
  16814. LVM and RAID prototypes.
  16815. * include/grub/emu/misc.h (grub_emu_post_init): New proto.
  16816. * include/grub/mips/time.h (grub_cpu_idle) [GRUB_MACHINE_EMU]: New
  16817. function.
  16818. 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
  16819. * util/grub-install.in: Don't try to verify core.img until after
  16820. running grub-mkimage to create it.
  16821. 2010-09-10 Robert Millan <rmh@gnu.org>
  16822. * util/grub.d/10_hurd.in: Add misc readability checks.
  16823. * util/grub.d/10_kfreebsd.in: Likewise.
  16824. * util/grub.d/10_linux.in: Likewise.
  16825. 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
  16826. * util/grub-install.in: ${imgext} won't be defined here until the
  16827. install branch is merged. For the meantime, only verify core.img on
  16828. i386-pc and sparc64-ieee1275 platforms.
  16829. 2010-09-10 Robert Millan <rmh@gnu.org>
  16830. Solaris support in grub_find_zpool_from_dir(). Thanks
  16831. Seth Goldberg for referring to getextmntent() facility.
  16832. * configure.ac: Check for getextmntent(), `sys/mnttab.h' and
  16833. `sys/mkdev.h'.
  16834. * grub-core/kern/emu/misc.c [HAVE_SYS_MNTTAB_H]: Include
  16835. `<sys/mnttab.h>'.
  16836. [HAVE_SYS_MKDEV_H]: Include `<sys/mkdev.h>'.
  16837. [HAVE_GETEXTMNTENT] (grub_find_zpool_from_dir): Add getextmntent()
  16838. method for finding zpool name.
  16839. 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
  16840. grub-fstest needs the host and hostfs modules while other utilities
  16841. actively require those modules to be absent, so grub-fstest needs
  16842. its own initialisation and finalisation code.
  16843. * Makefile.am (grub_fstest.pp): New target.
  16844. (grub_fstest_init.lst): Likewise.
  16845. (grub_fstest_init.c): Likewise.
  16846. * Makefile.util.def (grub-fstest): Add grub_fstest_init.c.
  16847. 2010-09-10 Robert Millan <rmh@gnu.org>
  16848. * configure.ac: Check for `struct statfs.f_fstypename' and
  16849. `struct statfs.f_mntfromname'.
  16850. * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir): Conditionalize
  16851. kFreeBSD-specific code.
  16852. 2010-09-10 Robert Millan <rmh@gnu.org>
  16853. * util/grub.d/10_kfreebsd.in: Fix ${kfreebsd_device} initialization
  16854. on ZFS. Now non-main filesystems are supported as / too.
  16855. 2010-09-09 Colin Watson <cjwatson@ubuntu.com>
  16856. * Makefile.util.def (libgrub.a): Move grub-core/kern/emu/hostfs.c
  16857. and grub-core/disk/host.c to ...
  16858. (grub-fstest): ... here. Having the host disk implementation
  16859. present confuses grub-probe and other utility programs.
  16860. * util/grub-mkconfig.in: Only verify readability of grub.cfg.new
  16861. when writing to a file, not when writing to stdout.
  16862. 2010-09-09 BVK Chaitanya <bvk.groups@gmail.com>
  16863. * tests/partmap_test.in: New test for partitions.
  16864. * Makefile.util.def: Rules for new test.
  16865. 2010-09-09 Robert Millan <rmh@gnu.org>
  16866. * util/grub-probe.c (probe): Fix a pair of unhandled error
  16867. conditions.
  16868. 2010-09-09 Robert Millan <rmh@gnu.org>
  16869. Basic Btrfs support (detection and UUID).
  16870. * grub-core/fs/btrfs.c: New file.
  16871. * Makefile.util.def (library): Register btrfs.c.
  16872. * grub-core/Makefile.core.def: Likewise.
  16873. 2010-09-08 Robert Millan <rmh@gnu.org>
  16874. * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Improve
  16875. with (optional) parameters to specify device and relative path.
  16876. * util/grub-install.in: Use is_path_readable_by_grub() to
  16877. verify readability of a few critical files.
  16878. * util/grub-mkconfig.in: Use is_path_readable_by_grub() to
  16879. verify readability of grub.cfg.new.
  16880. 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
  16881. Split minix.mod into minix.mod and minix2.mod.
  16882. * Makefile.util.def (libgrub.a): Add grub-core/fs/minix2.c.
  16883. * grub-core/Makefile.core.def (minix2): New module.
  16884. * grub-core/fs/minix.c: Use definitions instead of runtime version
  16885. checking.
  16886. * grub-core/fs/minix2.c: New file.
  16887. 2010-09-08 Yves Blusseau <blusseau@zetam.org>
  16888. Add new --boot-directory option to replace --root-directory
  16889. * util/grub-install.in: Add new --boot-directory option
  16890. * util/grub-reboot.in: Likewise.
  16891. * util/grub-set-default.in: Likewise.
  16892. 2010-09-08 Yves Blusseau <blusseau@zetam.org>
  16893. * util/grub-mkconfig.in: Use new variable.
  16894. 2010-09-08 Yves Blusseau <blusseau@zetam.org>
  16895. * configure.ac: Define some useful variables.
  16896. 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
  16897. * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
  16898. GRUB_IEEE1275_FLAG_HAS_CURSORONOFF when appropriate.
  16899. * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_setcursor):
  16900. Use terminfo and don't use cursor-on/cursor-off unless it's known
  16901. to work.
  16902. * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New element
  16903. GRUB_IEEE1275_FLAG_HAS_CURSORONOFF.
  16904. 2010-09-08 Colin Watson <cjwatson@ubuntu.com>
  16905. * grub-core/kern/efi/init.c (grub_efi_set_prefix): If the prefix
  16906. starts with "(,", fill the drive containing the loaded image in
  16907. between those two characters, but expect that a full partition
  16908. specification including partition map names will follow.
  16909. 2010-09-08 Robert Millan <rmh@gnu.org>
  16910. * configure.ac: Remove `--enable-grub-fstest' option.
  16911. * Makefile.util.def (grub-fstest): Remove COND_GRUB_FSTEST condition.
  16912. * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Use
  16913. `grub-fstest' instead of `grub-probe' for readability verification.
  16914. * util/grub-probe.c (probe): Remove readability verification kludge.
  16915. 2010-09-08 Robert Millan <rmh@gnu.org>
  16916. * util/grub-mkconfig.in: Pass `--device ${GRUB_DEVICE}' when
  16917. initializing `GRUB_FS'.
  16918. 2010-09-08 BVK Chaitanya <bvk.groups@gmail.com>
  16919. Not command (!) support to GRUB script.
  16920. * tests/grub_script_not.in: New test.
  16921. * Makefile.util.def: Rules for new test.
  16922. * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
  16923. ! command as a special case.
  16924. * grub-core/script/yylex.l (GRUB_PARSER_TOKEN_NOT): Removed.
  16925. 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
  16926. * grub-core/commands/wildcard.c (wildcard_expand): Fix wrong
  16927. grub_free.
  16928. 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
  16929. * docs/grub.texi (Shell-like scripting): Fix @dots to @dots{}.
  16930. 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
  16931. * docs/grub.texi (Shell-like scripting): Documentation for break,
  16932. continue, shift and return commands.
  16933. 2010-09-06 Vladimir Serbinenko <phcoder@gmail.com>
  16934. Rename CD-ROM to cd on BIOS.
  16935. * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_drive): Recognise
  16936. "cd".
  16937. (grub_biosdisk_call_hook): Call with "cd" instead of arbitrary hdX.
  16938. 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
  16939. * grub-core/kern/emu/main.c (main): Reinit LVM and RAID.
  16940. * util/grub-probe.c (main): Likewise.
  16941. * util/i386/pc/grub-setup.c (main): Likewise.
  16942. * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
  16943. Reported and debugged by: alexxy
  16944. 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
  16945. * grub-core/disk/lvm.c (grub_lvm_scan_device) [GRUB_UTIL]: Output more
  16946. diagnostic info.
  16947. 2010-09-05 Jo Shields <directhex@apebox.org>
  16948. * util/grub.d/30_os-prober.in: Add missing classes.
  16949. 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
  16950. * docs/grub.texi (Theme file format): Document new position format.
  16951. 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
  16952. * docs/grub.texi (Theme file format): Replace Box_slice_names.png with
  16953. a table. Use @code instead of @verbatim.
  16954. 2010-09-05 Colin D Bennett <colin@gibibit.com>
  16955. Gfxmenu documentation.
  16956. * docs/grub.texi (Theme file format): New chapter.
  16957. 2010-09-05 Szymon Janc <szymon@janc.net.pl>
  16958. * grub-core/Makefile.core.def (xzio): New module.
  16959. * grub-core/io/xzio.c: New file.
  16960. * grub-core/lib/xzembed/xz.h: New file (from xembed).
  16961. * grub-core/lib/xzembed/xz_config.h: Likewise.
  16962. * grub-core/lib/xzembed/xz_dec_bcj.c: Likewise.
  16963. * grub-core/lib/xzembed/xz_dec_lzma2.c: Likewise.
  16964. * grub-core/lib/xzembed/xz_dec_stream.c: Likewise.
  16965. * grub-core/lib/xzembed/xz_lzma2.h: Likewise.
  16966. * grub-core/lib/xzembed/xz_private.h: Likewise.
  16967. * grub-core/lib/xzembed/xz_stream.h: Likewise.
  16968. * include/grub/file.h (grub_file_filter_id): New compression filter
  16969. GRUB_FILE_FILTER_XZIO.
  16970. 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
  16971. * include/grub/file.h (GRUB_FILE_SIZE_UNKNOWN): New definition.
  16972. * grub-core/disk/loopback.c (grub_loopback_open): Handle unknown file
  16973. size.
  16974. 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
  16975. * include/grub/err.h (grub_err_t): Replace GRUB_ERR_BAD_GZIP_DATA with
  16976. GRUB_ERR_BAD_COMPRESSED_DATA. All users updated.
  16977. 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
  16978. Uncompressed checksum support.
  16979. * grub-core/commands/hashsum.c (options): Add option --uncompress.
  16980. (check_list): New parameter uncompress.
  16981. (grub_cmd_hashsum): Handle --uncompress.
  16982. 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
  16983. Reintroduce testload.
  16984. * grub-core/commands/minicmd.c (grub_rescue_cmd_testload) [0]: Moved
  16985. from here ...
  16986. * grub-core/commands/testload.c (grub_cmd_testload): ... here.
  16987. (GRUB_MOD_INIT): New function.
  16988. (GRUB_MOD_FINI): Likewise.
  16989. * grub-core/Makefile.core.def (testload): New module.
  16990. 2010-09-05 Szymon Janc <szymon@janc.net.pl>
  16991. * grub-core/lib/posix_wrap/sys/types.h (bool): Transform into an enum.
  16992. (uint8_t): New type.
  16993. (uint16_t): Likewise.
  16994. (uint32_t): Likewise.
  16995. (uint64_t): Likewise.
  16996. 2010-09-05 Szymon Janc <szymon@janc.net.pl>
  16997. * include/grub/crypto.h (GRUB_MD_CRC32): New definition.
  16998. 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
  16999. * grub-core/io/gzio.c (grub_gzio_open): Removed "transparent" parameter.
  17000. Made static.
  17001. (grub_gzfile_open): Removed. All users updated.
  17002. (GRUB_MOD_INIT): New function.
  17003. (GRUB_MOD_FINI): Likewise.
  17004. * grub-core/kern/file.c (grub_file_filters_all): New variable.
  17005. (grub_file_filters_enabled): Likewise.
  17006. (grub_file_open): Handle filters.
  17007. * grub-core/loader/i386/bsd.c (GRUB_MOD_INIT): Load gzio.
  17008. * grub-core/normal/main.c (GRUB_MOD_INIT): Likewise.
  17009. * include/grub/file.h (grub_file_filter_id_t): New type.
  17010. (grub_file_filter_t): Likewise.
  17011. (grub_file_filters_all): New extern variable.
  17012. (grub_file_filters_enabled): Likewise.
  17013. (grub_file_filter_register): New inline function.
  17014. (grub_file_filter_unregister): Likewise.
  17015. (grub_file_filter_disable): Likewise.
  17016. (grub_file_filter_disable_compression): Likewise.
  17017. * include/grub/gzio.h: Removed.
  17018. 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
  17019. Filename expansion support for wildcards in GRUB script.
  17020. * tests/grub_script_expansion.in: New test.
  17021. * Makefile.util.def: Rule for new test.
  17022. * grub-core/commands/wildcard.c: New file, implements filename
  17023. expansion support for GRUB script.
  17024. * grub-core/Makefile.core.def: Rule update for regexp.mod.
  17025. * grub-core/script/argv.c: Cosmetic changes.
  17026. * grub-core/script/execute.c (grub_script_arglist_to_argv):
  17027. Refactored to perform wildcard expansion on arguments.
  17028. * include/grub/script_sh.h (grub_script_wildcard_translator): New
  17029. struct.
  17030. * tests/util/grub-shell.in: Fix quoting for read input.
  17031. 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
  17032. Support for updating environment variables with matched substrings
  17033. of regexp.
  17034. * tests/grub_cmd_regexp.in: New test.
  17035. * Makefile.util.def: Rule for new test.
  17036. * grub-core/commands/regexp.c: New option -s to update environment
  17037. variables with regexp matches.
  17038. 2010-09-04 Szymon Janc <szymon@janc.net.pl>
  17039. * include/grub/file.h (grub_file): New member not_easly_seekable.
  17040. (grub_file_seekable): New inline function.
  17041. * grub-core/io/gzio.c (test_header): Don't test end magic if file isn't
  17042. easily seekable.
  17043. (grub_gzio_open): Set not_easly_seekable.
  17044. * grub-core/fs/i386/pc/pxe.c (grub_pxefs_open): Set not_easily_seekable.
  17045. * grub-core/io/bufio.c (grub_bufio_open): Propagate not_easily_seekable.
  17046. 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
  17047. Support for options to appear multiple times on cmdline.
  17048. * include/grub/lib/arg.h (grub_arg_list_alloc): New prototype.
  17049. * grub-core/commands/extcmd.c: Support for repeatable option.
  17050. * grub-core/lib/arg.c (grub_arg_list_alloc): New function for
  17051. repeatable option support.
  17052. Refactor menuentry into a regular command.
  17053. * grub-core/commands/menuentry.c: New file, menuentry command
  17054. implementation.
  17055. * grub-core/Makefile.core.def: Rule update for normal.mod.
  17056. * grub-core/normal/main.c: Moved menuentry creation to
  17057. grub-core/commands/menuentry.c.
  17058. * grub-core/normal/menu.c (grub_menu_execute_entry): Removed.
  17059. (grub_menu_execute_entry_real): Removed.
  17060. * grub-core/script/execute.c (grub_script_execute_sourcecode): New
  17061. function.
  17062. (grub_script_execute_menuentry): Removed.
  17063. * grub-core/script/parser.y (menuentry): Removed.
  17064. * grub-core/script/script.c (grub_script_create_cmdmenu): Removed.
  17065. * grub-core/script/yylex.l (menuentry): Removed.
  17066. * include/grub/menu.h (grub_menu_init): New prototype.
  17067. (grub_menu_fini): New prototype.
  17068. * include/grub/normal.h (grub_normal_add_menu_entry): Removed.
  17069. * include/grub/script_sh.h (grub_script_cmd_menuentry): Removed.
  17070. (grub_script_execute_sourcecode): New prototype.
  17071. 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
  17072. "return" command for GRUB script functions.
  17073. * tests/grub_script_return.in: New test.
  17074. * Makefile.util.def: Rules for new test.
  17075. * grub-core/script/execute.c (grub_script_return): New function.
  17076. * grub-core/script/main.c: Register/unregister return commaond.
  17077. * include/grub/script_sh.h (grub_script_return): New prototype.
  17078. 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
  17079. "setparams" command to update positional parameters.
  17080. * tests/grub_script_setparams.in: New test.
  17081. * Makefile.util.def: Rules for new test.
  17082. * grub-core/script/argv.c (grub_script_argv_make): New function.
  17083. * grub-core/script/execute.c (replace_scope): New function.
  17084. (grub_script_setparams): New function.
  17085. * grub-core/script/lexer.c: Remove unused variables.
  17086. * grub-core/script/main.c: Register/unregister setparams command.
  17087. * include/grub/script_sh.h (grub_script_argv_make): New prototype.
  17088. (grub_script_setparams): New prototype.
  17089. 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
  17090. * grub-core/normal/completion.c (grub_normal_do_completion): Fix
  17091. grub_free order.
  17092. 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
  17093. Support for passing block of commands as an argument to extcmds.
  17094. * Makefile.util.def: Rules for new test.
  17095. * tests/grub_script_blockarg.in: New test.
  17096. * grub-core/tests/test_blockarg.c: New file, block argument
  17097. command used in the test.
  17098. * include/grub/extcmd.h (grub_extcmd_context): New struct.
  17099. (grub_register_extcmd_prio): New function prototype.
  17100. (grub_extcmd_dispatcher): New function prototype.
  17101. * include/grub/command.h (GRUB_COMMAND_FLAG_BLOCKS): New command
  17102. type.
  17103. * include/grub/script_sh.h (struct grub_script): New members
  17104. `children', `next_siblings' and `refcnt' for block arguments and
  17105. reference counting.
  17106. (GRUB_SCRIPT_ARG_TYPE_BLOCK): New argument type.
  17107. (grub_script_arg): New member `script' for block argument.
  17108. (grub_script_argv): New member `script' for block argument.
  17109. (grub_parser_param): New member `scripts' for block argument.
  17110. (grub_script_mem_free): New extern function prototype.
  17111. (grub_script_ref): New function prototype.
  17112. (grub_script_unref): New function prototype.
  17113. * grub-core/normal/dyncmd.c (grub_dyncmd_dispatcher): Moved to
  17114. extcmd form to support block arguments.
  17115. * grub-core/script/argv.c: Block arguments support.
  17116. * grub-core/script/execute.c: Likewise.
  17117. * grub-core/script/lexer.c: Likewise.
  17118. * grub-core/script/main.c: Likewise.
  17119. * grub-core/script/script.c: Likewise.
  17120. * grub-core/script/parser.y: Likewise. New `block' and `block0'
  17121. non-terminals.
  17122. * grub-core/commands/acpi.c: Update extcmd implementations with
  17123. grub_extcmd_context_t.
  17124. * grub-core/commands/cat.c: Likewise.
  17125. * grub-core/commands/echo.c: Likewise.
  17126. * grub-core/commands/extcmd.c: Likewise.
  17127. * grub-core/commands/hashsum.c: Likewise.
  17128. * grub-core/commands/hdparm.c: Likewise.
  17129. * grub-core/commands/help.c: Likewise.
  17130. * grub-core/commands/hexdump.c: Likewise.
  17131. * grub-core/commands/i386/cpuid.c: Likewise.
  17132. * grub-core/commands/i386/pc/drivemap.c: Likewise.
  17133. * grub-core/commands/i386/pc/halt.c: Likewise.
  17134. * grub-core/commands/i386/pc/sendkey.c: Likewise.
  17135. * grub-core/commands/iorw.c: Likewise.
  17136. * grub-core/commands/keystatus.c: Likewise.
  17137. * grub-core/commands/loadenv.c: Likewise.
  17138. * grub-core/commands/ls.c: Likewise.
  17139. * grub-core/commands/lspci.c: Likewise.
  17140. * grub-core/commands/memrw.c: Likewise.
  17141. * grub-core/commands/probe.c: Likewise.
  17142. * grub-core/commands/search_wrap.c: Likewise.
  17143. * grub-core/commands/setpci.c: Likewise.
  17144. * grub-core/commands/sleep.c: Likewise.
  17145. * grub-core/disk/loopback.c: Likewise.
  17146. * grub-core/hello/hello.c: Likewise.
  17147. * grub-core/loader/i386/bsd.c: Likewise.
  17148. * grub-core/loader/xnu.c: Likewise.
  17149. * grub-core/term/gfxterm.c: Likewise.
  17150. * grub-core/term/serial.c: Likewise.
  17151. * grub-core/tests/lib/functional_test.c: Likewise.
  17152. 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
  17153. Multi-line quoted strings support.
  17154. * grub-core/script/lexer.c (append_newline): Removed.
  17155. (grub_script_lexer_yywrap): Refactored.
  17156. (grub_script_lexer_init): Refactored.
  17157. * grub-core/script/yylex.l (yywrap): New function.
  17158. (grub_lexer_resplit): New function.
  17159. (grub_lexer_unput): New function.
  17160. * include/grub/script_sh.h (grub_lexer_param): New members, unput
  17161. and resplit.
  17162. * tests/grub_script_echo1.in: Added few more testcases.
  17163. 2010-09-04 Vladimir Serbinenko <phcoder@gmail.com>
  17164. * grub-core/kern/misc.c: Don't add abort alias in utils.
  17165. Reported by: echoline.
  17166. 2010-09-03 BVK Chaitanya <bvk.groups@gmail.com>
  17167. Add missing files into "make dist" tarball for other platforms.
  17168. * gentpl.py (script): Use dist_noinst_DATA instead of EXTRA_DIST.
  17169. * conf/Makefile.common (dist_noinst_DATA): New variable.
  17170. * conf/Makefile.extra-dist: Added missing make dist files.
  17171. * grub-core/Makefile.core.def: Likewise.
  17172. 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
  17173. Compress grub_prefix.
  17174. * grub-core/boot/i386/pc/lnxboot.S: Use
  17175. GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE.
  17176. * grub-core/kern/i386/pc/startup.S: Move grub_prefix to compressed part.
  17177. * include/grub/offsets.h: Rename GRUB_MACHINE_DATA_END to
  17178. GRUB_MACHINE_PREFIX_END. All users updated.
  17179. (GRUB_KERNEL_I386_PC_PREFIX): Set to GRUB_KERNEL_I386_PC_RAW_SIZE.
  17180. (GRUB_KERNEL_I386_PC_PREFIX_END): Set to GRUB_KERNEL_I386_PC_PREFIX
  17181. + 0x40.
  17182. (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
  17183. * util/grub-mkimage.c (image_target_desc): Change data_end to
  17184. prefix_end. All users updated.
  17185. 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
  17186. * grub-core/loader/i386/bsd.c (grub_freebsd_boot): Set %ebp to sane
  17187. value.
  17188. (grub_openbsd_boot): Likewise.
  17189. (grub_netbsd_boot): Likewise.
  17190. * grub-core/loader/i386/xnu.c (grub_xnu_boot_resume): Likewise.
  17191. (grub_xnu_boot): Likewise.
  17192. 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
  17193. * configure.ac: Clean LIBS variable after tests.
  17194. 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
  17195. * INSTALL: Document that libdevmapper needs to be 1.02.34 or later.
  17196. 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
  17197. * configure.ac: Check for dm_log_with_errno_init in libdevmapper and
  17198. echo if libdevmapper will be used.
  17199. 2010-09-02 Ian Turner <Ian.Turner@deshaw.com>
  17200. * grub-core/fs/i386/pc/pxe.c (grub_pxefs_read): Keep the blocksize
  17201. constant for the same file.
  17202. 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
  17203. * grub-core/kern/i386/multiboot_mmap.c: Remove leftover include.
  17204. 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
  17205. * .bzrignore: Add *.pp, **/.dirstamp, grub-core/*.module, and
  17206. grub-core/*.pp.
  17207. 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
  17208. Zero %ebp and %edi when entering Linux's 32-bit entry point, as
  17209. required by the boot protocol.
  17210. * include/grub/i386/relocator.h (struct grub_relocator32_state): Add
  17211. ebp and edi members.
  17212. * grub-core/lib/i386/relocator.c (grub_relocator_boot): Handle
  17213. state.ebp and state.edi.
  17214. * grub-core/lib/i386/relocator32.S (grub_relocator32_start): Set
  17215. %ebp and %edi according to grub_relocator32_ebp and
  17216. grub_relocator32_edi respectively.
  17217. * grub-core/loader/i386/linux.c (grub_linux_boot): Zero state.ebp
  17218. and state.edi.
  17219. 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
  17220. Add i386-pc-pxe image target.
  17221. * util/grub-mkimage.c (image_target_desc): New enum value
  17222. IMAGE_I386_PC_PXE.
  17223. (image_targets): New target i386-pc-pxe.
  17224. (generate_image): Handle i386-pc-pxe image.
  17225. 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
  17226. Fix grub_pxe_scan.
  17227. * grub-core/fs/i386/pc/pxe.c (grub_pxe_pxenv): Put correct type bangpxe.
  17228. (grub_pxe_scan): Fix types and pxe_rm_entry computation.
  17229. All users updated.
  17230. * include/grub/i386/pc/pxe.h (grub_pxe_bangpxe): New struct.
  17231. (grub_pxe_pxenv): Correct type.
  17232. 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
  17233. * NEWS: Document most of the important changes since 1.98.
  17234. 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
  17235. * util/grub-mkrescue.in (usage): Tidy up usage output (and hence
  17236. generated manual page) a little.
  17237. 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
  17238. * docs/grub.texi: Add myself as an author.
  17239. 2010-09-01 Vladimir Serbinenko <phcoder@gmail.com>
  17240. * Makefile.util.def (libgrub.a): Add missing sunpc.
  17241. Reported by: Seth Goldberg.
  17242. 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
  17243. Interrupt wrapping and code simplifications.
  17244. * Makefile.util.def (grub-mkrescue): Use x86 tg instead of
  17245. x86_noieee1275 which are functionaly equivalent in this case.
  17246. (grub-install): Make source on each platform explicit. Enable on
  17247. all noemu.
  17248. * gentpl.py (x86_efi_pc): Removed group.
  17249. (x86_noefi): Likewise.
  17250. (i386_noefi): Likewise.
  17251. (x86_noieee1275): Likewise.
  17252. (i386_noieee1275): Likewise.
  17253. (i386_noefi_noieee1275): Likewise.
  17254. (i386_pc_qemu_coreboot): Likewise.
  17255. (i386_coreboot_multiboot): Likewise.
  17256. (i386_pc_coreboot_multiboot_qemu): Likewise.
  17257. (x86_noefi_mips): Likewise.
  17258. (noieee1275): Likewise.
  17259. (ieee1275_mips): Likewise.
  17260. (noemu_noieee1275): Likewise.
  17261. (cmos): New group.
  17262. (usb): Likewise.
  17263. (videoinkernel): Likewise.
  17264. (videomodules): Likewise.
  17265. * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove
  17266. include/grub/elf.h, include/grub/elfload.h, include/grub/net.h,
  17267. include/grub/reader.h, include/grub/symbol.h, include/grub/types.h,
  17268. include/grub/loader.h, include/grub/msdos_partition.h,
  17269. include/grub/machine/biosdisk.h, include/grub/machine/boot.h,
  17270. include/grub/machine/console.h, include/grub/machine/vga.h,
  17271. include/grub/machine/vbe.h, include/grub/machine/init.h,
  17272. include/grub/machine/kernel.h, include/grub/cpu/time.h,
  17273. include/grub/cpu/types.h, include/grub/gzio.h and include/grub/menu.h
  17274. (KERNEL_HEADER_FILES) [i386-pc]: Add include/grub/machine/int.h.
  17275. (KERNEL_HEADER_FILES) [i386-ieee1275]: Add include/grub/i386/pit.h
  17276. * grub-core/Makefile.core.def (kernel): Explicit the source for
  17277. startup. Explicit the platforms using kern/generic/rtc_get_time_ms.c.
  17278. Split ieee1275_mips. Remove kern/i386/halt.c. Remove kern/i386/misc.S.
  17279. Enable kern/i386/pit.c on all x86. Remove kern/i386/ieee1275/init.c.
  17280. Use videoinkernel tag.
  17281. (usb): Enable on all usb.
  17282. (usbserial_common): Likewise.
  17283. (usbserial_pl2303): Likewise.
  17284. (usbserial_ftdi): Likewise.
  17285. (uhci): Enable on all x86.
  17286. (ohci): Enable on all pci.
  17287. (cmostest): Enable on all CMOS.
  17288. (acpi): Include commands/acpi.c on all platforms.
  17289. (halt): Add relevant lib/*/halt.c.
  17290. (hdparm): Enable on all pci.
  17291. (lspci): Likewise.
  17292. (usbtest): Enable on all usb.
  17293. (ata): Enable on all pci.
  17294. (ata_pthru): Likewise.
  17295. (usbms): Enable on all usb.
  17296. (usb_keyboard): Likewise.
  17297. (font): Use tag videomodules.
  17298. (bufio): Likewise.
  17299. (datetime): Use tag cmos. Enable on all noemu.
  17300. (mmap): Use tags common and x86.
  17301. (gfxterm): Use tag videomodules.
  17302. (bitmap): Likewise.
  17303. (bitmap_scale): Likewise.
  17304. (video_fb): Likewise.
  17305. (video): Likewise.
  17306. * grub-core/bus/usb/ohci.c (grub_ohci_td): Make link_td a pointer and
  17307. adjust padding accordingly. All users updated.
  17308. (grub_ohci_transaction): Fix bad format specification.
  17309. (GRUB_MOD_INIT): Add asserts for struct size.
  17310. * grub-core/bus/usb/uhci.c (grub_uhci_pci_iter): Add explicit casts.
  17311. (grub_alloc_td): Likewise.
  17312. (grub_free_queue): Likewise.
  17313. (grub_uhci_transfer): Likewise.
  17314. (grub_uhci_transaction): Fix bad format specification.
  17315. * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
  17316. (grub_usb_bulk_readwrite): Likewise.
  17317. * grub-core/kern/i386/misc.S (grub_stop): Moved from here ...
  17318. * grub-core/commands/i386/pc/halt.c (stop): ...here. Transformed into C.
  17319. Made static.
  17320. * grub-core/lib/i386/halt.c (stop): ... and here. Transformed into C.
  17321. Made static.
  17322. * grub-core/kern/i386/pc/startup.S (grub_halt): Moved from here ...
  17323. * grub-core/commands/i386/pc/halt.c (grub_halt): ...here.
  17324. Transformed into C.
  17325. * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_int13_extensions):
  17326. Moved from here ...
  17327. * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_int13_extensions):
  17328. ... here. Transformed into C. Made static.
  17329. * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_standard):
  17330. Moved from here ...
  17331. * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_standard):
  17332. ... here. Transformed into C. Made static.
  17333. * grub-core/kern/i386/pc/startup.S
  17334. (grub_biosdisk_check_int13_extensions): Moved from here ...
  17335. * grub-core/disk/i386/pc/biosdisk.c
  17336. (grub_biosdisk_check_int13_extensions): ... here. Transformed into C.
  17337. Made static.
  17338. * grub-core/kern/i386/pc/startup.S
  17339. (grub_biosdisk_get_cdinfo_int13_extensions): Moved from here ...
  17340. * grub-core/disk/i386/pc/biosdisk.c
  17341. (grub_biosdisk_get_cdinfo_int13_extensions): ... here.
  17342. Transformed into C. Made static.
  17343. * grub-core/kern/i386/pc/startup.S
  17344. (grub_biosdisk_get_diskinfo_int13_extensions): Moved from here ...
  17345. * grub-core/disk/i386/pc/biosdisk.c
  17346. (grub_biosdisk_get_diskinfo_int13_extensions): ... here.
  17347. Transformed into C. Made static.
  17348. * grub-core/kern/i386/pc/startup.S
  17349. (grub_biosdisk_get_diskinfo_standard): Moved from here ...
  17350. * grub-core/disk/i386/pc/biosdisk.c
  17351. (grub_biosdisk_get_diskinfo_standard): ... here.
  17352. Transformed into C. Made static.
  17353. * grub-core/kern/i386/pc/startup.S
  17354. (grub_biosdisk_get_num_floppies): Moved from here ...
  17355. * grub-core/disk/i386/pc/biosdisk.c
  17356. (grub_biosdisk_get_num_floppies): ... here.
  17357. Transformed into C. Made static.
  17358. * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_diskinfo_real):
  17359. New function.
  17360. * grub-core/kern/i386/pc/startup.S (grub_pxe_scan): Moved from here ...
  17361. * grub-core/fs/i386/pc/pxe.c (grub_pxe_scan): ... here.
  17362. Transformed into C. Made static.
  17363. * grub-core/kern/i386/pc/startup.S (grub_rm_entry): Moved from here ...
  17364. * grub-core/fs/i386/pc/pxe.c (grub_rm_entry): ... here.
  17365. Transformed into C. Made static.
  17366. * grub-core/kern/i386/ieee1275/init.c: Removed.
  17367. * grub-core/kern/i386/misc.S: Likewise.
  17368. * grub-core/kern/i386/pc/startup.S (grub_get_memsize):
  17369. Splitted from here ...
  17370. * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): ... here.
  17371. Transformed into C. Made static. All users updated.
  17372. * grub-core/kern/i386/pc/mmap.c (grub_get_ext_memsize): ... and here.
  17373. Transformed into C. Made static. All users updated.
  17374. * grub-core/kern/i386/pc/startup.S (grub_get_eisa_mmap):
  17375. Moved from here...
  17376. * grub-core/kern/i386/pc/mmap.c (grub_get_eisa_mmap): ... here.
  17377. Transformed into C. Made static. All users updated.
  17378. * grub-core/kern/i386/pc/startup.S (grub_get_mmap_entry):
  17379. Moved from here...
  17380. * grub-core/kern/i386/pc/mmap.c (grub_get_mmap_entry): ... here.
  17381. Transformed into C. Made static. All users updated.
  17382. * grub-core/kern/i386/pc/startup.S (grub_stop_floppy):
  17383. Removed (replaced by C version).
  17384. * grub-core/kern/i386/pc/startup.S (grub_vga_set_mode):
  17385. Moved from here...
  17386. * grub-core/video/i386/pc/vga.c (grub_vga_set_mode): ...here.
  17387. Transformed into C. Made static.
  17388. * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_controller_info):
  17389. Moved from here...
  17390. * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_controller_info):
  17391. ... here. Transformed into C.
  17392. * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode_info):
  17393. Moved from here...
  17394. * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode_info):
  17395. ... here. Transformed into C.
  17396. * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_mode):
  17397. Moved from here...
  17398. * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_mode):
  17399. ... here. Transformed into C. Made static.
  17400. * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode):
  17401. Moved from here...
  17402. * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode):
  17403. ... here. Transformed into C.
  17404. * grub-core/kern/i386/pc/startup.S
  17405. (grub_vbe_bios_getset_dac_palette_width):Moved from here...
  17406. * grub-core/video/i386/pc/vbe.c
  17407. (grub_vbe_bios_getset_dac_palette_width):... here. Transformed into C.
  17408. * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_memory_window):
  17409. Moved from here...
  17410. * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_memory_window):
  17411. ... here. Transformed into C.
  17412. * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_memory_window):
  17413. Moved from here...
  17414. * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_memory_window):
  17415. ... here. Transformed into C.
  17416. * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_scanline_length):
  17417. Moved from here...
  17418. * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_scanline_length):
  17419. ... here. Transformed into C.
  17420. * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_scanline_length):
  17421. Moved from here...
  17422. * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_scanline_length):
  17423. ... here. Transformed into C.
  17424. * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_display_start):
  17425. Moved from here...
  17426. * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_display_start):
  17427. ... here. Transformed into C. Made static.
  17428. * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_display_start):
  17429. Moved from here...
  17430. * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_display_start):
  17431. ... here. Transformed into C. Made static.
  17432. * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_palette_data):
  17433. Moved from here...
  17434. * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_palette_data):
  17435. ... here. Transformed into C. Made static.
  17436. * grub-core/kern/i386/pc/startup.S (grub_pxe_call): Receive
  17437. pxe_rm_entry as third argument.
  17438. (grub_bios_interrupt): New function.
  17439. * grub-core/kern/i386/qemu/mmap.c: Remove useless include.
  17440. * grub-core/kern/i386/qemu/startup.S (codestart): Do cli;hlt instead
  17441. of calling grub_stop.
  17442. * grub-core/kern/efi/efi.c (grub_halt): Moved from here ...
  17443. * grub-core/lib/efi/halt.c (grub_halt): ...here.
  17444. * grub-core/kern/emu/main.c (grub_halt): Moved from here ...
  17445. * grub-core/lib/emu/halt.c (grub_halt): ... here.
  17446. * grub-core/lib/i386/halt.c: Moved from here ...
  17447. * grub-core/lib/i386/halt.c: ... here.
  17448. * grub-core/kern/ieee1275/openfw.c (grub_halt): Moved from here ...
  17449. * grub-core/lib/ieee1275/halt.c (grub_halt): ... here.
  17450. * grub-core/loader/i386/pc/linux.c (grub_linux16_boot): Call
  17451. grub_stop_floppy.
  17452. * grub-core/loader/i386/xnu.c (guessfsb) [IEEE1275]: Enable.
  17453. * include/grub/i386/coreboot/init.h: Removed.
  17454. * include/grub/i386/multiboot/init.h: Likewise.
  17455. * include/grub/i386/pc/biosdisk.h: Removed all function prototypes.
  17456. * include/grub/i386/pc/init.h: Likewise except grub_gate_a20.
  17457. * include/grub/i386/pc/int.h: New file.
  17458. * include/grub/i386/pc/pxe.h (GRUB_PXE_SIGNATURE): New definition.
  17459. (grub_pxe_scan): Removed.
  17460. (grub_pxe_call): Update prototype.
  17461. * include/grub/i386/pc/vbe.h: Removed EXPORT_FUNC and useless
  17462. prototypes.
  17463. * include/grub/i386/pc/vga.h (grub_vga_set_mode): Removed.
  17464. * include/grub/i386/qemu/init.h: Removed.
  17465. * include/grub/mips/yeeloong/kernel.h (grub_reboot): Add missing
  17466. noreturn.
  17467. (grub_halt): Likewise.
  17468. * include/grub/misc.h (grub_halt): Removed EXPORT_FUNC.
  17469. (grub_reboot): Likewise.
  17470. * grub-core/kern/i386/coreboot/init.c (grub_stop_floppy): Moved from here...
  17471. * include/grub/i386/floppy.h (grub_stop_floppy): ...here. Inlined.
  17472. * grub-core/kern/i386/pc/startup.S (grub_hard_stop): Removed.
  17473. 2010-08-30 Robert Millan <rmh@gnu.org>
  17474. * NEWS: Document addition of ZFS support in `grub-install' and
  17475. `grub-mkconfig'.
  17476. 2010-08-30 BVK Chaitanya <bvk.groups@gmail.com>
  17477. * conf/Makefile.common (CPPFLAGS_DEFAULT): Remove leading / from
  17478. dprintf output.
  17479. 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
  17480. Remove leftover embedding of font objects.
  17481. * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
  17482. * util/grub-install.in (font): Removed.
  17483. * util/grub-mkimage.c (generate_image): Remove font support. All users
  17484. updated.
  17485. 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
  17486. Remove leftover embedding of font objects.
  17487. * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
  17488. * util/grub-install.in (font): Removed.
  17489. * util/grub-mkimage.c (generate_image): Remove font support. All users
  17490. updated.
  17491. 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
  17492. * docs/grub.texi (Network): Fix reference to pxe_blksize.
  17493. Reported by: Ian Turner
  17494. 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
  17495. * grub-core/normal/menu.c (grub_wait_after_message): Add a 10 second
  17496. timeout to avoid indefinite boot stalling.
  17497. 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
  17498. * grub-core/normal/color.c (grub_env_write_color_normal): Fix a warning.
  17499. (grub_env_write_color_highlight): Likewise.
  17500. 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
  17501. * grub-core/normal/term.c (print_more): Return to normal and not
  17502. to standard state after printing "---MORE---".
  17503. 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
  17504. * grub-core/term/i386/vga_common.c (grub_console_setcolorstate):
  17505. Mask out the bit 0x80 since it has other meaning that specifiing color.
  17506. 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
  17507. New relocator. Allows for more kernel support and more straightforward
  17508. loader writing.
  17509. * Makefile.am (BOOTTARGET): New variable.
  17510. (QEMU32): Likewise.
  17511. (linux.init.x86_64): New target.
  17512. (linux.init.i386): Likewise.
  17513. (multiboot.elf): Likewise.
  17514. (kfreebsd.elf): Likewise.
  17515. (kfreebsd.aout): Likewise.
  17516. (pc-chainloader.elf): Likewise.
  17517. (pc-chainloader.bin): Likewise.
  17518. (ntldr.elf): Likewise.
  17519. (ntldr.bin): Likewise.
  17520. (multiboot2.elf): Likewise.
  17521. (kfreebsd.init.x86_64): Likewise.
  17522. (kfreebsd.init.i386): Likewise.
  17523. (knetbsd.init.i386): Likewise.
  17524. (kopenbsd.init.i386): Likewise.
  17525. (knetbsd.init.x86_64): Likewise.
  17526. (kopenbsd.init.x86_64): Likewise.
  17527. (linux-initramfs.i386): Likewise.
  17528. (linux-initramfs.x86_64): Likewise.
  17529. (kfreebsd-mfsroot.i386.img): Likewise.
  17530. (knetbsd.image.i386): Likewise.
  17531. (kopenbsd.image.i386): Likewise.
  17532. (kopenbsd.image.x86_64): Likewise.
  17533. (knetbsd.miniroot-image.i386.img): Likewise.
  17534. (kfreebsd-mfsroot.x86_64.img): Likewise.
  17535. (knetbsd.image.x86_64): Likewise.
  17536. (knetbsd.miniroot-image.x86_64.img): Likewise.
  17537. (kfreebsd-mfsroot.i386.gz): Likewise.
  17538. (bootcheck-kfreebsd-i386): Likewise.
  17539. (kfreebsd-mfsroot.x86_64.gz): Likewise.
  17540. (bootcheck-kfreebsd-x86_64): Likewise.
  17541. (knetbsd.miniroot-image.i386.gz): Likewise.
  17542. (bootcheck-knetbsd-i386): Likewise.
  17543. (bootcheck-kopenbsd-i386): Likewise.
  17544. (bootcheck-kopenbsd-x86_64): Likewise.
  17545. (knetbsd.miniroot-image.x86_64.gz): Likewise.
  17546. (bootcheck-knetbsd-x86_64): Likewise.
  17547. (bootcheck-linux-i386): Likewise.
  17548. (bootcheck-linux-x86_64): Likewise.
  17549. (bootcheck-linux16-i386): Likewise.
  17550. (bootcheck-linux16-x86_64): Likewise.
  17551. (bootcheck-multiboot): Likewise.
  17552. (bootcheck-multiboot2): Likewise.
  17553. (bootcheck-kfreebsd-aout): Likewise.
  17554. (bootcheck-pc-chainloader): Likewise.
  17555. (bootcheck-ntldr): Likewise.
  17556. (CLEANFILES): Add new targets.
  17557. (BOOTCHECKS): New variable.
  17558. (.PHONY): Add bootchecks.
  17559. (SUCCESSFUL_BOOT_STRING): New variable.
  17560. (BOOTCHECK_TIMEOUT): Likewise.
  17561. (bootcheck): New target
  17562. * Makefile.util.def (grub-mkrescue): Enable on i386-multiboot.
  17563. * configure.ac: Correct efiemu excuse.
  17564. * docs/grub.texi (Supported kernels): New chapter.
  17565. * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add
  17566. include/grub/mm_private.h. Simplify inclusion of
  17567. include/grub/boot.h, include/grub/loader.h
  17568. and include/grub/msdos_partition.h
  17569. (KERNEL_HEADER_FILES) [i386_coreboot]:
  17570. Remove include/grub/machine/loader.h. Add include/grub/i386/pit.h.
  17571. (KERNEL_HEADER_FILES) [i386_multiboot]: Likewise.
  17572. (KERNEL_HEADER_FILES) [i386_qemu]: Likewise.
  17573. (KERNEL_HEADER_FILES) [i386_ieee1275]: Remove
  17574. include/grub/machine/loader.h.
  17575. (KERNEL_HEADER_FILES) [x86_64-efi]: Likewise.
  17576. * grub-core/Makefile.core.def (kernel): Remove kern/i386/loader.S from
  17577. extra_dist.
  17578. (pci.mod): Enable on i386-multiboot.
  17579. (acpi.mod): Enable on i386-multiboot and i386-coreboot.
  17580. (efiemu.mod): Enable on i386-coreboot, i386-ieee1275, i386-multiboot and
  17581. i386-qemu.
  17582. (relocator.mod): Rewritten.
  17583. (aout.mod): Enable on all x86.
  17584. (bsd.mod): Likewise.
  17585. (ntldr.mod): New module.
  17586. (linux.mod): Use loader/i386/linux.c on all x86.
  17587. (xnu.mod): Enable on all x86.
  17588. (vga_text.mod): disable on EFI and QEMU.
  17589. * grub-core/efiemu/i386/coredetect.c: Remove useless include.
  17590. * grub-core/efiemu/i386/pc/cfgtables.c: Likewise.
  17591. * grub-core/efiemu/loadcore.c: Likewise.
  17592. * grub-core/efiemu/main.c: Likewise.
  17593. (grub_efiemu_exit_boot_services): Removed.
  17594. (grub_efiemu_finish_boot_services): Likewise.
  17595. * grub-core/efiemu/mm.c (grub_efiemu_finish_boot_services): New
  17596. function.
  17597. * grub-core/efiemu/i386/nocfgtables.c: New file.
  17598. * grub-core/kern/dl.c (grub_dl_unload_all): Removed.
  17599. * grub-core/kern/efi/efi.c (grub_efi_exit_boot_services): Removed.
  17600. (grub_efi_finish_boot_services): Moved from here ...
  17601. * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services): ...here.
  17602. Fille finish memory map and related data.
  17603. (finish_mmap_buf): New variable.
  17604. (grub_efi_uintn_t finish_mmap_size): Likewise.
  17605. (grub_efi_uintn_t finish_key): Likewise.
  17606. (grub_efi_uintn_t finish_desc_size): Likewise.
  17607. (grub_efi_uint32_t finish_desc_version): Likewise.
  17608. (grub_efi_is_finished): Likewise.
  17609. (grub_efi_get_memory_map): Use saved memory map if EFI is already
  17610. finished.
  17611. * grub-core/kern/elf.c (grub_elf32_phdr_iterate): Make global.
  17612. (grub_elf64_phdr_iterate): Likewise.
  17613. * grub-core/kern/i386/coreboot/init.c (grub_os_area_addr): Removed.
  17614. (grub_os_area_size): Likewise.
  17615. (grub_machine_init): Don't reserve os area.
  17616. * grub-core/kern/i386/coreboot/startup.S: Don't include loader.S.
  17617. * grub-core/kern/i386/ieee1275/startup.S: Likewise.
  17618. * grub-core/kern/i386/loader.S: Removed.
  17619. * grub-core/kern/i386/pc/init.c (grub_os_area_addr): Removed.
  17620. (grub_os_area_size): Likewise.
  17621. (grub_machine_init): Don't reserve os area.
  17622. * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
  17623. Don't call grub_dl_unload_all.
  17624. Don't include loader.S.
  17625. * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
  17626. Declare the memory after _end as available.
  17627. * grub-core/kern/mm.c (GRUB_MM_FREE_MAGIC): Moved from here...
  17628. * include/grub/mm_private.h (GRUB_MM_FREE_MAGIC): ... here.
  17629. (GRUB_MM_ALLOC_MAGIC): Moved from here...
  17630. * include/grub/mm_private.h (GRUB_MM_ALLOC_MAGIC): ... here.
  17631. * grub-core/kern/mm.c (grub_mm_header): Moved from here...
  17632. * include/grub/mm_private.h (grub_mm_header): ... here.
  17633. * grub-core/kern/mm.c (GRUB_MM_ALIGN): Moved from here...
  17634. * include/grub/mm_private.h (GRUB_MM_ALIGN): ... here.
  17635. * grub-core/kern/mm.c (grub_mm_region): Moved from here ...
  17636. (grub_mm_region): ..here. Removed addr. Added pre_size.
  17637. All users updated.
  17638. * grub-core/kern/mm.c (base): Renamed to ...
  17639. (grub_mm_base): ... this. Made global.
  17640. (grub_real_malloc): Alloc from end of region.
  17641. (grub_memalign): Don't attempt to malloc if grub_mm_base is NULL.
  17642. * grub-core/kern/powerpc/cache.S (grub_arch_sync_caches): Move to ...
  17643. * grub-core/kern/powerpc/cache_flush.S: ... here.
  17644. * grub-core/lib/efi/relocator.c: New file.
  17645. * grub-core/lib/i386/relocator.c: Rewritten.
  17646. * grub-core/lib/i386/relocator16.S: New file.
  17647. * grub-core/lib/i386/relocator32.S: Likewise.
  17648. * grub-core/lib/i386/relocator64.S: Likewise.
  17649. * grub-core/lib/i386/relocator_asm.S: Rewritten.
  17650. * grub-core/lib/i386/relocator_common.S: New file.
  17651. * grub-core/lib/ieee1275/relocator.c: Likewise.
  17652. * grub-core/lib/mips/relocator.c: Rewritten.
  17653. * grub-core/lib/mips/relocator_asm.S: Renamed variables and minor
  17654. stylistic adjustments.
  17655. * grub-core/lib/powerpc/relocator.c: New file.
  17656. * grub-core/lib/powerpc/relocator_asm.S: Likewise.
  17657. * grub-core/lib/relocator.c: Rewritten.
  17658. * grub-core/lib/x86_64/relocator_asm.S: New file.
  17659. * grub-core/loader/aout.c (grub_aout_load): Make load_addr a void *.
  17660. * grub-core/loader/i386/bsd.c (NETBSD_DEFAULT_VIDEO_MODE): New const.
  17661. (bsd_tag): New struct.
  17662. (tags): New variable.
  17663. (tags_last): Likewise.
  17664. (netbsd_module): New struct.
  17665. (netbsd_mods): New variable.
  17666. (netbsd_mods_last): Likewise.
  17667. (openbsd_opts): New parameter "serial".
  17668. (OPENBSD_SERIAL_ARG): New definition.
  17669. (netbsd_opts): New parameter "serial".
  17670. (NETBSD_SERIAL_ARG): New definition.
  17671. (grub_freebsd_add_meta): Reorganised into ...
  17672. (grub_bsd_add_meta): ...this. All users updated.
  17673. (grub_freebsd_add_mmap): Reorganised into ...
  17674. (generate_e820_mmap): ...this...
  17675. (grub_bsd_add_mmap): ...and this. All users updated.
  17676. (grub_freebsd_list_modules): Use tags.
  17677. (grub_netbsd_add_meta_module): New function.
  17678. (grub_netbsd_list_modules): Likewise.
  17679. (grub_freebsd_boot): Use relocator and finish EFI.
  17680. (grub_openbsd_boot): Likewise.
  17681. (grub_netbsd_setup_video): New function.
  17682. (grub_netbsd_add_modules): Likewise.
  17683. (grub_netbsd_boot): Use grub_netbsd_add_modules, relocator, netbsd_tags
  17684. and finish EFI.
  17685. (grub_bsd_unload): Unload tags.
  17686. (grub_bsd_load_aout): Use relocator.
  17687. (grub_bsd_elf32_size_hook): New function.
  17688. (grub_bsd_elf32_hook): Use relocator.
  17689. (grub_bsd_elf64_size_hook): New function.
  17690. (grub_bsd_elf64_hook): Use relocator.
  17691. (grub_bsd_load_elf): Use relocator and call grub_openbsd_find_ramdisk.
  17692. (grub_bsd_load): Zero-out openbsd_ramdisk.
  17693. (grub_bsd_load): Use relocator.
  17694. (grub_cmd_openbsd): Support serial.
  17695. (grub_cmd_netbsd): Support modules.
  17696. (grub_cmd_freebsd_module): Use relocator.
  17697. (grub_netbsd_module_load): New function.
  17698. (grub_cmd_netbsd_module): Likewise.
  17699. (grub_cmd_openbsd_ramdisk): Likewise.
  17700. (GRUB_MOD_INIT): Register knetbsd_module, knetbsd_module_elf and
  17701. kopenbsd_ramdisk.
  17702. (GRUB_MOD_FINI): Unregister new commands.
  17703. * grub-core/loader/i386/bsdXX.c (load): Remove useless checks.
  17704. (grub_freebsd_load_elfmodule_obj): Use relocator.
  17705. (grub_freebsd_load_elfmodule): Likewise.
  17706. (grub_freebsd_load_elf_meta): Likewise.
  17707. (grub_netbsd_load_elf_meta): New function.
  17708. (grub_openbsd_find_ramdisk): Likewise.
  17709. * grub-core/loader/i386/bsd_helper.S: Removed.
  17710. * grub-core/loader/i386/bsd_pagetable.c: Support relocator.
  17711. * grub-core/loader/i386/bsd_trampoline.S: Removed.
  17712. * grub-core/loader/i386/efi/linux.c: Likewise.
  17713. * grub-core/loader/i386/ieee1275/linux.c: Likewise.
  17714. * grub-core/loader/i386/linux.c (HAS_VGA_TEXT): New const.
  17715. (DEFAULT_VIDEO_MODE): Likewise.
  17716. (real_mode_target): New variable.
  17717. (prot_mode_target): Likewise.
  17718. (initrd_mem_target): Likewise.
  17719. (relocator): Likewise.
  17720. (efi_mmap_buf): Likewise.
  17721. (efi_mmap_size): Likewise.
  17722. (find_efi_mmap_size): Moved from grub-core/loader/i386/efi/linux.c.
  17723. (free_pages): Use relocator.
  17724. (allocate_pages): Account for efi_mmap and use relocator. Return error.
  17725. (grub_linux_setup_video): Return error.
  17726. (grub_linux_trampoline_start): Removed.
  17727. (grub_linux_trampoline_end): Likewise.
  17728. (grub_linux_boot): Use relocator and DEFAULT_VIDEO_MODE. Pass console
  17729. andd video parameters depending on firmware.
  17730. [GRUB_MACHINE_IEEE1275]: Pass OFW parameters.
  17731. [GRUB_MACHINE_EFI]: Pass EFI parameters.
  17732. (grub_cmd_linux) [GRUB_MACHINE_EFI]: Likewise.
  17733. (grub_cmd_initrd): Use relocator.
  17734. * grub-core/loader/i386/linux_trampoline.S: Removed.
  17735. * grub-core/loader/i386/multiboot_mbi.c (elf_sec_num): New variable.
  17736. (elf_sec_entsize): Likewise.
  17737. (elf_sec_shstrndx): Likewise.
  17738. (elf_sections): Likewise.
  17739. (grub_multiboot_load): Use relocator.
  17740. (grub_multiboot_get_mbi_size): Account for sections.
  17741. (grub_multiboot_make_mbi): Use relocator and support sections.
  17742. (grub_multiboot_add_elfsyms): New function.
  17743. (grub_multiboot_free_mbi): Free sections.
  17744. * grub-core/loader/i386/pc/linux.c (relocator): New variable.
  17745. (grub_linux_real_target): Likewise.
  17746. (grub_linux_real_chunk): Likewise.
  17747. (grub_linux16_prot_size): Likewise.
  17748. (grub_linux16_boot): Use relocator.
  17749. (grub_linux_unload): Unload relocator.
  17750. (grub_cmd_linux): Use relocator.
  17751. (grub_cmd_initrd): Likewise.
  17752. * grub-core/loader/i386/pc/ntldr.c: New file.
  17753. * grub-core/loader/i386/xnu.c (guessfsb) [GRUB_MACHINE_IEEE1275]:
  17754. Don't try to guess CPU frequency.
  17755. (grub_xnu_set_video): Stretch bitmap.
  17756. (grub_xnu_boot): Use relocator.
  17757. * grub-core/loader/mips/linux.c (grub_linux_boot): Use relocator.
  17758. (grub_linux_unload): Free relocator.
  17759. (grub_linux_load32): Use relocator.
  17760. (grub_linux_load64): Likewise.
  17761. (grub_cmd_initrd): Likewise.
  17762. * grub-core/loader/multiboot.c (grub_multiboot_boot): Use relocator.
  17763. (grub_multiboot_unload): Unload relocator.
  17764. (grub_cmd_multiboot): Use relocator.
  17765. (grub_cmd_module): Likewise.
  17766. * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elfXX):
  17767. Use relocator and support sections.
  17768. * grub-core/loader/multiboot_mbi2.c(elf_sec_num): New variable.
  17769. (elf_sec_entsize): Likewise.
  17770. (elf_sec_shstrndx): Likewise.
  17771. (elf_sections): Likewise.
  17772. (grub_multiboot_load): Use relocator.
  17773. (grub_multiboot_get_mbi_size): Account for sections.
  17774. (grub_multiboot_make_mbi): Use relocator and support sections.
  17775. (grub_multiboot_add_elfsyms): New function.
  17776. * grub-core/loader/powerpc/ieee1275/linux.c: Remove useless include.
  17777. * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
  17778. * grub-core/loader/xnu.c (grub_xnu_heap_malloc): Use relocator.
  17779. Prototype changed. All users updated.
  17780. (grub_xnu_align_heap): Simplified.
  17781. (grub_xnu_writetree_toheap): Likewise.
  17782. (grub_xnu_unload): Unload relocator.
  17783. (grub_cmd_xnu_kernel): Use relocator.
  17784. (grub_cmd_xnu_kernel64): Likewise.
  17785. (grub_xnu_register_memory): Simplified.
  17786. * grub-core/loader/xnu_resume.c (grub_xnu_resume): Use relocator.
  17787. * grub-core/term/efi/console.c (grub_console_putchar): Abort if
  17788. EFI is finished.
  17789. (grub_console_checkkey): Likewise.
  17790. (grub_console_getkey): Likewise.
  17791. (grub_console_getwh): Likewise.
  17792. (grub_console_getxy): Likewise.
  17793. (grub_console_gotoxy): Likewise.
  17794. (grub_console_cls): Likewise.
  17795. (grub_console_setcolorstate): Likewise.
  17796. (grub_console_setcursor): Likewise.
  17797. * grub-core/term/ns8250.c (grub_ns8250_hw_get_port): New function.
  17798. * grub-core/tests/boot/kbsd.init-i386.S: New file.
  17799. * grub-core/tests/boot/kbsd.init-x86_64.S: Likewise.
  17800. * grub-core/tests/boot/kbsd.spec.txt: Likewise.
  17801. * grub-core/tests/boot/kernel-8086.S: Likewise.
  17802. * grub-core/tests/boot/kernel-i386.S: Likewise.
  17803. * grub-core/tests/boot/kfreebsd-aout.cfg: Likewise.
  17804. * grub-core/tests/boot/kfreebsd.cfg: Likewise.
  17805. * grub-core/tests/boot/kfreebsd.init-i386.S: Likewise.
  17806. * grub-core/tests/boot/kfreebsd.init-x86_64.S: Likewise.
  17807. * grub-core/tests/boot/knetbsd.cfg: Likewise.
  17808. * grub-core/tests/boot/kopenbsd.cfg: Likewise.
  17809. * grub-core/tests/boot/kopenbsdlabel.txt: Likewise.
  17810. * grub-core/tests/boot/linux.cfg: Likewise.
  17811. * grub-core/tests/boot/linux.init-i386.S: Likewise.
  17812. * grub-core/tests/boot/linux.init-x86_64.S: Likewise.
  17813. * grub-core/tests/boot/linux16.cfg: Likewise.
  17814. * grub-core/tests/boot/multiboot.cfg: Likewise.
  17815. * grub-core/tests/boot/multiboot2.cfg: Likewise.
  17816. * grub-core/tests/boot/ntldr.cfg: Likewise.
  17817. * grub-core/tests/boot/pc-chainloader.cfg: Likewise.
  17818. * include/grub/aout.h (grub_aout_load): Make load_addr a void *.
  17819. * include/grub/autoefi.h (grub_autoefi_finish_boot_services):
  17820. New definition.
  17821. * include/grub/dl.h (grub_dl_unload_all): Removed.
  17822. * include/grub/efi/efi.h (grub_efi_exit_boot_services): Likewise.
  17823. (grub_efi_finish_boot_services): Change prototype.
  17824. (grub_efi_is_finished): New variable.
  17825. * include/grub/efiemu/efiemu.h (grub_efiemu_finish_boot_services):
  17826. Changed prototype.
  17827. (grub_efiemu_finish_boot_services): Removed.
  17828. (grub_machine_efiemu_init_tables): New prototype.
  17829. * include/grub/elfload.h (grub_elf32_phdr_iterate): Likewise.
  17830. (grub_elf64_phdr_iterate): Likewise.
  17831. * include/grub/i386/bsd.h: Include relocator.h.
  17832. (freebsd_tag_header): New struct.
  17833. (grub_openbsd_bios_mmap): Removed.
  17834. (grub_unix_real_boot): Removed.
  17835. (grub_freebsd_load_elfmodule32): Changed prototype.
  17836. (grub_freebsd_load_elfmodule_obj64): Likewise.
  17837. (grub_freebsd_load_elf_meta32): Likewise.
  17838. (grub_freebsd_load_elf_meta64): Likewise.
  17839. (grub_freebsd_add_meta): Removed.
  17840. (grub_netbsd_load_elf_meta32): New prototype.
  17841. (grub_netbsd_load_elf_meta64): Likewise.
  17842. (grub_bsd_add_meta): Likewise.
  17843. (grub_openbsd_ramdisk_descriptor): New struct.
  17844. (grub_openbsd_find_ramdisk32): New prototype.
  17845. (grub_openbsd_find_ramdisk64): Likewise.
  17846. * include/grub/i386/coreboot/loader.h: Removed.
  17847. * include/grub/i386/efi/loader.h: Likewise.
  17848. * include/grub/i386/ieee1275/loader.h: Likewise.
  17849. * include/grub/i386/linux.h (linux_kernel_header): Change void *
  17850. to grub_uint32_t.
  17851. * include/grub/i386/loader.h: Removed.
  17852. * include/grub/i386/memory.h (GRUB_MEMORY_CPU_CR4_PAE_ON): Correct the
  17853. value.
  17854. (GRUB_MEMORY_CPU_CR4_PSE_ON): New definition.
  17855. (grub_phys_addr_t): New type.
  17856. (grub_vtop): New inline function.
  17857. (grub_map_memory): Likewise.
  17858. (grub_unmap_memory): Likewise.
  17859. * include/grub/i386/multiboot/loader.h: Removed.
  17860. * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK): Removed.
  17861. (NETBSD_BTINFO_CONSOLE): New definition.
  17862. (NETBSD_BTINFO_SYMTAB): Likewise.
  17863. (NETBSD_BTINFO_MODULES): Likewise.
  17864. (NETBSD_BTINFO_FRAMEBUF): Likewise.
  17865. (grub_netbsd_bootinfo): New struct.
  17866. (grub_netbsd_btinfo_common): Use explicit bitsize.
  17867. (grub_netbsd_btinfo_mmap_entry): Removed.
  17868. (GRUB_NETBSD_MAX_BOOTPATH_LEN): New definition.
  17869. (grub_netbsd_btinfo_bootdisk): New struct.
  17870. (grub_netbsd_btinfo_symtab): Likewise.
  17871. (grub_netbsd_btinfo_serial): Likewise.
  17872. (grub_netbsd_btinfo_modules): Likewise.
  17873. (grub_netbsd_btinfo_framebuf): Likewise.
  17874. (GRUB_NETBSD_MAX_ROOTDEVICE_LEN): New definition.
  17875. * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_CONSOLE):
  17876. Likewise.
  17877. (grub_openbsd_bootargs): Use explicit bitsize.
  17878. (grub_openbsd_bootarg_console): New struct.
  17879. (GRUB_OPENBSD_COM_MAJOR): New definition.
  17880. (GRUB_OPENBSD_VGA_MAJOR): Likewise.
  17881. * include/grub/i386/pc/efiemu.h: Removed.
  17882. * include/grub/i386/pc/loader.h: Don't include cpu/loader.h.
  17883. * include/grub/i386/qemu/loader.h: Removed.
  17884. * include/grub/i386/relocator.h: Rewritten.
  17885. * include/grub/i386/xnu.h (grub_xnu_heap_will_be_at): Removed.
  17886. * include/grub/mips/memory.h: New file.
  17887. * include/grub/mips/multiboot.h: Rewritten.
  17888. * include/grub/mips/relocator.h: Rewritten.
  17889. * include/grub/mips/yeeloong/memory.h (grub_phys_addr_t): New type.
  17890. (grub_vtop): New function.
  17891. (grub_map_memory): Likewise.
  17892. (grub_unmap_memory): Likewise.
  17893. * include/grub/misc.h (ALIGN_DOWN): New definition.
  17894. * include/grub/mm.h (grub_mm_check_real): New proto.
  17895. (GRUB_MM_CHECK): New definition.
  17896. * include/grub/mm_private.h: New file.
  17897. * include/grub/multiboot.h (grub_multiboot_relocator): New variable.
  17898. (grub_multiboot_get_mbi_size): Removed.
  17899. (grub_multiboot_make_mbi): Change prottype.
  17900. (grub_multiboot_set_accepts_video): New proto.
  17901. (grub_multiboot_add_elfsyms): Likewise.
  17902. (grub_multiboot_payload_eip): New variable.
  17903. * include/grub/ns8250.h (grub_ns8250_hw_get_port) [!ASM_FILE]:
  17904. New prototype.
  17905. * include/grub/offsets.h (GRUB_KERNEL_I386_MULTIBOOT_PREFIX):
  17906. New definition.
  17907. (GRUB_KERNEL_I386_MULTIBOOT_DATA_END): Likewise.
  17908. (GRUB_KERNEL_I386_MULTIBOOT_MOD_ALIGN): Likewise.
  17909. * include/grub/powerpc/ieee1275/loader.h: Removed.
  17910. * include/grub/powerpc/memory.h: New file.
  17911. * include/grub/powerpc/relocator.h: Likewise.
  17912. * include/grub/relocator.h: Likewise.
  17913. * include/grub/relocator_private.h: Likewise.
  17914. * include/grub/sparc64/ieee1275/loader.h: Removed.
  17915. * include/grub/x86_64/memory.h: New file.
  17916. * include/grub/xnu.h (grub_xnu_writetree_toheap): Changed prototype.
  17917. (grub_xnu_heap_malloc): Likewise.
  17918. (grub_xnu_heap_real_start): Removed.
  17919. (grub_xnu_heap_start): Likewise.
  17920. (grub_xnu_relocator): New variable.
  17921. (grub_xnu_heap_target_start): Likewise.
  17922. * tests/util/grub-shell.in: Support non-pc.
  17923. * util/grub-mkimage.c (image_targets): Fix multiboot target.
  17924. 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
  17925. * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Avoid deadloop
  17926. on malloc error.
  17927. (grub_bidi_logical_to_visual): Check that malloc succeded.
  17928. * grub-core/normal/term.c (grub_puts_terminal): Fix fallback to dumb
  17929. puts.
  17930. (grub_xputs_normal): Likewise.
  17931. 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
  17932. * grub-core/Makefile.core.def (kernel): Add kern/mips/cache_flush.S to
  17933. extra_dist.
  17934. 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
  17935. * grub-core/efiemu/runtime/efiemu.sh: Removed.
  17936. 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
  17937. * Makefile.util.def (grub-ofpathname): Add missing ldadd.
  17938. 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
  17939. * grub-core/kern/misc.c (grub_real_dprintf): Always refresh after
  17940. dprintf.
  17941. 2010-08-29 BVK Chaitanya <bvk.groups@gmail.com>
  17942. * Makefile.util.def: Use ldadd instead of ldflags for libraries.
  17943. 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
  17944. * grub-core/normal/term.c (print_more): Fix a memory leak.
  17945. (grub_puts_terminal): Revert to dumb puts if memory allocation fails.
  17946. (grub_xputs_normal): Likewise.
  17947. 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
  17948. * grub-core/script/lexer.c (grub_script_lexer_init): Don't look before
  17949. the begining of the string
  17950. 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
  17951. * grub-core/script/script.c (grub_script_parse): Free parsed on
  17952. failure.
  17953. 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
  17954. * grub-core/normal/completion.c (grub_normal_do_completion): Free argv
  17955. on failure.
  17956. 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
  17957. * grub-core/normal/cmdline.c (grub_cmdline_get): Free cl_terms on
  17958. return.
  17959. 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
  17960. * grub-core/term/gfxterm.c (grub_gfxterm_term_fini): Free the text buffer.
  17961. (scroll_up): Fix a memory leak.
  17962. 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
  17963. * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Handle grub_disk_read
  17964. errors.
  17965. 2010-08-27 Vladimir Serbinenko <phcoder@gmail.com>
  17966. Handle USB pendrives exposed as floppies.
  17967. * grub-core/boot/i386/pc/boot.S: Check LBA even on what appears to be
  17968. floppy.
  17969. * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
  17970. Check for partitions on all devices.
  17971. 2010-08-25 Vladimir Serbinenko <phcoder@gmail.com>
  17972. * grub-core/term/ieee1275/ofconsole.c (put): Correct prototype.
  17973. (readkey): Likewise.
  17974. 2010-08-25 BVK Chaitanya <bvk.groups@gmail.com>
  17975. Multiple variable names support to "export" command.
  17976. * normal/context.c (grub_cmd_export): "export" command supports
  17977. multiple variable names.
  17978. 2010-08-23 Samuel Thibault <samuel.thibault@ens-lyon.org>
  17979. * util/grub.d/30_os-prober.in: Fix conversion from grub-probe
  17980. --target=drive output to Mach device name.
  17981. 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
  17982. New Automake based build system for GRUB.
  17983. * ABOUT-NLS: New file.
  17984. * Makefile.am: New file. GRUB host utils' rules that doesn't fit
  17985. in Makefile.util.def file.
  17986. * Makefile.util.def: New file. Autogen build definitions file for
  17987. GRUB host utils.
  17988. * conf/Makefile.common: New file. Common variables for GRUB host
  17989. utils and target modules.
  17990. * conf/Makefile.extra-dist: New file. Extra files for make dist.
  17991. * docs/Makefile.am: New file. Automake file for docs.
  17992. * gentpl.py: New file. Python script to generate Autogen
  17993. template.
  17994. * grub-core/Makefile.am: New file. GRUB target modules' rules
  17995. that doesn't fit in Makefile.core.def file.
  17996. * grub-core/Makefile.core.def: New file. Autogen build
  17997. definitions file for GRUB target modules.
  17998. * grub-core/lib/setjmp.S: New file. Wrapper for target_cpu
  17999. specific setjmp.S file.
  18000. * po/Makefile.am: New file.
  18001. * .bzrignore: New ignores.
  18002. * INSTALL: New requirements, without Ruby.
  18003. * acinclude.m4: Use TARGET_IMG_BASE_LDOPT variable instead.
  18004. * autogen.sh: Updated to invoke autogen as necessary.
  18005. * configure.ac: Separate *FLAGS with HOST_ and TARGET_ prefixes,
  18006. and defines for Automake conditionals.
  18007. * geninit.sh: Refactoring.
  18008. * include/grub/dl.h: Allow build rules to define GRUB_MOD_* if
  18009. necessary.
  18010. * include/grub/emu/getroot.h (grub_make_system_path_relative_to_its_root):
  18011. New prototype.
  18012. * include/grub/test.h: Fix functional test modules' naming.
  18013. * grub-core/tests/example_functional_test.c: Fix test module name.
  18014. * util/misc.c: Hosted versions' of grub functions for libgrub.a
  18015. * tests/lib/unit_test.c: Remove hosted versions of grub functions.
  18016. * util/grub-editenv.c: Likewise.
  18017. * util/grub-fstest.c: Likewise.
  18018. * util/grub-mkdevicemap.c: Likewise.
  18019. * util/grub-mkfont.c: Likewise.
  18020. * util/grub-mkimage.c: Likewise.
  18021. * util/grub-mkpasswd-pbkdf2.c: Likewise.
  18022. * util/grub-probe.c: Likewise.
  18023. * util/grub-script-check.c: Likewise.
  18024. * util/i386/pc/grub-setup.c: Likewise.
  18025. * util/sparc64/ieee1275/grub-setup.c: Likewise.
  18026. * tests/util/grub-shell.in: Fix override directory path.
  18027. * util/grub-mkrescue.in: Replace @pkglib_DATA@ with files.
  18028. * util/import_gcry.py: Create Makefile.gcry.def file instead.
  18029. * util/lvm.c: Update #includes.
  18030. * util/raid.c: Likewise.
  18031. * util/resolve.c: Likewise.
  18032. * grub-core/bus/emu/pci.c: Likewise.
  18033. * grub-core/lib/posix_wrap/stdlib.h: Likewise.
  18034. * grub-core/lib/posix_wrap/string.h: Likewise.
  18035. * grub-core/kern/emu/main.c: Likewise.
  18036. * grub-core/gensymlist.sh: New file. Script for generating kernel
  18037. symbols file.
  18038. * grub-core/genmoddep.awk: Support new kernel_syms.lst format.
  18039. * grub-core/gentrigtables.c: Fix unused variable warnings.
  18040. * Makefile.in: Removed.
  18041. * conf/any-emu.rmk: Removed.
  18042. * conf/common.rmk: Removed.
  18043. * conf/i386-coreboot.rmk: Removed.
  18044. * conf/i386-efi.rmk: Removed.
  18045. * conf/i386-ieee1275.rmk: Removed.
  18046. * conf/i386-multiboot.rmk: Removed.
  18047. * conf/i386-pc.rmk: Removed.
  18048. * conf/i386-qemu.rmk: Removed.
  18049. * conf/i386.rmk: Removed.
  18050. * conf/mips-yeeloong.rmk: Removed.
  18051. * conf/mips.rmk: Removed.
  18052. * conf/powerpc-ieee1275.rmk: Removed.
  18053. * conf/sparc64-ieee1275.rmk: Removed.
  18054. * conf/tests.rmk: Removed.
  18055. * conf/x86-efi.rmk: Removed.
  18056. * conf/x86_64-efi.rmk: Removed.
  18057. * gendistlist.sh: Removed.
  18058. * geninitheader.sh: Removed.
  18059. * genkernsyms.sh.in: Removed.
  18060. * genmk.rb: Removed.
  18061. * gensymlist.sh.in: Removed.
  18062. * mkinstalldirs: Removed.
  18063. * boot: Moved ...
  18064. * grub-core/boot: ... to here.
  18065. * bus: Moved ...
  18066. * grub-core/bus: ... to here.
  18067. * commands: Moved ...
  18068. * grub-core/commands: ... to here.
  18069. * disk: Moved ...
  18070. * grub-core/disk: ... to here.
  18071. * efiemu: Moved ...
  18072. * grub-core/efiemu: ... to here.
  18073. * font: Moved ...
  18074. * grub-core/font: ... to here.
  18075. * fs: Moved ...
  18076. * grub-core/fs: ... to here.
  18077. * gencmdlist.sh: Moved ...
  18078. * grub-core/gencmdlist.sh: ... to here.
  18079. * genemuinit.sh: Moved ...
  18080. * grub-core/genemuinit.sh: ... to here.
  18081. * genemuinitheader.sh: Moved ...
  18082. * grub-core/genemuinitheader.sh: ... to here.
  18083. * genfslist.sh: Moved ...
  18084. * grub-core/genfslist.sh: ... to here.
  18085. * genhandlerlist.sh: Moved ...
  18086. * grub-core/genhandlerlist.sh: ... to here.
  18087. * genmoddep.awk: Moved ...
  18088. * grub-core/genmoddep.awk: ... to here.
  18089. * genmodsrc.sh: Moved ...
  18090. * grub-core/genmodsrc.sh: ... to here.
  18091. * genpartmaplist.sh: Moved ...
  18092. * grub-core/genpartmaplist.sh: ... to here.
  18093. * genparttoollist.sh: Moved ...
  18094. * grub-core/genparttoollist.sh: ... to here.
  18095. * genterminallist.sh: Moved ...
  18096. * grub-core/genterminallist.sh: ... to here.
  18097. * gentrigtables.c: Moved ...
  18098. * grub-core/gentrigtables.c: ... to here.
  18099. * genvideolist.sh: Moved ...
  18100. * grub-core/genvideolist.sh: ... to here.
  18101. * gettext: Moved ...
  18102. * grub-core/gettext: ... to here.
  18103. * gfxmenu: Moved ...
  18104. * grub-core/gfxmenu: ... to here.
  18105. * gnulib: Moved ...
  18106. * grub-core/gnulib: ... to here.
  18107. * hello: Moved ...
  18108. * grub-core/hello: ... to here.
  18109. * hook: Moved ...
  18110. * grub-core/hook: ... to here.
  18111. * io: Moved ...
  18112. * grub-core/io: ... to here.
  18113. * kern: Moved ...
  18114. * grub-core/kern: ... to here.
  18115. * lib: Moved ...
  18116. * grub-core/lib: ... to here.
  18117. * loader: Moved ...
  18118. * grub-core/loader: ... to here.
  18119. * mmap: Moved ...
  18120. * grub-core/mmap: ... to here.
  18121. * normal: Moved ...
  18122. * grub-core/normal: ... to here.
  18123. * partmap: Moved ...
  18124. * grub-core/partmap: ... to here.
  18125. * parttool: Moved ...
  18126. * grub-core/parttool: ... to here.
  18127. * script: Moved ...
  18128. * grub-core/script: ... to here.
  18129. * term: Moved ...
  18130. * grub-core/term: ... to here
  18131. * tests/example_functional_test.c: Moved ...
  18132. * grub-core/tests/example_functional_test.c: ... to here.
  18133. * tests/lib/functional_test.c: Moved ...
  18134. * grub-core/tests/lib/functional_test.c: ... to here.
  18135. * tests/lib/test.c: Moved ...
  18136. * grub-core/tests/lib/test.c: ... to here.
  18137. * video: Moved ...
  18138. * grub-core/video: ... to here.
  18139. 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
  18140. Replace --enable-grub-emu-modules with grub-emu-lite.
  18141. * kern/emu/cache.S: New file. Wrapper for $target_cpu specific
  18142. cache.S.
  18143. * include/grub/emu/misc.h (grub_emu_init): New prototype.
  18144. * kern/emu/full.c: New file. For grub-emu specific initialization.
  18145. * kern/emu/lite.c: New file. For grub-emu-lite initialization.
  18146. * kern/emu/main.c: Call initialization function grub_emu_init.
  18147. * Makefile.in: Include grub-emu-lite in install.
  18148. * commands/parttool.c: Use grub_no_autoload to differentiate
  18149. between grub-emu and grub-emu-lite.
  18150. * include/grub/misc.h: New variable grub_no_autoload.
  18151. * conf/any-emu.rmk: New rules for grub-emu-lite.
  18152. * configure.ac: Remove --enable-grub-emu-modules.
  18153. * genmk.rb: Cleanup unnecessary rules.
  18154. * include/grub/dl.h: Remove GRUB_NO_MODULES macro.
  18155. * normal/main.c: Don't load list files on grub-emu-lite.
  18156. * util/misc.c (grub_arch_sync_caches): Removed.
  18157. 2010-08-23 Colin Watson <cjwatson@ubuntu.com>
  18158. * kern/mips/startup.S (grub_prefix): Update comment to refer to
  18159. grub-mkimage rather than grub-mkelfimage.
  18160. * kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
  18161. 2010-08-22 Vladimir Serbinenko <phcoder@gmail.com>
  18162. * term/at_keyboard.c (grub_at_keyboard_getkey_noblock): Don't discard
  18163. a key after CapsLock or NumLock. It's just a qemu bug.
  18164. 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
  18165. * include/grub/usb.h (grub_usb_device): Add 'data' field back. It's
  18166. needed by libusb wrapper.
  18167. 2010-08-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
  18168. * docs/grub.texi (GNU/Hurd): Document booting GNU/Hurd.
  18169. 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
  18170. * loader/multiboot.c (grub_cmd_module): Don't unzip module if
  18171. --nounzip is passed.
  18172. 2010-08-20 Vladimir Serbinenko <phcoder@gmail.com>
  18173. USB hotunplugging and USB serial support.
  18174. * bus/usb/ohci.c (grub_ohci_transfer): Fill *actual and respect timeout.
  18175. * bus/usb/uhci.c (grub_free_queue): Compute *actual.
  18176. (grub_uhci_transfer): Respect timeout and set *actual.
  18177. * bus/usb/usb.c (grub_usb_device_initialize): Correctly skip fields of
  18178. non-standard length.
  18179. (grub_usb_device_attach): Autoload modules.
  18180. (GRUB_MOD_INIT): Set grub_term_poll_usb.
  18181. (GRUB_MOD_FINI): Unset grub_term_poll_usb.
  18182. * bus/usb/usbhub.c (grub_usb_hub): Replace speed with devices. All
  18183. users updated.
  18184. (grub_usb_add_hub): Fill nports and children.
  18185. (attach_root_port): Receive hub instead of controller.
  18186. All users updated. Fill hub->devices.
  18187. (grub_usb_root_hub): Allocate hub->devices.
  18188. (detach_device): New function.
  18189. (poll_nonroot_hub): Fill children and detach devices.
  18190. * bus/usb/usbtrans.c (grub_usb_bulk_readwrite): Accept timeout and
  18191. actual arguments. All users updated.
  18192. (grub_usb_bulk_read_extended): New function.
  18193. * bus/usb/serial/common.c: New file.
  18194. * bus/usb/serial/ftdi.c: Likewise.
  18195. * bus/usb/serial/pl2303.c: Likewise.
  18196. * commands/terminal.c (handle_command): Support wildcard.
  18197. * commands/usbtest.c: Output "Unknown" instead of empty string.
  18198. * conf/any-emu.rmk (pkglib_MODULES): Add usbserial_common.mod.
  18199. (usbserial_common_mod_SOURCES): New variable.
  18200. (usbserial_common_mod_CFLAGS): Likewise.
  18201. (usbserial_common_mod_LDFLAGS): Likewise.
  18202. (pkglib_MODULES): Add usbserial_pl2303.mod.
  18203. (usbserial_pl2303_mod_SOURCES): New variable.
  18204. (usbserial_pl2303_mod_CFLAGS): Likewise.
  18205. (usbserial_pl2303_mod_LDFLAGS): Likewise.
  18206. (pkglib_MODULES): Add usbserial_ftdi.mod.
  18207. (usbserial_ftdi_mod_SOURCES): New variable.
  18208. (usbserial_ftdi_mod_CFLAGS): Likewise.
  18209. (usbserial_ftdi_mod_LDFLAGS): Likewise.
  18210. (pkglib_MODULES): Add serial.mod.
  18211. (serial_mod_SOURCES): New variable.
  18212. (serial_mod_CFLAGS): Likewise.
  18213. (serial_mod_LDFLAGS): Likewise.
  18214. * conf/i386-pc.rmk: Likewise.
  18215. * conf/mips-yeeloong.rmk: Likewise.
  18216. * conf/i386.rmk (serial_mod_SOURCES): Add term/ns8250.c.
  18217. * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
  18218. * disk/usbms.c (first_available_slot): New variable.
  18219. (grub_usbms_attach): Don't reuse free slots due to potential cache
  18220. problems.
  18221. * include/grub/serial.h: Moved to ..
  18222. * include/grub/ns8250.h: ...this.
  18223. * include/grub/serial.h: New file.
  18224. * include/grub/term.h (grub_term_poll_usb): New variable.
  18225. * include/grub/terminfo.h (grub_terminfo_input_state): Pass term to
  18226. readkey. All users updated.
  18227. (grub_terminfo_output_state): Pass term to put.
  18228. * include/grub/usb.h (GRUB_USB_REQTYPE): New enum.
  18229. (grub_usb_controller_dev): Add timeout and actual arguments to
  18230. transfer. All users updated.
  18231. (grub_usb_interface): New field detach_data.
  18232. (grub_usb_device): New fields children and nports.
  18233. (grub_usb_ep_type_t): New type.
  18234. (grub_usb_get_ep_type): New function.
  18235. (grub_usb_bulk_read_extended): Likewise.
  18236. * include/grub/usbdesc.h (grub_usb_desc): New type.
  18237. * include/grub/usbserial.h: New file.
  18238. * include/grub/usbtrans.h (grub_usb_transaction): New field preceding.
  18239. * kern/term.c (grub_term_poll_usb): New variable.
  18240. (grub_getkey): Call grub_term_poll_usb if set.
  18241. (grub_checkkey): Likewise.
  18242. (grub_getkeystatus): Likewise.
  18243. * term/serial.c: Moved controller-specific parts to ...
  18244. * term/ns8250.c: ... here.
  18245. * term/serial.c: Mostly rewritten.
  18246. * term/usb_keyboard.c: Reorganised to use GET_REPORT only on attaching
  18247. according to spec.
  18248. 2010-08-20 Robert Millan <rmh@gnu.org>
  18249. Make kFreeBSD code more generic to support ext2fs as root, ufs as
  18250. a separate module and maybe other interesting combinations.
  18251. * util/grub.d/10_kfreebsd.in (load_kfreebsd_module): New function.
  18252. (kfreebsd_entry): Use load_kfreebsd_module() to load modules.
  18253. (kfreebsd_entry): Add generic filesystem module load routine.
  18254. Map GRUB `ext2' to kFreeBSD `ext2fs'.
  18255. 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
  18256. * commands/i386/pc/sendkey.c (keysym_table): Rename "numlock" to
  18257. "numcenter" (I misunderstood the purpose of this entry).
  18258. * docs/grub.texi (sendkey): Likewise.
  18259. 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
  18260. * commands/i386/pc/sendkey.c (options): Remove "keep" from all
  18261. status flag options; simply omitting the option is equivalent and
  18262. simpler. Rename "wait" to "pause". Rename "sysreq" to "sysrq".
  18263. (keysym_table): Rename "num5numlock" to "numlock".
  18264. (grub_cmd_sendkey): Reinitialise `andmask' and `ormask', so that we
  18265. can uniformly say that only the last of multiple `sendkey'
  18266. invocations has any effect.
  18267. * docs/grub.texi (sendkey): New section.
  18268. 2010-08-19 Colin Watson <cjwatson@ubuntu.com>
  18269. * commands/i386/pc/sendkey.c (options): Fix three typos.
  18270. 2010-08-19 Vladimir Serbinenko <phcoder@gmail.com>
  18271. Implement sendkey support.
  18272. * commands/i386/pc/sendkey.c: New file.
  18273. * conf/i386-pc.rmk (pkglib_MODULES): Add sendkey.mod.
  18274. (sendkey_mod_SOURCES): New variable.
  18275. (sendkey_mod_CFLAGS): Likewise.
  18276. (sendkey_mod_LDFLAGS): Likewise.
  18277. 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
  18278. * configure.ac: Move AM_INIT_AUTOMAKE after AC_CANONICAL_TARGET to
  18279. fix warnings from Autoconf.
  18280. 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
  18281. * acinclude.m4 (grub_ASM_USCORE): Use a more accurate grep pattern,
  18282. to avoid false positives with some assemblers that output things
  18283. like "someprefix_func" as part of their output.
  18284. 2010-08-15 Robert Millan <rmh@gnu.org>
  18285. * kern/emu/misc.c (grub_get_libzfs_handle): Handle libzfs_init()
  18286. errors.
  18287. * kern/emu/getroot.c (find_root_device_from_libzfs): Handle
  18288. grub_get_libzfs_handle() errors.
  18289. 2010-08-14 Robert Millan <rmh@gnu.org>
  18290. * kern/emu/misc.c (grub_find_zpool_from_dir): Abort function if
  18291. filesystem is not ZFS.
  18292. 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
  18293. Fix for misspelled color names defaulting to black/black (bug
  18294. reported by Doug Nazar)
  18295. * include/grub/normal.h (grub_parse_color_name_pair): Add return
  18296. status to prototype.
  18297. * normal/color.c (grub_parse_color_name_pair): Return failure
  18298. status.
  18299. (grub_env_write_color_normal): Ignore bad color names.
  18300. (grub_env_write_color_highlight): Likewise.
  18301. * normal/main.c (GRUB_MOD_INIT): Set default color names.
  18302. 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
  18303. "shift" command support to GRUB script.
  18304. * include/grub/script_sh.h (grub_script_shift): New prototype.
  18305. * script/execute.c (grub_script_shift): New function.
  18306. * script/main.c (grub_script_init): Register shift command.
  18307. (grub_script_fini): Unregister shift command.
  18308. * util/grub-script-check.c (grub_script_cmd_shift): New function.
  18309. * tests/grub_script_shift.in: New testcase.
  18310. * conf/tests.rmk: Rules for new testcase.
  18311. 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
  18312. "continue" command support to GRUB script.
  18313. * script/execute.c (grub_script_execute_cmdwhile): Continue support.
  18314. (grub_script_break): Continue support.
  18315. * script/main.c (grub_script_init): Register continue command.
  18316. (grub_script_fini): Unregister continue command.
  18317. * tests/grub_script_continue.in: New testcase.
  18318. * conf/tests.rmk: Rules for new testcase.
  18319. 2010-08-12 BVK Chaitanya <bvk@dbook>
  18320. "break" command support to GRUB script.
  18321. * conf/common.rmk: Rule updates to grub-script-check.
  18322. * include/grub/misc.h (grub_min): New function.
  18323. * include/grub/script_sh.h (grub_script_init): New prototype.
  18324. (grub_script_fini): New prototype.
  18325. (grub_script_break): New prototype.
  18326. * script/main.c (grub_script_init): New function.
  18327. (grub_script_fini): New function.
  18328. * script/execute.c (grub_script_break): New function.
  18329. * normal/main.c: Calls to grub_script_{init,fini}.
  18330. * util/grub-script-check.c (grub_script_break): New function.
  18331. * tests/grub_script_break.in: New testcase.
  18332. * conf/tests.rmk: Rules for new test case.
  18333. 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
  18334. Function parameters support to GRUB script.
  18335. * script/yylex.l (VARIABLE): Regular expression update.
  18336. * script/function.c (grub_script_function_call): Moved ...
  18337. * script/execute.c (grub_script_function_call): ... to here.
  18338. (grub_script_execute_arglist_to_argv): Removed.
  18339. (grub_script_arglist_to_argv): New function.
  18340. * script/argv.c: New file.
  18341. (grub_script_argv_free): New function.
  18342. (grub_script_argv_next): Likewise.
  18343. (grub_script_argv_append): Likewise.
  18344. (grub_script_argv_split_append): Likewise.
  18345. * include/grub/script_sh.h (grub_script_argv): New struct.
  18346. (grub_script_argv_free): New function.
  18347. (grub_script_argv_next): Likewise.
  18348. (grub_script_argv_append): Likewise.
  18349. (grub_script_argv_split_append): Likewise.
  18350. * conf/common.rmk (normal.mod): New source script/argv.c.
  18351. * tests/grub_script_echo1.in: More tests.
  18352. * tests/grub_script_vars1.in: Likewise.
  18353. * tests/grub_script_functions.in: New test case.
  18354. * conf/tests.rmk: Rules for new testcase.
  18355. 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
  18356. Remove grub_script_cmdblock struct.
  18357. * include/grub/script_sh.h: Remove grub_script_cmdblock.
  18358. * script/parser.y: Likewise.
  18359. * script/execute.c: Rename cmdblock suffix to cmdlist.
  18360. * script/script.c: Likewise.
  18361. * util/grub-script-check.c: Likewise.
  18362. 2010-08-11 Yves Blusseau <blusseau@zetam.org>
  18363. * .bzrignore: add grub-macho2img
  18364. 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
  18365. * kern/i386/qemu/init.c (grub_qemu_init_cirrus): Fix compilation error.
  18366. 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
  18367. Remove the dump of sm712 initialisation sequence.
  18368. * include/grub/pci.h (GRUB_PCI_CLASS_SUBCLASS_VGA): New const.
  18369. * include/grub/vga.h (GRUB_VGA_IO_ARX_READ): New register.
  18370. (GRUB_VGA_IO_MISC_WRITE): Likewise.
  18371. (GRUB_VGA_CR_*): Added many registers.
  18372. (GRUB_VGA_SR_*): Likewise.
  18373. (GRUB_VGA_GR_*): Likewise.
  18374. (grub_vga_write_arx): New function.
  18375. (grub_video_hw_config): New struct.
  18376. (grub_vga_set_geometry): New function.
  18377. * kern/i386/qemu/init.c (load_palette): Use grub_vga_write_arx and
  18378. GRUB_PCI_CLASS_SUBCLASS_VGA.
  18379. * video/cirrus.c (grub_video_cirrus_setup): Use grub_vga_set_geometry.
  18380. * video/sm712.c (grub_sm712_write_reg): New function
  18381. (grub_sm712_read_reg): Likewise.
  18382. (grub_sm712_sr_write): Likewise.
  18383. (grub_sm712_gr_write): Likewise.
  18384. (grub_sm712_cr_write): Likewise.
  18385. (grub_sm712_write_arx): Likewise.
  18386. (grub_sm712_cr_shadow_write): Likewise.
  18387. (grub_sm712_write_dda_lookup): Likewise.
  18388. (grub_video_sm712_setup): Initialise the video rather then
  18389. blindly replay the dump.
  18390. (main) [TEST]: Add a routine to be able to compile as standalone for
  18391. tests.
  18392. * video/sm712_init.c (sm712_init): Removed.
  18393. (sm712_sr_seq1): New array.
  18394. (sm712_sr_seq2): Likewise.
  18395. 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
  18396. * include/grub/vga.h: Add missing grub/pci.h include.
  18397. 2010-08-10 Yves Blusseau <blusseau@zetam.org>
  18398. * util/grub-macho2img.c (main): fix typo
  18399. 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
  18400. * include/grub/vga.h (grub_vga_gr_write): Add GRUB_MACHINE_PCI_IO_BASE.
  18401. (grub_vga_gr_read): Likewise.
  18402. (grub_vga_cr_write): Likewise.
  18403. (grub_vga_cr_read): Likewise.
  18404. (grub_vga_sr_write): Likewise.
  18405. (grub_vga_sr_read): Likewise.
  18406. (grub_vga_palette_read): Likewise.
  18407. (grub_vga_palette_write): Likewise.
  18408. * video/sm712.c (GRUB_SM712_REG_BASE): New definition.
  18409. (grub_sm712_sr_read): New function.
  18410. (grub_video_sm712_setup): Use grub_vga_sr_write and grub_sm712_sr_read.
  18411. * video/sm712_init.c (sm712_init): Substract GRUB_MACHINE_PCI_IO_BASE.
  18412. 2010-08-09 Robert Millan <rmh@gnu.org>
  18413. * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Filter
  18414. out unused variables on non-ZFS build.
  18415. 2010-08-08 Robert Millan <rmh@gnu.org>
  18416. Fix path generation for sub-filesystems in ZFS.
  18417. * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Add
  18418. missing slash.
  18419. 2010-08-08 Robert Millan <rmh@gnu.org>
  18420. * util/grub-fstest.c (read_file, cmd_cmp): Improve error message.
  18421. 2010-08-08 Robert Millan <rmh@gnu.org>
  18422. * util/grub.d/10_kfreebsd.in: When files required for ZFS do not
  18423. exist, issue a proper error message (rely on `ls' for translated
  18424. strings).
  18425. 2010-08-08 Robert Millan <rmh@gnu.org>
  18426. Fix grub-probe invocation.
  18427. * util/grub.d/10_kfreebsd.in: s/label/fs_label/g.
  18428. 2010-08-04 Robert Millan <rmh@gnu.org>
  18429. * configure.ac: Remove checks for getfsstat() and getmntany().
  18430. Add checks for `<sys/param.h>' and `<sys/mount.h>'.
  18431. * kern/emu/misc.c [HAVE_GETMNTANY]: Remove `<sys/mnttab.h>'.
  18432. [HAVE_SYS_PARAM_H]: Include `<sys/param.h>'.
  18433. [HAVE_SYS_MOUNT_H]: Include `<sys/mount.h>'.
  18434. [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_mount_point_from_dir): Remove
  18435. function.
  18436. (grub_find_zpool_from_dir): Use statfs() instead of indirect matching
  18437. via find_mount_point_from_dir() and getfsstat() / getmntany().
  18438. 2010-08-04 Robert Millan <rmh@gnu.org>
  18439. * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
  18440. (grub_find_zpool_from_mount_point): Merge into ...
  18441. (grub_find_zpool_from_dir): ... this.
  18442. * kern/emu/misc.c: Likewise.
  18443. * kern/emu/misc.c
  18444. (grub_make_system_path_relative_to_its_root): Replace
  18445. grub_find_mount_point_from_dir() / grub_find_zpool_from_mount_point()
  18446. with grub_find_zpool_from_dir().
  18447. * kern/emu/getroot.c (find_root_device_from_libzfs): Likewise.
  18448. 2010-08-04 Robert Millan <rmh@gnu.org>
  18449. Support OpenSolaris in ZFS device resolution.
  18450. * configure.ac: Check for getmntany().
  18451. * kern/emu/misc.c [HAVE_GETMNTANY]: Include `<sys/mnttab.h>'.
  18452. [HAVE_GETMNTANY] (grub_find_zpool_from_mount_point): Add OpenSolaris
  18453. support.
  18454. 2010-08-03 Robert Millan <rmh@gnu.org>
  18455. Fix grub-emu build.
  18456. * include/grub/util/misc.h: Move `<grub/util/libzfs.h>' to ...
  18457. * include/grub/emu/misc.h: ... here.
  18458. * include/grub/util/misc.h (grub_get_libzfs_handle): Move function ...
  18459. * include/grub/emu/misc.h (grub_get_libzfs_handle): ... here.
  18460. * util/misc.c: Remove `<grub/util/libzfs.h>'.
  18461. [HAVE_LIBZFS] (libzfs_handle, fini_libzfs)
  18462. (grub_get_libzfs_handle): Move to ...
  18463. * kern/emu/misc.c [HAVE_LIBZFS] (__libzfs_handle, fini_libzfs)
  18464. (grub_get_libzfs_handle): ... here.
  18465. 2010-08-03 BVK Chaitanya <bvk.groups@gmail.com>
  18466. * script/execute.c (grub_script_execute_cmdline): Check for NULL
  18467. as command name case.
  18468. 2010-08-02 Colin Watson <cjwatson@ubuntu.com>
  18469. * disk/raid.c (insert_array): Select unique numbers for named arrays
  18470. as well, for use as keys in the disk cache.
  18471. 2010-08-01 Robert Millan <rmh@gnu.org>
  18472. * util/grub.d/10_kfreebsd.in: Initialize ${kfreebsd_device} as the
  18473. kFreeBSD device name, except on ZFS where the filesystem label is
  18474. used.
  18475. (kfreebsd_entry): On ZFS root, load `opensolaris.ko', `zfs.ko' and
  18476. `/boot/zfs/zpool.cache'.
  18477. Set mountfrom kernel variable using ${kfreebsd_device}.
  18478. 2010-08-01 Robert Millan <rmh@gnu.org>
  18479. Make it even harder to use uninitialized `libzfs_handle' (and
  18480. make the interface a bit simpler).
  18481. * include/grub/util/misc.h (grub_util_init_libzfs)
  18482. (libzfs_handle): Remove.
  18483. (grub_get_libzfs_handle): New prototype.
  18484. * util/misc.c [HAVE_LIBZFS] (libzfs_handle): Add `static'
  18485. attribute.
  18486. (grub_util_init_libzfs): Remove.
  18487. (grub_get_libzfs_handle): New function.
  18488. * kern/emu/getroot.c (find_root_device_from_libzfs): Use
  18489. grub_get_libzfs_handle() to obtain a libzfs handle instead of
  18490. accessing `libzfs_handle' directly.
  18491. 2010-08-01 Robert Millan <rmh@gnu.org>
  18492. * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
  18493. (grub_find_zpool_from_mount_point): New function prototypes.
  18494. * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
  18495. * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
  18496. * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
  18497. * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
  18498. `static' attribute.
  18499. * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
  18500. finding zpool from mount point into ...
  18501. * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
  18502. * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
  18503. requested path is part of a ZFS pool, use
  18504. grub_find_zpool_from_mount_point() to detect its filesystem name,
  18505. and generate a path with `/fsname@path' syntax.
  18506. 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
  18507. * include/grub/util/libzfs.h (libzfs_init): Set argument list to
  18508. (void) rather than () so that this is a proper prototype.
  18509. 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
  18510. * lib/arg.c (grub_arg_show_help): Add the necessary spacing.
  18511. 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
  18512. * kern/emu/getroot.c (find_mount_point_from_dir): Compile only if
  18513. [HAVE_LIBZFS && HAVE_LIBNVPAIR]
  18514. 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
  18515. * util/grub-mkrescue.in: Remove ${efi_dir} after building efi.img.
  18516. 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
  18517. * script/yylex.l (NAME): Remove [:digit:], redundant with [:alnum:].
  18518. 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
  18519. * docs/grub.texi (Simple configuration): Document GRUB_CMDLINE_XEN
  18520. and GRUB_CMDLINE_XEN_DEFAULT. Recommend setting
  18521. GRUB_GFXPAYLOAD_LINUX=text rather than unsetting it in order to
  18522. disable gfxpayload.
  18523. (Shell-like scripting): Add real content.
  18524. (Serial terminal): Suggest `terminal_input serial; terminal_output
  18525. serial' rather than putting the two commands on separate lines,
  18526. since console input will be inoperative after the first command.
  18527. (menuentry): Document --class, --users, and --hotkey options.
  18528. (terminfo): Describe what `visually-ordered UTF-8' means (thanks,
  18529. Vladimir Serbinenko).
  18530. 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
  18531. 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
  18532. * kern/misc.c (grub_memset): Optimise to reduce cache stalls.
  18533. 2010-08-01 Robert Millan <rmh@gnu.org>
  18534. * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
  18535. (grub_find_zpool_from_mount_point): New function prototypes.
  18536. * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
  18537. * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
  18538. * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
  18539. * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
  18540. `static' attribute.
  18541. * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
  18542. finding zpool from mount point into ...
  18543. * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
  18544. * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
  18545. requested path is part of a ZFS pool, use
  18546. grub_find_zpool_from_mount_point() to detect its filesystem name,
  18547. and generate a path with `/fsname@path' syntax.
  18548. 2010-08-01 Robert Millan <rmh@gnu.org>
  18549. Prevent accidental use of uninitialized libzfs_handle.
  18550. * util/grub-probe.c (main): Move grub_util_init_libzfs() call to ...
  18551. * kern/emu/getroot.c (find_root_device_from_libzfs): ... here.
  18552. * util/misc.c (grub_util_init_libzfs): Make this function idempotent.
  18553. 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
  18554. * util/grub.d/20_linux_xen.in: Don't use UUID for LVM root (matching
  18555. util/grub.d/10_linux.in). Fixes Debian bug #591093.
  18556. 2010-08-01 Robert Millan <rmh@gnu.org>
  18557. * kern/emu/getroot.c: Include `<grub/util/misc.h>'.
  18558. 2010-07-31 Robert Millan <rmh@gnu.org>
  18559. * util/grub.d/10_kfreebsd.in: Make module handling more generic.
  18560. 2010-07-31 Robert Millan <rmh@gnu.org>
  18561. * kern/emu/misc.c: Add missing license header.
  18562. 2010-07-31 Robert Millan <rmh@gnu.org>
  18563. * configure.ac: Check for `libzfs.h' and `libnvpair.h'.
  18564. * include/grub/util/libnvpair.h: Include `<config.h>'.
  18565. [HAVE_LIBNVPAIR_H]: Include `<libnvpair.h>' instead of
  18566. declaring libnvpair prototypes ourselves.
  18567. * include/grub/util/libzfs.h: Include `<config.h>'.
  18568. [HAVE_LIBZFS_H]: Include `<libzfs.h>' instead of
  18569. declaring libzfs prototypes ourselves.
  18570. (libzfs_handle): Moved to ...
  18571. * include/grub/util/misc.h (libzfs_handle): ... here.
  18572. Include `<grub/util/libzfs.h>'.
  18573. 2010-07-30 Robert Millan <rmh@gnu.org>
  18574. * include/grub/emu/misc.h: Add missing license header.
  18575. 2010-07-30 Robert Millan <rmh@gnu.org>
  18576. Enable `grub-probe -t device' resolution on ZFS.
  18577. * configure.ac: Check for getfsstat(), libzfs and libnvpair.
  18578. * include/grub/util/libnvpair.h: New file.
  18579. * include/grub/util/libzfs.h: New file.
  18580. * kern/emu/getroot.c: Include `<assert.h>' and `<error.h>'.
  18581. [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Include `<grub/util/libzfs.h>' and
  18582. `<grub/util/libnvpair.h>'.
  18583. [HAVE_GETFSSTAT]: Include `<sys/mount.h>'.
  18584. (find_mount_point_from_dir): New static function.
  18585. [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_root_device_from_libzfs): New
  18586. function.
  18587. [HAVE_LIBZFS && HAVE_LIBNVPAIR] (grub_guess_root_device): Use
  18588. find_root_device_from_libzfs() before ressorting to find_root_device().
  18589. * include/grub/util/misc.h (grub_util_init_libzfs): New function
  18590. prototype.
  18591. * util/misc.c: Include `<grub/util/libzfs.h>'.
  18592. (grub_util_init_libzfs): New function.
  18593. [HAVE_LIBZFS] (libzfs_handle): New global variable.
  18594. [HAVE_LIBZFS] (fini_libzfs): New static function.
  18595. (grub_util_init_libzfs): New function.
  18596. * util/grub-probe.c (main): Call grub_util_init_libzfs().
  18597. 2010-07-30 Robert Millan <rmh@gnu.org>
  18598. * include/grub/emu/misc.h (grub_make_system_path_relative_to_its_root)
  18599. (xmalloc, xrealloc, xstrdup, xasprintf): Add
  18600. `warn_unused_result' attribute.
  18601. * include/grub/misc.h (grub_strdup, grub_strndup, grub_strlen)
  18602. (grub_xasprintf, grub_xvasprintf): Likewise.
  18603. * include/grub/emu/misc.h (xasprintf): Remove duplicate prototype.
  18604. 2010-07-29 Robert Millan <rmh@gnu.org>
  18605. * util/grub-probe.c (PRINT_FS_LABEL): New enum value.
  18606. (probe): Handle `PRINT_FS_LABEL'.
  18607. (main): Handle `-t fs_label'.
  18608. 2010-07-29 Robert Millan <rmh@gnu.org>
  18609. * configure.ac: Remove grub-mkisofs checks.
  18610. 2010-07-28 Vladimir Serbinenko <phcoder@gmail.com>
  18611. * util/ieee1275/grub-install.in: Don't use empty grub_device.
  18612. Reported by: Lennart Sorensen.
  18613. 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
  18614. * util/grub.d/00_header.in: Remove compatibility with terminal.mod
  18615. prior to terminal_input/terminal_output separation. It's been over 1.5
  18616. years and those versions weren't widely deployed.
  18617. 2010-07-22 Colin Watson <cjwatson@ubuntu.com>
  18618. * disk/raid.c (insert_array): Don't count named arrays when looking
  18619. for unused array numbers.
  18620. Reported and tested by: Michael Guntsche.
  18621. 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
  18622. * bus/usb/emu/usb.c (grub_usb_poll_devices): Add a dummy
  18623. implementation of this so that grub-emu links again, with a note
  18624. that this should support hotplugging in the future.
  18625. 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
  18626. * kern/emu/getroot.c (grub_util_get_grub_dev): Use xasprintf.
  18627. 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
  18628. * disk/loopback.c (grub_cmd_loopback): Don't leak a grub_file_t
  18629. handle on failure.
  18630. (grub_loopback_close): Remove empty function.
  18631. (grub_loopback_dev): Remove close method.
  18632. 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
  18633. Disable EFI cursor when the EFI console becomes inactive.
  18634. * term/efi/console.c (grub_efi_console_init): New function.
  18635. (grub_efi_console_fini): New function.
  18636. (grub_console_term_output): Register init and fini methods.
  18637. 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
  18638. * tests/util/grub-shell-tester.in: Remove bashism and declare as
  18639. sh script.
  18640. 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
  18641. * disk/loopback.c (grub_loopback): Replace filename with file.
  18642. (delete_loopback): Handle new semantics.
  18643. (grub_cmd_loopback): Likewise.
  18644. (grub_loopback_iterate): Likewise.
  18645. (grub_loopback_close): Likewise.
  18646. 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
  18647. * util/i386/efi/grub-install.in: Revert to platform-specific behaviour
  18648. with -p "".
  18649. Reported by: Tito Keitel.
  18650. 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
  18651. * docs/grub.texi (Naming convention): Document new naming convention.
  18652. 2010-07-20 Vadim Solomin <vadic052@gmail.com>
  18653. 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
  18654. Generate device.map in something closer to the old ordering.
  18655. * util/deviceiter.c (struct device): New declaration.
  18656. (compare_file_names): Rename to ...
  18657. (compare_devices): ... this. Sort by kernel name in preference to
  18658. the stable by-id name, but keep the latter as a fallback comparison.
  18659. Update header comment.
  18660. (grub_util_iterate_devices) [__linux__]: Construct and sort an array
  18661. of `struct device' rather than of plain file names.
  18662. 2010-07-20 Thomas Frauendorfer <Thomas.Frauendorfer@googlemail.com>
  18663. * lib/i386/relocator_asm.S [! __x86_64__]: Don't try to disable amd64
  18664. on i386.
  18665. 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
  18666. * commands/acpi.c (setup_common_tables): Use sizeof instead of
  18667. hardcoding size.
  18668. (setv1table): Likewise.
  18669. 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
  18670. * disk/raid.c (insert_array): Use md/%s to name mdadm 1.x devices,
  18671. removing the homehost if present.
  18672. * kern/emu/getroot.c (get_mdadm_name) [__linux__]: New function.
  18673. (grub_util_get_grub_dev): Use md/%s to name mdadm 1.x devices,
  18674. removing the homehost if present.
  18675. (grub_util_get_grub_dev) [__linux__]: Get the array name from mdadm
  18676. if possible.
  18677. * util/i386/pc/grub-setup.c (main): Handle md/* devices.
  18678. * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Add start_sector
  18679. parameter. Set its pointer target to 0.
  18680. * disk/mdraid_linux.c (grub_mdraid_detect): Add start_sector
  18681. parameter. Set its pointer target to 0 for 0.9 metadata, or to the
  18682. `data_offset' value from the superblock for 1.x metadata.
  18683. * disk/raid.c (grub_raid_read): Offset reads by the start sector of
  18684. data on the device.
  18685. (insert_array): Record the start sector of data on the device.
  18686. (grub_raid_register): Pass start_sector parameters to
  18687. grub_raid_list->detect and insert_array.
  18688. * include/grub/raid.h (struct grub_raid_array): Add start_sector
  18689. member.
  18690. (struct grub_raid): Add start_sector parameter to `detect'.
  18691. * disk/mdraid_linux.c (struct grub_raid_super_1x): Remove
  18692. __attribute__ ((packed)), leaving a comment.
  18693. (grub_mdraid_detect): Split out 0.9 and 1.x detection to ...
  18694. (grub_mdraid_detect_09): ... here and ...
  18695. (grub_mdraid_detect_1x): ... here.
  18696. 2010-07-20 Peter Henn <peter.henn@web.de>
  18697. * disk/mdraid_linux.c (grub_mdraid_detect): Fix calculation of 1.x
  18698. chunk size and disk size, which are already given as sector counts
  18699. as distinct from the 0.90 units. Fetch the correct device number
  18700. from the role table instead of using the table index.
  18701. 2010-07-20 Felix Zielcke <fzielcke@z-51.de>
  18702. * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Set array->name to NULL.
  18703. * disk/mdraid_linux.c (grub_raid_super_1x): New structure.
  18704. (WriteMostly1): New macro.
  18705. Set array->name to NULL for metadata format 0.90. Add support for
  18706. metadata 1.x. Fix some comments.
  18707. * disk/raid.c (): Add support for name based RAID arrays. Fix a
  18708. few comments.
  18709. * util/getroot.c (grub_util_get_grub_dev): Add support for
  18710. /dev/md/name style devices.
  18711. 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
  18712. * .bzrignore: Ignore 20_linux_xen.
  18713. 2010-07-17 Colin Watson <cjwatson@ubuntu.com>
  18714. * util/import_unicode.py: Remove unnecessary imports.
  18715. 2010-07-17 Aleš Nesrsta <starous@volny.cz>
  18716. Hotplugging and USB hub support.
  18717. * bus/usb/ohci.c (grub_ohci_td): Add convenience fields.
  18718. (grub_ohci): Likewise.
  18719. (GRUB_OHCI_REG_CONTROL_BULK_ENABLE): New definition.
  18720. (GRUB_OHCI_REG_CONTROL_CONTROL_ENABLE): Likewise.
  18721. (GRUB_OHCI_RESET_CONNECT_CHANGE): Likewise.
  18722. (GRUB_OHCI_CTRL_EDS): Likewise.
  18723. (GRUB_OHCI_BULK_EDS): Likewise.
  18724. (GRUB_OHCI_TDS): Likewise.
  18725. (GRUB_OHCI_ED_ADDR_MASK): Likewise.
  18726. (grub_ohci_ed_phys2virt): New function.
  18727. (grub_ohci_virt_to_phys): Likewise.
  18728. (grub_ohci_td_phys2virt): Likewise.
  18729. (grub_ohci_td_virt2phys): Likewise.
  18730. (grub_ohci_pci_iter): Allocate memory and don't wait for stable
  18731. attachment.
  18732. (grub_ohci_find_ed): New function.
  18733. (grub_ohci_alloc_td): Likewise.
  18734. (grub_ohci_free_td): Likewise.
  18735. (grub_ohci_free_tds): Likewise.
  18736. (grub_ohci_transfer): Use previously allocated memory.
  18737. (grub_ohci_portstatus): Reset status changed bit.
  18738. (grub_ohci_detect_dev): Supply status changed.
  18739. (grub_ohci_fini_hw): Free memory.
  18740. (grub_ohci_restore_hw): Reallocate memory.
  18741. * bus/usb/uhci.c (grub_uhci_portstatus): Don't reset on disable.
  18742. Reset status change.
  18743. (grub_uhci_detect_dev): Supply status_change.
  18744. * bus/usb/usb.c (attach_hooks): New var.
  18745. (grub_usb_device_attach): New function.
  18746. (grub_usb_register_attach_hook_class): Likewise.
  18747. (grub_usb_unregister_attach_hook_class): Likewise.
  18748. * bus/usb/usbhub.c (grub_usb_hub_add_dev): Handle errors correctly.
  18749. (grub_usb_add_hub): Reset connection changed bit.
  18750. (attach_root_port): New function.
  18751. (grub_usb_root_hub): Likewise.
  18752. (poll_nonroot_hub): Likewise.
  18753. (grub_usb_poll_devices): Likewise.
  18754. * commands/usbtest.c (grub_cmd_usbtest): Poll devices before listing.
  18755. * disk/usbms.c (grub_usbms_open): Use device hooks.
  18756. (grub_usbms_iterate) :Poll devices.
  18757. (grub_usbms_finddevs): Split into ...
  18758. (grub_usbms_attach): ... this ...
  18759. (grub_usbms_attach): ... and this.
  18760. * include/grub/usb.h (grub_usb_controller_dev): Supply status_changed
  18761. in detect_dev.
  18762. (grub_usb_interface): New fields attached and detach_hook.
  18763. (grub_usb_attach_hook_class): New type.
  18764. (grub_usb_attach_desc): New struct.
  18765. (grub_usb_register_attach_hook_class): New function.
  18766. (grub_usb_unregister_attach_hook_class): Likewise.
  18767. (grub_usb_poll_devices): Likewise.
  18768. (grub_usb_device_attach): Likewise.
  18769. * include/grub/usbtrans.h (GRUB_USB_HUB_FEATURE_C_CONNECTED): New const.
  18770. (GRUB_USB_HUB_STATUS_C_CONNECTED): Likewise.
  18771. 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
  18772. * include/grub/bsdlabel.h (GRUB_PC_PARTITION_BSD_LABEL_WHOLE_DISK_PARTITION): New definition.
  18773. * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Use FreeBSD
  18774. delta determination style. Works with most NetBSD partitions too.
  18775. 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
  18776. * kern/partition.c [GRUB_UTIL]: Add missing util/misc.h inclusion.
  18777. * partmap/bsdlabel.c [GRUB_UTIL]: Likewise.
  18778. 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
  18779. * disk/scsi.c (grub_scsi_open): Fix incorrect pointer dereference.
  18780. 2010-07-14 Anton Blanchard <anton@samba.org>
  18781. * loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Do not reject
  18782. ET_DYN files.
  18783. 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
  18784. * Makefile.in: Use the substituted @USE_NLS@ instead of ENABLE_NLS.
  18785. 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
  18786. * kern/partition.c (grub_partition_check_containment): New function to
  18787. check that a partition is physically contained in a parent. Since
  18788. offsets are relative (and non-negative), this reduces to checking that
  18789. the partition ends before its parent.
  18790. (grub_partition_map_probe): Discard out-of-range sub-partitions.
  18791. (grub_partition_iterate): Likewise.
  18792. * include/grub/partition.h (grub_partition_map): Slightly more detailed
  18793. comments.
  18794. * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Discard
  18795. partitions that start before their parent, and add debug printfs.
  18796. 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
  18797. * Makefile.in (.SUFFIX): Spell correctly, as ...
  18798. (.SUFFIXES): ... this. Fixes bug where `make foo' (where foo is a
  18799. bare module name without `.mod', e.g. `test') tried to invoke a
  18800. Modula-2 compiler.
  18801. 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
  18802. * README: Point to the Info manual.
  18803. 2010-07-13 Jiro SEKIBA <jir@unicus.jp>
  18804. * fs/nilfs2.c: fix macro NILFS_2ND_SUPER_BLOCK to calculate
  18805. 2nd superblock position from partition size.
  18806. 2010-07-10 Colin Watson <cjwatson@ubuntu.com>
  18807. * Makefile.in (MAINTAINER_CLEANFILES): Remove
  18808. unicode/UnicodeData.txt, unicode/BidiMirroring.txt, and
  18809. unicode/ArabicShaping.txt again; these are inputs to autogen.sh, not
  18810. outputs.
  18811. 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
  18812. Restructure SCSI .id handling.
  18813. Reported and tested by: Aleš Nesrsta.
  18814. * disk/ata.c (grub_atapi_close): Removed. All users updated.
  18815. (grub_atapi_dev): Changed .name to "ata". New field .id.
  18816. * disk/usbms.c (grub_usbms_close): Removed. All users updated.
  18817. (grub_usbms_dev): New field .id.
  18818. * disk/scsi.c (grub_scsi_iterate): Generate name.
  18819. (grub_scsi_open): Parse name.
  18820. * include/grub/scsi.h (grub_make_scsi_id): New function.
  18821. (grub_scsi_dev): Change iterate and open to number instead of naming
  18822. busses. All users updated.
  18823. (grub_scsi): Remove name. Add .bus.
  18824. 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
  18825. * commands/help.c (grub_cmd_help): Fix a typo.
  18826. 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
  18827. * normal/term.c (put_glyphs_terminal): Fix state->num_lines counting.
  18828. Reported and tested by: Colin Watson.
  18829. 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
  18830. * util/grub-mkrescue.in: Don't use tar GNU-ism since it's not necessary
  18831. in this context.
  18832. 2010-07-07 Vladimir Serbinenko <phcoder@gmail.com>
  18833. * tests/util/grub-shell.in: Remove bashisms and declare as sh script.
  18834. 2010-07-07 Colin Watson <cjwatson@ubuntu.com>
  18835. * term/gfxterm.c (grub_gfxterm_background_image_cmd): Fix
  18836. indentation.
  18837. 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
  18838. * conf/common.rmk (grub_probe_SOURCES): Add disk/raid5_recover.c
  18839. and disk/raid6_recover.c.
  18840. * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
  18841. * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
  18842. 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
  18843. * term/gfxterm.c (repaint_schedulded): Rename to ...
  18844. (repaint_scheduled): ... this. Update all callers.
  18845. (repaint_was_schedulded): Rename to ...
  18846. (repaint_was_scheduled): ... this. Update all callers.
  18847. 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
  18848. * util/deviceiter.c (grub_util_iterate_devices): Skip MD devices,
  18849. which we expect to be handled by upper layers.
  18850. 2010-07-06 BVK Chaitanya <bvk.groups@gmail.com>
  18851. * bus/usb/usbhub.c: #include time.h header.
  18852. 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
  18853. * fs/reiserfs.c (grub_reiserfs_iterate_dir): Zero out first byte of
  18854. entry_name also for entries without stat blocks (e.g. ".."); fixes
  18855. corruption of the first entry in a directory.
  18856. 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
  18857. * util/grub.d/00_header.in: Process GRUB_THEME and GRUB_BACKGROUND
  18858. after setting gfxterm as the active terminal. GRUB_BACKGROUND
  18859. doesn't work otherwise.
  18860. 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
  18861. * docs/grub.texi (Features): Update list of supported file systems.
  18862. (GNU/Linux): Update for GRUB 2.
  18863. (Serial terminal): Remove mention of --disable-serial, which was a
  18864. GRUB Legacy configure option. Update instructions to use
  18865. `terminal_input' and `terminal_output' rather than `terminal'.
  18866. (Vendor power-on keys): Copy-edit. Add cross-references to `Simple
  18867. configuration' and `Installing GRUB using grub-install'.
  18868. (Menu entry editor): Update for GRUB 2.
  18869. (terminfo): Add vt100-color, ieee1275, and dumb terminal types.
  18870. Document new -a, -u, and -v options.
  18871. (initrd): New section.
  18872. (initrd16): New section.
  18873. (linux): New section.
  18874. (linux16): New section.
  18875. (search): The `var' argument to `--set' is optional.
  18876. (GRUB only offers a rescue shell): Go into a little more detail on
  18877. drive ordering.
  18878. 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
  18879. * Makefile.in: Set LINGUAS to empty if ENABLE_NLS is undefined.
  18880. 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
  18881. * Makefile.in (MAINTAINER_CLEANFILES): Add unicode/UnicodeData.txt,
  18882. unicode/BidiMirroring.txt, unicode/ArabicShaping.txt, and unidata.c.
  18883. 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
  18884. * util/i386/pc/grub-setup.c (setup): Rename prefix to
  18885. install_prefix, in line with install_dos_part and install_bsd_part.
  18886. Add new prefix variable, which is copied to install_prefix after
  18887. comparing core.img in memory with the one read from disk in the
  18888. no-embedding case, and use that rather than overwriting
  18889. install_prefix immediately when installing to a partition.
  18890. Fixes Debian bug #586621; based on patches by Matt Kraai and M. Vefa
  18891. Bicakci.
  18892. 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
  18893. * configure.ac: Avoid == in test command, it's not portable.
  18894. * util/grub.d/30_os-prober.in: Likewise.
  18895. 2010-07-04 Colin Watson <cjwatson@ubuntu.com>
  18896. * kern/emu/getroot.c [__GNU__]: Include <sys/mman.h> for munmap.
  18897. 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
  18898. * util/i386/pc/grub-setup.c (setup): Do not embed when there are
  18899. multiple (top-level) partmaps.
  18900. 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
  18901. * util/i386/efi/grub-install.in: Don't use empty grub_device.
  18902. Reported by: Tino Keitel.
  18903. 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
  18904. Bidi and diacritics support.
  18905. * Makefile.in (widthspec.bin): New target.
  18906. (widthspec.h): Likewise.
  18907. (TARGET_CFLAGS): Add -DHAVE_UNIFONT_WIDTHSPEC=1 if font was available.
  18908. * autogen.sh: Generate unidata.c.
  18909. * commands/cat.c (grub_cmd_cat): Don't use grub_putchar.
  18910. * commands/ls.c (grub_ls_list_devices): Likewise.
  18911. (grub_ls_list_files): Likewise.
  18912. * commands/minicmd.c (grub_mini_cmd_cat): Likewise.
  18913. (grub_mini_cmd_lsmod): Likewise.
  18914. * commands/read.c: Likewise.
  18915. * kern/corecmd.c (grub_core_cmd_ls): Likewise.
  18916. * kern/rescue_reader.c (grub_rescue_read_line): Likewise.
  18917. * lib/arg.c (grub_arg_show_help): Likewise.
  18918. * lib/crypto.c (grub_password_get): Likewise.
  18919. * normal/auth.c (grub_username_get): Likewise.
  18920. * normal/misc.c (grub_normal_print_device_info): Likewise.
  18921. * commands/help.c (grub_cmd_help): Use grub_unicode_aglomerate_comb.
  18922. * conf/common.rmk (grub_mkfont_SOURCES): Add unidata.c.
  18923. (gfxmenu_mod_SOURCES): Add gfxmenu/font.c.
  18924. (normal/charset.c_DEPENDENCIES): New variable.
  18925. (normal_mod_SOURCES): Add normal/charset.c and unidata.c.
  18926. (pkglib_MODULES): Remove charset.mod.
  18927. (charset_mod_SOURCES): Removed.
  18928. (charset_mod_CFLAGS): Likewise.
  18929. (charset_mod_LDFLAGS): Likewise.
  18930. (pkglib_MODULES) [ieee1275]: Remove terminfo.mod.
  18931. * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Add term/terminfo.c
  18932. and term/tparm.c.
  18933. * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
  18934. * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
  18935. (kernel_img_HEADERS): Add terminfo.h.
  18936. * font/font.c (ascii_glyph_lookup): Return NULL on failure.
  18937. Fill ->font. Reverse ascii bitmaps.
  18938. (grub_font_get_xheight): New function.
  18939. * font/font.c (grub_font_get_string_width): Moved from here ...
  18940. * gfxmenu/font.c (grub_font_get_string_width): ... here.
  18941. * font/font.c (grub_font_draw_string): Moved from here ...
  18942. * gfxmenu/font.c (grub_font_draw_string): ... here.
  18943. * font/font.c (grub_font_dup_glyph): New function.
  18944. (grub_font_blit_glyph): Likewise.
  18945. (grub_font_blit_glyph_mirror): Likewise.
  18946. (blit_comb): Likewise.
  18947. (grub_font_construct_dry_run): Likewise.
  18948. (grub_font_get_constructed_device_width): Likewise.
  18949. (grub_font_construct_glyph): Likewise.
  18950. * include/grub/charset.h (grub_ucs4_to_utf8): New proto.
  18951. * include/grub/misc.h (grub_utf8_to_ucs4): Moved from here ...
  18952. * include/grub/charset.h (grub_utf8_to_ucs4): ... here.
  18953. * include/grub/font.h (GRUB_FONT_CODE_CHAR_MASK): New constant.
  18954. (GRUB_FONT_CODE_RIGHT_JOINED): Likewise.
  18955. (GRUB_FONT_CODE_LEFT_JOINED): Likewise.
  18956. (grub_font_get_xheight): New proto.
  18957. (grub_font_get_constructed_device_width): Likewise.
  18958. (grub_font_construct_glyph): Likewise.
  18959. * include/grub/font.h (grub_font_get_string_width): Moved from here ...
  18960. * include/grub/gfxmenu_view.h (grub_font_get_string_width): ... here.
  18961. * include/grub/font.h (grub_font_draw_string): Moved from here ...
  18962. * include/grub/gfxmenu_view.h (grub_font_draw_string): ... here.
  18963. * include/grub/i386/vga_common.h (grub_console_putchar): Moved from here..
  18964. * include/grub/i386/pc/console.h (grub_console_putchar): ... here.
  18965. * include/grub/i386/vga_common.h (grub_console_real_putchar): Removed.
  18966. (grub_console_getcharwidth): Likewise.
  18967. * include/grub/misc.h (grub_xputs): New proto.
  18968. (grub_puts): Inlined.
  18969. * include/grub/normal.h (grub_print_ucs4): Add margin specification.
  18970. (grub_normal_get_line_counter): Removed.
  18971. (grub_install_newline_hook): Likewise.
  18972. (grub_normal_get_char_counter): New proto.
  18973. (grub_normal_reset_more): Likewise.
  18974. (grub_xputs_normal): Likewise.
  18975. * include/grub/powerpc/ieee1275/console.h: Removed.
  18976. * include/grub/sparc64/ieee1275/console.h: Likewise.
  18977. * include/grub/term.h (GRUB_TERM_CODE_TYPE_MASK): New definition.
  18978. (GRUB_TERM_CODE_TYPE_ASCII): Likewise.
  18979. (GRUB_TERM_CODE_TYPE_CP437): Likewise.
  18980. (GRUB_TERM_CODE_TYPE_UTF8_LOGICAL): Likewise.
  18981. (GRUB_TERM_CODE_TYPE_UTF8_VISUAL): Likewise.
  18982. (GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS): Likewise.
  18983. (grub_term_input): Pass reference to self. All users updated.
  18984. (grub_term_output): Pass grub_unicode_glyph to putchar and getcharwidth.
  18985. Pass reference to self. New fields normal_color, highlight_color and
  18986. data. All users updated.
  18987. (grub_putchar): Removed.
  18988. (grub_putcode): Remove EXPORT_FUNC since it's not in kernel anymore.
  18989. (grub_unicode_estimate_width): New function.
  18990. (grub_term_getcharwidth): Add defaults.
  18991. (GRUB_TERM_DEFAULT_NORMAL_COLOR): New definition.
  18992. (GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR): Likewise.
  18993. (GRUB_TERM_DEFAULT_STANDARD_COLOR): Likewise.
  18994. (grub_cls): Remove EXPORT_FUNC.
  18995. (grub_setcolorstate): Inline.
  18996. (grub_newline_hook): Removed.
  18997. * include/grub/terminfo.h: Rewritten. All users updated.
  18998. * include/grub/unicode.h: New file.
  18999. * include/grub/video.h (grub_video_signed_rect): New type.
  19000. * kern/emu/console.c (grub_console_highlight_color): Removed.
  19001. (grub_console_normal_color): Likewise.
  19002. (grub_console_standard_color): Made static.
  19003. (grub_ncurses_putchar): Remove mapping.
  19004. (grub_ncurses_getcharwidth): Removed.
  19005. (grub_ncurses_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
  19006. (grub_ncurses_setcolor): Removed.
  19007. (grub_ncurses_getcolor): Likewise.
  19008. * kern/i386/pc/startup.S (grub_console_real_putchar): Renamed to ...
  19009. (grub_console_putchar): ... this.
  19010. (grub_console_putchar): Handle argument difference.
  19011. * kern/ieee1275/init.c (grub_machine_init): Split console_init into
  19012. console_init_early and console_init_lately.
  19013. * kern/sparc64/ieee1275/init.c (grub_machine_init): Likewise.
  19014. * kern/misc.c (grub_puts): Removed.
  19015. (grub_vprintf): Store UTF-8 string instead of outputting it directly.
  19016. (grub_vsnprintf_real): Remove str = NULL support.
  19017. * kern/misc.c (grub_utf8_to_ucs4): Move from here ...
  19018. * normal/charset.c (grub_utf8_to_ucs4): ... here.
  19019. * kern/term.c (grub_putcode): Renamed to ...
  19020. (grub_putcode_dumb): ... this. Pass grub_unicode_glyph instead of code.
  19021. (grub_putchar): Removed.
  19022. (grub_xputs_dumb): New function.
  19023. (grub_xputs): New variable.
  19024. * lib/charset.c: Move from here ...
  19025. * normal/charset.c: ... to here.
  19026. (grub_ucs4_to_utf8): New function.
  19027. (grub_ucs4_to_utf8_alloc): Use grub_ucs4_to_utf8.
  19028. (join_types): New variable.
  19029. (unpack_join): New function.
  19030. (bidi_types): New variable.
  19031. (unpack_bidi): New function.
  19032. (get_bidi_type): Likewise.
  19033. (get_join_type): Likewise.
  19034. (is_mirrored): Likewise.
  19035. (grub_unicode_get_comb_type): Likewise.
  19036. (grub_unicode_estimate_width) [HAVE_UNIFONT_WIDTHSPEC]: Likewise.
  19037. (is_type_after): Likewise.
  19038. (grub_unicode_aglomerate_comb): Likewise.
  19039. (bidi_line_wrap): Likewise.
  19040. (grub_bidi_line_logical_to_visual): Likewise.
  19041. (grub_bidi_logical_to_visual): Likewise.
  19042. (grub_unicode_mirror_code): Likewise.
  19043. (grub_unicode_shape_code): Likewise.
  19044. * normal/cmdline.c (grub_cmdline_get): Reset more counter.
  19045. Don't use grub_putchar.
  19046. * normal/main.c (grub_normal_init_page): Use grub_putcode.
  19047. (grub_normal_reader_init): Likewise.
  19048. (grub_xputs_saved): New variable.
  19049. (GRUB_MOD_INIT): Set grub_xputs.
  19050. (GRUB_MOD_FINI): Restore grub_xputs.
  19051. * normal/menu.c (grub_wait_after_message): Don't use grub_putchar.
  19052. (menu_init): Avoid printing gfxmenu error.
  19053. (show_menu): Use grub_normal_get_char_counter.
  19054. * normal/menu_entry.c (update_screen): Fix out-of-array.
  19055. (complete): Avoid NULL dereferencing.
  19056. * grub_menu_entry_run (grub_menu_entry_run): Don't use putchar.
  19057. * normal/menu_text.c (print_spaces): Removed.
  19058. (grub_print_ucs4): Likewise.
  19059. (grub_print_message_indented): Use grub_print_ucs4.
  19060. (print_message): Use grub_putcode.
  19061. (print_entry): Hanlde diacritics.
  19062. * normal/term.c (term_state): New type.
  19063. (grub_more_lines): Removed.
  19064. (term_states): New variable.
  19065. (grub_normal_line_counter): Renamed to ..
  19066. (grub_normal_char_counter): ...this. All users updated.
  19067. (grub_normal_get_line_counter): Renamed to ...
  19068. (grub_normal_get_char_counter): ... this.
  19069. (grub_normal_reset_more): New function.
  19070. (process_newline): Removed.
  19071. (print_more): New function.
  19072. (grub_install_newline_hook): Removed.
  19073. (map_code): New function.
  19074. (grub_puts_terminal): Use grub_print_ucs4.
  19075. (putglyph): New function.
  19076. (putcode_real): Likewise.
  19077. (grub_putcode): Use putcode_real.
  19078. (get_maxwidth): New function.
  19079. (get_startwidth): Likewise.
  19080. (print_ucs4_terminal): Likewise.
  19081. (find_term_state): Likewise.
  19082. (put_glyphs_terminal): Likewise.
  19083. (print_backlog): Likewise.
  19084. (print_ucs4_real): Likewise.
  19085. (grub_print_ucs4): Likewise.
  19086. (grub_xputs_normal): Likewise.
  19087. * term/efi/console.c (grub_console_putchar): Output diacritics.
  19088. (grub_console_getcharwidth): Removed.
  19089. (grub_console_term_output): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
  19090. * term/gfxterm.c (clear_char): Free chars.
  19091. (scroll_up): Avoid leaking memory.
  19092. (grub_gfxterm_putchar): Support diacritics.
  19093. (grub_video_term): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
  19094. * term/i386/pc/console.c (grub_console_term_output): Declare as
  19095. GRUB_TERM_CODE_TYPE_VGA.
  19096. * term/i386/pc/vga.c (grub_vga_term): Declare as
  19097. GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS.
  19098. * term/i386/pc/vga_text.c (grub_vga_text_term): Declare as
  19099. GRUB_TERM_CODE_TYPE_VGA.
  19100. * term/i386/vga_common.c (map_char): Removed.
  19101. (grub_console_putchar): Likewise.
  19102. (grub_console_getcharwidth): Likewise.
  19103. * term/ieee1275/ofconsole.c: Simplify using terminfo.
  19104. (colors): Reordered to match terminfo.
  19105. (grub_ofconsole_normal_color): Removed.
  19106. (grub_ofconsole_writeesc): Likewise.
  19107. (grub_ofconsole_highlight_color): Likewise.
  19108. (grub_ofconsole_getcharwidth): Likewise.
  19109. (grub_ofconsole_setcolorstate): Likewise.
  19110. (grub_ofconsole_setcolor): Likewise.
  19111. (grub_ofconsole_getcolor): Likewise.
  19112. (grub_ofconsole_readkey): Renamed to ...
  19113. (readkey): ... this. Remove escape sequence handling. Return -1 on no
  19114. key.
  19115. (grub_ofconsole_checkkey): Removed.
  19116. (grub_ofconsole_getkey): Likewise.
  19117. (grub_ofconsole_getxy): Likewise.
  19118. (grub_ofconsole_gotoxy): Likewise.
  19119. (grub_ofconsole_cls): Likewise.
  19120. (grub_ofconsole_refresh): Likewise.
  19121. (grub_ofconsole_terminfo_input): New struct.
  19122. (grub_ofconsole_terminfo_output): Likewise.
  19123. (grub_ofconsole_term_input): Use terminfo.
  19124. (grub_ofconsole_term_output): Likewise.
  19125. (grub_console_init): Split into ...
  19126. (grub_console_init_early): ...this and ...
  19127. (grub_console_init_lately): ...this. Use terminfo.
  19128. (grub_ofconsole_putchar): Renamed to ...
  19129. (put): ... this. Remove mapping.
  19130. (grub_ofconsole_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
  19131. * term/serial.c: Simplify using terminfo.
  19132. (xpos): Removed.
  19133. (ypos): Likewise.
  19134. (keep_track): Likewise.
  19135. (registered): Likewise.
  19136. (input_buf): Likewise.
  19137. (npending): Likewise.
  19138. (serial_translate_key_sequence): Likewise.
  19139. (fill_input_buf): Likewise.
  19140. (grub_serial_checkkey): Likewise.
  19141. (grub_serial_getkey): Likewise.
  19142. (grub_serial_getxy): Likewise.
  19143. (grub_serial_gotoxy): Likewise.
  19144. (grub_serial_putchar): Likewise.
  19145. (grub_serial_cls): Likewise.
  19146. (grub_serial_setcolorstate): Likewise.
  19147. (grub_serial_setcursor): Likewise.
  19148. (serial_hw_init): Use serial_hw_fetch.
  19149. (grub_serial_terminfo_input): New variable.
  19150. (grub_serial_terminfo_output): Likewise.
  19151. (grub_serial_term_input): Use terminfo.
  19152. (grub_serial_term_output): Likewise.
  19153. * term/terminfo.c (putstr): Use put.
  19154. (grub_terminfo_all_free): New function
  19155. (grub_terminfo_set_current): New types vt100-color, ieee1275 and dumb.
  19156. (grub_terminfo_output_register): New function.
  19157. (grub_terminfo_output_unregister): Likewise.
  19158. (grub_terminfo_getxy): Likewise.
  19159. (grub_terminfo_readkey): Likewise.
  19160. (grub_terminfo_checkkey): Likewise.
  19161. (grub_terminfo_getkey): Likewise.
  19162. (grub_terminfo_input_init): Likewise.
  19163. (print_terminfo): Likewise.
  19164. (grub_cmd_terminfo): Handle encoding.
  19165. (grub_terminfo_gotoxy): Track position.
  19166. (grub_terminfo_cls): Likewise.
  19167. (grub_terminfo_putchar): Likewise.
  19168. (grub_terminfo_setcolorstate): Handle colors
  19169. (grub_terminfo_cursor_on): This ...
  19170. (grub_terminfo_cursor_off): ... and this merged into ...
  19171. (grub_terminfo_setcursor): ... this.
  19172. * term/tparm.c (grub_terminfo_tparm): Avoid NULL dereferencing.
  19173. * unicode/ArabicShaping.txt: New file (imported from Unicode).
  19174. * unicode/BidiMirroring.txt: Likewise.
  19175. * unicode/UnicodeData.txt: Likewise.
  19176. * unicode/COPYING: Likewise.
  19177. * util/grub-editenv.c (grub_putchar): Removed.
  19178. (grub_xputs_real): New function.
  19179. (grub_xputs): New variable.
  19180. * util/grub-fstest.c (grub_putchar): Removed.
  19181. (grub_xputs_real): New function.
  19182. (grub_xputs): New variable.
  19183. * util/grub-mkdevicemap.c (grub_putchar): Removed.
  19184. (grub_xputs_real): New function.
  19185. (grub_xputs): New variable.
  19186. * util/grub-probe.c (grub_putchar): Removed.
  19187. (grub_xputs_real): New function.
  19188. (grub_xputs): New variable.
  19189. * util/grub-script-check.c (grub_putchar): Removed.
  19190. (grub_xputs_real): New function.
  19191. (grub_xputs): New variable.
  19192. * util/i386/pc/grub-setup.c (grub_putchar): Removed.
  19193. (grub_xputs_real): New function.
  19194. (grub_xputs): New variable.
  19195. * util/import_unicode.py: New file.
  19196. * util/grub-mkfont.c (ft_errmsgs): New array.
  19197. (grub_glyph_info): Make bitmap a pointer.
  19198. (file_formats): New type WIDTH_SPEC.
  19199. (grub_font_info): New members glyphs_unsorted, glyphs_sorted, num_glyphs.
  19200. (options): Add width-spec.
  19201. (help): Likewise.
  19202. (add_char): Renamed to ...
  19203. (add_glyph): ... this.
  19204. (add_glyph): Use index. Show freetype errors. Cut blank space at borders.
  19205. (glyph_replace): New type.
  19206. (subst_rightjoin), (subst_leftjoin), (subst_medijoin): New variables.
  19207. (add_char): New function.
  19208. (add_subst): Likewise.
  19209. (process_cursive): Likewise.
  19210. (add_font): Handle GSUB.
  19211. (write_font_width_spec): New function.
  19212. (main): Sort glyphs.
  19213. * commands/minicmd.c (grub_mini_cmd_clear): Moved from here ...
  19214. * normal/main.c (grub_mini_cmd_clear): ..here. All users updated.
  19215. * kern/term.c (grub_cls): Moved from here...
  19216. * normal/term.c (grub_cls): ... here.
  19217. 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
  19218. * include/grub/types.h: Define the C99-style PRIxGRUB_SIZE macro,
  19219. suitable for using within the format argument of printf when
  19220. converting grub_size_t.
  19221. * disk/usbms.c (grub_usbms_transfer): Use PRIxGRUB_SIZE rather than
  19222. "x" to convert grub_size_t arguments.
  19223. 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
  19224. * gfxmenu/gui_list.c (draw_menu): Use viewport to simplify code and fix
  19225. too long captions.
  19226. (list_get_minimal_size): Take selection box into account.
  19227. 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
  19228. * font/font.c (grub_font_get_glyph_with_fallback): Avoid dereferencing
  19229. NULL font.
  19230. 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
  19231. * util/deviceiter.c (grub_util_iterate_devices): Skip device-mapper
  19232. devices when iterating over /dev/disk/by-id; they will be handled
  19233. later if appropriate, which they aren't always (e.g. LVM).
  19234. 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
  19235. * include/grub/misc.h (grub_reboot): Declare as noreturn.
  19236. * kern/efi/efi.c (grub_reboot): Don't return, even if reset_system
  19237. fails.
  19238. (grub_halt): Likewise.
  19239. * kern/ieee1275/openfw.c (grub_reboot): Don't return, even if
  19240. reset-all fails.
  19241. (grub_halt): Don't return, even if all of shut-down, power-off, and
  19242. poweroff fail.
  19243. 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
  19244. * kern/efi/init.c (grub_efi_init): set_watchdog_timer takes four
  19245. arguments, not three.
  19246. 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
  19247. * util/grub-mkconfig_lib.in (uses_abstraction): New function.
  19248. * util/grub.d/10_linux.in: Use it to check for LVM, so that
  19249. LVM-on-RAID is handled correctly.
  19250. 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
  19251. * docs/grub.texi (Changes from GRUB Legacy): New section.
  19252. (Future): Fix typo.
  19253. 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
  19254. * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Sometimes
  19255. grub.d/README accidentally ends up executable for one reason or
  19256. another. Ignore it.
  19257. 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
  19258. * partmap/gpt.c (MAX_SECTOR_LOG): New definition.
  19259. (gpt_partition_map_iterate): Support non-512B sectors.
  19260. 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
  19261. * kern/efi/init.c (grub_efi_init): Disable watchdog.
  19262. Tested by: Seth Goldberg.
  19263. 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
  19264. * loader/multiboot.c (grub_multiboot_boot) [GRUB_USE_MULTIBOOT2]:
  19265. Properly align mbi.
  19266. Reported by: Seth Goldberg.
  19267. 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
  19268. * util/grub-mkrescue.in: Avoid module duplication.
  19269. 2010-07-01 Sean Finney <seanius@seanius.net>
  19270. * util/grub.d/10_linux.in: Don't use UUID for LVM root.
  19271. 2010-07-01 Sean Finney <seanius@seanius.net>
  19272. * disk/lvm.c (grub_lvm_scan_device): Skip snapshots.
  19273. 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
  19274. * disk/lvm.c (grub_lvm_checkvalue): New function.
  19275. (grub_lvm_check_flag): Likewise.
  19276. 2010-07-01 Robert Millan <rmh@gnu.org>
  19277. * kern/emu/hostdisk.c (convert_system_partition_to_system_disk):
  19278. Support 'p' as partition separator on kernel of FreeBSD (used
  19279. with GPT labels).
  19280. (grub_util_biosdisk_get_grub_dev): Likewise.
  19281. 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
  19282. Yeeloong firmware port.
  19283. * boot/mips/yeeloong/fwstart.S: New file.
  19284. * bus/cs5536.c (gpiodump): New const.
  19285. (set_io_space): New function.
  19286. (set_iod): Likewise.
  19287. (set_p2d): Likewise.
  19288. (grub_cs5536_init_geode): Likewise.
  19289. * commands/mips/yeeloong/lsspd.c: New file.
  19290. * conf/mips-qemu-mips.rmk (pkglib_MODULES): Add serial.mod.
  19291. (serial_mod_SOURCES): New variable.
  19292. (serial_mod_CFLAGS): Likewise.
  19293. (serial_mod_LDFLAGS): Likewise.
  19294. * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Add term/serial.c,
  19295. term/terminfo.c and term/tparm.c.
  19296. (pkglib_IMAGES): Add fwstart.img.
  19297. (fwstart_img_SOURCES): New variable.
  19298. (fwstart_img_CFLAGS): Likewise.
  19299. (fwstart_img_ASFLAGS): Likewise.
  19300. (fwstart_img_LDFLAGS): Likewise.
  19301. (fwstart_img_FORMAT): Likewise.
  19302. (pkglib_MODULES): Add lsspd.mod.
  19303. (lsspd_mod_SOURCES): New variable.
  19304. (lsspd_mod_CFLAGS): Likewise.
  19305. (lsspd_mod_LDFLAGS): Likewise.
  19306. (pkglib_MODULES): Add halt.mod.
  19307. (halt_mod_SOURCES): New variable.
  19308. (halt_mod_CFLAGS): Likewise.
  19309. (halt_mod_LDFLAGS): Likewise.
  19310. * conf/mips.rmk (pkglib_MODULES): Remove serial.mod.
  19311. (serial_mod_SOURCES): Removed.
  19312. (serial_mod_CFLAGS): Likewise.
  19313. (serial_mod_LDFLAGS): Likewise.
  19314. * disk/ata.c (check_device): New function.
  19315. (grub_ata_device_initialize): Use check_device.
  19316. (grub_ata_iterate): Recheck devices.
  19317. (grub_ata_open): Likewise.
  19318. (grub_atapi_iterate): Likewise.
  19319. (grub_atapi_open): Likewise.
  19320. * include/grub/ata.h (GRUB_ATA_CH0_PORT1): New macro.
  19321. (GRUB_ATA_CH1_PORT1): Likewise.
  19322. (GRUB_ATA_CH0_PORT2): Likewise.
  19323. (GRUB_ATA_CH1_PORT2): Likewise.
  19324. * include/grub/mips/loongson.h: New file.
  19325. * include/grub/mips/yeeloong/ec.h: Likewise.
  19326. * include/grub/mips/yeeloong/serial.h (GRUB_MACHINE_SERIAL_PORT): New definition.
  19327. (GRUB_MACHINE_SERIAL_DIVISOR_115200): Likewise.
  19328. (GRUB_MACHINE_SERIAL_PORTS) [ASM_FILE]: Remove.
  19329. * include/grub/misc.h (grub_halt): Declare as noreturn.
  19330. * include/grub/serial.h (UART_ENABLE_FIFO): Renamed to ...
  19331. (UART_ENABLE_FIFO_TRIGGER14): ... this. All users updated.
  19332. (UART_ENABLE_FIFO_TRIGGER1): New definition.
  19333. (UART_ENABLE_DTRRTS): Likewise.
  19334. (UART_ENABLE_MODEM): Removed.
  19335. (UART_ENABLE_OUT2): New const.
  19336. * include/grub/term.h (grub_term_register_input_active): New function.
  19337. (grub_term_register_output_active): Likewise.
  19338. * kern/mips/startup.S [GRUB_MACHINE_MIPS_YEELOONG]: Handle 0xffffffff
  19339. argument.
  19340. * kern/mips/yeeloong/init.c (grub_get_rtc): Macroify.
  19341. (init_pci): New function.
  19342. (grub_machine_init): Execute platform init when firmware. Init serial.
  19343. (grub_halt): Implement.
  19344. (grub_exit): Likewise.
  19345. (grub_reboot): Likewise.
  19346. * term/serial.c (serial_hw_init): Update macros.
  19347. [GRUB_MACHINE_MIPS_YEELOONG]: Init on startup.
  19348. * util/grub-mkimage.c (image_target_desc): New id IMAGE_YEELOONG_FLASH.
  19349. (image_targets): New target mipsel-yeeloong-flash.
  19350. (generate_image): Support IMAGE_YEELOONG_FLASH.
  19351. * video/sm712.c (GRUB_SM712_TOTAL_MEMORY_SPACE): New definition.
  19352. (grub_video_sm712_setup): Init card.
  19353. (grub_video_sm712_set_palette): Removed.
  19354. * video/sm712_init.c: New file.
  19355. 2010-06-30 Colin Watson <cjwatson@ubuntu.com>
  19356. * Makefile.in (install-local): Temporarily prepend $(builddir) to
  19357. PATH when running help2man and then run it on the unadorned
  19358. executable names, rather than passing $(builddir)/* paths to
  19359. help2man. This avoids the build directory ending up in generated
  19360. manual pages.
  19361. 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
  19362. * util/grub-mkconfig.in: Use 'set -e' rather than '#! /bin/sh -e',
  19363. to avoid accidents when debugging with 'sh -x'.
  19364. * util/grub-mkrescue.in: Likewise.
  19365. * util/grub.d/00_header.in: Likewise.
  19366. * util/grub.d/10_hurd.in: Likewise.
  19367. * util/grub.d/10_kfreebsd.in: Likewise.
  19368. * util/grub.d/10_linux.in: Likewise.
  19369. * util/grub.d/10_netbsd.in: Likewise.
  19370. * util/grub.d/10_windows.in: Likewise.
  19371. * util/grub.d/20_linux_xen.in: Likewise.
  19372. * util/grub.d/30_os-prober.in: Likewise.
  19373. * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
  19374. 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
  19375. * commands/cat.c (grub_cmd_cat): Fix buffer overrun if '\r' is the
  19376. last character in the buffer.
  19377. Reported by: Vladimir Serbinenko.
  19378. 2010-06-29 Robert Millan <rmh@gnu.org>
  19379. * docs/grub.texi (Simple configuration): Document ${GRUB_BADRAM}.
  19380. (Command-line and menu entry commands): Document `badram' command.
  19381. 2010-06-28 Robert Millan <rmh@gnu.org>
  19382. * util/grub-mkconfig.in: Export `GRUB_BADRAM' variable.
  19383. * util/grub.d/00_header.in: When `GRUB_BADRAM' is set, issue badram
  19384. command using ${GRUB_BADRAM} as parameter.
  19385. 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
  19386. * docs/grub.texi (Device map): New section.
  19387. (Themes): New section (stub).
  19388. * Makefile.in (docs/grub.info): The info documentation now builds
  19389. without errors. Make sure it stays that way.
  19390. 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
  19391. Use normal parser for menu entries.
  19392. Reported by: Thomas Frauendorfer
  19393. * include/grub/parser.h (grub_parser_execute): Don't export.
  19394. * normal/menu.c (grub_menu_execute_entry_real): New function.
  19395. (grub_menu_execute_entry): Use grub_menu_execute_entry_real.
  19396. 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
  19397. * docs/grub.texi (Embedded configuration): New section (replacing
  19398. old "Preset Menu" stub).
  19399. (Images): New section.
  19400. (configfile): Note that any menu entries defined in `file' are shown
  19401. immediately.
  19402. 2010-06-28 Josh Triplett <josh@joshtriplett.org>
  19403. * mmap/i386/pc/mmap_helper.S: Set CF on return.
  19404. 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
  19405. * util/grub-install.in: Add --debug-image= option.
  19406. 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
  19407. Change grub-mkdevicemap to emit /dev/disk/by-id/ names where
  19408. possible on Linux.
  19409. * util/deviceiter.c (check_device): Rename to ...
  19410. (check_device_readable_unique): ... this. Update all callers.
  19411. Maintain and check a list of which devices (by canonicalized name)
  19412. have already been seen.
  19413. (clear_seen_devices): New function.
  19414. (compare_file_names) [__linux__]: New function.
  19415. (grub_util_iterate_devices): Clear the list of seen devices on exit
  19416. and (just in case) on entry.
  19417. (grub_util_iterate_devices) [__linux__]: Iterate over non-partition
  19418. devices in /dev/disk/by-id/, in sorted order. Remove DM-RAID
  19419. seen-devices list, superseded by general code in check_device.
  19420. 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
  19421. * commands/cat.c (options): New variable.
  19422. (grub_cmd_cat): Parse options. If the --dos option is given, print
  19423. DOS-style "\r\n" line endings as simple newlines (Debian bug
  19424. #586358).
  19425. (GRUB_MOD_INIT): Use extcmd.
  19426. (GRUB_MOD_FINI): Likewise.
  19427. * docs/grub.texi (cat): Document --dos.
  19428. 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
  19429. XEN with Linux grub-mkconfig support.
  19430. * conf/common.rmk (grub-mkconfig_SCRIPTS) [linux]: Add 20_linux_xen.
  19431. * util/grub-mkconfig.in: Export GRUB_CMDLINE_XEN and
  19432. GRUB_CMDLINE_XEN_DEFAULT.
  19433. * util/grub.d/20_linux_xen.in: New file.
  19434. 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
  19435. Initialise VGA video on qemu ourselves.
  19436. * boot/i386/qemu/boot.S: Don't call 0xc000.
  19437. * conf/i386-qemu.rmk (kern/i386/qemu/init.c_DEPENDENCIES): New variable.
  19438. (kernel_img_SOURCES): Add kern/i386/qemu/init.c and bus/pci.c.
  19439. (kernel_img_HEADERS): Add pci.h.
  19440. * conf/i386.rmk (pkglib_MODULES) [qemu]: Remove pci.mod.
  19441. * configure.ac: Force unifont on qemu and yeeloong.
  19442. * include/grub/i386/qemu/kernel.h (grub_qemu_init_cirrus): New proto.
  19443. (grub_vga_palette_write): Use correct register.
  19444. * kern/i386/coreboot/init.c (grub_machine_init) [GRUB_MACHINE_QEMU]:
  19445. Call grub_qemu_init_cirrus.
  19446. * kern/i386/qemu/init.c: New file.
  19447. * term/i386/pc/vga_text.c (inc_y): Never read outside the screen.
  19448. * commands/videotest.c (grub_cmd_videotest): Handle double buffering.
  19449. 2010-06-26 Pavel Roskin <proski@gnu.org>
  19450. * util/grub.d/10_linux.in: Add support for initrd images on Fedora
  19451. 13.
  19452. 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
  19453. * docs/grub.texi (Simple configuration): Explain that
  19454. GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY must be
  19455. set to `true' to disable their respective recovery entries, not
  19456. merely set.
  19457. 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
  19458. Make the `source' command slightly faster.
  19459. * normal/main.c (grub_normal_execute): Don't re-read list files when
  19460. nested.
  19461. 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
  19462. * loader/i386/multiboot_mbi.c (retrieve_video_parameters): Set red
  19463. field position and mask size to red fields from mode_info, not
  19464. green.
  19465. * loader/multiboot_mbi2.c (retrieve_video_parameters): Likewise.
  19466. Remove redundant tag->common.framebuffer_type assignment.
  19467. Reported by: Seth Goldberg.
  19468. 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
  19469. Sync up other versions of the Linux loader with Robert Millan's
  19470. change of 2010-01-09, "Make loader output a bit more user-friendly".
  19471. * loader/i386/efi/linux.c (grub_linux_boot): Move debug info to
  19472. grub_dprintf().
  19473. (grub_cmd_linux): Likewise.
  19474. (grub_cmd_initrd): Likewise.
  19475. * loader/i386/ieee1275/linux.c (grub_cmd_linux): Likewise.
  19476. * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
  19477. 2010-06-21 Colin Watson <cjwatson@ubuntu.com>
  19478. * kern/efi/mm.c (grub_efi_mm_init): Handle systems with memory maps
  19479. larger than MEMORY_MAP_SIZE.
  19480. 2010-06-21 BVK Chaitanya <bvk.groups@gmail.com>
  19481. Fix parallel build.
  19482. * conf/common.rmk: Add grub_script.tab.h as a grub-script-check
  19483. dependency.
  19484. * script/parser.y: #include grub_script.tab.h header.
  19485. 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
  19486. Support >3GiB and <16MiB RAM in i386-qemu.
  19487. * kern/i386/qemu/mmap.c (QEMU_CMOS_MEMSIZE2_HIGH): New const.
  19488. (QEMU_CMOS_MEMSIZE2_LOW): Likewise.
  19489. (grub_lower_mem): Removed.
  19490. (grub_upper_mem): Likewise.
  19491. (mem_size): Made static.
  19492. (above_4g): New variable.
  19493. (grub_machine_mmap_init): Detect small mem_size and above_4g.
  19494. (grub_machine_mmap_iterate): Order in ascending order and add above_4g
  19495. support.
  19496. 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
  19497. Cirrus 5446 and Bochs video cards support.
  19498. * conf/i386.rmk (pkglib_MODULES): Add video_cirrus.mod and
  19499. video_bochs.mod
  19500. (video_cirrus_mod_SOURCES): New variable.
  19501. (video_cirrus_mod_CFLAGS): Likewise.
  19502. (video_cirrus_mod_LDFLAGS): Likewise.
  19503. (video_bochs_mod_SOURCES): Likewise.
  19504. (video_bochs_mod_CFLAGS): Likewise.
  19505. (video_bochs_mod_LDFLAGS): Likewise.
  19506. * include/grub/vga.h: New file.
  19507. * include/grub/video_fb.h (grub_video_fb_doublebuf_blit_init): Removed.
  19508. (grub_video_fb_set_page_t): New type.
  19509. (grub_video_fb_setup): New prototype.
  19510. (grub_video_fb_swap_buffers): Likewise.
  19511. (grub_video_fb_get_info_and_fini): Likewise.
  19512. * term/i386/pc/vga_text.c (CRTC_ADDR_PORT): Moved to include/grub/vga.h.
  19513. (CRTC_DATA_PORT): Likewise.
  19514. (CRTC_CURSOR): Likewise.
  19515. (CRTC_CURSOR_ADDR_HIGH): Likewise.
  19516. (CRTC_CURSOR_ADDR_LOW): Likewise.
  19517. (CRTC_CURSOR_DISABLE): Likewise.
  19518. (update_cursor): Use grub_vga_cr_write.
  19519. (grub_vga_text_setcursor): Likewise.
  19520. * video/bochs.c: New file.
  19521. * video/fb/video_fb.c (render_target): Moved into framebuffer variable.
  19522. (palette): Likewise.
  19523. (palette_size): Likewise.
  19524. (framebuffer): New variable.
  19525. (grub_video_fb_init): Use 'framebuffer'.
  19526. (grub_video_fb_fini): Likewise.
  19527. (grub_video_fb_get_info): Likewise.
  19528. (grub_video_fb_get_palette): Likewise.
  19529. (grub_video_fb_set_palette): Likewise.
  19530. (grub_video_fb_set_viewport): Likewise.
  19531. (grub_video_fb_get_viewport): Likewise.
  19532. (grub_video_fb_map_color): Likewise.
  19533. (grub_video_fb_map_rgb): Likewise.
  19534. (grub_video_fb_map_rgba): Likewise.
  19535. (grub_video_fb_unmap_color): Likewise.
  19536. (grub_video_fb_unmap_color_int): Likewise.
  19537. (grub_video_fb_fill_rect): Likewise.
  19538. (grub_video_fb_blit_bitmap): Likewise.
  19539. (grub_video_fb_blit_render_target): Likewise.
  19540. (grub_video_fb_scroll): Likewise.
  19541. (grub_video_fb_create_render_target): Likewise.
  19542. (grub_video_fb_doublebuf_blit_init): Likewise.
  19543. (grub_video_fb_set_active_render_target): Handle doublebuffering.
  19544. (doublebuf_pageflipping_update_screen): New function.
  19545. (doublebuf_pageflipping_init): Likewise.
  19546. (grub_video_fb_setup): Likewise.
  19547. (grub_video_fb_swap_buffers): Likewise.
  19548. (grub_video_fb_get_info_and_fini): Likewise.
  19549. * video/i386/pc/vbe.c (framebuffer): Remove all doublebuffering fields.
  19550. All users updated.
  19551. (doublebuf_pageflipping_commit): Restructured into ...
  19552. (doublebuf_pageflipping_set_page): ... this.
  19553. (doublebuf_pageflipping_update_screen): Removed.
  19554. (doublebuf_pageflipping_init): Likewise.
  19555. (double_buffering_init): Likewise.
  19556. (grub_video_vbe_setup): Use grub_video_fb_setup.
  19557. (grub_video_vbe_swap_buffers): Removed.
  19558. (grub_video_vbe_set_active_render_target): Likewise.
  19559. (grub_video_vbe_get_active_render_target): Likewise.
  19560. (grub_video_vbe_get_info_and_fini): Use grub_video_fb_get_info_and_fini.
  19561. (grub_video_vbe_adapter): Use grub_video_fb_swap_buffers,
  19562. grub_video_fb_set_active_render_target and
  19563. grub_video_fb_get_active_render_target.
  19564. * video/i386/pc/vga.c (SEQUENCER_ADDR_PORT): Move to include/grub/vga.h.
  19565. (SEQUENCER_DATA_PORT): Likewise.
  19566. (MAP_MASK_REGISTER): Likewise.
  19567. (CRTC_ADDR_PORT): Likewise.
  19568. (CRTC_DATA_PORT): Likewise.
  19569. (START_ADDR_HIGH_REGISTER): Likewise.
  19570. (START_ADDR_LOW_REGISTER): Likewise.
  19571. (GRAPHICS_ADDR_PORT): Likewise.
  19572. (GRAPHICS_DATA_PORT): Likewise.
  19573. (READ_MAP_REGISTER): Likewise.
  19574. (INPUT_STATUS1_REGISTER): Likewise.
  19575. (INPUT_STATUS1_VERTR_BIT): Likewise.
  19576. (get_map_mask): Use grub_vga_sr_read.
  19577. (set_map_mask): Use grub_vga_sr_write.
  19578. (set_read_map): Use grub_vga_gr_write.
  19579. (set_start_address): Use grub_vga_cr_write.
  19580. * video/sm712.c (framebuffer): Remove leftover fields.
  19581. 2010-06-20 Colin Watson <cjwatson@ubuntu.com>
  19582. * util/grub-mkconfig.in: Capitalise and export GRUB_PREFIX. Stop
  19583. setting GRUB_VIDEO_BACKEND. Make it available as a user override
  19584. instead. Replace the gfxterm backend check with a check that
  19585. ${GRUB_PREFIX}/video.lst is non-empty.
  19586. * util/grub.d/00_header.in: Use GRUB_PREFIX rather than computing it
  19587. again.
  19588. (load_video): New generated function. Call it before loading
  19589. gfxterm rather than loading ${GRUB_VIDEO_BACKEND}.
  19590. * util/grub.d/10_linux.in (linux_entry): Call load_video.
  19591. * util/grub.d/30_os-prober.in (osx_entry): Likewise.
  19592. * docs/grub.texi (Simple configuration): Document
  19593. GRUB_VIDEO_BACKEND.
  19594. 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
  19595. Use video functions in linux and xnu loaders.
  19596. * conf/i386-pc.rmk (xnu_mod_SOURCES): Remove loader/i386/pc/xnu.c.
  19597. * conf/x86-efi.rmk (xnu_mod_SOURCES): Remove loader/i386/efi/xnu.c.
  19598. * include/grub/i386/xnu.h (grub_xnu_set_video): Removed.
  19599. * loader/i386/efi/linux.c (grub_linux_setup_video): Copied from
  19600. loader/i386/pc/linux.c.
  19601. (grub_linux_boot): Resynced with loader/i386/pc/linux.c.
  19602. (find_line_len): Removed.
  19603. (find_framebuf): Likewise.
  19604. (grub_cmd_linux): Declare grub_linux_boot as possibly returning.
  19605. * loader/i386/efi/xnu.c: Removed.
  19606. * loader/i386/pc/xnu.c: Moved from here...
  19607. * loader/i386/xnu.c: ...here.
  19608. Enable priorities in video drivers.
  19609. * include/grub/video.h (grub_video_adapter_prio_t): New type.
  19610. (grub_video_adapter): New field prio.
  19611. (grub_video_register): Respect prio when inserting.
  19612. * video/efi_gop.c (grub_video_gop_adapter): Add prio.
  19613. * video/efi_uga.c (grub_video_uga_adapter): Likewise.
  19614. * video/emu/sdl.c (grub_video_sdl_adapter): Likewise.
  19615. * video/i386/pc/vbe.c (grub_video_vbe_adapter): Likewise.
  19616. * video/i386/pc/vga.c (grub_video_vga_adapter): Likewise.
  19617. * video/ieee1275.c (grub_video_ieee1275_adapter): Likewise.
  19618. * video/sm712.c (grub_video_sm712_adapter): Likewise.
  19619. Fix SDL driver ID.
  19620. * include/grub/video.h (grub_video_driver_id_t): New value
  19621. GRUB_VIDEO_DRIVER_SDL.
  19622. * video/emu/sdl.c (grub_video_sdl_adapter): Add id.
  19623. 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
  19624. * util/i386/pc/grub-setup.c (usage): Pass an extra `program_name'
  19625. argument to printf.
  19626. * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
  19627. 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
  19628. * util/i386/pc/grub-setup.c (usage): Fix syntax error.
  19629. * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
  19630. 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
  19631. * util/i386/pc/grub-setup.c (usage): Warn against running grub-setup
  19632. directly, and recommend grub-install instead.
  19633. * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
  19634. 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
  19635. Fix i386-pc prefix handling with nested partitions (Debian bug
  19636. #585068). Note that the case where the core image is booted using
  19637. multiboot and relocated from its original location still requires
  19638. more work.
  19639. * kern/i386/pc/init.c (make_install_device): If the prefix starts
  19640. with "(,", fill the boot drive in between those two characters, but
  19641. expect that a full partition specification including partition map
  19642. names will follow.
  19643. * util/i386/pc/grub-setup.c (setup): Unless an explicit prefix was
  19644. specified, write a prefix without the drive name but including a
  19645. full partition specification.
  19646. 2010-06-16 Colin Watson <cjwatson@ubuntu.com>
  19647. * util/grub-mkconfig.in: Ignore non-option arguments, for
  19648. compatibility with older versions (before 2010-06-12) which did the
  19649. same. In particular, this makes it easier to ship an update-grub
  19650. wrapper which is compatible with that used with GRUB Legacy (Debian
  19651. bug #586056).
  19652. 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
  19653. * Makefile.in (install-local): Use $$file.h2m instead of $$dest.h2m
  19654. for manual page generation.
  19655. 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
  19656. * po/POTFILES: Remove leftover commands/handler.c.
  19657. 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
  19658. * util/grub-mkconfig.in: Remove vestige of old argument parsing that
  19659. left this script non-functional.
  19660. 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
  19661. * docs/man/grub-emu.h2m: New file.
  19662. 2010-06-13 Colin Watson <cjwatson@ubuntu.com>
  19663. * docs/grub.texi (Commands): Document reduced command set in rescue
  19664. mode.
  19665. (cpuid): New section.
  19666. 2010-06-13 Grégoire Sutre <gregoire.sutre@gmail.com>
  19667. * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Use the
  19668. new partition naming style.
  19669. * util/grub-install.in: Adapt sed subtitutions in grub-probe calls.
  19670. 2010-06-12 BVK Chaitanya <bvk.groups@gmail.com>
  19671. Add "-o grub.iso" like cmdline options support.
  19672. * util/grub-install.in: Improve cmdline option parsing.
  19673. * util/grub-mkconfig.in: Likewise.
  19674. * util/grub-mkrescue.in: Likewise.
  19675. * util/grub-reboot.in: Likewise.
  19676. * util/grub-set-default.in: Likewise.
  19677. * util/i386/efi/grub-install.in: Likewise.
  19678. * util/ieee1275/grub-install.in: Likewise.
  19679. * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
  19680. 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
  19681. * .bzrignore: Ignore 41_custom.
  19682. 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
  19683. * util/grub-mkrescue.in: Pass unrecognized options to xorriso.
  19684. 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
  19685. Avoid false positives in fs.lst, partmap.lst, and video.lst due to
  19686. prototype declarations.
  19687. * genmk.rb (PModule::rule): Define GRUB_LST_GENERATOR when
  19688. generating fs, partmap, and video lists.
  19689. * include/grub/fs.h (grub_fs_register): Omit prototype if
  19690. GRUB_LST_GENERATOR is defined.
  19691. * include/grub/partition.h (grub_partition_map_register): Likewise.
  19692. * include/grub/video.h (grub_video_register): Likewise.
  19693. 2010-06-12 Javier Martín <lordhabbit@gmail.com>
  19694. * include/grub/types.h: Check for GRUB_CPU_SIZEOF_LONG when appropriate.
  19695. 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
  19696. * util/grub-mkrescue.in: Support --xorriso argument.
  19697. 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
  19698. * util/grub-mkrescue.in: Use -graft-points instead of -pathspecs.
  19699. Suggested by: Thomas Schmitt.
  19700. 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
  19701. * util/grub-mkrescue.in: Add --sort-weight arguments to xorriso.
  19702. Suggested by: Thomas Schmitt.
  19703. 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
  19704. custom.cfg support.
  19705. * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
  19706. * util/grub.d/41_custom.in: New file.
  19707. 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
  19708. * util/grub-mkrescue.in (make_image): Remove sh module, which has
  19709. been merged back into normal.
  19710. 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
  19711. * include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ...
  19712. (GRUB_EFI_UGA_BLT_MAX): ... this (typo fix).
  19713. 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
  19714. * Makefile.in (install-local): Include $(srcdir)/docs/man/$$dest.h2m
  19715. when generating manual pages.
  19716. * docs/man/grub-bin2h.h2m: New file.
  19717. * docs/man/grub-editenv.h2m: New file.
  19718. * docs/man/grub-fstest.h2m: New file.
  19719. * docs/man/grub-install.h2m: New file.
  19720. * docs/man/grub-macho2img.h2m: New file.
  19721. * docs/man/grub-mkconfig.h2m: New file.
  19722. * docs/man/grub-mkdevicemap.h2m: New file.
  19723. * docs/man/grub-mkfont.h2m: New file.
  19724. * docs/man/grub-mkimage.h2m: New file.
  19725. * docs/man/grub-mkpasswd-pbkdf2.h2m: New file.
  19726. * docs/man/grub-mkrelpath.h2m: New file.
  19727. * docs/man/grub-mkrescue.h2m: New file.
  19728. * docs/man/grub-ofpathname.h2m: New file.
  19729. * docs/man/grub-pe2elf.h2m: New file.
  19730. * docs/man/grub-probe.h2m: New file.
  19731. * docs/man/grub-reboot.h2m: New file.
  19732. * docs/man/grub-script-check.h2m: New file.
  19733. * docs/man/grub-set-default.h2m: New file.
  19734. * docs/man/grub-setup.h2m: New file.
  19735. 2010-06-10 Vladimir Serbinenko <phcoder@gmail.com>
  19736. Use FOR_* macros instead of *_iterate whenever possible.
  19737. * commands/handler.c: Removed.
  19738. * commands/help.c (grub_cmd_help): Use FOR_COMMANDS.
  19739. * commands/minicmd.c (grub_mini_cmd_lsmod): Use FOR_DL_MODULES.
  19740. * conf/any-emu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
  19741. * conf/common.rmk (script/lexer.c_DEPENDENCIES): Add grub_script.yy.h.
  19742. (grub_probe_SOURCES): Remove kern/parser.c.
  19743. (util/grub-script-check.c_DEPENDENCIES): Removed.
  19744. (grub_script_check_SOURCES): Remove kern/handler.c, kern/parser.c
  19745. and grub_script_check_init.c.
  19746. (grub_script_check_init.lst): Removed.
  19747. (grub_script_check_init.h): Likewise.
  19748. (grub_script_check_init.c): Likewise.
  19749. (pkglib_MODULES): Remove handler.mod and sh.mod.
  19750. (handler_mod_SOURCES): Removed.
  19751. (handler_mod_CFLAGS): Likewise.
  19752. (handler_mod_LDFLAGS): Likewise.
  19753. (normal_mod_SOURCES): Remove normal/handler.c.
  19754. Add script/main.c, script/script.c, script/execute.c,
  19755. script/function.c, script/lexer.c, grub_script.tab.c
  19756. and grub_script.yy.c.
  19757. * conf/i386-coreboot.rmk (kernel_img_SOURCES): Remove kern/handler.c.
  19758. * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
  19759. * conf/i386-pc.rmk (kernel_img_SOURCES): Likewise.
  19760. (grub_setup_SOURCES): Remove kern/parser.c.
  19761. * conf/i386-qemu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
  19762. * conf/mips-qemu-mips.rmk (kernel_img_SOURCES): Likewise.
  19763. * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
  19764. * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Likewise.
  19765. * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
  19766. (grub_setup_SOURCES): Remove kern/parser.c.
  19767. * conf/x86-efi.rmk (kernel_img_SOURCES): Remove kern/handler.c.
  19768. * gettext/gettext.c (grub_gettext_delete_list): Don't use grub_list_pop.
  19769. * include/grub/command.h (grub_command_iterate): Removed.
  19770. (FOR_COMMANDS): New macro.
  19771. * include/grub/dl.h (grub_dl): New member next.
  19772. (grub_dl_iterate): Removed.
  19773. (grub_dl_head): New variable declaration.
  19774. (FOR_DL_MODULES): New macro.
  19775. * include/grub/fs.h: Include list.h.
  19776. (grub_fs): Make next first element.
  19777. (grub_fs_list): New variable declaration.
  19778. (grub_fs_register): Make inline.
  19779. (grub_fs_unregister): Likewise.
  19780. (grub_fs_iterate): Removed.
  19781. (FOR_FILESYSTEMS): New macro.
  19782. * include/grub/handler.h: Removed.
  19783. * include/grub/list.h (grub_list_hook_t): Removed.
  19784. (grub_list_test_t): Likewise.
  19785. (grub_list_pop): Likewise.
  19786. (grub_list_iterate): Likewise.
  19787. (grub_list_insert): Likewise.
  19788. (FOR_LIST_ELEMENTS): New macro.
  19789. * include/grub/parser.h (grub_parser_class): Removed.
  19790. (grub_parser_register): Likewise.
  19791. (grub_parser_unregister): Likewise.
  19792. (grub_parser_get_current): Likewise.
  19793. (grub_parser_set_current): Likewise.
  19794. (grub_register_rescue_parser): Likewise.
  19795. (grub_rescue_parse_line): New function.
  19796. * include/grub/partition.h (FOR_PARTITION_MAPS): Use FOR_LIST_ELEMENTS.
  19797. * include/grub/script_sh.h (grub_script_function_list): New variable
  19798. declaration.
  19799. (FOR_SCRIPT_FUNCTIONS): New macro.
  19800. (grub_script_function_iterate): Removed.
  19801. (grub_normal_parse_line): New prototype.
  19802. * include/grub/term.h (FOR_ACTIVE_TERM_INPUTS): Use FOR_LIST_ELEMENTS.
  19803. (FOR_DISABLED_TERM_INPUTS): Likewise.
  19804. (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
  19805. (FOR_DISABLED_TERM_OUTPUTS): Likewise.
  19806. * include/grub/video.h (grub_video_adapter): Move 'next' to first
  19807. element.
  19808. (grub_video_register): Inline.
  19809. (grub_video_unregister): Likewise.
  19810. (grub_video_adapter_list): New variable declaration.
  19811. (grub_video_iterate): Removed.
  19812. (FOR_VIDEO_ADAPTERS): New macro.
  19813. * kern/dl.c (grub_dl_list): Removed. All users updated.
  19814. (grub_dl_iterate): Removed.
  19815. * kern/fs.c (grub_fs_list): Make global.
  19816. (grub_fs_register): Removed.
  19817. (grub_fs_unregister): Likewise.
  19818. (grub_fs_iterate): Likewise.
  19819. * kern/handler.c: Removed.
  19820. * kern/list.c (grub_list_pop): Removed.
  19821. (grub_list_iterate): Likewise.
  19822. (grub_list_insert): Likewise.
  19823. (grub_named_list_find): Use FOR_LIST_ELEMENTS.
  19824. (grub_prio_list_insert): Don't use grub_list_insert.
  19825. * kern/main.c (grub_register_rescue_parser): Don't call
  19826. grub_register_rescue_parser.
  19827. * kern/parser.c (grub_parser_class): Removed.
  19828. (grub_parser_execute): Use grub_rescue_parse_line.
  19829. * kern/rescue_parser.c (grub_rescue_parse_line): Make global.
  19830. (grub_rescue_parser): Removed.
  19831. (grub_register_rescue_parser): Likewise.
  19832. * kern/rescue_reader.c (grub_rescue_run): Use grub_rescue_parse_line.
  19833. * normal/auth.c (is_authenticated): Use FOR_LIST_ELEMENTS.
  19834. (grub_auth_check_authentication): Likewise.
  19835. * normal/completion.c (iterate_command): Removed.
  19836. (grub_normal_do_completion): Use FOR_COMMANDS.
  19837. * normal/handler.c: Removed.
  19838. * normal/main.c (read_config_file): Remove parser changing.
  19839. (grub_normal_execute): Don't call read_handler_list.
  19840. (grub_normal_read_line_real): Statically allocate prompt.
  19841. (grub_cmdline_run): Use grub_normal_parse_line.
  19842. (GRUB_MOD_FINI): Don't call free_handler_list.
  19843. * normal/menu_entry.c (run): Likewise.
  19844. * script/function.c (grub_script_function_list): Make global.
  19845. (grub_script_function_iterate): Removed.
  19846. * script/main.c (grub_normal_parse_line): Make global.
  19847. (grub_sh_parser): Removed.
  19848. (GRUB_MOD_INIT): Likewise.
  19849. (GRUB_MOD_FINI): Likewise.
  19850. * tests/lib/functional_test.c (grub_functional_test): Use
  19851. FOR_LIST_ELEMENTS.
  19852. * tests/lib/test.c (free_failures): Don't use grub_list_pop.
  19853. (grub_test_run): Use FOR_LIST_ELEMENTS.
  19854. * tests/lib/unit_test.c (main): Likewise.
  19855. * util/deviceiter.c (grub_util_iterate_devices): Don't use
  19856. grub_list_pop.
  19857. * util/grub-fstest.c (grub_term_input_class): Removed.
  19858. (grub_term_output_class): Likewise.
  19859. * util/grub-probe.c: Likewise.
  19860. * util/i386/pc/grub-setup.c: Likewise.
  19861. * util/sparc64/ieee1275/grub-setup.c: Likewise.
  19862. * util/grub-script-check.c (main): Don't call grub_init_all and
  19863. grub_fini_all.
  19864. * video/video.c (grub_video_adapter_list): Make global.
  19865. (grub_video_register): Removed.
  19866. (grub_video_unregister): Likewise.
  19867. (grub_video_iterate): Likewise.
  19868. 2010-06-09 Vladimir Serbinenko <phcoder@gmail.com>
  19869. * docs/grub.texi (Vendor power-on button): Add Asus EeePC 1005PE as
  19870. reported by Henrique Ferreiro.
  19871. 2010-06-09 Robert Millan <rmh@gnu.org>
  19872. * util/grub.d/10_linux.in: Prefer compressed images over non-compressed
  19873. ones, when both are available.
  19874. 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
  19875. Make --version uniform and avoid hard-coded program name.
  19876. * util/grub-mkimage.c (main): Use `program_name' instead of
  19877. hard-coded string.
  19878. * util/i386/pc/grub-setup.c (main): Likewise.
  19879. * util/sparc64/ieee1275/grub-setup.c (parse_options): Likewise.
  19880. * util/grub-install.in: Save the basename of $0 in $self, and use the
  19881. latter in informational messages. Use the same format for --version
  19882. as the binary programs.
  19883. * util/grub-mkconfig.in: Likewise.
  19884. * util/grub-mkrescue.in: Likewise.
  19885. * util/grub-reboot.in: Likewise.
  19886. * util/grub-set-default.in: Likewise.
  19887. * util/i386/efi/grub-install.in: Likewise.
  19888. * util/ieee1275/grub-install.in: Likewise.
  19889. * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
  19890. 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
  19891. * util/i386/pc/grub-setup.c (setup): Use absolute offsets for start of
  19892. embedding area. Use <= instead of == when checking for non-emptiness.
  19893. 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
  19894. * configure.ac: Add `.' to the directories searched for unifont.
  19895. 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
  19896. * .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and
  19897. grub_script.yy.h.
  19898. 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
  19899. * docs/grub.texi (History): Expand to cover GRUB 2.
  19900. (Serial terminal): Refer to `terminal_input' and `terminal_output'
  19901. commands, not `terminal'.
  19902. (serial): Likewise.
  19903. (terminal_input): New section.
  19904. (terminal_output): New section.
  19905. (uppermem): New section (stub).
  19906. (Obtaining and Building GRUB): Refer to Bazaar, not Subversion.
  19907. 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
  19908. * docs/grub.texi (Security): Menu entries are unrestricted by
  19909. default, not restricted to superusers as I had previously thought.
  19910. Reword to account for this.
  19911. 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
  19912. * kern/emu/misc.c (device_mapper_null_log): New function.
  19913. (grub_device_mapper_supported): New function.
  19914. * include/grub/emu/misc.h (grub_device_mapper_supported): Add
  19915. prototype.
  19916. * kern/emu/hostdisk.c (find_partition_start): Check whether
  19917. device-mapper is supported before trying to use it.
  19918. * util/deviceiter.c (grub_util_iterate_devices): Likewise.
  19919. 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
  19920. * docs/grub.texi (Naming convention): Use GRUB 2 syntax.
  19921. (File name syntax): Likewise.
  19922. (help): --all is no longer supported in GRUB 2. Be more precise
  19923. about pattern matching.
  19924. 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
  19925. * normal/completion.c (grub_normal_do_completion): When completing
  19926. arguments to "set" and the current word contains an equals sign,
  19927. skip to after the equals sign before starting completion.
  19928. 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
  19929. * fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.
  19930. 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
  19931. * docs/grub.texi (Network): New section.
  19932. (Device syntax): The network device is called `(pxe)' in GRUB 2, not
  19933. `(nd)' as in GRUB Legacy.
  19934. (pxe_unload): New section.
  19935. 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
  19936. * docs/grub.texi (Troubleshooting): `echo' is not usually available
  19937. in the rescue shell, so recommend using `set' instead. Thanks,
  19938. Jordan Uggla.
  19939. 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
  19940. * docs/grub.texi (Filesystem): Refer to `search' instead of `find'.
  19941. (password): New section.
  19942. (password_pbkdf2): New section.
  19943. (search): New section.
  19944. (Security): New section.
  19945. (Troubleshooting): New section, currently very incomplete.
  19946. (Invoking grub-mkpasswd-pbkdf2): New section.
  19947. (Internals): New section, currently very incomplete.
  19948. 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
  19949. * util/grub.d/00_header.in: Add some more quoting (of
  19950. "${prev_saved_entry}" and "${boot_once}") needed to make savedefault
  19951. work again.
  19952. Reported by: Mario 'BitKoenig' Holbe (Debian bug #584812).
  19953. 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
  19954. * util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable
  19955. to `count', fixing variable shadowing that broke the -c option.
  19956. 2010-06-05 Colin Watson <cjwatson@ubuntu.com>
  19957. * util/grub.d/00_header.in: Quote values assigned to `saved_entry',
  19958. in case they contain spaces.
  19959. 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
  19960. * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Prepend
  19961. "part_" to partmap module names, in line with grub-install.
  19962. Reported by: Jindřich Makovička (Debian bug #584426).
  19963. 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
  19964. * util/grub-mkimage.c: Make target-related error messages slightly
  19965. more helpful; -O talks about "format". Explicitly point to the use
  19966. of -O if no target is specified.
  19967. Reported by: Didier Raboud (Debian bug #584415).
  19968. 2010-06-03 Colin Watson <cjwatson@ubuntu.com>
  19969. * INSTALL: Document several build requirements for optional features
  19970. (libdevmapper, ncurses, libusb, SDL, FreeType, GNU Unifont).
  19971. 2010-06-02 Grégoire Sutre <gregoire.sutre@gmail.com>
  19972. * kern/emu/hostdisk.c (convert_system_partition_to_system_disk)
  19973. [__NetBSD__]: Handle all device names matching /dev/r[a-z]+[0-9][a-z].
  19974. (find_partition_start) [__NetBSD__]: Correct error messages for NetBSD.
  19975. 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
  19976. * docs/grub.texi (Simple configuration): Fix copy-and-paste typo.
  19977. Thanks to Jordan Uggla for spotting this.
  19978. 2010-06-02 Aleš Nesrsta <starous@volny.cz>
  19979. Finally make USB usable.
  19980. * bus/usb/ohci.c (grub_ohci_reg_t): Add missing values.
  19981. (GRUB_OHCI_RHUB_PORT_POWER_MASK): New macro.
  19982. (GRUB_OHCI_RHUB_PORT_ALL_POWERED): Likewise.
  19983. (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_MASK): Likewise.
  19984. (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_SHIFT): Likewise.
  19985. (GRUB_OHCI_REG_FRAME_INTERVAL_FI_SHIFT): Likewise.
  19986. (GRUB_OHCI_FSMPS): Likewise.
  19987. (GRUB_OHCI_PERIODIC_START): Likewise.
  19988. (GRUB_OHCI_FRAME_INTERVAL): Likewise.
  19989. (GRUB_OHCI_SET_PORT_ENABLE): Likewise.
  19990. (GRUB_OHCI_CLEAR_PORT_ENABLE): Likewise.
  19991. (GRUB_OHCI_SET_PORT_RESET): Likewise.
  19992. (GRUB_OHCI_SET_PORT_RESET_STATUS_CHANGE): Likewise.
  19993. * bus/usb/ohci.c (grub_ohci_pci_iter): Various important fixups.
  19994. (grub_ohci_transaction): Likewise.
  19995. (grub_ohci_transfer): Improve condition detection algorithms.
  19996. Handle toggle property. Program the transactions correctly.
  19997. Improve error handling. Various important fixups.
  19998. (grub_ohci_portstatus): Put register writes in right order.
  19999. * bus/usb/uhci.c (grub_free_queue): Compute last_trans.
  20000. (grub_uhci_transfer): Don't show "failed" message on success.
  20001. * bus/usb/usb.c (grub_usb_set_configuration): Zero-fill whole "toggle"
  20002. array.
  20003. (grub_usb_device_initialize): Read first 8 bytes of descriptor to
  20004. determine its size.
  20005. * bus/usb/usbtrans.c (grub_usb_control_msg): Use descdev.maxsize0 even
  20006. before initialization is completed. Use IN direction for empty
  20007. transfers. Use last_trans and compute toggle.
  20008. * include/grub/usbtrans.h (grub_usb_transfer): New field last_trans.
  20009. (GRUB_USB_FEATURE_ENDP_HALT): Correct the value.
  20010. (GRUB_USB_FEATURE_DEV_REMOTE_WU): Likewise.
  20011. (GRUB_USB_FEATURE_TEST_MODE): Likewise.
  20012. * include/grub/usb.h (grub_usb_err_t): New value GRUB_USB_ERR_UNRECOVERABLE.
  20013. (grub_usb_device): Increase toggle to 256.
  20014. (grub_usbms_subclass_t): New values GRUB_USBMS_SUBCLASS_RBC,
  20015. GRUB_USBMS_SUBCLASS_MMC2, GRUB_USBMS_SUBCLASS_UFI and
  20016. GRUB_USBMS_SUBCLASS_SFF8070.
  20017. * include/grub/scsicmd.h (grub_scsi_test_unit_ready): New structure.
  20018. (grub_scsi_inquiry): New member page and alloc_length.
  20019. (grub_scsi_request_sense): New structure.
  20020. (grub_scsi_request_sense_data): Likewise.
  20021. (grub_scsi_read_capacity): New fields logical_block_addr, PMI and
  20022. control.
  20023. * disk/scsi.c (grub_scsi_request_sense): New function.
  20024. (grub_scsi_test_unit_ready): Likewise.
  20025. (grub_scsi_inquiry): Fill new fields.
  20026. (grub_scsi_read_capacity): Likewise.
  20027. (grub_scsi_read10): Add request sense at the end.
  20028. (grub_scsi_read12): Likewise.
  20029. (grub_scsi_write10): Likewise.
  20030. (grub_scsi_write12): Likewise.
  20031. (grub_scsi_open): Add Test Unit Ready.
  20032. * disk/usbms.c (grub_usbms_finddevs): Check configcnt.
  20033. Support additional subclasses. Con't clear halt yet. Activate the
  20034. proper config. Calculate LUNs correctly.
  20035. (grub_usbms_transfer): Various important fixups.
  20036. 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
  20037. * bus/pci.c (grub_pci_iterate) [GRUB_MACHINE_MIPS_YEELOONG]: Skip ghosts.
  20038. * bus/usb/ohci.c (grub_ohci_portstatus): Handle R/WC correctly.
  20039. (grub_ohci_fini_hw): New function.
  20040. (grub_ohci_restore_hw): Likewise.
  20041. (GRUB_MOD_INIT(ohci)): Register preboot hook.
  20042. (GRUB_MOD_FINI(ohci)): Shutdown OHCI.
  20043. * term/usb_keyboard.c: Remove include of grub/machine/console.h.
  20044. 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
  20045. Dedicated DMA allocations.
  20046. * bus/pci.c (grub_memalign_dma32): New function
  20047. (grub_dma_free): Likewise.
  20048. (grub_dma_get_virt): Likewise.
  20049. (grub_dma_get_phys): Likewise.
  20050. * bus/usb/ohci.c (grub_ohci): New members hcca_addr and hcca_chunk.
  20051. (grub_ohci_pci_iter): Use dma32_alloc.
  20052. (grub_ohci_transfer): Likewise.
  20053. * bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
  20054. (grub_usb_bulk_readwrite): Likewise.
  20055. * include/grub/pci.h: Add declarations.
  20056. 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
  20057. CS5536 support.
  20058. * bus/cs5536.c: New file.
  20059. * bus/usb/ohci.c (grub_ohci_pci_iter): Check for CS5536.
  20060. * conf/i386.rmk (pkglib_MODULES): Add cs5536.mod.
  20061. (cs5536_mod_SOURCES): New variable.
  20062. (cs5536_mod_CFLAGS): Likewise.
  20063. (cs5536_mod_LDFLAGS): Likewise.
  20064. * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add cs5536.h and
  20065. machine/pci.h.
  20066. (kernel_img_SOURCES): Add bus/cs5536.c.
  20067. (pkglib_MODULES): Add usb.mod, usbtest.mod, ohci.mod, usbms.mod and
  20068. usb_keyboard.mod.
  20069. (usb_mod_SOURCES): New variable.
  20070. (usb_mod_CFLAGS): New variable.
  20071. (usb_mod_LDFLAGS): New variable.
  20072. (usbtest_mod_SOURCES): New variable.
  20073. (usbtest_mod_CFLAGS): New variable.
  20074. (usbtest_mod_LDFLAGS): New variable.
  20075. (ohci_mod_SOURCES): New variable.
  20076. (ohci_mod_CFLAGS): New variable.
  20077. (ohci_mod_LDFLAGS): New variable.
  20078. (usbms_mod_SOURCES): New variable.
  20079. (usbms_mod_CFLAGS): New variable.
  20080. (usbms_mod_LDFLAGS): New variable.
  20081. (usb_keyboard_mod_SOURCES): New variable.
  20082. (usb_keyboard_mod_CFLAGS): New variable.
  20083. (usb_keyboard_mod_LDFLAGS): New variable.
  20084. * include/grub/smbus.h: New file.
  20085. * include/grub/cs5536.h: New file.
  20086. 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
  20087. * util/grub.d/00_header.in: Add safety check to make sure that
  20088. ${locale_dir} exists before trying to probe it.
  20089. 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
  20090. * docs/grub.texi (SCO UnixWare): Remove, at Vladimir's request and
  20091. per the GNU Coding Standards; this is now too obscure to be worth
  20092. documenting.
  20093. (QNX): Likewise.
  20094. (chainloader): Remove cross-reference to `SCO UnixWare'.
  20095. 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
  20096. * docs/grub.texi (Chain-loading): New section.
  20097. (DOS/Windows): New section, borrowed from GRUB Legacy with details
  20098. adjusted for GRUB 2.
  20099. (SCO UnixWare): Likewise.
  20100. (QNX): Likewise.
  20101. (chainloader): Add reference to `Block list syntax'.
  20102. (drivemap): New section.
  20103. (parttool): New section.
  20104. 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
  20105. * docs/grub.texi (GNU GRUB manual): Remove reference to `Invoking
  20106. the grub shell'.
  20107. (Installation): Add reference to `Making a GRUB bootable CD-ROM'.
  20108. (Installing GRUB using grub-install): Remove reference to the grub
  20109. shell; mention `grub-mkimage' and `grub-setup' instead.
  20110. (Invoking grub-install): Likewise.
  20111. (Interface): Add reference to `Menu entry editor'.
  20112. (serial): Remove `--device' option.
  20113. 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
  20114. * docs/grub.texi (Configuration): New section, documenting
  20115. configuration file generation using grub-mkconfig. I've left a slot
  20116. for documenting the full shell scripting format but have not yet
  20117. started on writing that up.
  20118. (Invoking grub-mkconfig): New section.
  20119. 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
  20120. * docs/grub.texi (direntry): Remove grub-terminfo reference.
  20121. (GNU GRUB manual): Likewise.
  20122. (General commands): Update description of `terminfo' for GRUB 2.
  20123. 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
  20124. * commands/gptsync.c (grub_cmd_gptsync): Fix typos.
  20125. (GRUB_MOD_INIT): Fix capitalisation.
  20126. * docs/grub.texi (Command-line and menu entry commands): Document
  20127. gettext and gptsync commands.
  20128. 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
  20129. * conf/any-emu.rmk (kernel_img_SOURCES) [!x86]: Include
  20130. kern/$(target_cpu)/cache.S even if TARGET_NO_MODULES = yes.
  20131. 2010-06-01 Colin Watson <cjwatson@ubuntu.com>
  20132. Add btrfs probing support, currently only in the single-device case.
  20133. * kern/emu/getroot.c (find_root_device_from_mountinfo): New
  20134. function.
  20135. (grub_guess_root_device): Call find_root_device_from_mountinfo
  20136. before looking in /dev.
  20137. 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
  20138. * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use
  20139. GRUB_DISK_SIZE_UNKNOWN.
  20140. * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Likewise.
  20141. 2010-05-31 Jiro SEKIBA <jir@unicus.jp>
  20142. * include/grub/disk.h (GRUB_DISK_SIZE_UNKNOWN): New macro.
  20143. * fs/nilfs.c: Support 2nd super block in case 1st one is accidently
  20144. corrupted or not synced properly.
  20145. 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
  20146. * normal/main.c (grub_normal_add_menu_entry): Avoid going out of args.
  20147. Reported by: Seth Goldberg.
  20148. 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
  20149. * loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix incorrect
  20150. addition of dest.
  20151. Reported by: Seth Goldberg.
  20152. 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
  20153. * commands/setpci.c (grub_setpci_iter): Fix an incorrect function check.
  20154. Reported by: Seth Goldberg.
  20155. 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
  20156. * loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check
  20157. 64-bit address as signed on MIPS.
  20158. 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
  20159. * configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not
  20160. to the empty string.
  20161. 2010-05-28 BVK Chaitanya <bvk.groups@gmail.com>
  20162. Fix grub-emu issues on NetBSD, with gcc 4.1.3.
  20163. * conf/any-emu.rmk: Remove unnecessary COMMON_CFLAGS.
  20164. * include/grub/emu/misc.h (canonicalize_file_name): New Prototype.
  20165. * kern/misc.c (__enable_execute_stack): Disable on
  20166. GRUB_MACHINE_EMU.
  20167. 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
  20168. Make grub-probe work with symbolic links under /dev/mapper as well
  20169. as with real block devices. The Linux world seems to be (at best)
  20170. in transition here, and GRUB shouldn't get caught in the middle.
  20171. * kern/emu/getroot.c (find_root_device): Follow symbolic links under
  20172. /dev/mapper.
  20173. 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
  20174. * util/grub-script-check.c (main): Ensure defined behaviour on empty
  20175. input files (in which case exit zero).
  20176. 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
  20177. * kern/emu/misc.c (canonicalize_file_name): realpath can still
  20178. return NULL for various reasons even if it has a maximum-length
  20179. buffer: for example, there might be a symlink loop, or the path
  20180. might exceed PATH_MAX. If this happens, return NULL.
  20181. 2010-05-27 Robert Millan <rmh@gnu.org>
  20182. * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Insert
  20183. partmap module to handle cross-partmap setups.
  20184. Reported by Orestes Mas. Gràcies!
  20185. 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
  20186. * util/grub-mkrescue.in: Initialise override_dir rather than
  20187. assuming that it's unset or empty in the environment.
  20188. 2010-05-26 Grégoire Sutre <gregoire.sutre@gmail.com>
  20189. * kern/emu/hostdisk.c (find_partition_start) [__NetBSD__]: Renamed
  20190. variable index into p_index to suppress a warning with -Wshadow.
  20191. 2010-05-25 BVK Chaitanya <bvk.groups@gmail.com>
  20192. * INSTALL: Added flex >= 2.5.35 requirement.
  20193. 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
  20194. * commands/usbtest.c (grub_usb_get_string): Properly support UTF-16.
  20195. 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
  20196. cmostest support.
  20197. * commands/i386/cmostest.c: New file.
  20198. * conf/i386-coreboot.rmk (pkglib_MODULES): Add cmostest.mod.
  20199. (cmostest_mod_SOURCES): New variable.
  20200. (cmostest_mod_CFLAGS): Likewise.
  20201. (cmostest_mod_LDFLAGS): Likewise.
  20202. * conf/i386-pc.rmk: Likewise.
  20203. * docs/grub.texi (Vendor power-on keys): New section.
  20204. * util/grub-mkconfig.in: export GRUB_DEFAULT_BUTTON,
  20205. GRUB_HIDDEN_TIMEOUT_BUTTON, GRUB_TIMEOUT_BUTTON
  20206. and GRUB_BUTTON_CMOS_ADDRESS.
  20207. * util/grub.d/00_header.in: Handle powering-on by separate button.
  20208. 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
  20209. * gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding.
  20210. Removed drawing_scrollbar argument. All users updated
  20211. Fixes #29792.
  20212. Reported by Jo Shields
  20213. 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
  20214. * gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current
  20215. buffer since gfxterm handles double repaint.
  20216. 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
  20217. * gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers.
  20218. * term/gfxterm.c (real_scroll): Likewise.
  20219. 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
  20220. * kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry
  20221. before calling BIOS.
  20222. 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
  20223. * include/grub/i18n.h: Always enable grub_gettext.
  20224. 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
  20225. * kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old
  20226. partition naming style.
  20227. 2010-05-21 Colin Watson <cjwatson@ubuntu.com>
  20228. * util/grub-mkconfig.in: Fix handling of -o so that it works when
  20229. not the first option.
  20230. 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
  20231. * util/grub-mkrelpath.c (usage): Remove excess apostrophe.
  20232. 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
  20233. * util/misc.c: Move inclusion of <limits.h> to ...
  20234. * kern/emu/misc.c: ... here. Needed for canonicalize_file_name.
  20235. 2010-05-20 Grégoire Sutre <gregoire.sutre@gmail.com>
  20236. * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev) [__NetBSD__]:
  20237. Fix merge error in NetBSD code.
  20238. (find_partition_start) [__NetBSD__]: Likewise.
  20239. 2010-05-19 BVK Chaitanya <bvk.groups@gmail.com>
  20240. Fix grub-mkrescue usage unit testing.
  20241. * tests/util/grub-shell.in: Use --grub-mkimage with grub-mkrescue.
  20242. 2010-05-18 Christian Franke <franke@computer.org>
  20243. * util/grub.d/10_windows.in: Use path names instead of
  20244. drive letters to prevent warning from Cygwin 1.7.
  20245. Add drivemap command to menuentry if needed.
  20246. 2010-05-18 Justus Winter <4winter@informatik.uni-hamburg.de>
  20247. * util/grub.d/10_hurd.in: Include all gnumach* kernels, not only
  20248. gnumach and gnumach.gz.
  20249. 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
  20250. * include/grub/i18n.h (gettext): Inline instead of using #define.
  20251. (grub_gettext): Likewise.
  20252. (_): Likewise.
  20253. 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
  20254. * Makefile.in (CPPFLAGS): Replace -DGRUB_LIBDIR with
  20255. -DGRUB_PKGLIBROOTDIR= and prepend @PACKAGE_TARNAME@. All users updated.
  20256. * util/grub-mkimage.c (image_targets): Add i386-multiboot.
  20257. (main): Add a slash after pkglibdirroot.
  20258. 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
  20259. * util/grub-install.in: Add missing "in" keyword.
  20260. 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
  20261. * util/grub-mkrescue.in: Remove -O i386-pc duplication.
  20262. Reported by: Seth Goldberg.
  20263. 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
  20264. * po/POTFILES: Rename util/grub-mkrawimage.c to util/grub-mkimage.c.
  20265. 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
  20266. * configure.ac: Check for Linux device-mapper support.
  20267. * util/hostdisk.c (device_is_mapped): New function.
  20268. (find_partition_start): New function, partly broken out from
  20269. linux_find_partition and grub_util_biosdisk_get_grub_dev but with
  20270. device-mapper support added.
  20271. (linux_find_partition): Use find_partition_start.
  20272. (convert_system_partition_to_system_disk): Add `st' argument.
  20273. Support Linux /dev/mapper/* devices if device-mapper support is
  20274. available; only DM-RAID devices are understood at present.
  20275. (find_system_device): Add `st' argument. Pass it to
  20276. convert_system_partition_to_system_disk.
  20277. (grub_util_biosdisk_get_grub_dev): Pass stat result to
  20278. find_system_device and convert_system_partition_to_system_disk. Use
  20279. find_partition_start.
  20280. * conf/common.rmk (grub_mkdevicemap_SOURCES): Add kern/env.c,
  20281. kern/err.c, kern/list.c, kern/misc.c, and kern/emu/mm.c.
  20282. * util/deviceiter.c [__linux__]: Define MINOR.
  20283. (grub_util_iterate_devices): Add support for DM-RAID disk devices.
  20284. * util/mkdevicemap.c (grub_putchar): New function.
  20285. (grub_getkey): New function.
  20286. (grub_refresh): New function.
  20287. (main): Set debug=all if -v -v is used.
  20288. 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
  20289. Fix build with non-GNU libcs.
  20290. * util/misc.c (canonicalize_file_name): Move to ...
  20291. * kern/emu/misc.c (canonicalize_file_name): ... here. Needed by
  20292. grub_make_system_path_relative_to_its_root.
  20293. 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
  20294. * util/grub-mkrescue.in: Sync up with grub-install in terms of how
  20295. we handle finding grub-mkimage. Default to finding grub-mkimage in
  20296. ${bindir} with program_transform_name applied, and provide a
  20297. --grub-mkimage option to override this.
  20298. 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
  20299. Remove grub-mkisofs.
  20300. * conf/common.rmk (bin_UTILITIES): Remove grub-mkisofs.
  20301. (grub_mkisofs_SOURCES): Removed.
  20302. (grub_mkisofs_CFLAGS): Removed.
  20303. * util/mkisofs/defaults.h: Removed.
  20304. * util/mkisofs/eltorito.c: Likewise.
  20305. * util/mkisofs/exclude.h: Likewise.
  20306. * util/mkisofs/hash.c: Likewise.
  20307. * util/mkisofs/include/: Likewise.
  20308. * util/mkisofs/include/fctldefs.h: Likewise.
  20309. * util/mkisofs/include/mconfig.h: Likewise.
  20310. * util/mkisofs/include/prototyp.h: Likewise.
  20311. * util/mkisofs/include/statdefs.h: Likewise.
  20312. * util/mkisofs/iso9660.h: Likewise.
  20313. * util/mkisofs/joliet.c: Likewise.
  20314. * util/mkisofs/match.c: Likewise.
  20315. * util/mkisofs/match.h: Likewise.
  20316. * util/mkisofs/mkisofs.c: Likewise.
  20317. * util/mkisofs/mkisofs.h: Likewise.
  20318. * util/mkisofs/msdos_partition.h: Likewise.
  20319. * util/mkisofs/multi.c: Likewise.
  20320. * util/mkisofs/name.c: Likewise.
  20321. * util/mkisofs/rock.c: Likewise.
  20322. * util/mkisofs/tree.c: Likewise.
  20323. * util/mkisofs/write.c: Likewise.
  20324. 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
  20325. Unify grub-mkimage accross platforms.
  20326. * Makefile.in (CPPFLAGS): Set GRUB_LIBDIR to $(libdir).
  20327. * conf/common.rmk (bin_UTILITIES): Removed grub-mkelfimage.
  20328. (grub_mkelfimage_SOURCES): Removed.
  20329. (util/elf/grub-mkimage.c_DEPENDENCIES): Renamed to ..
  20330. (util/grub-mkimage.c_DEPENDENCIES): .. this.
  20331. (bin_UTILITIES): Add grub-mkimage.
  20332. (grub_mkimage_SOURCES): New variable.
  20333. (kernel_img_HEADERS): Remove machine/kernel.h.
  20334. * conf/i386-pc.rmk (pkglib_IMAGES): Remove kernel.img.
  20335. (pkglib_PROGRAMS): Add kernel.img.
  20336. (kernel_img_HEADERS): Add machine/kernel.h.
  20337. (kernel_img_FORMAT): Removed.
  20338. (bin_UTILITIES): Remove grub-mkimage.
  20339. (grub_mkimage_SOURCES): Removed.
  20340. (grub_mkimage_CFLAGS): Likewise.
  20341. (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
  20342. * conf/i386-qemu.rmk (pkglib_IMAGES): Remove kernel.img.
  20343. (pkglib_PROGRAMS): Add kernel.img.
  20344. (bin_UTILITIES): Remove grub-mkimage.
  20345. (grub_mkimage_SOURCES): Removed.
  20346. (grub_mkimage_CFLAGS): Likewise.
  20347. (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
  20348. * conf/mips-qemu-mips.rmk (pkglib_IMAGES): Remove kernel.img.
  20349. (pkglib_PROGRAMS): Add kernel.img.
  20350. * conf/mips-yeeloong.rmk (pkglib_IMAGES): Remove kernel.img.
  20351. (pkglib_PROGRAMS): Add kernel.img.
  20352. * conf/mips.rmk (bin_UTILITIES): Remove grub-mkimage.
  20353. (grub_mkimage_SOURCES): Removed.
  20354. (grub_mkimage_CFLAGS): Likewise.
  20355. (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
  20356. * conf/sparc64-ieee1275.rmk (pkglib_IMAGES): Remove kernel.img.
  20357. (pkglib_PROGRAMS): Add kernel.img.
  20358. (bin_UTILITIES): Remove grub-mkimage.
  20359. (grub_mkimage_SOURCES): Removed.
  20360. (grub_mkimage_CFLAGS): Likewise.
  20361. (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
  20362. * conf/x86-efi.rmk (bin_UTILITIES): Remove grub-mkimage.
  20363. (grub_mkimage_SOURCES): Removed.
  20364. (grub_mkimage_CFLAGS): Likewise.
  20365. (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
  20366. * configure.ac (machine_CFLAGS): Add "-DMACHINE".
  20367. * include/grub/efi/pe32.h (grub_pe32_optional_header): Split into ...
  20368. (grub_pe32_optional_header): ... this.
  20369. (grub_pe64_optional_header): ... and this. All users updated.
  20370. (GRUB_PE32_PE32_MAGIC): Split into ..
  20371. (GRUB_PE32_PE32_MAGIC): .. this.
  20372. (GRUB_PE32_PE64_MAGIC): .. and this.
  20373. (GRUB_PE32_SIGNATURE_SIZE): New definition.
  20374. * include/grub/elf.h (PT_GNU_STACK): New definition.
  20375. * include/grub/i386/coreboot/kernel.h: Merged into include/grub/offsets.h. All users updated.
  20376. * include/grub/i386/efi/kernel.h: Likewise.
  20377. * include/grub/i386/kernel.h: Likewise.
  20378. * include/grub/i386/pc/kernel.h: Likewise.
  20379. * include/grub/i386/qemu/boot.h: Likewise.
  20380. * include/grub/mips/kernel.h: Likewise.
  20381. * include/grub/mips/qemu-mips/kernel.h: Likewise.
  20382. * include/grub/powerpc/ieee1275/kernel.h: Likewise.
  20383. * include/grub/powerpc/kernel.h: Likewise.
  20384. * include/grub/sparc64/ieee1275/boot.h: Likewise.
  20385. * include/grub/sparc64/ieee1275/kernel.h: Likewise.
  20386. * include/grub/sparc64/kernel.h: Likewise.
  20387. * include/grub/x86_64/efi/kernel.h: Likewise.
  20388. * include/grub/x86_64/kernel.h: Likewise.
  20389. * include/grub/offsets.h: New file.
  20390. * include/grub/kernel.h (grub_module_info): Split into ...
  20391. (grub_module_info32): ... this.
  20392. (grub_module_info64): ... and this.
  20393. * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_KERNEL_SEG): Moved from here ...
  20394. * include/grub/offsets.h (GRUB_BOOT_I386_PC_KERNEL_SEG): ... here.
  20395. (grub_boot_blocklist): Moved from here ...
  20396. * include/grub/offsets.h (grub_pc_bios_boot_blocklist): ... here.
  20397. * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): Moved from here.
  20398. * include/grub/offsets.h (GRUB_MEMORY_I386_PC_UPPER): .. here.
  20399. * include/grub/types.h (grub_target_to_host16): Removed.
  20400. (grub_target_to_host32): Likewise.
  20401. (grub_target_to_host64): Likewise.
  20402. (grub_host_to_target16): Likewise.
  20403. (grub_host_to_target32): Likewise.
  20404. (grub_host_to_target64): Likewise.
  20405. (grub_host_to_target_addr): Likewise.
  20406. Support grub-mkrescue for efi, coreboot and qemu.
  20407. * conf/x86-efi.rmk (bin_SCRIPTS): Add grub-mkrescue.
  20408. * kern/efi/init.c (grub_efi_set_prefix): Handle baked in prefix.
  20409. * util/elf/grub-mkimage.c: Merged into util/grub-mkimage.c.
  20410. * util/grub-mkrawimage.c: Moved from here ...
  20411. * util/grub-mkimage.c: ... here. All users updated.
  20412. (ALIGN_ADDR): Use image_target.
  20413. (TARGET_NO_FIELD): New const.
  20414. (image_target_desc): New type.
  20415. (image_targets): New array.
  20416. (grub_target_to_host64): Use image_target.
  20417. (grub_target_to_host32): Likewise.
  20418. (grub_target_to_host16): Likewise.
  20419. (grub_host_to_target64): Likewise.
  20420. (grub_host_to_target32): Likewise.
  20421. (grub_host_to_target16): Likewise.
  20422. (grub_host_to_target_addr): Likewise.
  20423. (generate_image): Handle multiimage.
  20424. (main): Require -O parameter. All users updated.
  20425. * util/grub-mkimagexx.c: New file. Based on util/grub-mkrawimage.c and
  20426. util/efi/grub-mkimage.c
  20427. * util/grub-mkrescue.in: Handle coreboot, efi and qemu.
  20428. New option --rom-directory.
  20429. Use xorriso.
  20430. * util/i386/efi/grub-mkimage.c: Removed.
  20431. * util/i386/pc/grub-setup.c (grub_target_to_host16): New definition.
  20432. (grub_target_to_host32): Likewise.
  20433. (grub_target_to_host64): Likewise.
  20434. (grub_host_to_target16): Likewise.
  20435. (grub_host_to_target32): Likewise.
  20436. (grub_host_to_target64): Likewise.
  20437. * util/sparc64/ieee1275/grub-setup.c (grub_target_to_host16): New definition.
  20438. (grub_target_to_host32): Likewise.
  20439. (grub_target_to_host64): Likewise.
  20440. (grub_host_to_target16): Likewise.
  20441. (grub_host_to_target32): Likewise.
  20442. (grub_host_to_target64): Likewise.
  20443. 2010-05-17 BVK Chaitanya <bvk.groups@gmail.com>
  20444. Source tree is reorganized for emu build.
  20445. * include/grub/util/console.h: Move from here...
  20446. * include/grub/emu/console.h: ...to here.
  20447. * include/grub/util/getroot.h: Move from here...
  20448. * include/grub/emu/getroot.h: ...to here.
  20449. * include/grub/util/hostdisk.h: Move from here...
  20450. * include/grub/emu/hostdisk.h: ...to here.
  20451. * util/console.c: Move from here...
  20452. * kern/emu/console.c: ...to here.
  20453. * util/getroot.c: Move from here...
  20454. * kern/emu/getroot.c: ...to here.
  20455. * util/grub-emu.c: Move from here...
  20456. * kern/emu/main.c: ...to here.
  20457. * util/hostdisk.c: Move from here...
  20458. * kern/emu/hostdisk.c: ...to here.
  20459. * util/hostfs.c: Move from here...
  20460. * kern/emu/hostfs.c: ...to here.
  20461. * util/mm.c: Move from here...
  20462. * kern/emu/mm.c: ...to here.
  20463. * util/pci.c: Move from here...
  20464. * bus/emu/pci.c: ...to here.
  20465. * util/sdl.c: Move from here...
  20466. * video/emu/sdl.c: ...to here.
  20467. * util/time.c: Move from here...
  20468. * kern/emu/time.c: ...to here.
  20469. * util/usb.c: Move from here...
  20470. * bus/usb/emu/usb.c: ...to here.
  20471. * include/grub/emu/misc.h: New header for grub-emu functions.
  20472. * kern/emu/misc.c: grub-emu functions separated from util/misc.c
  20473. * conf/any-emu.rmk: Rule updates for above renames.
  20474. * conf/common.rmk: Likewise.
  20475. * conf/i386-pc.rmk: Likewise.
  20476. * conf/i386-qemu.rmk: Likewise.
  20477. * conf/mips.rmk: Likewise.
  20478. * conf/sparc64-ieee1275.rmk: Likewise.
  20479. * conf/x86-efi.rmk: Likewise.
  20480. * disk/lvm.h: #include updates for above renames.
  20481. * util/grub-mkrelpath.c: Likewise.
  20482. * util/grub-probe.c: Likewise.
  20483. * util/i386/pc/grub-setup.c: Likewise.
  20484. * util/sparc64/ieee1275/grub-setup.c: Likewise.
  20485. * kern/emu/console.c: Likewise.
  20486. * kern/emu/getroot.c: Likewise.
  20487. * kern/emu/hostdisk.c: Likewise.
  20488. * kern/emu/main.c: Likewise. (was grub-emu.c earlier)
  20489. * include/grub/dl.h: Remove grub_dl_{ref,unref}.
  20490. * include/grub/util/misc.h: Move grub-emu functions to emu/misc.h.
  20491. * kern/dl.c: Handle null mod in grub_dl_{ref,unref}.
  20492. * util/misc.c: Remove grub-emu functions.
  20493. 2010-05-13 Vladimir Serbinenko <phcoder@gmail.com>
  20494. Fix gfxmenu crash.
  20495. Reported by: Thorsten Grützmacher.
  20496. * gfxmenu/gui_circular_progress.c (circprog_destroy): Unregister
  20497. timeout hook.
  20498. (circprog_set_property): Register and unregister timeout hook.
  20499. * gfxmenu/gui_label.c (grub_gui_label): New fields template and value.
  20500. (label_destroy): Free template. and unregister hook.
  20501. (label_set_state): New function.
  20502. (label_set_property): Handle templates and hooks.
  20503. * gfxmenu/gui_progress_bar.c (progress_bar_destroy): Unregister
  20504. timeout hook.
  20505. (progress_bar_set_property): Register and unregister timeout hook.
  20506. * gfxmenu/view.c (TIMEOUT_COMPONENT_ID): Move from here ...
  20507. * include/grub/gui.h (GRUB_GFXMENU_TIMEOUT_COMPONENT_ID): ...to here
  20508. * gfxmenu/view.c (grub_gfxmenu_timeout_notifications): New variable.
  20509. (update_timeout_visit): Removed.
  20510. (update_timeouts): New function.
  20511. (redraw_timeouts): Likewise.
  20512. (grub_gfxmenu_print_timeout): Use update_timeouts and redraw_timeouts.
  20513. (grub_gfxmenu_clear_timeout): Likewise.
  20514. * include/grub/gui.h (grub_gfxmenu_set_state_t): New type.
  20515. (grub_gfxmenu_timeout_notify): Likewise.
  20516. (grub_gfxmenu_timeout_notifications): New external variable.
  20517. (grub_gfxmenu_timeout_register): New function.
  20518. (grub_gfxmenu_timeout_unregister): Likewise.
  20519. 2010-05-09 Vladimir Serbinenko <phcoder@gmail.com>
  20520. Transform (broken) vga terminal into (working) vga video driver.
  20521. * conf/i386-pc.rmk (vga_mod_SOURCES): Change term/i386/pc/vga.c to
  20522. video/i386/pc/vga.c.
  20523. * include/grub/video.h (grub_video_driver_id):
  20524. Add GRUB_VIDEO_DRIVER_VGA.
  20525. * term/i386/pc/vga.c: Renamed to ...
  20526. * video/i386/pc/vga.c: ...this
  20527. (DEBUG_VGA): Removed.
  20528. (CHAR_WIDTH): Likewise.
  20529. (CHAR_HEIGHT): Likewise.
  20530. (TEXT_WIDTH): Likewise.
  20531. (TEXT_HEIGHT): Likewise.
  20532. (DEFAULT_FG_COLOR): Likewise.
  20533. (DEFAULT_BG_COLOR): Likewise.
  20534. (colored_char): Likewise.
  20535. (xpos): Likewise.
  20536. (ypos): Likewise.
  20537. (cursor_state): Likewise.
  20538. (fg_color): Likewise.
  20539. (bg_color): Likewise.
  20540. (text_buf): Likewise.
  20541. (page): Likewise.
  20542. (font): Likewise.
  20543. (framebuffer): New variable.
  20544. (set_read_map): Disabled.
  20545. (setup): New variable.
  20546. (is_target): Likewise.
  20547. (grub_vga_mod_init): Likewise.
  20548. (grub_vga_mod_fini): Likewise.
  20549. (check_vga_mem): Likewise.
  20550. (write_char): Likewise.
  20551. (write_cursor): Likewise.
  20552. (scroll_up): Likewise.
  20553. (grub_vga_putchar): Likewise.
  20554. (grub_vga_getcharwidth): Likewise.
  20555. (grub_vga_getwh): Likewise.
  20556. (grub_vga_getxy): Likewise.
  20557. (grub_vga_gotoxy): Likewise.
  20558. (grub_vga_cls): Likewise.
  20559. (grub_vga_setcolorstate): Likewise.
  20560. (grub_vga_setcursor): Likewise.
  20561. (grub_video_vga_init): New function.
  20562. (grub_video_vga_setup): Likewise.
  20563. (grub_video_vga_fini): Likewise.
  20564. (update_target): Likewise.
  20565. (grub_video_vga_blit_bitmap): Likewise.
  20566. (grub_video_vga_blit_render_target): Likewise.
  20567. (grub_video_vga_set_active_render_target): Likewise.
  20568. (grub_video_vga_get_active_render_target): Likewise.
  20569. (grub_video_vga_swap_buffers): Likewise.
  20570. (grub_video_vga_set_palette): Likewise.
  20571. (grub_video_vga_get_info_and_fini): Likewise.
  20572. (grub_vga_term): Removed.
  20573. (grub_video_vga_adapter): New variable.
  20574. (GRUB_MOD_INIT): Register a video driver instead of terminal.
  20575. (GRUB_MOD_FINI): Unrefister a video driver instead of terminal.
  20576. 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
  20577. * video/readers/jpeg.c: Indented.
  20578. 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
  20579. Various jpeg cleanups.
  20580. * video/readers/jpeg.c (grub_jpeg_get_huff_code): Use ARRAY_SIZE.
  20581. (grub_jpeg_decode_quan_table): Use sizeof.
  20582. (grub_jpeg_decode_du): Use ARRAY_SIZE.
  20583. 2010-05-05 Peter Hurley <No e-mail available> (tiny change)
  20584. * video/readers/jpeg.c (grub_jpeg_decode_huff_table): Loop over all
  20585. tables. Ignore non-last ac bit.
  20586. (grub_jpeg_decode_quan_table): Likewise.
  20587. 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
  20588. * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
  20589. GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM.
  20590. * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
  20591. GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM on qemu.
  20592. * kern/ieee1275/init.c (grub_claim_heap): Don0t allocate below
  20593. 1.5MiB if GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM is set.
  20594. 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
  20595. * term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
  20596. error.
  20597. 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
  20598. * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.
  20599. 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
  20600. * commands/parttool.c (grub_cmd_parttool): Fix #if !GRUB_NO_MODULES
  20601. condition.
  20602. 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
  20603. * kern/mm.c (grub_real_malloc): Put magic and size assignment in common
  20604. part.
  20605. 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
  20606. * kern/mm.c (grub_mm_init_region): Check for region size after aligning
  20607. pointers.
  20608. 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
  20609. * kern/mm.c (grub_real_malloc): Fix size calculation when extra == 0.
  20610. 2010-05-01 Christian Franke <franke@computer.org>
  20611. * util/grub-mkconfig_lib.in (make_system_path_relative_to_its_root):
  20612. Remove broken Cygwin path conversion.
  20613. * util/misc.c: [__CYGWIN__] Add include and define.
  20614. [__CYGWIN__] (get_win32_path): Copy function from getroot.c, modify
  20615. for Cygwin 1.7.
  20616. (make_system_path_relative_to_its_root): Simplify loop, replace early
  20617. return by break.
  20618. [__CYGWIN__] Add conversion to win32 path.
  20619. Include "/" case in trailing slash removal.
  20620. 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
  20621. * kern/main.c (grub_load_config): Fix copy-pasted comment.
  20622. Reported by: Seth Goldberg
  20623. 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
  20624. * commands/help.c (grub_cmd_help): Fix a typo.
  20625. Reported by: Seth Goldberg
  20626. 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
  20627. * commands/hashsum.c (GRUB_MOD_INIT): Remove duplication of command
  20628. name and add N_.
  20629. * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Likewise.
  20630. * commands/iorw.c (GRUB_MOD_INIT): Likewise.
  20631. * commands/password_pbkdf2.c (GRUB_MOD_INIT): Likewise.
  20632. * commands/regexp.c (GRUB_MOD_INIT): Likewise.
  20633. * commands/setpci.c (GRUB_MOD_INIT): Likewise.
  20634. * commands/terminal.c (GRUB_MOD_INIT): Likewise.
  20635. * efiemu/main.c (GRUB_MOD_INIT): Likewise.
  20636. * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
  20637. * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
  20638. * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
  20639. * normal/context.c (GRUB_MOD_INIT): Likewise.
  20640. * normal/main.c (GRUB_MOD_INIT): Likewise.
  20641. * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
  20642. * term/serial.c (GRUB_MOD_INIT): Likewise.
  20643. * term/terminfo.c (GRUB_MOD_INIT): Likewise.
  20644. 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
  20645. * kern/mm.c (grub_real_malloc): Satisfy alignment requirement when
  20646. extra == 0.
  20647. 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
  20648. * commands/iorw.c: New file.
  20649. * conf/i386.rmk (pkglib_MODULES): Add iorw.mod.
  20650. (iorw_mod_SOURCES): New variable.
  20651. (iorw_mod_CFLAGS): Likewise.
  20652. (iorw_mod_LDFLAGS): Likewise.
  20653. 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
  20654. Hotkey support
  20655. * include/grub/menu.h (grub_menu_entry): New field 'hotkey'.
  20656. * normal/main.c (hotkey_aliases): New variable.
  20657. (grub_normal_add_menu_entry): Parse "--hotkey".
  20658. * normal/menu_text.c (run_menu): Handle hotkeys.
  20659. 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
  20660. * kern/i386/coreboot/init.c (grub_machine_init): Call
  20661. grub_machine_mmap_init on qemu.
  20662. 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
  20663. * boot/i386/qemu/boot.S: Add a missing .code16.
  20664. 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
  20665. Use LBIO on coreboot.
  20666. * conf/i386-coreboot.rmk (kernel_img_SOURCES): Change
  20667. kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c.
  20668. * include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK):
  20669. New declaration.
  20670. * kern/i386/coreboot/init.c (grub_machine_init): Don't call
  20671. grub_machine_mmap_init on coreboot.
  20672. * kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle
  20673. GRUB_LINUXBIOS_MEMBER_LINK.
  20674. (grub_machine_mmap_iterate): Fix declaration.
  20675. * kern/i386/coreboot/startup.S: Don't save mbi location on coreboot.
  20676. 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
  20677. Split coreboot and multiboot ports.
  20678. * conf/i386-multiboot.rmk: New file.
  20679. * configure.ac: Add multiboot port.
  20680. * include/grub/i386/multiboot/boot.h: New file.
  20681. * include/grub/i386/multiboot/console.h: Likewise.
  20682. * include/grub/i386/multiboot/init.h: Likewise.
  20683. * include/grub/i386/multiboot/kernel.h: Likewise.
  20684. * include/grub/i386/multiboot/loader.h: Likewise.
  20685. * include/grub/i386/multiboot/memory.h: Likewise.
  20686. * include/grub/i386/multiboot/serial.h: Likewise.
  20687. * include/grub/i386/multiboot/time.h: Likewise.
  20688. * include/grub/multiboot.h: Add GRUB_MACHINE_MULTIBOOT to ifdef.
  20689. * loader/multiboot.c: Likewise.
  20690. * loader/multiboot_mbi2.c: Likewise.
  20691. * util/grub-mkrescue.in: Generate multiboot rescue.
  20692. 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
  20693. * kern/parser.c (grub_parser_execute): Cope with read-only config.
  20694. 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
  20695. Merge handling of input and output terminals. Fix a hang.
  20696. * commands/terminal.c (abstract_terminal): New struct.
  20697. (handle_command): New function. Based on grub_cmd_terminal_input.
  20698. (grub_cmd_terminal_input): Use handle_command.
  20699. (grub_cmd_terminal_output): Use handle_command.
  20700. 2010-05-01 BVK Chaitanya <bvk.groups@gmail.com>
  20701. Fix comment handling.
  20702. * tests/grub_script_comments.in: New testcase.
  20703. * conf/tests.rmk: Rules for new testcase.
  20704. * script/yylex.l: Updated flex rules.
  20705. 2010-04-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
  20706. * docs/grub.texi (play): Document that zero pitches produce rests.
  20707. * commands/i386/pc/play.c (grub_cmd_play): Call 'grub_file_open' only
  20708. if argc is 1.
  20709. 2010-04-27 Vladimir Serbinenko <phcoder@gmail.com>
  20710. * conf/x86-efi.rmk (linux_mod_SOURCES): Write explicitly to avoid
  20711. autogen issues.
  20712. 2010-04-26 Christian Franke <franke@computer.org>
  20713. * include/grub/util/getroot.h (grub_get_prefix): Remove prototype.
  20714. * util/getroot.c [__CYGWIN__] (get_win32_path): Remove function.
  20715. (grub_get_prefix): Remove function.
  20716. * util/grub-emu.c (main): Replace grub_get_prefix () call by
  20717. make_system_path_relative_to_its_root ().
  20718. * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
  20719. 2010-04-24 Christian Franke <franke@computer.org>
  20720. * Makefile.in (TARGET_LDFLAGS): Add -static-libgcc.
  20721. (kernel_img_LDFLAGS): Remove -static-libgcc.
  20722. 2010-04-24 Christian Franke <franke@computer.org>
  20723. * configure.ac: Do not CHECK_BSS_START_SYMBOL
  20724. and CHECK_END_SYMBOL if grub-emu is built.
  20725. Unset TARGET_OBJ2ELF if grub-emu is built
  20726. without module support.
  20727. 2010-04-24 Jiro SEKIBA <jir@unicus.jp>
  20728. Nilfs2 support.
  20729. * conf/common.rmk (grub_probe_SOURCES): Add fs/nilfs2.c.
  20730. (grub_fstest_SOURCES): Likewise.
  20731. (pkglib_MODULES): Add nilfs2.mod.
  20732. (nilfs2_mod_SOURCES): New variable.
  20733. (nilfs2_mod_CFLAGS): Likewise.
  20734. (nilfs2_mod_LDFLAGS): Likewise.
  20735. * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
  20736. * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
  20737. * fs/nilfs2.c: New file.
  20738. 2010-04-21 Vladimir Serbinenko <phcoder@gmail.com>
  20739. * configure.ac: Refuse to compile for x86_64-efi is mcmodel=large
  20740. is not supported.
  20741. 2010-04-19 Grégoire Sutre <gregoire.sutre@gmail.com>
  20742. Add grub-mkconfig support for NetBSD.
  20743. * util/grub.d/10_netbsd.in: grub-mkconfig helper script for NetBSD.
  20744. * util/grub-mkconfig.in: export new NetBSD specific variables.
  20745. * po/POTFILES-shell: added 10_netbsd.in.
  20746. * util/grub-mkconfig_lib.in: check for gettext binary, default to echo.
  20747. 2010-04-19 BVK Chaitanya <bvk.groups@gmail.com>
  20748. Fix emu build with grub-emu-pci and grub-emu-modules.
  20749. * include/grub/util/misc.h: Export grub_util_{info,error,warn}
  20750. functions.
  20751. * include/grub/libpciaccess.h: New file.
  20752. * conf/any-emu.rmk: Update kernel headers for emu build.
  20753. 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
  20754. * fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.
  20755. 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
  20756. * fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames.
  20757. 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
  20758. * boot/sparc64/ieee1275/boot.S: Various size-reducing changes.
  20759. Retrieve chosen/bootpath if bootpath isn't hardcoded.
  20760. * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add
  20761. util/ieee1275/ofpath.c.
  20762. * util/sparc64/ieee1275/grub-ofpathname.c: Renamed to ...
  20763. * util/ieee1275/grub-ofpathname.c: ... this. All users updated
  20764. * include/grub/sparc64/ieee1275/boot.h
  20765. (GRUB_BOOT_MACHINE_KERNEL_SECTOR): Renamed to ...
  20766. (GRUB_BOOT_MACHINE_KERNEL_BYTE): ...this. Moved 8 bytes lower.
  20767. * util/hostdisk.c (grub_util_biosdisk_get_osdev): New function.
  20768. * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Make argument
  20769. const char *.
  20770. * util/sparc64/ieee1275/grub-setup.c (compute_dest_ofpath): Removed.
  20771. (setup): Use KERNEL_BYTE instead of KERNEL_SECTOR.
  20772. Use grub_util_devname_to_ofpath. Zero-fill boot_devpath on same disk
  20773. install.
  20774. 2010-04-18 Grégoire Sutre <gregoire.sutre@gmail.com>
  20775. * util/grub-mkconfig.in: Corrected two == equality tests.
  20776. Set grub_prefix as in grub-install for NetBSD and OpenBSD.
  20777. * configure.ac: All definitions and uses of TARGET_IMG_LDFLAGS_AC now
  20778. expect a number appended to it.
  20779. * acinclude.m4 (grub_PROG_OBJCOPY_ABSOLUTE): ${TARGET_IMG_LDFLAGS_AC}
  20780. expects a number appended to it.
  20781. 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
  20782. * po/POTFILES: Renamed multiboot_loader.c to multiboot.c
  20783. 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
  20784. * util/hostdisk.c (make_device_name): Change to new partition naming.
  20785. 2010-04-17 Vladimir Serbinenko <phcoder@gmail.com>
  20786. * disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0.
  20787. 2010-04-17 Christian Franke <franke@computer.org>
  20788. * Makefile.in: Add missing localedir setting.
  20789. 2010-04-14 Colin Watson <cjwatson@ubuntu.com>
  20790. Restore TEXTDOMAINDIR correction from r1889, lost apparently by
  20791. mistake in r2156. Noticed by Anthony Fok.
  20792. * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased
  20793. @localedir@.
  20794. * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
  20795. 2010-04-14 BVK Chaitanya <bvk.groups@gmail.com>
  20796. Fix a spurious, uninitialized variable warning.
  20797. * loader/i386/bsdXX.c (grub_freebsd_load_elfmodule_obj):
  20798. Initialize variable, shdr.
  20799. (grub_freebsd_load_elfmodule): Likewise.
  20800. (grub_freebsd_load_elf_meta): Likewise.
  20801. 2010-04-13 BVK Chaitanya <bvk.groups@gmail.com>
  20802. Fix for escaped dollar in double quoted strings.
  20803. * script/yylex.l: Updated flex rules.
  20804. * conf/tests.rmk: Rule for new testcase.
  20805. * tests/grub_script_dollar.in: New testcase.
  20806. 2010-04-13 Carles Pina i Estany <carles@pina.cat>
  20807. 2010-04-13 Colin Watson <cjwatson@ubuntu.com>
  20808. Enclose all translated strings in grub.cfg in single quotes, and
  20809. escape them appropriately (Ubuntu bug #552921).
  20810. * util/grub-mkconfig_lib.in (gettext_quoted): New function.
  20811. * util/grub.d/10_hurd.in: Use it.
  20812. * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
  20813. * util/grub.d/10_linux.in (linux_entry): Likewise.
  20814. 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
  20815. Fix cygwin compilation.
  20816. * configure.ac: Define NEED_REGISTER_FRAME_INFO.
  20817. * include/grub/misc.h (__register_frame_info)
  20818. [NEED_REGISTER_FRAME_INFO && !UTIL]: New export.
  20819. (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
  20820. * kern/misc.c (__register_frame_info)
  20821. [NEED_REGISTER_FRAME_INFO && !UTIL]: New empty function.
  20822. (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
  20823. 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
  20824. * configure.ac: Respect grub_cv_asm_uscore when defining dummy symbols.
  20825. 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
  20826. Unify libgcc processing.
  20827. * Makefile.in (kernel_img_LDFLAGS): New variable.
  20828. * conf/common.rmk (kernel_img_HEADERS): Add libgcc.h.
  20829. * conf/i386-coreboot.rmk (kernel_img_LDFLAGS): Append instead of
  20830. overwriting.
  20831. * conf/i386-ieee1275.rmk (kernel_img_LDFLAGS): Likewise.
  20832. * conf/i386-pc.rmk (kernel_img_LDFLAGS): Likewise.
  20833. * conf/i386-qemu.rmk (kernel_img_LDFLAGS): Likewise.
  20834. * conf/x86-efi.rmk (kernel_img_LDFLAGS): Likewise.
  20835. * conf/mips-qemu-mips.rmk (kernel_img_LDFLAGS): Append instead of
  20836. overwriting. Remove -lgcc and -static-libgcc
  20837. * conf/mips-yeeloong.rmk (kernel_img_LDFLAGS): Likewise.
  20838. * conf/mips.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
  20839. * conf/powerpc-ieee1275.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
  20840. (kernel_img_LDFLAGS): Append instead of overwriting.
  20841. Remove -lgcc and -static-libgcc
  20842. * conf/sparc64-ieee1275.rmk: Likewise.
  20843. * include/grub/powerpc/libgcc.h: Move to ...
  20844. * include/grub/libgcc.h: .. this.
  20845. * include/grub/libgcc.h: Don't export most of the function on x86.
  20846. (__bswapsi2): New export.
  20847. (__bswapdi2): Likewise.
  20848. * include/grub/mips/libgcc.h: Removed.
  20849. * include/grub/sparc64/libgcc.h: Likewise.
  20850. 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
  20851. * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Remove
  20852. disk_info_msg (conflicts with gettexting into languages with cases).
  20853. 2010-04-10 Grégoire Sutre <gregoire.sutre@gmail.com>
  20854. Add grub-probe support for NetBSD.
  20855. * util/getroot.c (find_root_device): Convert block device to
  20856. character device on NetBSD.
  20857. * util/probe.c (probe): Require character device on NetBSD.
  20858. * util/hostdisk.c: NetBSD specific headers.
  20859. (configure_device_driver): new function to tune device driver
  20860. parameters (currently only for NetBSD floppy driver).
  20861. (grub_util_biosdisk_open): NetBSD specific code (get disk size
  20862. via disklabel ioctl).
  20863. (open_device): call configure_device_driver on NetBSD.
  20864. (convert_system_partition_to_system_disk): NetBSD specific code.
  20865. (device_is_wholedisk): Likewise.
  20866. (grub_util_biosdisk_get_grub_dev): Likewise.
  20867. (make_device_name): Fixed a typo in bsd_part_str.
  20868. * configure.ac: check for opendisk() and getrawpartition() on
  20869. NetBSD and set LIBUTIL.
  20870. * Makefile.in: add LIBUTIL to LIBS.
  20871. 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
  20872. Documentation fix.
  20873. * util/grub-script-check.c: Better help message.
  20874. 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
  20875. Fix FreeBSD build.
  20876. * configure.ac: Flex version check.
  20877. * conf/common.rmk: Add -Wno-error to sh.mod.
  20878. * script/yylex.l: Remove all #pragma.
  20879. 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
  20880. * include/grub/util/misc.h (canonicalise_file_name): Add missing
  20881. prototype.
  20882. Reported by: Seth Goldberg.
  20883. 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
  20884. * loader/multiboot.c (GRUB_MOD_INIT) [GRUB_USE_MULTIBOOT2]:
  20885. Rename "module" to "module2".
  20886. Reported by: Seth Goldberg.
  20887. 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
  20888. * include/grub/efi/memory.h (grub_machine_mmap_iterate): Remove
  20889. EXPORT_FUNC.
  20890. Reported by: Seth Goldberg.
  20891. 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
  20892. * lib/posix_wrap/locale.h: Add missing file.
  20893. Reported by: Seth Goldberg.
  20894. 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
  20895. grub-emu module load support.
  20896. * Makefile.in (TARGET_NO_MODULES): New variable. All users of
  20897. NO_DYNAMIC_MODULES switched to this.
  20898. (TARGET_CFLAGS): Add -DGRUB_TARGET_NO_MODULES=1 if applicable.
  20899. (CFLAGS): Likewise.
  20900. * conf/any-emu.rmk: Generate symlist.
  20901. (kernel_img_HEADERS): Add util/datetime.h.
  20902. (kernel_img_HEADERS) [sdl]: Add sdl.h.
  20903. (kernel_img_HEADERS) [libusb]: Add libusb.h.
  20904. (kernel_img_SOURCES) [TARGET_NO_MODULES = no && !x86]: Add
  20905. kern/$(target_cpu)/cache.S.
  20906. * configure.ac (grub-emu-modules): New option.
  20907. * genmk.rb: Handle multiple source lists.
  20908. * include/grub/sdl.h: New file.
  20909. * include/grub/libusb.h: Likewise.
  20910. * util/grub-emu.c (main): Hanle (host) root.
  20911. * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Error with
  20912. GRUB_ERR_UNKNOWN_DEVICE.
  20913. * util/misc.c: Move mm functions to ...
  20914. * util/mm.c: ... here. All users updated.
  20915. 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
  20916. * Makefile.in (RMKFILES): Search in srcdir and not current directory.
  20917. (MAINTAINER_CLEANFILES): Don't add $(srcdir) to MKFILES. Add few
  20918. missing files.
  20919. (maintainer-clean): Remove libgcrypt-grub.
  20920. 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
  20921. * term/efi/console.c (grub_console_checkkey): Macroify key contants.
  20922. 2010-04-09 EFI Coder <eficoder@hotmail.com>
  20923. * normal/menu_text.c (print_message): Clean up the message and show
  20924. the Fn information when on EFI
  20925. * term/efi/console.c (grub_console_checkkey): Add F4 support.
  20926. 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
  20927. * normal/autofs.c (read_fs_list): New parameter 'prefix'.
  20928. All users updated.
  20929. * normal/crypto.c (read_crypto_list): Likewise.
  20930. * normal/dyncmd.c (read_command_list): Likewise.
  20931. * normal/term.c (read_terminal_list): Likewise.
  20932. * normal/main.c (read_lists): Use explicit prefix.
  20933. (read_lists_hook): Use read_lists.
  20934. (grub_normal_execute): Likewise.
  20935. 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
  20936. * util/grub-mkrescue.in: Fix incorrect path in coreboot part.
  20937. Reported by: Thomas Schmitt.
  20938. Add -no-emul-boot to grub-mkisofs parameters.
  20939. 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
  20940. * font/font.c: Indented.
  20941. 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
  20942. Elif support to GRUB script (by Deepak Vankadaru).
  20943. * tests/grub_script_if.in: New testcase.
  20944. * conf/tests.rmk: Rule for new testcase.
  20945. * script/parser.y: Grammar rules for elif.
  20946. 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
  20947. While and until loops support to GRUB script.
  20948. * include/grub/script_sh.h (grub_script_cmdwhile): New struct.
  20949. (grub_script_create_cmdwhile): New function prototype.
  20950. (grub_script_execute_cmdwhile): New function prototype.
  20951. * script/execute.c (grub_script_execute_cmdwhile): New function.
  20952. * script/parser.y (command): New commands.
  20953. (whilecmd): New grammar rule.
  20954. (untilcmd): New grammar rule.
  20955. * script/script.c (grub_script_create_cmdwhile): New function.
  20956. * util/grub-script-check.c (grub_script_execute_cmdwhile): New
  20957. function.
  20958. * tests/grub_script_while1.in: New testcase.
  20959. * conf/tests.rmk: Rule for new testcase.
  20960. 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
  20961. * util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg
  20962. as *.jpg.
  20963. 2010-04-09 Mario Vazquez <mariovazq@gmail.com>
  20964. GRUB_BACKGROUND support.
  20965. * util/grub-mkconfig.in: Export GRUB_BACKGROUND.
  20966. * util/grub.d/00_header.in: Parse GRUB_BACKGROUND.
  20967. 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
  20968. Load fonts and modules for gfxmenu in grub-mkconfig.
  20969. Idea by: Mario Vazquez
  20970. * util/grub.d/00_header.in: Load pf2 and image modules.
  20971. 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
  20972. grub-mkconfig multiple terminal support.
  20973. * util/grub-mkconfig.in: Handle multiple terminals correctly.
  20974. * util/grub.d/00_header.in: Likewise.
  20975. 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
  20976. * Makefile.in: Specify files explicitly instead of using $< and $@ since
  20977. we use cd $(srcdir).
  20978. 2010-04-08 Colin Watson <cjwatson@ubuntu.com>
  20979. * util/grub.d/10_linux.in: Only use the first word of
  20980. GRUB_DISTRIBUTOR for --class, to avoid problems if somebody puts
  20981. spaces in GRUB_DISTRIBUTOR.
  20982. * util/grub.d/10_kfreebsd.in: Likewise.
  20983. * util/grub.d/10_hurd.in: Likewise.
  20984. 2010-04-06 BVK Chaitanya <bvk.groups@gmail.com>
  20985. Fix unit testing framework for Qemu 0.12.
  20986. * tests/util/grub-shell.in: Remove -serial stdio option.
  20987. 2010-04-06 Vladimir Serbinenko <phcoder@gmail.com>
  20988. POSIX header file wrappers.
  20989. * lib/posix_wrap/assert.h: New file. Wrapper for its POSIX
  20990. equivalents.
  20991. * lib/posix_wrap/ctype.h: Likewise.
  20992. * lib/posix_wrap/errno.h: Likewise.
  20993. * lib/posix_wrap/langinfo.h: Likewise.
  20994. * lib/posix_wrap/limits.h: Likewise.
  20995. * lib/posix_wrap/localcharset.h: Likewise.
  20996. * lib/posix_wrap/stdint.h: Likewise.
  20997. * lib/posix_wrap/stdio.h: Likewise.
  20998. * lib/posix_wrap/stdlib.h: Likewise.
  20999. * lib/posix_wrap/string.h: Likewise.
  21000. * lib/posix_wrap/sys/types.h: Likewise.
  21001. * lib/posix_wrap/unistd.h: Likewise.
  21002. * lib/posix_wrap/wchar.h: Likewise.
  21003. * lib/posix_wrap/wctype.h: Likewise.
  21004. * conf/common.rmk (grub_script.yy.c): Remove #include elimination.
  21005. (grub_script.yy.h): Likewise.
  21006. * script/yylex.l: Remove POSIX emulation #defines.
  21007. * Makefile.in (POSIX_CFLAGS): New variable.
  21008. (GNULIB_UTIL_CFLAGS): Likewise.
  21009. Regexp support.
  21010. * conf/common.rmk (pkglib_MODULES): Add regexp.mod.
  21011. (regexp_mod_SOURCES): New variable.
  21012. (regexp_mod_CFLAGS): Likewise.
  21013. (regexp_mod_LDFLAGS): Likewise.
  21014. * commands/regexp.c: New file.
  21015. * gnulib/regcomp.c: New file. Imported from gnulib.
  21016. * gnulib/regex.c: Likewise.
  21017. * gnulib/regex_internal.c: Likewise.
  21018. * gnulib/regex_internal.h: Likewise.
  21019. * gnulib/regexec.c: Likewise.
  21020. * gnulib/regex.h: Likewise.
  21021. 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
  21022. * loader/i386/multiboot_mbi.c (grub_multiboot_load): Correctly report
  21023. unsupported video mode types.
  21024. 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
  21025. * kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).
  21026. 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
  21027. * include/grub/i386/pc/init.h (grub_get_mmap_entry): Don't export.
  21028. * conf/i386-pc.rmk (kernel_img_HEADERS): Remove machine/init.h.
  21029. 2010-04-04 Vladimir Serbinenko <phcoder@gmail.com>
  21030. Remove unused grub_vga_get_font.
  21031. * kern/i386/pc/startup.S (grub_vga_get_font): Removed.
  21032. * include/grub/i386/pc/vga.h (grub_vga_get_font): Likewise.
  21033. 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
  21034. * kern/misc.c: Disable the __enable_execute_stack hack for utilities.
  21035. * include/grub/misc.h: Likewise.
  21036. 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
  21037. * util/grub-install.in: Add `|| exit 1' to all grub-probe calls
  21038. for which failure is fatal.
  21039. 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
  21040. * util/grub-install.in: Use mkdir -p to create grub directory.
  21041. * util/i386/efi/grub-install.in: Likewise.
  21042. * util/ieee1275/grub-install.in: Likewise.
  21043. 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
  21044. * Makefile.in (LEX): new variable.
  21045. 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
  21046. * util/i386/efi/grub-dumpdevtree: replaced the non-portable `==' by
  21047. `=' and added double quotes on operands of this equality test.
  21048. 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
  21049. * Makefile.in (uninstall): Remove a leftover debug echo.
  21050. Reported by: Grégoire Sutre
  21051. 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
  21052. MIPS multiboot2 support.
  21053. * conf/mips.rmk (pkglib_MODULES): Add multiboot2.mod.
  21054. (multiboot2_mod_SOURCES): New variable.
  21055. (multiboot2_mod_CFLAGS): Likewise.
  21056. (multiboot2_mod_LDFLAGS): Likewise.
  21057. (multiboot2_mod_ASFLAGS): Likewise.
  21058. * include/grub/i386/multiboot.h (MULTIBOOT_INITIAL_STATE): New
  21059. definition.
  21060. (MULTIBOOT_ENTRY_REGISTER): Likewise.
  21061. (MULTIBOOT_MBI_REGISTER): Likewise.
  21062. (MULTIBOOT_ARCHITECTURE_CURRENT): Likewise.
  21063. (MULTIBOOT_ELF32_MACHINE): Likewise.
  21064. (MULTIBOOT_ELF64_MACHINE): Likewise.
  21065. * include/grub/mips/multiboot.h: New file.
  21066. * include/grub/video.h (grub_video_driver_id): New type
  21067. GRUB_VIDEO_DRIVER_SM712.
  21068. (grub_video_get_info_and_fini): Export.
  21069. (grub_video_get_palette): Likewise.
  21070. (grub_video_get_driver_id): Likewise.
  21071. * include/multiboot2.h: Resynced with spec.
  21072. * loader/i386/multiboot.c: Moved from here ...
  21073. * loader/multiboot.c: ... here. All users updated.
  21074. (grub_multiboot_boot): Use platform-specific macros.
  21075. * loader/i386/multiboot_elfxx.c: Moved from here ...
  21076. * loader/multiboot_elfxx.c: ... here. All users updated.
  21077. (E_MACHINE): Use MULTIBOOT_ELF32_MACHINE and MULTIBOOT_ELF64_MACHINE.
  21078. * loader/i386/multiboot_mbi2.c (grub_multiboot_load): Check arcitecture.
  21079. * video/sm712.c (grub_video_sm712_adapter): Add missing id field.
  21080. 2010-04-02 Vladimir Serbinenko <phcoder@gmail.com>
  21081. Import gnulib argp module.
  21082. * gnulib/argp-ba.c: New file.
  21083. * gnulib/argp-eexst.c: Likewise.
  21084. * gnulib/argp-fmtstream.c: Likewise.
  21085. * gnulib/argp-fmtstream.h: Likewise.
  21086. * gnulib/argp-fs-xinl.c: Likewise.
  21087. * gnulib/argp-help.c: Likewise.
  21088. * gnulib/argp-namefrob.h: Likewise.
  21089. * gnulib/argp-parse.c: Likewise.
  21090. * gnulib/argp-pin.c: Likewise.
  21091. * gnulib/argp-pv.c: Likewise.
  21092. * gnulib/argp-pvh.c: Likewise.
  21093. * gnulib/argp-version-etc.c: Likewise.
  21094. * gnulib/argp-version-etc.h: Likewise.
  21095. * gnulib/argp-xinl.c: Likewise.
  21096. * gnulib/argp.h: Likewise.
  21097. 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
  21098. * kern/device.c (grub_device_iterate): Clear errors after failed
  21099. opening device.
  21100. 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
  21101. * kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if
  21102. returned by firmware.
  21103. 2010-03-30 Vladimir Serbinenko <phcoder@gmail.com>
  21104. * loader/i386/multiboot_mbi2.c (retrieve_video_parameters): Fix
  21105. compilation on coreboot and qemu
  21106. 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
  21107. * include/multiboot2.h: Resync with spec.
  21108. 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
  21109. Multiboot2 tag support
  21110. * conf/i386.rmk (multiboot2_mod_SOURCES): Replace
  21111. loader/i386/multiboot_mbi.c with loader/i386/multiboot_mbi2.c.
  21112. Remove loader/multiboot_loader.c.
  21113. * include/grub/i386/multiboot.h (grub_multiboot_real_boot): Removed.
  21114. (grub_multiboot2_real_boot): Likewise.
  21115. * include/grub/multiboot.h (grub_multiboot_set_accepts_video): Removed.
  21116. (grub_get_multiboot_mmap_count): New proto.
  21117. (grub_fill_multiboot_mmap): Likewise.
  21118. (grub_multiboot_set_video_mode): Likewise.
  21119. (grub_multiboot_set_console): Likewise.
  21120. (grub_multiboot_load): Likewise.
  21121. (grub_multiboot_load_elf): Likewise.
  21122. (GRUB_MULTIBOOT_CONSOLE_EGA_TEXT): New definition.
  21123. (GRUB_MULTIBOOT_CONSOLE_FRAMEBUFFER): Likewise.
  21124. * include/multiboot.h: Resynced with specification.
  21125. * include/multiboot2.h: Resynced with specification.
  21126. * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): Moved from here...
  21127. * loader/i386/multiboot.c (DEFAULT_VIDEO_MODE): ... here.
  21128. * loader/i386/multiboot_mbi.c (HAS_VGA_TEXT): Moved from here ..
  21129. * include/grub/multiboot.h (GRUB_MACHINE_HAS_VGA_TEXT): ... here. All
  21130. users updated.
  21131. * loader/i386/multiboot_mbi.c (accepts_video): Moved from here...
  21132. * loader/i386/multiboot.c (accepts_video): ... here. All users updated.
  21133. * loader/i386/multiboot_mbi.c (grub_multiboot_set_accepts_video):
  21134. Removed.
  21135. * loader/i386/multiboot_mbi.c (grub_get_multiboot_mmap_len):
  21136. Moved from here...
  21137. * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): ... here.
  21138. * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
  21139. Moved from here...
  21140. * loader/i386/multiboot.c (grub_fill_multiboot_mmap): ... here.
  21141. * loader/i386/multiboot_mbi.c (set_video_mode): Moved from here...
  21142. * loader/i386/multiboot.c (grub_multiboot_set_video_mode): ... here.
  21143. All users updated.
  21144. * loader/i386/multiboot_mbi2.c: New file.
  21145. 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
  21146. Resync with gnulib.
  21147. * Makefile.in (GNULIB_CFLAGS): New variable.
  21148. * conf/common.rmk (grub_mkisofs_CFLAGS): Add GNULIB_CFLAGS.
  21149. (grub_script_check_CFLAGS): New variable.
  21150. * gnulib/alloca.h: Resync with gnulib.
  21151. * gnulib/error.c: Likewise.
  21152. * gnulib/error.h: Likewise.
  21153. * gnulib/fnmatch.c: Likewise.
  21154. * gnulib/fnmatch_loop.c: Likewise.
  21155. * gnulib/getdelim.c: Likewise.
  21156. * gnulib/getline.c: Likewise.
  21157. * gnulib/getopt.c: Likewise.
  21158. * gnulib/getopt1.c: Likewise.
  21159. * gnulib/getopt_int.h: Likewise.
  21160. * gnulib/gettext.h: Likewise.
  21161. * gnulib/progname.c: Likewise.
  21162. * gnulib/progname.h: Likewise.
  21163. 2010-03-27 Grégoire Sutre <gregoire.sutre@gmail.com>
  21164. Fix a build failure (-Wundef -Werror) when ENABLE_NLS is not defined,
  21165. which is the case with --disabled-nls.
  21166. * include/grub/i18n.h: Use (defined(ENABLE_NLS)
  21167. && ENABLE_NLS) instead of ENABLE_NLS in all #if preprocessor macros.
  21168. * util/misc.c: Likewise.
  21169. * util/mkisofs/mkisofs.c: Likewise.
  21170. * util/mkisofs/mkisofs.h: Likewise.
  21171. 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
  21172. Simplify Apple CC support.
  21173. * commands/i386/pc/drivemap_int13h.S: Use LOCAL when possible.
  21174. Add 0 byte at the end not to have a symbol with empty target.
  21175. * mmap/i386/pc/mmap_helper.S: Likewise.
  21176. * genmk.rb: Ignore errors 2030 and 2050.
  21177. * kern/i386/pc/startup.S: Use LOCAL when possible.
  21178. 2010-03-26 BVK Chaitanya <bvk.groups@gmail.com>
  21179. Testcase and the fix for final semicolon on cmdline.
  21180. * tests/grub_script_final_semicolon.in: New testcase.
  21181. * conf/tests.rmk: Rules for the new testcase.
  21182. * script/parser.y: Grammar fix.
  21183. 2010-03-26 BVK Chaitanya <bvk@localhost>
  21184. Blank lines testcase for GRUB script.
  21185. * tests/grub_script_blanklines.in: New testcase.
  21186. * conf/tests.rmk: Rules for the new testcase.
  21187. 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
  21188. Don't use __FILE__.
  21189. * genmk.rb: Add -DGRUB_FILE to all C targets.
  21190. * fs/reiserfs.c: Replace __FILE__ with GRUB_FILE.
  21191. * include/grub/list.h: Likewise.
  21192. * include/grub/misc.h: Likewise.
  21193. * include/grub/mm.h: Likewise.
  21194. * include/grub/test.h: Likewise.
  21195. * kern/mm.c: Likewise.
  21196. * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
  21197. 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
  21198. Sunpc partitions support.
  21199. * conf/common.rmk (grub_probe_SOURCES): Add partmap/sunpc.c.
  21200. (grub_fstest_SOURCES): Likewise.
  21201. (pkglib_MODULES): Add part_sunpc.mod.
  21202. (part_sunpc_mod_SOURCES): New variable.
  21203. (part_sunpc_mod_CFLAGS): Likewise.
  21204. (part_sunpc_mod_LDFLAGS): Likewise.
  21205. * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/sunpc.c.
  21206. * partmap/sunpc.c: New file.
  21207. 2010-03-26 BVK Chaitanya <bvk@localhost>
  21208. For loop support to GRUB script.
  21209. * include/grub/script_sh.h (grub_script_cmdfor): New struct.
  21210. (grub_script_create_cmdfor): New function prototype.
  21211. (grub_script_execute_cmdfor): New function prototype.
  21212. * script/execute.c (grub_script_execute_cmdfor): New function.
  21213. * script/parser.y (command): New for command.
  21214. (forcmd): New grammar rule.
  21215. * script/script.c (grub_script_create_cmdfor): New function.
  21216. * util/grub-script-check.c (grub_script_execute_cmdfor): New
  21217. function.
  21218. * tests/grub_script_for1.in: New testcase.
  21219. * conf/tests.rmk: Rules for new testcase.
  21220. 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
  21221. Nested partitions
  21222. * commands/blocklist.c (grub_cmd_blocklist): Don't check whether
  21223. 'partition' is NULL, grub_partition_get_start already does that.
  21224. * commands/loadenv.c (check_blocklists): Likewise.
  21225. (write_blocklists): Likewise.
  21226. * conf/common.rmk (grub_probe_SOURCES): Add partmap/bsdlabel.c.
  21227. (grub_fstest_SOURCES): Likewise.
  21228. (pkglib_MODULES): Add part_bsd.mod.
  21229. (part_bsd_mod_SOURCES): New variable.
  21230. (part_bsd_mod_CFLAGS): Likewise.
  21231. (part_bsd_mod_LDFLAGS): Likewise.
  21232. * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/bsdlabel.c.
  21233. (grub_emu_SOURCES): Likewise.
  21234. * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
  21235. * include/grub/bsdlabel.h: New file.
  21236. * include/grub/partition.h (grub_partition_map): Remove 'probe' and
  21237. 'get_name'.
  21238. (grub_partition): Add 'parent' and 'number'. Remove 'data'.
  21239. (grub_partition_map_list): New variable.
  21240. (grub_partition_map_register): Inline.
  21241. (grub_partition_map_unregister): Likewise.
  21242. (FOR_PARTITION_MAPS): New macro.
  21243. (grub_partition_map_iterate): Removed.
  21244. (grub_partition_get_start): Handle nested partitions.
  21245. * include/grub/msdos_partition.h: Remove bsd-related entries.
  21246. (grub_pc_partition): Remove.
  21247. * kern/disk.c (grub_disk_close): Free partition data.
  21248. (grub_disk_adjust_range): Handle nested partitions.
  21249. * kern/partition.c (grub_partition_map_probe): New function.
  21250. (grub_partition_probe): Parse name to number, handle subpartitions.
  21251. (get_partmap): New function.
  21252. (grub_partition_iterate): Handle subpartitions.
  21253. (grub_partition_get_name): Likewise.
  21254. * loader/i386/pc/bsd.c (grub_bsd_get_device): Likewise.
  21255. * loader/i386/multiboot.c (grub_multiboot_get_bootdev): Likewise.
  21256. * loader/i386/pc/chainloader.c (grub_chainloader_cmd): Likewise.
  21257. * partmap/acorn.c (acorn_partition_map_iterate): Don't force raw access.
  21258. Set 'number'.
  21259. (acorn_partition_map_probe): Remove.
  21260. (acorn_partition_map_get_name): Likewise.
  21261. * partmap/amiga.c (amiga_partition_map_iterate): Don't force raw access.
  21262. Set 'number'.
  21263. Set 'index' to 0 since there can be only one partition entry per sector.
  21264. (amiga_partition_map_probe): Remove.
  21265. (amiga_partition_map_get_name): Likewise.
  21266. * partmap/apple.c (apple_partition_map_iterate): Don't force raw access.
  21267. Set 'number'.
  21268. Set 'offset' and 'index' to real positions of partitions.
  21269. (apple_partition_map_probe): Remove.
  21270. (apple_partition_map_get_name): Likewise.
  21271. * partmap/bsdlabel.c: New file.
  21272. * partmap/gpt.c (gpt_partition_map_iterate): Don't force raw access.
  21273. Set 'number'.
  21274. Allocate 'data' so it can be correctly freed.
  21275. Set 'index' to offset inside sector.
  21276. (gpt_partition_map_probe): Remove.
  21277. (gpt_partition_map_get_name): Likewise.
  21278. * partmap/msdos.c (grub_partition_parse): Remove.
  21279. (pc_partition_map_iterate): Don't force raw access.
  21280. Set 'number'.
  21281. Make 'ext_offset' a local variable.
  21282. (pc_partition_map_probe): Remove.
  21283. (pc_partition_map_get_name): Remove.
  21284. * partmap/sun.c (sun_partition_map_iterate): Don't force raw access.
  21285. Set 'number'.
  21286. (sun_partition_map_probe): Remove.
  21287. (sun_partition_map_get_name): Likewise.
  21288. * parttool/msdospart.c (grub_pcpart_boot): Handle nested partitions.
  21289. (grub_pcpart_type): Likewise.
  21290. * util/hostdisk.c (open_device): Handle new numbering scheme.
  21291. (grub_util_biosdisk_get_grub_dev): Handle nested partitions.
  21292. * util/i386/pc/grub-setup.c (setup): Handle new numbering scheme.
  21293. * util/grub-probe.c (probe_partmap): Handle nested paritions.
  21294. * util/grub-install.in: Insert all subpartition modules.
  21295. * util/ieee1275/grub-install.in: Likewise.
  21296. 2010-03-24 Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
  21297. * kern/dl.c (grub_dl_resolve_symbols): Improve error message
  21298. grammar.
  21299. 2010-03-24 Colin Watson <cjwatson@ubuntu.com>
  21300. * .bzrignore: Add grub-bin2h, grub-reboot, and grub-set-default.
  21301. 2010-03-21 Colin Watson <cjwatson@ubuntu.com>
  21302. * util/grub-install.in: Copy .mo files from @datadir@/locale, to
  21303. match where 'make install' puts them.
  21304. * util/i386/efi/grub-install.in: Likewise.
  21305. 2010-03-19 Colin Watson <cjwatson@ubuntu.com>
  21306. * .bzrignore: Add gentrigtables, grub-script-check,
  21307. grub_script_check_init.c, grub_script_check_init.h, and
  21308. trigtables.c.
  21309. 2010-03-18 Vladimir Serbinenko <phcoder@gmail.com>
  21310. * kern/parser.c: Indented.
  21311. 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
  21312. * term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken).
  21313. 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
  21314. * video/fb/fbblit.c (grub_video_fbblit_blend_XXXA8888_1bit): Handle
  21315. alpha_mask_size == 0 case.
  21316. 2010-03-14 BVK Chaitanya <bvk.groups@gmail.com>
  21317. GRUB shell lexer and parser improvements.
  21318. * conf/any-emu.rmk: Build rule updates.
  21319. * conf/common.rmk: Likewise.
  21320. * conf/i386-coreboot.rmk: Likewise.
  21321. * conf/i386-efi.rmk: Likewise.
  21322. * conf/i386-ieee1275.rmk: Likewise.
  21323. * conf/i386-pc.rmk: Likewise.
  21324. * conf/powerpc-ieee1275.rmk: Likewise.
  21325. * conf/x86_64-efi.rmk: Likewise.
  21326. * configure.ac: Configure check for flex.
  21327. * include/grub/script_sh.h (grub_script_arg_type_t): More argument
  21328. types.
  21329. (grub_lexer_param): Struct member updates.
  21330. (grub_parser_param): Likewise.
  21331. (GRUB_LEXER_TOKEN_MAX): Maximum token size.
  21332. (GRUB_LEXER_RECORD_INCREMENT): Memory increments' size.
  21333. (grub_script_lexer_init): Prototype update.
  21334. (grub_script_lexer_record_start): Likewise.
  21335. (grub_script_lexer_record_stop): Likewise.
  21336. (grub_script_lexer_yywrap): New function prototype.
  21337. (grub_script_lexer_fini): Likewise.
  21338. (grub_script_execute_argument_to_string): Removed by...
  21339. (grub_script_execute_argument_to_argv): ...better version.
  21340. * script/execute.c (ROUND_UPTO): New macro.
  21341. (grub_script_execute_cmdline): Out of memory fixes.
  21342. (grub_script_execute_menuentry): Likewise.
  21343. (grub_script_execute_argument_to_string): Removed. Update all
  21344. users by...
  21345. (grub_script_execute_argument_to_argv): ...better version.
  21346. * script/function.c (grub_script_function_create): Use
  21347. grub_script_execute_argument_to_argv instead of
  21348. grub_script_execute_argument_to_string.
  21349. * script/lexer.c (check_varstate): Removed.
  21350. (check_textstate): Removed.
  21351. (grub_script_lexer_record_start): Likewise.
  21352. (grub_script_lexer_record_stop): Likewise.
  21353. (recordchar): Replaced with...
  21354. (grub_script_lexer_record): ...new function.
  21355. (nextchar): Removed.
  21356. (grub_script_lexer_init): Rewritten.
  21357. (grub_script_yylex): Rewritten.
  21358. (append_newline): New function.
  21359. (grub_script_lexer_yywrap): New function.
  21360. (grub_script_lexer_fini): New function.
  21361. (grub_script_yyerror): Sets error flag.
  21362. * script/yylex.l: New file.
  21363. (grub_lexer_yyfree): Wrapper for flex yyffre.
  21364. (grub_lexer_yyalloc): Likewise.
  21365. (grub_lexer_yyrealloc): Likewise.
  21366. * script/parser.y: Refactored.
  21367. * script/script.c (grub_script_arg_add): Out of memory fixes.
  21368. (grub_script_add_arglist): Likewise.
  21369. (grub_script_create_cmdline): Likewise.
  21370. (grub_script_create_cmdmenu): Likewise.
  21371. (grub_script_add_cmd): Likewise.
  21372. (grub_script_parse): Use grub_script_lexer_fini to deallocated.
  21373. * util/grub-script-check.c (grub_script_execute_menuentry): Remove
  21374. unnecessary code.
  21375. * tests/grub_script_echo1.in: New testcase.
  21376. * tests/grub_script_vars1.in: New testcase.
  21377. * tests/grub_script_echo_keywords.in: New testcase.
  21378. 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
  21379. Remove some redundancy in build system.
  21380. * Makefile.in (TARGET_CFLAGS): Add -ffreestanding.
  21381. (TARGET_ASFLAGS): Add -nostdinc -fno-builtin.
  21382. (TARGET_LDFLAGS): Add -nostdlib.
  21383. (TARGET_IMG_LDFLAGS): Likewise.
  21384. * commands/lsmmap.c (grub_cmd_lsmmap) [GRUB_MACHINE_EMU]: Don't do
  21385. anything since mmap isn't available.
  21386. * conf/any-emu.rmk (kernel_img_SOURCES): Remove commands/boot.c.
  21387. Add util/time.c.
  21388. (pkglib_MODULES): Remove reboot.mod.
  21389. (reboot_mod_SOURCES): Removed.
  21390. (reboot_mod_CFLAGS): Likewise.
  21391. (reboot_mod_LDFLAGS): Likewise.
  21392. * conf/common.rmk (script/lexer.c_DEPENDENCIES): New variable.
  21393. (MOSTLYCLEANFILES): Add symlist.c kernel_syms.lst.
  21394. (DEFSYMFILES): Add kernel_syms.lst.
  21395. (kernel_img_HEADERS): Add common headers.
  21396. (symlist.c): New target.
  21397. (kernel_syms.lst): Likewise.
  21398. (pkglib_MODULES): Add memdisk.mod.
  21399. (memdisk_mod_SOURCES): New variable.
  21400. (memdisk_mod_CFLAGS): Likewise.
  21401. (memdisk_mod_LDFLAGS): Likewise.
  21402. (pkglib_MODULES): Add reboot.mod.
  21403. (reboot_mod_SOURCES): New variable.
  21404. (reboot_mod_CFLAGS): Likewise.
  21405. (reboot_mod_LDFLAGS): Likewise.
  21406. (pkglib_MODULES): Add date.mod.
  21407. (date_mod_SOURCES): New variable.
  21408. (date_mod_CFLAGS): Likewise.
  21409. (date_mod_LDFLAGS): Likewise.
  21410. (pkglib_MODULES): Add datehook.mod.
  21411. (datehook_mod_SOURCES): New variable.
  21412. (datehook_mod_CFLAGS): Likewise.
  21413. (datehook_mod_LDFLAGS): Likewise.
  21414. (pkglib_MODULES): Add lsmmap.mod.
  21415. (lsmmap_mod_SOURCES): New variable.
  21416. (lsmmap_mod_CFLAGS): Likewise.
  21417. (lsmmap_mod_LDFLAGS): Likewise.
  21418. (pkglib_MODULES): Add boot.mod.
  21419. (boot_mod_SOURCES): New variable.
  21420. (boot_mod_CFLAGS): Likewise.
  21421. (boot_mod_LDFLAGS): Likewise.
  21422. * conf/i386-coreboot.rmk: Removed redundant parts.
  21423. * conf/i386-ieee1275.rmk: Likewise.
  21424. * conf/i386-pc.rmk: Likewise.
  21425. * conf/mips-yeeloong.rmk: Likewise.
  21426. * conf/mips.rmk: Likewise.
  21427. * conf/powerpc-ieee1275.rmk: Likewise.
  21428. * conf/sparc64-ieee1275.rmk: Likewise.
  21429. * conf/x86_64-efi.rmk: Likewise.
  21430. * conf/i386-coreboot.rmk: Moved qemu parts ..
  21431. * conf/i386-qemu.rmk: ... here
  21432. * conf/i386-efi.rmk: Moved common parts to...
  21433. * conf/x86-efi.rmk: ... here.
  21434. * conf/i386.rmk: Added modules common to all x86 variants.
  21435. * configure.ac: Add -m32/-m64 to TARGET_ASFLAGS.
  21436. * disk/memdisk.c: Remove grub/machine/kernel.h.
  21437. * gensymlist.sh.in: Include symbol.h.
  21438. * hook/datehook.c: Correct module name.
  21439. * include/grub/datetime.h (grub_get_datetime) [GRUB_MACHINE_EMU]: Export.
  21440. (grub_set_datetime) [GRUB_MACHINE_EMU]: Likewise.
  21441. * include/grub/i386/efi/serial.h: New file.
  21442. * include/grub/x86_64/efi/serial.h: Likewise.
  21443. * util/time.c: Likewise.
  21444. * video/ieee1275.c (grub_video_ieee1275_setup): Handle 64-bit void *.
  21445. 2010-03-14 Colin King <colin.king@ubuntu.com>
  21446. 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
  21447. Shrink the pre-partition-table part of boot.img by eight bytes.
  21448. * boot/i386/pc/boot.S (ERR): New macro.
  21449. (chs_mode): Use ERR.
  21450. (geometry_error): Likewise.
  21451. (hd_probe_error): Remove. This is only used once, so we wrwite
  21452. it inline instead.
  21453. (read_error): Instead of printing read_error_string, just set up
  21454. %si and fall through to ...
  21455. (error_message): ... this new function, also used by ERR.
  21456. 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
  21457. Speed up consecutive hostdisk operations on the same device.
  21458. * util/hostdisk.c (struct grub_util_biosdisk_data): New structure.
  21459. (grub_util_biosdisk_open): Initialise disk->data.
  21460. (struct linux_partition_cache): New structure.
  21461. (linux_find_partition): Cache partition start positions; these are
  21462. expensive to compute on every read and write.
  21463. (open_device): Cache open file descriptor in disk->data, so that we
  21464. don't have to reopen it and flush the buffer cache for consecutive
  21465. operations on the same device.
  21466. (grub_util_biosdisk_close): New function.
  21467. (grub_util_biosdisk_dev): Set `close' member.
  21468. * conf/common.rmk (grub_probe_SOURCES): Add kern/list.c.
  21469. * conf/i386-efi.rmk (grub_setup_SOURCES): Likewise.
  21470. * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
  21471. * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
  21472. * conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise.
  21473. 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
  21474. Compile parts of grub-emu as modules.
  21475. * Makefile.in (TARGET_CPPFLAGS) [emu]: Remove -nostdinc -isystem.
  21476. (pkglib_DATA) [emu]: Remove moddep.lst command.lst fs.lst
  21477. partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst.
  21478. (all-local): Add $(GRUB_EMU).
  21479. (install-local): Install $(GRUB_EMU).
  21480. (uninstall): Uninstall $(GRUB_EMU).
  21481. * commands/parttool.c: Replace GRUB_UTIL with GRUB_NO_MODULES.
  21482. * kern/dl.c: Likewise.
  21483. * commands/sleep.c: Not include machine/time.h.
  21484. * conf/any-emu.rmk (COMMON_LDFLAGS): New variable.
  21485. (COMMON_CFLAGS): Likewise.
  21486. (sbin_UTILITIES): Remove grub-emu.
  21487. (grub_emu_SOURCES): Removed.
  21488. (kernel_img_RELOCATABLE): New variable.
  21489. (pkglib_PROGRAMS): Add kernel.img.
  21490. (kernel_img_SOURCES): New variable
  21491. (kernel_img_CFLAGS): Likewise.
  21492. (kernel_img_LDFLAGS): Likewise.
  21493. (TARGET_NO_STRIP): Likewise.
  21494. (TARGET_NO_DYNAMIC_MODULES): Likewise.
  21495. (pkglib_MODULES): Add progname.mod, hostfs.mod, host.mod, reboot.mod,
  21496. halt.mod, cpuid.mod, usb.mod, sdl.mod and pci.mod.
  21497. (grub-emu): New target.
  21498. (GRUB_EMU): New variable.
  21499. * configure.ac: Whitelist -emu as possible x86_64 architecture.
  21500. * efiemu/main.c: Replace GRUB_UTIL with GRUB_MACHINE_EMU.
  21501. * loader/xnu.c: Likewise.
  21502. * include/grub/pci.h: Likewise.
  21503. * genemuinit.sh: New file.
  21504. * genemuinitheader.sh: Likewise.
  21505. * genmk.rb: Don't strip if TARGET_NO_STRIP is yes.
  21506. Support TARGET_NO_DYNAMIC_MODULES.
  21507. * include/grub/dl.h (GRUB_NO_MODULES): New variable.
  21508. * commands/search.c: Fix GRUB_MOD_INIT and GRUB_MOD_FINI arguments.
  21509. * disk/loopback.c: Likewise.
  21510. * font/font_cmd.c: Likewise.
  21511. * partmap/acorn.c: Likewise.
  21512. * partmap/amiga.c: Likewise.
  21513. * partmap/apple.c: Likewise.
  21514. * partmap/gpt.c: Likewise.
  21515. * partmap/msdos.c: Likewise.
  21516. * partmap/sun.c: Likewise.
  21517. * parttool/msdospart.c: Likewise.
  21518. * term/gfxterm.c: Likewise.
  21519. * video/bitmap.c: Likewise.
  21520. * video/readers/jpeg.c: Likewise.
  21521. * video/readers/png.c: Likewise.
  21522. * video/readers/tga.c: Likewise.
  21523. * video/video.c: Likewise.
  21524. * util/grub-emu.c (read_command_list): Removed.
  21525. (main): Don't call util_init_nls.
  21526. * util/misc.c (grub_err_printf) [!GRUB_UTIL]: Removed.
  21527. (grub_util_init_nls) [!GRUB_UTIL]: Likewise.
  21528. 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
  21529. * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add datetime.mod,
  21530. date.mod, datehook.mod.
  21531. (datetime_mod_SOURCES): New variable.
  21532. (datetime_mod_CFLAGS): Likewise.
  21533. (datetime_mod_LDFLAGS): Likewise.
  21534. (date_mod_SOURCES): Likewise.
  21535. (date_mod_CFLAGS): Likewise.
  21536. (date_mod_LDFLAGS): Likewise.
  21537. (datehook_mod_SOURCES): Likewise.
  21538. (datehook_mod_CFLAGS): Likewise.
  21539. (datehook_mod_LDFLAGS): Likewise.
  21540. * conf/sparc64-ieee1275.rmk: Likewise.
  21541. * lib/ieee1275/datetime.c: New file.
  21542. 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
  21543. * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add ieee1275_fb.mod.
  21544. (ieee1275_fb_mod_SOURCES): New variable.
  21545. (ieee1275_fb_mod_CFLAGS): Likewise.
  21546. (ieee1275_fb_mod_LDFLAGS): Likewise.
  21547. * include/grub/ieee1275/ieee1275.h (grub_ieee1275_devices_iterate):
  21548. New proto.
  21549. * kern/ieee1275/init.c (HEAP_MAX_SIZE): Increased.
  21550. (HEAP_MAX_ADDR): Likewise.
  21551. * kern/ieee1275/openfw.c (grub_children_iterate): Don't skip empty
  21552. type.
  21553. Correct stop condition.
  21554. (grub_ieee1275_devices_iterate): New function.
  21555. * video/ieee1275.c: New file.
  21556. 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
  21557. Merge sparc grub-mkimage into generic grub-mkimage and a.out support.
  21558. * boot/sparc64/ieee1275/boot.S (boot_continue): Use SCRATCH_PAD_BOOT
  21559. as scratch.
  21560. * boot/sparc64/ieee1275/diskboot.S (after_info_block): Use
  21561. SCRATCH_PAD_DISKBOOT as scratch.
  21562. (bootit): Pass Openfirmware pointer in %o4.
  21563. * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link at 0x4400 instead
  21564. of 0x200000.
  21565. (grub_mkimage_SOURCES): Replace util/sparc64/ieee1275/grub-mkimage.c
  21566. with util/grub-mkrawimage.c.
  21567. * configure.ac: Handle GRUB_MACHINE_SPARC64 and GRUB_MACHINE_MIPS.
  21568. * include/grub/aout.h (AOUT_MID_SUN): New definition.
  21569. (grub_aout_get_type) [GRUB_UTIL]: Removed.
  21570. (grub_aout_load) [GRUB_UTIL]: Likewise.
  21571. * include/grub/kernel.h (grub_modules_get_end): New proto.
  21572. * include/grub/sparc64/ieee1275/boot.h (SCRATCH_PAD): Removed.
  21573. (SCRATCH_PAD_BOOT): New definition.
  21574. (SCRATCH_PAD_DISKBOOT): Likewise.
  21575. (GRUB_BOOT_MACHINE_IMAGE_ADDRESS): Set to 0x4400.
  21576. * include/grub/sparc64/ieee1275/ieee1275.h
  21577. (grub_ieee1275_original_stack): New variable
  21578. * include/grub/sparc64/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
  21579. New definition
  21580. (GRUB_KERNEL_MACHINE_STACK_SIZE): Likewise.
  21581. (GRUB_PLATFORM_IMAGE_FORMATS): Likewise.
  21582. (GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT): Likewise.
  21583. (GRUB_PLATFORM_IMAGE_DEFAULT): Likewise.
  21584. (GRUB_PLATFORM_IMAGE_RAW): Likewise.
  21585. (GRUB_PLATFORM_IMAGE_AOUT): Likewise.
  21586. (grub_platform_image_format_t): New type.
  21587. * kern/mips/yeeloong/init.c (grub_modules_get_end): Move from here ...
  21588. * kern/main.c (grub_modules_get_end)
  21589. [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_SPARC64]: ... here.
  21590. * kern/sparc64/ieee1275/crt0.S: Store firmware entry point in %o0.
  21591. (codestart): Switch stacks.
  21592. * kern/sparc64/ieee1275/init.c (grub_ieee1275_original_stack): New
  21593. variable.
  21594. (grub_heap_init): Use grub_modules_get_end.
  21595. * loader/sparc64/ieee1275/linux.c (grub_linux_boot): Restore original
  21596. stack.
  21597. * util/grub-mkrawimage.c (generate_image): Support sparc64.
  21598. (main): Likewise.
  21599. * util/sparc64/ieee1275/grub-mkimage.c: Removed.
  21600. 2010-03-14 Thorsten Glaser <tg@mirbsd.org>
  21601. * util/grub-mkrescue.in: Base ISO UUID on UTC.
  21602. 2010-03-08 Matt Kraai <kraai@ftbfs.org>
  21603. * util/i386/pc/grub-setup.c (setup): Fix a grammatical error (Debian
  21604. bug #559005).
  21605. 2010-03-07 Vladimir Serbinenko <phcoder@gmail.com>
  21606. * genmoddep.awk: Output all missing symbols and not only first.
  21607. 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
  21608. * NEWS: Put the date of 1.98 release.
  21609. 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
  21610. * configure.ac: Update CPPFLAGS and not CFLAGS when checking for
  21611. ft2build.h.
  21612. 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
  21613. * normal/cmdline.c (grub_cmdline_get): Fix gabled line after
  21614. completition in the middle of string.
  21615. 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
  21616. * util/grub-mkrescue.in: Use mktemp with explicit template.
  21617. 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
  21618. * loader/i386/bsd.c (grub_bsd_get_device): Fix a memory leak.
  21619. 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
  21620. * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Free the
  21621. right pointer.
  21622. 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
  21623. Fix FreeBSD compilation.
  21624. * Makefile.in (TARGET_CPPFLAGS): Remove -nostdinc -isystem.
  21625. * configure.ac: Add -nostdinc -isystem to TARGET_CPPFLAGS if it works.
  21626. 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
  21627. * util/import_gcry.py: Add autogenerated files to MAINTAINER_CLEANFILES.
  21628. 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
  21629. * gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
  21630. 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
  21631. * disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
  21632. 2010-03-04 Robert Millan <rmh.grub@aybabtu.com>
  21633. Support relative image path in theme file.
  21634. * gfxmenu/gui_image.c (grub_gui_image): New member theme_dir.
  21635. (image_set_property): Handle theme_dir and relative path.
  21636. 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
  21637. * configure.ac: Alias amd64 to x86_64.
  21638. 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
  21639. * NEWS: mention multiboot on EFI.
  21640. 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
  21641. * kern/main.c (grub_load_modules): Handle errors from init functions of
  21642. embeded modules.
  21643. 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
  21644. * normal/autofs.c (autoload_fs_module): Handle errors.
  21645. 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
  21646. Disable linux.mod on qemu-mips since it's not functional and leads
  21647. to compilation failure.
  21648. * conf/mips.rmk (pkglib_MODULES): Remove linux.mod.
  21649. * conf/mips-yeeloong.rmk (pkglib_MODULES): Add linux.mod.
  21650. * conf/mips.rmk (linux_mod_SOURCES): Move from here ...
  21651. * conf/mips-yeeloong.rmk (linux_mod_SOURCES): ... here
  21652. * conf/mips.rmk (linux_mod_CFLAGS): Move from here ...
  21653. * conf/mips-yeeloong.rmk (linux_mod_CFLAGS): ... here
  21654. * conf/mips.rmk (linux_mod_ASFLAGS): Move from here ...
  21655. * conf/mips-yeeloong.rmk (linux_mod_ASFLAGS): ... here
  21656. * conf/mips.rmk (linux_mod_LDFLAGS): Move from here ...
  21657. * conf/mips-yeeloong.rmk (linux_mod_LDFLAGS): ... here
  21658. Reported by: BVK Chaitanya
  21659. 2010-03-04 Jordan Uggla <jordan.uggla@gmail.com>
  21660. * INSTALL: Add gettext as a dependency and add qemu to a new section
  21661. "Prerequisites for make-check".
  21662. 2010-03-04 Christian Franke <franke@computer.org>
  21663. * util/grub-pe2elf.c: Add missing include "progname.h".
  21664. 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
  21665. * normal/crypto.c (read_crypto_list): Fix a typo.
  21666. Reported by: Seth Goldberg.
  21667. 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
  21668. * Makefile.in (DISTCLEANFILES): Add stamp-h1.
  21669. Reported by: Seth Goldberg.
  21670. 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
  21671. * Makefile.in (CLEANFILES) [FONT_SOURCE && grub_mkfont]: Add
  21672. ascii.bitmaps.
  21673. 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
  21674. * genmk.rb: Remove terminal*.lst in make clean.
  21675. Reported by: Seth Goldberg.
  21676. 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
  21677. * util/i386/efi/grub-install.in: Copy gettext files.
  21678. 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
  21679. * fs/ext2.c (grub_ext2_read_block): Fix an integer overflow.
  21680. 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
  21681. Wait for user entry basing on presence of output rather than on errors.
  21682. * include/grub/normal.h (grub_normal_get_line_counter): New proto.
  21683. (grub_install_newline_hook): Likewise.
  21684. * normal/main.c (GRUB_MOD_INIT): Call grub_install_newline_hook.
  21685. * normal/menu.c (show_menu): Check line_counter to determine presence
  21686. of output.
  21687. * normal/term.c (grub_normal_line_counter): New variable.
  21688. (grub_normal_get_line_counter): New function.
  21689. (grub_install_newline_hook): Likewise.
  21690. 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
  21691. * commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.
  21692. 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
  21693. * configure.ac: Update version to 1.98.
  21694. 2010-02-26 Vladimir Serbinenko <phcoder@gmail.com>
  21695. * util/grub.d/10_linux.in (linux_entry): Don't default to
  21696. gfxpayload=keep if Linux doesn't support video handover.
  21697. 2010-02-25 Vladimir Serbinenko <phcoder@gmail.com>
  21698. Don't compile video modules on yeeloong since video subsystem is part
  21699. of kernel.
  21700. * conf/common.rmk (pkglib_MODULES) [yeeloong]: Remove video.mod,
  21701. video_fb.mod, bitmap.mod, font.mod, gfxterm.mod and bufio.mod
  21702. * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add bitmap.h,
  21703. video.h, gfxterm.h, font.h, bitmap_scale.h and bufio.h.
  21704. * conf/mips.rmk (kernel_img_HEADERS): Add values instead of overwriting.
  21705. * include/grub/bitmap.h: Add EXPORT_FUNC and EXPORT_VAR.
  21706. * include/grub/bitmap_scale.h: Likewise.
  21707. * include/grub/bufio.h: Likewise.
  21708. * include/grub/font.h: Likewise.
  21709. * include/grub/gfxterm.h: Likewise.
  21710. * include/grub/video.h: Likewise.
  21711. * include/grub/vbe.h: Don't include video_fb.h.
  21712. * video/i386/pc/vbe.c: Include video_fb.h.
  21713. * commands/i386/pc/vbetest.c: Include video.h.
  21714. 2010-02-25 Jordan Uggla <jordan.uggla@gmail.com>
  21715. * util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable.
  21716. * util/grub-mkconfig_lib.in (save_default_entry): Only save a new
  21717. default entry if GRUB_SAVEDEFAULT=true. This allows using
  21718. GRUB_DEFAULT=saved on its own to let grub-reboot work, without
  21719. saving a new default on every boot.
  21720. 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
  21721. * normal/crypto.c (read_crypto_list): Fix a memory leak.
  21722. * normal/term.c (read_terminal_list): Likewise.
  21723. * normal/main.c (grub_normal_init_page): Likewise.
  21724. (grub_normal_read_line_real): Likewise.
  21725. 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
  21726. * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Fix a
  21727. memory leak.
  21728. Reported by: Seth Goldberg.
  21729. 2010-02-24 Joey Korkames <joey+lists@kidfixit.com>
  21730. * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Remove
  21731. duplicate declaration of `start'.
  21732. 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
  21733. * fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet
  21734. filename.
  21735. Reported by: Georgy Buranov
  21736. 2010-02-20 Carles Pina i Estany <carles@pina.cat>
  21737. * util/grub-mkrawimage.c (usage): Change string formatting to
  21738. improve gettext.
  21739. 2010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com>
  21740. * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
  21741. backspace keys.
  21742. 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
  21743. * video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
  21744. Reported by: Michael Suchanek.
  21745. 2010-02-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
  21746. * util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
  21747. * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.
  21748. 2010-02-16 Vladimir Serbinenko <phcoder@gmail.com>
  21749. Remove any reference to non-free fonts.
  21750. * commands/videotest.c (grub_cmd_videotest): Use unifont by default.
  21751. * docs/gfxmenu-theme-example.txt: Removed. It's both outdated and
  21752. uses non-free components.
  21753. * font/font.c (grub_font_get_name): Remove example name.
  21754. * gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default.
  21755. * gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
  21756. * gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise.
  21757. * gfxmenu/view.c (grub_gfxmenu_view_new): Likewise.
  21758. 2010-02-16 Georgy Buranov <gburanov@gmail.com>
  21759. * disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo.
  21760. 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
  21761. * term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]:
  21762. Double divisor.
  21763. (serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced
  21764. features.
  21765. (GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200.
  21766. 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
  21767. * gensymlist.sh.in: Use TARGET_CC instead of CC.
  21768. 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
  21769. * commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
  21770. * docs/grub.texi (Command-line and menu entry commands): Document play
  21771. command.
  21772. 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
  21773. * commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
  21774. parse arguments as inline tempo and notes. Move code for playing notes
  21775. to...
  21776. (play): ... new function.
  21777. 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
  21778. * commands/i386/pc/play.c (T_REST, T_FINE, struct note, beep_on): Use
  21779. grub_uint16_t instead of short.
  21780. (grub_cmd_play): Use grub_uint32_t instead of int, convert data from
  21781. disk from little endian to cpu endianness.
  21782. 2010-02-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
  21783. * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 *
  21784. GRUB_TICKS_PER_SECOND instead of 120.
  21785. 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
  21786. * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible
  21787. escape sequence after \e.
  21788. 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
  21789. * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output
  21790. non-ASCII characters.
  21791. 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
  21792. * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
  21793. set root in single quotes to prevent \, from being unescaped.
  21794. 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
  21795. Prevent unknown commands from stopping menuentry execution.
  21796. * script/execute.c (grub_script_execute_cmdline): Print error after
  21797. unknown command.
  21798. 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
  21799. * fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo.
  21800. Reported by: Pavel Pisa.
  21801. 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
  21802. * io/gzio.c (grub_gzio_open): Use grub_zalloc.
  21803. 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
  21804. Merge grub_ieee1275_map_physical into grub_map and rename to
  21805. grub_ieee1275_map
  21806. * include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto.
  21807. * include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical):
  21808. Remove.
  21809. * kern/ieee1275/openfw.c (grub_map): Rename to ...
  21810. (grub_ieee1275_map): ... this. All users updated. Add phys_lo when
  21811. necessary.
  21812. * kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove.
  21813. 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
  21814. * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before
  21815. opening and not after.
  21816. 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
  21817. * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Macroify
  21818. constants.
  21819. 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
  21820. * loader/sparc64/ieee1275/linux.c (align_addr): Remove.
  21821. (alloc_phys): Use ALIGN_UP instead of align_addr.
  21822. 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
  21823. * loader/sparc64/ieee1275/linux.c (alloc_phys): Correct bounds checking.
  21824. 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
  21825. * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.
  21826. 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
  21827. * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively
  21828. verbose dprintf.
  21829. 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
  21830. Fix over-4GiB seek on sparc64.
  21831. * include/grub/ieee1275/ieee1275.h (grub_ieee1275_seek):
  21832. Replace pos_i and pos_lo with pos. All users updated.
  21833. * include/grub/powerpc/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
  21834. New constant.
  21835. * include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
  21836. Likewise.
  21837. * kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi
  21838. and pos_lo.
  21839. 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
  21840. * util/grub-mkrawimage.c (main): Call set_program_name.
  21841. 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
  21842. Properly align 64-bit targets.
  21843. * util/grub-mkrawimage.c (ALIGN_ADDR): New macro.
  21844. (generate_image): Use ALIGN_ADDR.
  21845. 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
  21846. Properly create cross-endian images.
  21847. * include/grub/types.h (grub_host_to_target_addr): New macro
  21848. * util/grub-mkrawimage.c (generate_image): Add missing host_to_target.
  21849. 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
  21850. * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.
  21851. 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
  21852. Pass SIMPLE framebuffer size in bytes and not 64K blocks.
  21853. * loader/i386/efi/linux.c (grub_linux_setup_video): Don't divide by 64K.
  21854. * loader/i386/linux.c (grub_linux_setup_video): Likewise.
  21855. (grub_linux_boot): Divide by 64K when on VESA.
  21856. 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
  21857. Support GRUB_GFXPAYLOAD_LINUX.
  21858. * util/grub-mkconfig.in: Export GRUB_GFXPAYLOAD_LINUX.
  21859. * util/grub.d/10_linux.in (linux_entry): Handle GRUB_GFXPAYLOAD_LINUX.
  21860. 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
  21861. * script/execute.c (grub_script_execute_cmdline): Use grub_print_error
  21862. to show messages instead of discarding them.
  21863. Process errors after executing command and not before. Keep old method
  21864. too as precaution.
  21865. 2010-02-09 Vladimir Serbinenko <phcoder@gmail.com>
  21866. * configure.ac: Check for ft2build.h.
  21867. 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
  21868. * kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff".
  21869. 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
  21870. * genkernsyms.sh.in: Use TARGET_CC.
  21871. 2010-02-07 Colin Watson <cjwatson@ubuntu.com>
  21872. * NEWS: Update.
  21873. 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
  21874. * include/grub/multiboot2.h: Remove leftover file.
  21875. * include/grub/normal.h [GRUB_UTIL]: Remove leftover declarations.
  21876. * include/grub/partition.h [GRUB_UTIL]: Likewise.
  21877. 2010-02-07 Yves Blusseau <blusseau@zetam.org>
  21878. * gnulib/getdelim.c: add missing header (type ssize_t must be defined).
  21879. 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
  21880. Fix warnings in grub-emu when compiling with maximum warning options.
  21881. * util/grub-emu.c (ENABLE_RELOCATABLE): New definition.
  21882. (grub_arch_modules_addr): Return 0 and not NULL.
  21883. * util/misc.c (ENABLE_RELOCATABLE): New definition.
  21884. (xstrdup): Use newstr instead of dup.
  21885. * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance
  21886. of disk to dsk to avoid shadowing.
  21887. (find_free_slot): Fix prototype.
  21888. * util/getroot.c (grub_util_is_dmraid): Make static.
  21889. * include/grub/time.h (grub_get_rtc) [GRUB_MACHINE_EMU || GRUB_UTIL]:
  21890. Add missing prototype.
  21891. * util/sdl.c (grub_video_sdl_set_viewport): Remove.
  21892. 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
  21893. * loader/i386/linux.c (grub_linux_setup_video): Handle error
  21894. appropriately.
  21895. 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
  21896. * fs/reiserfs.c (grub_reiserfs_read): Use #if 0 instead of commenting
  21897. code out.
  21898. 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
  21899. * include/grub/cache.h (grub_arch_sync_caches) [i386 || x86_64]: Inline.
  21900. * kern/i386/coreboot/init.c (grub_arch_sync_caches): Remove.
  21901. * kern/i386/efi/init.c (grub_arch_sync_caches): Likewise.
  21902. * kern/i386/ieee1275/init.c (grub_arch_sync_caches): Likewise.
  21903. * kern/i386/pc/init.c (grub_arch_sync_caches): Likewise.
  21904. * util/misc.c (grub_arch_sync_caches) [i386 || x86_64]: Likewise.
  21905. 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
  21906. * include/grub/err.h (grub_err_printf): Don't export.
  21907. 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
  21908. * include/grub/dl.h (grub_dl_register_symbol): Don't export.
  21909. 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
  21910. * include/grub/i18n.h (grub_gettext_dummy): Removed.
  21911. * kern/misc.c (grub_gettext_dummy): Make static.
  21912. 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
  21913. * kern/misc.c (grub_utf8_to_ucs4): Don't eat valid characters preceeded
  21914. by non-valid ones.
  21915. * kern/term.c (grub_putchar): Likewise.
  21916. 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
  21917. * partmap/sun.c (sun_partition_map_iterate): Restructure flow to fix
  21918. buggy hook call and memory leak.
  21919. 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
  21920. * commands/ls.c (grub_ls_list_files): Free pathname on exit.
  21921. 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
  21922. * fs/fat.c (grub_fat_iterate_dir): Free unibuf at exit.
  21923. 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
  21924. * loader/i386/pc/xnu.c (grub_xnu_set_video): Add const qualifier to
  21925. modevar.
  21926. Return grub_errno on allocation error.
  21927. 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
  21928. * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Correct error handling.
  21929. 2010-02-06 Yves Blusseau <blusseau@zetam.org>
  21930. * conf/common.rmk (grub_script_check_SOURCES): add missing dependencies.
  21931. (grub_mkpasswd_pbkdf2_SOURCES): Likewise.
  21932. 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
  21933. * fs/i386/pc/pxe.c (grub_pxefs_dir): Return with failure on
  21934. non-pxe disk.
  21935. (grub_pxefs_open): Likewise.
  21936. 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
  21937. * util/grub.d/10_hurd.in: Add --class information to menuentries.
  21938. * util/grub.d/10_kfreebsd.in: Likewise.
  21939. * util/grub.d/10_linux.in: Likewise.
  21940. 2010-02-06 Colin D Bennett <colin@gibibit.com>
  21941. * conf/common.rmk (pkglib_MODULES): Add gfxmenu.mod.
  21942. (gfxmenu_mod_SOURCES): New variable.
  21943. (gfxmenu_mod_CFLAGS): Likewise.
  21944. (gfxmenu_mod_LDFLAGS): Likewise.
  21945. * include/grub/term.h (grub_term_set_current_output): Declare
  21946. argument as const.
  21947. * docs/gfxmenu-theme-example.txt: New file.
  21948. * gfxmenu/gfxmenu.c: Likewise.
  21949. * gfxmenu/gui_box.c: Likewise.
  21950. * gfxmenu/gui_canvas.c: Likewise.
  21951. * gfxmenu/gui_circular_progress.c: Likewise.
  21952. * gfxmenu/gui_image.c: Likewise.
  21953. * gfxmenu/gui_label.c: Likewise.
  21954. * gfxmenu/gui_list.c: Likewise.
  21955. * gfxmenu/gui_progress_bar.c: Likewise.
  21956. * gfxmenu/gui_string_util.c: Likewise.
  21957. * gfxmenu/gui_util.c: Likewise.
  21958. * gfxmenu/icon_manager.c: Likewise.
  21959. * gfxmenu/model.c: Likewise.
  21960. * gfxmenu/named_colors.c: Likewise.
  21961. * gfxmenu/theme_loader.c: Likewise.
  21962. * gfxmenu/view.c: Likewise.
  21963. * gfxmenu/widget-box.c: Likewise.
  21964. * include/grub/gfxmenu_model.h: Likewise.
  21965. * include/grub/gfxmenu_view.h: Likewise.
  21966. * include/grub/gfxwidgets.h: Likewise.
  21967. * include/grub/gui.h: Likewise.
  21968. * include/grub/gui_string_util.h: Likewise.
  21969. * include/grub/icon_manager.h: Likewise.
  21970. 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
  21971. Agglomerate scrolling in gfxterm.
  21972. * term/gfxterm.c (grub_virtual_screen): New member 'total_screen'.
  21973. (grub_virtual_screen_setup): Initialise 'total_screen'.
  21974. (write_char): Split to ...
  21975. (paint_char): ... this ...
  21976. (write_char): ... and this.
  21977. (paint_char): Handle delayed scrolling.
  21978. (draw_cursor): Likewise.
  21979. (scroll_up): Split to ...
  21980. (real_scroll): ... this ...
  21981. (scroll_up): ... and this.
  21982. (real_scroll): Handle multi-line scroll and draw below-the-bottom
  21983. characters.
  21984. (grub_gfxterm_refresh): Call real_scroll.
  21985. 2010-02-06 Colin D Bennett <colin@gibibit.com>
  21986. * include/grub/misc.h (grub_iscntrl): New inline function.
  21987. (grub_isalnum): Likewise.
  21988. (grub_strtol): Likewise.
  21989. 2010-02-06 Colin D Bennett <colin@gibibit.com>
  21990. * normal/menu_text.c (get_entry_number): Move from here ...
  21991. * normal/menu.c (get_entry_number): ... moved here.
  21992. * include/grub/menu.h (grub_menu_get_default_entry_index):
  21993. New prototype.
  21994. * normal/menu.c (grub_menu_get_default_entry_index): New function.
  21995. * normal/menu_text.c (run_menu): Use grub_menu_get_default_entry_index.
  21996. * include/grub/menu_viewer.h (grub_menu_viewer_init): New prototype.
  21997. (grub_menu_viewer_should_return): Likewise.
  21998. * normal/main.c (GRUB_MOD_INIT (normal)): Call grub_menu_viewer_init.
  21999. * normal/menu_text.c (run_menu): Enable menu switching.
  22000. * normal/menu_viewer.c (should_return): New variable.
  22001. (menu_viewer_changed): Likewise.
  22002. (grub_menu_viewer_show_menu): Handle menu viewer changes.
  22003. (grub_menu_viewer_should_return): New function.
  22004. (menuviewer_write_hook): Likewise.
  22005. (grub_menu_viewer_init): Likewise.
  22006. 2010-02-06 Colin D Bennet <colin@gibibit.com>
  22007. 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
  22008. Support for gfxterm in a window.
  22009. * include/grub/gfxterm.h: New file.
  22010. * include/grub/video.h (struct grub_video_rect): New declaration.
  22011. (grub_video_rect_t): Likewise.
  22012. * term/gfxterm.c (struct grub_gfxterm_window): New type.
  22013. (refcount): New variable.
  22014. (render_target): Likewise.
  22015. (window): Likewise.
  22016. (repaint_callback): Likewise.
  22017. (grub_virtual_screen_setup): Use 'render_target'.
  22018. (init_window): New function.
  22019. (grub_gfxterm_init_window): Likewise.
  22020. (grub_gfxterm_init): Check reference counter.
  22021. Use init_window.
  22022. (destroy_window): New function.
  22023. (grub_gfxterm_destroy_window): Likewise.
  22024. (grub_gfxterm_fini): Check reference counter.
  22025. Use destroy_window.
  22026. (redraw_screen_rect): Restore viewport.
  22027. Use 'render_target' and 'window'.
  22028. Call 'repaint_callback'.
  22029. (write_char): Use 'render_target'.
  22030. (draw_cursor): Likewise.
  22031. (scroll_up): Restore viewport.
  22032. Use 'render_target' and 'window'.
  22033. Call 'repaint_callback'.
  22034. (grub_gfxterm_cls): Likewise.
  22035. (grub_gfxterm_refresh): Use 'window'.
  22036. (grub_gfxterm_set_repaint_callback): New function.
  22037. (grub_gfxterm_background_image_cmd): Use 'window'.
  22038. (grub_gfxterm_get_term): New function.
  22039. (GRUB_MOD_INIT(term_gfxterm)): Set 'refcount' to 0.
  22040. 2010-02-06 Colin D Bennett <colin@gibibit.com>
  22041. Bitmap scaling support.
  22042. * conf/common.rmk (pkglib_MODULES): Add bitmap_scale.mod.
  22043. (bitmap_scale_mod_SOURCES): New variable.
  22044. (bitmap_scale_mod_CFLAGS): Likewise.
  22045. (bitmap_scale_mod_LDFLAGS): Likewise.
  22046. * include/grub/bitmap_scale.h: New file.
  22047. * term/gfxterm.c (BACKGROUND_CMD_ARGINDEX_MODE): New definiton.
  22048. (background_image_cmd_options): New variable.
  22049. (grub_gfxterm_background_image_cmd): Support bitmap stretching.
  22050. (cmd): Rename and change type to ...
  22051. (background_image_cmd_handle): ... this. All users updated.
  22052. (GRUB_MOD_INIT(term_gfxterm)): Make background_image extended command.
  22053. * video/bitmap_scale.c: New file.
  22054. 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
  22055. SDL support.
  22056. * Makefile.in (LIBSDL): New variable.
  22057. (enable_grub_emu_sdl): Likewise.
  22058. * conf/i386-pc.rmk (grub_emu_SOURCES): Add video files.
  22059. (grub_emu_SOURCES) [enable_grub_emu_sdl]: Add util/sdl.c.
  22060. (grub_emu_LDFLAGS) [enable_grub_emu_sdl]: Add $(LIBSDL).
  22061. * configure.ac: Detect SDL availability and add --enable-grub-emu-sdl
  22062. * util/sdl.c: New file.
  22063. 2010-02-06 Colin D Bennett <colin@gibibit.com>
  22064. 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
  22065. Double buffering support.
  22066. * commands/i386/pc/videotest.c (grub_cmd_videotest): Swap doublebuffers.
  22067. * include/grub/video.h: Update comment.
  22068. * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
  22069. New type.
  22070. (grub_video_fb_doublebuf_blit_init): New prototype.
  22071. * term/gfxterm.c (scroll_up): Support double buffering.
  22072. (grub_gfxterm_refresh): Likewise.
  22073. * video/fb/video_fb.c (doublebuf_blit_update_screen): New function.
  22074. (grub_video_fb_doublebuf_blit_init): Likewise.
  22075. * video/i386/pc/vbe.c (framebuffer): Remove 'render_target'. Add
  22076. 'front_target', 'back_target', 'offscreen_buffer', 'page_size',
  22077. 'displayed_page', 'render_page' and 'update_screen'.
  22078. (grub_video_vbe_fini): Free offscreen buffer.
  22079. (doublebuf_pageflipping_commit): New function.
  22080. (doublebuf_pageflipping_update_screen): Likewise.
  22081. (doublebuf_pageflipping_init): Likewise.
  22082. (double_buffering_init): Likewise.
  22083. (grub_video_vbe_setup): Enable doublebuffering.
  22084. (grub_video_vbe_swap_buffers): Implement.
  22085. (grub_video_vbe_set_active_render_target): Handle double buffering.
  22086. (grub_video_vbe_get_active_render_target): Likewise.
  22087. (grub_video_vbe_get_info_and_fini): Likewise. Free offscreen_buffer.
  22088. (grub_video_vbe_adapter): Use grub_video_vbe_get_active_render_target.
  22089. (grub_video_vbe_enable_double_buffering): Likewise.
  22090. (grub_video_vbe_swap_buffers): Use update_screen.
  22091. (grub_video_set_mode): Use double buffering.
  22092. 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
  22093. * maintainance/gentrigtables.py: Remove.
  22094. * lib/trig.c: Likewise.
  22095. * gentrigtables.c: New file. C rewrite of gentrigtables.py.
  22096. * conf/common.rmk (trig_mod_SOURCES): Replace `lib/trig.c' with
  22097. `trigtables.c'.
  22098. (trigtables.c): New rule.
  22099. (gentrigtables): Likewise.
  22100. (DISTCLEANFILES): Add `trigtables.c' and `gentrigtables'.
  22101. 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
  22102. * maintainance/gentrigtables.py: Avoid duplicate hardcoding of
  22103. integer constants.
  22104. 2010-02-06 Colin D Bennet <colin@gibibit.com>
  22105. Trigonometry support.
  22106. * include/grub/trig.h: New file.
  22107. * lib/trig.c: Likewise.
  22108. * maintainance/gentrigtables.py: Likewise.
  22109. * conf/common.rmk (pkglib_MODULES): Add trig.mod.
  22110. (trig_mod_SOURCES): New variable.
  22111. (trig_mod_CFLAGS): Likewise.
  22112. (trig_mod_LDFLAGS): Likewise.
  22113. 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
  22114. * kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Support whole
  22115. disk devices.
  22116. 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
  22117. * kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
  22118. error.
  22119. 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
  22120. * util/hostdisk.c (open_device): Don't use partition device when reading
  22121. before the partition.
  22122. (grub_util_biosdisk_read): Don't read from partition and before the
  22123. partition in single operation.
  22124. (grub_util_biosdisk_write): Don't write to partition and before the
  22125. partition in single operation.
  22126. 2010-02-03 Torsten Landschoff <torsten@debian.org>
  22127. * kern/disk.c (grub_disk_read): Fix offset computation when reading
  22128. last sectors.
  22129. 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
  22130. * disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned
  22131. CDROM reads.
  22132. (grub_biosdisk_write): Refuse to write to CDROM.
  22133. 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
  22134. * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
  22135. 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
  22136. * font/font.c (find_glyph): Check that bmp_idx is available before
  22137. using it.
  22138. (grub_font_get_string_width): Never call grub_font_get_glyph_internal
  22139. with (font == NULL).
  22140. 2010-01-28 Christian Schmitt <chris@ilovelinux.de>
  22141. * util/ieee1275/grub-install.in: Fix nvsetenv arguments.
  22142. 2010-01-28 BVK Chaitanya <bvk.groups@gmail.com>
  22143. * include/grub/script_sh.h (sourcecode): Add const qualifier.
  22144. * util/grub-script-check.c (getline): Fix empty lines case.
  22145. 2010-01-28 Robert Millan <rmh.grub@aybabtu.com>
  22146. * Makefile.in (check): Exit with fail status when one of the tests
  22147. fails.
  22148. * tests/example_functional_test.c (example_test): Fix reversed assert.
  22149. * tests/example_unit_test.c (example_test): Likewise.
  22150. 2010-01-28 Colin Watson <cjwatson@ubuntu.com>
  22151. * util/grub.d/10_linux.in: This script does not use any of the
  22152. contents of gettext.sh, only the external command `gettext', so stop
  22153. sourcing it. (Moreover, gettext.sh isn't necessarily installed in
  22154. the same prefix as GRUB.)
  22155. * util/grub.d/10_kfreebsd.in: Likewise.
  22156. 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
  22157. * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle
  22158. of the line.
  22159. 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
  22160. * kern/disk.c (grub_disk_read): Fix offset computation when reading
  22161. last sectors.
  22162. 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
  22163. * commands/hashsum.c (hash_file): Avoid possible stack overflow by
  22164. having a 4KiB and not 32KiB buffer size.
  22165. 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
  22166. * util/hostfs.c: Include `<errno.h>'.
  22167. (grub_hostfs_read): Handle errors from fseeko() and fread().
  22168. 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
  22169. * kern/disk.c (grub_disk_read): Fix bug that would cause infinite
  22170. loop when using read hooks on files whose size isn't sector-aligned.
  22171. 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
  22172. Remove unused parameter.
  22173. * fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter.
  22174. (grub_iso9660_open): Remove initialization of `data->length'.
  22175. 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
  22176. * util/grub-fstest.c (fstest): Rewrite allocation, fixing a few
  22177. memleak conditions.
  22178. 2010-01-27 Carles Pina i Estany <carles@pina.cat>
  22179. * util/lvm.c: New macro LVM_DEV_MAPPER_STRING.
  22180. (grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING.
  22181. 2010-01-26 Carles Pina i Estany <carles@pina.cat>
  22182. * util/bin2h.c (usage): Fix warning (space after backslash).
  22183. 2010-01-26 Carles Pina i Estany <carles@pina.cat>
  22184. * font/font.c: Include `grub/fontformat.h.
  22185. Remove font file format constants.
  22186. (grub_font_load): Use the new macros.
  22187. * include/grub/fontformat.h: New file.
  22188. * util/grub-mkfont.c: Include `grub/fontformat.c'.
  22189. (write_font_pf2): Use the new macros.
  22190. 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
  22191. * util/bin2h.c (usage): Make --help actually explain what `grub-bin2h'
  22192. does.
  22193. 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
  22194. * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro.
  22195. * boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'.
  22196. (_start): Macroify `0x7F'.
  22197. * kern/i386/pc/init.c: Include `<grub/machine/boot.h>'.
  22198. (make_install_device): Use "(pxe)" as fallback prefix when booting
  22199. via PXE.
  22200. 2010-01-26 Vladimir Serbinenko <phcoder@gmail.com>
  22201. * configure.ac: Reset LIBS after check for libgcc symbols.
  22202. 2010-01-25 Colin Watson <cjwatson@ubuntu.com>
  22203. * util/hostdisk.c (open_device): Add trailing newline to debug
  22204. message.
  22205. 2010-01-25 Grégoire Sutre <gregoire.sutre@gmail.com>
  22206. * configure.ac: Check for `limits.h'.
  22207. * util/misc.c: Include `<limits.h>' (for PATH_MAX).
  22208. 2010-01-24 Robert Millan <rmh.grub@aybabtu.com>
  22209. * loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't
  22210. capitalize error strings.
  22211. 2010-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
  22212. * util/grub.d/10_hurd.in: Add a recovery mode.
  22213. 2010-01-23 Vladimir Serbinenko <phcoder@gmail.com>
  22214. * configure.ac: Check for libgcc symbols with -nostdlib.
  22215. 2010-01-23 BVK Chaitanya <bvk.groups@gmail.com>
  22216. * acinclude.m4: Quote underquoted AC_DEFUN parameters.
  22217. 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
  22218. * term/ieee1275/ofconsole.c (grub_ofconsole_setcolorstate): Allocate on
  22219. stack since heap may be unavailable at that point.
  22220. (grub_ofconsole_gotoxy): Likewise.
  22221. 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
  22222. * configure.ac: Check for _restgpr_14_x.
  22223. * include/grub/powerpc/libgcc.h [HAVE__RESTGPR_14_X]: Add _restgpr_*_x
  22224. and _savegpr_* prototypes.
  22225. 2010-01-22 Robert Millan <rmh.grub@aybabtu.com>
  22226. Use generic grub_reboot() for i386-efi.
  22227. * kern/efi/efi.c [__i386__] (grub_reboot): Remove.
  22228. * kern/i386/efi/startup.S: Include `"../realmode.S"'.
  22229. * kern/i386/realmode.S: Include `<grub/i386/pc/memory.h>'.
  22230. 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
  22231. * kern/ieee1275/init.c (grub_machine_set_prefix): Don't check for
  22232. presence of "prefix" variable as it breaks when normal.mod is
  22233. embedded.
  22234. 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
  22235. * term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on
  22236. stack since heap is unavailable at that point.
  22237. 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
  22238. * include/grub/i386/bsd.h (FREEBSD_N_BIOS_GEOM): Removed.
  22239. (grub_freebsd_bootinfo): Rewritten.
  22240. * loader/i386/bsd.c (grub_freebsd_boot): Use new grub_freebsd_bootinfo.
  22241. 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
  22242. * util/misc.c (make_system_path_relative_to_its_root): Fix typo.
  22243. 2010-01-21 Robert Millan <rmh.grub@aybabtu.com>
  22244. * po/POTFILES: Remove mkisofs-related files. They have their own TLP
  22245. domain now.
  22246. 2010-01-20 Felix Zielcke <fzielcke@z-51.de>
  22247. * util/misc.c (make_system_path_relative_to_its_root): Change the work
  22248. around for handling "/" to the correct fix. Fix a memory leak. Use
  22249. xstrdup instead of strdup.
  22250. 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
  22251. * conf/mips.rmk (kernel_img_HEADERS): Add env_private.h
  22252. 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
  22253. Optimise glyph lookup by Basic Multilingual Plane lookup array.
  22254. * font/font.c (struct grub_font): New member 'bmp_idx'.
  22255. (font_init): Initialise 'bmp_idx'.
  22256. (load_font_index): Fill 'bmp_idx'.
  22257. (find_glyph): Make inline. Use bmp_idx for BMP characters.
  22258. 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
  22259. * video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
  22260. unnecessary calls.
  22261. 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
  22262. Move context handling out of the kernel.
  22263. * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c.
  22264. * conf/common.rmk (normal_mod_SOURCES): Add normal/context.c.
  22265. * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h.
  22266. * conf/i386-efi.rmk: Likewise.
  22267. * conf/i386-ieee1275.rmk: Likewise.
  22268. * conf/i386-pc.rmk: Likewise.
  22269. * conf/powerpc-ieee1275.rmk: Likewise.
  22270. * conf/sparc64-ieee1275.rmk: Likewise.
  22271. * conf/x86_64-efi.rmk: Likewise.
  22272. * include/grub/env.h: Include grub/menu.h.
  22273. (grub_env_var_type): Removed.
  22274. (grub_env_var): Replaced field 'type' with 'global'.
  22275. (grub_env_find): New prototype.
  22276. (grub_env_context_open): Remove EXPORT_FUNC.
  22277. (grub_env_context_close): Likewise.
  22278. (grub_env_export): Likewise.
  22279. (grub_env_set_data_slot): Removed.
  22280. (grub_env_get_data_slot): Likewise.
  22281. (grub_env_unset_data_slot): Likewise.
  22282. (grub_env_unset_menu): New prototype.
  22283. (grub_env_set_menu): Likewise.
  22284. (grub_env_get_menu): Likewise.
  22285. * include/grub/env_private.h: New file.
  22286. * include/grub/normal.h (grub_context_init): New prototype.
  22287. (grub_context_fini): Likewise.
  22288. * kern/corecmd.c (grub_core_cmd_export): Moved from here ...
  22289. * normal/context.c (grub_cmd_export): ... to here.
  22290. * kern/env.c: Include env_private.h.
  22291. (HASHSZ): Moved to include/grub/env_private.h.
  22292. (grub_env_context): Likewise.
  22293. (grub_env_sorted_var): Likewise.
  22294. (current_context): Renamed from this ...
  22295. (grub_current_context): ...to this. 'static' removed. All users updated.
  22296. (grub_env_find): Removed 'static'.
  22297. (grub_env_context_open): Moved to normal/context.c.
  22298. (grub_env_context_close): Likewise.
  22299. (grub_env_export): Likewise.
  22300. (mangle_data_slot_name): Removed.
  22301. (grub_env_set_data_slot): Likewise.
  22302. (grub_env_get_data_slot): Likewise.
  22303. (grub_env_unset_data_slot): Likewise.
  22304. * kern/main.c (grub_set_root_dev): Don't export root.
  22305. It will be done later.
  22306. (grub_main): Don't export prefix.
  22307. It will be done later.
  22308. * normal/context.c: New file.
  22309. * normal/main.c (free_menu): Use grub_env_unset_menu.
  22310. (grub_normal_add_menu_entry): Use grub_env_get_menu.
  22311. (read_config_file): Use grub_env_get_menu and grub_env_set_menu.
  22312. (GRUB_MOD_INIT(normal)): Call grub_context_init.
  22313. (GRUB_MOD_FINI(normal)): Call grub_context_fini.
  22314. 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
  22315. setpci support.
  22316. * commands/setpci.c: New file.
  22317. * conf/i386.rmk (pkglib_MODULES): Add setpci.mod.
  22318. (setpci_mod_SOURCES): New variable.
  22319. (setpci_mod_CFLAGS): Likewise.
  22320. (setpci_mod_LDFLAGS): Likewise.
  22321. 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
  22322. Byte-addressable PCI configuration space.
  22323. * bus/pci.c (grub_pci_make_address): Use byte address instead of
  22324. dword address.
  22325. (grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and
  22326. GRUB_PCI_REG_CACHELINE.
  22327. * bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses
  22328. GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0.
  22329. * bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses
  22330. GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4.
  22331. * commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS.
  22332. * commands/efi/loadbios.c (enable_rom_area): Pass byte-address to
  22333. grub_pci_make_address.
  22334. (lock_rom_area): Likewise.
  22335. * commands/lspci.c (grub_lspci_iter): Use macroses
  22336. GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing
  22337. of grub_pci_make_address.
  22338. * disk/ata.c (grub_ata_pciinit): Likewise.
  22339. * include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro.
  22340. (GRUB_PCI_REG_VENDOR): Likewise.
  22341. (GRUB_PCI_REG_DEVICE): Likewise.
  22342. (GRUB_PCI_REG_COMMAND): Likewise.
  22343. (GRUB_PCI_REG_STATUS): Likewise.
  22344. (GRUB_PCI_REG_REVISION): Likewise.
  22345. (GRUB_PCI_REG_CLASS): Likewise.
  22346. (GRUB_PCI_REG_CACHELINE): Likewise.
  22347. (GRUB_PCI_REG_LAT_TIMER): Likewise.
  22348. (GRUB_PCI_REG_HEADER_TYPE): Likewise.
  22349. (GRUB_PCI_REG_BIST): Likewise.
  22350. (GRUB_PCI_REG_ADDRESSES): Likewise.
  22351. (GRUB_PCI_REG_ADDRESS_REG): Likewise.
  22352. (GRUB_PCI_REG_ADDRESS_REG): Likewise.
  22353. (GRUB_PCI_REG_ADDRESS_REG): Likewise.
  22354. (GRUB_PCI_REG_ADDRESS_REG): Likewise.
  22355. (GRUB_PCI_REG_ADDRESS_REG): Likewise.
  22356. (GRUB_PCI_REG_ADDRESS_REG): Likewise.
  22357. (GRUB_PCI_REG_CIS_POINTER): Likewise.
  22358. (GRUB_PCI_REG_SUBVENDOR): Likewise.
  22359. (GRUB_PCI_REG_SUBSYSTEM): Likewise.
  22360. (GRUB_PCI_REG_ROM_ADDRESS): Likewise.
  22361. (GRUB_PCI_REG_CAP_POINTER): Likewise.
  22362. (GRUB_PCI_REG_IRQ_LINE): Likewise.
  22363. (GRUB_PCI_REG_IRQ_PIN): Likewise.
  22364. (GRUB_PCI_REG_MIN_GNT): Likewise.
  22365. (GRUB_PCI_REG_MAX_LAT): Likewise.
  22366. * loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
  22367. * loader/i386/efi/xnu.c (find_framebuf): Likewise.
  22368. * video/efi_uga.c (find_framebuf): Likewise.
  22369. * video/sm712.c (grub_video_sm712_setup): Likewise.
  22370. * util/pci.c (grub_pci_make_address): Use byte-addressed configuration
  22371. space.
  22372. 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
  22373. * util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
  22374. can be reliably determined to be supported.
  22375. 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
  22376. * loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down
  22377. that VESA is supported.
  22378. (grub_linux_boot): Use generic framebuffer unless VESA is known to be
  22379. supported.
  22380. 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
  22381. * conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.
  22382. 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
  22383. * util/misc.c (make_system_path_relative_to_its_root): Work around
  22384. special-casing of "/", as previous incarnation of this routine did.
  22385. 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
  22386. Fix any-emu compilation.
  22387. * conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h.
  22388. * grub_bin2h_SOURCES: New variable.
  22389. 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
  22390. * util/grub.d/00_header.in: Fix stupid mistake from last commit.
  22391. 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
  22392. * util/grub.d/00_header.in: Fix handling of locale_dir.
  22393. 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
  22394. * configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz
  22395. as possible unifont location (Gentoo).
  22396. Reported by: Alexander Brüning
  22397. 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
  22398. Don't try to generate lists for kernel.img.
  22399. * conf/i386-efi.rmk (pkglib_PROGRAMS): New variable.
  22400. (pkglib_MODULES): Remove kernel.img.
  22401. (kernel_img_EXPORTS): Removed.
  22402. (kernel_img_RELOCATABLE): New variable.
  22403. * conf/x86_64-efi.rmk: Likewise.
  22404. * genmk.rb: Remove *_EXPORTS support and add *_RELOCATABLE support.
  22405. 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
  22406. * include/grub/misc.h (grub_sprintf): Removed. All users switched to
  22407. grub_xasprintf or grub_snprintf.
  22408. (grub_vsprintf): Likewise.
  22409. (grub_snprintf): New proto.
  22410. (grub_vsnprintf): Likewise.
  22411. (grub_xasprintf): Likewise.
  22412. (grub_xvasprintf): Likewise.
  22413. * kern/misc.c (grub_vprintf): Use grub_vsnprintf_real.
  22414. (grub_sprintf): Removed.
  22415. (grub_vsnprintf): New function.
  22416. (grub_snprintf): Likewise.
  22417. (grub_xvasprintf): Likewise.
  22418. (grub_xasprintf): Likewise.
  22419. (grub_vsprintf): Renamed to ...
  22420. (grub_vsnprintf_real): ...this. New argument max_len.
  22421. 2010-01-20 BVK Chaitanya <bvk.groups@gmail.com>
  22422. * include/grub/script_sh.h (sourcecode): Remove const qualifier to
  22423. fix grub-script-check warning.
  22424. 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
  22425. * include/grub/font.h (grub_font_load): Fix prototype.
  22426. 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
  22427. * conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h.
  22428. 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
  22429. * include/grub/x86_64/at_keyboard.h: New file.
  22430. 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
  22431. * loader/mips/linux.c: Include missing grub/i18n.h.
  22432. 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
  22433. * normal/menu.c (notify_execution_failure): Clarify error message.
  22434. 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
  22435. * commands/loadenv.c (check_blocklists): Use `grub_err_t' as
  22436. return value (and revert all return statements). Update users.
  22437. 2010-01-20 Dan Merillat <debian@dan.merillat.org>
  22438. * kern/device.c (grub_device_iterate): Allocate new part_ent
  22439. structure based on sizeof (*p) rather than sizeof (p->next), to
  22440. account for structure padding.
  22441. * util/grub-probe.c (probe_raid_level): Return -1 immediately if
  22442. disk is NULL, which might happen for LVM physical volumes with no
  22443. LVM signature.
  22444. 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
  22445. * loader/mips/linux.c (grub_cmd_initrd)
  22446. (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.
  22447. 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
  22448. * kern/mips/yeeloong/init.c (grub_video_sm712_init)
  22449. (grub_video_video_init, grub_video_bitmap_init)
  22450. (grub_font_manager_init, grub_term_gfxterm_init)
  22451. (grub_at_keyboard_init): New extern declarations.
  22452. (grub_machine_init): Initialize gfxterm and at_keyboard.
  22453. * kern/main.c (grub_main): Revert grub_printf delay kludge.
  22454. * util/grub-install.in: Revert embed of `at_keyboard.mod' and
  22455. `gfxterm.mod' into core image.
  22456. * conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
  22457. (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
  22458. (kernel_img_FORMAT): Copy to ...
  22459. * conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
  22460. (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
  22461. (kernel_img_FORMAT): ... here, and ...
  22462. * conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES)
  22463. (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
  22464. (kernel_img_FORMAT): ... here.
  22465. (kernel_img_SOURCES): Add files necessary for output (gfxterm)
  22466. and input (at_keyboard) terminals in kernel.
  22467. (kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'.
  22468. (pkglib_MODULES): Remove `pci.mod'.
  22469. (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS)
  22470. (sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS)
  22471. (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
  22472. (at_keyboard_mod_LDFLAGS): Remove variables.
  22473. 2010-01-11 Felix Zielcke <fzielcke@z-51.de>
  22474. * po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'.
  22475. 2009-12-10 Robert Millan <rmh.grub@aybabtu.com>
  22476. * include/grub/mips/libgcc.h: Only export symbols for functions
  22477. that libgcc provides.
  22478. 2009-12-02 Vladimir Serbinenko <phcoder@gmail.com>
  22479. MIPS support.
  22480. * bus/bonito.c: New file.
  22481. * bus/pci.c (grub_pci_iterate): Use GRUB_PCI_NUM_BUS and
  22482. GRUB_PCI_NUM_DEVICES.
  22483. * term/i386/pc/serial.c: Move to ...
  22484. * term/serial.c: ... here. All users updated.
  22485. * util/i386/pc/grub-mkimage.c: Move to ...
  22486. * util/grub-mkrawimage.c: ... here. All users updated.
  22487. * term/i386/pc/at_keyboard.c: Move to ...
  22488. * term/at_keyboard.c: ... here. All users updated.
  22489. * conf/mips-qemu-mips.rmk: New file.
  22490. * conf/mips-yeeloong.rmk: Likewise.
  22491. * conf/mips.rmk: Likewise.
  22492. * configure.ac: New platforms mipsel-yeeloong, mips-qemu-mips and
  22493. mipsel-qemu-mips.
  22494. * disk/ata.c (grub_ata_device_initialize): Add GRUB_MACHINE_PCI_IO_BASE
  22495. to port addresses.
  22496. (grub_ata_pciinit): Support CS5536.
  22497. * font/font.c (grub_font_load): Use grub_file_t instead of filename.
  22498. * font/font_cmd.c (loadfont_command): Open file before passing it to
  22499. grub_font_load.
  22500. (pseudo_file_read): New function.
  22501. (pseudo_file_close): Likewise.
  22502. (pseudo_fs): New structure.
  22503. (load_font_module): New function.
  22504. (GRUB_MOD_INIT(font_manager)): Load embedded font.
  22505. * fs/cpio.c (grub_cpio_open): Handle partial matches correctly.
  22506. * genmk.rb: Strip .rel.dyn, .reginfo, .note and .comment.
  22507. * genmoddep.awk: Ignore __gnu_local_gp. It's defined by linker.
  22508. * include/grub/i386/at_keyboard.h: Split into ...
  22509. * include/grub/at_keyboard.h: ... this ...
  22510. * include/grub/i386/at_keyboard.h: ... and this.
  22511. * include/grub/dl.h (grub_arch_dl_init_linker) [_mips && !GRUB_UTIL]:
  22512. New prototype.
  22513. * include/grub/elfload.h (grub_elf32_size): New parameter. All users
  22514. updated.
  22515. (grub_elf64_size): Likewise.
  22516. * include/grub/font.h (grub_font_load): Use grub_file_t instead of
  22517. filename.
  22518. * include/grub/i386/io.h (grub_port_t): New type. All users updated.
  22519. * include/grub/i386/coreboot/serial.h: Rewritten.
  22520. * include/grub/i386/ieee1275/serial.h: Include
  22521. grub/i386/coreboot/serial.h instead of grub/i386/pc/serial.h.
  22522. * include/grub/i386/pc/serial.h: Moved from here ...
  22523. * include/grub/serial.h: ... to here. All users updated.
  22524. * include/grub/i386/pci.h (GRUB_MACHINE_PCI_IO_BASE): New definition.
  22525. (GRUB_PCI_NUM_BUS): Likewise.
  22526. (GRUB_PCI_NUM_DEVICES): Likewise.
  22527. (grub_pci_device_map_range): Add missing volatile keyword.
  22528. * include/grub/kernel.h (OBJ_TYPE_FONT): New enum value.
  22529. * include/grub/mips/at_keyboard.h: New file.
  22530. * include/grub/mips/cache.h: Likewise.
  22531. * include/grub/mips/io.h: Likewise.
  22532. * include/grub/mips/kernel.h: Likewise.
  22533. * include/grub/mips/libgcc.h: Likewise.
  22534. * include/grub/mips/pci.h: Likewise.
  22535. * include/grub/mips/qemu-mips/boot.h: Likewise.
  22536. * include/grub/mips/qemu-mips/kernel.h: Likewise.
  22537. * include/grub/mips/qemu-mips/loader.h: Likewise.
  22538. * include/grub/mips/qemu-mips/memory.h: Likewise.
  22539. * include/grub/mips/qemu-mips/serial.h: Likewise.
  22540. * include/grub/mips/qemu-mips/time.h: Likewise.
  22541. * include/grub/mips/relocator.h: Likewise.
  22542. * include/grub/mips/time.h: Likewise.
  22543. * include/grub/mips/types.h: Likewise.
  22544. * include/grub/mips/yeeloong/at_keyboard.h: Likewise.
  22545. * include/grub/mips/yeeloong/boot.h: Likewise.
  22546. * include/grub/mips/yeeloong/kernel.h: Likewise.
  22547. * include/grub/mips/yeeloong/loader.h: Likewise.
  22548. * include/grub/mips/yeeloong/memory.h: Likewise.
  22549. * include/grub/mips/yeeloong/pci.h: Likewise.
  22550. * include/grub/mips/yeeloong/serial.h: Likewise.
  22551. * include/grub/mips/yeeloong/time.h: Likewise.
  22552. * kern/dl.c (grub_dl_resolve_symbols): Handle STT_OBJECT correctly.
  22553. * kern/elf.c (grub_elf32_size): New parameter. All users
  22554. updated.
  22555. (grub_elf64_size): Likewise.
  22556. * kern/main.c (grub_main): Call grub_arch_dl_init_linker if necessary.
  22557. Load modules before saying "Welcome to GRUB!".
  22558. Call grub_refresh after saying "Welcome to GRUB!".
  22559. * kern/mips/cache.S: New file.
  22560. * kern/mips/cache_flush.S: Likewise.
  22561. * kern/mips/dl.c: Likewise.
  22562. * kern/mips/init.c: Likewise.
  22563. * kern/mips/qemu-mips/init.c: Likewise.
  22564. * kern/mips/startup.S: Likewise.
  22565. * kern/mips/yeeloong/init.c: Likewise.
  22566. * kern/term.c (grub_putcode): Handle NULL terminal.
  22567. (grub_getcharwidth): Likewise.
  22568. (grub_getkey): Likewise.
  22569. (grub_checkkey): Likewise.
  22570. (grub_getkeystatus): Likewise.
  22571. (grub_getxy): Likewise.
  22572. (grub_getwh): Likewise.
  22573. (grub_gotoxy): Likewise.
  22574. (grub_cls): Likewise.
  22575. (grub_setcolorstate): Likewise.
  22576. (grub_setcolor): Likewise.
  22577. (grub_getcolor): Likewise.
  22578. (grub_refresh): Likewise.
  22579. * lib/mips/relocator.c (JUMP_SIZEOF): Fix incorrect value.
  22580. (write_jump): Add hatch nop.
  22581. * lib/mips/relocator_asm.S: Use kern/mips/cache_flush.S.
  22582. * lib/mips/setjmp.S: New file.
  22583. * loader/mips/linux.c: Likewise.
  22584. * term/i386/pc/at_keyboard.c: Move from here ...
  22585. * term/at_keyboard.c: ... to here.
  22586. * term/i386/pc/serial.c: Moved from here ...
  22587. * term/serial.c: ... to here. All users updated.
  22588. (TEXT_HEIGHT): Set to 24 to fit linux terminal.
  22589. (serial_hw_io_addr): Use GRUB_MACHINE_SERIAL_PORTS.
  22590. (serial_translate_key_sequence): Avoid deadlock.
  22591. (grub_serial_getkey): Handle backspace.
  22592. (grub_serial_putchar): Fix newline handling.
  22593. * util/i386/pc/grub-mkimage.c: Move from here ...
  22594. * util/grub-mkrawimage.c: ... to here. All users updated.
  22595. (generate_image): New parameters 'font_path' and 'format'.
  22596. Support embedding font.
  22597. Use grub_host_to_target* instead of grub_cpu_to_le*.
  22598. (generate_image) [GRUB_MACHINE_MIPS]: Support ELF encapsulation.
  22599. (options) [GRUB_PLATFORM_IMAGE_DEFAULT]: New option "--format".
  22600. (options): New option "--font".
  22601. (usage): Likewise.
  22602. (main) [GRUB_PLATFORM_IMAGE_DEFAULT]: Handle "--format".
  22603. (main): Handle "--font".
  22604. * term/gfxterm.c (grub_virtual_screen): New member bg_color_display.
  22605. (grub_virtual_screen_setup): Set bg_color_display.
  22606. (redraw_screen_rect): Use bg_color_display instead of incorrect
  22607. bg_color.
  22608. (grub_gfxterm_cls): Likewise.
  22609. * util/elf/grub-mkimage.c (load_modules): New parameter 'config_path'.
  22610. Support embedding config file.
  22611. (add_segments): Likewise.
  22612. (options): New option "--config".
  22613. (main): Handle "--config".
  22614. * video/sm712.c: New file.
  22615. 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
  22616. Fix parallel builds.
  22617. * conf/common.rmk (font/font.c_DEPENDENCIES): New variable (makes
  22618. font.c depend on ascii.h).
  22619. 2010-01-12 Carles Pina i Estany <carles@pina.cat>
  22620. * Makefile.in (DUSE_ASCII_FAILBACK): New macro.
  22621. 2010-01-11 Carles Pina i Estany <carles@pina.cat>
  22622. * font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK.
  22623. By default: disabled.
  22624. * Makefile.in (ascii.h): Remove the non-needed grub/bin2h size
  22625. parameter.
  22626. 2010-01-10 Carles Pina i Estany <carles@pina.cat>
  22627. * font/font.c: Update copyright years.
  22628. * util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format.
  22629. 2010-01-10 Carles Pina i Estany <carles@pina.cat>
  22630. * font/font.c: Include `ascii.h'.
  22631. (ASCII_BITMAP_SIZE): New macro.
  22632. (ascii_font_glyph): Define.
  22633. (ascii_glyph_lookup): New function.
  22634. (grub_font_get_string_width): Change comment. If glyph not found, use
  22635. ascii_glyph_lookup.
  22636. (grub_font_get_glyph_with_fallback): If glyph not available returns
  22637. ascii_glyph_lookup.
  22638. * util/grub-mkfont.c (file_formats): New enum.
  22639. (options): Add `ascii-bitmaps' new option.
  22640. (usage): Add `asii-bitmaps' new option.
  22641. (write_font_ascii_bitmap): New function.
  22642. (write_font): Rename to ...
  22643. (write_font_p2): ... this. Remove print_glyphs call.
  22644. (main): Use file_format. Implement code for ranges if ascii-bitmaps is
  22645. used. Call print_glyphs.
  22646. * Makefile.in (pkgdata_DATA): Add `ascii.h'.
  22647. 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
  22648. * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'.
  22649. (grub_bin2h_SOURCES): New variable.
  22650. * util/bin2h.c: New file.
  22651. 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
  22652. * include/multiboot.h: Resynced with spec.
  22653. * include/multiboot2.h: Likewise.
  22654. * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): Handle
  22655. GRUB_MACHINE_MEMORY_ACPI_RECLAIMABLE and GRUB_MACHINE_MEMORY_NVS.
  22656. 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
  22657. * include/grub/term.h (grub_term_register_input,
  22658. grub_term_register_output): Check return of terminal init()
  22659. routines, and abort if errors are raised.
  22660. * commands/terminal.c: Update copyright year.
  22661. 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
  22662. * commands/terminal.c (grub_cmd_terminal_input)
  22663. (grub_cmd_terminal_output): Check return of terminal init()
  22664. routines, and abort if errors are raised.
  22665. 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
  22666. * include/grub/i386/bsd.h: Fix include pathes.
  22667. 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
  22668. Add missing *BSD copyright headers.
  22669. * include/grub/aout.h: Add BSD licence.
  22670. * include/grub/i386/bsd.h: Parts under different licences moved to ...
  22671. * include/grub/i386/freebsd_linker.h: ... here,
  22672. * include/grub/i386/freebsd_reboot.h: ... here,
  22673. * include/grub/i386/netbsd_bootinfo.h: ... here,
  22674. * include/grub/i386/netbsd_reboot.h: ... here,
  22675. * include/grub/i386/openbsd_bootarg.h: ... here,
  22676. * include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate
  22677. licence to each file.
  22678. 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
  22679. * acinclude.m4: Remove `nop' assembly instruction; it's not
  22680. implemented by all architectures.
  22681. 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
  22682. * loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're
  22683. ELILO. This is no longer necessary.
  22684. 2010-01-18 BVK Chaitanya <bvk.groups@gmail.com>
  22685. Added new tool, grub-scrit-check to verify grub.cfg syntax.
  22686. * util/grub-script-check.c: grub-script-check tool.
  22687. * conf/common.rmk: Make rules for grub-script-check.
  22688. 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
  22689. Fix annoying UI bug in rescue mode. Thanks to Tristan Gingold for
  22690. spotting it back in 2008. Shame on me for forgetting he did.
  22691. * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.
  22692. 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
  22693. * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ...
  22694. (GRUB_VIDEO_LINUX_TYPE_TEXT): ... this. Update all users.
  22695. (GRUB_VIDEO_TYPE_VLFB): Rename to ...
  22696. (GRUB_VIDEO_LINUX_TYPE_VESA): ... this. Update all users.
  22697. (GRUB_VIDEO_TYPE_EFI): Rename to ...
  22698. (GRUB_VIDEO_LINUX_TYPE_SIMPLE): ... this. Update all users.
  22699. 2010-01-17 Robert Millan <rmh.grub@aybabtu.com>
  22700. * include/grub/test.h: Add license header.
  22701. * tests/example_functional_test.c: Likewise.
  22702. * tests/example_unit_test.c: Likewise.
  22703. * tests/lib/functional_test.c: Likewise.
  22704. * tests/lib/test.c: Likewise.
  22705. * tests/lib/unit_test.c: Likewise.
  22706. 2010-01-17 Vladimir Serbinenko <phcoder@gmail.com>
  22707. Use flag-based instead of hook-based video mode selection and "auto"
  22708. keyword.
  22709. * include/grub/video.h (grub_video_adapter): Changed 'setup' member.
  22710. (grub_video_set_mode): Changed prototype. All users updated.
  22711. (grub_video_check_mode_flag): New inline function.
  22712. * video/video.c (parse_modespec): New function.
  22713. (grub_video_set_mode): Parse flags and keywords.
  22714. 2010-01-17 Carles Pina i Estany <carles@pina.cat>
  22715. * util/misc.c (grub_util_info): Fix the order of the parameters in a
  22716. fprintf call.
  22717. 2010-01-16 Grégoire Sutre <gregoire.sutre@gmail.com>
  22718. * genmk.rb (class SCRIPT): Replace option -i of sed by a pipe.
  22719. 2010-01-16 Carles Pina i Estany <carles@pina.cat>
  22720. * util/grub-editenv.c (usage): Use `program_name' instead of hardcoded
  22721. string.
  22722. * util/grub-emu.c (usage): Likewise.
  22723. * util/grub-mkpasswd-pbkdf2.c (usage): Likewise.
  22724. * util/i386/efi/grub-mkimage.c (usage): Likewise.
  22725. * util/i386/pc/grub-mkimage.c (usage): Likewise.
  22726. * util/i386/pc/grub-setup.c (usage): Likewise.
  22727. 2010-01-16 Carles Pina i Estany <carles@pina.cat>
  22728. * util/misc.c (grub_util_warn): Gettextizze, print full stop after
  22729. the message.
  22730. (grub_util_info): Likewise.
  22731. (grub_util_error): Likewise.
  22732. * util/elf/grub-mkimage.c: Fix capitalisation, quotes, full stops
  22733. and/or new lines in `grub_util_warna', `grub_util_info',
  22734. `grub_util_error' calls.
  22735. * util/getroot.c: Likewise.
  22736. * util/grub-editenv.c: Likewise.
  22737. * util/grub-emu.c: Likewise.
  22738. * util/grub-fstest.c: Likewise.
  22739. * util/grub-mkdevicemap.c: Likewise.
  22740. * util/grub-mkfont.c: Likewise.
  22741. * util/grub-mkpasswd-pbkdf2.c: Likewise.
  22742. * util/grub-mkrelpath.c: Likewise.
  22743. * util/grub-pe2elf.c: Likewise.
  22744. * util/grub-probe.c: Likewise.
  22745. * util/hostdisk.c: Likewise.
  22746. * util/i386/efi/grub-mkimage.c: Likewise.
  22747. * util/i386/pc/grub-mkimage.c: Likewise.
  22748. * util/i386/pc/grub-setup.c: Likewise.
  22749. * util/ieee1275/ofpath.c: Likewise.
  22750. * util/mkisofs/eltorito.c: Likewise.
  22751. * util/mkisofs/rock.c: Likewise.
  22752. * util/mkisofs/write.c: Likewise.
  22753. * util/raid.c: Likewise.
  22754. * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
  22755. * util/sparc64/ieee1275/grub-setup.c: Likewise.
  22756. 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
  22757. Enable multiboot on non-pc.
  22758. * conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move
  22759. multiboot.mod and multiboot2.mod to ...
  22760. * conf/i386.rmk (pkglib_MODULES): ... here.
  22761. * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES):
  22762. Moved to ...
  22763. * conf/i386.rmk (multiboot_mod_SOURCES): .. here.
  22764. * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
  22765. Moved to ...
  22766. * conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
  22767. * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
  22768. Moved to ...
  22769. * conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
  22770. * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
  22771. Moved to ...
  22772. * conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
  22773. * conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
  22774. relocator.mod.
  22775. (ata_mod_SOURCES): Removed.
  22776. (ata_mod_CFLAGS): Likewise.
  22777. (ata_mod_LDFLAGS): Likewise.
  22778. (relocator_mod_SOURCES): Removed.
  22779. (relocator_mod_CFLAGS): Likewise.
  22780. (relocator_mod_ASFLAGS): Likewise.
  22781. (relocator_mod_LDFLAGS): Likewise.
  22782. Include i386.mk.
  22783. * include/grub/x86_64/multiboot.h: New file.
  22784. * loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
  22785. Terminate EFI.
  22786. 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
  22787. Video multiboot support.
  22788. * include/grub/multiboot.h (grub_multiboot_set_accepts_video):
  22789. New prototype.
  22790. * include/multiboot.h: Resynced with multiboot specification.
  22791. * include/multiboot2.h: Likewise.
  22792. * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags.
  22793. (grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields.
  22794. * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant.
  22795. (HAS_VGA_TEXT): Likewise.
  22796. (accepts_video): New variable.
  22797. (grub_multiboot_set_accepts_video): New function.
  22798. (grub_multiboot_get_mbi_size): Account for video structures.
  22799. (set_video_mode): New function.
  22800. (retrieve_video_parameters): Likewise.
  22801. (grub_multiboot_make_mbi): Fill video fields.
  22802. 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
  22803. Video driver ids.
  22804. * include/grub/video.h (grub_video_driver_id): New type.
  22805. (grub_video_adapter): New member 'id'. All users updated.
  22806. (grub_video_get_driver_id): New proto.
  22807. * video/video.c (grub_video_get_driver_id): New function.
  22808. 2010-01-14 Carles Pina i Estany <carles@pina.cat>
  22809. * util/grub.d/30_os-prober.in: Use `set var=val' rather than plain
  22810. `var=val'.
  22811. 2010-01-14 Carles Pina i Estany <carles@pina.cat>
  22812. * normal/cmdline.c (print_completion): Gettextizze.
  22813. 2001-01-14 Carles Pina i Estany <carles@pina.cat>
  22814. * loader/i386/pc/chainloader.c: Include `<grub/mm.h>'.
  22815. 2010-01-14 Carles Pina i Estany <carles@pina.cat>
  22816. * gettext/gettext.c (grub_gettext_translate): Push and pop
  22817. grub_errno.
  22818. (grub_gettext_delete_list): Change comment style.
  22819. * kern/err.c (grub_error): Gettextizze.
  22820. (grub_fatal): Gettextizze.
  22821. 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
  22822. * include/grub/i386/loader.h (grub_linux16_boot): Renamed to ...
  22823. (grub_linux16_real_boot): ... this.
  22824. * kern/i386/loader.S: Likewise.
  22825. * loader/i386/pc/linux.c: Include `<grub/video.h>' and `<grub/mm.h>'.
  22826. (grub_linux16_boot): New function. Switches to text mode and calls
  22827. grub_linux16_real_boot().
  22828. * loader/i386/bsd.c: Include `<grub/video.h>'.
  22829. (grub_freebsd_boot, grub_openbsd_boot, grub_netbsd_boot): Switch to
  22830. text mode before calling grub_unix_real_boot().
  22831. * loader/i386/multiboot.c: Include `<grub/video.h>'.
  22832. (grub_multiboot_boot): Switch to text mode before calling
  22833. grub_relocator32_boot().
  22834. * loader/i386/pc/chainloader.c: Include `<grub/video.h>'.
  22835. (grub_chainloader_boot): Switch to text mode before calling
  22836. grub_chainloader_real_boot().
  22837. 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
  22838. 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
  22839. * util/grub-reboot.in: Make sure prev_saved_entry always gets a
  22840. non-empty value.
  22841. 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
  22842. 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
  22843. * util/grub.d/00_header.in: Define a "savedefault" function for use
  22844. in menu entries.
  22845. * util/grub-mkconfig_lib.in (save_default_entry): Use it.
  22846. 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
  22847. 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
  22848. * util/grub-mkconfig_lib.in (save_default_entry): Only set
  22849. saved_entry if boot_once is unset.
  22850. * util/grub.d/00_header.in: Set boot_once to "true" if there was a
  22851. previous saved entry (i.e. grub-reboot).
  22852. 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
  22853. * util/grub.d/30_os-prober.in: Call save_default_entry for hurd.
  22854. 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
  22855. * util/grub.d/00_header.in: Use `set var=val' rather than plain
  22856. `var=val'.
  22857. * util/grub-mkconfig_lib.in (save_default_entry): Likewise.
  22858. 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
  22859. * util/grub-reboot.in: Fix --version output.
  22860. * util/grub-set-default.in: Likewise.
  22861. 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
  22862. * util/grub.d/00_header.in: Silently ignore zero-sized environment
  22863. blocks.
  22864. 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
  22865. * util/grub.d/00_header.in: Quote the value assigned to `default',
  22866. in case it contains spaces.
  22867. 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
  22868. * util/grub.d/30_os-prober.in: Fix merge error that moved a
  22869. `save_default_entry' call from the macosx case to the linux case.
  22870. 2009-10-25 Vladimir Serbinenko <phcoder@gmail.com>
  22871. 2009-10-25 Colin Watson <cjwatson@ubuntu.com>
  22872. * normal/menu.c (grub_menu_execute_entry): Save selected entry title
  22873. in `chosen' environment variable.
  22874. * normal/menu_text.c (get_entry_number): Check if the variable
  22875. matches the title of a menu entry.
  22876. (run_menu): Pass menu to get_entry_number.
  22877. * util/grub-reboot.in: New file.
  22878. * util/grub-set-default.in: New file.
  22879. * conf/common.rmk (grub-reboot): New utility.
  22880. (grub-set-default): New utility.
  22881. * util/grub-mkconfig_lib.in (save_default_entry): New function.
  22882. * util/grub.d/00_header.in: If GRUB_DEFAULT is `saved', set
  22883. default to `${saved_entry}'. If `${prev_saved_entry}' is non-empty,
  22884. move it to `saved_entry' for the next boot. Load environment on
  22885. initialisation.
  22886. * util/grub.d/10_kfreebsd.in: Call save_default_entry.
  22887. * util/grub.d/10_hurd.in: Likewise.
  22888. * util/grub.d/10_linux.in (linux_entry): Likewise.
  22889. * util/grub.d/10_windows.in: Likewise.
  22890. * util/grub.d/30_os-prober.in: Likewise.
  22891. * util/grub-install.in: Create environment block.
  22892. * util/i386/efi/grub-install.in: Likewise.
  22893. * util/ieee1275/grub-install.in: Likewise.
  22894. * util/sparc64/ieee1275/grub-install.in: Likewise.
  22895. 2010-01-14 BVK Chaitanya <bvk.groups@gmail.com>
  22896. Unit testing framework for GRUB.
  22897. * Makefile.in: Test framework build rules for 'make check'.
  22898. * conf/tests.rmk: Build rules for individual tests and framework.
  22899. * include/grub/test.h: Header file for whitebox tests.
  22900. * tests/lib/functional_test.c: Framework support for whitebox
  22901. functional tests.
  22902. * tests/lib/test.c: Common whitebox testing code for unit and
  22903. functional tests.
  22904. * tests/lib/unit_test.c: Framework support for whitebox unit
  22905. tests.
  22906. * tests/util/grub-shell-tester.in: Support utility for grub-script
  22907. tests.
  22908. * tests/util/grub-shell.in: Utility to execute grub-script
  22909. commands in a Qemu instance.
  22910. * tests/example_functional_test.c: Example whitebox functional
  22911. test.
  22912. * tests/example_grub_script_test.in: Example grub-script test.
  22913. * tests/example_scripted_test.in: Example scripted test.
  22914. * tests/example_unit_test.c: Example whitebox unit test.
  22915. 2010-01-14 Vladimir Serbinenko <phcoder@gmail.com>
  22916. * conf/i386-coreboot.rmk (multiboot_mod_SOURCES):
  22917. Add loader/i386/multiboot_mbi.c.
  22918. (multiboot2_mod_SOURCES): Likewise.
  22919. * conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise.
  22920. (multiboot2_mod_SOURCES): Likewise.
  22921. * include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto.
  22922. (grub_multiboot_make_mbi): Likewise.
  22923. (grub_multiboot_free_mbi): Likewise.
  22924. (grub_multiboot_init_mbi): Likewise.
  22925. (grub_multiboot_add_module): Likewise.
  22926. (grub_multiboot_set_bootdev): Likewise.
  22927. * loader/i386/multiboot.c (mbi): Removed.
  22928. (mbi_dest): Likewise.
  22929. (alloc_mbi): New variable.
  22930. (grub_multiboot_payload_size): Removed. All users updated.
  22931. (grub_multiboot_pure_size): New variable.
  22932. (grub_multiboot_boot): Use grub_multiboot_make_mbi.
  22933. (grub_multiboot_unload): Use grub_multiboot_free_mbi.
  22934. (grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c.
  22935. (grub_fill_multiboot_mmap): Likewise.
  22936. (grub_multiboot_get_bootdev): Likewise.
  22937. (grub_multiboot): Use multiboot_mbi functions.
  22938. * loader/i386/multiboot_mbi.c: New file.
  22939. 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
  22940. * kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
  22941. it would result in module crash.
  22942. 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
  22943. * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'.
  22944. (grub_ofconsole_getwh): Split to ...
  22945. (grub_ofconsole_getwh): ... this.
  22946. (grub_ofconsole_dimensions): ...and this.
  22947. (grub_ofconsole_init_output): Call grub_ofconsole_dimensions.
  22948. 2010-01-13 Robert Millan <rmh.grub@aybabtu.com>
  22949. * util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo.
  22950. 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
  22951. * loader/i386/pc/multiboot2.c: Removed stalled file.
  22952. 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
  22953. * util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
  22954. Reported by: Grégoire Sutre
  22955. 2010-01-11 Robert Millan <rmh.grub@aybabtu.com>
  22956. * util/misc.c (canonicalize_file_name): New function.
  22957. (make_system_path_relative_to_its_root): Use canonicalize_file_name()
  22958. instead of realpath().
  22959. 2010-01-11 Colin Watson <cjwatson@ubuntu.com>
  22960. * util/grub-install.in (usage): Clarify meaning of --root-directory,
  22961. and make it clearer that it's optional. Based on confusion
  22962. witnessed on IRC.
  22963. 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
  22964. * term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
  22965. in premature implicit newline.
  22966. 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
  22967. * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
  22968. which resulted in garbled command line at the end of screen.
  22969. 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
  22970. * loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
  22971. initialization with similar approach as with other Linux loaders.
  22972. 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
  22973. Fix i386-ieee1275 build.
  22974. * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
  22975. and grub_term_height() for video_{width,height} initialization.
  22976. 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
  22977. Fix grub-emu build.
  22978. * conf/any-emu.rmk (grub_emu_SOURCES): Remove `kern/reader.c'.
  22979. 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
  22980. 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
  22981. Support for multiple terminals.
  22982. * Makefile.in (pkglib_DATA): terminal.lst.
  22983. (terminal.lst): New target.
  22984. * commands/handler.c (grub_cmd_handler): Don't handle terminals.
  22985. (GRUB_MOD_INIT(handler)): Likewise.
  22986. (GRUB_MOD_FINI(handler)): Likewise.
  22987. * commands/help.c (grub_cmd_help): Handle multiple terminals.
  22988. * commands/keystatus.c (grub_cmd_keystatus): Likewise.
  22989. * commands/sleep.c (do_print): Use grub_term_restore_pos.
  22990. (grub_cmd_sleep): Use grub_term_save_pos.
  22991. * commands/terminal.c: New file.
  22992. * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/term.c
  22993. commands/terminal.c and lib/charset.c.
  22994. * conf/common.rmk (normal_mod_SOURCES): Add normal/term.c.
  22995. (pkglib_MODULES): Add terminal.mod.
  22996. (terminal_mod_SOURCES): New variable.
  22997. (terminal_mod_CFLAGS): Likewise.
  22998. (terminal_mod_LDFLAGS): Likewise.
  22999. * genhandlerlist.sh: Don't handle terminals.
  23000. * genmk.rb: Generate terminal-*.lst.
  23001. * genterminallist.sh: New file.
  23002. * include/grub/charset.h (grub_ucs4_to_utf8_alloc): New proto.
  23003. (grub_is_valid_utf8): Likewise.
  23004. (grub_utf8_to_ucs4_alloc): Likewise.
  23005. * include/grub/menu_viewer.h (grub_menu_viewer): Rewritten.
  23006. (grub_menu_register_viewer): Changed argument.
  23007. (grub_menu_try_text): New proto.
  23008. (grub_gfxmenu_try_hook): New declaration.
  23009. * include/grub/normal.h (grub_normal_exit_level): New declaration.
  23010. (grub_menu_init_page): Additional argument term.
  23011. (grub_normal_init_page): Likewise.
  23012. (grub_cmdline_get): Arguments simplified.
  23013. (grub_utf8_to_ucs4_alloc): Removed.
  23014. (grub_print_ucs4): Additional argument term.
  23015. (grub_getstringwidth): Likewise.
  23016. (grub_print_message_indented): Likewise.
  23017. (grub_menu_text_register_instances): New proto.
  23018. (grub_show_menu): Likewise.
  23019. (read_terminal_list): Likewise.
  23020. (grub_set_more): Likewise.
  23021. * include/grub/parser.h: Include handler.h.
  23022. * include/grub/reader.h: Rewritten.
  23023. * include/grub/term.h (GRUB_TERM_NEED_INIT): Removed.
  23024. (GRUB_TERM_WIDTH): Changed to function.
  23025. (GRUB_TERM_HEIGHT): Likewise.
  23026. (GRUB_TERM_BORDER_WIDTH): Likewise.
  23027. (GRUB_TERM_BORDER_HEIGHT): Likewise.
  23028. (GRUB_TERM_NUM_ENTRIES): Likewise.
  23029. (GRUB_TERM_ENTRY_WIDTH): Likewise.
  23030. (GRUB_TERM_CURSOR_X): Likewise.
  23031. (grub_term_input_class): Likewise.
  23032. (grub_term_output_class): Likewise.
  23033. (grub_term_outputs_disabled): New declaration.
  23034. (grub_term_inputs_disabled): Likewise.
  23035. (grub_term_outputs): Likewise.
  23036. (grub_term_inputs): Likewise.
  23037. (grub_term_register_input): Rewritten.
  23038. (grub_term_register_output): Likewise.
  23039. (grub_term_unregister_input): Likewise.
  23040. (grub_term_unregister_output): Likewise.
  23041. (FOR_ACTIVE_TERM_INPUTS): New macro.
  23042. (FOR_DISABLED_TERM_INPUTS): Likewise.
  23043. (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
  23044. (FOR_DISABLED_TERM_OUTPUTS): Likewise.
  23045. * include/grub/terminfo.h: Add oterm argument to all protypes.
  23046. * kern/main.c (grub_main): Don't call grub_register_rescue_reader.
  23047. Use grub_rescue_run.
  23048. * kern/misc.c (grub_utf8_to_ucs4): Put '?' for invalid characters.
  23049. All users updated.
  23050. * kern/reader.c: Removed. All users updated.
  23051. * kern/rescue_reader.c (grub_rescue_init): Removed.
  23052. (grub_rescue_reader): Likewise.
  23053. (grub_register_rescue_reader): Likewise.
  23054. (grub_rescue_run): New function based on kern/reader.c.
  23055. * kern/term.c: Adapted for multiterm.
  23056. * lib/charset.c (grub_ucs4_to_utf8_alloc): New function.
  23057. (grub_is_valid_utf8): Likewise.
  23058. (grub_utf8_to_ucs4_alloc): Moved from normal/menu_text.c.
  23059. * loader/i386/efi/linux.c (grub_cmd_linux): Retrieve parameters of
  23060. right terminal.
  23061. * loader/i386/linux.c (grub_linux_boot): Likewise.
  23062. * normal/auth.c (grub_username_get): New function.
  23063. (grub_auth_check_authentication): Use grub_username_get.
  23064. * normal/cmdline.c: Changed to UCS4. Adapted for multiterm.
  23065. * normal/color.c: Adapt for multiterm.
  23066. * normal/main.c (read_config_file): Don't use grub_reader_loop.
  23067. (grub_normal_init_page): Additional argument term.
  23068. (read_lists): Call read_terminal_lists.
  23069. (grub_enter_normal_mode): Call grub_cmdline_run.
  23070. Handle grub_normal_exit_level.
  23071. (grub_cmd_normal): Make reentrant.
  23072. (grub_cmd_normal_exit): New function.
  23073. (grub_normal_reader_init): Additional argument nested. Handle multiterm.
  23074. * normal/menu.c: Adapt for multiterm.
  23075. * normal/menu_entry.c: Likewise.
  23076. * normal/menu_text.c: Likewise.
  23077. * normal/menu_viewer.c: Removed. All users updated.
  23078. * normal/term.c: New file.
  23079. * util/console.c: Change order of includes to workaround a bug in
  23080. ncurses headers.
  23081. * term/terminfo.c: New argument oterm on all exported functions.
  23082. All users updated.
  23083. * util/grub-editenv.c (grub_term_input_class): Removed.
  23084. (grub_term_output_class): Likewise.
  23085. 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
  23086. Make loader output a bit more user-friendly.
  23087. * util/grub.d/10_hurd.in: Print message indicating that GNU Mach
  23088. is being loaded. Likewise for the Hurd.
  23089. * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating
  23090. that kernel of FreeBSD ${version} is being loaded.
  23091. * loader/i386/linux.c (grub_cmd_linux): Move debug info to
  23092. grub_dprintf().
  23093. (grub_cmd_initrd): Likewise.
  23094. * util/grub.d/10_linux.in (linux_entry): Print message indicating
  23095. that Linux ${version} is being loaded. Likewise for initrd.
  23096. 2010-01-09 Carles Pina i Estany <carles@pina.cat>
  23097. * gettext/gettext.c (GRUB_MOD_INIT): Gettextizze.
  23098. 2010-01-08 Carles Pina i Estany <carles@pina.cat>
  23099. * loader/efi/appleloader.c: Include `<grub/i18n.h>'.
  23100. (GRUB_MOD_INIT): Gettextizze.
  23101. * loader/efi/chainloader.c: Include `<grub/i18n.h>'.
  23102. (GRUB_MOD_INIT): Gettextizze.
  23103. * loader/i386/efi/linux.c: Include `<grub/i18n.h>'.
  23104. (grub_cmd_linux): Capitalise Linux.
  23105. (GRUB_MOD_INIT): Gettextizze.
  23106. * loader/i386/ieee1275/linux.c: Include `<grub/i18n.h>'.
  23107. (grub_cmd_linux): Capitalise Linux.
  23108. (GRUB_MOD_INIT): Gettextizze.
  23109. * loader/i386/linux.c: Include `<grub/i18n.h>'.
  23110. (grub_cmd_linux): Capitalise Linux.
  23111. (GRUB_MOD_INIT): Gettextizze.
  23112. * loader/i386/pc/chainloader.c: Include `<grub/i18n.h>'.
  23113. (GRUB_MOD_INIT): Gettextizze.
  23114. * loader/i386/pc/linux.c: Include `<grub/i18n.h>'.
  23115. (grub_cmd_linux): Capitalise Linux.
  23116. (GRUB_MOD_INIT): Gettextizze.
  23117. * loader/i386/xnu.c: Include `<grub/i18n.h>'.
  23118. (grub_cpu_xnu_init): Gettextizze.
  23119. * loader/multiboot_loader.c: Include `<grub/i18n.h>'.
  23120. (GRUB_MOD_INIT): Gettextizze.
  23121. * loader/powerpc/ieee1275/linux.c: Include `<grub/i18n.h>'.
  23122. (GRUB_MOD_INIT): Gettextizze.
  23123. * loader/sparc64/ieee1275/linux.c: Include `<grub/i18n.h>'.
  23124. (grub_linux_load64): Capitalise Linux.
  23125. (GRUB_MOD_INIT): Gettextizze.
  23126. * loader/xnu.c: Include `<grub/i18n.h>'.
  23127. (GRUB_MOD_INIT): Gettextizze.
  23128. * po/POTFILES: Add `loader/efi/appleloader.c',
  23129. `loader/efi/chainloader.c', `loader/i386/efi/linux.c',
  23130. `loader/i386/ieee1275/linux.c', `loader/i386/linux.c',
  23131. `loader/i386/pc/chainloader.c', `loader/i386/pc/linux.c',
  23132. `loader/i386/xnu.c', `loader/multiboot_loader.c',
  23133. `loader/powerpc/ieee1275/linux.c', `loader/sparc64/ieee1275/linux.c'
  23134. and `loader/xnu.c'.
  23135. 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
  23136. * src/mkisofs.c: Remove `ifdef linux' portability kludge.
  23137. 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
  23138. * util/mkisofs/defaults.h (APPID_DEFAULT): Redefine using PACKAGE_NAME.
  23139. (SYSTEM_ID_DEFAULT): Set to "GNU" unconditionally.
  23140. * util/mkisofs/mkisofs.c (main): Readjust --version output.
  23141. 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
  23142. Reset Multiboot 2 support. New loader implements the draft in
  23143. /branches/multiboot2 and shares as much code as possible with the
  23144. production Multiboot 1 implementation.
  23145. * loader/ieee1275/multiboot2.c: Remove file. Update all users.
  23146. * loader/multiboot2.c: Likewise.
  23147. * loader/i386/multiboot_helper.S: Likewise.
  23148. * include/multiboot2.h: Replace with latest version from the draft
  23149. in /branches/multiboot2.
  23150. * conf/i386-coreboot.rmk (multiboot_mod_SOURCES): Remove
  23151. `loader/i386/multiboot_helper.S', `loader/i386/pc/multiboot2.c'
  23152. and `loader/multiboot2.c'.
  23153. (pkglib_MODULES): Add `multiboot2.mod'.
  23154. (multiboot2_mod_SOURCES): New variable.
  23155. (multiboot2_mod_LDFLAGS): Likewise.
  23156. (multiboot2_mod_CFLAGS): Likewise. Define `GRUB_USE_MULTIBOOT2'.
  23157. * conf/i386-pc.rmk: Likewise.
  23158. * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
  23159. (multiboot_mod_SOURCES): Remove variable.
  23160. (multiboot_mod_LDFLAGS): Likewise.
  23161. (multiboot_mod_CFLAGS): Likewise.
  23162. * include/grub/multiboot.h [GRUB_USE_MULTIBOOT2]: Include
  23163. `<multiboot2.h>' instead of `<multiboot.h>'.
  23164. [GRUB_USE_MULTIBOOT2] (MULTIBOOT_BOOTLOADER_MAGIC)
  23165. (MULTIBOOT_HEADER_MAGIC): New macros.
  23166. * loader/multiboot_loader.c (module_version_status): Remove variable.
  23167. (find_multi_boot2_header): Remove function.
  23168. (grub_cmd_multiboot_loader): Remove Multiboot 2 / Multiboot 1 selection
  23169. logic. Always check for the Multiboot version we're compiling for.
  23170. (grub_cmd_module_loader): Likewise.
  23171. [GRUB_USE_MULTIBOOT2] (GRUB_MOD_INIT(multiboot)): Register `multiboot2'
  23172. command instead of `multiboot'.
  23173. 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
  23174. * include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
  23175. * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here. Update
  23176. all users.
  23177. 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
  23178. 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
  23179. Fix breakage introduced with previous commit.
  23180. * normal/dyncmd.c (read_command_list): Avoid unregistering kernel
  23181. commands.
  23182. * normal/handler.c (read_handler_list): Revert part of previous commit
  23183. affecting this file.
  23184. * normal/main.c (read_lists): Move read_handler_list() call back to ...
  23185. (grub_normal_execute): ... here.
  23186. 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
  23187. Merge prefix-redefinition-fix branch.
  23188. * normal/autofs.c (read_fs_list): Make function capable of being
  23189. run multiple times, gracefuly replacing the previous data
  23190. structures.
  23191. * normal/dyncmd.c (read_command_list): Likewise.
  23192. * normal/handler.c (read_handler_list): Likewise.
  23193. * normal/main.c (read_lists): New function. Calls all the
  23194. list reading functions.
  23195. (grub_normal_execute): Use read_lists() instead of calling all
  23196. list reading functions explicitly. Register read_lists() as a
  23197. variable hook attached to ${prefix}.
  23198. 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
  23199. Merge crypto branch.
  23200. * Makefile.in (pkglib_DATA): Add crypto.lst.
  23201. (crypto.lst): New target.
  23202. * commands/hashsum.c: New file.
  23203. * commands/password.c (check_password): Use grub_crypto_memcmp.
  23204. * commands/password_pbkdf2.c: New file.
  23205. * commands/xnu_uuid.c: Remove MD5. Use GRUB_MD_MD5.
  23206. * conf/any-emu.rmk (grub_emu_SOURCES): Add lib/crypto.c,
  23207. normal/crypto.c and lib/libgcrypt-grub/cipher/md5.c.
  23208. (grub_emu_CFLAGS): Add -Wno-missing-field-initializers -Wno-error
  23209. -I$(srcdir)/lib/libgcrypt_wrap.
  23210. * conf/common.rmk (normal_mod_SOURCES): Add normal/crypto.c.
  23211. (pkglib_MODULES): Add crypto.mod, hashsum.mod, pbkdf2.mod and
  23212. password_pbkdf2.mod.
  23213. (crypto_mod_SOURCES): New variable.
  23214. (crypto_mod_CFLAGS): Likewise.
  23215. (crypto_mod_LDFLAGS): Likewise.
  23216. (hashsum_mod_SOURCES): New variable.
  23217. (hashsum_mod_CFLAGS): Likewise.
  23218. (hashsum_mod_LDFLAGS): Likewise.
  23219. (pbkdf2_mod_SOURCES): New variable.
  23220. (pbkdf2_mod_CFLAGS): Likewise.
  23221. (pbkdf2_mod_LDFLAGS): Likewise.
  23222. (password_pbkdf2_mod_SOURCES): New variable.
  23223. (password_pbkdf2_mod_CFLAGS): Likewise.
  23224. (password_pbkdf2_mod_LDFLAGS): Likewise.
  23225. (bin_UTILITIES): Add grub-mkpasswd-pbkdf2.
  23226. (grub_mkpasswd_pbkdf2_SOURCES): New variable.
  23227. (grub_mkpasswd_pbkdf2_CFLAGS): Likewise.
  23228. Include conf/gcry.rmk.
  23229. * include/grub/auth.h: Rewritten.
  23230. * include/grub/crypto.h: New file.
  23231. * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_LUKS_ID.
  23232. * include/grub/normal.h (read_crypto_list): New prototype.
  23233. * lib/crypto.c: New file.
  23234. * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
  23235. * lib/pbkdf2.c: Likewise.
  23236. * normal/auth.c (grub_auth_strcmp): Removed.
  23237. (grub_iswordseparator): Likewise.
  23238. (grub_auth_strword): Likewise.
  23239. (is_authenticated): Use grub_strword.
  23240. (grub_auth_check_authentication): Use grub_strcmp, grub_password_get
  23241. and grub_strword. Pass entered password to authentication callback.
  23242. * normal/crypto.c: New file.
  23243. * normal/main.c: Call read_crypto_list.
  23244. * util/grub-mkpasswd-pbkdf2.c: New file.
  23245. * util/import_gcry.py: Generate crypto.lst. Add hash blocklen.
  23246. 2010-01-06 Vladimir Serbinenko <phcoder@gmail.com>
  23247. Fix descent and ascent calculation.
  23248. * util/grub-mkfont.c (grub_font_info): New fields 'asce' and 'max_y'.
  23249. (options): New option "asce".
  23250. (usage): Likewise.
  23251. (add_char): Ignore invalid glyphs for descent calculation.
  23252. Calculate ascent from actual content.
  23253. (print_glyphs): Use 'asce'.
  23254. (write_font): Likewise. Allow ascent override.
  23255. (main): Handle "asce" option.
  23256. 2010-01-06 Carles Pina i Estany <carles@pina.cat>
  23257. * kern/err.c: Include `<grub/i18n.h>'.
  23258. (grub_print_error): Add full stop. Gettextizze.
  23259. * loader/i386/bsd.c (grub_netbsd_boot): Change grub_error description.
  23260. (grub_bsd_load_elf): Capitalise ELF.
  23261. (grub_cmd_freebsd_loadenv): Add `s' in error string.
  23262. (grub_cmd_freebsd_module): Likewise.
  23263. (grub_cmd_freebsd_module_elf): Likewise.
  23264. * loader/i386/bsdXX.c (SUFFIX): Capitalise ELF.
  23265. 2010-01-06 Carles Pina i Estany <carles@pina.cat>
  23266. * commands/search.c (GRUB_MOD_INIT): Use HELP_MESSAGE.
  23267. * commands/search_file.c (HELP_MESSAGE): New macro.
  23268. * commands/search_label.c (HELP_MESSAGE): Likewise.
  23269. * commands/search_uuid.c (HELP_MESSAGE): Likewise.
  23270. * po/POTFILES: Add `commands/search_file.c',
  23271. `commands/search_label.c', `commands_uuid.c'. Remove duplicate
  23272. `commands/search.c'.
  23273. 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
  23274. * config.rpath: Update from Gnulib.
  23275. 2010-01-05 Yves Blusseau <blusseau@zetam.org>
  23276. * commands/acpi.c (grub_acpi_create_ebda): fix incorrect message.
  23277. 2010-01-05 Yves Blusseau <yves.blusseau@zetam.org>
  23278. * util/sparc64/ieee1275/grub-mkimage.c (main): Typo fix.
  23279. 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
  23280. * util/mkisofs/write.c (padblock_write): Switch size and nmemb
  23281. arguments to fread so that we get a return value in bytes, rather
  23282. than something that will normally be rounded down to 0.
  23283. Adjust error handling to avoid producing garbage when size_t is not
  23284. the same size as long long.
  23285. 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
  23286. * util/mkisofs/write.c (padblock_write): Check return value of
  23287. fread.
  23288. 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
  23289. Remove grub-mkfloppy. Images produced by grub-mkrescue are valid
  23290. floppy images now.
  23291. * util/i386/pc/grub-mkfloppy.in: Remove. Update all users.
  23292. 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
  23293. * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Use ALIGN_UP macro
  23294. instead of manual alignment.
  23295. * kern/disk.c (grub_disk_read): Remove grub_dprintf call (excessively
  23296. verbose). Avoid attempts to read past end of the device
  23297. (grub_disk_adjust_range() guarantees that we can read `size' bytes,
  23298. but GRUB_DISK_CACHE_SIZE may exceed that).
  23299. 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
  23300. * commands/crc.c (grub_cmd_crc): Abort on read errors.
  23301. * fs/iso9660.c (grub_iso9660_read): Check for read error and pass
  23302. it to upper layer.
  23303. 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
  23304. * include/grub/efi/api.h (GRUB_EFI_PIWG_DEVICE_PATH_SUBTYPE):
  23305. New constant.
  23306. (grub_efi_piwg_device_path): New structure
  23307. (grub_efi_piwg_device_path_t): New type.
  23308. * loader/efi/appleloader.c (piwg_full_device_path): New structure.
  23309. (devpath_1): Transform to a structure. All users updated.
  23310. (devpath_2): Likewise.
  23311. (devpath_3): Likewise.
  23312. (devpath_4): Likewise.
  23313. (devpath_5): Likewise.
  23314. 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
  23315. * loader/efi/appleloader.c: Restored. Update all users.
  23316. 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
  23317. * boot/i386/pc/diskboot.S: Fix inaccurate comment.
  23318. * util/i386/pc/grub-setup.c: Include `<assert.h>'.
  23319. (struct boot_blocklist): Move from here ...
  23320. * include/grub/i386/pc/boot.h [ASM_FILE]
  23321. (struct grub_boot_blocklist): ... to here. Update all users.
  23322. (setup): Only initialize `start' member of `first_block'
  23323. structure. Add assert() calls to verify the other members.
  23324. * util/i386/pc/grub-mkimage.c: Include `<assert.h>'.
  23325. (generate_image): Fix broken blocklist length initialization.
  23326. Add assert() call to verify blocklist `segment' field.
  23327. 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
  23328. * loader/efi/appleloader.c: Remove. Update all users.
  23329. 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
  23330. * boot/i386/pc/boot.S: Update copyright year.
  23331. * boot/i386/pc/cdboot.S: Likewise.
  23332. * boot/i386/pc/diskboot.S: Likewise.
  23333. * boot/i386/pc/lnxboot.S: Likewise.
  23334. * boot/i386/pc/pxeboot.S: Likewise.
  23335. * bus/pci.c: Likewise.
  23336. * commands/cmp.c: Likewise.
  23337. * commands/help.c: Likewise.
  23338. * commands/hexdump.c: Likewise.
  23339. * commands/i386/pc/halt.c: Likewise.
  23340. * commands/i386/pc/play.c: Likewise.
  23341. * commands/i386/pc/vbeinfo.c: Likewise.
  23342. * commands/ls.c: Likewise.
  23343. * commands/test.c: Likewise.
  23344. * disk/dmraid_nvidia.c: Likewise.
  23345. * disk/i386/pc/biosdisk.c: Likewise.
  23346. * disk/ieee1275/nand.c: Likewise.
  23347. * disk/ieee1275/ofdisk.c: Likewise.
  23348. * disk/lvm.c: Likewise.
  23349. * disk/raid.c: Likewise.
  23350. * disk/raid6_recover.c: Likewise.
  23351. * disk/scsi.c: Likewise.
  23352. * fs/affs.c: Likewise.
  23353. * fs/cpio.c: Likewise.
  23354. * fs/ext2.c: Likewise.
  23355. * fs/hfs.c: Likewise.
  23356. * fs/iso9660.c: Likewise.
  23357. * fs/ntfs.c: Likewise.
  23358. * fs/sfs.c: Likewise.
  23359. * fs/udf.c: Likewise.
  23360. * fs/ufs.c: Likewise.
  23361. * fs/xfs.c: Likewise.
  23362. * gencmdlist.sh: Likewise.
  23363. * genmk.rb: Likewise.
  23364. * include/grub/disk.h: Likewise.
  23365. * include/grub/efi/api.h: Likewise.
  23366. * include/grub/efi/efi.h: Likewise.
  23367. * include/grub/efi/pe32.h: Likewise.
  23368. * include/grub/elf.h: Likewise.
  23369. * include/grub/fs.h: Likewise.
  23370. * include/grub/i386/at_keyboard.h: Likewise.
  23371. * include/grub/i386/pc/memory.h: Likewise.
  23372. * include/grub/i386/pc/vbe.h: Likewise.
  23373. * include/grub/i386/pci.h: Likewise.
  23374. * include/grub/i386/tsc.h: Likewise.
  23375. * include/grub/ieee1275/ieee1275.h: Likewise.
  23376. * include/grub/ntfs.h: Likewise.
  23377. * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
  23378. * include/grub/sparc64/libgcc.h: Likewise.
  23379. * include/grub/symbol.h: Likewise.
  23380. * include/grub/types.h: Likewise.
  23381. * include/multiboot2.h: Likewise.
  23382. * io/gzio.c: Likewise.
  23383. * kern/device.c: Likewise.
  23384. * kern/disk.c: Likewise.
  23385. * kern/efi/efi.c: Likewise.
  23386. * kern/efi/mm.c: Likewise.
  23387. * kern/elf.c: Likewise.
  23388. * kern/file.c: Likewise.
  23389. * kern/i386/dl.c: Likewise.
  23390. * kern/i386/pc/init.c: Likewise.
  23391. * kern/i386/pc/startup.S: Likewise.
  23392. * kern/ieee1275/ieee1275.c: Likewise.
  23393. * kern/ieee1275/init.c: Likewise.
  23394. * kern/main.c: Likewise.
  23395. * kern/mm.c: Likewise.
  23396. * kern/powerpc/dl.c: Likewise.
  23397. * kern/sparc64/dl.c: Likewise.
  23398. * kern/x86_64/dl.c: Likewise.
  23399. * lib/hexdump.c: Likewise.
  23400. * loader/efi/appleloader.c: Likewise.
  23401. * loader/i386/ieee1275/linux.c: Likewise.
  23402. * loader/i386/pc/chainloader.c: Likewise.
  23403. * loader/i386/pc/linux.c: Likewise.
  23404. * loader/i386/pc/multiboot2.c: Likewise.
  23405. * loader/ieee1275/multiboot2.c: Likewise.
  23406. * loader/multiboot2.c: Likewise.
  23407. * loader/multiboot_loader.c: Likewise.
  23408. * loader/powerpc/ieee1275/linux.c: Likewise.
  23409. * normal/completion.c: Likewise.
  23410. * normal/menu_entry.c: Likewise.
  23411. * partmap/apple.c: Likewise.
  23412. * util/grub.d/10_hurd.in: Likewise.
  23413. * util/hostfs.c: Likewise.
  23414. * video/readers/png.c: Likewise.
  23415. 2010-01-03 Colin Watson <cjwatson@ubuntu.com>
  23416. * include/grub/misc.h (GNUC_PREREQ): New macro.
  23417. (ATTRIBUTE_ERROR): New macro.
  23418. * include/grub/list.h (grub_bad_type_cast_real): Use
  23419. ATTRIBUTE_ERROR.
  23420. 2010-01-03 Carles Pina i Estany <carles@pina.cat>
  23421. * normal/menu_text.c (print_message): Change messages.
  23422. 2010-01-03 Carles Pina i Estany <carles@pina.cat>
  23423. * normal/menu_entry.c (store_completion): Gettextizze.
  23424. 2010-01-03 Carles Pina i Estany <carles@pina.cat>
  23425. * kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
  23426. 2010-01-03 Carles Pina i Estany <carles@pina.cat>
  23427. * po/POTFILES: Sort correctly.
  23428. 2010-01-03 Carles Pina i Estany <carles@pina.cat>
  23429. * commands/acpi.c (GRUB_MOD_INIT): Capitalise some words from help.
  23430. * commands/efi/loadbios.c (GRUB_MOD_INIT): Capitalise BIOS.
  23431. * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Remove space. Add
  23432. full stop.
  23433. * commands/loadenv.c (GRUB_MOD_INIT): Remove command name from
  23434. summary. Gettextizze the strings.
  23435. * commands/probe.c (grub_cmd_probe): Capitalise UUID and FS.
  23436. * commands/xnu_uuid.c (GRUB_MOD_INIT): Capitalise XNU.
  23437. * disk/loopback.c (grub_arg_options): Capitalise first letter. Add
  23438. full stop.
  23439. (GRUB_MOD_INIT): Remove command name from summary.
  23440. * hello/hello.c (GRUD_MOT_INIT): Add missing full stop. Improve the
  23441. summary.
  23442. * loader/i386/bsd.c (grub_arg_option): Capitalise CDROM.
  23443. * term/i386/pc/serial.c (options): Add full stops.
  23444. (GRUB_MOD_INIT): Remove command name from the summary.
  23445. 2010-01-03 Carles Pina i Estany <carles@pina.cat>
  23446. * commands/acpi.c: Gettextizze help strings and/or options. Include
  23447. `grub/i18n.h' if needed.
  23448. * commands/blocklist.c: Likewise.
  23449. * commands/boot.c: Likewise.
  23450. * commands/cat.c: Likewise.
  23451. * commands/cmp.c: Likewise.
  23452. * commands/configfile.c: Likewise.
  23453. * commands/crc.c: Likewise.
  23454. * commands/date.c: Likewise.
  23455. * commands/echo.c: Likewise.
  23456. * commands/efi/fixvideo.c: Likewise.
  23457. * commands/efi/loadbios.c: Likewise.
  23458. * commands/gptsync.c: Likewise.
  23459. * commands/halt.c: Likewise.
  23460. * commands/handler.c: Likewise.
  23461. * commands/hdparm.c: Likewise.
  23462. * commands/hexdump.c: Likewise.
  23463. * commands/i386/cpuid.c: Likewise.
  23464. * commands/i386/pc/drivemap.c: Likewise.
  23465. * commands/i386/pc/halt.c: Likewise.
  23466. * commands/i386/pc/pxecmd.c: Likewise.
  23467. * commands/i386/pc/vbeinfo.c: Likewise.
  23468. * commands/i386/pc/vbetest.c: Likewise.
  23469. * commands/ieee1275/suspend.c: Likewise.
  23470. * commands/keystatus.c: Likewise.
  23471. * commands/loadenv.c: Likewise.
  23472. * commands/ls.c: Likewise.
  23473. * commands/lsmmap.c: Likewise.
  23474. * commands/lspci.c: Likewise.
  23475. * commands/memrw.c: Likewise.
  23476. * commands/minicmd.c: Likewise.
  23477. * commands/parttool.c: Likewise.
  23478. * commands/password.c: Likewise.
  23479. * commands/probe.c: Likewise.
  23480. * commands/read.c: Likewise.
  23481. * commands/reboot.c: Likewise.
  23482. * commands/search.c: Likewise.
  23483. * commands/sleep.c: Likewise.
  23484. * commands/test.c: Likewise.
  23485. * commands/true.c: Likewise.
  23486. * commands/usbtest.c: Likewise.
  23487. * commands/videotest.c: Likewise.
  23488. * commands/xnu_uuid.c: Likewise.
  23489. * disk/loopback.c: Likewise.
  23490. * hello/hello.c: Likewise.
  23491. * loader/i386/bsd.c: Likewise.
  23492. * term/i386/pc/serial.c: Likewise.
  23493. * po/POTFILES: Add new files.
  23494. 2010-01-02 Colin Watson <cjwatson@ubuntu.com>
  23495. * term/i386/pc/at_keyboard.c
  23496. (keyboard_controller_wait_untill_ready): Rename to ...
  23497. (keyboard_controller_wait_until_ready): ... this. Update all users.
  23498. 2010-01-01 Carles Pina i Estany <carles@pina.cat>
  23499. * commands/help.c: Include `grub/mm.h' and `grub/normal.h'.
  23500. (grub_cmd_help): Print the cmd->name before the cmd->summary. Cut the
  23501. string using string width.
  23502. * normal/menu_text.c (grub_print_message_indented): Use
  23503. grub_print_spaces and not print_spaces.
  23504. (print_timeout): Likewise.
  23505. (print_spaces): Move to...
  23506. * include/grub/term.h: ... here. Change the name to grub_print_spaces.
  23507. 2010-01-01 Robert Millan <rmh.grub@aybabtu.com>
  23508. Import from Gnulib.
  23509. * gnulib/getdelim.c: New file.
  23510. * gnulib/getline.c: Likewise.
  23511. 2009-12-31 BVK Chaitanya <bvk.groups@gmail.com>
  23512. * include/grub/list.h (grub_assert_fail): Removed.
  23513. (grub_bad_type_cast_real): New function.
  23514. (grub_bad_type_cast): New macro.
  23515. (GRUB_AS_LIST): Use grub_bad_type_cast.
  23516. (GRUB_AS_LIST_P): Likewise.
  23517. (GRUB_AS_NAMED_LIST): Likewise.
  23518. (GRUB_AS_NAMED_LIST_P): Likewise.
  23519. (GRUB_AS_PRIO_LIST): Likewise.
  23520. (GRUB_AS_PRIO_LIST_P): Likewise.
  23521. * include/grub/handler.h (GRUB_AS_HANDLER): Likewise.
  23522. 2009-12-29 Vladimir Serbinenko <phcoder@gmail.com>
  23523. * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)):
  23524. Fix syntax error.
  23525. 2009-12-29 Robert Millan <rmh.grub@aybabtu.com>
  23526. * configure.ac: Check for TARGET_CFLAGS initialization before we
  23527. initialize it ourselves (sigh).
  23528. Move a few modifications to TARGET_CFLAGS to be unconditional
  23529. (extra warning flags, loop alignment, i386 CPU extensions, GCC 4.4
  23530. eh_frame)
  23531. * gettext/gettext.c (grub_gettext_delete_list): Add `void' argument.
  23532. * term/i386/pc/at_keyboard.c
  23533. (keyboard_controller_wait_untill_ready): Likewise.
  23534. (keyboard_controller_led): Rename `led_status' paramter to avoid
  23535. name conflict.
  23536. 2009-12-28 Carles Pina i Estany <carles@pina.cat>
  23537. * normal/misc.c (grub_normal_print_device_info): Add spaces and double
  23538. quotes.
  23539. 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
  23540. * kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
  23541. 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
  23542. * normal/menu_text.c (grub_print_message_indented): Prevent
  23543. past-the-end-of-array dereference.
  23544. 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
  23545. * video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to ..
  23546. (GRUB_MOD_FINI (video_reader_jpeg)): ...this
  23547. 2009-12-27 Carles Pina i Estany <carles@pina.cat>
  23548. * normal/cmdline.c (grub_cmdline_get): Print a space after prompt.
  23549. * normal/main.c (grub_normal_read_line): Remove a space from the
  23550. default prompt.
  23551. 2009-12-27 Carles Pina i Estany <carles@pina.cat>
  23552. * loader/i386/efi/linux.c (GRUB_MOD_INIT): Improve command summary.
  23553. * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
  23554. * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
  23555. * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
  23556. * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
  23557. * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
  23558. * loader/xnu.c (GRUB_MOD_INIT): Likewise.
  23559. 2009-12-26 Carles Pina i Estany <carles@pina.cat>
  23560. * video/readers/jpeg.c (cmd): Declare.
  23561. (grub_cmd_jpegtest): Use `grub_command_t' type.
  23562. (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
  23563. Assign to `cmd'.
  23564. (GRUB_MOD_FINI): Use `cmd' to unregister.
  23565. * video/readers/png.c (cmd): Declare.
  23566. (grub_cmd_pngtest): Use `grub_command_t' type.
  23567. (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
  23568. Assign to `cmd'.
  23569. (GRUB_MOD_FINI): Use `cmd' to unregister.
  23570. * video/readers/tga.c (cmd): Declare.
  23571. (grub_cmd_tgatest): Use `grub_command_t' type.
  23572. (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
  23573. Assign to `cmd'.
  23574. (GRUB_MOD_FINI): Use `cmd' to unregister.
  23575. 2009-12-26 Carles Pina i Estany <carles@pina.cat>
  23576. * efiemu/main.c (GRUB_MOD_INIT): Fix capitalizations and/or full
  23577. stops.
  23578. * kern/corecmd.c (grub_register_core_commands): Likewise.
  23579. * loader/efi/chainloader.c (GRUB_MOD_INIT): Likewise.
  23580. * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
  23581. * loader/i386/efi/linux.c (GRUB_MOD_INIT): Likewise.
  23582. * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
  23583. * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
  23584. * loader/i386/pc/chainloader.c (GRUB_MOD_INIT): Likewise.
  23585. * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
  23586. * loader/multiboot_loader.c (GRUB_MOD_INIT): Likewise.
  23587. * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
  23588. * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
  23589. * loader/xnu.c (GRUB_MOD_INIT): Likewise.
  23590. * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
  23591. * normal/handler.c (insert_handler): Likewise.
  23592. * normal/main.c (GRUB_MOD_INIT): Likewise.
  23593. * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
  23594. 2009-12-26 Carles Pina i Estany <carles@pina.cat>
  23595. * commands/help.c (grub_cmd_help): Print the command name before the
  23596. summary.
  23597. (GRUB_MOD_INIT): Remove command name from the summary.
  23598. * kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty
  23599. string as summary.
  23600. * lib/arg.c (find_long): Print the command name before the summary.
  23601. * commands/acpi.c (GRUB_MOD_INIT): Remove command name from the
  23602. summary.
  23603. * commands/blocklist.c (GRUB_MOD_INIT): Likewise.
  23604. * commands/cat.c (GRUB_MOD_INIT): Likewise.
  23605. * commands/cmp.c (GRUB_MOD_INIT): Likewise.
  23606. * commands/configfile.c (GRUB_MOD_INIT): Likewise.
  23607. * commands/crc.c (GRUB_MOD_INIT): Likewise.
  23608. * commands/date.c (GRUB_MOD_INIT): Likewise.
  23609. * commands/echo.c (GRUB_MOD_INIT): Likewise.
  23610. * commands/efi/loadbios.c (GRUB_MOD_INIT): Likewise.
  23611. * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
  23612. * commands/handler.c (GRUB_MOD_INIT): Likewise.
  23613. * commands/hdparm.c (GRUB_MOD_INIT): Likewise.
  23614. * commands/hexdump.c (GRUB_MOD_INIT): Likewise.
  23615. * commands/i386/cpuid.c (GRUB_MOD_INIT): Likewise.
  23616. * commands/i386/pc/halt.c (GRUB_MOD_INIT): Likewise.
  23617. * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
  23618. * commands/i386/pc/pxecmd.c (GRUB_MOD_INIT): Likewise.
  23619. * commands/keystatus.c (GRUB_MOD_INIT): Likewise.
  23620. * commands/loadenv.c (GRUB_MOD_INIT): Likewise.
  23621. * commands/ls.c (GRUB_MOD_INIT): Likewise.
  23622. * commands/lspci.c (GRUB_MOD_INIT): Likewise.
  23623. * commands/memrw.c (GRUB_MOD_INIT): Likewise.
  23624. * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
  23625. * commands/parttool.c (GRUB_MOD_INIT): Likewise.
  23626. * commands/password.c (GRUB_MOD_INIT): Likewise.
  23627. * commands/probe.c (GRUB_MOD_INIT): Likewise.
  23628. * commands/read.c (GRUB_MOD_INIT): Likewise.
  23629. * commands/search.c (GRUB_MOD_INIT): Likewise.
  23630. * commands/sleep.c (GRUB_MOD_INIT): Likewise.
  23631. * commands/test.c (GRUB_MOD_INIT): Likewise.
  23632. * commands/xnu_uuid.c (GRUB_MOD_INIT): Likewise.
  23633. * efiemu/main.c (GRUB_MOD_INIT): Likewise.
  23634. * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
  23635. * gettext/gettext.c (GRUB_MOD_INIT): Likewise.
  23636. * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
  23637. * lib/arg.c (GRUB_MOD_INIT): Likewise.
  23638. * loader/efi/appleloader.c (GRUB_MOD_INIT): Likewise.
  23639. * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
  23640. * loader/xnu.c (GRUB_MOD_INIT): Likewise.
  23641. * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
  23642. * term/terminfo.c (GRUB_MOD_INIT): Likewise.
  23643. * video/readers/jpeg.c (GRUB_MOD_INIT): Likewise.
  23644. * video/readers/png.c (GRUB_MOD_INIT): Likewise.
  23645. * video/readers/tga.c (GRUB_MOD_INIT): Likewise.
  23646. 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
  23647. Use search command for preliminar UUID search.
  23648. * commands/search.c: Split into ...
  23649. * commands/search_wrap.c: ...this
  23650. * commands/search.c: ...and this.
  23651. * commands/search_file.c: New file.
  23652. * commands/search_label.c: New file.
  23653. * commands/search_uuid.c: New file.
  23654. * conf/any-emu.rmk (grub_emu_SOURCES): Remove commands/search.c.
  23655. Add commands/search_wrap.c, commands/search_file.c,
  23656. commands/search_label.c and commands/search_uuid.c.
  23657. * conf/common.rmk (pkglib_MODULES): Remove fs_uuid.mod and fs_file.mod.
  23658. (search_mod_SOURCES): Set to commands/search_wrap.c.
  23659. (pkglib_MODULES): Add search_fs_file.mod, search_fs_uuid.mod and
  23660. search_label.mod.
  23661. (search_fs_file_mod_SOURCES): New variable.
  23662. (search_fs_file_mod_CFLAGS): Likewise.
  23663. (search_fs_file_mod_LDFLAGS): Likewise.
  23664. (search_label_mod_SOURCES): Likewise.
  23665. (search_label_mod_CFLAGS): Likewise.
  23666. (search_label_mod_LDFLAGS): Likewise.
  23667. (search_fs_uuid_mod_SOURCES): New variable.
  23668. (search_fs_uuid_mod_CFLAGS): Likewise.
  23669. (search_fs_uuid_mod_LDFLAGS): Likewise.
  23670. (fs_file_mod_SOURCES): Removed.
  23671. (fs_file_mod_CFLAGS): Likewise.
  23672. (fs_file_mod_LDFLAGS): Likewise.
  23673. (fs_uuid_mod_SOURCES): Removed.
  23674. (fs_uuid_mod_CFLAGS): Likewise.
  23675. (fs_uuid_mod_LDFLAGS): Likewise.
  23676. * conf/sparc64-ieee1275.rmk (grub_install_SOURCES):
  23677. Set to util/grub-install.in.
  23678. * disk/fs_file.c: Removed.
  23679. * disk/fs_uuid.c: Likewise.
  23680. * include/grub/search.h: New file.
  23681. * util/grub-install.in: Handle sparc64.
  23682. Create and use load.cfg.
  23683. * util/sparc64/ieee1275/grub-install.in: Removed.
  23684. 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
  23685. * kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
  23686. Ignore return status if CF is cleared.
  23687. (grub_biosdisk_get_diskinfo_standard): Likewise.
  23688. 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
  23689. * term/i386/pc/at_keyboard.c
  23690. (keyboard_controller_wait_untill_ready): New function.
  23691. (grub_keyboard_controller_write, grub_keyboard_controller_read)
  23692. (keyboard_controller_led): Use keyboard_controller_wait_untill_ready()
  23693. for keyboard polling, rather than duplicate the same loop. This
  23694. saves a few bytes in code size.
  23695. 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
  23696. Support for (pxe[:server[:gateway]]) syntax and
  23697. use environment variable for PXE.
  23698. * commands/i386/pc/pxecmd.c (options): Removed.
  23699. (print_ip): Removed.
  23700. (grub_cmd_pxe): Removed
  23701. (grub_cmd_pxe_unload): New function.
  23702. * fs/i386/pc/pxe.c (grub_pxe_disk_data): New structure.
  23703. (grub_pxe_your_ip): Made static.
  23704. (grub_pxe_default_server_ip): Likewise.
  23705. (grub_pxe_default_gateway_ip): Likewise.
  23706. (grub_pxe_blksize): Likewise.
  23707. (parse_ip): New function.
  23708. (grub_pxe_open): Support server and gateway specification.
  23709. (grub_pxe_close): Free disk->data.
  23710. (grub_pxefs_open): Use disk->data.
  23711. (grub_pxefs_read): Likewise.
  23712. (grub_env_write_readonly): New function.
  23713. (set_mac_env): Likewise.
  23714. (set_env_limn_ro): Likewise.
  23715. (parse_dhcp_vendor): Likewise.
  23716. (grub_pxe_detect): Set the environment variables.
  23717. (set_ip_env): New function.
  23718. (write_ip_env): Likewise.
  23719. (grub_env_write_pxe_default_server): Likewise.
  23720. (grub_env_write_pxe_default_gateway): Likewise.
  23721. (grub_env_write_pxe_blocksize): Likewise.
  23722. (GRUB_MOD_INIT(pxe)): Set environment variables.
  23723. * include/grub/i386/pc/pxe.h (grub_pxe_mac_addr): Rename to ...
  23724. (grub_pxe_mac_addr_t): ... this. All users updated.
  23725. (grub_pxe_your_ip): Removed.
  23726. (grub_pxe_server_ip): Likewise.
  23727. (grub_pxe_gateway_ip): Likewise.
  23728. (grub_pxe_blksize): Likewise.
  23729. 2009-12-25 Carles Pina i Estany <carles@pina.cat>
  23730. * commands/help.c: Include `<grub/i18n.h>'.
  23731. (grub_cmd_help): Gettextizze.
  23732. (GRUB_MOD_INIT): Likewise.
  23733. * commands/i386/pc/play.c: Include `<grub/i18n.h>'.
  23734. (GRUB_MOD_INIT): Gettextizze.
  23735. * commands/search.c: Include `<grub/i18n.h>'.
  23736. (options): Gettextizze.
  23737. (GRUB_MOD_INIT): Gettextizze.
  23738. * lib/arg.c: Include `<grub/i18n.h>'.
  23739. (help_options): Gettextizze.
  23740. (find_long): Likewise.
  23741. (grub_arg_show_help): Likewise.
  23742. * normal/dyncmd.c: Include `<grub/i18n.h>'.
  23743. (read_command_list): Gettextizze.
  23744. * po/POTFILES: Add `commands/i386/pc/play.c', `commands/search.c',
  23745. `commands/help.c', `lib/arg.c' and `normal/dyncmd.c'.
  23746. 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
  23747. * include/grub/i386/at_keyboard.h (NUM_LOCK, SCROLL_LOCK): New macros.
  23748. * term/i386/pc/at_keyboard.c (KEYBOARD_STATUS_NUM_LOCK)
  23749. (KEYBOARD_LED_SCROLL, KEYBOARD_LED_NUM, KEYBOARD_LED_CAPS): New macros.
  23750. (led_status): New variable.
  23751. (keyboard_controller_led): New function.
  23752. (grub_at_keyboard_getkey_noblock): Handle num lock and scroll lock,
  23753. update led status for caps lock, num lock and scroll lock.
  23754. 2009-12-25 Felix Zielcke <fzielcke@z-51.de>
  23755. * util/hostdisk.c (open_device): Fix a comment.
  23756. 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
  23757. * util/grub-install.in (host_os): New variable.
  23758. * util/i386/efi/grub-install.in (host_os): Likewise.
  23759. 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
  23760. * util/mkisofs/write.c (padblock_write): Abort when given an
  23761. excedingly large embed image, instead of silently truncating it.
  23762. 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
  23763. * include/multiboot.h: Indentation fixes.
  23764. 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
  23765. * include/multiboot.h (struct multiboot_aout_symbol_table)
  23766. (struct multiboot_elf_section_header_table): New structure
  23767. declarations (stolen from GRUB Legacy).
  23768. (struct multiboot_info): Replace opaque `syms' with a.out and ELF
  23769. table information.
  23770. (multiboot_aout_symbol_table_t, multiboot_elf_section_header_table_t)
  23771. (multiboot_info_t, multiboot_memory_map_t, multiboot_module_t): New
  23772. type aliases.
  23773. 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
  23774. * include/multiboot.h: Make comments src2texi-friendly.
  23775. 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
  23776. For consistency with [multiboot]/docs/boot.S.
  23777. * include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ...
  23778. (MULTIBOOT_HEADER_MAGIC): ... to this. Update all users.
  23779. (MULTIBOOT_MAGIC2): Rename from this ...
  23780. (MULTIBOOT_BOOTLOADER_MAGIC): ... to this. Update all users.
  23781. 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
  23782. * include/multiboot.h: Remove `<grub/types.h>'.
  23783. (multiboot_uint16_t, multiboot_uint32_t, multiboot_uint64_t): New
  23784. types. Update all users.
  23785. 2009-12-25 Carles Pina i Estany <carles@pina.cat>
  23786. * commands/efi/loadbios.c: Capitalize acronyms, replace `could not' by
  23787. `couldn't' and `can not' by `cannot'.
  23788. * commands/i386/pc/drivemap.c: Likewise.
  23789. * disk/ata.c: Likewise.
  23790. * disk/ieee1275/nand.c: Likewise.
  23791. * fs/affs.c: Likewise.
  23792. * fs/fat.c: Likewise.
  23793. * fs/hfs.c: Likewise.
  23794. * fs/hfsplus.c: Likewise.
  23795. * fs/iso9660.c: Likewise.
  23796. * fs/jfs.c: Likewise.
  23797. * fs/minix.c: Likewise.
  23798. * fs/reiserfs.c: Likewise.
  23799. * fs/sfs.c: Likewise.
  23800. * fs/udf.c: Likewise.
  23801. * fs/ufs.c: Likewise.
  23802. * fs/xfs.c: Likewise.
  23803. * loader/powerpc/ieee1275/linux.c: Likewise.
  23804. * loader/sparc64/ieee1275/linux.c: Likewise.
  23805. * util/grub-probe.c: Likewise.
  23806. * util/misc.c: Likewise.
  23807. 2009-12-24 Carles Pina i Estany <carles@pina.cat>
  23808. * bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in
  23809. grub_errno calls.
  23810. * commands/acpi.c: Likewise.
  23811. * commands/blocklist.c: Likewise.
  23812. * commands/efi/loadbios.c: Likewise.
  23813. * commands/i386/pc/drivemap.c: Likewise.
  23814. * commands/loadenv.c: Likewise.
  23815. * commands/memrw.c: Likewise.
  23816. * commands/password.c: Likewise.
  23817. * commands/videotest.c: Likewise.
  23818. * disk/ata.c: Likewise.
  23819. * disk/ata_pthru.c: Likewise.
  23820. * disk/dmraid_nvidia.c: Likewise.
  23821. * disk/ieee1275/nand.c: Likewise.
  23822. * disk/ieee1275/ofdisk.c: Likewise.
  23823. * disk/loopback.c: Likewise.
  23824. * disk/lvm.c: Likewise.
  23825. * disk/mdraid_linux.c: Likewise.
  23826. * disk/raid.c: Likewise.
  23827. * disk/raid6_recover.c: Likewise.
  23828. * disk/scsi.c: Likewise.
  23829. * efiemu/main.c: Likewise.
  23830. * efiemu/mm.c: Likewise.
  23831. * efiemu/pnvram.c: Likewise.
  23832. * efiemu/symbols.c: Likewise.
  23833. * font/font.c: Likewise.
  23834. * fs/cpio.c: Likewise.
  23835. * fs/hfsplus.c: Likewise.
  23836. * fs/iso9660.c: Likewise.
  23837. * fs/jfs.c: Likewise.
  23838. * fs/minix.c: Likewise.
  23839. * fs/ntfs.c: Likewise.
  23840. * fs/ntfscomp.c: Likewise.
  23841. * fs/reiserfs.c: Likewise.
  23842. * fs/ufs.c: Likewise.
  23843. * fs/xfs.c: Likewise.
  23844. * gettext/gettext.c: Likewise.
  23845. * include/grub/auth.h: Likewise.
  23846. * kern/elf.c: Likewise.
  23847. * kern/file.c: Likewise.
  23848. * kern/ieee1275/init.c: Likewise.
  23849. * kern/ieee1275/mmap.c: Likewise.
  23850. * kern/ieee1275/openfw.c: Likewise.
  23851. * kern/powerpc/dl.c: Likewise.
  23852. * kern/sparc64/dl.c: Likewise.
  23853. * lib/arg.c: Likewise.
  23854. * loader/i386/bsd.c: Likewise.
  23855. * loader/i386/bsdXX.c: Likewise.
  23856. * loader/i386/efi/linux.c: Likewise.
  23857. * loader/i386/efi/xnu.c: Likewise.
  23858. * loader/i386/ieee1275/linux.c: Likewise.
  23859. * loader/i386/linux.c: Likewise.
  23860. * loader/i386/multiboot.c: Likewise.
  23861. * loader/i386/pc/linux.c: Likewise.
  23862. * loader/i386/pc/multiboot2.c: Likewise.
  23863. * loader/i386/xnu.c: Likewise.
  23864. * loader/ieee1275/multiboot2.c: Likewise.
  23865. * loader/macho.c: Likewise.
  23866. * loader/machoXX.c: Likewise.
  23867. * loader/multiboot2.c: Likewise.
  23868. * loader/multiboot_loader.c: Likewise.
  23869. * loader/powerpc/ieee1275/linux.c: Likewise.
  23870. * loader/sparc64/ieee1275/linux.c: Likewise.
  23871. * loader/xnu.c: Likewise.
  23872. * loader/xnu_resume.c: Likewise.
  23873. * mmap/i386/pc/mmap.c: Likewise.
  23874. * normal/menu_viewer.c: Likewise.
  23875. * partmap/acorn.c: Likewise.
  23876. * partmap/amiga.c: Likewise.
  23877. * partmap/apple.c: Likewise.
  23878. * script/lexer.c: Likewise.
  23879. * term/gfxterm.c: Likewise.
  23880. * term/i386/pc/serial.c: Likewise.
  23881. * term/i386/pc/vga.c: Likewise.
  23882. * term/ieee1275/ofconsole.c: Likewise.
  23883. * term/terminfo.c: Likewise.
  23884. * video/bitmap.c: Likewise.
  23885. * video/efi_gop.c: Likewise.
  23886. * video/efi_uga.c: Likewise.
  23887. * video/fb/video_fb.c: Likewise.
  23888. * video/i386/pc/vbe.c: Likewise.
  23889. * video/readers/tga.c: Likewise.
  23890. * video/video.c: Likewise.
  23891. 2009-12-23 Felix Zielcke <fzielcke@z-51.de>
  23892. * commands/i386/pc/drivemap.c: Remove all trailing whitespace.
  23893. * commands/lspci.c: Likewise.
  23894. * commands/probe.c: Likewise.
  23895. * commands/xnu_uuid.c: Likewise.
  23896. * conf/i386-coreboot.rmk: Likewise.
  23897. * conf/i386-efi.rmk: Likewise.
  23898. * conf/i386-ieee1275.rmk: Likewise.
  23899. * conf/i386-pc.rmk: Likewise.
  23900. * conf/powerpc-ieee1275.rmk: Likewise.
  23901. * conf/sparc64-ieee1275.rmk: Likewise.
  23902. * conf/x86_64-efi.rmk: Likewise.
  23903. * fs/i386/pc/pxe.c: Likewise.
  23904. * gettext/gettext.c: Likewise.
  23905. * include/grub/efi/graphics_output.h: Likewise.
  23906. * include/grub/i386/pc/memory.h: Likewise.
  23907. * kern/env.c: Likewise.
  23908. * kern/i386/qemu/startup.S: Likewise.
  23909. * lib/i386/pc/biosnum.c: Likewise.
  23910. * lib/i386/relocator.c: Likewise.
  23911. * lib/i386/relocator_asm.S: Likewise.
  23912. * lib/relocator.c: Likewise.
  23913. * loader/i386/bsd.c: Likewise.
  23914. * loader/i386/multiboot.c: Likewise.
  23915. * loader/i386/pc/chainloader.c: Likewise.
  23916. * loader/i386/xnu.c: Likewise.
  23917. * loader/xnu.c: Likewise.
  23918. * normal/main.c: Likewise.
  23919. * normal/menu_text.c: Likewise.
  23920. * util/getroot.c: Likewise.
  23921. * util/grub-mkconfig_lib.in: Likewise.
  23922. * util/grub.d/00_header.in: Likewise.
  23923. * util/i386/pc/grub-mkimage.c: Likewise.
  23924. * util/mkisofs/eltorito.c: Likewise.
  23925. * util/mkisofs/exclude.h: Likewise.
  23926. * util/mkisofs/hash.c: Likewise.
  23927. * util/mkisofs/iso9660.h: Likewise.
  23928. * util/mkisofs/joliet.c: Likewise.
  23929. * util/mkisofs/mkisofs.c: Likewise.
  23930. * util/mkisofs/mkisofs.h: Likewise.
  23931. * util/mkisofs/multi.c: Likewise.
  23932. * util/mkisofs/name.c: Likewise.
  23933. * util/mkisofs/rock.c: Likewise.
  23934. * util/mkisofs/tree.c: Likewise.
  23935. * util/mkisofs/write.c: Likewise.
  23936. * video/efi_gop.c: Likewise.
  23937. 2009-12-23 Vladimir Serbinenko <phcoder@gmail.com>
  23938. * video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
  23939. size counting.
  23940. 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
  23941. * util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@.
  23942. * genmk.rb (class SCRIPT): Modify the target file instead of source.
  23943. 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
  23944. * commands/memrw.c (grub_cmd_write): Support for mask parameter.
  23945. (GRUB_MOD_INIT(memrw)): Update help line.
  23946. 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
  23947. * commands/memrw.c (cmd_read_byte, cmd_read_word, cmd_read_dword):
  23948. Use grub_extcmd_t. All users updated.
  23949. (options): New variable.
  23950. (grub_cmd_read): Restructure for readability. Support "-v" option.
  23951. (grub_cmd_write): Restructure for readability.
  23952. 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
  23953. * genmk.rb (class SCRIPT): Prepend #{src} path with $(srcdir).
  23954. 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
  23955. * genmk.rb (class SCRIPT): Use sed to substitute @pkglib_DATA@
  23956. with the actual contents of the correspondending make variable.
  23957. * util/grub-mkrescue.in (pkglib_DATA): New variable.
  23958. (process_input_dir): Copy all $pkglib_DATA files instead of explicitly
  23959. specifying `*.lst' and `efiemu??.o'
  23960. 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
  23961. * util/grub.d/30_os-prober.in (osx_entry): Add round brackets
  23962. after function name.
  23963. Noticed by Rene Engelhard <rene@debian.org>.
  23964. 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
  23965. * commands/lspci.c (grub_pci_classes): Add "USB Controller".
  23966. (options): New variable.
  23967. (iospace): Likewise.
  23968. (grub_lspci_iter): List IO spaces if "-i" was given.
  23969. (grub_cmd_lspci): Parse options.
  23970. (GRUB_MOD_INIT(lspci)): Use extcmd.
  23971. (GRUB_MOD_FINI(lspci)): Likewise.
  23972. 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
  23973. * util/grub.d/30_os-prober.in (osx_entry): Remove non POSIX compliant
  23974. `function' keyword.
  23975. Patch by Tony Mancill <tmancill@debian.org>.
  23976. 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
  23977. * bus/usb/uhci.c (grub_uhci_transfer): Set a limit transaction time.
  23978. (grub_uhci_portstatus): Likewise.
  23979. (grub_uhci_portstatus): Add necessary delay.
  23980. * bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition.
  23981. 2009-12-21 Carles Pina i Estany <carles@pina.cat>
  23982. * commands/acpi.c (options): Fix capitalizations and/or full stops.
  23983. (GRUB_MOD_INIT): Likewise.
  23984. * commands/boot.c (GRUB_MOD_INIT): Likewise.
  23985. * commands/cmp.c (grub_cmd_cmp): Improve the help message.
  23986. * commands/echo.c (options): Fix capitalizations and/or full stops.
  23987. * commands/efi/loadbios.c (enable_rom_area): Likewise.
  23988. (enable_rom_area): Likewise.
  23989. (GRUB_MOD_INIT): Likewise.
  23990. * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
  23991. * commands/halt.c (GRUB_MOD_INIT): Improve the help message.
  23992. * commands/handler.c (GRUB_MOD_INIT): Likewise.
  23993. * commands/hdparm.c (options): Fix capitalizations and/or full stops.
  23994. * commands/hexdump.c (options): Likewise.
  23995. * commands/i386/cpuid.c (options): Likewise.
  23996. (GRUB_MOD_INIT): Likewise.
  23997. * commands/i386/pc/drivemap.c (options): Likewise.
  23998. (GRUB_MOD_INIT): Likewise.
  23999. * commands/i386/pc/halt (options): Likewise.
  24000. (GRUB_MOD_INIT): Likewise.
  24001. * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
  24002. * commands/i386/pc/pxecmd.c (options): Likewise.
  24003. * commands/i386/pc/vbetest.c (GRUB_MOD_INIT): Likewise.
  24004. * commands/ieee1275/suspend.c (GRUB_MOD_INIT): Likewise.
  24005. * commands/keystatus.c (options): Likewise.
  24006. (GRUB_MOD_INIT): Likewise.
  24007. * commands/loadenv.c (options): Likewise.
  24008. * commands/ls.c (options): Likewise.
  24009. * commands/lspci.c (GRUB_MOD_INIT): Likewise.
  24010. * commands/memrw.c (GRUB_MOD_INIT): Likewise.
  24011. * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
  24012. * commands/parttool.c (helpmsg): Likewise.
  24013. * commands/probe.c (options): Likewise.
  24014. * commands/read.c (GRUB_MOD_INIT): Likewise.
  24015. * commands/reboot.c (GRUB_MOD_INIT): Likewise.
  24016. * commands/search.c (options): Likewise.
  24017. * commands/sleep.c (options): Likewise.
  24018. * commands/test.c (GRUB_MOD_INIT): Likewise.
  24019. * commands/true.c (GRUB_MOD_INIT): Likewise.
  24020. * commands/usbtest.c (GRUB_MOD_INIT): Likewise.
  24021. * commands/videotest.c (GRUB_MOD_INIT): Likewise.
  24022. * lib/arg.c (help_options): Likewise.
  24023. * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass -ctranslate to
  24024. `$(XGETTEXT)'.
  24025. * po/POTFILES: Add `commands/loadenv.c'.
  24026. 2009-12-21 Felix Zielcke <fzielcke@z-51.de>
  24027. * util/grub-mkrescue.in (process_input_dir): Copy `*.lst' files
  24028. instead of specifying them explicit.
  24029. 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
  24030. * NEWS: Add grub-probe support for GNU/Hurd.
  24031. 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
  24032. * NEWS: gettext was added after 1.97.
  24033. 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
  24034. * util/mkisofs/msdos_partition.h: New file (based on
  24035. include/grub/msdos_partition.h).
  24036. * util/mkisofs/mkisofs.c (use_protective_msdos_label): New variable.
  24037. (OPTION_PROTECTIVE_MSDOS_LABEL): New macro.
  24038. (ld_options, main): Recognize --protective-msdos-label.
  24039. * util/mkisofs/mkisofs.h (use_protective_msdos_label): New declaration.
  24040. * util/mkisofs/write.c: Include `"msdos_partition.h"'.
  24041. (padblock_write): If `use_protective_msdos_label' is set, patch a
  24042. protective DOS-style label in the output image.
  24043. * util/grub-mkrescue.in: Use --protective-msdos-label.
  24044. 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
  24045. * util/grub-mkrescue.in: Do not zero-pad image for BIOS-based disk
  24046. boot.
  24047. 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
  24048. * util/mkisofs/mkisofs.c (use_embedded_boot, boot_image_embed): New
  24049. variables.
  24050. (ld_options, main): Recognize `--embedded-boot'.
  24051. * util/mkisofs/mkisofs.h (use_embedded_boot, boot_image_embed): New
  24052. declarations.
  24053. * util/mkisofs/write.c (PADBLOCK_SIZE): New variable.
  24054. (padblock_size): Use `PADBLOCK_SIZE' instead of hardcoding 16.
  24055. (padblock_write): Likewise. Rewrite to support embedded boot image.
  24056. * util/grub-mkrescue.in: When building i386-pc images, embed core.img
  24057. for BIOS-based disk boot instead of only ElTorito.
  24058. 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
  24059. * util/grub-mkrescue.in: Remove `configfile' and `sh' from i386-pc
  24060. build (not needed for bootstrap).
  24061. 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
  24062. * util/grub-mkrescue.in: Remove `memdisk', `tar' and `search' modules
  24063. from i386-pc build (not needed for bootstrap).
  24064. Rewrite a pair of strings.
  24065. 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
  24066. * normal/main.c (grub_normal_reader_init): Set left margin back to 3.
  24067. 2009-12-21 Vladimir Serbinenko <phcoder@gmail.com>
  24068. * video/i386/pc/vbe.c (grub_video_vbe_fini): Set 'last_set_mode'.
  24069. 2009-12-21 Andreas Born <futur.andy@googlemail.com>
  24070. * kern/env.c (grub_env_context_open): Mark exported variable for
  24071. reexport.
  24072. 2009-12-21 Andreas Born <futur.andy@googlemail.com>
  24073. * kern/env.c (grub_env_export): Create nonexistent variables before
  24074. exporting.
  24075. 2009-12-20 Carles Pina i Estany <carles@pina.cat>
  24076. * include/grub/auth.h: Include `<grub/i18n.h>'.
  24077. (GRUB_GET_PASSWORD): Gettextizze string.
  24078. * include/grub/normal.h (STANDARD_MARGIN): New macro, moved from
  24079. menu_text.c.
  24080. (grub_utf8_to_ucs4_alloc): Fix indentation.
  24081. (grub_print_ucs4): Likewise.
  24082. (grub_getstringwidth): Likewise.
  24083. (print_message_indented): New declaration.
  24084. * normal/auth.c: Include `<grub/i18n.h>'.
  24085. (grub_auth_check_authentication): Gettexttize string.
  24086. * normal/cmdline.c: Include `<grub/i18n.h>'.
  24087. (grub_cmdline_get): Gettextizze.
  24088. * normal/color.c: Include `<grub/i18n.h>'.
  24089. (grub_parse_color_name_pair): Gettexttize strings.
  24090. * normal/main.c (grub_normal_reader_init): Cleanup gettexttized
  24091. string (use `print_message_indented').
  24092. * normal/menu_text.c (STANDARD_MARGIN): Moved from here to
  24093. `include/grub/normal.h'.
  24094. (print_message_indented): Renamed to ...
  24095. (grub_print_message_indented): ... this. Remove `static' qualifer (now
  24096. used in normal/main.c).
  24097. (print_message): Use `grub_print_message_indented' instead of
  24098. `print_message_indented'.
  24099. (print_timeout): Likewise.
  24100. * normal/misc.c: Include `<grub/term.h>' and `<grub/i18n.h>'.
  24101. (grub_normal_print_device_info): Gettexttize strings.
  24102. * po/POTFILES: Add `auth.c', `color.c' and `misc.c'.
  24103. 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
  24104. * kern/parser.c (grub_parser_split_cmdline): Fix incorrect counting
  24105. of arguments. Return number of tokens and not arguments. All users
  24106. updated.
  24107. 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
  24108. * util/i386/pc/grub-setup.c (setup): Don't install on non-GPT,
  24109. non-MSDOS paritions.
  24110. 2009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
  24111. * include/grub/types.h (UNUSED): Removed since it conflicts with
  24112. NetBSD headers. All users changed to direct __attribute__ ((unused)).
  24113. Reported by Grégoire Sutre.
  24114. 2009-12-19 Carles Pina i Estany <carles@pina.cat>
  24115. * include/grub/normal.h (grub_utf8_to_ucs4): New declaration.
  24116. (grub_print_ucs4_alloc): Likewise.
  24117. (grub_getstringwidth): Likewise.
  24118. * normal/main.c (grub_normal_init_page): Gettextize version string.
  24119. * normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition.
  24120. (getstringwidth): Renamed to ...
  24121. (grub_getstringwidth): ... this. Remove `static' qualifier (now used
  24122. in normal/main.c). Use `grub_utf8_to_ucs4_alloc'.
  24123. (grub_print_ucs4): Remove `static' qualifer (now used in
  24124. normal/main.c).
  24125. * po/POTFILES: Add normal/main.c.
  24126. 2009-12-19 Carles Pina i Estany <carles@pina.cat>
  24127. * normal/menu_text.c (STANDARD_MARGIN): New macro.
  24128. (print_message_indented): Add `margin_left' and `margin_right'
  24129. parameters.
  24130. (print_message): Update `print_message_indented' calls. Adds '\n' to the
  24131. strings.
  24132. (print_timeout): Use `print_message_indented' to print the message.
  24133. Deletes `second_stage' parameter.
  24134. (run_menu): Update `print_timeout' calls.
  24135. 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
  24136. Fix console palette on OpenFirmware.
  24137. * term/ieee1275/ofconsole.c (MAX): Removed.
  24138. (colors): Redone based on VGA palette.
  24139. (grub_ofconsole_setcolor): Discard brightness bit since only 8
  24140. colors are supported.
  24141. (grub_ofconsole_init_output): Use ARRAY_SIZE instead of hardcoded size.
  24142. 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
  24143. Fix potential EfiEmu double prepare.
  24144. * efiemu/main.c (prepared): New variable
  24145. (grub_efiemu_unload): Set prepare to '0'.
  24146. (grub_efiemu_prepare): Return if already prepared. Set prepared.
  24147. set_virtual_address_map support.
  24148. * include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New
  24149. prototype.
  24150. * include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New
  24151. prototype.
  24152. (grub_efiemu_crc32): Likewise.
  24153. (grub_efiemu_crc64): Likewise.
  24154. (grub_efiemu_set_virtual_address_map): Likewise.
  24155. * include/grub/autoefi.h (grub_autoefi_exit_boot_services):
  24156. New definition.
  24157. (grub_autoefi_set_virtual_address_map): Likewise.
  24158. * kern/efi/efi.c (grub_efi_set_virtual_address_map): New function.
  24159. * loader/i386/xnu.c (grub_xnu_boot): Call set_virtual_address_map.
  24160. Restructure flow to accomodate it.
  24161. * efiemu/prepare.c (grub_efiemu_prepare): Support set_virtual_address_map.
  24162. (grub_efiemu_crc): Recompute CRC32.
  24163. * efiemu/runtime/efiemu.c (ptv_relocated): Renamed to ...
  24164. (efiemu_ptv_relocated): ... this. Made global. All users updated.
  24165. * efiemu/symbols.c (relocated_handle): New variable.
  24166. (grub_efiemu_free_syms): Free relocated_handle.
  24167. (grub_efiemu_alloc_syms): Allocate relocated_handle.
  24168. (grub_efiemu_write_sym_markers): New function.
  24169. (grub_efiemu_set_virtual_address_map): Likewise.
  24170. Newer XNU parameters.
  24171. * include/grub/i386/xnu.h (GRUB_XNU_BOOTARGS_VERMINOR): Change to 5.
  24172. * include/grub/xnu.h (grub_xnu_extheader): Add nameaddr and namesize.
  24173. (grub_xnu_fill_devicetree): New prototype.
  24174. (grub_xnu_heap_real_start): New variable.
  24175. * loader/xnu.c (get_name_ptr): New function.
  24176. (grub_xnu_load_driver): Fill namelen and name.
  24177. 64-bit xnu support.
  24178. * conf/i386-efi.rmk (xnu_mod_SOURCES): Add 'loader/macho32.c'
  24179. and 'loader/macho64.c'.
  24180. * conf/i386-pc.rmk: Likewise.
  24181. * conf/x86_64-efi.rmk: Likewise.
  24182. * include/grub/i386/macho.h (grub_macho_thread64): New structure.
  24183. * include/grub/xnu.h (grub_xnu_is_64bit): New variable.
  24184. * include/grub/macho.h (grub_macho_segment64): New structure.
  24185. * include/grub/machoload.h (grub_macho32_size): Renamed from ...
  24186. (grub_macho_size32): ... to this.
  24187. (grub_macho32_get_entry_point): Renamed from ...
  24188. (grub_macho_get_entry_point32): ... to this.
  24189. (grub_macho_contains_macho64): New prototype.
  24190. (grub_macho_size64): Likewise.
  24191. (grub_macho_get_entry_point64): Likewise.
  24192. (grub_macho32_load): Renamed from ...
  24193. (grub_macho_load32): ... to this.
  24194. (grub_macho32_filesize): Renamed from ...
  24195. (grub_macho_filesize32): ... to this.
  24196. (grub_macho32_readfile): Renamed from ...
  24197. (grub_macho_readfile32): ... to this.
  24198. (grub_macho_filesize64): New prototype.
  24199. (grub_macho_readfile64): Likewise.
  24200. (grub_macho_parse32): Likewise.
  24201. (grub_macho_parse64): Likewise.
  24202. * loader/macho.c: Split into ...
  24203. * loader/machoXX.c: ... and this. Replace 32 with XX.
  24204. * loader/macho32.c: New file.
  24205. * loader/macho64.c: Likewise.
  24206. * loader/xnu.c (grub_xnu_is_64bit): New variable.
  24207. (grub_cmd_xnu_kernel): Make 32-bit only.
  24208. (grub_cmd_xnu_kernel64): New function.
  24209. (grub_xnu_load_driver): Support Mach-O 64.
  24210. (grub_cmd_xnu_mkext): Likewise.
  24211. * util/grub.d/30_os-prober.in (osx_entry): New function.
  24212. Generate entries for 64-bit boot too.
  24213. Eliminate ad-hoc tree format in XNU and EfiEmu.
  24214. * efiemu/main.c (grub_efiemu_prepare): Update comment.
  24215. * efiemu/pnvram.c: Rewritten to use environment variables.
  24216. All users updated.
  24217. Inline utf16_to_utf8.
  24218. * kern/misc.c (grub_utf16_to_utf8): Move from here ...
  24219. * include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined.
  24220. All users updated.
  24221. * include/grub/misc.h (grub_utf16_to_utf8): Removed.
  24222. * bus/usb/usb.c (grub_usb_get_string): Move from here ...
  24223. * commands/usbtest.c (grub_usb_get_string): ... move here.
  24224. (usb_print_str): Fix error handling.
  24225. * include/grub/usb.h (grub_usb_get_string): Remove.
  24226. UTF-8 to UTF-16 transformation.
  24227. * conf/common.rmk (pkglib_MODULES): Add charset.mod
  24228. (charset_mod_SOURCES): New variable.
  24229. (charset_mod_CFLAGS): Likewise.
  24230. (charset_mod_LDFLAGS): Likewise.
  24231. * include/grub/utf.h: New file.
  24232. * lib/utf.c: New file. (Based on grub_utf8_to_ucs4 from kern/misc.c)
  24233. Support for device properties.
  24234. * include/grub/i386/xnu.h (grub_xnu_devprop_header): New structure.
  24235. (grub_xnu_devprop_device_header): Likewise.
  24236. (grub_xnu_devprop_device_descriptor): Likewise.
  24237. (grub_xnu_devprop_add_device): New prototype.
  24238. (grub_xnu_devprop_remove_device): Likewise.
  24239. (grub_xnu_devprop_remove_property): Likewise.
  24240. (grub_xnu_devprop_add_property_utf8): Likewise.
  24241. (grub_xnu_devprop_add_property_utf16): Likewise.
  24242. (grub_cpu_xnu_init): Likewise.
  24243. (grub_cpu_xnu_fini): Likewise.
  24244. (grub_cpu_xnu_unload): Likewise.
  24245. * loader/i386/xnu.c (grub_xnu_devprop_device_descriptor): New structure.
  24246. (property_descriptor): Likewise.
  24247. (devices): New variable.
  24248. (grub_xnu_devprop_remove_property): New function.
  24249. (grub_xnu_devprop_add_device): Likewise.
  24250. (grub_xnu_devprop_remove_device): Likewise.
  24251. (grub_xnu_devprop_add_property): Likewise.
  24252. (grub_xnu_devprop_add_property_utf8): Likewise.
  24253. (grub_xnu_devprop_add_property_utf16): Likewise.
  24254. (hextoval): Likewise.
  24255. (grub_cpu_xnu_fill_devprop): Likewise.
  24256. (grub_cmd_devprop_load): Likewise.
  24257. (grub_xnu_boot): Call grub_cpu_xnu_fill_devprop,
  24258. grub_xnu_fill_devicetree, grub_xnu_fill_devicetree
  24259. (cmd_devprop_load): New variable.
  24260. (grub_cpu_xnu_init): New function.
  24261. (grub_cpu_xnu_fini): Likewise.
  24262. * loader/i386/xnu.c (grub_xnu_unload): Call grub_cpu_xnu_unload.
  24263. * loader/xnu.c (grub_xnu_parse_devtree): Remove.
  24264. (grub_cmd_xnu_devtree): Likewise.
  24265. (hextoval): New function.
  24266. (unescape): Likewise.
  24267. (grub_xnu_fill_devicetree): Likewise.
  24268. * util/grub.d/30_os-prober.in: Load devprop.bin. Don't load devtree.txt.
  24269. * util/i386/efi/grub-dumpdevtree: Generate devprop.bin.
  24270. 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
  24271. Workaround for broken ATI VBE.
  24272. * video/i386/pc/vbe.c (last_set_mode): New variable.
  24273. (grub_vbe_set_video_mode): Set 'last_set_mode'.
  24274. (grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails.
  24275. (grub_video_vbe_setup): Don't check for reserved flag.
  24276. 2009-12-17 Felix Zielcke <fzielcke@z-51.de>
  24277. * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
  24278. the `find' command.
  24279. 2009-12-16 Vladimir Serbinenko <phcoder@gmail.com>
  24280. UUID support for HFS.
  24281. * fs/hfs.c (grub_hfs_uuid): New function.
  24282. (grub_hfs_fs): New value .uuid.
  24283. * include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'.
  24284. 2009-12-14 Felix Zielcke <fzielcke@z-51.de>
  24285. Fix a segfault with parsing unknown long options.
  24286. * util/grub-mkrelpath.c (options): Zero terminate it.
  24287. 2009-12-13 Carles Pina i Estany <carles@pina.cat>
  24288. * include/grub/misc.h (grub_puts): New declaration.
  24289. (grub_puts_): Likewise.
  24290. * kern/misc.c (grub_puts): New definition.
  24291. (grub_puts_): Likewise.
  24292. 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
  24293. * util/grub-probe.c (probe): Improve error message.
  24294. 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
  24295. * loader/i386/multiboot_elfxx.c
  24296. (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
  24297. initialization.
  24298. 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
  24299. Relocator framework
  24300. * loader/i386/xnu_helper.S: Removed. All users updated.
  24301. * conf/i386.rmk (pkglib_MODULES): Add relocator.mod.
  24302. (relocator_mod_SOURCES): New variable.
  24303. (relocator_mod_CFLAGS): Likewise.
  24304. (relocator_mod_LDFLAGS): Likewise.
  24305. (relocator_mod_ASFLAGS): Likewise.
  24306. * conf/x86_64.rmk: Likewise.
  24307. * include/grub/i386/multiboot.h (grub_multiboot_payload_orig): Removed.
  24308. (grub_multiboot_payload_entry_offset): Likewise.
  24309. (grub_multiboot_forward_relocator): Likewise.
  24310. (grub_multiboot_forward_relocator_end): Likewise.
  24311. (grub_multiboot_backward_relocator): Likewise.
  24312. (grub_multiboot_backward_relocator_end): Likewise.
  24313. (grub_multiboot_payload_eip): New variable.
  24314. (grub_multiboot_payload_orig): Likewise.
  24315. * include/grub/i386/pc/memory.h: Include grub/i386/memory.h.
  24316. (GRUB_MEMORY_MACHINE_CR0_PE_ON): Move from here ...
  24317. * include/grub/i386/memory.h
  24318. (GRUB_MEMORY_CPU_CR0_PE_ON): ... to here
  24319. (GRUB_MEMORY_CPU_CR4_PAE_ON): New definition.
  24320. (GRUB_MEMORY_CPU_CR0_PAGING_ON): Likewise.
  24321. (GRUB_MEMORY_CPU_AMD64_MSR): Likewise.
  24322. (GRUB_MEMORY_CPU_AMD64_MSR_ON): Likewise.
  24323. * include/grub/i386/relocator.h: New file.
  24324. * include/grub/x86_64/relocator.h: Likewise.
  24325. * include/grub/i386/xnu.h: Include grub/cpu/relocator.h.
  24326. (XNU_RELOCATOR): New macro.
  24327. (grub_xnu_launcher_start): Remove.
  24328. (grub_xnu_launcher_end): Likewise.
  24329. * include/grub/xnu.h (grub_xnu_boot_resume): New prototype.
  24330. (grub_xnu_heap_real_start): Remove.
  24331. (grub_xnu_heap_start): Change to void *. All users updated.
  24332. * kern/i386/realmode.S (real_to_prot): Use GRUB_MEMORY_CPU_CR0_PE_ON.
  24333. * lib/i386/relocator.c: New file.
  24334. * lib/i386/relocator_asm.S: Likewise.
  24335. * lib/i386/relocator_backward.S: Likewise.
  24336. * lib/mips/relocator.c: Likewise.
  24337. * lib/mips/relocator_asm.S: Likewise.
  24338. * lib/relocator.c: Likewise.
  24339. * loader/i386/multiboot.c: Include grub/i386/relocator.h.
  24340. (entry): Removed.
  24341. (playground): Likewise.
  24342. (grub_multiboot_payload_orig): New variable.
  24343. (grub_multiboot_payload_dest): Likewise.
  24344. (grub_multiboot_payload_size): Likewise.
  24345. (grub_multiboot_payload_eip): Likewise.
  24346. (grub_multiboot_payload_esp): Likewise.
  24347. (grub_multiboot_boot): Use grub_relocator32_boot.
  24348. (grub_multiboot_unload): Free relocators.
  24349. (grub_multiboot): Setup stack. Use relocators.
  24350. * loader/i386/multiboot_elfxx.c: Include grub/i386/relocator.h.
  24351. (grub_multiboot_load_elfXX): Use relocators.
  24352. * loader/i386/multiboot_helper.S (grub_multiboot_payload_orig): Removed.
  24353. (grub_multiboot_payload_size): Likewise.
  24354. (grub_multiboot_payload_dest): Likewise.
  24355. (grub_multiboot_payload_entry_offset): Likewise.
  24356. (grub_multiboot_forward_relocator): Likewise.
  24357. (grub_multiboot_backward_relocator): Likewise.
  24358. (grub_multiboot_real_boot): Likewise.
  24359. * loader/i386/xnu.c (grub_xnu_heap_will_be_at): New variable.
  24360. (grub_xnu_entry_point): Likewise.
  24361. (grub_xnu_arg1): Likewise.
  24362. (grub_xnu_stack): Likewise.
  24363. (grub_xnu_launch): Removed.
  24364. (grub_xnu_boot_resume): New function.
  24365. (grub_xnu_boot): Use relocators.
  24366. * loader/i386/xnu_helper.S: Removed.
  24367. * loader/xnu.c (grub_xnu_heap_start): New variable.
  24368. (grub_xnu_heap_size): Likewise.
  24369. (grub_xnu_heap_malloc): Use relocators.
  24370. * loader/xnu_resume.c (grub_xnu_resume): Use relocators.
  24371. 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
  24372. * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
  24373. anything.
  24374. 2009-12-13 Carles Pina i Estany <carles@pina.cat>
  24375. * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
  24376. GRUB_ERR_NONE before calling grub_env_set.
  24377. 2009-12-12 Robert Millan <rmh@aybabtu.com>
  24378. * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.
  24379. * genmk.rb (video): New variable.
  24380. (CLEANFILES, VIDEOFILES): Add #{video}.
  24381. (#{video}): New target rule.
  24382. * genvideolist.sh: New file.
  24383. * Makefile.in (pkglib_DATA): Add video.lst.
  24384. (video.lst): New target rule.
  24385. * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using
  24386. `video.lst'.
  24387. * util/grub.d/30_os-prober.in: Replace `vbe' with
  24388. ${GRUB_VIDEO_BACKEND}.
  24389. 2009-12-11 Robert Millan <rmh.grub@aybabtu.com>
  24390. * THANKS: Add David Miller.
  24391. 2009-12-11 Vladimir Serbinenko <phcoder@gmail.com>
  24392. libpciaccess support.
  24393. * Makefile.in (LIBPCIACCESS): New variable.
  24394. (enable_grub_emu_pci): Likewise.
  24395. * conf/any-emu.rmk (grub_emu_SOURCES) [enable_grub_emu_pci]: Add
  24396. util/pci.c and commands/lspci.c.
  24397. (grub_emu_LDFLAGS) [enable_grub_emu_pci]: Add $(LIBPCIACCESS).
  24398. * configure.ac (grub-emu-pci): New option.
  24399. * include/grub/i386/pci.h (grub_pci_device_map_range): New function.
  24400. (grub_pci_device_unmap_range): Likewise.
  24401. * include/grub/pci.h [GRUB_UTIL]: Include grub/pciutils.h.
  24402. (grub_pci_device) [!GRUB_UTIL]: New structure. All users updated.
  24403. (grub_pci_address_t) [!GRUB_UTIL]: New type.
  24404. (grub_pci_device_t) [!GRUB_UTIL]: Likewise.
  24405. (grub_pci_get_bus) [!GRUB_UTIL]: New function.
  24406. (grub_pci_get_device) [!GRUB_UTIL]: Likewise.
  24407. (grub_pci_get_function) [!GRUB_UTIL]: Likewise.
  24408. * include/grub/pciutils.h: New file.
  24409. * util/pci.c: Likewise.
  24410. 2009-12-11 Felix Zielcke <fzielcke@z-51.de>
  24411. * util/misc.c: Don't include <errno.h> twice.
  24412. 2009-12-10 Felix Zielcke <fzielcke@z-51.de>
  24413. * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
  24414. name in an error message.
  24415. (grub_biosdisk_rw): Likewise.
  24416. 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
  24417. Eliminate NTFS 4Gib barrier.
  24418. * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
  24419. (read_run_data): Likewise.
  24420. (grub_ntfs_read_run_list): Likewise.
  24421. (grub_ntfs_read_block): Likewise.
  24422. (grub_ntfs_iterate_dir): Likewise.
  24423. (read_mft): Likewise.
  24424. (read_data): Likewise.
  24425. Use COM_LOG_LEN.
  24426. * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
  24427. to avoid 64-bit division
  24428. * include/grub/ntfs.h (COM_LOG_LEN): New definition.
  24429. (grub_ntfs_rlst): Use grub_disk_addr_t.
  24430. 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
  24431. Eliminate grub-fstest 4Gib barrier.
  24432. * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
  24433. (read_file): Fix error reporting.
  24434. 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
  24435. Eliminate hexdump 4Gib barrier.
  24436. * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
  24437. * lib/arg.c (grub_arg_parse): Use grub_strtoull.
  24438. 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
  24439. * kern/device.c (grub_device_iterate): Ignore errors during first scan.
  24440. Fixes amarsh bug.
  24441. 2009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
  24442. Remove miscellaneous files in distclean target.
  24443. * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
  24444. 2009-12-09 Colin Watson <cjwatson@ubuntu.com>
  24445. * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
  24446. if they're already set. This resolves the conflict between my
  24447. grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
  24448. fixing the --grub-probe option again.
  24449. * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
  24450. change on 2009-10-06, so that we now once again source
  24451. `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
  24452. 2009-12-08 Robert Millan <rmh.grub@aybabtu.com>
  24453. * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
  24454. `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
  24455. `util/devicemap.c'.
  24456. 2009-12-08 Carles Pina i Estany <carles@pina.cat>
  24457. * include/grub/misc.h (grub_printf_): New declaration.
  24458. * kern/misc.c (grub_printf_): New definition.
  24459. * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
  24460. instead of `grub_printf' and `_'.
  24461. * normal/menu_entry.c (store_completion): Likewise.
  24462. (run): Likewise.
  24463. (grub_menu_entry_run): Likewise.
  24464. * normal/menu_text.c (grub_wait_after_message): Likewise.
  24465. (notify_booting): Likewise.
  24466. (notify_fallback): Likewise.
  24467. (notify_execution_failure): Likewise.
  24468. 2009-12-07 Colin Watson <cjwatson@ubuntu.com>
  24469. * configure.ac: Check for vasprintf.
  24470. * util/misc.c (asprintf): Move allocation from here ...
  24471. (vasprintf): ... to here. New function.
  24472. (xasprintf): New function.
  24473. * include/grub/util/misc.h (vasprintf, xasprintf): Add
  24474. prototypes.
  24475. * util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
  24476. * util/grub-mkfont.c (write_font): Likewise.
  24477. * util/grub-probe.c (probe): Likewise.
  24478. * util/hostdisk.c (make_device_name): Likewise.
  24479. 2009-12-06 David S. Miller <davem@sunset.davemloft.net>
  24480. * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
  24481. anything even prefixed with 'cdrom' as a cdrom.
  24482. 2009-12-06 Felix Zielcke <fzielcke@z-51.de>
  24483. * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
  24484. mount points.
  24485. 2009-12-05 Carles Pina i Estany <carles@pina.cat>
  24486. * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
  24487. grub_gettext_msg_list.
  24488. (grub_gettext_gettranslation_from_position): Return const char *
  24489. and not char *.
  24490. (grub_gettext_translate): Add the translated strings into a list,
  24491. returns from the list if existing there.
  24492. (grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
  24493. (grub_gettext_delete_list): Delete the list.
  24494. (grub_gettext_env_write_lang): Call grub_gettext_delete_list when
  24495. lang environment variable is changed.
  24496. (GRUB_MOD_FINI): Call grub_gettext_delete_list.
  24497. 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
  24498. Rename kernel.mod to kernel.img.
  24499. * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
  24500. (kernel_mod_EXPORTS): Rename to ...
  24501. (kernel_img_EXPORTS): ... this.
  24502. (kernel_mod_SOURCES): Rename to ...
  24503. (kernel_img_SOURCES): ... this.
  24504. (kernel_mod_HEADERS): Rename to ...
  24505. (kernel_img_HEADERS): ... this. All users updated.
  24506. (kernel_mod_CFLAGS): Rename to ...
  24507. (kernel_img_CFLAGS): ... this.
  24508. (kernel_mod_ASFLAGS): Rename to ...
  24509. (kernel_img_ASFLAGS): ... this.
  24510. (kernel_mod_LDFLAGS): Rename to ...
  24511. (kernel_img_LDFLAGS): ... this.
  24512. * conf/x86_64-efi.rmk: Likewise.
  24513. * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
  24514. (read_kernel_image): ... this. All users updated.
  24515. (read_kernel_image): Read "kernel.img" instead of "kernel.mod".
  24516. 2009-12-05 Carles Pina i Estany <carles@pina.cat>
  24517. * normal/menu_text.c (grub_color_menu_high): Gettexttize string.
  24518. (print_spaces): New function.
  24519. (grub_print_ucs4): New function.
  24520. (getstringwidth): New function.
  24521. (print_message_indented): New function.
  24522. (print_message): Gettexttize strings using print_message_indented.
  24523. (run_menu): Replaces grub_printf by print_spaces and dynamic terminal
  24524. width.
  24525. (get_entry_number): Gettextize and uses dynamic terminal width.
  24526. (notify_booting, notify_fallback, notify_execution_failure):
  24527. Gettextize.
  24528. * normal/menu_entry.c (store_completion): Cleanup the gettextized
  24529. string.
  24530. (run): Likewise.
  24531. (grub_menu_entry_run): Likewise.
  24532. * PO/POTFILES: Add normal/menu_entry.c.
  24533. 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
  24534. * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
  24535. 2009-12-05 Carles Pina i Estany <carles@pina.cat>
  24536. * util/grub-install.in: Install gettext .mo files.
  24537. * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
  24538. 2009-12-05 Carles Pina i Estany <carles@pina.cat>
  24539. * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
  24540. grub_dprintf.
  24541. 2009-12-05 Robert Millan <rmh.grub@aybabtu.com>
  24542. * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The
  24543. non-firmware-dependant one in realmode.S takes precedence.
  24544. 2009-12-04 Robert Millan <rmh.grub@aybabtu.com>
  24545. * commands/halt.c: Replace misc arch-specific headers with
  24546. `<grub/misc.h>'.
  24547. * commands/reboot.c: Likewise.
  24548. * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
  24549. `<grub/misc.h>'.
  24550. * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
  24551. (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
  24552. (kernel_img_SOURCES): ... to here.
  24553. * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
  24554. * include/grub/i386/pc/init.h: Likewise.
  24555. * include/grub/powerpc/ieee1275/kernel.h: Likewise.
  24556. * include/grub/sparc64/ieee1275/kernel.h: Likewise.
  24557. * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
  24558. * include/grub/i386/halt.h: Remove.
  24559. * include/grub/i386/reboot.h: Likewise.
  24560. * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
  24561. 2009-12-03 David S. Miller <davem@sunset.davemloft.net>
  24562. * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
  24563. grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
  24564. * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
  24565. "progname.h"
  24566. * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
  24567. * util/sparc64/ieee1275/grub-setup.c: Likewise.
  24568. (usage): Add missing comma in printf.
  24569. 2009-12-02 Robert Millan <rmh.grub@aybabtu.com>
  24570. Use the same reboot approach on i386 coreboot and qemu as we do on
  24571. BIOS.
  24572. * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
  24573. (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
  24574. * kern/i386/reboot.c: Remove.
  24575. * include/grub/i386/reboot.h (grub_reboot): Export function.
  24576. * kern/i386/pc/startup.S (grub_reboot): Move from here ...
  24577. * kern/i386/realmode.S (grub_reboot): ... to here. Jump to
  24578. 0xf000:0xfff0 instead of 0xffff:0x0000.
  24579. [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
  24580. * kern/i386/qemu/startup.S: Include `"../realmode.S"'.
  24581. 2009-11-30 Robert Millan <rmh.grub@aybabtu.com>
  24582. Fix $srcdir != $objdir build.
  24583. * Makefile.in (po/%.po): Rewrite as ...
  24584. ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
  24585. 2009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
  24586. Fix GNU/Hurd grub-install crash.
  24587. * util/grub-probe.c (probe): Try to access `path' only when it is not
  24588. NULL.
  24589. 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
  24590. Correct module naming.
  24591. * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
  24592. (GRUB_MOD_INIT(efi_uga)): ... to this
  24593. (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
  24594. (GRUB_MOD_FINI(efi_uga)): ... to this
  24595. * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
  24596. (GRUB_MOD_INIT(efi_gop)): ... to this
  24597. (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
  24598. (GRUB_MOD_FINI(efi_gop)): ... to this
  24599. 2009-11-28 Robert Millan <rmh.grub@aybabtu.com>
  24600. * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
  24601. translatable.
  24602. (usage): Translate `arg' strings using gettext().
  24603. Thanks to Jordi Mallach for the suggestion.
  24604. 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
  24605. GOP support. Based on patch from Bean
  24606. (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
  24607. * video/efi_gop.c: New file.
  24608. * include/grub/efi/graphics_output.h: Likewise.
  24609. * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
  24610. (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
  24611. variables.
  24612. * conf/x86_64-efi.rmk: Likewise.
  24613. 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
  24614. Rename efi_fb to efi_uga.
  24615. * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
  24616. 'efi_uga.mod'.
  24617. (efi_fb_mod_SOURCES): Rename this ...
  24618. (efi_uga_mod_SOURCES): ... to this.
  24619. (efi_fb_mod_CFLAGS): Rename this ...
  24620. (efi_uga_mod_CFLAGS): ... to this.
  24621. (efi_fb_mod_LDFLAGS): Rename this ...
  24622. (efi_uga_mod_LDFLAGS): ... to this.
  24623. * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
  24624. 'efi_uga.mod'.
  24625. (efi_fb_mod_SOURCES): Rename this ...
  24626. (efi_uga_mod_SOURCES): ... to this.
  24627. (efi_fb_mod_CFLAGS): Rename this ...
  24628. (efi_uga_mod_CFLAGS): ... to this.
  24629. (efi_fb_mod_LDFLAGS): Rename this ...
  24630. (efi_uga_mod_LDFLAGS): ... to this.
  24631. * video/efi_fb.c: Move this ...
  24632. * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
  24633. 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
  24634. * po/README: New file. Explain our PO file workflow.
  24635. 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
  24636. * po/ChangeLog: Remove. Move relevant entries back to ...
  24637. * ChangeLog: ... here.
  24638. * po/ca.po: Remove (now handled by TLP).
  24639. * po/id.po: Likewise.
  24640. * po/zh_CN.po: Likewise.
  24641. * Makefile.in (LINGUAS): Initialize in a way that supports
  24642. empty set.
  24643. 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
  24644. * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
  24645. reliing on po/LINGUAS.
  24646. ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
  24647. (po/%.po): ... this.
  24648. 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
  24649. * util/i386/efi/grub-mkimage.c: Include "progname.h".
  24650. (main): Use `program_name' instead of nonexistent `progname'.
  24651. 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
  24652. * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
  24653. * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
  24654. 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
  24655. * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
  24656. commit.
  24657. * conf/i386-efi.rmk: Likewise.
  24658. * conf/i386-ieee1275.rmk: Likewise.
  24659. * conf/powerpc-ieee1275.rmk: Likewise.
  24660. * conf/sparc64-ieee1275.rmk: Likewise.
  24661. * conf/x86_64-efi.rmk: Likewise.
  24662. 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
  24663. * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
  24664. 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
  24665. * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
  24666. 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
  24667. * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
  24668. (grub_mkdevicemap_SOURCES): New variable.
  24669. (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
  24670. (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
  24671. (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
  24672. * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
  24673. (grub_mkdevicemap_SOURCES): Remove.
  24674. * conf/i386-efi.rmk: Likewise.
  24675. * conf/i386-ieee1275.rmk: Likewise.
  24676. * conf/i386-pc.rmk: Likewise.
  24677. * conf/powerpc-ieee1275.rmk: Likewise.
  24678. * conf/sparc64-ieee1275.rmk: Likewise.
  24679. * conf/x86_64-efi.rmk: Likewise.
  24680. * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
  24681. (usage): Fix strings to use `program_name'.
  24682. (main): Initialize gettext.
  24683. * util/grub-editenv.c: Likewise.
  24684. * util/grub-emu.c: Likewise.
  24685. * util/grub-fstest.c: Likewise.
  24686. * util/grub-mkdevicemap.c: Likewise.
  24687. * util/grub-mkfont.c: Likewise.
  24688. * util/grub-mkrelpath.c: Likewise.
  24689. * util/grub-pe2elf.c: Likewise.
  24690. * util/grub-probe.c: Likewise.
  24691. * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
  24692. * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
  24693. * util/sparc64/ieee1275/grub-setup.c: Likewise.
  24694. * util/misc.c: Include `"progname.h"'.
  24695. (progname): Remove variable.
  24696. (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
  24697. 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
  24698. * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
  24699. printf and print a newline after the menuentry header line.
  24700. * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
  24701. 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
  24702. autoconf >= 2.60 support $(localedir).
  24703. * INSTALL: Note that autoconf 2.60 is required.
  24704. * configure.ac (AC_PREREQ): Bump to 2.60.
  24705. * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
  24706. * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
  24707. 2009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
  24708. * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
  24709. aclocal is run.
  24710. 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
  24711. * normal/main.c (grub_normal_read_line): Fix off-by-one
  24712. buffer overflow.
  24713. 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
  24714. * normal/main.c (grub_normal_execute): Replace "parser.sh" with
  24715. "parser.grub" in grub_command_execute() call.
  24716. 2009-11-24 Carles Pina i Estany <carles@pina.cat>
  24717. * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
  24718. * conf/i386-efi.rmk: Likewise.
  24719. * conf/i386-ieee1275.rmk: Likewise.
  24720. * conf/i386-pc.rmk: Likewise.
  24721. * conf/powerpc-ieee1275.rmk: Likewise.
  24722. * conf/sparc64-ieee1275.rmk: Likewise.
  24723. * conf/x86_64-efi.rmk: Likewise.
  24724. * gettext/gettex.c: Include <grub/i18n.h>.
  24725. * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
  24726. here ...
  24727. * include/grub/i18n.h: ... to here
  24728. * include/grub/i18n.h: ... to here.
  24729. * kern/misc.c: Include <grub/i18n.h>
  24730. (grub_gettext_dummy): Move above user.
  24731. 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
  24732. * util/Makefile.in (install-local): Convert a `for' into a normal
  24733. shell expansion.
  24734. 2009-11-24 Robert Millan <rmh.grub@aybabtu.com>
  24735. * autogen.sh: Add automake call.
  24736. * config.guess: Remove.
  24737. * config.sub: Likewise.
  24738. * install-sh: Likewise.
  24739. 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
  24740. * util/Makefile.in (install-local): Fix the use of $lang shell variable.
  24741. 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
  24742. * util/Makefile.in (install-local): Convert a make `$(foreach)'
  24743. function to a normal shell `for'.
  24744. 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
  24745. * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
  24746. 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
  24747. * util/grub-mkrelpath.c: New file.
  24748. * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
  24749. (grub_mkrelpath_SOURCES): New variable.
  24750. * include/grub/util/misc.h: New function prototype.
  24751. * util/misc.c (make_system_path_relative_to_its_root): New function.
  24752. * util/grub-mkconfig_lib.in (bindir): New variable.
  24753. (grub_mkrelpath): Likewise.
  24754. (make_system_path_relative_to_its_root): Use grub-mkrelpath.
  24755. * util/probe.c (probe): Make the file path relative to its root.
  24756. Change a info message to use the GRUB path. Enable again the
  24757. check if we can read the file with GRUB facilities.
  24758. * util/i386/pc/grub-setup.c (setup): Make core.img path relative
  24759. to its root.
  24760. 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
  24761. * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
  24762. platform.
  24763. 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
  24764. * util/getroot.c (grub_util_get_dev_abstraction): Properly use
  24765. strncmp().
  24766. 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
  24767. * util/getroot.c (grub_util_is_dmraid): New function.
  24768. (grub_util_get_dev_abstraction): Treat dmraid and multipath
  24769. devices as normal ones, not as LVM.
  24770. 2009-11-23 Carles Pina i Estany <carles@pina.cat>
  24771. * conf/common.rmk: Add grub-gettext_lib target and updates
  24772. lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
  24773. LDFLAGS.
  24774. * gettext/gettext.c: New file. (Reads mo files).
  24775. * include/grub/file.h (grub_file_pread): New prototype.
  24776. * include/grub/i18n.h (_): New prototype.
  24777. * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
  24778. prototypes.
  24779. * kern/misc.c (grub_gettext_dummy): New function.
  24780. * normal/menu_text.c: Include <grub/i18n.h>.
  24781. * normal/menu_text.c (print_timeout): Gettexttize string.
  24782. * normal/menu_text.c (print_message): Gettexttize string.
  24783. * po/POTFILES: Add `normal/menu_text.c'.
  24784. * po/ca.po: Add new translations.
  24785. * util/grub.d/00_header.in: Define locale_dir and lang. insmod
  24786. gettext module and defines locale_dir and lang in grub.cfg.
  24787. * NEWS: Add gettext support.
  24788. 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
  24789. * util/hostdisk.c: Include `<grub/i18n.h>'.
  24790. (find_grub_drive): Use ARRAY_SIZE for map size calculation.
  24791. (make_device_name): Rewrite using asprintf.
  24792. (convert_system_partition_to_system_disk): Replace 0 with NULL.
  24793. (find_system_device): If a device is not found, generate one just
  24794. by reusing the OS path name.
  24795. (read_device_map): Make it permissible for device.map not to exist.
  24796. 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
  24797. * script/sh/execute.c: Move from here ...
  24798. * script/execute.c: ... to here. Update all users.
  24799. * script/sh/function.c: Move from here ...
  24800. * script/function.c: ... to here. Update all users.
  24801. * script/sh/lexer.c: Move from here ...
  24802. * script/lexer.c: ... to here. Update all users.
  24803. * script/sh/main.c: Move from here ...
  24804. * script/main.c: ... to here. Update all users.
  24805. * script/sh/parser.y: Move from here ...
  24806. * script/parser.y: ... to here. Update all users.
  24807. * script/sh/script.c: Move from here ...
  24808. * script/script.c: ... to here. Update all users.
  24809. 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
  24810. * configure.ac: Detect all `emu' platforms. Define
  24811. GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
  24812. --enable-grub-emu logic. Disable include/grub/machine
  24813. symlink on `emu' platforms.
  24814. * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
  24815. * gensymlist.sh.in: Likewise.
  24816. * include/grub/i386/coreboot/machine.h: Remove file.
  24817. * include/grub/i386/efi/machine.h: Likewise.
  24818. * include/grub/i386/ieee1275/machine.h: Likewise.
  24819. * include/grub/i386/pc/machine.h: Likewise.
  24820. * include/grub/i386/qemu/machine.h: Likewise.
  24821. * include/grub/powerpc/ieee1275/machine.h: Likewise.
  24822. * include/grub/sparc64/ieee1275/machine.h: Likewise.
  24823. * include/grub/x86_64/efi/machine.h: Likewise.
  24824. * commands/acpi.c: Remove `<grub/machine/machine.h>'.
  24825. * commands/halt.c: Likewise.
  24826. * commands/reboot.c: Likewise.
  24827. * include/grub/autoefi.h: Likewise.
  24828. * include/grub/i386/at_keyboard.h: Likewise.
  24829. * include/grub/i386/kernel.h: Likewise.
  24830. * include/grub/i386/loader.h: Likewise.
  24831. * include/grub/i386/pc/memory.h: Likewise.
  24832. * kern/dl.c: Likewise.
  24833. * kern/i386/coreboot/init.c: Likewise.
  24834. * loader/i386/bsd.c: Likewise.
  24835. * loader/i386/linux.c: Likewise.
  24836. * loader/multiboot_loader.c: Likewise.
  24837. * term/i386/pc/serial.c: Likewise.
  24838. * term/usb_keyboard.c: Likewise.
  24839. * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
  24840. `<grub/machine/machine.h>'
  24841. [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
  24842. * util/misc.c: Remove `<grub/machine/machine.h>' and
  24843. `<grub/machine/time.h>'.
  24844. * Makefile.in (enable_grub_emu): Remove variable.
  24845. Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
  24846. * conf/any-emu.rmk: New file.
  24847. * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
  24848. (grub_emu_init.c): Move from here ...
  24849. * conf/any-emu.rmk: ... to here.
  24850. * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
  24851. (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
  24852. * conf/any-emu.rmk: ... to here.
  24853. 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
  24854. * include/grub/parser.h (grub_parser_register): Document need
  24855. of `name' parameter.
  24856. * normal/main.c (grub_normal_read_line): Simplify prompt string.
  24857. * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
  24858. "sh" to "grub".
  24859. 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
  24860. * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
  24861. `$(XGETTEXT)'.
  24862. * include/grub/i18n.h (N_): New macro.
  24863. * util/mkisofs/mkisofs.h: Likewise.
  24864. * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
  24865. around N_().
  24866. (usage): Use gettext() to translate help strings when printing them.
  24867. 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
  24868. Based on patch from Bean
  24869. (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
  24870. * video/efi_fb.c: New file.
  24871. * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
  24872. (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
  24873. variables.
  24874. * conf/x86_64-efi.rmk: Likewise.
  24875. 2009-11-22 Robert Millan <rmh.grub@aybabtu.com>
  24876. * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
  24877. * util/i386/pc/grub-setup.c: Likewise.
  24878. 2009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
  24879. * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
  24880. <hurd/fs.h>
  24881. [__GNU__] (grub_guess_root_device): Call file_name_lookup and
  24882. file_get_storage_info to implement grub_guess_root_device.
  24883. 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
  24884. * Makefile.in (target): Use make's builtin $(shell) function
  24885. instead of calling directly $(SHELL) to create the locale directories,
  24886. inside the $(foreach) function.
  24887. 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
  24888. * util/grub-mkrescue.in: Print an error and usage if output option
  24889. has not been given.
  24890. 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
  24891. Patch from Loïc Minier <loic.minier@ubuntu.com>.
  24892. * util/grub.d/30_os-prober.in: Cope with Linux entries where
  24893. root and /boot are on different devices.
  24894. 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
  24895. Fix build for srcdir != objdir.
  24896. * Makefile.in (po/$(PACKAGE).pot): Rename to ...
  24897. ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
  24898. $(srcdir).
  24899. ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
  24900. ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
  24901. reference for input.
  24902. 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
  24903. * util/grub-mkrescue.in: Use source directory direcly (without copiing
  24904. or hardlinking it). Remove -J option, Joliet is not compatible with
  24905. multiple source directories.
  24906. 2009-11-21 Carles Pina i Estany <carles@pina.cat>
  24907. 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
  24908. * util/grub-mkrescue.in: Recognize `--override-directory' option.
  24909. (process_input_dir): New function. Process an arbitrary input
  24910. directory.
  24911. Misc adjustments to support both "override mode" and system-wide mode.
  24912. 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
  24913. * configure.ac (UNIFONT_BDF): Rename to ...
  24914. (FONT_SOURCE): ... this. Update all users.
  24915. 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
  24916. * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
  24917. to the list of unifont files to look for.
  24918. 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
  24919. Patch from Joe Auricchio <jauricchio@gmail.com>
  24920. * commands/minicmd.c (grub_mini_cmd_clear): New function.
  24921. (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
  24922. (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
  24923. 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
  24924. * Makefile.in (install-local): Add a missing backslash.
  24925. 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
  24926. * include/grub/x86_64/io.h: New file.
  24927. 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
  24928. * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
  24929. * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
  24930. Include `"progname.h"'.
  24931. (main): Initialize gettext.
  24932. * util/i386/pc/grub-setup.c: Gettexttize.
  24933. * util/i386/pc/grub-mkimage.c: Likewise.
  24934. * Makefile.in (po/*.po): Redefine as ...
  24935. ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
  24936. * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
  24937. 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
  24938. * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
  24939. * util/mkisofs/mkisofs.c: Include `"progname.h"'.
  24940. (program_name): Remove.
  24941. (main): Initialize gettext support.
  24942. * util/mkisofs/mkisofs.h: Include `<locale.h>'.
  24943. Include `<libintl.h>'.
  24944. (_): New macro.
  24945. * util/mkisofs/eltorito.c: Gettexttize.
  24946. * util/mkisofs/joliet.c: Likewise.
  24947. * util/mkisofs/mkisofs.c: Likewise.
  24948. * util/mkisofs/multi.c: Likewise.
  24949. * util/mkisofs/rock.c: Likewise.
  24950. * util/mkisofs/tree.c: Likewise.
  24951. * util/mkisofs/write.c: Likewise.
  24952. * po/POTFILES: Update with new files.
  24953. 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
  24954. * util/mkisofs/eltorito.c: Fix minor mistake in license text.
  24955. * util/mkisofs/iso9660.h: Likewise.
  24956. * util/mkisofs/joliet.c: Likewise.
  24957. * util/mkisofs/mkisofs.c: Likewise.
  24958. * util/mkisofs/mkisofs.h: Likewise.
  24959. * util/mkisofs/rock.c: Likewise.
  24960. * util/mkisofs/tree.c: Likewise.
  24961. * util/mkisofs/write.c: Likewise.
  24962. * util/mkisofs/eltorito.c (rcsid): Remove.
  24963. * util/mkisofs/hash.c: Likewise.
  24964. * util/mkisofs/joliet.c: Likewise.
  24965. * util/mkisofs/name.c: Likewise.
  24966. * util/mkisofs/rock.c: Likewise.
  24967. * util/mkisofs/tree.c: Likewise.
  24968. * util/mkisofs/write.c: Likewise.
  24969. 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
  24970. * util/mkisofs/match.c: Rewrite from scratch, using a linked list
  24971. instead of static allocation.
  24972. * util/mkisofs/match.h: Likewise.
  24973. 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
  24974. * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
  24975. and `util/grub.d/10_linux.in'.
  24976. * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
  24977. translatable Shell files.
  24978. 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
  24979. * Makefile.in ($(srcdir)/aclocal.m4): New target.
  24980. 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
  24981. * INSTALL: Document Automake is needed for bootstrap.
  24982. * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
  24983. * util/grub.d/10_kfreebsd.in (bindir): New variable.
  24984. Add gettext initialization.
  24985. (kfreebsd_entry): Make menuentry output translatable.
  24986. 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
  24987. * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
  24988. (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
  24989. (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
  24990. (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
  24991. (LINGUAS): Auto-generate using `po/LINGUAS'.
  24992. * po/LINGUAS: New file.
  24993. 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
  24994. * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
  24995. other things).
  24996. * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
  24997. * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
  24998. bindtextdomain() calls for gettext initialization.
  24999. 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
  25000. * gnulib/progname.c: New file (imported from Gnulib).
  25001. * gnulib/progname.h: Likewise.
  25002. * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
  25003. * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
  25004. (usage): Replace `progname' with `program_name'.
  25005. (main): Use set_program_name() for program name initialization.
  25006. 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
  25007. * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
  25008. from here ...
  25009. * Makefile.in (CPPFLAGS): ... to here.
  25010. 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
  25011. * aclocal.m4: Move from here ...
  25012. * acinclude.m4: ... to here.
  25013. * autogen.sh: Add call to `aclocal'.
  25014. * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
  25015. 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
  25016. * Makefile.in (CLEANFILES): Add `po/*.mo'.
  25017. (LINGUAS): New variable.
  25018. (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
  25019. (install-local): Install MO files.
  25020. (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
  25021. * include/grub/i18n.h: New file.
  25022. * po/POTFILES: New file.
  25023. * po/ca.po: New file.
  25024. * util/grub.d/10_linux.in (bindir): New variable.
  25025. Add gettext initialization.
  25026. (linux_entry): Make menuentry output translatable.
  25027. * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
  25028. (usage): Make --help output translatable.
  25029. (main): Initialize gettext.
  25030. 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
  25031. * import_gcry.py: New file (written by Vladimir with minor
  25032. adjustments).
  25033. * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
  25034. ciphers.
  25035. * INSTALL: Document that Python is required for bootstrap.
  25036. 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
  25037. Import ciphers from libgcrypt 1.4.4.
  25038. * lib/libgcrypt/cipher/ChangeLog
  25039. * lib/libgcrypt/cipher/ac.c
  25040. * lib/libgcrypt/cipher/arcfour.c
  25041. * lib/libgcrypt/cipher/bithelp.h
  25042. * lib/libgcrypt/cipher/blowfish.c
  25043. * lib/libgcrypt/cipher/camellia-glue.c
  25044. * lib/libgcrypt/cipher/camellia.c
  25045. * lib/libgcrypt/cipher/camellia.h
  25046. * lib/libgcrypt/cipher/cast5.c
  25047. * lib/libgcrypt/cipher/cipher.c
  25048. * lib/libgcrypt/cipher/crc.c
  25049. * lib/libgcrypt/cipher/des.c
  25050. * lib/libgcrypt/cipher/dsa.c
  25051. * lib/libgcrypt/cipher/ecc.c
  25052. * lib/libgcrypt/cipher/elgamal.c
  25053. * lib/libgcrypt/cipher/hash-common.c
  25054. * lib/libgcrypt/cipher/hash-common.h
  25055. * lib/libgcrypt/cipher/hmac-tests.c
  25056. * lib/libgcrypt/cipher/md.c
  25057. * lib/libgcrypt/cipher/md4.c
  25058. * lib/libgcrypt/cipher/md5.c
  25059. * lib/libgcrypt/cipher/primegen.c
  25060. * lib/libgcrypt/cipher/pubkey.c
  25061. * lib/libgcrypt/cipher/rfc2268.c
  25062. * lib/libgcrypt/cipher/rijndael-tables.h
  25063. * lib/libgcrypt/cipher/rijndael.c
  25064. * lib/libgcrypt/cipher/rmd.h
  25065. * lib/libgcrypt/cipher/rmd160.c
  25066. * lib/libgcrypt/cipher/rsa.c
  25067. * lib/libgcrypt/cipher/seed.c
  25068. * lib/libgcrypt/cipher/serpent.c
  25069. * lib/libgcrypt/cipher/sha1.c
  25070. * lib/libgcrypt/cipher/sha256.c
  25071. * lib/libgcrypt/cipher/sha512.c
  25072. * lib/libgcrypt/cipher/tiger.c
  25073. * lib/libgcrypt/cipher/twofish.c
  25074. * lib/libgcrypt/cipher/whirlpool.c
  25075. 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
  25076. Fix build for systems without error().
  25077. * gnulib/error.c: New file (imported from Gnulib).
  25078. * gnulib/error.h: Likewise.
  25079. * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
  25080. * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
  25081. (this variable is now used by error()).
  25082. 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
  25083. * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
  25084. instead of relying that char is signed.
  25085. 2009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
  25086. * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
  25087. blocksize different from specified.
  25088. (grub_pxefs_read): Likewise.
  25089. 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
  25090. Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
  25091. * disk/ata.c (grub_ata_dumpinfo): Add a cast.
  25092. (grub_ata_readwrite): Likewise. Update 2 format strings.
  25093. (grub_atapi_read): Likewise.
  25094. * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
  25095. * conf/i386.rmk (pkglib_MODULES): ... to here ...
  25096. * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
  25097. * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
  25098. (ata_mod_LDFLAGS): Move from here ...
  25099. * conf/i386.rmk: ... to here ...
  25100. * conf/x86_64-efi.rmk: ... and here.
  25101. * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
  25102. (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
  25103. 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
  25104. Relicense multiboot.h, with RMS' blessing.
  25105. * include/multiboot.h: Change to X11 license.
  25106. 2009-11-15 Robert Millan <rmh.grub@aybabtu.com>
  25107. Support --version in grub-mkisofs.
  25108. * util/mkisofs/mkisofs.c (rcsid): Remove variable.
  25109. (OPTION_VERSION): New macro.
  25110. (ld_options): Recognize --version.
  25111. (usage): Move `program_name' from here ...
  25112. (program_name): ... to here. Add `static' qualifier.
  25113. (main): Recognize `OPTION_VERSION'.
  25114. 2009-11-15 Felix Zielcke <fzielcke@z-51.de>
  25115. * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
  25116. with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
  25117. 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
  25118. Fix help2man generation for mkisofs.
  25119. * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
  25120. (usage): Send output to stdout (rather than stderr).
  25121. 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
  25122. * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
  25123. `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
  25124. * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
  25125. `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
  25126. (bin_SCRIPTS): Add `grub-mkfloppy'.
  25127. (grub_mkfloppy_SOURCES): New variable.
  25128. * util/grub-mkrescue.in: New file.
  25129. * util/i386/pc/grub-mkfloppy.in: New file.
  25130. * util/i386/coreboot/grub-mkrescue.in: Remove.
  25131. * util/i386/pc/grub-mkrescue.in: Remove.
  25132. 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
  25133. * include/grub/multiboot.h (struct grub_multiboot_header): Move
  25134. from here ...
  25135. * include/multiboot.h (struct multiboot_header): ... to here. Update
  25136. all users.
  25137. * include/grub/multiboot.h (struct grub_multiboot_info): Move
  25138. from here ...
  25139. * include/multiboot.h (struct multiboot_info): ... to here. Update
  25140. all users.
  25141. * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
  25142. from here ...
  25143. * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
  25144. Update all users.
  25145. * include/grub/multiboot.h (struct grub_mod_list): Move
  25146. from here ...
  25147. * include/multiboot.h (struct multiboot_mod_list): ... to here.
  25148. Update all users.
  25149. 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
  25150. * include/multiboot2.h (multiboot_word): Rename from this ...
  25151. (multiboot2_word): ... to this. Update all users.
  25152. (multiboot_header): Rename from this ...
  25153. (multiboot2_header): ... to this. Update all users.
  25154. (multiboot_tag_header): Rename from this ...
  25155. (multiboot2_tag_header): ... to this. Update all users.
  25156. (multiboot_tag_start): Rename from this ...
  25157. (multiboot2_tag_start): ... to this. Update all users.
  25158. (multiboot_tag_name): Rename from this ...
  25159. (multiboot2_tag_name): ... to this. Update all users.
  25160. (multiboot_tag_module): Rename from this ...
  25161. (multiboot2_tag_module): ... to this. Update all users.
  25162. (multiboot_tag_memory): Rename from this ...
  25163. (multiboot2_tag_memory): ... to this. Update all users.
  25164. (multiboot_tag_unused): Rename from this ...
  25165. (multiboot2_tag_unused): ... to this. Update all users.
  25166. (multiboot_tag_end): Rename from this ...
  25167. (multiboot2_tag_end): ... to this. Update all users.
  25168. 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
  25169. Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
  25170. this platform we should support Multiboot1 first.
  25171. * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
  25172. (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
  25173. (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
  25174. 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
  25175. * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
  25176. of write calls (converting them to fwrite() if they aren't already).
  25177. (get_torito_desc): Likewise.
  25178. * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
  25179. 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
  25180. * util/i386/pc/grub-install.in: Move from here ...
  25181. * util/grub-install.in: ... to here. Update all users.
  25182. 2009-11-11 Colin Watson <cjwatson@ubuntu.com>
  25183. * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
  25184. 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
  25185. Support for El Torito without floppy emulation.
  25186. * util/mkisofs/eltorito.c: Include `<errno.h>'.
  25187. (init_boot_catalog): Improve error handling.
  25188. (get_torito_desc): Don't use floppy emulation unless requested by
  25189. user. Patch boot information table when requested via
  25190. `-boot-info-table'.
  25191. * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
  25192. * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
  25193. (use_boot_info_table): New variables.
  25194. (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
  25195. (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
  25196. (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
  25197. `--eltorito-emul-floppy'.
  25198. (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
  25199. and `OPTION_ELTORITO_EMUL_FLOPPY'.
  25200. * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
  25201. (use_boot_info_table, get_731): New prototypes.
  25202. * util/mkisofs/write.c (get_731): New function.
  25203. 2009-11-11 Felix Zielcke <fzielcke@z-51.de>
  25204. Fix the generation of the man page.
  25205. * util/pc/i386/grub-install.in: Source
  25206. `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
  25207. 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
  25208. Large file support for grub-mkisofs.
  25209. * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
  25210. * util/mkisofs/mkisofs.c (next_extent, last_extent)
  25211. (session_start): Upgrade type to `uint64_t'. Update all users.
  25212. * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
  25213. (struct directory_entry): Upgrade type of `starting_block' and
  25214. `size' to `uint64_t'. Update all users.
  25215. (struct deferred): Remove unused structure.
  25216. (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
  25217. Update all users.
  25218. * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
  25219. file is larger than `UINT32_MAX'.
  25220. * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
  25221. `size' to `uint64_t'. Update all users. Fix handling of fwrite()
  25222. return value.
  25223. (struct deferred_write): Upgrade type of `extent' and `size' to
  25224. `uint64_t'. Update all users.
  25225. (last_extent_written): Upgrade type to `uint64_t'. Update all
  25226. users.
  25227. (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
  25228. Update all users. Upgrade type of `remain' to `int64_t' and
  25229. `use' to `size_t'. Use error() to handle fread() errors.
  25230. (write_files): Rely on write_one_file() rather than calling
  25231. xfwrite() directly.
  25232. 2009-11-09 Felix Zielcke <fzielcke@z-51.de>
  25233. * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
  25234. 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
  25235. * util/mkisofs/fnmatch.c: Remove.
  25236. * util/mkisofs/getopt1.c: Likewise.
  25237. * util/mkisofs/getopt.c: Likewise.
  25238. * conf/common.rmk (grub_mkisofs_SOURCES): Replace
  25239. `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
  25240. `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
  25241. `gnulib/getopt1.c' and `gnulib/getopt.c'.
  25242. (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
  25243. * configure.ac: Detect `mingw32msvc' host_os.
  25244. Check for lstat(), getuid() and getgid().
  25245. * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
  25246. instances of `u_char' with `uint8_t'.
  25247. * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
  25248. [!HAVE_GETUID] (getuid): New function (stub).
  25249. [!HAVE_GETGID] (getgid): Likewise.
  25250. [!HAVE_LSTAT] (lstat): Likewise.
  25251. [!S_IROTH] (S_IROTH): New macro (dummy).
  25252. [!S_IRGRP] (S_IRGRP): Likewise.
  25253. 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
  25254. * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
  25255. conditional expression).
  25256. 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
  25257. Import from Gnulib.
  25258. * gnulib/fnmatch.c: New file.
  25259. * gnulib/fnmatch.h: Likewise.
  25260. * gnulib/fnmatch_loop.c: Likewise.
  25261. * gnulib/getopt.c: Likewise.
  25262. * gnulib/getopt.h: Likewise.
  25263. * gnulib/getopt1.c: Likewise.
  25264. * gnulib/getopt_int.h: Likewise.
  25265. * gnulib/gettext.h: Likewise.
  25266. 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
  25267. * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
  25268. * normal/handler.c (read_handler_list): Likewise.
  25269. 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
  25270. Misc cleanup.
  25271. * kern/command.c (grub_register_command_prio): Use
  25272. grub_zalloc() instead of explicitly zeroing data.
  25273. * kern/list.c: Include `<grub/mm.h>'.
  25274. (grub_named_list_find): Replace `0' with `NULL'.
  25275. * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
  25276. (fs_module_list): Change type to `grub_named_list_t'. Update all
  25277. users.
  25278. * normal/dyncmd.c (read_command_list): Add space between function
  25279. call and parenthesis.
  25280. * normal/handler.c (read_handler_list): Likewise.
  25281. 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
  25282. * normal/auth.c (punishment_delay): Moved from here ...
  25283. (grub_auth_strcmp): ... to here (inside function).
  25284. 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
  25285. * include/grub/list.h (struct grub_named_list): Remove `const'
  25286. qualifier from `name'.
  25287. (struct grub_prio_list): Likewise.
  25288. 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
  25289. * normal/auth.c: Include `<grub/time.h>'.
  25290. (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
  25291. 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
  25292. * normal/auth.c (punishment_delay): New variable.
  25293. (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
  25294. (grub_auth_check_authentication): Punish failed login attempts with
  25295. an incremental (2^N) delay.
  25296. 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
  25297. * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
  25298. path with $(srcdir).
  25299. 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
  25300. * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
  25301. 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
  25302. * util/i386/coreboot/grub-mkrescue.in: New file.
  25303. * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
  25304. variables.
  25305. * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
  25306. (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
  25307. * configure.ac: Add header and function checks to satisfy grub-mkisofs
  25308. requirements.
  25309. * util/mkisofs/defaults.h: New file.
  25310. * util/mkisofs/eltorito.c: Likewise.
  25311. * util/mkisofs/exclude.h: Likewise.
  25312. * util/mkisofs/fnmatch.c: Likewise.
  25313. * util/mkisofs/getopt.c: Likewise.
  25314. * util/mkisofs/getopt1.c: Likewise.
  25315. * util/mkisofs/hash.c: Likewise.
  25316. * util/mkisofs/include/fctldefs.h: Likewise.
  25317. * util/mkisofs/include/mconfig.h: Likewise.
  25318. * util/mkisofs/include/prototyp.h: Likewise.
  25319. * util/mkisofs/include/statdefs.h: Likewise.
  25320. * util/mkisofs/iso9660.h: Likewise.
  25321. * util/mkisofs/joliet.c: Likewise.
  25322. * util/mkisofs/match.c: Likewise.
  25323. * util/mkisofs/match.h: Likewise.
  25324. * util/mkisofs/mkisofs.c: Likewise.
  25325. * util/mkisofs/mkisofs.h: Likewise.
  25326. * util/mkisofs/multi.c: Likewise.
  25327. * util/mkisofs/name.c: Likewise.
  25328. * util/mkisofs/rock.c: Likewise.
  25329. * util/mkisofs/tree.c: Likewise.
  25330. * util/mkisofs/write.c: Likewise.
  25331. 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
  25332. * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
  25333. being insecure.
  25334. 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
  25335. * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
  25336. `grub-mkimage' (and use $0 when possible).
  25337. 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
  25338. * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
  25339. error message for excessively large memory map.
  25340. 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
  25341. * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
  25342. executable bit.
  25343. 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
  25344. * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
  25345. message for coreboot users.
  25346. 2009-11-07 Robert Millan <rmh.grub@aybabtu.com>
  25347. Fix build with GNU gold.
  25348. * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
  25349. (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
  25350. (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
  25351. link addresses.
  25352. * aclocal.m4: Likewise.
  25353. 2009-11-04 Felix Zielcke <fzielcke@z-51.de>
  25354. * configure.ac (AC_PREREQ): Bump to 2.59d.
  25355. * INSTALL: Make it more clear when Autoconf and Ruby are
  25356. needed and when to run `./autogen.sh'.
  25357. 2009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
  25358. * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
  25359. OSes.
  25360. 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
  25361. * util/grub.d/30_os-prober.in: Add GNU/Hurd support
  25362. 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
  25363. * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
  25364. giving it to GNU Mach.
  25365. 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
  25366. * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
  25367. GNU partition number to get internal GRUB partition number.
  25368. 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
  25369. * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
  25370. ${GRUB_DEVICE_BOOT} before loading /boot kernel.
  25371. 2009-11-01 Robert Millan <rmh.grub@aybabtu.com>
  25372. Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
  25373. * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
  25374. case.
  25375. 2009-11-01 Felix Zielcke <fzielcke@z-51.de>
  25376. * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
  25377. 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
  25378. Fix build problem.
  25379. * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
  25380. `-isystem=$(srcdir)/include'.
  25381. 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
  25382. * util/i386/pc/grub-install.in: Remove hint that device.map should be
  25383. checked (grub-install doesn't currently rely on it).
  25384. 2009-10-29 Robert Millan <rmh.grub@aybabtu.com>
  25385. Revert SVN r2660.
  25386. * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
  25387. * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
  25388. * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
  25389. * conf/i386-ieee1275.rmk: Likewise.
  25390. * conf/i386-pc.rmk: Likewise.
  25391. * conf/powerpc-ieee1275.rmk: Likewise.
  25392. * conf/sparc64-ieee1275.rmk: Likewise.
  25393. * conf/x86_64-efi.rmk: Likewise.
  25394. 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
  25395. * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
  25396. 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
  25397. * include/grub/misc.h: Stop checking for APPLE_CC.
  25398. 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
  25399. * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
  25400. doesn't cause an infinite call loop.
  25401. 2009-10-28 Felix Zielcke <fzielcke@z-51.de>
  25402. * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
  25403. strings.
  25404. 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
  25405. * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
  25406. variable.
  25407. * Makefile.in: Likewise.
  25408. 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
  25409. * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
  25410. 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
  25411. * Makefile.in (RMKFILES): Rewrite using $(wildcard).
  25412. 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
  25413. * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
  25414. 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
  25415. * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
  25416. from here ...
  25417. * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
  25418. 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
  25419. * Makefile.in (docs/grub.info): Use make syntax to ignore errors
  25420. in $(MAKEINFO) invocation. This makes it clear in output that
  25421. errors are being ignored.
  25422. 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
  25423. * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
  25424. from here ...
  25425. * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
  25426. * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
  25427. * conf/i386-ieee1275.rmk: Likewise.
  25428. * conf/i386-pc.rmk: Likewise.
  25429. * conf/powerpc-ieee1275.rmk: Likewise.
  25430. * conf/sparc64-ieee1275.rmk: Likewise.
  25431. * conf/x86_64-efi.rmk: Likewise.
  25432. 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
  25433. * util/grub-editenv.c (main): If only a command is given, use
  25434. DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
  25435. (usage): FILENAME is now optional and has a default.
  25436. 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
  25437. Improve grub-mkconfig performance when there are several menu
  25438. entries on a single filesystem.
  25439. * util/grub.d/10_linux.in (linux_entry): Cache the output of
  25440. prepare_grub_to_access_device.
  25441. * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
  25442. * util/grub.d/30_os-prober.in: Likewise.
  25443. 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
  25444. * util/grub.d/10_freebsd.in: Remove.
  25445. * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
  25446. * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
  25447. 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
  25448. * docs/grub.cfg: Fix example usage of *BSD loaders.
  25449. 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
  25450. * util/i386/pc/grub-setup.c (setup): Add missing parameter to
  25451. grub_util_error() call.
  25452. 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
  25453. * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
  25454. `reserved_first_sector' member.
  25455. * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
  25456. `reserved_first_sector' to 1.
  25457. * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
  25458. * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
  25459. * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
  25460. * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
  25461. filesystems which begin at first sector.
  25462. (options): New option --skip-fs-probe.
  25463. (main): Handle --skip-fs-probe and pass it to setup().
  25464. 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
  25465. * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
  25466. (memset): Fix function prototype.
  25467. 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
  25468. 2009-10-25 Vasily Averin <vvs@parallels.com>
  25469. * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
  25470. `dirent.direntlen == 0'.
  25471. 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
  25472. * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
  25473. `cpio'.
  25474. [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
  25475. 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
  25476. * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
  25477. `__trampoline_setup' and `__ucmpdi2'.
  25478. * include/grub/powerpc/libgcc.h: Only export symbols for functions
  25479. that libgcc provides.
  25480. 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
  25481. * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
  25482. * include/grub/sparc64/libgcc.h (memset): Likewise.
  25483. * include/grub/misc.h (memset, memcmp): New function prototypes.
  25484. 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
  25485. * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
  25486. `cpio'.
  25487. [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
  25488. 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
  25489. Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
  25490. * docs/grub.cfg: Compensate for recent change in multiboot
  25491. loader (since 2009-08-14 it won't pass filename to payload).
  25492. * util/grub.d/10_hurd.in: Likewise.
  25493. 2009-10-21 Felix Zielcke <fzielcke@z-51.de>
  25494. * config.guess: Update to latest version from config git
  25495. repository.
  25496. * config.sub: Likewise.
  25497. 2009-10-20 Robert Millan <rmh.grub@aybabtu.com>
  25498. Fix build on sparc64.
  25499. * configure.ac: Perform checks for libgcc symbols before
  25500. adding `-nostdlib' to LDFLAGS.
  25501. 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
  25502. Let user specify OpenBSD root device.
  25503. * loader/i386/bsd.c (openbsd_root): New variable.
  25504. (openbsd_opts): New option 'root'.
  25505. (OPENBSD_ROOT_ARG): New macro.
  25506. (grub_openbsd_boot): Use 'openbsd_root'.
  25507. (grub_cmd_openbsd): Fill 'openbsd_root'.
  25508. 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
  25509. * NEWS: Misc adjustments.
  25510. 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
  25511. * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
  25512. 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
  25513. * configure.ac: Bump version to 1.97.
  25514. 2009-10-16 Colin Watson <cjwatson@ubuntu.com>
  25515. * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
  25516. -mno-3dnow on x86 architectures. Some toolchains enable these
  25517. features by default, but they rely on registers that aren't enabled
  25518. in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
  25519. 2009-10-15 Robert Millan <rmh.grub@aybabtu.com>
  25520. Make entry text a bit more readable.
  25521. * util/grub.d/10_linux.in: Add `with' before `Linux'.
  25522. 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
  25523. * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
  25524. 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
  25525. * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
  25526. operations.
  25527. 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
  25528. * configure.ac: Add missing dollar.
  25529. 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
  25530. Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
  25531. * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
  25532. * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
  25533. exports.
  25534. * include/grub/sparc64/libgcc.h: Likewise. Use
  25535. preprocessor conditionals.
  25536. 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
  25537. * conf/common.rmk (grub-dumpbios): Remove rule.
  25538. (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
  25539. * util/grub-dumpbios.in: Remove file.
  25540. 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
  25541. Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
  25542. the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
  25543. * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
  25544. from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
  25545. users.
  25546. (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
  25547. "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
  25548. to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
  25549. and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
  25550. users.
  25551. 2009-10-12 Robert Millan <rmh.grub@aybabtu.com>
  25552. * term/tparm.c: Switch to GPLv3.
  25553. 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
  25554. * include/grub/i386/cpuid.h: Add header protection.
  25555. 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
  25556. Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
  25557. * include/grub/i386/cpuid.h: New file.
  25558. * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
  25559. (has_longmode): Rename to ...
  25560. (grub_cpuid_has_longmode): ... this. Update all users. Remove
  25561. `static' attribute.
  25562. * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
  25563. (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
  25564. on a CPU that doesn't implement AMD64 instruction set.
  25565. 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
  25566. * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
  25567. that version.texi is rebuilt on version number changes.
  25568. 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
  25569. * Makefile.in: Don't set info_INFOS unless makeinfo was found.
  25570. Fixes bug #27602.
  25571. 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
  25572. * util/i386/pc/grub-install.in: Source
  25573. ${libdir}/grub/grub-mkconfig_lib before option processing, in order
  25574. that the --grub-probe option will work.
  25575. * util/sparc64/ieee1275/grub-install.in: Likewise.
  25576. 2009-10-05 Robert Millan <rmh.grub@aybabtu.com>
  25577. * configure.ac: Bump version to 1.97~beta4.
  25578. 2009-10-03 Robert Millan <rmh.grub@aybabtu.com>
  25579. Resync grub-mkdevicemap in x86_64-efi.
  25580. * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
  25581. (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
  25582. `util/devicemap.c'.
  25583. 2009-10-01 Colin Watson <cjwatson@ubuntu.com>
  25584. * util/grub-editenv.c (create_envblk_file): Write new block with a
  25585. .new suffix and then rename it into place, to ensure atomic
  25586. creation.
  25587. 2009-09-28 Robert Millan <rmh.grub@aybabtu.com>
  25588. Do not automatically install headers.
  25589. * Makefile.in (include_DATA): Remove. Update all users.
  25590. 2009-09-26 Robert Millan <rmh.grub@aybabtu.com>
  25591. * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
  25592. (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
  25593. * util/osdetect.lua: Remove.
  25594. * script/lua/lauxlib.c: Likewise.
  25595. * script/lua/ldebug.c: Likewise.
  25596. * script/lua/grub_main.c: Likewise.
  25597. * script/lua/lauxlib.h: Likewise.
  25598. * script/lua/ldebug.h: Likewise.
  25599. * script/lua/ltablib.c: Likewise.
  25600. * script/lua/liolib.c: Likewise.
  25601. * script/lua/lstrlib.c: Likewise.
  25602. * script/lua/lualib.h: Likewise.
  25603. * script/lua/ldo.c: Likewise.
  25604. * script/lua/ldump.c: Likewise.
  25605. * script/lua/ldo.h: Likewise.
  25606. * script/lua/loslib.c: Likewise.
  25607. * script/lua/lundump.c: Likewise.
  25608. * script/lua/grub_lib.c: Likewise.
  25609. * script/lua/ldblib.c: Likewise.
  25610. * script/lua/lundump.h: Likewise.
  25611. * script/lua/lmem.c: Likewise.
  25612. * script/lua/grub_lib.h: Likewise.
  25613. * script/lua/lmathlib.c: Likewise.
  25614. * script/lua/lstate.c: Likewise.
  25615. * script/lua/ltm.c: Likewise.
  25616. * script/lua/lvm.c: Likewise.
  25617. * script/lua/lmem.h: Likewise.
  25618. * script/lua/lstate.h: Likewise.
  25619. * script/lua/ltm.h: Likewise.
  25620. * script/lua/ltable.c: Likewise.
  25621. * script/lua/lvm.h: Likewise.
  25622. * script/lua/llex.c: Likewise.
  25623. * script/lua/lgc.c: Likewise.
  25624. * script/lua/grub_lua.h: Likewise.
  25625. * script/lua/loadlib.c: Likewise.
  25626. * script/lua/lfunc.c: Likewise.
  25627. * script/lua/lopcodes.c: Likewise.
  25628. * script/lua/lparser.c: Likewise.
  25629. * script/lua/ltable.h: Likewise.
  25630. * script/lua/llex.h: Likewise.
  25631. * script/lua/lgc.h: Likewise.
  25632. * script/lua/lfunc.h: Likewise.
  25633. * script/lua/lbaselib.c: Likewise.
  25634. * script/lua/lopcodes.h: Likewise.
  25635. * script/lua/lparser.h: Likewise.
  25636. * script/lua/lzio.c: Likewise.
  25637. * script/lua/linit.c: Likewise.
  25638. * script/lua/lobject.c: Likewise.
  25639. * script/lua/llimits.h: Likewise.
  25640. * script/lua/lstring.c: Likewise.
  25641. * script/lua/lzio.h: Likewise.
  25642. * script/lua/lapi.c: Likewise.
  25643. * script/lua/lcode.c: Likewise.
  25644. * script/lua/lua.h: Likewise.
  25645. * script/lua/lobject.h: Likewise.
  25646. * script/lua/lstring.h: Likewise.
  25647. * script/lua/lapi.h: Likewise.
  25648. * script/lua/lcode.h: Likewise.
  25649. * script/lua/luaconf.h: Likewise.
  25650. 2009-09-26 Colin Watson <cjwatson@ubuntu.com>
  25651. * docs/grub.texi (Command-line and menu entry commands): Document
  25652. date and echo commands.
  25653. 2009-09-24 Pavel Roskin <proski@gnu.org>
  25654. * include/grub/kernel.h (struct grub_module_header): Remove
  25655. `grub_module_header_types'. Make `type' unsigned. Make `size'
  25656. 32-bit on all platforms.
  25657. * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
  25658. 8-bit field. Use grub_host_to_target32() for `size'.
  25659. * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
  25660. * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
  25661. * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
  25662. 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
  25663. Fix "lost keypress" bug in at_keyboard.
  25664. * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
  25665. Checks for readyness of input buffer (without flushing it).
  25666. (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
  25667. than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
  25668. 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
  25669. * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
  25670. size check within GRUB_MACHINE_PCBIOS section.
  25671. 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
  25672. * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
  25673. return value.
  25674. * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
  25675. KEYBOARD_ISREADY check.
  25676. (grub_at_keyboard_checkkey): Rename to ...
  25677. (grub_at_keyboard_getkey_noblock): ... this. Update all users.
  25678. Remove gratuitous cast.
  25679. 2009-09-23 Colin Watson <cjwatson@ubuntu.com>
  25680. * configure.ac: Call AC_PROG_MKDIR_P.
  25681. * Makefile.in (docs/stamp-vti): Create docs directory. Create
  25682. version.texi in $(builddir) rather than $(srcdir).
  25683. (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
  25684. to makeinfo's @include search path.
  25685. 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
  25686. * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
  25687. 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
  25688. * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
  25689. for `*.dpkg-new'.
  25690. 2009-09-21 Colin Watson <cjwatson@ubuntu.com>
  25691. Build info documentation. Some code borrowed from Automake.
  25692. * configure.ac: Check for makeinfo.
  25693. * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
  25694. (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
  25695. docs/version.texi.
  25696. (MOSTLYCLEANFILES): Add vti.tmp.
  25697. (docs/version.texi, docs/stamp-vti): Update automatically.
  25698. (docs/grub.info): Build info documentation. Use --force and ignore
  25699. errors for now.
  25700. (all-local): Add $(INFOS).
  25701. (install-local): Install info files.
  25702. (uninstall): Uninstall info files.
  25703. * docs/version.texi: Remove from revision control. This file is
  25704. automatically generated on build now.
  25705. * gendistlist.sh: Add `*.info'.
  25706. 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
  25707. * kern/term.c: Fix indentation.
  25708. 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
  25709. * util/hostdisk.c: Fix a comment.
  25710. 2009-09-20 Robert Millan <rmh.grub@aybabtu.com>
  25711. Fix regression introduced in r2539.
  25712. * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
  25713. to 0xA1.
  25714. 2009-09-19 Colin Watson <cjwatson@ubuntu.com>
  25715. * util/grub.d/30_os-prober.in: Don't throw away stderr from
  25716. os-prober. Under normal operation, it does not print anything to
  25717. stderr; if it does, we need to debug it, and throwing away stderr
  25718. makes that excessively difficult.
  25719. 2009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
  25720. * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
  25721. 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
  25722. * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
  25723. AC_LANG_PROGRAM from autoconf.
  25724. (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
  25725. prototypes (fixes warning).
  25726. * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
  25727. `--disable-werror' was used.
  25728. 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
  25729. * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
  25730. uninitialized `lastaddr'.
  25731. 2009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
  25732. * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
  25733. 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
  25734. * commands/test.c (get_fileinfo): Return immediately if
  25735. grub_fs_probe fails.
  25736. 2009-09-14 José Martínez <xosemp@gmail.com>
  25737. * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
  25738. 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
  25739. * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
  25740. output.
  25741. 2009-09-13 Robert Millan <rmh.grub@aybabtu.com>
  25742. * configure.ac: Remove --enable-grub-pe2elf. Only build
  25743. grub-pe2elf when needed by the build system itself.
  25744. * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
  25745. 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
  25746. * configure.ac: Bump version to 1.97~beta3.
  25747. * docs/version.texi: Likewise.
  25748. 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
  25749. * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
  25750. mode special handling (grub_vbe_bios_set_dac_palette_width() call)
  25751. from here ...
  25752. * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
  25753. (grub_linux_setup_video): ... to here (with some adjustments).
  25754. 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
  25755. Fix memory corruption issue (spotted by Colin Watson).
  25756. * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
  25757. causing returned size to be stored in an incorrect memory location.
  25758. Fix use of uninitialized value when storing the returned size.
  25759. 2009-09-12 Yves Blusseau <blusseau@zetam.org>
  25760. Change clean rules to properly remove files
  25761. * genmk.rb: add new clean rules
  25762. * Makefile.in (clean): add the new targets
  25763. (mostlyclean): likewise
  25764. 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
  25765. * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
  25766. to grub_uint64_t.
  25767. * fs/ntfs.c (init_file): Understand 64-bit sizes for
  25768. non-resident files.
  25769. 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
  25770. * configure.ac: Don't look for help2man when cross-compiling. Fixes
  25771. part of bug #27349.
  25772. 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
  25773. * util/grub-mkconfig.in: Make the created config mode 400 and
  25774. print a warning if it fails.
  25775. 2009-09-10 Robert Millan <rmh.grub@aybabtu.com>
  25776. * util/grub.d/40_custom.in: Ask user to type custom entries below
  25777. comment, rather than below 'exec tail' line.
  25778. 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
  25779. * util/grub.d/40_custom.in: Make sure that the explanatory text is
  25780. visible in grub.cfg.
  25781. 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
  25782. * util/grub.d/40_custom.in: Make it a little clearer how to use this
  25783. file.
  25784. 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
  25785. * docs/grub.cfg: Add an example menu entry for memtest86+.
  25786. 2009-09-09 Felix Zielcke <fzielcke@z-51.de>
  25787. * config.guess: Update to latest version from config git.
  25788. * config.sub: Likewise.
  25789. 2009-09-08 Colin Watson <cjwatson@ubuntu.com>
  25790. * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
  25791. unknown-command case. Fixes bug #27320.
  25792. 2009-09-08 Felix Zielcke <fzielcke@z-51.de>
  25793. * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
  25794. `help' if the command exists.
  25795. 2009-09-06 Robert Millan <rmh.grub@aybabtu.com>
  25796. * INSTALL: Require GCC 4.1.3 or later.
  25797. 2009-09-06 Yves Blusseau <blusseau@zetam.org>
  25798. * Makefile.in (RMKFILES): add i386-qemu.rmk
  25799. (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
  25800. $(srcdir)/stamp-h.in
  25801. 2009-09-05 Robert Millan <rmh.grub@aybabtu.com>
  25802. * util/grub-probe.c (probe): Comment out buggy codepath, which
  25803. was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
  25804. should be re-enabled after 1.97.
  25805. 2009-09-05 Felix Zielcke <fzielcke@z-51.de>
  25806. * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
  25807. find searches for.
  25808. 2009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
  25809. * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
  25810. unnecessary calls to grub_error.
  25811. 2009-09-04 Colin Watson <cjwatson@ubuntu.com>
  25812. * NEWS: Mention `keystatus' and Unicode fonts.
  25813. 2009-09-04 Robert Millan <rmh.grub@aybabtu.com>
  25814. * configure.ac: Bump version to 1.97~beta2.
  25815. * docs/version.texi: Likewise.
  25816. 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
  25817. * configure.ac: By default, GCC 4.4 generates .eh_frame sections
  25818. containing unwind information in some cases where it previously did
  25819. not. Use -fno-dwarf2-cfi-asm if available to restore the old
  25820. behaviour. See http://patchwork.kernel.org/patch/8555/ for related
  25821. discussion.
  25822. 2009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
  25823. Embedding loadenv module into grub-emu
  25824. * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
  25825. commands/loadenv.c
  25826. * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
  25827. * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
  25828. * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
  25829. * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
  25830. * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
  25831. * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
  25832. 2009-09-03 Magnus Granberg <zorry@ume.nu>
  25833. * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
  25834. include -fPIE in the default specs.
  25835. * configure.ac: Check if pie_possible is yes and add -fno-PIE
  25836. to TARGET_CFLAGS.
  25837. 2009-09-03 Felix Zielcke <fzielcke@z-51.de>
  25838. * INSTALL: Note that GNU Bison 2.3 or later is required.
  25839. 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
  25840. * kern/i386/pc/startup.S: Fix typo.
  25841. 2009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
  25842. * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
  25843. according to GCS.
  25844. 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
  25845. * docs/grub.texi (Naming convention): Describe one-based partition
  25846. numbering.
  25847. (Device syntax): Likewise.
  25848. (File name syntax): Likewise.
  25849. (Block list syntax): Likewise.
  25850. (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
  25851. menu.lst.
  25852. (File name syntax): Likewise.
  25853. (Command-line and menu entry commands): Document acpi, blocklist,
  25854. crc, export, insmod, keystatus, ls, set, and unset commands.
  25855. 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
  25856. * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
  25857. to avoid implying that only one of --shift, --ctrl, or --alt may be
  25858. used.
  25859. 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
  25860. * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
  25861. rather than comparing against S_IFREG, which will almost never work.
  25862. 2009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
  25863. * commands/loadenv.c (check_blocklists): Fix off-by-one error.
  25864. (write_blocklists): Likewise.
  25865. 2009-09-01 Colin Watson <cjwatson@ubuntu.com>
  25866. * script/lua/grub_lua.h (fputs): Supply a format string as the first
  25867. argument to grub_printf.
  25868. 2009-09-01 Felix Zielcke <fzielcke@z-51.de>
  25869. * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
  25870. non GNU test.
  25871. 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
  25872. * kern/file.c (grub_file_read): Spelling fix
  25873. 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
  25874. * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
  25875. loading of headers in some cases.
  25876. 2009-08-30 Robert Millan <rmh.grub@aybabtu.com>
  25877. * configure.ac: Bump version to 1.97~beta1.
  25878. * docs/version.texi: Likewise.
  25879. 2009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
  25880. * include/grub/i386/xnu.h: Add license header.
  25881. include grub/err.h explicitly.
  25882. 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
  25883. * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
  25884. to `ufs' in the vfs.root.mountfrom kernel parameter.
  25885. 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
  25886. * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
  25887. [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
  25888. value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
  25889. [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
  25890. `ARRAY_SIZE' macro.
  25891. 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
  25892. * kern/file.c (grub_file_read): Check offset.
  25893. * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
  25894. * fs/jfs.c (grub_jfs_read_file): Likewise.
  25895. * fs/ntfs.c (grub_ntfs_read): Likewise.
  25896. * fs/reiserfs.c (grub_reiserfs_read): Likewise.
  25897. * fs/minix.c (grub_minix_read_file): Correct offset check.
  25898. * fs/ufs.c (grub_ufs_read_file): Likewise.
  25899. 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
  25900. * term/i386/pc/console.c (bios_data_area): Cast
  25901. GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
  25902. 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
  25903. 1-bit optimised blitters.
  25904. * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
  25905. prototype.
  25906. (grub_video_fbblit_replace_24bit_1bit): Likewise.
  25907. (grub_video_fbblit_replace_16bit_1bit): Likewise.
  25908. (grub_video_fbblit_replace_8bit_1bit): Likewise.
  25909. (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
  25910. (grub_video_fbblit_blend_XXX888_1bit): Likewise.
  25911. (grub_video_fbblit_blend_XXX565_1bit): Likewise.
  25912. * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
  25913. function.
  25914. (grub_video_fbblit_replace_24bit_1bit): Likewise.
  25915. (grub_video_fbblit_replace_16bit_1bit): Likewise.
  25916. (grub_video_fbblit_replace_8bit_1bit): Likewise.
  25917. (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
  25918. (grub_video_fbblit_blend_XXX888_1bit): Likewise.
  25919. (grub_video_fbblit_blend_XXX565_1bit): Likewise.
  25920. * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
  25921. when possible.
  25922. * video/video.c (grub_video_get_blit_format): Return
  25923. GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
  25924. 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
  25925. * normal/cmdline.c (grub_cmdline_get): Supply a format string as
  25926. the first argument to grub_printf.
  25927. 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
  25928. 2009-08-28 Robert Millan <rmh.grub@aybabtu.com>
  25929. Add `getkeystatus' terminal method. Add a new `keystatus' command
  25930. to query it.
  25931. * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
  25932. GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
  25933. modifier key bitmasks.
  25934. (struct grub_term_input): Add `getkeystatus' member.
  25935. (grub_getkeystatus): Add prototype.
  25936. * kern/term.c (grub_getkeystatus): New function.
  25937. * include/grub/i386/pc/memory.h
  25938. (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
  25939. (struct grub_machine_bios_data_area): Define necessary parts of BIOS
  25940. Data Area layout.
  25941. * term/i386/pc/console.c (grub_console_getkeystatus): New function.
  25942. (grub_console_term_input): Set `getkeystatus' member.
  25943. * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
  25944. constants.
  25945. (grub_usb_keyboard_getreport): Likewise.
  25946. (grub_usb_keyboard_checkkey): Likewise.
  25947. (grub_usb_keyboard_getkeystatus): New function.
  25948. (grub_usb_keyboard_term): Set `getkeystatus' member.
  25949. * commands/keystatus.c: New file.
  25950. * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
  25951. (keystatus_mod_SOURCES): New variable.
  25952. (keystatus_mod_CFLAGS): Likewise.
  25953. (keystatus_mod_LDFLAGS): Likewise.
  25954. * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
  25955. commands/keystatus.c.
  25956. * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
  25957. * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
  25958. * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
  25959. * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
  25960. * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
  25961. * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
  25962. 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
  25963. Split befs.mod and afs.mod into *_be.mod and *.mod
  25964. * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
  25965. (grub_fstest_SOURCES): Likewise.
  25966. (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
  25967. (afs_be_mod_SOURCES): New variable.
  25968. (afs_be_mod_CFLAGS): Likewise.
  25969. (afs_be_mod_LDFLAGS): Likewise.
  25970. (befs_be_mod_SOURCES): Likewise.
  25971. (befs_be_mod_CFLAGS): Likewise.
  25972. (befs_be_mod_LDFLAGS): Likewise.
  25973. * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
  25974. * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
  25975. * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
  25976. * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
  25977. (grub_emu_SOURCES): Likewise.
  25978. * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
  25979. * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
  25980. * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
  25981. * fs/afs_be.c: New file.
  25982. * fs/befs_be.c: New file.
  25983. * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
  25984. (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
  25985. (U16): Replaced with ...
  25986. (grub_afs_to_cpu16): ...this. All users updated.
  25987. (U32): Replaced with ...
  25988. (grub_afs_to_cpu32): ...this. All users updated.
  25989. (U64): Replaced with ...
  25990. (grub_afs_to_cpu64): ...this. All users updated.
  25991. (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
  25992. (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
  25993. (grub_afs_validate_sblock): Check only one endianness.
  25994. (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
  25995. (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
  25996. (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
  25997. (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
  25998. (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
  25999. (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
  26000. (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
  26001. (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
  26002. 2009-08-26 Bean <bean123ch@gmail.com>
  26003. * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
  26004. 64-bit number.
  26005. (GRUB_XFS_FSB_TO_BLOCK): Likewise.
  26006. (grub_xfs_inode_block): Change return type to grub_uint64_t.
  26007. (grub_xfs_read_inode): Change type of block to grub_uint64_t.
  26008. 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
  26009. NetBSD memory map support.
  26010. * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
  26011. (grub_netbsd_btinfo_mmap_header): New structure.
  26012. (grub_netbsd_btinfo_mmap_entry): Likewise.
  26013. * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
  26014. 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
  26015. Enable bsd.mod on coreboot.
  26016. * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
  26017. (bsd_mod_SOURCES): New variable.
  26018. (bsd_mod_CFLAGS): Likewise.
  26019. (bsd_mod_LDFLAGS): Likewise.
  26020. (bsd_mod_ASFLAGS): Likewise.
  26021. * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
  26022. (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
  26023. 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
  26024. Cleanup NetBSD root support.
  26025. * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
  26026. grub_bsd_get_device.
  26027. Fix typo.
  26028. 2009-08-25 Felix Zielcke <fzielcke@z-51.de>
  26029. * util/grub.d/00_header.in: Move check for the video backend of
  26030. gfxterm from here ...
  26031. * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
  26032. a suitable video backend.
  26033. 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
  26034. Fix breakage in grub-setup.
  26035. * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
  26036. "msdos_partition_map".
  26037. 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
  26038. Fix breakage in normal/auth.c.
  26039. * normal/auth.c (grub_iswordseparator): New function.
  26040. 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
  26041. Authentication support.
  26042. * commands/password.c: New file.
  26043. * conf/common.rmk (pkglib_MODULES): Add password.mod.
  26044. (password_mod_SOURCES): New variable.
  26045. (password_mod_CFLAGS): Likewise.
  26046. (password_mod_LDFLAGS): Likewise.
  26047. (normal_mod_SOURCES): Add normal/auth.c.
  26048. * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
  26049. normal/auth.c.
  26050. * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
  26051. * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
  26052. * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
  26053. * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
  26054. * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
  26055. * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
  26056. * include/grub/auth.h: New file.
  26057. * include/grub/err.h (grub_err_t): New enum value
  26058. GRUB_ERR_ACCESS_DENIED.
  26059. * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
  26060. 'users'.
  26061. * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
  26062. * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
  26063. users updated.
  26064. * normal/auth.c: New file.
  26065. * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
  26066. (grub_cmdline_run): Don't allow to go to command line without
  26067. authentication.
  26068. * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
  26069. * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
  26070. menuentry without superuser rights.
  26071. * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
  26072. user isn't a superuser.
  26073. 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
  26074. Save space by inlining misc.c functions.
  26075. * kern/misc.c (grub_iswordseparator): Made static.
  26076. * kern/misc.c (grub_strcat): Moved from here ...
  26077. * include/grub/misc.h (grub_strcat): ... here. Inlined.
  26078. * kern/misc.c (grub_strncat): Moved from here ...
  26079. * include/grub/misc.h (grub_strncat): ... here. Inlined.
  26080. * kern/misc.c (grub_strcasecmp): Moved from here ...
  26081. * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
  26082. * kern/misc.c (grub_strncasecmp): Moved from here ...
  26083. * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
  26084. * kern/misc.c (grub_isalpha): Moved from here ...
  26085. * include/grub/misc.h (grub_isalpha): ... here. Inlined.
  26086. * kern/misc.c (grub_isdigit): Moved from here ...
  26087. * include/grub/misc.h (grub_isdigit): ... here. Inlined.
  26088. * kern/misc.c (grub_isgraph): Moved from here ...
  26089. * include/grub/misc.h (grub_isgraph): ... here. Inlined.
  26090. * kern/misc.c (grub_tolower): Moved from here ...
  26091. * include/grub/misc.h (grub_tolower): ... here. Inlined.
  26092. 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
  26093. * script/sh/function.c (grub_script_function_find): Cut error message
  26094. not to flood terminal.
  26095. * script/sh/lexer.c (grub_script_yylex): Remove command line length
  26096. limit.
  26097. * script/sh/script.c (grub_script_arg_add): Duplicate string.
  26098. 2009-08-24 Colin Watson <cjwatson@ubuntu.com>
  26099. * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
  26100. `report' grub_uint8_t *.
  26101. (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
  26102. Use a 50-millisecond timeout rather than just repeating
  26103. grub_usb_keyboard_getreport 50 times.
  26104. (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
  26105. 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
  26106. Rename *_partition_map to part_*
  26107. * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
  26108. * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
  26109. * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
  26110. * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
  26111. All users updated.
  26112. * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
  26113. All users updated.
  26114. * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
  26115. * util/grub-probe.c (probe_partmap): Don't transform partition name
  26116. to get module name.
  26117. 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
  26118. Fix OpenBSD and NetBSD support.
  26119. * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
  26120. memory address conflict.
  26121. (OPENBSD_MMAP_ACPI): New definition.
  26122. (OPENBSD_MMAP_NVS): Likewise.
  26123. * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
  26124. and OPENBSD_MMAP_NVS.
  26125. Add memory map terminator
  26126. Explicit cast when calling grub_unix_real_boot.
  26127. (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
  26128. 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
  26129. Let user specify NetBSD root device.
  26130. * loader/i386/bsd.c (netbsd_root): New variable.
  26131. (netbsd_opts): New option 'root'.
  26132. (NETBSD_ROOT_ARG): New macro.
  26133. (grub_netbsd_boot): Use 'netbsd_root'.
  26134. (grub_bsd_unload): Free 'netbsd_root'.
  26135. (grub_cmd_netbsd): Fill 'netbsd_root'.
  26136. 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
  26137. Support for 64-bit NetBSD.
  26138. * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
  26139. point when booting non-FreeBSD.
  26140. 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
  26141. Support --no-smp and --no-acpi for NetBSD.
  26142. * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
  26143. (NETBSD_AB_NOACPI): Likewise.
  26144. * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
  26145. (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
  26146. 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
  26147. * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
  26148. errors.
  26149. (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
  26150. errors. Call grub_error when needed.
  26151. 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
  26152. * commands/search.c (search_fs): Try searching without autoload first.
  26153. * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
  26154. filesystem module explicitly for faster booting.
  26155. 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
  26156. * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
  26157. 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
  26158. * util/grub.d/30_os-prober.in: Disable os-prober if
  26159. `GRUB_DISABLE_OS_PROBER' was set to true.
  26160. 2009-08-23 Robert Millan <rmh.grub@aybabtu.com>
  26161. * partmap/pc.c: Rename to ...
  26162. * partmap/msdos.c: ... this. Update all users.
  26163. (grub_pc_partition_map): Rename to ...
  26164. (grub_msdos_partition_map): ... this. Update all users.
  26165. * parttool/pcpart.c: Rename to ...
  26166. * parttool/msdospart.c: ... this. Update all users.
  26167. * include/grub/pc_partition.h: Rename to ...
  26168. * include/grub/msdos_partition.h: ... this. Update all users.
  26169. (grub_pc_partition_bsd_entry): Rename to ...
  26170. (grub_msdos_partition_bsd_entry): ... this. Update all users.
  26171. (grub_pc_partition_disk_label): Rename to ...
  26172. (grub_msdos_partition_disk_label): ... this. Update all users.
  26173. (grub_pc_partition_entry): Rename to ...
  26174. (grub_msdos_partition_entry): ... this. Update all users.
  26175. (grub_pc_partition_mbr): Rename to ...
  26176. (grub_msdos_partition_mbr): ... this. Update all users.
  26177. (grub_pc_partition): Rename to ...
  26178. (grub_msdos_partition): ... this. Update all users.
  26179. (grub_pc_partition_is_empty): Rename to ...
  26180. (grub_msdos_partition_is_empty): ... this. Update all users.
  26181. (grub_pc_partition_is_extended): Rename to ...
  26182. (grub_msdos_partition_is_extended): ... this. Update all users.
  26183. (grub_pc_partition_is_bsd): Rename to ...
  26184. (grub_msdos_partition_is_bsd): ... this. Update all users.
  26185. * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
  26186. (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
  26187. (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
  26188. (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
  26189. (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
  26190. (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
  26191. (gpt_mod_LDFLAGS): Rename to ...
  26192. (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
  26193. (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
  26194. (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
  26195. (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
  26196. (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
  26197. (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
  26198. (part_gpt_mod_LDFLAGS): ... this.
  26199. (pkglib_MODULES): Prefix partition modules with `part_'. Rename
  26200. `pcpart.mod' to `msdospart.mod'.
  26201. (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
  26202. to ...
  26203. (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
  26204. (msdospart_mod_LDFLAGS): ... this.
  26205. 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
  26206. * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
  26207. (openbsd_opts): Likewise.
  26208. (netbsd_opts): Likewise.
  26209. (freebsd_flags): Added 0 terminator.
  26210. (openbsd_flags): Likewise.
  26211. (netbsd_flags): Likewise.
  26212. (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
  26213. (grub_cmd_freebsd): Transformed into extended command.
  26214. (grub_cmd_openbsd): Likewise.
  26215. (grub_cmd_netbsd): Likewise.
  26216. (cmd_freebsd): Changed type to grub_extcmd_t.
  26217. (cmd_openbsd): Likewise.
  26218. (cmd_netbsd): Likewise.
  26219. (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
  26220. grub_cmd_openbsd as extended commands.
  26221. (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
  26222. cmd_netbsd and cmd_openbsd
  26223. 2009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
  26224. * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
  26225. 2009-08-21 Pavel Roskin <proski@gnu.org>
  26226. * Makefile.in (install-local): When checking if a file is in the
  26227. build directory, use "test -e" to detect symlinks.
  26228. * Makefile.in (install-local): Remove all files in
  26229. $(DESTDIR)$(pkglibdir) before installing new files there.
  26230. 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
  26231. * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
  26232. grub-mkelfimage.
  26233. 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
  26234. * util/grub-mkconfig.in: Don't use gfxterm by default if not
  26235. explicitly specified by the user.
  26236. 2009-08-18 Pavel Roskin <proski@gnu.org>
  26237. * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
  26238. grub_uint8_t pointer for data.
  26239. * include/grub/fbutil.h (struct grub_video_fbblit_info):
  26240. Likewise.
  26241. * video/fb/fbutil.c: Remove unnecessary casts.
  26242. 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
  26243. VBE cleanup.
  26244. * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
  26245. (grub_vbe_set_video_mode): Save active mode info
  26246. only after setting the mode.
  26247. (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
  26248. second argument.
  26249. 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
  26250. Rename variables for clarity.
  26251. * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
  26252. (active_vbe_mode_info): ... this. All users updated.
  26253. (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
  26254. All users updated.
  26255. (initial_mode): Rename to ...
  26256. (initial_vbe_mode): ... this. All users updated.
  26257. (mode_in_use): Rename to ..
  26258. (vbe_mode_in_use): ... this. All users updated.
  26259. (mode_list): Rename to ..
  26260. (vbe_mode_list): ... this. All users updated.
  26261. (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
  26262. 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
  26263. (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
  26264. 'mode_list_size' to 'vbe_mode_list_size'.
  26265. (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
  26266. 'best_mode_info' to 'best_vbe_mode_info' and
  26267. 'best_mode' to 'best_vbe_mode'
  26268. 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
  26269. Remove duplicate grub_video_fb_get_video_ptr.
  26270. * include/grub/fbutil.h (get_data_ptr): Rename to ...
  26271. (grub_video_fb_get_video_ptr): ... this.
  26272. * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
  26273. * video/fb/fbutil.c: Add comment about addressing.
  26274. (get_data_ptr): Rename to ...
  26275. (grub_video_fb_get_video_ptr): ... this. All users updated.
  26276. * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
  26277. 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
  26278. * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
  26279. grub_dprintf() that was just added.
  26280. 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
  26281. * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
  26282. (DEFAULT_VIDEO_MODE): Remove macros.
  26283. (grub_linux_boot): Remove assumption that Linux has FB support,
  26284. and use "text" as default video mode.
  26285. 2009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
  26286. * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
  26287. grub_dprintf.
  26288. * fs/fat.c (grub_fat_read_data): Likewise.
  26289. 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
  26290. * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
  26291. payload.
  26292. (grub_module): Likewise.
  26293. 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
  26294. * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
  26295. mbi->cmdline but free playground.
  26296. 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
  26297. Handle group offset on UFS1.
  26298. * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
  26299. (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
  26300. 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
  26301. Split ufs.mod into ufs1.mod and ufs2.mod.
  26302. * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
  26303. (grub_fstest_SOURCES): Likewise.
  26304. (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
  26305. (ufs_mod_SOURCES): Remove.
  26306. (ufs_mod_CFLAGS): Likewise.
  26307. (ufs_mod_LDFLAGS): Likewise.
  26308. (ufs1_mod_SOURCES): New variable.
  26309. (ufs1_mod_CFLAGS): Likewise.
  26310. (ufs1_mod_LDFLAGS): Likewise.
  26311. (ufs2_mod_SOURCES): New variable.
  26312. (ufs2_mod_CFLAGS): Likewise.
  26313. (ufs2_mod_LDFLAGS): Likewise.
  26314. * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
  26315. * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
  26316. Likewise.
  26317. (grub_emu_SOURCES): Likewise.
  26318. * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
  26319. * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
  26320. (grub_setup_SOURCES): Likewise.
  26321. * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
  26322. * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
  26323. (grub_setup_SOURCES): Likewise.
  26324. * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
  26325. Likewise.
  26326. * fs/ufs2.c: New file.
  26327. * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
  26328. 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
  26329. Framebuffer split.
  26330. * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
  26331. subsystem at the end.
  26332. * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
  26333. (video_fb_mod_SOURCES): New variable.
  26334. (video_fb_mod_CFLAGS): Likewise.
  26335. (video_fb_mod_LDFLAGS): Likewise.
  26336. * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
  26337. video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
  26338. * video/i386/pc/vbeblit.c: Moved from here ...
  26339. * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
  26340. * video/i386/pc/vbefill.c: Moved from here ...
  26341. * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
  26342. * video/i386/pc/vbeutil.c: Moved from here ...
  26343. * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
  26344. * include/grub/i386/pc/vbeblit.h: Moved from here ...
  26345. * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
  26346. * include/grub/i386/pc/vbefill.h: Moved from here ...
  26347. * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
  26348. * include/grub/i386/pc/vbeutil.h: Moved from here ...
  26349. * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
  26350. * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
  26351. * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
  26352. * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
  26353. (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
  26354. (grub_video_adapter): Added 'get_info_and_fini'.
  26355. (grub_video_get_info_and_fini): New prototype.
  26356. (grub_video_set_mode): make modestring const char *.
  26357. * loader/i386/linux.c (grub_linux_setup_video): Use
  26358. grub_video_get_info_and_fini.
  26359. (grub_linux_boot): Move modesetting just before booting.
  26360. * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
  26361. grub_video_get_info_and_fini.
  26362. * video/i386/pc/vbe.c: Moved framebuffer part ...
  26363. * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
  26364. * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
  26365. grub_video_fbstd_colors and grub_video_fb_set_palette.
  26366. (grub_video_vbe_init): Clear 'framebuffer' variable and use
  26367. grub_video_fb_init.
  26368. (grub_video_vbe_fini): Use grub_video_fb_fini.
  26369. (grub_video_vbe_setup): Use framebuffer.render_target instead of
  26370. render_target and use grub_video_fb_set_active_render_target and
  26371. grub_video_fb_set_palette.
  26372. (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
  26373. (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
  26374. (grub_video_vbe_adapter): Use framebuffer.
  26375. * video/video.c (grub_video_get_info_and_fini): New function.
  26376. (grub_video_set_mode): Make modestring const char *.
  26377. (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
  26378. values are already initialised.
  26379. 2009-08-14 Pavel Roskin <proski@gnu.org>
  26380. * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
  26381. ABS and APPLE_CC.
  26382. * boot/i386/pc/diskboot.S: Likewise.
  26383. * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
  26384. sectors allow compilation on MacOSX.
  26385. * conf/i386-pc.rmk: Enable unconditional compilation of
  26386. lnxboot.img.
  26387. 2009-08-13 Colin Watson <cjwatson@ubuntu.com>
  26388. * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
  26389. * util/grub.d/00_header.in: Enter interruptible sleep if
  26390. GRUB_HIDDEN_TIMEOUT is set.
  26391. 2009-08-13 Yves Blusseau <blusseau@zetam.org>
  26392. * include/grub/symbol.h: Add the LOCAL macro.
  26393. * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
  26394. starting with "L_".
  26395. 2009-08-13 Pavel Roskin <proski@gnu.org>
  26396. * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
  26397. any modern compilers we support.
  26398. * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
  26399. Use local labels starting with "L_" so that Apple assembler
  26400. knows they are local.
  26401. 2009-08-10 Robert Millan <rmh.grub@aybabtu.com>
  26402. * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
  26403. (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
  26404. (bsd_kernel_types): ... this enum.
  26405. * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
  26406. (grub_cmd_freebsd_module_elf): Abort with "You need to load the
  26407. kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
  26408. (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
  26409. (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
  26410. (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
  26411. messages.
  26412. 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
  26413. * util/grub-dumpdevtree: Moved from here ...
  26414. * util/i386/efi/grub-dumpdevtree: ... to here.
  26415. (hexify): New function. Converts a string to its hex version.
  26416. Generate hex versions of "efi" and "device-properties" by calling
  26417. hexify() on the ASCII strings rather than by hardcoding numbers.
  26418. 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
  26419. * fs/jfs.c: Update copyright year.
  26420. 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
  26421. * util/grub.d/00_header.in: Fix a comment.
  26422. * util/grub.d/10_linux.in: Likewise.
  26423. * util/grub.d/10_windows.in: Likewise.
  26424. * util/grub.d/10_hurd.in: Likewise.
  26425. 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
  26426. * util/grub-mkconfig.in: Allow the user to specify the used font
  26427. with GRUB_FONT.
  26428. 2009-08-08 Pavel Roskin <proski@gnu.org>
  26429. * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
  26430. available, xfs.mod needs it now.
  26431. * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
  26432. the "g" modifier in sed when the intention is to strip something
  26433. once. This fixes comparison of kernels with multiple dashes.
  26434. * util/grub-mkconfig.in: Define datarootdir, datadir may depend
  26435. on it. Add missing space before closing bracket. Fix
  26436. misleading formatting.
  26437. 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
  26438. * docs/grub.texi: Major overhaul. Remove all sections that are
  26439. specific to GRUB Legacy, or mostly composed of Legacy-specific
  26440. information.
  26441. 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
  26442. * docs/version.texi: New file. Provides version information for
  26443. grub.texi.
  26444. 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
  26445. * docs/grub.texi: Update CVS information to SVN.
  26446. Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
  26447. 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
  26448. * util/grub-mkconfig.in: Remove a wrong `fi'.
  26449. 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
  26450. * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
  26451. (grub_jfs_uuid): New function.
  26452. (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
  26453. 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
  26454. * util/grub-mkconfig_lib.in (font_path): Move the functionality
  26455. of it to ...
  26456. * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
  26457. unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
  26458. 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
  26459. * util/grub.d/10_linux.in (test_numeric): Moved from here ...
  26460. * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
  26461. Update all users.
  26462. * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
  26463. not just "vmlinu[zx]".
  26464. Moved from here ...
  26465. * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
  26466. all users.
  26467. * util/grub.d/10_linux.in (find_latest): Moved from here ...
  26468. * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
  26469. all users.
  26470. 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
  26471. * util/grub.d/10_freebsd.in: Use an absolute device path for
  26472. `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
  26473. 2009-08-06 Felix Zielcke <fzielcke@z-51.de>
  26474. * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
  26475. handling of multiple abstraction modules.
  26476. 2009-08-04 Robert Millan <rmh.grub@aybabtu.com>
  26477. Fix a bug resulting in black screen when loading Linux using a
  26478. packed video mode.
  26479. * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
  26480. function.
  26481. * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
  26482. (grub_vbe_bios_getset_dac_palette_width): New function.
  26483. (grub_vbe_bios_get_dac_palette_width)
  26484. (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
  26485. grub_vbe_bios_getset_dac_palette_width()).
  26486. * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
  26487. check for return status.
  26488. (grub_vbe_get_video_mode_info): When getting information for a packed
  26489. mode (<= 8 bpp), obtain DAC palette width using
  26490. grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
  26491. {red,green,blue}_mark_size.
  26492. 2009-08-04 Felix Zielcke <fzielcke@z-51.de>
  26493. * commands/search.c (options): Fix help output to match actual code.
  26494. 2009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
  26495. * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
  26496. of homegrown code.
  26497. 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
  26498. * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
  26499. on XFS or ReiserFS.
  26500. 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
  26501. Support Apple partition map with sector size different from 512 bytes.
  26502. * partmap/apple.c (grub_apple_header): New field 'blocksize'.
  26503. (apple_partition_map_iterate): Respect 'aheader.blocksize'
  26504. and 'apart.partmap_size'.
  26505. 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
  26506. 2009-08-01 Robert Millan <rmh.grub@aybabtu.com>
  26507. Fix cpuid command.
  26508. * commands/i386/cpuid.c (options): New variable.
  26509. (grub_cmd_cpuid): Return real error.
  26510. (GRUB_MOD_INIT(cpuid)): Declare options.
  26511. 2009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
  26512. * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
  26513. valid.
  26514. 2009-07-31 Bean <bean123ch@gmail.com>
  26515. * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
  26516. log2_inode.
  26517. (grub_fshelp_node): Move inode field to the end.
  26518. (grub_xfs_data): Remove inode field.
  26519. (grub_xfs_inode_block): Calculate inode size using sblock.
  26520. (grub_xfs_inode_offset): Likewise.
  26521. (grub_xfs_read_inode): Calculate inode size using sblock.
  26522. (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
  26523. (grub_xfs_iterate_dir): Calculate inode size using sblock.
  26524. (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
  26525. to match inode size.
  26526. (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
  26527. not accessible when data is null.
  26528. (grub_xfs_open): Likewise.
  26529. 2009-07-31 Bean <bean123ch@gmail.com>
  26530. * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
  26531. Don't change pv->disk if it's already set.
  26532. * disk/raid.c (grub_raid_scan_device): Merge this function into ...
  26533. (grub_raid_register): ... here.
  26534. (grub_raid_rescan): Removed.
  26535. * include/grub/raid.h (grub_raid_rescan): Removed.
  26536. * util/grub-fstest.c: Remove include file <grub/raid.h>.
  26537. (fstest): Replace grub_raid_rescan with module fini function followed
  26538. by init function.
  26539. * util/grub-probe.c: Add include file <grub/raid.h>.
  26540. (probe_raid_level): New function.
  26541. (probe): Detect abstraction by walking the disk device, support two
  26542. level of abstraction (LVM on RAID) when detecting partition map.
  26543. 2009-07-31 Pavel Roskin <proski@gnu.org>
  26544. * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
  26545. to grub_zalloc(), it was erroneous.
  26546. Reported by Bean <bean123ch@gmail.com>
  26547. 2009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
  26548. * util/i386/pc/grub-setup.c (setup): Check that no partition is in
  26549. embedding zone, not only the first one.
  26550. 2009-07-29 Joe Auricchio <jauricchio@gmail.com>
  26551. * term/gfxterm.c (clear_char): New function.
  26552. (grub_virtual_screen_setup): Use clear_char.
  26553. (scroll_up): Likewise.
  26554. (grub_virtual_screen_cls): Likewise.
  26555. 2009-07-29 Felix Zielcke <fzielcke@z-51.de>
  26556. * util/deviceiter.c (get_acceleraid_disk_name): New static
  26557. function.
  26558. (grub_util_iterate_devices): Handle Accelraid devices.
  26559. * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
  26560. 2009-07-28 Robert Millan <rmh.grub@aybabtu.com>
  26561. * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
  26562. separator for the suggested gfxpayload string (';' collides with the
  26563. parser and needs escaping).
  26564. 2009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
  26565. * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
  26566. Clear direction flag before jumping to OS.
  26567. (grub_multiboot2_real_boot): Likewise.
  26568. 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
  26569. * util/i386/pc/grub-install: Fix parsing of --disk-module
  26570. option.
  26571. 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
  26572. * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
  26573. when embedding.
  26574. 2009-07-26 Felix Zielcke <fzielcke@z-51.de>
  26575. * util/grub-mkconfig.in (package_version): New variable.
  26576. Use it do display the version.
  26577. 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
  26578. * kern/file.c (grub_file_open): Revert to previous check with
  26579. grub_errno.
  26580. 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
  26581. * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
  26582. from help line. It's out of sync with code.
  26583. 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
  26584. * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
  26585. entries on failed boot.
  26586. 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
  26587. * kern/file.c (grub_file_open): Fix an error check.
  26588. 2009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
  26589. * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
  26590. partition map couldn't be identified.
  26591. 2009-07-23 Pavel Roskin <proski@gnu.org>
  26592. * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
  26593. instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
  26594. case of little endian words becomes just an optimization.
  26595. Respect const modifier.
  26596. (md5_final): Use code that doesn't depend on endianness.
  26597. * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
  26598. to avoid loss of upper bits if align is unsigned and shorter
  26599. than addr.
  26600. 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
  26601. UUID support for UFS
  26602. * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
  26603. (grub_ufs_uuid): New function.
  26604. (grub_ufs_fs): add .uuid
  26605. 2009-07-21 Pavel Roskin <proski@gnu.org>
  26606. * kern/dl.c (grub_dl_check_header): Make static.
  26607. 2009-07-21 Felix Zielcke <fzielcke@z-51.de>
  26608. * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
  26609. add drivemap for Vista. It breaks Windows 7.
  26610. 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
  26611. * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
  26612. 128 bytes
  26613. 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
  26614. Add BFS support
  26615. * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
  26616. (grub_fstest_SOURCES): Likewise.
  26617. (pkglib_MODULES): Add befs.mod.
  26618. (befs_mod_SOURCES): New variable.
  26619. (befs_mod_CFLAGS): Likewise.
  26620. (befs_mod_LDFLAGS): Likewise.
  26621. * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
  26622. * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
  26623. * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
  26624. * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
  26625. (grub_setup_SOURCES): Likewise.
  26626. * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
  26627. * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
  26628. (grub_setup_SOURCES): Likewise.
  26629. * fs/befs.c: New file.
  26630. * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
  26631. (GRUB_AFS_SBLOCK_SECTOR): Likewise.
  26632. (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
  26633. (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
  26634. (B_KEY_INDEX_ALIGN): New declaration.
  26635. (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
  26636. (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
  26637. (grub_afs_btree) [MODE_BFS]: New conditional declaration.
  26638. (grub_afs_sblock) [MODE_BFS]: Remove link_count.
  26639. (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
  26640. (grub_afs_mount) [MODE_BFS]: Likewise.
  26641. (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
  26642. (grub_afs_fs): Use GRUB_AFS_FSNAME
  26643. (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
  26644. (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
  26645. (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
  26646. (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
  26647. 2009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
  26648. * util/getroot.c (find_root_device): Add support for MacOSX.
  26649. * util/hostdisk.c: Likewise.
  26650. 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
  26651. * font/font.c (find_glyph): Check whether a font is present to avoid
  26652. segmentation fault.
  26653. 2009-07-20 Joe Auricchio <jauricchio@gmail.com>
  26654. * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
  26655. 2009-07-20 Pavel Roskin <proski@gnu.org>
  26656. * configure.ac: Trim excessively wordy excuses.
  26657. 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
  26658. Add symlink, mtime and label support to AtheFS.
  26659. * fs/afs.c (grub_afs_sblock): Declare `name' as char.
  26660. (grub_afs_iterate_dir): Handle symlinks.
  26661. (grub_afs_open): Use grub_afs_read_symlink.
  26662. (grub_afs_dir): Likewise.
  26663. Pass mtime.
  26664. (grub_afs_label): New function.
  26665. (grub_afs_fs): Add grub_afs_label.
  26666. (grub_afs_read_symlink): New function.
  26667. 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
  26668. Fix AtheFS support.
  26669. * fs/afs.c: Fix comments style.
  26670. (grub_afs_blockrun): Declare as packed.
  26671. (grub_afs_datastream): Likewise.
  26672. (grub_afs_bnode): Likewise.
  26673. (grub_afs_btree): Likewise.
  26674. (grub_afs_sblock): Likewise.
  26675. Declare `name' as char.
  26676. (grub_afs_inode): Declare as packed.
  26677. Change void *vnode to grub_uint32_t unused.
  26678. (grub_afs_iterate_dir): Check that key_size is positive.
  26679. (grub_afs_mount): Don't read superblock twice.
  26680. (grub_afs_dir): Don't free node in case of error,
  26681. grub_fshelp_find_file already handles this.
  26682. (grub_afs_open): Likewise.
  26683. 2009-07-19 Pavel Roskin <proski@gnu.org>
  26684. * Makefile.in: Remove LIBLZO and enable_lzo.
  26685. * conf/i386-pc.rmk: Remove lzo support.
  26686. * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
  26687. * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
  26688. support.
  26689. * kern/i386/pc/lzo1x.S: Remove.
  26690. * kern/i386/pc/startup.S: Remove lzo support.
  26691. * util/i386/pc/grub-mkimage.c: Likewise.
  26692. 2009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
  26693. * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
  26694. * fs/xfs.c (grub_xfs_dir): Likewise.
  26695. * fs/afs.c (grub_afs_dir): Likewise.
  26696. * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
  26697. (grub_iso9660_open): Likewise.
  26698. * fs/jfs.c (grub_jfs_open): Likewise.
  26699. * fs/ext2.c (grub_ext2_dir): Likewise.
  26700. * include/grub/macho.h (grub_macho_fat_arch): Likewise.
  26701. * script/sh/lexer.c (grub_script_yylex): Likewise.
  26702. 2009-07-16 Pavel Roskin <proski@gnu.org>
  26703. * configure.ac: Never add "-c" to CFLAGS.
  26704. * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
  26705. * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
  26706. grub_cv_cc_efiemu should be used.
  26707. * configure.ac: Typo fixes.
  26708. * kern/mm.c (grub_zalloc): New function.
  26709. (grub_debug_zalloc): Likewise.
  26710. * include/grub/mm.h: Declare grub_zalloc() and
  26711. grub_debug_zalloc().
  26712. * util/misc.c (grub_zalloc): New function.
  26713. * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
  26714. instead of grub_malloc(), remove unneeded initializations.
  26715. * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
  26716. * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
  26717. * commands/parttool.c (grub_cmd_parttool): Likewise.
  26718. * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
  26719. * disk/raid5_recover.c (grub_raid5_recover): Likewise.
  26720. * disk/raid6_recover.c (grub_raid6_recover): Likewise.
  26721. * disk/usbms.c (grub_usbms_finddevs): Likewise.
  26722. * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
  26723. * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
  26724. (grub_cmd_efiemu_pnvram): Likewise.
  26725. * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
  26726. * fs/iso9660.c (grub_iso9660_mount): Likewise.
  26727. (grub_iso9660_iterate_dir): Likewise.
  26728. * fs/jfs.c (grub_jfs_opendir): Likewise.
  26729. * fs/ntfs.c (list_file): Likewise.
  26730. (grub_ntfs_mount): Likewise.
  26731. * kern/disk.c (grub_disk_open): Likewise.
  26732. * kern/dl.c (grub_dl_load_core): Likewise.
  26733. * kern/elf.c (grub_elf_file): Likewise.
  26734. * kern/env.c (grub_env_context_open): Likewise.
  26735. (grub_env_set): Likewise.
  26736. (grub_env_set_data_slot): Likewise.
  26737. * kern/file.c (grub_file_open): Likewise.
  26738. * kern/fs.c (grub_fs_blocklist_open): Likewise.
  26739. * loader/i386/multiboot.c (grub_module): Likewise.
  26740. * loader/xnu.c (grub_xnu_create_key): Likewise.
  26741. (grub_xnu_create_value): Likewise.
  26742. * normal/main.c (grub_normal_add_menu_entry): Likewise.
  26743. (read_config_file): Likewise.
  26744. * normal/menu_entry.c (make_screen): Likewise.
  26745. * partmap/sun.c (sun_partition_map_iterate): Likewise.
  26746. * script/sh/lexer.c (grub_script_lexer_init): Likewise.
  26747. * script/sh/script.c (grub_script_parse): Likewise.
  26748. * video/bitmap.c (grub_video_bitmap_create): Likewise.
  26749. * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
  26750. * video/readers/png.c (grub_png_output_byte): Likewise.
  26751. (grub_video_reader_png): Likewise.
  26752. 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
  26753. Enable all targets that can be built by default
  26754. * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
  26755. grub-mkfont and grub-fstest if they can be built
  26756. 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
  26757. Fix hang and segmentation fault in grub-emu-usb
  26758. * disk/scsi.c (grub_scsi_open): return err and not grub_errno
  26759. * util/usb.c (grub_libusb_devices): likewise
  26760. (grub_libusb_init): rename to ...
  26761. (GRUB_MOD_INIT (libusb)):...this
  26762. (grub_libusb_fini): rename to ..
  26763. (GRUB_MOD_FINI (libusb)):...this
  26764. * disk/usbms.c (grub_usbms_transfer): fix retry logic
  26765. * include/grub/disk.h (grub_raid_init): removed, it's useless
  26766. (grub_raid_fini): likewise
  26767. (grub_lvm_init): likewise
  26768. (grub_lvm_fini): likewise
  26769. * util/grub-emu.c (main): don't call grub_libusb_init, it's done
  26770. by grub_init_all
  26771. 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
  26772. Fix libusb
  26773. * Makefile.in (LIBUSB): new macro
  26774. * genmk.rb (Utility/print_tail): new method
  26775. (Utility/rule): use intermediary variable #{prefix}_OBJECTS
  26776. (top level): call util.print_tail at the end.
  26777. 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
  26778. Make FreeBSD accept zpool.cache
  26779. * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
  26780. type is /boot/zfs/zpool.cache
  26781. 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
  26782. Fix 64-bit efiemu
  26783. * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
  26784. correct wrong typedef
  26785. * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
  26786. 2009-07-15 Pavel Roskin <proski@gnu.org>
  26787. * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
  26788. * kern/disk.c (struct grub_disk_cache): Likewise.
  26789. * commands/probe.c (options): Typo fix.
  26790. * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
  26791. Increase to 0x5a to accommodate FAT32. Adjust other offsets
  26792. accordingly.
  26793. Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
  26794. * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
  26795. the end of "Error" to make the message more readable.
  26796. * boot/i386/pc/boot.S (kernel_segment): Remove.
  26797. (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
  26798. for destination.
  26799. * boot/i386/pc/boot.S (boot_version): Remove.
  26800. * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
  26801. Remove.
  26802. * include/grub/i386/pc/boot.h: Sort all offsets.
  26803. (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
  26804. (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
  26805. * boot/i386/pc/boot.S: Assert location of every offset listed in
  26806. include/grub/i386/pc/boot.h.
  26807. 2009-07-13 Pavel Roskin <proski@gnu.org>
  26808. * include/grub/i386/coreboot/machine.h: Rename
  26809. GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
  26810. * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
  26811. multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
  26812. * kern/dl.c: Force native word size to suppress warnings when
  26813. compiling grub-emu.
  26814. * kern/device.c (grub_device_iterate): Change struct part_ent to
  26815. hold the name, not a pointer to it. Use one grub_malloc() per
  26816. partition, not two. Free partition_name if grub_malloc() fails.
  26817. Set ents to NULL only before grub_partition_iterate() is called.
  26818. 2009-07-11 Bean <bean123ch@gmail.com>
  26819. * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
  26820. childname.
  26821. 2009-07-10 Bean <bean123ch@gmail.com>
  26822. 2009-07-10 Robert Millan <rmh.grub@aybabtu.com>
  26823. * kern/ieee1275/openfw.c (grub_children_iterate)
  26824. (grub_devalias_iterate): Fix size evaluation for property or path
  26825. strings, which was broken since r2132.
  26826. 2009-07-07 Pavel Roskin <proski@gnu.org>
  26827. * commands/search.c (search_file): Merge into ...
  26828. (search_fs): ... this. Accept search type as argument.
  26829. (grub_cmd_search): Pass search type to search_fs().
  26830. * include/grub/util/console.h: New file.
  26831. * util/console.c: Use it instead of grub/machine/console.h.
  26832. * util/grub-emu.c: Likewise.
  26833. * lib/arg.c (find_long_option): Remove.
  26834. (find_long): Add `len' argument, make `s' const char *.
  26835. (grub_arg_parse): Parse long options in place, not in a
  26836. temporary buffer.
  26837. 2009-07-06 Pavel Roskin <proski@gnu.org>
  26838. * commands/search.c (search_fs): Fix potential NULL pointer
  26839. dereference.
  26840. * commands/search.c (search_fs): Replace QUID macro with quid_fn
  26841. function pointer.
  26842. 2009-07-06 Daniel Mierswa <impulze@impulze.org>
  26843. * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
  26844. comparison.
  26845. 2009-07-05 Pavel Roskin <proski@gnu.org>
  26846. * include/grub/i386/linux.h (struct linux_kernel_params):
  26847. Restore padding3, it's still needed.
  26848. * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
  26849. FreeBSD.
  26850. * util/osdetect.lua: Likewise.
  26851. 2009-07-05 Bean <bean123ch@gmail.com>
  26852. * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
  26853. * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
  26854. (grub_lua_getenv): Likewise.
  26855. (grub_lua_setenv): Likewise.
  26856. (save_errno): New function.
  26857. (push_result): Likewise.
  26858. (grub_lua_enum_device): Likewise.
  26859. (grub_lua_enum_file): Likewise.
  26860. (grub_lua_file_open): Likewise.
  26861. (grub_lua_file_close): Likewise.
  26862. (grub_lua_file_seek): Likewise.
  26863. (grub_lua_file_read): Likewise.
  26864. (grub_lua_file_getline): Likewise.
  26865. (grub_lua_file_getsize): Likewise.
  26866. (grub_lua_file_getpos): Likewise.
  26867. (grub_lua_file_eof): Likewise.
  26868. (grub_lua_file_exist): Likewise.
  26869. (grub_lua_add_menu): Likewise.
  26870. * script/lua/grub_lua.h (isupper): New inline function.
  26871. (islower): Likewise.
  26872. (ispunct): Likewise.
  26873. (isxdigit): Likewise.
  26874. (strcspn): Change to normal function.
  26875. (strpbkr): New function declaration.
  26876. (memchr): Likewise.
  26877. * script/lua/grub_main.c (scan_str): New function.
  26878. (strcspn): Likewise.
  26879. (strpbrk): Likewise.
  26880. (memchr): Likewise.
  26881. * script/lua/linit.c (lualibs): Enable the string library.
  26882. * util/osdetect.lua: New file.
  26883. 2009-07-04 Robert Millan <rmh.grub@aybabtu.com>
  26884. * include/grub/i386/linux.h (struct linux_kernel_params): Add
  26885. `capabilities' member.
  26886. 2009-07-02 Pavel Roskin <proski@gnu.org>
  26887. * genparttoollist.sh: Add missing newline at the end.
  26888. 2009-07-01 Pavel Roskin <proski@gnu.org>
  26889. * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
  26890. * util/hostdisk.c (open_device): Remove `const' from
  26891. `sysctl_size', as sysctlbyname() can change it (in this case it
  26892. doesn't actually happen).
  26893. * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
  26894. using signed long int constants.
  26895. * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
  26896. constant to avoid a warning on FreeBSD.
  26897. * util/hostdisk.c (device_is_wholedisk): Compile only on systems
  26898. where it's needed.
  26899. * Makefile.in: Install include/grub/machine symlink.
  26900. * Makefile.in: When installing symlinks, use "cp -fR", which
  26901. works on FreeBSD and MacOSX.
  26902. From Yves Blusseau <cl7m42e02@sneakemail.com>
  26903. * kern/dl.c (grub_dl_resolve_symbol): Make static.
  26904. * include/grub/dl.h: Remove grub_dl_resolve_symbol().
  26905. * util/misc.c: Move grub_reboot() and grub_halt() ...
  26906. * util/grub-emu.c: ... here. Make main_env static.
  26907. * include/grub/util/misc.h: Remove main_env.
  26908. * kern/mm.c: Use correct format to print size_t.
  26909. * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
  26910. * kern/i386/dl.c: Use ELF symbols without "32" or "64".
  26911. * kern/powerpc/dl.c: Likewise.
  26912. * kern/sparc64/dl.c: Likewise.
  26913. * kern/x86_64/dl.c: Likewise.
  26914. 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
  26915. Fix grub-emu build on sparc64-ieee1275.
  26916. * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
  26917. * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
  26918. 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
  26919. * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
  26920. (grub_reboot, grub_halt): New functions.
  26921. * util/i386/pc/misc.c: Delete. Update all users.
  26922. * util/sparc64/ieee1275/misc.c: Likewise.
  26923. * util/powerpc/ieee1275/misc.c: Likewise.
  26924. 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
  26925. * conf/i386.rmk (setjmp_mod_SOURCES)
  26926. (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
  26927. * conf/common.rmk (setjmp_mod_SOURCES)
  26928. (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
  26929. to use $(target_cpu).
  26930. * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
  26931. (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
  26932. * conf/powerpc-ieee1275.rmk: Likewise.
  26933. * conf/sparc64-ieee1275.rmk: Likewise.
  26934. * conf/i386-pc.rmk (kernel_img_SOURCES): Use
  26935. $(target_cpu) for kern/$(target_cpu)/dl.c.
  26936. * conf/i386-efi.rmk: Likewise.
  26937. * conf/i386-ieee1275.rmk: Likewise.
  26938. * conf/x86_64-efi.rmk: Likewise.
  26939. * conf/i386-coreboot.rmk: Likewise.
  26940. * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
  26941. $(target_cpu) for kern/$(target_cpu)/dl.c and for
  26942. kern/$(target_cpu)/cache.S.
  26943. * conf/sparc64-ieee1275.rmk: Likewise.
  26944. 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
  26945. * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
  26946. type to `grub_uint8_t', and adjust `padding9' accordingly.
  26947. 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
  26948. * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
  26949. * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
  26950. assembly in final jump, using register constraints.
  26951. (grub_linux_boot): For text mode, initialize `have_vga' using
  26952. GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
  26953. Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
  26954. right before the final jump.
  26955. Set `video_mode' to 0x3.
  26956. Document initialization of `video_page', `video_mode' and
  26957. `video_ega_bx'.
  26958. 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
  26959. * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
  26960. * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
  26961. and set GRUB_LINUX_FLAG_QUIET appropriately.
  26962. 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
  26963. Fix build on Debian / sparc.
  26964. * configure.ac: Recognize `sparc' target_cpu (as sparc64).
  26965. 2009-06-28 Pavel Roskin <proski@gnu.org>
  26966. * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
  26967. fix a warning.
  26968. * util/grub.d/10_linux.in: Match SUSE style initrd names.
  26969. 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
  26970. * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
  26971. `err'.
  26972. 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
  26973. Revert r2338.
  26974. * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
  26975. file can't be opened. grub_file_open() is already supposed to set
  26976. grub_errno / grub_errmsg appropriately.
  26977. * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
  26978. 2009-06-27 Pavel Roskin <proski@gnu.org>
  26979. 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
  26980. * include/grub/dl.h: Include grub/elf.h.
  26981. (struct grub_dl): Add symtab field.
  26982. * kern/dl.c [GRUB_MACHINE_QEMU]: Define
  26983. GRUB_MODULES_MACHINE_READONLY.
  26984. (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
  26985. of the header for read-only modules.
  26986. (grub_dl_unload): Free mod->symtab for read-only modules.
  26987. * kern/i386/dl.c: Use mod->symtab.
  26988. * kern/powerpc/dl.c: Likewise.
  26989. * kern/sparc64/dl.c: Likewise.
  26990. * kern/x86_64/dl.c: Likewise.
  26991. * conf/i386-qemu.rmk: New file.
  26992. * kern/i386/qemu/startup.S: Likewise.
  26993. * kern/i386/qemu/mmap.c: Likewise.
  26994. * boot/i386/qemu/boot.S: Likewise.
  26995. * include/grub/i386/qemu/time.h: Likewise.
  26996. * include/grub/i386/qemu/serial.h: Likewise.
  26997. * include/grub/i386/qemu/kernel.h: Likewise.
  26998. * include/grub/i386/qemu/console.h: Likewise.
  26999. * include/grub/i386/qemu/boot.h: Likewise.
  27000. * include/grub/i386/qemu/init.h: Likewise.
  27001. * include/grub/i386/qemu/machine.h: Likewise.
  27002. * include/grub/i386/qemu/loader.h: Likewise.
  27003. * include/grub/i386/qemu/memory.h: Likewise.
  27004. * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
  27005. (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
  27006. [qemu] (pkglib_IMAGES): Add `boot.img'.
  27007. [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
  27008. [qemu] (boot_img_FORMAT): New variables.
  27009. [qemu] (bin_UTILITIES): Add `grub-mkimage'.
  27010. [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
  27011. [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
  27012. [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
  27013. [qemu] (kernel_img_FORMAT): New variables.
  27014. * configure.ac: Recognise `i386-qemu'.
  27015. * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
  27016. (for no compression).
  27017. [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
  27018. a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
  27019. `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
  27020. `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
  27021. ifdefs).
  27022. 2009-06-27 Pavel Roskin <proski@gnu.org>
  27023. * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
  27024. read.
  27025. * efiemu/prepare32.c: Likewise.
  27026. * efiemu/prepare64.c: Likewise.
  27027. 2009-06-26 Pavel Roskin <proski@gnu.org>
  27028. * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
  27029. * include/grub/elf.h: Define symbols without "32" or "64" based
  27030. on GRUB_TARGET_WORDSIZE.
  27031. * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
  27032. * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
  27033. ELF definitions.
  27034. * efiemu/loadcore64.c: Likewise.
  27035. * loader/i386/bsd32.c: Likewise.
  27036. * loader/i386/bsd64.c: Likewise.
  27037. * kern/dl.c: Remove own ELF definitions.
  27038. * util/i386/efi/grub-mkimage.c: Likewise.
  27039. 2009-06-23 Robert Millan <rmh.grub@aybabtu.com>
  27040. * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
  27041. segment 0x0 unconditionally, because the reference generated by
  27042. GAS is an absolute address.
  27043. 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
  27044. * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
  27045. [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
  27046. 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
  27047. * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
  27048. indexes. Check for -f explicitly.
  27049. (search_file): Improve error message.
  27050. (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
  27051. 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
  27052. * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
  27053. (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
  27054. 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
  27055. * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
  27056. * conf/i386-ieee1275.rmk: Likewise.
  27057. * conf/i386-coreboot.rmk: Likewise.
  27058. * kern/i386/pc/startup.S (grub_stop): Remove function.
  27059. * kern/i386/ieee1275/startup.S: Likewise.
  27060. * kern/i386/coreboot/startup.S: Likewise.
  27061. * kern/i386/misc.S (grub_stop): New function.
  27062. 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
  27063. * kern/i386/pc/startup.S (real_to_prot): Move from here ...
  27064. * kern/i386/realmode.S (real_to_prot): ... to here.
  27065. 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
  27066. * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
  27067. with `kernel.img'.
  27068. (kernel_elf_SOURCES): Rename to ...
  27069. (kernel_img_SOURCES): ... this.
  27070. (kernel_elf_HEADERS): Rename to ...
  27071. (kernel_img_HEADERS): ... this. Update all users.
  27072. (kernel_elf_ASFLAGS): Rename to ...
  27073. (kernel_img_ASFLAGS): ... this.
  27074. (kernel_elf_CFLAGS): Rename to ...
  27075. (kernel_img_CFLAGS): ... this.
  27076. (kernel_elf_LDFLAGS): Rename to ...
  27077. (kernel_img_LDFLAGS): ... this.
  27078. * conf/i386-coreboot.rmk: Likewise.
  27079. * conf/powerpc-ieee1275.rmk: Likewise.
  27080. * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
  27081. with "kernel.img".
  27082. 2009-06-21 Pavel Roskin <proski@gnu.org>
  27083. * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
  27084. to match nested functions.
  27085. * loader/sparc64/ieee1275/linux.c: Likewise.
  27086. * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
  27087. 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
  27088. * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
  27089. all i386 platforms.
  27090. 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
  27091. Fix asm file handling on ELF, and remove workarounds.
  27092. * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
  27093. and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
  27094. * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
  27095. * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
  27096. 2009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
  27097. Load BSD ELF modules
  27098. * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
  27099. and loader/i386/bsd64.c
  27100. * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
  27101. (FREEBSD_MODTYPE_ELF_MODULE): New definition
  27102. (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
  27103. (grub_freebsd_load_elfmodule32): New declaration
  27104. (grub_freebsd_load_elfmoduleobj64): Likewise
  27105. (grub_freebsd_load_elf_meta32): Likewise
  27106. (grub_freebsd_load_elf_meta64): Likewise
  27107. (grub_freebsd_add_meta): Likewise
  27108. (grub_freebsd_add_meta_module): Likewise
  27109. * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
  27110. (grub_freebsd_add_meta_module): Likewise and move module-specific
  27111. parts to grub_cmd_freebsd and grub_cmd_freebsd_module
  27112. (grub_cmd_freebsd): Add elf-kernel specific parts
  27113. based on grub_freebsd_add_meta_module
  27114. (grub_cmd_freebsd_module): Add type parsing moved from
  27115. grub_freebsd_add_meta_module
  27116. (grub_cmd_freebsd_module_elf): New function
  27117. (cmd_freebsd_module_elf): New variable
  27118. (GRUB_MOD_INIT): Register freebsd_module_elf
  27119. * loader/i386/bsd32.c: New file
  27120. * loader/i386/bsd64.c: Likewise
  27121. * loader/i386/bsdXX.c: Likewise
  27122. * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
  27123. (grub_elf64_load): Likewise
  27124. * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
  27125. All users updated
  27126. (grub_elf64_load_hook_t): Likewise
  27127. 2009-06-21 Colin Watson <cjwatson@ubuntu.com>
  27128. * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
  27129. variable.
  27130. * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
  27131. don't write a menu entry for recovery mode.
  27132. 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
  27133. * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
  27134. after it's no longer needed.
  27135. 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
  27136. * include/grub/i386/loader.h (grub_linux_prot_size)
  27137. (grub_linux_tmp_addr, grub_linux_real_addr)
  27138. (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
  27139. GRUB_MACHINE_PCBIOS.
  27140. * util/i386/pc/grub-mkimage.c (compress_kernel): Move
  27141. common grub_util_info() call to ...
  27142. (generate_image): ... here.
  27143. Fix use of uninitialized memory, comparison of signed with
  27144. unsigned integers and memory leak.
  27145. Remove bogus module address message.
  27146. 2009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
  27147. * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
  27148. grub_raid_register
  27149. * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
  27150. 2009-06-19 Pavel Roskin <proski@gnu.org>
  27151. * configure.ac: Remove stray AC_MSG_CHECKING.
  27152. 2009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
  27153. * disk/scsi.c (grub_scsi_open): use continue instead of big if
  27154. 2009-06-18 Pavel Roskin <proski@gnu.org>
  27155. * conf/common.rmk: Add fs_file.mod.
  27156. * disk/fs_file.c: New file.
  27157. * include/grub/disk.h (enum grub_disk_dev_id): Add
  27158. GRUB_DISK_DEVICE_FILE_ID.
  27159. 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
  27160. Fix build with Apple's toolchain. Part 2
  27161. * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
  27162. a fake start
  27163. 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
  27164. Fix build with Apple's toolchain. Part 1
  27165. * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
  27166. for long calls
  27167. * configure.ac: remove a leftover AC_MSG_RESULT
  27168. (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
  27169. Apple's toolchain
  27170. 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
  27171. Fix warnings
  27172. * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
  27173. (decomp_block): initialize ch
  27174. use grub_memcpy instead of memcpy
  27175. 2009-06-17 Pavel Roskin <proski@gnu.org>
  27176. * include/grub/i386/coreboot/console.h: Don't use the i386-pc
  27177. version, use declarations needed to use vga_text as the startup
  27178. console.
  27179. * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
  27180. term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
  27181. the kernel.
  27182. * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
  27183. and grub_at_keyboard_fini(), it's done on module load and
  27184. unload.
  27185. 2009-06-17 Felix Zielcke <fzielcke@z-51.de>
  27186. * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
  27187. file can't be found.
  27188. * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
  27189. 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
  27190. Fix newline handling
  27191. * include/grub/script_sh.h (grub_lexer_param): new field was_newline
  27192. * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
  27193. (grub_script_yylex): don't segfault on unterminated script
  27194. newline terminates command and variable
  27195. 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
  27196. avoid double grub_adjust_range call. Bug reported by David Simner
  27197. * kern/disk.c (grub_disk_write): change to raw disk access before
  27198. calling disk_read
  27199. 2009-06-17 Colin Watson <cjwatson@ubuntu.com>
  27200. * util/elf/grub-mkimage.c (usage): Prefix each option line with two
  27201. spaces, for the benefit of help2man.
  27202. * util/i386/efi/grub-mkimage.c (usage): Likewise.
  27203. 2009-06-16 Pavel Roskin <proski@gnu.org>
  27204. * kern/i386/halt.c: Include grub/machine/init.h.
  27205. * kern/i386/reboot.c: Include grub/cpu/reboot.h.
  27206. 2009-06-16 Felix Zielcke <fzielcke@z-51.de>
  27207. * util/grub.d/30_os-prober.in: Use ${root} in the generated
  27208. drivemap menuentry.
  27209. 2009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
  27210. * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
  27211. `echo' command.
  27212. 2009-06-16 Pavel Roskin <proski@gnu.org>
  27213. * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
  27214. boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
  27215. save %dx, we only need %dl and we never change it.
  27216. * boot/i386/pc/cdboot.S: Don't set the root drive.
  27217. * boot/i386/pc/pxeboot.S: Likewise.
  27218. * include/grub/i386/pc/boot.h: Remove
  27219. GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
  27220. GRUB_BOOT_MACHINE_DRIVE_CHECK.
  27221. * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
  27222. * kern/i386/pc/init.c (make_install_device): Remove references
  27223. to grub_root_drive.
  27224. * kern/i386/pc/startup.S: Likewise.
  27225. * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
  27226. 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
  27227. xnu_uuid command
  27228. * commands/xnu_uuid.c: new file
  27229. * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
  27230. (xnu_uuid_mod_SOURCES): new variable
  27231. (xnu_uuid_mod_CFLAGS): likewise
  27232. (xnu_uuid_mod_LDFLAGS): likewise
  27233. * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
  27234. * conf/i386-ieee1275.rmk: likewise
  27235. * conf/i386-pc.rmk: likewise
  27236. * conf/powerpc-ieee1275.rmk: likewise
  27237. * conf/sparc64-ieee1275.rmk: likewise
  27238. * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
  27239. 2009-06-16 Pavel Roskin <proski@gnu.org>
  27240. * configure.ac: Avoid '==' in test command, it's not portable.
  27241. 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
  27242. Probe command
  27243. * commands/probe.c: new file
  27244. * conf/common.rmk (pkglib_MODULES): add probe.mod
  27245. (probe_mod_SOURCES): new variable
  27246. (probe_mod_CFLAGS): likewise
  27247. (probe_mod_LDFLAGS): likewise
  27248. * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
  27249. * conf/i386-ieee1275.rmk: likewise
  27250. * conf/i386-pc.rmk: likewise
  27251. * conf/powerpc-ieee1275.rmk: likewise
  27252. * conf/sparc64-ieee1275.rmk: likewise
  27253. 2009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
  27254. Fix handling of string like \"hello\" and "a
  27255. b"
  27256. * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
  27257. (grub_script_yylex): fix parsing of quoting, escaping and newline
  27258. 2009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
  27259. * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
  27260. handling
  27261. 2009-06-13 Jun Inoue <jun.lambda@gmail.com>
  27262. * util/grub-mkconfig.in: Fix parsing of --output option.
  27263. 2009-06-12 Pavel Roskin <proski@gnu.org>
  27264. * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
  27265. genmk.rb don't need to be generated or installed.
  27266. 2009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
  27267. * commands/i386/pc/drivemap_int13h.S: add more comments
  27268. 2009-06-11 Pavel Roskin <proski@gnu.org>
  27269. * Makefile.in (uninstall): Uninstall manuals.
  27270. * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
  27271. PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
  27272. and update-grub_lib in two places.
  27273. * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
  27274. * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
  27275. a compiler warning.
  27276. * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
  27277. `entry_lo' to fix variable shadowing.
  27278. 2009-06-11 Christian Franke <franke@computer.org>
  27279. * kern/misc.c (__enable_execute_stack): Add missing return type
  27280. to prevent gcc warning.
  27281. 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
  27282. * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
  27283. 2009-06-11 Pavel Roskin <proski@gnu.org>
  27284. * Makefile.in: Don't rely on any scripts being executable.
  27285. Always use $(SHELL) to run shell scripts.
  27286. * configure.ac: Always define ___main if using -nostdlib. This
  27287. fixes tests on Cygwin.
  27288. 2009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
  27289. UDF fix
  27290. * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
  27291. is in bytes and not in blocks
  27292. 2009-06-11 Pavel Roskin <proski@gnu.org>
  27293. * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
  27294. warning.
  27295. 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
  27296. * util/grub.d/30_os-prober.in: Fix a comment. Source
  27297. ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
  27298. to set the root device. Place drivemap command in the generated
  27299. chain entry.
  27300. 2009-06-11 Pavel Roskin <proski@gnu.org>
  27301. * configure.ac: Remove host_m32. Issues with 64-bit utilities
  27302. have long been resolved.
  27303. 2009-06-11 Colin Watson <cjwatson@ubuntu.com>
  27304. * util/grub.d/10_linux.in: Capitalise "Linux".
  27305. * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
  27306. 2009-06-11 Pavel Roskin <proski@gnu.org>
  27307. * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
  27308. fix a gcc warning and ensure that the function won't ever exit.
  27309. * kern/i386/ieee1275/init.c: Add missing prototype for
  27310. grub_stop_floppy().
  27311. * loader/ieee1275/multiboot2.c [__i386__]: Include
  27312. grub/cpu/multiboot.h.
  27313. * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
  27314. casts to short - they are not portable and cause warnings. Fix
  27315. use of uninitialized values in input_buf. Use ARRAY_SIZE.
  27316. 2009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
  27317. Drivemap fixes
  27318. * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
  27319. new function
  27320. (grub_get_root_biosnumber_saved): new variable
  27321. (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
  27322. (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
  27323. * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
  27324. %dx after the call if necessary
  27325. * conf/common.rmk (pkglib_MODULES): remove boot.mod
  27326. (boot_mod_SOURCES): remove
  27327. (boot_mod_CFLAGS): remove
  27328. (boot_mod_LDFLAGS): remove
  27329. * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
  27330. (boot_mod_SOURCES): new variable
  27331. (boot_mod_CFLAGS): likewise
  27332. (boot_mod_LDFLAGS): likewise
  27333. * conf/i386-efi.rmk: likewise
  27334. * conf/i386-ieee1275.rmk: likewise
  27335. * conf/i386-pc.rmk: likewise
  27336. * conf/powerpc-ieee1275.rmk: likewise
  27337. * conf/sparc64-ieee1275.rmk: likewise
  27338. * conf/x86_64-efi.rmk: likewise
  27339. * include/grub/i386/pc/biosnum.h: new file
  27340. * lib/i386/pc/biosnum.c: likewise
  27341. * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
  27342. * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
  27343. * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
  27344. 2009-06-10 Pavel Roskin <proski@gnu.org>
  27345. * io/gzio.c (test_header): Don't reuse one buffer for all data.
  27346. Use separate variables. Read only the file size at the end, but
  27347. not the checksum that we don't use.
  27348. * kern/file.c (grub_file_read): Use void pointer for the buffer.
  27349. Adjust all callers.
  27350. * kern/ieee1275/openfw.c: Remove libc includes.
  27351. * kern/ieee1275/cmain.c: Likewise.
  27352. * include/grub/ieee1275/ieee1275.h: Likewise.
  27353. * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
  27354. compiler warnings.
  27355. 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
  27356. * Makefile.in: Remove all trailing whitespace.
  27357. * conf/i386-pc.rmk: Likewise.
  27358. * conf/powerpc-ieee1275.rmk: Likewise.
  27359. * conf/sparc64-ieee1275.rmk: Likewise.
  27360. * docs/grub.texi: Likewise.
  27361. * docs/texinfo.tex: Likewise.
  27362. * disk/fs_uuid.c: Likewise.
  27363. * disk/lvm.c: Likewise.
  27364. * disk/scsi.c: Likewise.
  27365. * disk/ata.c: Likewise.
  27366. * disk/ieee1275/ofdisk.c: Likewise.
  27367. * disk/i386/pc/biosdisk.c: Likewise.
  27368. * disk/host.c: Likewise.
  27369. * disk/raid.c: Likewise.
  27370. * disk/efi/efidisk.c: Likewise.
  27371. * disk/usbms.c: Likewise.
  27372. * disk/memdisk.c: Likewise.
  27373. * disk/loopback.c: Likewise.
  27374. * kern/powerpc/dl.c: Likewise.
  27375. * kern/device.c: Likewise.
  27376. * kern/dl.c: Likewise.
  27377. * kern/sparc64/dl.c: Likewise.
  27378. * kern/ieee1275/ieee1275.c: Likewise.
  27379. * kern/term.c: Likewise.
  27380. * kern/fs.c: Likewise.
  27381. * kern/i386/dl.c: Likewise.
  27382. * kern/i386/pc/startup.S: Likewise.
  27383. * kern/i386/pc/init.c: Likewise.
  27384. * kern/i386/pc/mmap.c: Likewise.
  27385. * kern/i386/pc/lzo1x.S: Likewise.
  27386. * kern/i386/ieee1275/init.c: Likewise.
  27387. * kern/i386/realmode.S: Likewise.
  27388. * kern/i386/tsc.c: Likewise.
  27389. * kern/partition.c: Likewise.
  27390. * kern/corecmd.c: Likewise.
  27391. * kern/file.c: Likewise.
  27392. * kern/efi/efi.c: Likewise.
  27393. * kern/efi/init.c: Likewise.
  27394. * kern/efi/mm.c: Likewise.
  27395. * kern/main.c: Likewise.
  27396. * kern/err.c: Likewise.
  27397. * kern/env.c: Likewise.
  27398. * kern/disk.c: Likewise.
  27399. * kern/generic/millisleep.c: Likewise.
  27400. * kern/generic/rtc_get_time_ms.c: Likewise.
  27401. * kern/misc.c: Likewise.
  27402. * kern/parser.c: Likewise.
  27403. * genmk.rb: Likewise.
  27404. * configure.ac: Likewise.
  27405. * boot/i386/pc/diskboot.S: Likewise.
  27406. * boot/i386/pc/pxeboot.S: Likewise.
  27407. * boot/i386/pc/boot.S: Likewise.
  27408. * boot/i386/pc/lnxboot.S: Likewise.
  27409. * boot/i386/pc/cdboot.S: Likewise.
  27410. * parttool/pcpart.c: Likewise.
  27411. * video/readers/tga.c: Likewise.
  27412. * video/video.c: Likewise.
  27413. * video/bitmap.c: Likewise.
  27414. * lib/envblk.c: Likewise.
  27415. * lib/i386/setjmp.S: Likewise.
  27416. * fs/xfs.c: Likewise.
  27417. * fs/afs.c: Likewise.
  27418. * fs/fat.c: Likewise.
  27419. * fs/ntfs.c: Likewise.
  27420. * fs/udf.c: Likewise.
  27421. * fs/affs.c: Likewise.
  27422. * fs/iso9660.c: Likewise.
  27423. * fs/hfs.c: Likewise.
  27424. * fs/fshelp.c: Likewise.
  27425. * fs/ext2.c: Likewise.
  27426. * fs/jfs.c: Likewise.
  27427. * fs/reiserfs.c: Likewise.
  27428. * fs/hfsplus.c: Likewise.
  27429. * fs/minix.c: Likewise.
  27430. * fs/cpio.c: Likewise.
  27431. * fs/sfs.c: Likewise.
  27432. * fs/ufs.c: Likewise.
  27433. * efiemu/prepare.c: Likewise.
  27434. * efiemu/loadcore_common.c: Likewise.
  27435. * efiemu/runtime/efiemu.sh: Likewise.
  27436. * efiemu/runtime/efiemu.S: Likewise.
  27437. * efiemu/runtime/efiemu.c: Likewise.
  27438. * efiemu/pnvram.c: Likewise.
  27439. * efiemu/main.c: Likewise.
  27440. * efiemu/i386/pc/cfgtables.c: Likewise.
  27441. * efiemu/i386/loadcore64.c: Likewise.
  27442. * efiemu/i386/loadcore32.c: Likewise.
  27443. * efiemu/loadcore.c: Likewise.
  27444. * efiemu/symbols.c: Likewise.
  27445. * efiemu/mm.c: Likewise.
  27446. * include/grub/autoefi.h: Likewise.
  27447. * include/grub/datetime.h: Likewise.
  27448. * include/grub/term.h: Likewise.
  27449. * include/grub/hfs.h: Likewise.
  27450. * include/grub/lvm.h: Likewise.
  27451. * include/grub/i386/tsc.h: Likewise.
  27452. * include/grub/i386/linux.h: Likewise.
  27453. * include/grub/i386/xnu.h: Likewise.
  27454. * include/grub/i386/efiemu.h: Likewise.
  27455. * include/grub/i386/pc/biosdisk.h: Likewise.
  27456. * include/grub/i386/pc/memory.h: Likewise.
  27457. * include/grub/i386/pc/vbe.h: Likewise.
  27458. * include/grub/parttool.h: Likewise.
  27459. * include/grub/video.h: Likewise.
  27460. * include/grub/memory.h: Likewise.
  27461. * include/grub/fs.h: Likewise.
  27462. * include/grub/partition.h: Likewise.
  27463. * include/grub/xnu.h: Likewise.
  27464. * include/grub/efi/api.h: Likewise.
  27465. * include/grub/efi/pe32.h: Likewise.
  27466. * include/grub/efi/memory.h: Likewise.
  27467. * include/grub/multiboot.h: Likewise.
  27468. * include/grub/usbdesc.h: Likewise.
  27469. * include/grub/multiboot2.h: Likewise.
  27470. * include/grub/acpi.h: Likewise.
  27471. * include/grub/efiemu/efiemu.h: Likewise.
  27472. * include/grub/disk.h: Likewise.
  27473. * include/grub/ieee1275/ieee1275.h: Likewise.
  27474. * include/grub/net.h: Likewise.
  27475. * include/grub/machoload.h: Likewise.
  27476. * include/grub/macho.h: Likewise.
  27477. * include/multiboot.h: Likewise.
  27478. * genmoddep.awk: Likewise.
  27479. * normal/main.c: Likewise.
  27480. * normal/menu_entry.c: Likewise.
  27481. * normal/menu_viewer.c: Likewise.
  27482. * normal/completion.c: Likewise.
  27483. * normal/cmdline.c: Likewise.
  27484. * normal/misc.c: Likewise.
  27485. * normal/datetime.c: Likewise.
  27486. * bus/usb/usbtrans.c: Likewise.
  27487. * bus/usb/ohci.c: Likewise.
  27488. * bus/usb/uhci.c: Likewise.
  27489. * bus/usb/usb.c: Likewise.
  27490. * mmap/efi/mmap.c: Likewise.
  27491. * mmap/i386/pc/mmap_helper.S: Likewise.
  27492. * mmap/i386/pc/mmap.c: Likewise.
  27493. * mmap/i386/mmap.c: Likewise.
  27494. * mmap/i386/uppermem.c: Likewise.
  27495. * mmap/mmap.c: Likewise.
  27496. * commands/acpi.c: Likewise.
  27497. * commands/echo.c: Likewise.
  27498. * commands/blocklist.c: Likewise.
  27499. * commands/loadenv.c: Likewise.
  27500. * commands/usbtest.c: Likewise.
  27501. * commands/boot.c: Likewise.
  27502. * commands/parttool.c: Likewise.
  27503. * commands/search.c: Likewise.
  27504. * commands/cat.c: Likewise.
  27505. * commands/i386/pc/play.c: Likewise.
  27506. * commands/i386/pc/drivemap.c: Likewise.
  27507. * commands/i386/pc/vbeinfo.c: Likewise.
  27508. * commands/i386/pc/acpi.c: Likewise.
  27509. * commands/i386/pc/vbetest.c: Likewise.
  27510. * commands/ls.c: Likewise.
  27511. * commands/cmp.c: Likewise.
  27512. * commands/test.c: Likewise.
  27513. * commands/efi/acpi.c: Likewise.
  27514. * commands/gptsync.c: Likewise.
  27515. * commands/help.c: Likewise.
  27516. * partmap/amiga.c: Likewise.
  27517. * partmap/apple.c: Likewise.
  27518. * partmap/acorn.c: Likewise.
  27519. * partmap/pc.c: Likewise.
  27520. * partmap/sun.c: Likewise.
  27521. * partmap/gpt.c: Likewise.
  27522. * script/sh/lexer.c: Likewise.
  27523. * script/sh/function.c: Likewise.
  27524. * font/font.c: Likewise.
  27525. * font/font_cmd.c: Likewise.
  27526. * loader/powerpc/ieee1275/linux.c: Likewise.
  27527. * loader/efi/chainloader.c: Likewise.
  27528. * loader/multiboot_loader.c: Likewise.
  27529. * loader/macho.c: Likewise.
  27530. * loader/i386/multiboot.c: Likewise.
  27531. * loader/i386/linux.c: Likewise.
  27532. * loader/i386/pc/linux.c: Likewise.
  27533. * loader/i386/pc/multiboot2.c: Likewise.
  27534. * loader/i386/pc/chainloader.c: Likewise.
  27535. * loader/i386/pc/xnu.c: Likewise.
  27536. * loader/i386/bsd_trampoline.S: Likewise.
  27537. * loader/i386/efi/linux.c: Likewise.
  27538. * loader/i386/multiboot_elfxx.c: Likewise.
  27539. * loader/i386/bsd_helper.S: Likewise.
  27540. * loader/i386/bsd.c: Likewise.
  27541. * loader/i386/linux_trampoline.S: Likewise.
  27542. * loader/i386/xnu_helper.S: Likewise.
  27543. * loader/i386/xnu.c: Likewise.
  27544. * loader/i386/bsd_pagetable.c: Likewise.
  27545. * loader/i386/multiboot_helper.S: Likewise.
  27546. * loader/xnu.c: Likewise.
  27547. * loader/xnu_resume.c: Likewise.
  27548. * io/gzio.c: Likewise.
  27549. * term/efi/console.c: Likewise.
  27550. * term/terminfo.c: Likewise.
  27551. * term/ieee1275/ofconsole.c: Likewise.
  27552. * term/i386/pc/serial.c: Likewise.
  27553. * term/i386/pc/vesafb.c: Likewise.
  27554. * term/i386/pc/vga.c: Likewise.
  27555. * term/usb_keyboard.c: Likewise.
  27556. * term/gfxterm.c: Likewise.
  27557. * aclocal.m4: Likewise.
  27558. * util/lvm.c: Likewise.
  27559. * util/grub.d/30_os-prober.in: Likewise.
  27560. * util/grub.d/10_hurd.in: Likewise.
  27561. * util/console.c: Likewise.
  27562. * util/grub-macho2img.c: Likewise.
  27563. * util/grub-probe.c: Likewise.
  27564. * util/hostfs.c: Likewise.
  27565. * util/i386/pc/grub-mkimage.c: Likewise.
  27566. * util/i386/pc/grub-setup.c: Likewise.
  27567. * util/i386/efi/grub-mkimage.c: Likewise.
  27568. * util/grub-mkconfig.in: Likewise.
  27569. * util/raid.c: Likewise.
  27570. * util/resolve.c: Likewise.
  27571. * util/grub-mkdevicemap.c: Likewise.
  27572. * util/grub-emu.c: Likewise.
  27573. * util/getroot.c: Likewise.
  27574. * util/hostdisk.c: Likewise.
  27575. * util/usb.c: Likewise.
  27576. * util/grub-editenv.c: Likewise.
  27577. * util/misc.c: Likewise.
  27578. 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
  27579. * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
  27580. `genparttoollist.sh'.
  27581. (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
  27582. Add `*.sh' to the list find searches for and change `mdate.sh'
  27583. to `mdate-sh'.
  27584. 2009-06-10 Pavel Roskin <proski@gnu.org>
  27585. * include/grub/multiboot2.h: Provide compatibility defines for
  27586. multiboot2.h.
  27587. * include/multiboot2.h: Include stdint.h only if needed, using
  27588. angle brackets.
  27589. * loader/i386/pc/multiboot2.c: Include multiboot2.h after
  27590. grub/multiboot2.h.
  27591. * loader/ieee1275/multiboot2.c: Likewise.
  27592. * loader/multiboot2.c: Likewise.
  27593. * loader/multiboot_loader.c: Likewise.
  27594. * configure.ac: Use -nostdlib when probing for the target. It
  27595. should not be required to have libc for the target.
  27596. * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
  27597. they fail without libc headers for the target.
  27598. * include/grub/powerpc/libgcc.h: Use weak attribute for all
  27599. exports.
  27600. * include/grub/sparc64/libgcc.h: Likewise. Don't use
  27601. preprocessor conditionals.
  27602. * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
  27603. build system doesn't need to be aware of the tar.c internals.
  27604. 2009-06-09 Michel Hermier <michel.hermier@gmail.com>
  27605. * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
  27606. 2009-06-09 Robert Millan <rmh.grub@aybabtu.com>
  27607. * util/deviceiter.c (grub_util_iterate_devices): Increase number of
  27608. disk limit to 26 for IDE, Virtio, Xen and SCSI.
  27609. 2009-06-09 Felix Zielcke <fzielcke@z-51.de>
  27610. * util/i386/pc/grub-install.in: Change the error message if UUIDs
  27611. aren't available if ata.mod gets used.
  27612. 2009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
  27613. * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
  27614. initialising controller.
  27615. * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
  27616. 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
  27617. * util/i386/pc/grub-install.in: Add a parameter --disk-module
  27618. to choose between ata and biosdisk module on i386-pc.
  27619. 2009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
  27620. * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
  27621. Subclass and Programming Interface fields in terms of the 3 byte
  27622. Class Code register.
  27623. * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
  27624. * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
  27625. interface is OHCI. Add grub_dprintf for symmetry with
  27626. bus/usb/uhci.c.
  27627. * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
  27628. interface is UHCI. Add interf variable for programming
  27629. interface. Print interface with class/subclass.
  27630. * bus/usb/ohci.c: Set interf with correct field.
  27631. * bus/usb/uhci.c: Remove unneeded doubled lines.
  27632. * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
  27633. Remove whitespace inside comment.
  27634. 2009-06-08 Robert Millan <rmh.grub@aybabtu.com>
  27635. * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
  27636. as fallback an equivalent option without depth.
  27637. 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
  27638. Not fail if unable to retrieve C/H/S on LBA disks
  27639. * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
  27640. if unable to retrieve C/H/S on LBA disks
  27641. 2009-06-08 Pavel Roskin <proski@gnu.org>
  27642. * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
  27643. about aliasing.
  27644. 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
  27645. * Makefile.in (uninstall): Remove all $lib_DATA files.
  27646. 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
  27647. Bugfix: install on partitionless device
  27648. * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
  27649. is a whole disk
  27650. 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
  27651. * Makefile.in (uninstall): Remove all $include_DATA files.
  27652. 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
  27653. * commands/true.c: New file. Implement the true and false commands.
  27654. * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
  27655. (true_mod_SOURCES): New variable.
  27656. (true_mod_CFLAGS): Likewise.
  27657. (true_mod_LDFLAGS): Likewise.
  27658. 2009-06-05 Colin D Bennett <colin@gibibit.com>
  27659. Optimized font character lookup using binary search instead of linear
  27660. search. Fonts now are required to have the character index ordered by
  27661. code point.
  27662. * font/font.c (load_font_index): Verify that fonts have ordered
  27663. character indices.
  27664. (find_glyph): Use binary search instead of linear search to find a
  27665. character in a font.
  27666. 2009-06-05 Michael Scherer <misc@mandriva.org>
  27667. * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
  27668. uses case sensitive btree.
  27669. (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
  27670. only for case insensitive filesystems.
  27671. 2009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
  27672. * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
  27673. * conf/common.rmk (search_mod_CFLAGS): likewise
  27674. 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
  27675. * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
  27676. compensate a compiler bug
  27677. 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
  27678. * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
  27679. instead of '\b'
  27680. 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
  27681. Definitions for creating asm symbols with Apple's CC
  27682. * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
  27683. [APPLE_CC] (VARIABLE): likewise
  27684. 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
  27685. Disable lnxboot.img when compiled
  27686. with Apple's CC
  27687. * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
  27688. pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
  27689. * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
  27690. [! APPLE_CC] (CODE_LENG): skip
  27691. [! APPLE_CC] (setup_sects): likewise
  27692. [! APPLE_CC]: skip filling
  27693. 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
  27694. Address in trampolines based on 32-bit registers when compiled
  27695. with Apple's CC
  27696. * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
  27697. for addresses
  27698. * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
  27699. 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
  27700. Avoid aliases when compiling with Apple's CC for PCBIOS machine
  27701. * kern/misc.c [APPLE_CC] (memcpy): new function
  27702. [APPLE_CC] (memmove): likewise
  27703. [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
  27704. (memcpy): define alias conditionally on !APPLE_CC
  27705. (memset): likewise
  27706. (abort): likewise
  27707. * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
  27708. APPLE_CC are defined
  27709. * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
  27710. (grub_assert_fail): make prototype conditional
  27711. 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
  27712. Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
  27713. * conf/common.rmk (bin_UTILITIES): add (on false on condition)
  27714. grub-macho2img
  27715. (CLEANFILES): add grub-macho2img
  27716. (grub_macho2img_SOURCES): new variable
  27717. * kern/i386/pc/startup.S (bss_start): new variable
  27718. (bss_end): likewise
  27719. * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
  27720. * util/grub-macho2img.c: new file
  27721. 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
  27722. Use objconv when compiling with Apple's CC
  27723. * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
  27724. (efiemu64.o): likewise
  27725. (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
  27726. when compiling with Apple's CC
  27727. (efiemu64_s.o): likewise
  27728. * configure.ac: check for objconv when compiling with Apple's CC
  27729. * genmk.rb: use objconv for modules when compiled with Apple's CC
  27730. 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
  27731. Define segment as well as section when compiling with
  27732. Apple's CC
  27733. * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
  27734. (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
  27735. (efiemu_convert_pointer): likewise
  27736. (efiemu_set_virtual_address_map): likewise
  27737. (efiemu_convert_pointer): likewise
  27738. (efiemu_getcrc32): likewise
  27739. (init_crc32_table): likewise
  27740. (reflect): likewise
  27741. * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
  27742. (GRUB_MOD_DEP): likewise
  27743. 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
  27744. Allow a compilation without -mcmodel=large
  27745. * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
  27746. when compiled without -mcmodel=large
  27747. (filter_memory_map): remove memory post 4 GiB when compiled
  27748. without -mcmodel=large
  27749. * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
  27750. TARGET_CFLAGS when -mcmodel=large isn't supported
  27751. 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
  27752. Remove nested functions in efiemu core
  27753. * efiemu/runtime/efiemu.c (reflect): make static instead of nested
  27754. 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
  27755. Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
  27756. * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
  27757. temporary storage
  27758. * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
  27759. using Apple's CC
  27760. (grub_cpu_is_tsc_supported): likewise
  27761. * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
  27762. 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
  27763. Absolute addressing through constant with Apple's cc
  27764. * kern/i386/pc/startup.S: Define necessary constants
  27765. and address through it when using ABS with Apple's CC
  27766. * boot/i386/pc/diskboot.S: likewise
  27767. * boot/i386/pc/boot.S: likewise
  27768. * boot/i386/pc/lnxboot.S: likewise
  27769. * boot/i386/pc/cdboot.S: likewise
  27770. * mmap/i386/pc/mmap_helper.S: likewise
  27771. * commands/i386/pc/drivemap_int13h.S: likewise
  27772. 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
  27773. Check if compiler is apple cc
  27774. * Makefile.in (ASFLAGS): new variable
  27775. (TARGET_ASFLAGS): likewise
  27776. (TARGET_MODULE_FORMAT): likewise
  27777. (TARGET_APPLE_CC): likewise
  27778. (OBJCONV): likewise
  27779. (TARGET_IMG_CFLAGS): likewise
  27780. (TARGET_CPPFLAGS): add includedir
  27781. * configure.ac: call grub_apple_cc and grub_apple_target_cc
  27782. (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
  27783. Check for linker script only if compiler isn't Apple's CC
  27784. (TARGET_MODULE_FORMAT): set
  27785. (TARGET_APPLE_CC): likewise
  27786. (TARGET_ASFLAGS): likewise
  27787. (ASFLAGS): likewise
  27788. Check for objcopy only if compiler isn't Apple's CC
  27789. Check for BSS symbol only if compiler isn't Apple's CC
  27790. * genmk.rb: adapt nm options if we use Apple's utils
  27791. * aclocal.m4 (grub_apple_cc): new test
  27792. (grub_apple_target_cc): likewise
  27793. 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
  27794. Simplify sed expressions and improve awk
  27795. * Makefile.in (install-local): simplify sed expression
  27796. * gencmdlist.sh: likewise
  27797. * genmoddep.awk: avoid adding module as a dependency of itself
  27798. 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
  27799. Add missing start symbols
  27800. * boot/i386/pc/boot.S: add start
  27801. * boot/i386/pc/pxeboot.S: likewise
  27802. 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
  27803. Fix wrong assumptions with grub-mkimage on EFI
  27804. * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
  27805. (relocate_addresses): consider both r_addend and value at offset
  27806. (make_mods_section): zerofill modinfo and header
  27807. (convert_elf): write prefix here
  27808. 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
  27809. Use .asciz instead of .string
  27810. * i386/pc/diskboot.S: use .asciz instead of .string
  27811. * i386/pc/boot.S: likewise
  27812. * include/grub/dl.h (GRUB_MOD_DEP): likewise
  27813. (GRUB_MOD_NAME): likewise
  27814. 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
  27815. gfxpayload support
  27816. * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
  27817. * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
  27818. (grub_video_setup): remove
  27819. (grub_video_set_mode): new prototype
  27820. * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
  27821. (vid_mode): remove
  27822. (linux_vesafb_res): compile only on PCBIOS
  27823. (grub_linux_boot): support gfxpayload
  27824. * loader/i386/pc/xnu.c (video_hook): new function
  27825. (grub_xnu_set_video): support gfxpayload
  27826. * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
  27827. (DEFAULT_VIDEO_HEIGHT): likewise
  27828. (DEFAULT_VIDEO_FLAGS): likewise
  27829. (DEFAULT_VIDEO_MODE): new definition
  27830. (video_hook): new function
  27831. (grub_gfxterm_init): use grub_video_set_mode
  27832. * util/grub.d/30_os-prober.in: remove explicit modesetting before
  27833. loading xnu
  27834. * video/video.c (grub_video_setup): removed
  27835. (grub_video_set_mode): new function based on grub_gfxterm_init and
  27836. grub_video_setup
  27837. 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
  27838. Avoid calling biosdisk in drivemap
  27839. * commands/i386/pc/drivemap.c (parse_biosdisk): remove
  27840. (revparse_biosdisk): likewise
  27841. (list_mappings): derive name from id directly
  27842. (grub_cmd_drivemap): use tryparse_diskstring
  27843. 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
  27844. Script fixes
  27845. * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
  27846. (grub_lexer_param): add tokenonhold
  27847. (grub_script_create_cmdline): remove cmdline. All callers updated
  27848. (grub_script_function_create): make functionname
  27849. grub_script_arg. All callers updated
  27850. (grub_script_execute_argument_to_string): new prototype
  27851. * kern/parser.c (state_transitions): reorder
  27852. (grub_parser_cmdline_state): fix a bug and make more compact
  27853. * script/sh/execute.c (grub_script_execute_argument_to_string):
  27854. make global
  27855. (grub_script_execute_cmdline): use new format
  27856. * script/sh/function.c (grub_script_function_create): make functionname
  27857. grub_script_arg. All callers updated
  27858. * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
  27859. (grub_script_yylex): remove
  27860. (grub_script_yylex2): renamed to ...
  27861. (grub_script_yylex): ...renamed
  27862. parse the expressions like a${b}c
  27863. * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
  27864. (GRUB_PARSER_TOKEN_VAR): remove
  27865. (GRUB_PARSER_TOKEN_NAME): likewise
  27866. ("if"): declare as typeless
  27867. ("while"): likewise
  27868. ("function"): likewise
  27869. ("else"): likewise
  27870. ("then"): likewise
  27871. ("fi"): likewise
  27872. (text): remove
  27873. (argument): likewise
  27874. (script): accept empty scripts and make exit on error
  27875. (arguments): use GRUB_PARSER_TOKEN_ARG
  27876. (function): likewise
  27877. (command): move error handling to script
  27878. (menuentry): move grub_script_lexer_ref before
  27879. * script/sh/script.c (grub_script_create_cmdline): remove cmdline
  27880. argument. All callers updated
  27881. 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
  27882. Prevent GRUB from probing floppies during boot.
  27883. * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
  27884. * commands/search.c (options): Add --no-floppy.
  27885. (search_fs, search_file, grub_cmd_search): Support --no-floppy.
  27886. * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
  27887. --no-floppy when searching for UUIDs.
  27888. 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
  27889. Simplify the code duplication in commands/search.c.
  27890. * commands/search.c (search_label, search_fs_uuid): Merge into ...
  27891. (search_fs): ... this. Update all users.
  27892. 2009-06-03 Felix Zielcke <fzielcke@z-51.de>
  27893. * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
  27894. 2009-05-28 Pavel Roskin <proski@gnu.org>
  27895. * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
  27896. Remove the original symlink explicitly.
  27897. * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
  27898. just one slash. That's how grub_fshelp_find_file() does it.
  27899. 2009-05-26 Pavel Roskin <proski@gnu.org>
  27900. * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
  27901. to `str'.
  27902. * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
  27903. possibly unused.
  27904. 2009-05-25 Christian Franke <franke@computer.org>
  27905. * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
  27906. register.
  27907. (grub_atapi_identify): Add wait after drive select.
  27908. (grub_ata_identify): Do more strict status register check before
  27909. calling grub_atapi_identify (). Suppress error message if status
  27910. register is 0x00 after command failure. Add status register
  27911. check after PIO read to avoid bogus identify due to stuck DRQ.
  27912. Thanks to Pavel Roskin for testing.
  27913. (grub_device_initialize): Remove unsafe status register check.
  27914. Thanks to 'phcoder' for problem report and patch.
  27915. Prevent sign extension in debug message.
  27916. 2009-05-23 Colin D Bennett <colin@gibibit.com>
  27917. Cleaned up `include/grub/normal.h'. Grouped prototypes by
  27918. definition file, and functions defined in `normal/menu.c' have had
  27919. their prototypes moved to `include/grub/menu.h' for consistency.
  27920. * include/grub/menu.h (grub_menu_execute_callback): Added; moved
  27921. from normal.h.
  27922. (grub_menu_get_entry): Likewise.
  27923. (grub_menu_get_timeout): Likewise.
  27924. (grub_menu_set_timeout): Likewise.
  27925. (grub_menu_execute_entry): Likewise.
  27926. (grub_menu_execute_with_fallback): Likewise.
  27927. (grub_menu_entry_run): Likewise.
  27928. * include/grub/normal.h: Re-ordered and grouped function
  27929. prototypes by file that the function is defined in.
  27930. (grub_menu_execute_callback): Removed; moved to menu.h.
  27931. (grub_menu_get_entry): Likewise.
  27932. (grub_menu_get_timeout): Likewise.
  27933. (grub_menu_set_timeout): Likewise.
  27934. (grub_menu_execute_entry): Likewise.
  27935. (grub_menu_execute_with_fallback): Likewise.
  27936. (grub_menu_entry_run): Likewise.
  27937. (grub_menu_addentry): Renamed from this ...
  27938. (grub_normal_add_menu_entry): ... to this.
  27939. * normal/main.c (grub_menu_addentry): Renamed from this ...
  27940. (grub_normal_add_menu_entry): ... to this.
  27941. * script/sh/execute.c (grub_script_execute_menuentry): Update
  27942. reference to renamed grub_menu_addentry function.
  27943. 2009-05-23 Felix Zielcke <fzielcke@z-51.de>
  27944. * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
  27945. 2009-05-22 Pavel Roskin <proski@gnu.org>
  27946. * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
  27947. * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
  27948. NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
  27949. compiling for the i386 targets, but not for the utilities.
  27950. * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
  27951. to grub_uint8_t.
  27952. (grub_root_drive): Likewise.
  27953. * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
  27954. remove alignment.
  27955. (grub_root_drive): Change size to byte.
  27956. (grub_start_addr): Remove.
  27957. (grub_end_addr): Likewise.
  27958. (grub_apm_bios_info): Likewise.
  27959. 2009-05-21 Felix Zielcke <fzielcke@z-51.de>
  27960. * normal/i386: Remove.
  27961. * normal/powerpc: Likewise.
  27962. * normal/sparc64: Likewise.
  27963. * normal/x86_64: Likewise.
  27964. 2009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
  27965. * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
  27966. * loader/i386/linux_trampoline.S: Fix indentation
  27967. * loader/i386/xnu_helper.S: Likewise
  27968. 2009-05-18 Colin D Bennett <colin@gibibit.com>
  27969. Display error messages when parsing a Lua statement fails.
  27970. Previously, executing a syntactically invalid statement like
  27971. ")foo" or "bar;" would silently fail.
  27972. * script/lua/grub_main.c (handle_lua_error): New function.
  27973. (grub_lua_parse_line): Improved reporting of Lua parser and
  27974. execution errors.
  27975. 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
  27976. Remove -Werror which causes build to fail on some systems
  27977. * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
  27978. * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
  27979. * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
  27980. 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
  27981. trampoline for linux on 64-bit platform
  27982. * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
  27983. loader/i386/efi/linux_trampoline.S
  27984. * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
  27985. declaration
  27986. * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
  27987. here
  27988. * loader/i386/linux_trampoline.S: moved here
  27989. * loader/i386/efi/linux.c (allocate_pages): reserve space for
  27990. trampoline
  27991. (jumpvector): removed
  27992. (grub_linux_trampoline_start): new declaration
  27993. (grub_linux_trampoline_end): likewise
  27994. (grub_linux_boot): use trampoline when on 64-bit platform
  27995. * loader/i386/linux.c: likewise
  27996. 2009-05-16 Pavel Roskin <proski@gnu.org>
  27997. * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
  27998. const to avoid a warning.
  27999. (grub_lua_setenv): Likewise.
  28000. * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
  28001. lmsg to fix a warning.
  28002. 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
  28003. * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
  28004. (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
  28005. * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
  28006. (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
  28007. * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
  28008. (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
  28009. * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
  28010. (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
  28011. 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
  28012. * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
  28013. 2009-05-16 Bean <bean123ch@gmail.com>
  28014. * conf/common.rmk (pkglib_MODULES): Add lua.mod.
  28015. (lua_mod_SOURCES): New variable.
  28016. (lua_mod_CFLAGS): Likewise.
  28017. (lua_mod_LDFLAGS): Likewise.
  28018. * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
  28019. (setjmp_mod_SOURCES): New variable.
  28020. (setjmp_mod_CFLAGS): Likewise.
  28021. (setjmp_LDFLAGS): Likewise.
  28022. * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
  28023. (setjmp_mod_SOURCES): New variable.
  28024. (setjmp_mod_CFLAGS): Likewise.
  28025. (setjmp_LDFLAGS): Likewise.
  28026. * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
  28027. (setjmp_mod_SOURCES): New variable.
  28028. (setjmp_mod_CFLAGS): Likewise.
  28029. (setjmp_LDFLAGS): Likewise.
  28030. * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
  28031. (setjmp_mod_SOURCES): New variable.
  28032. (setjmp_mod_CFLAGS): Likewise.
  28033. (setjmp_LDFLAGS): Likewise.
  28034. * normal/i386/setjmp.S: Moved from here ...
  28035. * lib/i386/setjmp.S: ... Moved here
  28036. * normal/x86_64/setjmp.S: Moved from here ...
  28037. * lib/x86_64/setjmp.S: ... Moved here
  28038. * normal/powerpc/setjmp.S: Moved from here ...
  28039. * lib/powerpc/setjmp.S: ... Moved here
  28040. * normal/sparc64/setjmp.S: Moved from here ...
  28041. * lib/sparc64/setjmp.S: ... Moved here
  28042. * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
  28043. returns_twice in mingw.
  28044. * script/lua/grub_lib.c: New file.
  28045. * script/lua/grub_lib.h: Likewise.
  28046. * script/lua/grub_lua.h: Likewise.
  28047. * script/lua/grub_main.c: Likewise.
  28048. * script/lua/lapi.c: Likewise.
  28049. * script/lua/lapi.h: Likewise.
  28050. * script/lua/lauxlib.c: Likewise.
  28051. * script/lua/lauxlib.h: Likewise.
  28052. * script/lua/lbaselib.c: Likewise.
  28053. * script/lua/lcode.c: Likewise.
  28054. * script/lua/lcode.h: Likewise.
  28055. * script/lua/ldblib.c: Likewise.
  28056. * script/lua/ldebug.c: Likewise.
  28057. * script/lua/ldebug.h: Likewise.
  28058. * script/lua/ldo.c: Likewise.
  28059. * script/lua/ldo.h: Likewise.
  28060. * script/lua/ldump.c: Likewise.
  28061. * script/lua/lfunc.c: Likewise.
  28062. * script/lua/lfunc.h: Likewise.
  28063. * script/lua/lgc.c: Likewise.
  28064. * script/lua/lgc.h: Likewise.
  28065. * script/lua/linit.c: Likewise.
  28066. * script/lua/liolib.c: Likewise.
  28067. * script/lua/llex.c: Likewise.
  28068. * script/lua/llex.h: Likewise.
  28069. * script/lua/llimits.h: Likewise.
  28070. * script/lua/lmathlib.c: Likewise.
  28071. * script/lua/lmem.c: Likewise.
  28072. * script/lua/lmem.h: Likewise.
  28073. * script/lua/loadlib.c: Likewise.
  28074. * script/lua/lobject.c: Likewise.
  28075. * script/lua/lobject.h: Likewise.
  28076. * script/lua/lopcodes.c: Likewise.
  28077. * script/lua/lopcodes.h: Likewise.
  28078. * script/lua/loslib.c: Likewise.
  28079. * script/lua/lparser.c: Likewise.
  28080. * script/lua/lparser.h: Likewise.
  28081. * script/lua/lstate.c: Likewise.
  28082. * script/lua/lstate.h: Likewise.
  28083. * script/lua/lstring.c: Likewise.
  28084. * script/lua/lstring.h: Likewise.
  28085. * script/lua/lstrlib.c: Likewise.
  28086. * script/lua/ltable.c: Likewise.
  28087. * script/lua/ltable.h: Likewise.
  28088. * script/lua/ltablib.c: Likewise.
  28089. * script/lua/ltm.c: Likewise.
  28090. * script/lua/ltm.h: Likewise.
  28091. * script/lua/lua.h: Likewise.
  28092. * script/lua/luaconf.h: Likewise.
  28093. * script/lua/lualib.h: Likewise.
  28094. * script/lua/lundump.c: Likewise.
  28095. * script/lua/lundump.h: Likewise.
  28096. * script/lua/lvm.c: Likewise.
  28097. * script/lua/lvm.h: Likewise.
  28098. * script/lua/lzio.c: Likewise.
  28099. * script/lua/lzio.h: Likewise.
  28100. 2009-05-16 Bean <bean123ch@gmail.com>
  28101. * include/grub/kernel.h (grub_module_header_types): Add type
  28102. OBJ_TYPE_CONFIG.
  28103. * kern/main.c (grub_load_config): New function.
  28104. (grub_main): Call grub_load_config to read boot config.
  28105. * grub-mkimage (generate_image): New parameter config_path.
  28106. (options): New option --config.
  28107. (main): Parse --config option, and pass it to generate_image.
  28108. 2009-05-14 Christian Franke <franke@computer.org>
  28109. * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
  28110. This fixes build on Cygwin.
  28111. 2009-05-14 Pavel Roskin <proski@gnu.org>
  28112. * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
  28113. jump. This saves two bytes, so the typical case of 2 swapped
  28114. drives would fit 32 bytes.
  28115. 2009-05-13 Pavel Roskin <proski@gnu.org>
  28116. * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
  28117. grub_uint32_t to avoid a warning.
  28118. * loader/i386/linux.c (allocate_pages): When assigning
  28119. real_mode_mem, cast through grub_size_t to fix a warning. The
  28120. code already makes sure that the value would fit a pointer.
  28121. (grub_linux_setup_video): Cast render_target->data to
  28122. grub_size_t to fix a warning.
  28123. 2009-05-13 Javier Martín <lordhabbit@gmail.com>
  28124. * commands/i386/pc/drivemap.c: New file - implement drivemap
  28125. command.
  28126. * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
  28127. * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
  28128. 2009-05-13 Pavel Roskin <proski@gnu.org>
  28129. * util/i386/pc/grub-setup.c (setup): Remove unused variable
  28130. embedding_area_exists.
  28131. 2009-05-13 Robert Millan <rmh.grub@aybabtu.com>
  28132. * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
  28133. it easier to understand / work with.
  28134. Improve warning messages for cases where there's no embedding area,
  28135. or when it is too small (or core.img too large).
  28136. 2009-05-13 Pavel Roskin <proski@gnu.org>
  28137. * loader/i386/pc/multiboot2.c: Add necessary includes for
  28138. grub_multiboot2_real_boot().
  28139. * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
  28140. PX record is always little-endian. We only need the lower 2
  28141. bytes of the mode.
  28142. * fs/cpio.c: Use the same name "struct head" for tar and cpio to
  28143. facilitate code reuse.
  28144. (grub_cpio_mount): Use "struct head", not a char buffer. This
  28145. fixes a warning reported by gcc 4.4.
  28146. * kernel/disk.c (grub_disk_read): Use void pointer for the
  28147. buffer.
  28148. (grub_disk_write): Use const void pointer for the buffer.
  28149. Adjust all callers. Remove unnecessary casts.
  28150. 2009-05-10 Robert Millan <rmh.grub@aybabtu.com>
  28151. * util/i386/pc/grub-install.in: Update copyright year.
  28152. 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
  28153. gptsync
  28154. * commands/gptsync.c: new file
  28155. * conf/common.rmk (pkglib_MODULES): add gptsync.mod
  28156. (gptsync_mod_SOURCES): new variable
  28157. (gptsync_mod_CFLAGS): likewise
  28158. (gptsync_mod_LDFLAGS): likewise
  28159. * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
  28160. new definition
  28161. (GRUB_PC_PARTITION_TYPE_HFS): likewise
  28162. * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
  28163. * conf/i386-ieee1275.rmk: likewise
  28164. * conf/i386-pc.rmk: likewise
  28165. * conf/powerpc-ieee1275.rmk: likewise
  28166. 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
  28167. Fixed grub-emu
  28168. * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
  28169. (grub_dl_ref): likewise
  28170. 2009-05-08 Robert Millan <rmh.grub@aybabtu.com>
  28171. * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
  28172. split in two functions (one for msdos and one for gpt).
  28173. 2009-05-08 Pavel Roskin <proski@gnu.org>
  28174. * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
  28175. not modified.
  28176. * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
  28177. uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
  28178. Initialize them with -1. Add sanity check for bad1. Eliminate
  28179. nerr variable.
  28180. 2009-05-08 David S. Miller <davem@davemloft.net>
  28181. * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
  28182. 2009-05-06 Robert Millan <rmh.grub@aybabtu.com>
  28183. * util/i386/pc/grub-setup.c (setup): Fix check for embed region
  28184. existence.
  28185. 2009-05-05 Felix Zielcke <fzielcke@z-51.de>
  28186. * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
  28187. `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
  28188. 2009-05-05 David S. Miller <davem@davemloft.net>
  28189. * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
  28190. 2009-05-05 Pavel Roskin <proski@gnu.org>
  28191. * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
  28192. of grub_dl_ref() and grub_dl_unref().
  28193. * commands/parttool.c: Remove preprocessor conditionals around
  28194. grub_dl_ref() and grub_dl_unref().
  28195. * fs/affs.c: Likewise.
  28196. * fs/afs.c: Likewise.
  28197. * fs/cpio.c: Likewise.
  28198. * fs/ext2.c: Likewise.
  28199. * fs/fat.c: Likewise.
  28200. * fs/hfs.c: Likewise.
  28201. * fs/hfsplus.c: Likewise.
  28202. * fs/iso9660.c: Likewise.
  28203. * fs/jfs.c: Likewise.
  28204. * fs/minix.c: Likewise.
  28205. * fs/ntfs.c: Likewise.
  28206. * fs/reiserfs.c: Likewise.
  28207. * fs/sfs.c: Likewise.
  28208. * fs/udf.c: Likewise.
  28209. * fs/ufs.c: Likewise.
  28210. * fs/xfs.c: Likewise.
  28211. * include/grub/dl.h: Likewise.
  28212. * loader/xnu.c: Likewise.
  28213. 2009-05-04 Pavel Roskin <proski@gnu.org>
  28214. * commands/acpi.c: Remove unused variable my_mod.
  28215. * partmap/amiga.c: Likewise.
  28216. * partmap/apple.c: Likewise.
  28217. * partmap/gpt.c: Likewise.
  28218. * partmap/pc.c: Likewise.
  28219. * partmap/sun.c: Likewise.
  28220. * term/gfxterm.c: Likewise.
  28221. * term/i386/pc/vesafb.c: Likewise.
  28222. * term/i386/pc/vga.c: Likewise.
  28223. 2009-05-04 David S. Miller <davem@davemloft.net>
  28224. * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
  28225. pointer args to grub_ieee1275_get_property().
  28226. * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
  28227. * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
  28228. devices, and do not traverse down under controller nodes.
  28229. * disk/ieee1275/ofdisk.c (compute_dev_path): New.
  28230. (grub_ofdisk_open): Use it to un-escape "," characters.
  28231. * kern/disk.c (find_part_sep): New.
  28232. (grub_disk_open): Use it to find the first non-escaped ','
  28233. character in the disk name.
  28234. * util/ieee1275/devicemap.c (escape_of_path): New.
  28235. (grub_util_emit_devicemap_entry): Use it.
  28236. * util/sparc64/ieee1275/grub-install.in: Update script to
  28237. strip partition specifiers properly by not triggering on
  28238. '\' escaped ',' characters.
  28239. 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
  28240. * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
  28241. to 0x300.
  28242. * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
  28243. resolutions.
  28244. (linux_vesafb_modes): Add a lot of additional modes to the list (based
  28245. on documentation from Wikipedia).
  28246. 2009-05-04 Pavel Roskin <proski@gnu.org>
  28247. * disk/ata.c: Spelling fixes.
  28248. * disk/raid.c: Likewise.
  28249. * disk/usbms.c: Likewise.
  28250. * disk/dmraid_nvidia.c: Likewise.
  28251. * kern/ieee1275/openfw.c: Likewise.
  28252. * kern/ieee1275/init.c: Likewise.
  28253. * kern/ieee1275/cmain.c: Likewise.
  28254. * boot/i386/pc/cdboot.S: Likewise.
  28255. * video/readers/png.c: Likewise.
  28256. * video/i386/pc/vbe.c: Likewise.
  28257. * fs/udf.c: Likewise.
  28258. * fs/hfs.c: Likewise.
  28259. * fs/reiserfs.c: Likewise.
  28260. * efiemu/runtime/efiemu.c: Likewise.
  28261. * efiemu/main.c: Likewise.
  28262. * efiemu/mm.c: Likewise.
  28263. * include/grub/elf.h: Likewise.
  28264. * include/grub/xnu.h: Likewise.
  28265. * include/grub/usbdesc.h: Likewise.
  28266. * include/grub/usb.h: Likewise.
  28267. * include/grub/script_sh.h: Likewise.
  28268. * include/grub/lib/LzmaEnc.h: Likewise.
  28269. * include/grub/efiemu/efiemu.h: Likewise.
  28270. * include/grub/command.h: Likewise.
  28271. * normal/menu.c: Likewise.
  28272. * normal/main.c: Likewise.
  28273. * normal/datetime.c: Likewise.
  28274. * bus/usb/uhci.c: Likewise.
  28275. * mmap/i386/uppermem.c: Likewise.
  28276. * mmap/mmap.c: Likewise.
  28277. * commands/acpi.c: Likewise.
  28278. * commands/test.c: Likewise.
  28279. * partmap/apple.c: Likewise.
  28280. * font/font.c: Likewise.
  28281. * loader/sparc64/ieee1275/linux.c: Likewise.
  28282. * loader/macho.c: Likewise.
  28283. * loader/i386/bsd_trampoline.S: Likewise.
  28284. * loader/i386/bsd.c: Likewise.
  28285. * loader/xnu.c: Likewise.
  28286. * term/i386/pc/vesafb.c: Likewise.
  28287. * term/usb_keyboard.c: Likewise.
  28288. * util/resolve.c: Likewise.
  28289. * util/getroot.c: Likewise.
  28290. 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
  28291. * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
  28292. 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
  28293. * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
  28294. build error.
  28295. 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
  28296. * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
  28297. parameter only available on BIOS.
  28298. 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
  28299. Removed wrong semicolon in declaration
  28300. * grub/misc.h (grub_dprintf): remove semicolon
  28301. 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
  28302. * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
  28303. (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
  28304. is done by grub_cmd_linux() now).
  28305. [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
  28306. restore video to text mode.
  28307. (grub_cmd_linux): Default `vid_mode' initialization to 0, which
  28308. indicates lack of "vga=" parameter. "vga=0" is mapped to
  28309. `GRUB_LINUX_VID_MODE_NORMAL'.
  28310. 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
  28311. * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
  28312. `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
  28313. and `normal/script.c'. Add `kern/rescue_reader.c',
  28314. `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
  28315. `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
  28316. `grub_script.tab.c'.
  28317. * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
  28318. * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
  28319. * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
  28320. * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
  28321. * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
  28322. * Makefile.in: Remove duplicated 2008 in Copyright line.
  28323. 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
  28324. * util/misc.c (grub_util_warn): New function. Emits a warning
  28325. unconditionally.
  28326. * include/grub/util/misc.h (grub_util_warn): New declaration.
  28327. * util/i386/pc/grub-install.in: Understand --force and pass it down
  28328. to grub-setup.
  28329. * util/i386/pc/grub-setup.c (main): Understand --force and pass it
  28330. down to setup().
  28331. (setup): Improve error messages and add warnings when requested to
  28332. install in odd layouts. Refuse to install using blocklists unless
  28333. --force was set.
  28334. 2009-05-04 martin f. krafft <madduck@madduck.net>
  28335. * disk/raid.c (grub_raid_scan_device): Improve debug message.
  28336. 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
  28337. Updated copyright year
  28338. * fs/hfsplus.c: updated copyright year
  28339. 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
  28340. HFS+ UUID
  28341. * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
  28342. in the space previously used by unused3
  28343. (grub_hfsplus_uuid): new function
  28344. (grub_hfsplus_fs): added uuid field
  28345. 2009-05-03 Pavel Roskin <proski@gnu.org>
  28346. * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
  28347. suppress warnings. It's no longer needed.
  28348. * disk/host.c: Likewise.
  28349. * disk/ata_pthru.c: Likewise.
  28350. * disk/loopback.c: Likewise.
  28351. * hook/datehook.c: Likewise.
  28352. * parttool/pcpart.c: Likewise.
  28353. * fs/i386/pc/pxe.c: Likewise.
  28354. * fs/ntfscomp.c: Likewise.
  28355. * efiemu/main.c: Likewise.
  28356. * mmap/mmap.c: Likewise.
  28357. * commands/crc.c: Likewise.
  28358. * commands/hexdump.c: Likewise.
  28359. * commands/hdparm.c: Likewise.
  28360. * commands/acpi.c: Likewise.
  28361. * commands/echo.c: Likewise.
  28362. * commands/minicmd.c: Likewise.
  28363. * commands/blocklist.c: Likewise.
  28364. * commands/memrw.c: Likewise.
  28365. * commands/loadenv.c: Likewise.
  28366. * commands/usbtest.c: Likewise.
  28367. * commands/lsmmap.c: Likewise.
  28368. * commands/boot.c: Likewise.
  28369. * commands/parttool.c: Likewise.
  28370. * commands/configfile.c: Likewise.
  28371. * commands/search.c: Likewise.
  28372. * commands/ieee1275/suspend.c: Likewise.
  28373. * commands/cat.c: Likewise.
  28374. * commands/i386/pc/pxecmd.c: Likewise.
  28375. * commands/i386/pc/play.c: Likewise.
  28376. * commands/i386/pc/halt.c: Likewise.
  28377. * commands/i386/pc/vbeinfo.c: Likewise.
  28378. * commands/i386/pc/vbetest.c: Likewise.
  28379. * commands/lspci.c: Likewise.
  28380. * commands/date.c: Likewise.
  28381. * commands/handler.c: Likewise.
  28382. * commands/ls.c: Likewise.
  28383. * commands/test.c: Likewise.
  28384. * commands/cmp.c: Likewise.
  28385. * commands/efi/loadbios.c: Likewise.
  28386. * commands/efi/fixvideo.c: Likewise.
  28387. * commands/halt.c: Likewise.
  28388. * commands/help.c: Likewise.
  28389. * commands/reboot.c: Likewise.
  28390. * hello/hello.c: Likewise.
  28391. * script/sh/main.c: Likewise.
  28392. * loader/xnu.c: Likewise.
  28393. * term/terminfo.c: Likewise.
  28394. * term/i386/pc/serial.c: Likewise.
  28395. * term/usb_keyboard.c: Likewise.
  28396. 2009-05-03 David S. Miller <davem@davemloft.net>
  28397. * normal/menu.c: Include grub/parser.h
  28398. 2009-05-03 Pavel Roskin <proski@gnu.org>
  28399. * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
  28400. not char*.
  28401. * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
  28402. Suggested by Javier Martín <lordhabbit@gmail.com>
  28403. * util/i386/pc/grub-mkrescue.in: Allow for the case when
  28404. efiemu??.o doesn't exist.
  28405. * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
  28406. copying.
  28407. 2009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
  28408. FreeBSD 64-bit support
  28409. * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
  28410. and loader/i386/bsd_trampoline.S
  28411. (bsd_mod_ASFLAGS): new variable
  28412. * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
  28413. (FREEBSD_MODTYPE_KERNEL64): likewise
  28414. (grub_bsd64_trampoline_start): likewise
  28415. (grub_bsd64_trampoline_end): likewise
  28416. (grub_bsd64_trampoline_selfjump): likewise
  28417. (grub_bsd64_trampoline_gdt): likewise
  28418. * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
  28419. * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
  28420. * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
  28421. * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
  28422. * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
  28423. of "attrib" member
  28424. * loader/i386/bsd_pagetable.c: new file
  28425. * loader/i386/bsd_trampoline.S: likewise
  28426. * loader/i386/bsd.c (ALIGN_QWORD): new macro
  28427. (ALIGN_VAR): likewise
  28428. (entry_hi): new variable
  28429. (kern_end_mdofs): likewise
  28430. (is_64bit): likewise
  28431. (grub_freebsd_add_meta): use ALIGN_VAR
  28432. (grub_e820_mmap): new declaration
  28433. (grub_freebsd_add_mmap): new function
  28434. (grub_freebsd_add_meta_module): support 64 bit kernels
  28435. (grub_freebsd_list_modules): use ALIGN_VAR
  28436. (gdt_descriptor): new declaration
  28437. (grub_freebsd_boot): support 64 bit kernels
  28438. (grub_bsd_elf64_hook): new function
  28439. (grub_bsd_load_elf): support elf64
  28440. 2009-05-03 Bean <bean123ch@gmail.com>
  28441. * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
  28442. after we get the result of if statement.
  28443. 2009-05-03 Bean <bean123ch@gmail.com>
  28444. * Makefile.in (enable_efiemu): New variable.
  28445. * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
  28446. set.
  28447. (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
  28448. path.
  28449. (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
  28450. path, add -mno-red-zone option.
  28451. (efiemu64_s.o): Likewise.
  28452. (efiemu64.o): Use macro $^ for source file.
  28453. * configure.ac (--enable-efiemu): New option.
  28454. 2009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
  28455. xnu support
  28456. * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
  28457. (pkglib_MODULES): add xnu.mod
  28458. (xnu_mod_SOURCES): new variable
  28459. (xnu_mod_CFLAGS): likewise
  28460. (xnu_mod_LDFLAGS): likewise
  28461. (xnu_mod_ASFLAGS): likewise
  28462. * conf/i386-pc.rmk: likewise
  28463. * conf/x86_64-efi.rmk: likewise
  28464. * include/grub/efi/efi.h (grub_efi_finish_boot_services):
  28465. new declaration
  28466. * include/grub/i386/macho.h: new file
  28467. * include/grub/i386/xnu.h: likewise
  28468. * include/grub/macho.h: likewise
  28469. * include/grub/machoload.h: likewise
  28470. * include/grub/x86_64/macho.h: likewise
  28471. * include/grub/x86_64/xnu.h: likewise
  28472. * include/grub/xnu.h: likewise
  28473. * kern/efi/efi.c (grub_efi_finish_boot_services): new function
  28474. * kern/efi/mm.c (MAX_HEAP_SIZE): increase
  28475. * loader/i386/efi/xnu.c: new file
  28476. * loader/i386/pc/xnu.c: likewise
  28477. * loader/i386/xnu.c: likewise
  28478. * loader/i386/xnu_helper.S: likewise
  28479. * loader/macho.c: likewise
  28480. * loader/xnu.c: likewise
  28481. * loader/xnu_resume.c: likewise
  28482. * util/grub-dumpdevtree: likewise
  28483. * include/grub/i386/pit.h: include grub/err.h
  28484. (grub_pit_wait): export
  28485. * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
  28486. 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
  28487. Efiemu
  28488. * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
  28489. _linux_efi, linux_efi.
  28490. new files in grub-emu
  28491. new targets efiemu32.o and efiemu64.o
  28492. * loader/linux_normal_efiemu.c: likewise
  28493. * loader/i386/efi/linux.c: added preliminary efiemu support
  28494. * util/i386/pc/grub-install.in: add efiemu??.o to the list of
  28495. files to copy
  28496. * include/grub/autoefi.h: new file
  28497. * include/grub/i386/efiemu.h: likewise
  28498. * include/grub/i386/pc/efiemu.h: likewise
  28499. * include/grub/efi/api.h: add LL suffix when necessary
  28500. new definitions relating to tables
  28501. * include/grub/efiemu/efiemu.h: new file
  28502. * include/grub/efiemu/runtime.h: likewise
  28503. * efiemu/prepare.c: likewise
  28504. * efiemu/loadcore_common.c: likewise
  28505. * efiemu/loadcore64.c: likewise
  28506. * efiemu/runtime/efiemu.sh: likewise
  28507. * efiemu/runtime/efiemu.S: likewise
  28508. * efiemu/runtime/efiemu.c: likewise
  28509. * efiemu/runtime/config.h: likewise
  28510. * efiemu/prepare32.c: likewise
  28511. * efiemu/main.c: likewise
  28512. * efiemu/modules/pnvram.c: likewise
  28513. * efiemu/modules/i386: likewise
  28514. * efiemu/modules/i386/pc: likewise
  28515. * efiemu/modules/acpi.c: likewise
  28516. * efiemu/i386/pc/cfgtables.c: likewise
  28517. * efiemu/i386/loadcore64.c: likewise
  28518. * efiemu/i386/loadcore32.c: likewise
  28519. * efiemu/prepare64.c: likewise
  28520. * efiemu/loadcore.c: likewise
  28521. * efiemu/symbols.c: likewise
  28522. * efiemu/mm.c: likewise
  28523. * efiemu/loadcore32.c: likewise
  28524. 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
  28525. ACPI spoofing
  28526. * commands/acpi.c: new file
  28527. * commands/i386/pc/acpi.c: likewise
  28528. * commands/efi/acpi.c: likewise
  28529. * include/grub/acpi.h: likewise
  28530. * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
  28531. (acpi_mod_SOURCES): new variable
  28532. (acpi_mod_CFLAGS): likewise
  28533. (acpi_mod_LDFLAGS): likewise
  28534. * conf/i386-efi.rmk: likewise
  28535. * conf/x86_64-efi.rmk: likewise
  28536. 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
  28537. Missing part from mmap patch
  28538. * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
  28539. (grub_mmap_unregister)
  28540. (grub_mmap_free_and_unregister): use grub_mmap_register
  28541. 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
  28542. Mmap services
  28543. * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
  28544. * loader/i386/linux.c (find_mmap_size): likewise
  28545. (allocate_pages): likewise
  28546. * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
  28547. (grub_fill_multiboot_mmap): likewise
  28548. (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
  28549. * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
  28550. * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
  28551. (OPENBSD_MMAP_RESERVED): likewise
  28552. * include/grub/i386/pc/memory.h: include grub/memory.h
  28553. (grub_lower_mem): removed
  28554. (grub_upper_mem): likewise
  28555. (GRUB_MACHINE_MEMORY_ACPI): new definition
  28556. (GRUB_MACHINE_MEMORY_NVS): likewise
  28557. (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
  28558. (GRUB_MACHINE_MEMORY_HOLE): likewise
  28559. (grub_machine_mmap_register): likewise
  28560. (grub_machine_mmap_unregister): likewise
  28561. (grub_machine_get_upper): likewise
  28562. (grub_machine_get_lower): likewise
  28563. (grub_machine_get_post64): likewise
  28564. * include/grub/i386/efi/memory.h: new file
  28565. * include/grub/x86_64/efi/memory.h: likewise
  28566. * include/grub/efi/memory.h: likewise
  28567. * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
  28568. (mmap_mod_SOURCES): new variable
  28569. (mmap_mod_LDFLAGS): likewise
  28570. (mmap_mod_ASFLAGS): likewise
  28571. * conf/i386-coreboot.rmk: likewise
  28572. * conf/i386-ieee1275.rmk: likewise
  28573. * conf/i386-efi.rmk: likewise
  28574. * conf/x86_64-efi.rmk: likewise
  28575. * include/grub/types.h (UINT_TO_PTR): new macro
  28576. (PTR_TO_UINT32): likewise
  28577. (PTR_TO_UINT64): likewise
  28578. * include/grub/memory.h: new file
  28579. * mmap/i386/pc/mmap.c: likewise
  28580. * mmap/i386/pc/mmap_helper.S: likewise
  28581. * mmap/i386/uppermem.c: likewise
  28582. * mmap/mmap.c: likewise
  28583. * mmap/efi/mmap.c: likewise
  28584. * kern/i386/coreboot/init.c (grub_machine_init): don't use
  28585. grub_upper_mem
  28586. * kern/i386/pc/init.c (grub_lower_mem): removed variable
  28587. (grub_upper_mem): likewise
  28588. (grub_machine_init): don't use grub_upper_mem,
  28589. make grub_lower_mem local
  28590. * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
  28591. grub_mmap_iterate and grub_mmap_get_upper
  28592. (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
  28593. 2009-05-02 Bean <bean123ch@gmail.com>
  28594. * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
  28595. script/sh/parser.y.
  28596. (pkglib_MODULES): Add normal.mod and sh.mod.
  28597. (normal_SOURCES): New variable.
  28598. (normal_mod_CFLAGS): Likewise.
  28599. (normal_mod_LDFLAGS): Likewise.
  28600. (sh_mod_SOURCES): Likewise.
  28601. (sh_mod_CFLAGS): Likewise.
  28602. (sh_mod_LDFLAGS): Likewise.
  28603. * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
  28604. script/sh/lexer.c_DEPENDENCIES.
  28605. (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
  28606. kern/rescue_reader.c and kern/rescue_parser.c.
  28607. (kernel_img_HEADERS): Remove rescue.h, add reader.h.
  28608. (grub_emu_SOURCES): Change source files.
  28609. (pkglib_MODULES): Remove normal.mod.
  28610. (normal_SOURCES): Removed.
  28611. (normal_mod_CFLAGS): Likewise.
  28612. (normal_mod_LDFLAGS): Likewise.
  28613. * conf/i386-coreboot.rmk: Likewise.
  28614. * conf/i386-efi.rmk: Likewise.
  28615. * conf/i386-ieee1276.rmk: Likewise.
  28616. * conf/powerpc-ieee1275.rmk: Likewise.
  28617. * conf/sparc64-ieee1275.rmk: Likewise.
  28618. * conf/x86_64-efi.rmk: Likewise.
  28619. * include/grub/command.h (grub_command_execute): New inline function.
  28620. * include/grub/menu.h (grub_menu_entry): Removed commands field.
  28621. * include/grub/normal.h: Remove <grub/setjmp.h>.
  28622. (grub_fs_module_list): Moved to normal/autofs.c.
  28623. (grub_exit_env): Removed.
  28624. (grub_command_execute): Likewise.
  28625. (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
  28626. parameter script.
  28627. (read_command_list): New function declaration.
  28628. (read_fs_list): Likewise.
  28629. * include/parser.h: Include <grub/reader.h>.
  28630. (grub_parser_split_cmdline): Change type of getline parameter.
  28631. (grub_parser): New structure.
  28632. (grub_parser_class): New variable.
  28633. (grub_parser_execute): New function declaration.
  28634. (grub_register_rescue_parser): Likewise.
  28635. (grub_parser_register): New inline function.
  28636. (grub_parser_unregister): Likewise.
  28637. (grub_parser_get_current): Likewise.
  28638. (grub_parser_set_current): Likewise.
  28639. * include/grub/reader.h: New file.
  28640. * kern/reader.c: Likewise.
  28641. * kern/rescue_parser.c: Likewise.
  28642. * kern/rescue_reader.c: Likewise.
  28643. * normal/autofs.c: Likewise.
  28644. * normal/dyncmd.c: Likewise.
  28645. * include/grub/rescue.h: Removed.
  28646. * normal/command.h: Likewise.
  28647. * include/grub/script.h: Moved to ...
  28648. * include/grub/script_sh.h: ... Moved here.
  28649. * normal/execute.c: Moved to ...
  28650. * script/sh/execute.c: ... Moved here.
  28651. * normal/function.c: Moved to ...
  28652. * script/sh/function.c: ... Moved here.
  28653. * normal/lexer.c: Moved to ...
  28654. * script/sh/lexer.c: ... Moved here.
  28655. * normal/parser.y: Moved to ...
  28656. * script/sh/parser.y: ... Moved here.
  28657. * normal/script.c: Moved to ...
  28658. * script/sh/script.c: ... Moved here.
  28659. * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
  28660. <grub/reader.h>.
  28661. (grub_exit_env): Removed.
  28662. (fs_module_list): Moved to normal/autofs.c.
  28663. (grub_file_getline): Don't handle comment here.
  28664. (free_menu): Skip removed field entry->commands.
  28665. (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
  28666. script parameter.
  28667. (read_config_file): Removed nested parameter, change getline function.
  28668. (grub_enter_normal_mode): Removed.
  28669. (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
  28670. (read_command_list): Likewise.
  28671. (autoload_fs_module): Moved to normal/autofs.c.
  28672. (read_fs_list): Likewise.
  28673. (reader_nested): New variable.
  28674. (grub_normal_execute): Run parser.sh to switch to sh parser.
  28675. (grub_cmd_rescue): Removed.
  28676. (cmd_normal): Removed.
  28677. (grub_cmd_normal): Unregister itself at the beginning. Don't register
  28678. rescue command.
  28679. (grub_cmdline_run): New function.
  28680. (grub_normal_reader_init): Likewise.
  28681. (grub_normal_read_line): Likewise.
  28682. (grub_env_write_pager): Likewise.
  28683. (cmdline): New variable.
  28684. (grub_normal_reader): Likewise.
  28685. (GRUB_MOD_INIT): Register normal reader and set as current, register
  28686. pager hook, register normal command with grub_register_command_prio,
  28687. so that it won't show up in command.lst.
  28688. (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
  28689. grub_fs_autoload_hook.
  28690. * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
  28691. (grub_menu_execute_entry): Replace grub_script_execute with
  28692. grub_parser_execute, change parameter to grub_command_execute.
  28693. * normal/menu_text.c: Remove <grub/script.h>.
  28694. * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
  28695. and <grub/parser.h>.
  28696. (run): Change editor_getline to use new parser interface. Change
  28697. parameter to grub_command_execute.
  28698. * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
  28699. <grub/reader.h> and <grub/parser.h>.
  28700. (grub_load_normal_mode): Execute normal command.
  28701. (grub_main): Call grub_register_core_commands,
  28702. grub_register_rescue_parser and grub_register_rescue_reader, use
  28703. grub_reader_loop to enter input loop.
  28704. * kern/parser.c (grub_parser_split_cmdline): Change type of
  28705. getline parameter.
  28706. (grub_parser_class): New variable.
  28707. (grub_parser_execute): New function.
  28708. * loader/i386/multiboot.c: Remove <grub/rescue.h>.
  28709. * loader/multiboot2.c: Likewise.
  28710. * loader/sparc64/ieee1275/linux.c: Likewise.
  28711. * util/grub-emu.c (read_command_list): New dummy function.
  28712. 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
  28713. * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
  28714. count to 16 for CCISS and IDA.
  28715. 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
  28716. * normal/menu_text.c (grub_wait_after_message): Print a newline
  28717. after waiting for user input.
  28718. * loader/i386/linux.c: Include `<grub/normal.h>'.
  28719. (grub_cmd_linux): Improve the error message about `ask' mode, by
  28720. waiting for user input so it's not missed (we can do this, since
  28721. user requested interaction).
  28722. 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
  28723. Added missing lst to grub-mkrescue
  28724. * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
  28725. and ${input_dir}/parttool.lst
  28726. 2009-04-30 David S. Miller <davem@davemloft.net>
  28727. * util/hostdisk.c (device_is_wholedisk): New function.
  28728. (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
  28729. zero only if device_is_wholedisk() returns true.
  28730. * util/hostdisk.c (convert_system_partition_to_system_disk):
  28731. Handle virtual disk devices named /dev/vdiskX as found on sparc
  28732. and powerpc.
  28733. * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
  28734. lettered partition specifier is found, convert to numbered.
  28735. 2009-04-29 David S. Miller <davem@davemloft.net>
  28736. * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
  28737. * include/grub/sparc64/ieee1275/memory.h: Likewise.
  28738. * normal/command.c: Add missing newline at end of file.
  28739. * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
  28740. warnings.
  28741. * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
  28742. * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
  28743. grub_ofdisk_read): Likewise, and deal similarly with the fact that
  28744. ihandles have a 32-bit type but need to be stored in a "void *".
  28745. 2009-04-28 Pavel Roskin <proski@gnu.org>
  28746. * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
  28747. not disk. Adjust all dependencies.
  28748. (grub_fs_uuid_close): Use grub_device_close(), not
  28749. grub_disk_close().
  28750. * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
  28751. parent's partition, don't copy it by reference, as it gets freed
  28752. on close.
  28753. 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
  28754. Preboot hooks support
  28755. * commands/boot.c (struct grub_preboot_t): new declaration
  28756. (preboots_head): new variable
  28757. (preboots_tail): likewise
  28758. (grub_loader_register_preboot_hook): new function
  28759. (grub_loader_unregister_preboot_hook): likewise
  28760. (grub_loader_set): launch preboot hooks
  28761. * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
  28762. (grub_loader_register_preboot_hook): new declaration
  28763. (grub_loader_unregister_preboot_hook): likewise
  28764. 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
  28765. Warning fix
  28766. * disk/scsi.c (grub_scsi_open): added missing cast when
  28767. calling grub_dprintf
  28768. 2009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
  28769. Bug and warning fixes
  28770. * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
  28771. declaration
  28772. * commands/test.c (test_parse): fixed bug with file tests and corrected
  28773. declaration of find_file
  28774. 2009-04-26 Pavel Roskin <proski@gnu.org>
  28775. * Makefile.in: Don't install empty manual pages if help2man is
  28776. missing. Use help2man option for output, not shell redirection.
  28777. 2009-04-26 David S. Miller <davem@davemloft.net>
  28778. * util/grub-mkdevicemap.c (make_device_map): Add missing
  28779. NESTED_FUNC_ATTR to process_device().
  28780. 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
  28781. Test command
  28782. * commands/test.c: rewritten to use bash-like test
  28783. 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
  28784. Parttool autoloading and improvements
  28785. * Makefile.in (pkglib_DATA): add parttool.lst
  28786. (parttool.lst): new target
  28787. * genmk.rb: generate parttool-*
  28788. (CLEANFILES): add #{parttool}
  28789. (PARTTOOLFILES): new variable
  28790. * genparttoollist.sh: new file
  28791. * parttool/pcpart.c (grub_pcpart_boot): more feedback
  28792. (grub_pcpart_type): likewise
  28793. * commands/parttool.c (helpmsg): new variable
  28794. (grub_cmd_parttool): output help if not enough arguments are supplied
  28795. autoload modules
  28796. (GRUB_MOD_INIT(parttool)): use helpmsg
  28797. 2009-04-24 David S. Miller <davem@davemloft.net>
  28798. Avoiding opening same device multiple times in device iterator.
  28799. * kern/device.c: (grub_device_iterate): Define struct part_ent,
  28800. and use it to build a list of partitions in iterate_disk() and
  28801. iterate_partition().
  28802. * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
  28803. on disk->data.
  28804. * disk/ieee1275/nand.c (grub_nand_iterate): Return
  28805. grub_devalias_iterate() result instead of unconditional 0.
  28806. * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
  28807. Also, capture hook return value, either directly or via
  28808. grub_children_iterate(), and propagate to caller.
  28809. * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
  28810. grub_children_iterate): Return value is now 'int' instead of
  28811. 'grub_err_t'.
  28812. * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
  28813. like a proper iterator, stopping when hooks return non-zero.
  28814. (grub_devalias_iterate): Likewise.
  28815. 2009-04-23 David S. Miller <davem@davemloft.net>
  28816. * kern/sparc64/ieee1275/openfw.c: Unused, delete.
  28817. 2009-04-22 David S. Miller <davem@davemloft.net>
  28818. * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
  28819. is larger than address_cells, use that value for address_cells too.
  28820. * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
  28821. IEEE1275_MAX_PATH_LEN): Define.
  28822. * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
  28823. allocate 'childtype', 'childpath', 'childname', and 'fullname'.
  28824. (grub_devalias_iterate): Dynamically allocate 'aliasname' and
  28825. 'devtype'. Explicitly NULL terminate devalias expansion.
  28826. * util/sparc64/ieee1275/misc.c: New file.
  28827. * util/sparc64/ieee1275/grub-setup.c: New file.
  28828. * util/sparc64/ieee1275/grub-ofpathname.c: New file.
  28829. * util/sparc64/ieee1275/grub-mkimage.c: New file.
  28830. * util/sparc64/ieee1275/grub-install.in: New file.
  28831. * util/ieee1275/ofpath.c: New file.
  28832. * util/ieee1275/devicemap.c: New file.
  28833. * util/devicemap.c: New file.
  28834. * util/deviceiter.c: New file.
  28835. * kern/sparc64/ieee1275/init.c: New file.
  28836. * include/grub/util/ofpath.h: New file.
  28837. * include/grub/util/deviceiter.h: New file.
  28838. * util/grub-mkdevicemap.c: Include deviceiter.h.
  28839. Implement using grub_util_emit_devicemap_entry and
  28840. grub_util_iterate_devices.
  28841. * conf/i386-corebook.rmk: Build util/deviceiter.c and
  28842. util/devicemap.c into grub-mkdevicemap
  28843. * conf/i386-efi.rmk: Likewise.
  28844. * conf/i386-ieee1275.rmk: Likewise.
  28845. * conf/i386-pc.rmk: Likewise.
  28846. * conf/powerpc-ieee1275.rmk: Likewise.
  28847. * conf/sparc64-ieee1275.rmk: Add rules to build boot block
  28848. images and installation utilities. Build kernel as image
  28849. instead of as elf binary. Use common rules as much as possible.
  28850. 2009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
  28851. Correct GPT definition
  28852. * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
  28853. of "attrib" member
  28854. 2009-04-19 Felix Zielcke <fzielcke@z-51.de>
  28855. * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
  28856. 2009-04-19 David S. Miller <davem@davemloft.net>
  28857. * loader/sparc64/ieee1275/linux.c: Include grub/command.h
  28858. (grub_rescue_cmd_linux): Rename to...
  28859. (grub_cmd_linux): and fix prototype.
  28860. (grub_rescue_cmd_initrd): Rename to...
  28861. (grub_cmd_initrd): and fix prototype.
  28862. (cmd_linux, cmd_initrd): New.
  28863. (GRUB_MOD_INIT(linux)): Use grub_register_command().
  28864. (GRUB_MOD_FINI(linux): Use grub_unregister_command().
  28865. 2009-04-17 Pavel Roskin <proski@gnu.org>
  28866. * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
  28867. format.
  28868. (grub_ohci_transfer): Likewise.
  28869. * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
  28870. * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
  28871. return without a value. Fix inconsistent indentation.
  28872. * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
  28873. match struct grub_fs.
  28874. * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
  28875. * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
  28876. * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
  28877. * commands/lspci.c (grub_lspci_iter): Likewise.
  28878. 2009-04-16 Bean <bean123ch@gmail.com>
  28879. * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
  28880. value.
  28881. 2009-04-15 Pavel Roskin <proski@gnu.org>
  28882. * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
  28883. LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
  28884. users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
  28885. definitions.
  28886. 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
  28887. * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
  28888. that no multiple data or metadata areas are supported and `Unknown
  28889. metadata header'.
  28890. 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
  28891. Move loader out of the kernel
  28892. * kern/loader.c: moved to ...
  28893. * commands/boot.c: ... moved here
  28894. * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
  28895. * commands/boot.c (grub_cmd_boot): moved here. All users updated
  28896. * include/grub/kernel.h (grub_machine_fini): export
  28897. * include/grub/loader.h (grub_loader_is_loaded): update declaration
  28898. (grub_loader_set): likewise
  28899. (grub_loader_unset): likewise
  28900. (grub_loader_boot): likewise
  28901. * conf/common.rmk: new module boot.mod
  28902. (pkglib_MODULES): add boot.mod
  28903. * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
  28904. (grub_emu_SOURCES): likewise
  28905. * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
  28906. (grub_emu_SOURCES): likewise
  28907. * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
  28908. (grub_emu_SOURCES): likewise
  28909. * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
  28910. (grub_emu_SOURCES): likewise
  28911. * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
  28912. (grub_emu_SOURCES): likewise
  28913. * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
  28914. (grub_emu_SOURCES): likewise
  28915. * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
  28916. (grub_emu_SOURCES): likewise
  28917. 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
  28918. use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
  28919. * kern/misc.c (grub_itoa): Removed function
  28920. (grub_ltoa): likewise
  28921. (grub_vsprintf): use grub_lltoa
  28922. 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
  28923. Restore grub-emu
  28924. * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
  28925. * conf/i386-coreboot.rmk: likewise
  28926. * conf/i386-ieee1275.rmk: likewise
  28927. * conf/powerpc-ieee1275.rmk: likewise
  28928. 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
  28929. * INSTALL: Add that `./autogen.sh' needs to be run before
  28930. `./configure.'.
  28931. 2009-04-14 Bean <bean123ch@gmail.com>
  28932. * Makefile.in (pkglib_DATA): Add handler.lst.
  28933. (handler.lst): New rule.
  28934. * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
  28935. * conf/i386-coreboot.rmk: Likewise.
  28936. * conf/i386-ieee1275.rmk: Likewise.
  28937. * conf/i386-efi.rmk: Likewise.
  28938. * conf/x86_64-efi.rmk: Likewise.
  28939. * conf/powerpc-ieee1275.rmk: Likewise.
  28940. * conf/sparc64-ieee1275.rmk: Likewise.
  28941. * genhandlerlist.sh: New file.
  28942. * genmk.rb: Add rules to generate handler.lst.
  28943. * include/grub/normal.h (grub_file_getline): New function definition.
  28944. (read_handler_list): Likewise.
  28945. (free_handler_list): Likewise.
  28946. * include/grub/term.h (grub_term_register_input): Add name parameter
  28947. for auto generation of handler.lst.
  28948. (grub_term_register_output): Likewise.
  28949. * normal/handler.c: New file.
  28950. * normal/main.c (get_line): Renamed to grub_file_getline.
  28951. (read_config_file): Use the newly renamed grub_file_getline.
  28952. (read_command_list): Likewise.
  28953. (read_fs_list): Likewise.
  28954. (grub_normal_execute): Call read_handler_list to parse handler.lst.
  28955. (GRUB_MOD_FINI): Call free_handler_list to free handler list.
  28956. * term/efi/console.c (grub_console_init): Add name parameter for auto
  28957. generation of handler.lst.
  28958. * term/gfxterm.c: Likewise.
  28959. * term/i386/pc/at_keyboard.c: Likewise.
  28960. * term/i386/pc/console.c: Likewise.
  28961. * term/i386/pc/serial.c: Likewise.
  28962. * term/i386/pc/vesafb.c: Likewise.
  28963. * term/i386/pc/vga.c: Likewise.
  28964. * term/i386/pc/vga_text.c: Likewise.
  28965. * term/ieee1275/ofconsole.c: Likewise.
  28966. * term/usb_keyboard.c: Likewise.
  28967. 2009-04-14 Bean <bean123ch@gmail.com>
  28968. * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
  28969. properly with null character.
  28970. 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
  28971. * configure: Remove.
  28972. * config.h.in: Likewise.
  28973. * stamp-h.in: Likewise.
  28974. * DISTLIST: Likewise.
  28975. * conf/common.mk: Likewise.
  28976. * conf/i386-coreboot.mk: Likewise.
  28977. * conf/i386-efi.mk: Likewise.
  28978. * conf/i386-ieee1275.mk: Likewise.
  28979. * conf/i386.mk: Likewise.
  28980. * conf/i386-pc.mk: Likewise.
  28981. * conf/powerpc-ieee1275.mk: Likewise.
  28982. * conf/sparc64-ieee1275.mk: Likewise.
  28983. * conf/x86_64-efi.mk: Likewise.
  28984. * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
  28985. develop on GRUB.
  28986. 2009-04-14 John Stanley <jpsinthemix@verizon.net>
  28987. David S. Miller <davem@davemloft.net>
  28988. * util/hostdisk.c (make_device_name): Fix buffer length
  28989. calculations.
  28990. 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
  28991. * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
  28992. <sys/param.h> and <sys/sysctl.h>.
  28993. (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
  28994. to add 0x10 to `kern.geom.debugflags' if it's not already set, before
  28995. opening the device and reset them afterwards.
  28996. 2009-04-13 Pavel Roskin <proski@gnu.org>
  28997. * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
  28998. Reported by John Stanley <jpsinthemix@verizon.net>
  28999. 2009-04-13 Robert Millan <rmh@aybabtu.com>
  29000. * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
  29001. that name for menuentries when appropriate.
  29002. 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
  29003. * util/grub.d/10_freebsd.in: Add a missing `fi'.
  29004. 2009-04-13 Robert Millan <rmh@aybabtu.com>
  29005. * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
  29006. to Linux, simply abort telling the user it's no longer supported.
  29007. 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
  29008. * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
  29009. doesn't exist. Check also for /boot/kernel/kernel.gz. Print
  29010. `freebsd_loadenv' only when devices.hints exist.
  29011. 2009-04-13 Pavel Roskin <proski@gnu.org>
  29012. * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
  29013. 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
  29014. * util/i386/pc/grub-install.in (install_drive): Remove the BSD
  29015. partition number.
  29016. (grub_drive): Likewise.
  29017. 2009-04-13 David S. Miller <davem@davemloft.net>
  29018. * kern/sparc64/ieee1275/ieee1275.c: New file.
  29019. * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
  29020. IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
  29021. IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
  29022. IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
  29023. (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
  29024. grub_ieee1275_alloc_physmem): Declare new exported functions.
  29025. * include/grub/sparc64/ieee1275/loader.h: New file.
  29026. * include/grub/sparc64/ieee1275/memory.h: Likewise.
  29027. * include/grub/sparc64/kernel.h: Likewise.
  29028. * loader/sparc64/ieee1275/linux.c: Likewise.
  29029. * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
  29030. (grub_fstest_SOURCES): Likewise.
  29031. * util/hostdisk.c (make_device_name): Do not make any assumptions
  29032. about the length of drive names.
  29033. * kern/dl.c (grub_dl_load_file): Close file immediately when
  29034. we are done using it.
  29035. 2009-04-12 David S. Miller <davem@davemloft.net>
  29036. * kern/misc.c (grub_ltoa): Fix cast when handling negative
  29037. values. Noticed by Pavel Roskin.
  29038. * configure.ac: Check for __bswapsi2 and__bswapdi2 using
  29039. target compiler.
  29040. * genmk.rb: Add more flexible image type specification, also
  29041. pass --strip-unneeded to objcopy.
  29042. * conf/i386-pc.rmk: Use *_FORMAT.
  29043. * conf/i386-pc.mk: Rebuilt.
  29044. * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
  29045. (OFDISK_HASH_SZ): Define.
  29046. (ofdisk_hash): New hash table.
  29047. (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
  29048. (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
  29049. instead of device phandle which is not unique.
  29050. * kern/sparc64/ieee1275/init.c: Delete, replace with...
  29051. * kern/sparc64/ieee1275/crt0.S: assembler implementation.
  29052. * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
  29053. (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
  29054. GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
  29055. GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
  29056. GRUB_KERNEL_MACHINE_DATA_END): Define.
  29057. (grub_kernel_image_size, grub_total_module_size): Declare.
  29058. 2009-04-12 Pavel Roskin <proski@gnu.org>
  29059. * configure.ac: Change the logic when we check for target tools.
  29060. Do it when the target is specified and it's different from the
  29061. specified value of the host.
  29062. 2009-04-11 Felix Zielcke <fzielcke@z-51.de>
  29063. * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
  29064. (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
  29065. GNU/kFreeBSD. Check if a device is a character device. Use
  29066. DIOCGMEDIASIZE to get the size.
  29067. (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
  29068. support for GNU/kFreeBSD.
  29069. (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
  29070. is a character device instead of a block device. Add support for
  29071. FreeBSD device names.
  29072. * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
  29073. is a character device instead of a block device.
  29074. * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
  29075. is a character device instead of a block device.
  29076. 2009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
  29077. * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
  29078. (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
  29079. FreeBSD. Check if a device is a character device. Use
  29080. DIOCGMEDIASIZE to get the size.
  29081. (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
  29082. support for FreeBSD.
  29083. (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
  29084. is a character device instead of a block device. Add support for
  29085. FreeBSD device names.
  29086. * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
  29087. a character device instead of a block device.
  29088. (grub_util_check_char_device): New function.
  29089. * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
  29090. a character device instead of a block device.
  29091. * include/grub/util/getroot.h (grub_util_check_char_device): New
  29092. prototype.
  29093. 2009-04-11 David S. Miller <davem@davemloft.net>
  29094. * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
  29095. static libgcc.
  29096. * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
  29097. * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
  29098. function, if present.
  29099. (__bswapdi2): Likewise.
  29100. * include/grub/sparc64/ieee1275/boot.h: New file.
  29101. * boot/sparc64/ieee1275/boot.S: Likewise.
  29102. * boot/sparc64/ieee1275/diskboot.S: Likewise.
  29103. * kern/misc.c (grub_ltoa): New function.
  29104. (grub_vsprintf): Use it to format 'long' integers.
  29105. 2009-04-10 David S. Miller <davem@davemloft.net>
  29106. * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
  29107. slots are of type grub_ieee1275_cell_t.
  29108. (grub_nand_read): Likewise.
  29109. * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
  29110. IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
  29111. macros are used to compare values in arg/ret block of the call.
  29112. (grub_ieee1275_finddevice, grub_ieee1275_get_property,
  29113. grub_ieee1275_next_property, grub_ieee1275_get_property_length,
  29114. grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
  29115. grub_ieee1275_instance_to_path, grub_ieee1275_write,
  29116. grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
  29117. grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
  29118. grub_ieee1275_close, grub_ieee1275_set_property,
  29119. grub_ieee1275_set_color): All ieee1275 call arg slots are of type
  29120. grub_ieee1275_cell_t.
  29121. * kern/ieee1275/openfw.c (grub_map): Likewise.
  29122. * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
  29123. grub_ieee1275_phandle_t): Define as grub_unit32_t type.
  29124. * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
  29125. * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
  29126. (grub_devalias_iterate): Likewise.
  29127. 2009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
  29128. UFS improvements
  29129. * fs/ufs.c (INODE_NBLOCKS): new definition
  29130. (struct grub_ufs_dirent): added fields for non-BSD dirents
  29131. (grub_ufs_get_file_block): fixed double indirect handling
  29132. (grub_ufs_lookup_symlink): use more robust way to determine whether
  29133. symlink is inline
  29134. (grub_ufs_find_file): support for non-BSD dirents
  29135. (grub_ufs_dir): support for non-BSD dirents
  29136. 2009-04-10 Bean <bean123ch@gnail.com>
  29137. * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
  29138. attribute, otherwise the size would be wrong for i386 platform.
  29139. * include/grub/pci.h (grub_pci_read_word): New inline function.
  29140. (grub_pci_read_byte): Likewise.
  29141. (grub_pci_write): Likewise.
  29142. (grub_pci_write_word): Likewise.
  29143. (grub_pci_write_byte): Likewise.
  29144. * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
  29145. * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
  29146. (find_framebuf): Scan pci to locate the frame buffer address.
  29147. * commands/efi/fixvideo.c: New file.
  29148. * commands/efi/loadbios.c: Likewise.
  29149. * commands/memrw.c: Likewise.
  29150. * util/grub-dumpbios.in: Likewise.
  29151. * conf/common.rmk (grub-dumpbios): New utility.
  29152. (pkglib_MODULES): New module memrw.mod.
  29153. (memrw_mod_SOURCE): New macro.
  29154. (memrw_mod_CFLAGS): Likewise.
  29155. (memrw_mod_LDFLAGS): Likewise.
  29156. * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
  29157. fixvideo.mod.
  29158. (loadbios_mod_SOURCE): New macro.
  29159. (loadbios_mod_CFLAGS): Likewise.
  29160. (loadbios_mod_LDFLAGS): Likewise.
  29161. (fixvideo_mod_SOURCE): Likewise.
  29162. (fixvideo_mod_CFLAGS): Likewise.
  29163. (fixvideo_mod_LDFLAGS): Likewise.
  29164. * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
  29165. fixvideo.mod.
  29166. (loadbios_mod_SOURCE): New macro.
  29167. (loadbios_mod_CFLAGS): Likewise.
  29168. (loadbios_mod_LDFLAGS): Likewise.
  29169. (fixvideo_mod_SOURCE): Likewise.
  29170. (fixvideo_mod_CFLAGS): Likewise.
  29171. (fixvideo_mod_LDFLAGS): Likewise.
  29172. 2009-04-08 Felix Zielcke <fzielcke@z-51.de>
  29173. * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
  29174. 2009-04-07 David S. Miller <davem@davemloft.net>
  29175. * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
  29176. support for R_SPARC_OLO10 relocations. Fix compile warning for
  29177. R_SPARC_WDISP30 case.
  29178. * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
  29179. 2009-04-06 Pavel Roskin <proski@gnu.org>
  29180. * include/grub/misc.h (ARRAY_SIZE): New macro.
  29181. * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
  29182. New macro.
  29183. * loader/i386/linux.c (allocate_pages): Use free_pages().
  29184. (grub_linux_unload): Don't use free_pages().
  29185. (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
  29186. wrong index. Treat all other modes as text modes.
  29187. (grub_cmd_linux): Initialize vid_mode unconditionally to
  29188. GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
  29189. * commands/help.c (print_command_help): Use cmd->prio, not
  29190. cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
  29191. 2009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
  29192. Parttool
  29193. * parttool/pcpart.c: new file
  29194. * commands/parttool.c: likewise
  29195. * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
  29196. (parttool_mod_SOURCES): new variable
  29197. (parttool_mod_CFLAGS): likewise
  29198. (parttool_mod_LDFLAGS): likewise
  29199. (pcpart_mod_SOURCES): likewise
  29200. (pcpart_mod_CFLAGS): likewise
  29201. (pcpart_mod_LDFLAGS): likewise
  29202. * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
  29203. and parttool/pcpart.c
  29204. * conf/i386-efi.rmk: likewise
  29205. * conf/i386-ieee1275.rmk: likewise
  29206. * conf/i386-pc.rmk: likewise
  29207. * conf/powerpc-ieee1275.rmk: likewise
  29208. * conf/sparc64-ieee1275.rmk: likewise
  29209. * conf/x86_64-ieee1275.rmk: likewise
  29210. 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
  29211. Support for mtime and further expandability of dir command
  29212. * include/grub/lib/datetime.h: moved to ...
  29213. * include/grub/datetime.h: ... moved here and added
  29214. declaration of grub_unixtime2datetime. All users updated
  29215. * include/grub/fs.h: new syntax for dir and mtime functions in
  29216. struct grub_fs
  29217. * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
  29218. and GRUB_FSHELP_FLAGS_MASK
  29219. * commands/ls.c (grub_ls_list_files): Write mtime in long format
  29220. * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
  29221. (grub_ext2_mtime): new function
  29222. * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
  29223. (grub_hfsplus_mtime): new function
  29224. * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
  29225. (GRUB_UFS_ATTR_FILE): likewise
  29226. (GRUB_UFS_ATTR_LNK): likewise
  29227. (struct grub_ufs_sblock): new fields mtime
  29228. (grub_ufs_read_inode): new parameter to read inode to a separate buffer
  29229. all users updated
  29230. (grub_ufs_dir): mtime support
  29231. (grub_ufs_mtime): new function
  29232. * fs/affs.c (grub_affs_dir): use new dir syntax
  29233. * fs/afs.c (grub_afs_dir): likewise
  29234. * fs/cpio.c (grub_cpio_dir): likewise
  29235. * fs/fat.c (grub_fat_find_dir): likewise
  29236. * fs/hfs.c (grub_hfs_dir): likewise
  29237. * fs/iso9660.c (grub_iso9660_dir): likewise
  29238. * fs/jfs.c (grub_jfs_dir): likewise
  29239. * fs/minix.c (grub_minix_dir): likewise
  29240. * fs/ntfs.c (grub_ntfs_dir): likewise
  29241. * fs/reiserfs.c (grub_reiserfs_dir): likewise
  29242. * fs/sfs.c (grub_sfs_dir): likewise
  29243. * fs/xfs.c (grub_xfs_dir): likewise
  29244. * util/hostfs.c (grub_hostfs_dir): likewise
  29245. * lib/datetime.c: moved to ...
  29246. * normal/datetime.c: ... moved here
  29247. (grub_unixtime2datetime): new function
  29248. * kern/rescue.c (grub_rescue_print_files): use new dir syntax
  29249. * normal/completion.c (iterate_dir): use new dir syntax
  29250. * normal/misc.c (grub_normal_print_device_info): tell the
  29251. last modification time of a volume
  29252. * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
  29253. * conf/common.rmk: added lib/datetime.c to ls.mod
  29254. * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
  29255. (normal_mod_SOURCES): likewise
  29256. (datetime_mod_SOURCES): Removed lib/datetime.c
  29257. * conf/i386-efi.rmk: likewise
  29258. * conf/i386-ieee1275.rmk: likewise
  29259. * conf/i386-pc.rmk: likewise
  29260. * conf/powerpc-ieee1275.rmk: likewise
  29261. * conf/sparc64-ieee1275.rmk: likewise
  29262. * conf/x86_64-efi.rmk: likewise
  29263. 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
  29264. Trim trailing spaces in FAT label and support mtools-like labels
  29265. * fs/fat.c (grub_fat_iterate_dir): New function based
  29266. on grub_fat_find_dir
  29267. (grub_fat_find_dir): use grub_fat_iterate_dir
  29268. (grub_fat_label): likewise
  29269. 2009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
  29270. * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
  29271. and command.h
  29272. remove extraneous kernel_elf_HEADERS
  29273. 2009-04-04 Bean <bean123ch@gnail.com>
  29274. * include/grub/util/misc.h: Add dummy function fsync for mingw.
  29275. * util/misc.c: Likewise.
  29276. 2009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
  29277. * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
  29278. instead of grub_printf.
  29279. 2009-04-03 Robert Millan <rmh@aybabtu.com>
  29280. * loader/i386/linux.c (grub_linux_setup_video): Fill
  29281. `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
  29282. values from `mode info' structure instead of hardcoded
  29283. values.
  29284. 2009-04-01 Pavel Roskin <proski@gnu.org>
  29285. * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
  29286. unused now.
  29287. * genmk.rb: Likewise.
  29288. * configure.ac: Likewise.
  29289. 2009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
  29290. * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
  29291. TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
  29292. 2009-04-01 David S. Miller <davem@davemloft.net>
  29293. * normal/sparc64/setjmp.S: Fix setjmp implementation.
  29294. * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
  29295. (grub_setjmp): Mark with 'returns_twice' attribute.
  29296. * include/grub/i386/setjmp.h (grub_setjmp): Likewise
  29297. * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
  29298. * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
  29299. 2009-04-01 Robert Millan <rmh@aybabtu.com>
  29300. Reapply fix from 2008-07-28 which was accidentally reverted; also
  29301. perform the same fix to a similar check in same function.
  29302. * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
  29303. with the same number are found, just use issue a warning with
  29304. grub_dprintf(), as this error has been reported to be non-fatal.
  29305. 2009-03-31 Pavel Roskin <proski@gnu.org>
  29306. * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
  29307. for cross-compilation.
  29308. 2009-03-30 Robert Millan <rmh@aybabtu.com>
  29309. Fix i386-ieee1275 build.
  29310. * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
  29311. Remove declaration.
  29312. 2009-03-30 Pavel Roskin <proski@gnu.org>
  29313. * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
  29314. (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
  29315. zero-terminated, rely only on the strlen value. Fix comparison
  29316. of strings differing in length.
  29317. 2009-03-30 Robert Millan <rmh@aybabtu.com>
  29318. * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
  29319. checking for abi version. Improve error messages on BIOS to notify
  29320. user about `linux16' command.
  29321. 2009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
  29322. Leak fixes
  29323. * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
  29324. in case of collision
  29325. * disk/scsi.c (grub_scsi_open): free scsi in case of error
  29326. 2009-03-29 Robert Millan <rmh@aybabtu.com>
  29327. * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
  29328. set `vid_mode' accordingly.
  29329. (grub_linux_boot): Process `vid_mode' and set video mode.
  29330. 2009-03-29 Robert Millan <rmh@aybabtu.com>
  29331. * util/grub.d/10_linux.in (linux_entry): New function.
  29332. Factorize generation of Linux boot entries.
  29333. 2009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
  29334. Make the format of Environment Block plain text. The boot loader
  29335. part is not tested well yet.
  29336. * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
  29337. (buffer): Removed.
  29338. (envblk): Likewise.
  29339. (usage): Remove "info" and "clear". Add "unset". Update the
  29340. description of "set", as this does not delete variables any
  29341. longer.
  29342. (create_envblk_file): Complete rewrite.
  29343. (open_envblk_file): Likewise.
  29344. (cmd_info): Removed.
  29345. (cmd_list): Likewise.
  29346. (cmd_set): Likewise.
  29347. (cmd_clear): Likewise.
  29348. (list_variables): New function.
  29349. (write_envblk): Likewise.
  29350. (set_variables): Likewise.
  29351. (unset_variables): Likewise.
  29352. (main): Complete rewrite.
  29353. * commands/loadenv.c (buffer): Removed.
  29354. (envblk): Likewise.
  29355. (open_envblk_file): New function.
  29356. (read_envblk_file): Complete rewrite.
  29357. (grub_cmd_load_env): Likewise.
  29358. (grub_cmd_list_env): Likewise.
  29359. (struct blocklist): New struct.
  29360. (free_blocklists): New function.
  29361. (check_blocklists): Likewise.
  29362. (write_blocklists): Likewise.
  29363. (grub_cmd_save_env): Complete rewrite.
  29364. * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
  29365. a plain text signature.
  29366. (GRUB_ENVBLK_MAXLEN): Removed.
  29367. (struct grub_envblk): Complete rewrite.
  29368. (grub_envblk_find): Removed.
  29369. (grub_envblk_insert): Likewise.
  29370. (grub_envblk_open): New prototype.
  29371. (grub_envblk_set): Likewise.
  29372. (grub_envblk_delete): Put const to VALUE.
  29373. (grub_envblk_iterate): Put const to NAME and VALUE.
  29374. (grub_envblk_close): New prototype.
  29375. (grub_envblk_buffer): New inline function.
  29376. (grub_envblk_size): Likewise.
  29377. * lib/envblk.c: Include grub/mm.h.
  29378. (grub_env_find): Removed.
  29379. (grub_envblk_open): New function.
  29380. (grub_envblk_close): Likewise.
  29381. (escaped_value_len): Likewise.
  29382. (find_next_line): Likewise.
  29383. (grub_envblk_insert): Removed.
  29384. (grub_envblk_set): New function.
  29385. (grub_envblk_delete): Complete rewrite.
  29386. (grub_envblk_iterate): Likewise.
  29387. 2009-03-28 Robert Millan <rmh@aybabtu.com>
  29388. * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
  29389. (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
  29390. variables. Use 16-bit loader.
  29391. (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
  29392. loader.
  29393. * kern/i386/loader.S (grub_linux_boot): Rename to ...
  29394. (grub_linux16_boot): ... this. Update all users.
  29395. * loader/i386/linux.c (grub_linux32_boot): Rename to ...
  29396. (grub_linux_boot): ... this. Update all users.
  29397. * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
  29398. (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
  29399. commands to `linux16' and `initrd16'.
  29400. (GRUB_MOD_FINI(linux)): Rename to ...
  29401. (GRUB_MOD_FINI(linux16)): ... this.
  29402. 2009-03-24 Pavel Roskin <proski@gnu.org>
  29403. * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
  29404. not just for compilation.
  29405. 2009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
  29406. Move multiboot helper out of kernel
  29407. * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
  29408. `loader/i386/multiboot_helper.S'.
  29409. * conf/i386-coreboot.rmk: Likewise
  29410. * conf/i386-ieee1275.rmk: Likewise
  29411. * kern/i386/loader.S: Move multiboot helpers from here...
  29412. * loader/i386/multiboot_helper.S: ...moved here
  29413. * include/grub/i386/loader.h: Move declarations of multiboot
  29414. helpers from here...
  29415. * include/grub/i386/multiboot.h: ...moved here
  29416. * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
  29417. 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
  29418. * kern/env.c (grub_env_context_open): Added an argument to specify
  29419. whether a new context inherits exported variables from current
  29420. one. This is useful when making a sandbox to interpret a config
  29421. file.
  29422. All callers updated.
  29423. * include/grub/env.h (grub_env_context_open): Updated the prototype.
  29424. 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
  29425. * kern/env.c (grub_env_context_close): Fix memory leaks.
  29426. 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
  29427. * normal/main.c (grub_normal_execute): Added an argument
  29428. BATCH to specify if an interactive interface should be provided
  29429. after reading a config file.
  29430. All callers updated.
  29431. (read_command_list): Prevent being executed twice.
  29432. (read_fs_list): Likewise.
  29433. * include/grub/normal.h (grub_normal_execute): Updated the
  29434. prototype.
  29435. 2009-03-22 Pavel Roskin <proski@gno.org>
  29436. * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
  29437. _start.
  29438. * kern/i386/pc/startup.S: Likewise.
  29439. * kern/i386/efi/startup.S: Likewise.
  29440. * kern/i386/ieee1275/startup.S: Likewise.
  29441. * kern/i386/coreboot/startup.S: Likewise.
  29442. * kern/x86_64/efi/startup.S: Likewise.
  29443. * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
  29444. * configure.ac: Don't call grub_CHECK_START_SYMBOL.
  29445. * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
  29446. 2009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
  29447. Bugfixes in multiboot for bugs uncovered by solaris kernel.
  29448. * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
  29449. limit detection.
  29450. Use vaddr of correct segment for entry_point.
  29451. 2009-03-21 Bean <bean123ch@gmail.com>
  29452. * commands/blocklist.c: Add include file <grub/command.h>, remove
  29453. <grub/normal.h> and <grub/arg.h>.
  29454. (grub_cmd_blocklist): Use the new command interface.
  29455. (GRUB_MOD_INIT): Likewise.
  29456. (GRUB_MOD_FINI): Likewise.
  29457. * commands/boot.c: Likewise.
  29458. * commands/cat.c: Likewise.
  29459. * commands/cmp.c: Likewise.
  29460. * commands/configfile.c: Likewise.
  29461. * commands/crc.c: Likewise.
  29462. * commands/echo.c: Likewise.
  29463. * commands/halt.c: Likewise.
  29464. * commands/handler.c: Likewise.
  29465. * commands/hdparm.c: Likewise.
  29466. * commands/help.c: Likewise.
  29467. * commands/hexdump.c: Likewise.
  29468. * commands/loadenv.c: Likewise.
  29469. * commands/ls.c: Likewise.
  29470. * commands/lsmmap.c: Likewise.
  29471. * commands/lspci.c: Likewise.
  29472. * commands/loadenv.c: Likewise.
  29473. * commands/read.c: Likewise.
  29474. * commands/reboot.c: Likewise.
  29475. * commands/search.c: Likewise.
  29476. * commands/sleep.c: Likewise.
  29477. * commands/test.c: Likewise.
  29478. * commands/usbtest.c: Likewise.
  29479. * commands/videotest.c: Likewise.
  29480. * commands/i386/cpuid.c: Likewise.
  29481. * commands/i386/pc/halt.c: Likewise.
  29482. * commands/i386/pc/play.c: Likewise.
  29483. * commands/i386/pc/pxecmd.c: Likewise.
  29484. * commands/i386/pc/vbeinfo.c: Likewise.
  29485. * commands/i386/pc/vbetest.c: Likewise.
  29486. * commands/ieee1275/suspend.c: Likewise.
  29487. * disk/loopback.c: Likewise.
  29488. * font/font_cmd.c: Likewise.
  29489. * hello/hello.c: Likewise.
  29490. * loader/efi/appleloader.c: Likewise.
  29491. * loader/efi/chainloader.c: Likewise.
  29492. * loader/i386/bsd.c: Likewise.
  29493. * loader/i386/efi/linux.c: Likewise.
  29494. * loader/i386/ieee1275/linux.c: Likewise.
  29495. * loader/i386/linux.c: Likewise.
  29496. * loader/i386/pc/chainloader.c: Likewise.
  29497. * loader/i386/pc/linux.c: Likewise.
  29498. * loader/powerpc/ieee1275/linux.c: Likewise.
  29499. * loader/multiboot_loader.c: Likewise.
  29500. * term/gfxterm.c: Likewise.
  29501. * term/i386/pc/serial.c: Likewise.
  29502. * term/terminfo.c: Likewise.
  29503. * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
  29504. * term/i386/pc/vga.c: Likewise.
  29505. * video/readers/jpeg.c: Likewise.
  29506. * video/readers/png.c: Likewise.
  29507. * video/readers/tga.c: Likewise.
  29508. * util/grub-fstest (cmd_loopback): Removed.
  29509. (cmd_blocklist): Likewise.
  29510. (cmd_ls): Likewise.
  29511. (grub_register_command): Likewise.
  29512. (grub_unregister_command): Likewise.
  29513. (execute_command): Use grub_command_find to locate command and execute
  29514. it.
  29515. * include/grub/efi/chainloader.h: Removed.
  29516. * loader/efi/chainloader_normal.c: Likewise.
  29517. * loader/i386/bsd_normal.c: Likewise.
  29518. * loader/i386/pc/chainloader_normal.c: Likewise.
  29519. * loader/i386/pc/multiboot_normal.c: Likewise.
  29520. * loader/linux_normal.c: Likewise.
  29521. * loader/multiboot_loader_normal.c: Likewise.
  29522. * loader/powerpc/ieee1275/linux_normal.c: Likewise.
  29523. * gencmdlist.sh: Scan new registration command grub_register_extcmd
  29524. and grub_register_command_p1.
  29525. * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
  29526. kern/command.c, lib/arg.c and commands/extcmd.c.
  29527. (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
  29528. (minicmd_mod_SOURCES): New variable.
  29529. (minicmd_mod_CFLAGS): Likewise.
  29530. (minicmd_mod_LDFLAGS): Likewise.
  29531. (extcmd_mod_SOURCES): Likewise.
  29532. (extcmd_mod_CFLAGS): Likewise.
  29533. (extcmd_mod_LDFLAGS): Likewise.
  29534. (boot_mod_SOURCES): Removed.
  29535. (boot_mod_CFLAGS): Likewise.
  29536. (boot_mod_LDFLAGS): Likewise.
  29537. * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
  29538. kern/corecmd.c.
  29539. (kernel_img_HEADERS): Add command.h.
  29540. (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
  29541. commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
  29542. and lib/arg.c.
  29543. (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
  29544. _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
  29545. remove the corresponding normal mode command.
  29546. (normal_mod_SOURCES): Remove normal/arg.c.
  29547. * conf/i386-coreboot.rmk: Likewise.
  29548. * conf/i386-efi.rmk: Likewise.
  29549. * conf/i386-ieee1275.rmk: Likewise.
  29550. * conf/powerpc-ieee1275.rmk: Likewise.
  29551. * conf/x86_64-efi.rmk: Likewise.
  29552. * include/grub/arg.h: Move from here ...
  29553. * include/grub/lib/arg.h: ... to here.
  29554. * normal/arg.c: Move from here ...
  29555. * lib/arg.c: ... to here.
  29556. * commands/extcmd.c: New file.
  29557. * commands/minicmd.c: Likewise.
  29558. * include/grub/command.h: Likewise.
  29559. * include/grub/extcmd.h: Likewise.
  29560. * kern/command.c: Likewise.
  29561. * kern/corecmd.c: Likewise.
  29562. * kern/list.c (grub_list_iterate): Return int instead of void.
  29563. (grub_list_insert): New function.
  29564. (grub_prio_list_insert): Likewise.
  29565. * kern/rescue.c (grub_rescue_command): Removed.
  29566. (grub_rescue_command_list): Likewise.
  29567. (grub_rescue_register_command): Likewise.
  29568. (grub_rescue_unregister_command): Likewise.
  29569. (grub_rescue_cmd_boot): Move to minicmd.c
  29570. (grub_rescue_cmd_help): Likewise.
  29571. (grub_rescue_cmd_info): Likewise.
  29572. (grub_rescue_cmd_boot): Likewise.
  29573. (grub_rescue_cmd_testload): Likewise.
  29574. (grub_rescue_cmd_dump): Likewise.
  29575. (grub_rescue_cmd_rmmod): Likewise.
  29576. (grub_rescue_cmd_lsmod): Likewise.
  29577. (grub_rescue_cmd_exit): Likewise.
  29578. (grub_rescue_print_devices): Moved to corecmd.c.
  29579. (grub_rescue_print_files): Likewise.
  29580. (grub_rescue_cmd_ls): Likewise.
  29581. (grub_rescue_cmd_insmod): Likewise.
  29582. (grub_rescue_cmd_set): Likewise.
  29583. (grub_rescue_cmd_unset): Likewise.
  29584. (attempt_normal_mode): Use grub_command_find to get normal module.
  29585. (grub_enter_rescue_mode): Use grub_register_core_commands to register
  29586. commands, remove grub_rescue_register_command calls.
  29587. * normal/command.c (grub_register_command): Removed.
  29588. (grub_unregister_command): Likewise.
  29589. (grub_command_find): Likewise.
  29590. (grub_iterate_commands): Likewise.
  29591. (rescue_command): Likewise.
  29592. (export_command): Moved to corecmd.c.
  29593. (set_command): Removed.
  29594. (unset_command): Likewise.
  29595. (insmod_command): Likewise.
  29596. (rmmod_command): Likewise.
  29597. (lsmod_command): Likewise.
  29598. (grub_command_init): Likewise.
  29599. * normal/completion.c (iterate_command): Use cmd->prio to check for
  29600. active command.
  29601. (complete_arguments): Use grub_extcmd_t structure to find options.
  29602. (grub_normal_do_completion): Change function grub_iterate_commands to
  29603. grub_command_iterate.
  29604. * normal/execute.c (grub_script_execute_cmd): No need to parse
  29605. argument here.
  29606. * normal/main.c (grub_dyncmd_dispatcher): New function.
  29607. (read_command_list): Register unload commands as dyncmd.
  29608. (grub_cmd_normal): Use new command interface, register rescue,
  29609. unregister normal at entry, register normal, unregister rescue at exit.
  29610. * include/grub/list.h (grub_list_test_t): New type.
  29611. (grub_list_iterate): Return int instead of void.
  29612. (grub_list_insert): New function.
  29613. (GRUB_AS_NAMED_LIST_P): New macro.
  29614. (GRUB_AS_PRIO_LIST): Likewise.
  29615. (GRUB_AS_PRIO_LIST_P): Likewise.
  29616. (GRUB_PRIO_LIST_PRIO_MASK): New constant.
  29617. (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
  29618. (grub_prio_list): New structure.
  29619. (grub_prio_list_insert): New function.
  29620. (grub_prio_list_remove): New inline function.
  29621. * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
  29622. (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
  29623. (GRUB_COMMAND_FLAG_MENU): Likewise.
  29624. (GRUB_COMMAND_FLAG_BOTH): Likewise.
  29625. (GRUB_COMMAND_FLAG_TITLE): Likewise.
  29626. (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
  29627. (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
  29628. (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
  29629. (grub_command): Likewise.
  29630. (grub_register_command): Likewise.
  29631. (grub_command_find): Likewise.
  29632. (grub_iterate_commands): Likewise.
  29633. (grub_command_init): Likewise.
  29634. (grub_arg_parse): Likewise.
  29635. (grub_arg_show_help): Likewise.
  29636. * include/grub/rescue.h (grub_rescue_register_command): Removed.
  29637. (grub_rescue_unregister_command): Likewise.
  29638. * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
  29639. grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
  29640. grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
  29641. * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
  29642. grub_rescue_cmd_initrd.
  29643. * include/grub/i386/loader.h: Likewise.
  29644. * include/grub/x86_64/loader.h: Likewise.
  29645. * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
  29646. 2009-03-21 Bean <bean123ch@gmail.com>
  29647. * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
  29648. instead of stat in mingw environment.
  29649. * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
  29650. * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
  29651. * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
  29652. AC_CONFIG_LINKS.
  29653. 2009-03-21 Bean <bean123ch@gmail.com>
  29654. * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
  29655. out of range error.
  29656. 2009-03-18 Michel Dänzer <michel@daenzer.net>
  29657. * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
  29658. checking inode flags for EXT4_EXTENTS_FLAG.
  29659. 2009-03-18 Robert Millan <rmh@aybabtu.com>
  29660. * loader/i386/linux.c: Include `<grub/video.h>' and
  29661. `<grub/i386/pc/vbe.h>'..
  29662. (grub_linux_setup_video): New function. Loosely based on the EFI one.
  29663. (grub_linux32_boot): Attempt to configure video settings with
  29664. grub_linux_setup_video().
  29665. (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
  29666. to avoid grub_console_fini() which would step out of graphical mode
  29667. unconditionally.
  29668. 2009-03-14 Robert Millan <rmh@aybabtu.com>
  29669. Fix build on powerpc.
  29670. * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
  29671. 2009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
  29672. * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
  29673. background image command.
  29674. 2009-03-12 Colin D Bennett <colin@gibibit.com>
  29675. * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
  29676. (grub_gfxterm_putchar): Extract pairs of identical calls to
  29677. draw_cursor out of conditional blocks.
  29678. 2009-03-11 Pavel Roskin <proski@gnu.org>
  29679. * fs/hfs.c (grub_hfs_strncasecmp): New function.
  29680. (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
  29681. 2009-03-11 Robert Millan <rmh@aybabtu.com>
  29682. * loader/i386/multiboot_elfxx.c
  29683. (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
  29684. 2009-03-11 Felix Zielcke <fzielcke@z-51.de>
  29685. * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
  29686. `kern/handler.c'.
  29687. 2009-03-11 Robert Millan <rmh@aybabtu.com>
  29688. * loader/i386/multiboot.c (code_size): New variable.
  29689. (grub_multiboot): Define offsets by adding to `code_size' rather
  29690. than subtracting from `grub_multiboot_payload_size'. Provide
  29691. 4-byte alignment to MBI and others by increasing
  29692. `boot_loader_name_length' appropriately.
  29693. * loader/i386/multiboot_elfxx.c
  29694. (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
  29695. 2009-03-09 Felix Zielcke <fzielcke@z-51.de>
  29696. * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
  29697. `fs/ext2.c'.
  29698. 2009-03-08 Robert Millan <rmh@aybabtu.com>
  29699. Make loader/i386/linux.c usable on i386-pc again.
  29700. * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
  29701. memory to heap.
  29702. * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
  29703. `#error' stanza.
  29704. 2009-03-07 Bean <bean123ch@gmail.com>
  29705. * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
  29706. allocation.
  29707. 2009-03-06 Robert Millan <rmh@aybabtu.com>
  29708. Fix display issue on terminals with screen size other than 80x25
  29709. (e.g. gfxterm with resolution higher than 640x480).
  29710. * normal/main.c (grub_normal_init_page): Display title text in a
  29711. position relative to the center of the terminal instead of relying
  29712. on a hardcoded offset.
  29713. 2009-03-04 Robert Millan <rmh@aybabtu.com>
  29714. Filter /etc/grub.d/10_* so that only add-ons for native kernels are
  29715. installed.
  29716. * Makefile.in (host_kernel): New variable.
  29717. * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
  29718. scripts instead of just the windows one.
  29719. * configure.ac: Initialize and AC_SUBST `host_kernel'.
  29720. 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
  29721. * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
  29722. `kern/handler.c'.
  29723. * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
  29724. * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
  29725. * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
  29726. * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
  29727. * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
  29728. * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
  29729. 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
  29730. * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
  29731. or if there's no space for the disk label and print the partition number on a
  29732. invalid magic.
  29733. 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
  29734. * util/misc.c: Include <time.h>.
  29735. (grub_millisleep): New function.
  29736. 2009-03-04 Bean <bean123ch@gmail.com>
  29737. * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
  29738. another option -mno-red-zone.
  29739. * commands/handler.c: Change module description.
  29740. * kern/handler.c: Add missing space at the end of description line.
  29741. * kern/list.c: Likewise.
  29742. 2009-03-03 Robert Millan <rmh@aybabtu.com>
  29743. Move more components to the relocation area, and fix mbi pointer
  29744. handling to use the destination rather than the origin (thanks to
  29745. Vladimir Serbinenko for spotting).
  29746. * loader/i386/multiboot.c (mbi_dest): New variable.
  29747. (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
  29748. (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
  29749. relocation area.
  29750. 2009-03-01 Bean <bean123ch@gmail.com>
  29751. * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
  29752. (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
  29753. (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
  29754. (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
  29755. * loader/i386/efi/linux.c (acpi_guid): New variable.
  29756. (acpi_guid): Likewise.
  29757. (EBDA_SEG_ADDR): New constant.
  29758. (LOW_MEM_ADDR): Likewise.
  29759. (FAKE_EBDA_SEG): Likewise.
  29760. (fake_bios_data): New function.
  29761. (grub_linux_boot): Call fake_bios_data.
  29762. 2009-03-01 Bean <bean123ch@gmail.com>
  29763. * commands/terminal.c: Removed.
  29764. * commands/handler.c: New file.
  29765. * include/grub/list.h: Likewise.
  29766. * include/grub/handler.h: Likewise.
  29767. * kern/list.c: Likewise.
  29768. * kern/handler.c: Likewise.
  29769. * kern/term.h: Include header file <grub/handler.h>.
  29770. (grub_term_input): Move next field to the beginning.
  29771. (grub_term_output): Likewise.
  29772. (grub_term_input_class): New variable.
  29773. (grub_term_output_class): Likewise.
  29774. (grub_term_register_input): Changed to inline function.
  29775. (grub_term_register_output): Likewise.
  29776. (grub_term_unregister_input): Likewise.
  29777. (grub_term_unregister_output): Likewise.
  29778. (grub_term_set_current_input): Likewise.
  29779. (grub_term_set_current_output): Likewise.
  29780. (grub_term_get_current_input): Likewise.
  29781. (grub_term_get_current_output): Likewise.
  29782. (grub_term_iterate_input): Removed.
  29783. (grub_term_iterate_output): Likewise.
  29784. * kern/term.c (grub_term_list_input): Removed.
  29785. (grub_term_list_output): Likewise.
  29786. (grub_term_input_class): New variable.
  29787. (grub_term_output_class): Likewise.
  29788. (grub_cur_term_input): Change variable as macro.
  29789. (grub_cur_term_output): Likewise.
  29790. (grub_term_register_input): Removed.
  29791. (grub_term_register_output): Likewise.
  29792. (grub_term_unregister_input): Likewise.
  29793. (grub_term_unregister_output): Likewise.
  29794. (grub_term_set_current_input): Likewise.
  29795. (grub_term_set_current_output): Likewise.
  29796. (grub_term_iterate_input): Likewise.
  29797. (grub_term_iterate_output): Likewise.
  29798. (grub_term_get_current_input): Likewise.
  29799. (grub_term_get_current_output): Likewise.
  29800. * util/grub-editenv.c: Include header file <grub/handler.h>.
  29801. (grub_term_get_current_input): Removed.
  29802. (grub_term_get_current_output): Likewise.
  29803. (grub_term_input_class): New variable.
  29804. (grub_term_output_class): Likewise.
  29805. * util/grub-fstest.c (grub_term_get_current_input): Removed.
  29806. (grub_term_get_current_output): Likewise.
  29807. (grub_term_input_class): New variable.
  29808. (grub_term_output_class): Likewise.
  29809. * util/grub-probe.c (grub_term_get_current_input): Removed.
  29810. (grub_term_get_current_output): Likewise.
  29811. (grub_term_input_class): New variable.
  29812. (grub_term_output_class): Likewise.
  29813. * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
  29814. (grub_term_get_current_output): Likewise.
  29815. (grub_term_input_class): New variable.
  29816. (grub_term_output_class): Likewise.
  29817. * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
  29818. (terminal_mod_SOURCES): Likewise.
  29819. (terminal_mod_CFLAGS): Likewise.
  29820. (terminal_mod_LDFLAGS): Likewise.
  29821. * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
  29822. handler.c.
  29823. (kernel_img_SOURCES): Add list.c and handler.c.
  29824. (kernel_img_HEADERS): Add list.h and handler.h.
  29825. * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
  29826. handler.c.
  29827. (kernel_mod_SOURCES): Add list.c and handler.c.
  29828. (kernel_mod_HEADERS): Add list.h and handler.h.
  29829. * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
  29830. handler.c.
  29831. (kernel_elf_SOURCES): Add list.c and handler.c.
  29832. (kernel_elf_HEADERS): Add list.h and handler.h.
  29833. * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
  29834. handler.c.
  29835. (kernel_elf_SOURCES): Add list.c and handler.c.
  29836. (kernel_elf_HEADERS): Add list.h and handler.h.
  29837. * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
  29838. handler.c.
  29839. (kernel_mod_SOURCES): Add list.c and handler.c.
  29840. (kernel_mod_HEADERS): Add list.h and handler.h.
  29841. * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
  29842. handler.c.
  29843. (kernel_elf_SOURCES): Add list.c and handler.c.
  29844. (kernel_elf_HEADERS): Add list.h and handler.h.
  29845. 2009-02-27 Robert Millan <rmh@aybabtu.com>
  29846. Factorize elf32 / elf64 code in Multiboot loader. This will
  29847. prevent it from getting out of sync again.
  29848. * loader/i386/multiboot.c (grub_multiboot_is_elf32,
  29849. grub_multiboot_load_elf32, grub_multiboot_is_elf64,
  29850. grub_multiboot_load_elf64): Move from here ...
  29851. * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
  29852. grub_multiboot_load_elf): ... to here (new file).
  29853. 2009-02-27 Robert Millan <rmh@aybabtu.com>
  29854. * util/grub.d/10_linux.in: Rename "single-user mode" to
  29855. "recovery mode".
  29856. 2009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
  29857. Don't leak in SCSI code.
  29858. * disk/scsi.c (grub_scsi_close): free `scsi'.
  29859. 2009-02-27 Robert Millan <rmh@aybabtu.com>
  29860. * loader/i386/pc/multiboot.c: Move from here ...
  29861. * loader/i386/multiboot.c: ... to here. Update all users.
  29862. 2009-02-27 Robert Millan <rmh@aybabtu.com>
  29863. Patch from Alexandre Bique <bique.alexandre@gmail.com>
  29864. * util/i386/pc/grub-setup.c (setup): Fix directory path.
  29865. 2009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
  29866. * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
  29867. b-tree.
  29868. 2009-02-27 Robert Millan <rmh@aybabtu.com>
  29869. * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
  29870. `0x' qualifier as 0 when base is specified as parameter).
  29871. 2009-02-24 Bean <bean123ch@gmail.com>
  29872. * configure.ac: Check for -mcmodel=large in x86_64 target.
  29873. * include/grub/efi/api.h (efi_call_10): New macro.
  29874. (efi_wrap_10): New function.
  29875. * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
  29876. (GRUB_PE32_REL_BASED_HIGH): Likewise.
  29877. (GRUB_PE32_REL_BASED_LOW): Likewise.
  29878. (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
  29879. (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
  29880. (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
  29881. (GRUB_PE32_REL_BASED_SECTION): Likewise.
  29882. (GRUB_PE32_REL_BASED_REL): Likewise.
  29883. (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
  29884. (GRUB_PE32_REL_BASED_DIR64): Likewise.
  29885. (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
  29886. * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
  29887. issue.
  29888. * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
  29889. (efi_wrap_10): New function.
  29890. * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
  29891. * loader/efi/appleloader.c (devpath_5): Add support for late 2008
  29892. MB/MBP model (NV chipset).
  29893. (devdata_devs): Add devpath_5 to the list.
  29894. * load/i386/efi/linux.c (video_base): Remove variable.
  29895. (RGB_MASK): New macro.
  29896. (RGB_MAGIC): Likewise.
  29897. (LINE_MIN): Likewise.
  29898. (LINE_MAX): Likewise.
  29899. (FBTEST_STEP): Likewise.
  29900. (FBTEST_COUNT): Likewise.
  29901. (fb_list): New variable.
  29902. (grub_find_video_card): Remove function.
  29903. (find_framebuf): New function.
  29904. (grub_linux_setup_video): Use find_framebuf to get frame buffer and
  29905. line length.
  29906. * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
  29907. problem for x86_64.
  29908. 2009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
  29909. Patch #25624 by Kevin Lacquement <kevin@lacqui>.
  29910. * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
  29911. coding tool name.
  29912. 2009-02-22 Robert Millan <rmh@aybabtu.com>
  29913. * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
  29914. * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
  29915. in our relocation, instead of using it directly from heap. Also
  29916. use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
  29917. 2009-02-21 Robert Millan <rmh@aybabtu.com>
  29918. Implement USB keyboard support (based on patch by Marco Gerards)
  29919. * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
  29920. (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
  29921. (usb_keyboard_mod_LDFLAGS): New variables.
  29922. * term/usb_keyboard.c: New file.
  29923. 2009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
  29924. Corrected wrong declaration
  29925. * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
  29926. 2009-02-14 Christian Franke <franke@computer.org>
  29927. * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
  29928. (grub_lspci_iter): Print class code and programming interface byte.
  29929. 2009-02-14 Christian Franke <franke@computer.org>
  29930. * gendistlist.sh: Ignore `.svn' directories.
  29931. 2009-02-14 Felix Zielcke <fzielcke@z-51.de>
  29932. * fs/fat.c: Add 2009 to Copyright line.
  29933. 2009-02-14 Christian Franke <franke@computer.org>
  29934. * commands/hdparm.c: New file. Provides `hdparm' command
  29935. which sends ATA commands via grub_disk_ata_pass_through ().
  29936. * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
  29937. * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
  29938. and <grub/cpu/io.h> to include/grub/ata.h.
  29939. (enum grub_ata_addressing_t): Move to include/grub/ata.h.
  29940. (GRUB_CDROM_SECTOR_SIZE): Remove.
  29941. (GRUB_ATA_*): Move to include/grub/ata.h.
  29942. (GRUB_ATAPI_*): Likewise.
  29943. (enum grub_ata_commands): Likewise.
  29944. (enum grub_ata_timeout_milliseconds): Likewise.
  29945. (struct grub_ata_device): Likewise.
  29946. (grub_ata_regset): Likewise.
  29947. (grub_ata_regget): Likewise.
  29948. (grub_ata_regset2): Likewise.
  29949. (grub_ata_regget2): Likewise.
  29950. (grub_ata_check_ready): Likewise.
  29951. (grub_ata_wait_not_busy): Remove static, exported in
  29952. include/grub/ata.h.
  29953. (grub_ata_wait_drq): Likewise.
  29954. (grub_ata_pio_read): Likewise.
  29955. * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
  29956. function for hdparm.mod.
  29957. * include/grub/ata.h: New file, contains declarations from
  29958. disk/ata.c.
  29959. (enum grub_ata_commands): Add new commands for commands/hdparm.c.
  29960. * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
  29961. (grub_disk_ata_pass_through): New exported variable.
  29962. * kern/disk.c (grub_disk_ata_pass_through): New variable.
  29963. 2009-02-13 Colin D Bennett <colin@gibibit.com>
  29964. Support multiple fallback entries, and provide an API to support
  29965. executing default+fallback menu entries. Renamed the `terminal' menu
  29966. viewer to `text'.
  29967. * include/grub/normal.h (grub_normal_text_menu_viewer): New global
  29968. variable declaration.
  29969. (grub_menu_execute_callback): New structure declaration.
  29970. (grub_menu_execute_callback_t): New typedef.
  29971. (grub_menu_execute_with_fallback): New function declaration.
  29972. (grub_menu_get_entry): Likewise.
  29973. (grub_menu_get_timeout): Likewise.
  29974. (grub_menu_set_timeout): Likewise.
  29975. * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
  29976. * normal/menu.c (grub_wait_after_message): Moved to
  29977. `normal/menu_text.c'.
  29978. (draw_border): Likewise.
  29979. (print_message): Likewise.
  29980. (print_entry): Likewise.
  29981. (print_entries): Likewise.
  29982. (grub_menu_init_page): Likewise.
  29983. (get_entry_number): Likewise.
  29984. (print_timeout): Likewise.
  29985. (run_menu): Likewise.
  29986. (grub_menu_execute_entry): Likewise.
  29987. (show_text_menu): Likewise.
  29988. (get_and_remove_first_entry_number): New function.
  29989. (grub_menu_execute_with_fallback): Likewise.
  29990. (get_entry): Renamed to ...
  29991. (grub_menu_get_entry): .. this and made it global.
  29992. (get_timeout): Renamed to ...
  29993. (grub_menu_get_timeout): ... this and made it global.
  29994. (set_timeout): Renamed to ...
  29995. (grub_menu_set_timeout): ... this and made it global.
  29996. (grub_normal_terminal_menu_viewer): Renamed to ...
  29997. (grub_normal_text_menu_viewer): ... this.
  29998. * normal/menu_text.c: New file. Extracted text-menu-specific code
  29999. from normal/menu.c.
  30000. * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
  30001. (normal_mod_SOURCES): Likewise.
  30002. * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
  30003. (normal_mod_SOURCES): Likewise.
  30004. * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
  30005. (normal_mod_SOURCES): Likewise.
  30006. * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
  30007. (normal_mod_SOURCES): Likewise.
  30008. * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
  30009. (normal_mod_SOURCES): Likewise.
  30010. * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
  30011. (normal_mod_SOURCES): Likewise.
  30012. * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
  30013. (normal_mod_SOURCES): Likewise.
  30014. 2009-02-11 Robert Millan <rmh@aybabtu.com>
  30015. * util/grub.d/00_header.in: Update old reference to `font' command.
  30016. 2009-02-10 Felix Zielcke <fzielcke@z-51.de>
  30017. * fs/fat.c (grub_fat_mount): Fix wrong comparison.
  30018. Based on patch from Javier Martín.
  30019. 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
  30020. * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
  30021. to avoid false positives with FAT.
  30022. (grub_fstest_SOURCES): Likewise.
  30023. * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
  30024. * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
  30025. * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
  30026. * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
  30027. * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
  30028. * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
  30029. 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
  30030. * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
  30031. bpb.version_specific.fat12_or_fat16.fstype and
  30032. bpb.version_specific.fat32.fstype.
  30033. 2009-02-08 Robert Millan <rmh@aybabtu.com>
  30034. * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
  30035. 2009-02-08 Robert Millan <rmh@aybabtu.com>
  30036. * Makefile.in (host_os, host_cpu): New variables.
  30037. (target_os): Remove. Update all users.
  30038. 2009-02-08 Marco Gerards <marco@gnu.org>
  30039. * Makefile.in (enable_grub_emu_usb): New variable.
  30040. * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
  30041. (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
  30042. `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
  30043. (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
  30044. (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
  30045. `usbtest.mod' and `usbms.mod'.
  30046. (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
  30047. (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
  30048. (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
  30049. (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
  30050. (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
  30051. variables.
  30052. * disk/usbms.c: New file.
  30053. * include/grub/usb.h: Likewise.
  30054. * include/grub/usbtrans.h: Likewise.
  30055. * include/grub/usbdesc.h: Likewise.
  30056. * bus/usb/usbtrans.c: Likewise.
  30057. * bus/usb/ohci.c: Likewise.
  30058. * bus/usb/uhci.c: Likewise.
  30059. * bus/usb/usbhub.c: Likewise.
  30060. * bus/usb/usb.c: Likewise.
  30061. * commands/usbtest.c: Likewise.
  30062. * util/usb.c: Likewise.
  30063. * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
  30064. * configure.ac: Test for libusb presence.
  30065. * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
  30066. 2009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
  30067. * kern/mm.c: Add more comments.
  30068. 2009-02-08 Robert Millan <rmh@aybabtu.com>
  30069. Patch from Javier Martín.
  30070. * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
  30071. `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
  30072. 2009-02-08 Robert Millan <rmh@aybabtu.com>
  30073. * fs/cpio.c: Split tar functionality to ...
  30074. * fs/tar.c: ... here (new file). Update all users.
  30075. 2009-02-07 Robert Millan <rmh@aybabtu.com>
  30076. * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
  30077. backward-incompatible features.
  30078. Based on patch from Javier Martín, with some adjustments.
  30079. 2009-02-07 Michael Scherer <misc@mandriva.org>
  30080. * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
  30081. 2009-02-07 Robert Millan <rmh@aybabtu.com>
  30082. * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
  30083. position of `disk/lvm.c' to ensure grub_init_all() always picks it
  30084. after the RAID stuff.
  30085. 2009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
  30086. Fixes problem when running vbetest command as reported by
  30087. Vladimir Serbinenko <phcoder@gmail.com>.
  30088. * (grub_vbe_set_video_mode): Fixed problem with text modes.
  30089. 2009-02-04 Felix Zielcke <fzielcke@z-51.de>
  30090. util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
  30091. /dev/md/NpN style mdraid devices.
  30092. 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
  30093. * util/unifont2pff.rb: Remove.
  30094. 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
  30095. * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
  30096. `#'.
  30097. 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
  30098. * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
  30099. * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
  30100. * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
  30101. * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
  30102. * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
  30103. * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
  30104. * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
  30105. 2009-02-02 Christian Franke <franke@computer.org>
  30106. * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
  30107. 2009-02-01 Felix Zielcke <fzielcke@z-51.de>
  30108. * INSTALL: Note that we now require at least autoconf 2.59 and
  30109. that LZO is optional.
  30110. 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
  30111. Base on patch on bug #24154 created by Tomas Tintera
  30112. <trosos@seznam.cz>.
  30113. * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
  30114. 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
  30115. Based on patch on bug #25318 created by Bernhard Rosenkraenzer
  30116. <bero@arklinux.org>.
  30117. * normal/parser.y (script_init): Add missing semicolon.
  30118. 2009-01-31 Colin D Bennett <colin@gibibit.com>
  30119. * normal/main.c: Add include to grub/menu_viewer.h.
  30120. (free_menu_entry_classes): Added.
  30121. (grub_normal_menu_addentry): Added class property handling.
  30122. (grub_normal_execute): Changed to use new menu viewer for menu viewing.
  30123. (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
  30124. * normal/menu_viewer.c: New file.
  30125. * normal/menu.c (run_menu_entry): Renamed to ...
  30126. (grub_menu_execute_entry): ... this and made it as global.
  30127. (grub_menu_run): Renamed to ...
  30128. (show_text_menu): ... this and made it local.
  30129. (show_text_menu): Adapt to new function names.
  30130. (grub_normal_terminal_menu_viewer): New global variable.
  30131. * include/grub/menu.h: New file.
  30132. * include/grub/menu_viewer.h: New file.
  30133. * include/grub/normal.h: Added include to grub/menu.h.
  30134. (grub_menu_entry): Moved to include/grub/menu.h.
  30135. (grub_menu_entry_t): Likewise.
  30136. (grub_menu): Likewise.
  30137. (grub_menu_t): Likewise.
  30138. (grub_normal_terminal_menu_viewer): Added.
  30139. (grub_menu_execute_entry): Likewise.
  30140. (grub_menu_run): Removed.
  30141. * DISTLIST: Added include/grub/menu.h.
  30142. Added include/grub/menu_viewer.h.
  30143. Added normal/menu_viewer.c.
  30144. 2009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
  30145. * normal/execute.c (grub_script_execute_menuentry): Changed to use
  30146. arglist for menutitle arguments.
  30147. * normal/main.c (grub_normal_menu_addentry): Likewise.
  30148. * normal/parser.y (menuentry): Likewise.
  30149. * normal/script.c (grub_script_create_cmdmenu): Likewise.
  30150. * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
  30151. (grub_script_create_cmdmenu): Likewise.
  30152. * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
  30153. * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
  30154. changes.
  30155. * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
  30156. * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
  30157. * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
  30158. * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
  30159. * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
  30160. * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
  30161. 2009-01-30 Christian Franke <franke@computer.org>
  30162. * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
  30163. in option help text.
  30164. 2009-01-27 Pavel Roskin <proski@gnu.org>
  30165. * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
  30166. 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
  30167. * commands/lsmmap.c: Add include to grub/machine/memory.h.
  30168. * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
  30169. * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
  30170. unregister function.
  30171. 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
  30172. * disk/scsi.c (grub_scsi_read): Fix sign problem.
  30173. * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
  30174. * util/grub-mkfont.c (usage): Fix typo.
  30175. * util/elf/grub-mkimage.c (load_modules): Fix warning.
  30176. 2009-01-26 Daniel Mierswa <impulze@impulze.org>
  30177. * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
  30178. * commands/search.c (search_fs_uuid): Ignore case of the UUID.
  30179. * kern/misc.c (grub_strcasecmp): New function.
  30180. (grub_strcasecmp): Use grub_size_t instead of int for length.
  30181. Fix return value.
  30182. * include/grub/misc.h: Update function prototypes.
  30183. 2009-01-26 Robert Millan <rmh@aybabtu.com>
  30184. * configure.ac: Fix cross-compilation check.
  30185. 2009-01-22 Christian Franke <franke@computer.org>
  30186. * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
  30187. (precision) digit string. Allow `.format2' without `format1' (width).
  30188. Limit input chars for `%s' output to `format2' if specified. This is
  30189. compatible with standard printf ().
  30190. 2009-01-22 Christian Franke <franke@computer.org>
  30191. * disk/ata.c (grub_ata_wait_status): Replace by ...
  30192. (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
  30193. other status bits may be invalid while BSY is asserted.
  30194. (grub_ata_check_ready): New function.
  30195. (grub_ata_cmd): Removed.
  30196. (grub_ata_wait_drq): New function.
  30197. (grub_ata_strncpy): Remove inline.
  30198. (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
  30199. and error check now done by grub_ata_wait_drq ().
  30200. (grub_ata_pio_write): Likewise.
  30201. (grub_atapi_identify): Set DEV before check for !BSY. Use
  30202. grub_ata_wait_drq () to wait for data.
  30203. (grub_ata_device_initialize): Add status register check to
  30204. detect missing SATA slave devices. Add debug messages.
  30205. (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
  30206. (grub_atapi_packet): Set DEV before check for !BSY. Replace
  30207. transfer loop by grub_ata_pio_write ().
  30208. (grub_ata_identify): Set DEV before check for !BSY. Use
  30209. grub_ata_wait_drq () to wait for data.
  30210. (grub_ata_setaddress): Set DEV before check for !BSY.
  30211. (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
  30212. read/write in one loop. Fix invalid command on write. Fix incomplete
  30213. command on (size % batch) == 0. Add missing error check after write of
  30214. last block. Add debug messages.
  30215. (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
  30216. 2009-01-19 Christian Franke <franke@computer.org>
  30217. * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
  30218. (GRUB_ATAPI_IREASON_*): Likewise.
  30219. (grub_ata_pio_write): Fix timeout error return.
  30220. (grub_atapi_identify): Add grub_ata_wait () after cmd.
  30221. (grub_atapi_wait_drq): New function.
  30222. (grub_atapi_packet): New parameter `size'.
  30223. Use grub_atapi_wait_drq () and direct write instead of
  30224. grub_ata_pio_write ().
  30225. (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
  30226. reads the number of bytes requested by the device for each DRQ
  30227. assertion.
  30228. (grub_atapi_write): Remove old implementation, return not
  30229. implemented instead.
  30230. 2009-01-19 Christian Franke <franke@computer.org>
  30231. * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
  30232. of 512 to calculate data size.
  30233. (grub_scsi_read12): Likewise.
  30234. (grub_scsi_write10): Likewise.
  30235. (grub_scsi_write12): Likewise.
  30236. (grub_scsi_read): Adjust size according to blocksize.
  30237. Add checks for invalid blocksize and unaligned transfer.
  30238. 2009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
  30239. * font/font.c (grub_font_loader_init): Re-position unknown glyph.
  30240. * term/gfxterm.c (write_char): Fix background rendering for wide
  30241. width glyphs.
  30242. 2009-01-19 Robert Millan <rmh@aybabtu.com>
  30243. * config.guess: Update to latest version from config git.
  30244. * config.sub: Likewise.
  30245. 2009-01-17 Felix Zielcke <fzielcke@z-51.de>
  30246. * Makefile.in: Change font compilation to use new grub-mkfont instead
  30247. of java version.
  30248. * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
  30249. * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
  30250. * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
  30251. * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
  30252. * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
  30253. * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
  30254. * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
  30255. * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
  30256. * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
  30257. 2009-01-16 Christian Franke <franke@computer.org>
  30258. * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
  30259. (enum grub_ata_timeout_milliseconds): New enum.
  30260. (grub_ata_wait_status): Add parameter milliseconds.
  30261. (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
  30262. recovery from timed-out commands.
  30263. (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
  30264. return grub_errno instead of REG_ERROR.
  30265. (grub_ata_pio_write): Add parameter milliseconds.
  30266. (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
  30267. Pass milliseconds to grub_ata_wait_status () and
  30268. grub_ata_pio_read ().
  30269. (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
  30270. (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
  30271. grub_ata_wait_status (). Fix IDENTIFY timeout check.
  30272. (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
  30273. It is not suitable for device detection, because DEV bit is ignored,
  30274. the command may run too long, and not all devices set the signature
  30275. properly.
  30276. (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
  30277. (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
  30278. Fix device selection, DEV bit must be set first to address the registers
  30279. of the correct device.
  30280. (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
  30281. grub_ata_pio_read/write ().
  30282. (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
  30283. (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
  30284. 2009-01-13 Carles Pina i Estany <carles@pina.cat>
  30285. * util/grub-editenv.c (main): Use fseeko(), not fseek().
  30286. 2009-01-13 Bean <bean123ch@gmail.com>
  30287. * util/grub-mkfont.c (write_font): forget to remove some debug code.
  30288. 2009-01-13 Bean <bean123ch@gmail.com>
  30289. * Makefile.in: (enable_grub_mkfont): New variable.
  30290. (freetype_cflags): Likewise.
  30291. (freetype_libs): Likewise.
  30292. * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
  30293. (grub_mkfont_SOURCES): New variable.
  30294. (grub_mkfont_CFLAGS): Likewise.
  30295. (grub_mkfont_LDFLAGS): Likewise.
  30296. * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
  30297. library if `--enable-grub-mkfont' is requested.
  30298. (enable_grub_mkfont): New variable.
  30299. (freetype_cflags): Likewise.
  30300. (freetype_libs): Likewise.
  30301. * util/grub-mkfont.c: New file.
  30302. 2009-01-12 Christian Franke <franke@computer.org>
  30303. * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
  30304. mode check. Fix setting of compat_use[].
  30305. 2009-01-10 Robert Millan <rmh@aybabtu.com>
  30306. Update a few copyright years which we forgot to do in 2008 (only for
  30307. files whose changes made in 2008 were copyright-significant)
  30308. * Makefile.in: Add 2008 to Copyright line.
  30309. * disk/ieee1275/ofdisk.c: Likewise.
  30310. * disk/efi/efidisk.c: Likewise.
  30311. * kern/dl.c: Likewise.
  30312. * kern/sparc64/ieee1275/init.c: Likewise.
  30313. * kern/mm.c: Likewise.
  30314. * kern/efi/mm.c: Likewise.
  30315. * boot/i386/pc/boot.S: Likewise.
  30316. * genfslist.sh: Likewise.
  30317. * fs/iso9660.c: Likewise.
  30318. * fs/hfs.c: Likewise.
  30319. * fs/jfs.c: Likewise.
  30320. * fs/minix.c: Likewise.
  30321. * fs/ufs.c: Likewise.
  30322. * gensymlist.sh.in: Likewise.
  30323. * genkernsyms.sh.in: Likewise.
  30324. * include/grub/misc.h: Likewise.
  30325. * include/grub/types.h: Likewise.
  30326. * include/grub/symbol.h: Likewise.
  30327. * include/grub/elf.h: Likewise.
  30328. * include/grub/kernel.h: Likewise.
  30329. * include/grub/disk.h: Likewise.
  30330. * include/grub/dl.h: Likewise.
  30331. * include/grub/i386/linux.h: Likewise.
  30332. * include/grub/i386/pc/biosdisk.h: Likewise.
  30333. * include/grub/efi/api.h: Likewise.
  30334. * include/grub/efi/pe32.h: Likewise.
  30335. * include/grub/util/misc.h: Likewise.
  30336. * normal/execute.c: Likewise.
  30337. * normal/arg.c: Likewise.
  30338. * normal/completion.c: Likewise.
  30339. * normal/lexer.c: Likewise.
  30340. * normal/parser.y: Likewise.
  30341. * normal/misc.c: Likewise.
  30342. * commands/i386/pc/vbeinfo.c: Likewise.
  30343. * commands/hexdump.c: Likewise.
  30344. * commands/terminal.c: Likewise.
  30345. * commands/ls.c: Likewise.
  30346. * commands/help.c: Likewise.
  30347. * partmap/pc.c: Likewise.
  30348. * loader/efi/chainloader.c: Likewise.
  30349. * loader/multiboot_loader.c: Likewise.
  30350. * loader/i386/pc/multiboot2.c: Likewise.
  30351. * term/efi/console.c: Likewise.
  30352. * term/i386/pc/serial.c: Likewise.
  30353. * util/lvm.c: Likewise.
  30354. * util/console.c: Likewise.
  30355. * util/i386/efi/grub-mkimage.c: Likewise.
  30356. * util/raid.c: Likewise.
  30357. 2009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
  30358. * commands/videotest.c: Removed include to grub/machine/memory.h.
  30359. * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
  30360. videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
  30361. (video_mod_SOURCES): Removed.
  30362. (video_mod_CFLAGS): Likewise.
  30363. (video_mod_LDFLAGS): Likewise.
  30364. (gfxterm_mod_SOURCES): Likewise.
  30365. (gfxterm_mod_CFLAGS): Likewise.
  30366. (gfxterm_mod_LDFLAGS): Likewise.
  30367. (videotest_mod_SOURCES): Likewise.
  30368. (videotest_mod_CFLAGS): Likewise.
  30369. (videotest_mod_LDFLAGS): Likewise.
  30370. (bitmap_mod_SOURCES): Likewise.
  30371. (bitmap_mod_CFLAGS): Likewise.
  30372. (bitmap_mod_LDFLAGS): Likewise.
  30373. (tga_mod_SOURCES): Likewise.
  30374. (tga_mod_CFLAGS): Likewise.
  30375. (tga_mod_LDFLAGS): Likewise.
  30376. (jpeg_mod_SOURCES): Likewise.
  30377. (jpeg_mod_CFLAGS): Likewise.
  30378. (jpeg_mod_LDFLAGS): Likewise.
  30379. (png_mod_SOURCES): Likewise.
  30380. (png_mod_CFLAGS): Likewise.
  30381. (png_mod_LDFLAGS): Likewise.
  30382. * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
  30383. bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
  30384. (video_mod_SOURCES): Added.
  30385. (video_mod_CFLAGS): Likewise.
  30386. (video_mod_LDFLAGS): Likewise.
  30387. (videotest_mod_SOURCES): Likewise.
  30388. (videotest_mod_CFLAGS): Likewise.
  30389. (videotest_mod_LDFLAGS): Likewise.
  30390. (bitmap_mod_SOURCES): Likewise.
  30391. (bitmap_mod_CFLAGS): Likewise.
  30392. (bitmap_mod_LDFLAGS): Likewise.
  30393. (tga_mod_SOURCES): Likewise.
  30394. (tga_mod_CFLAGS): Likewise.
  30395. (tga_mod_LDFLAGS): Likewise.
  30396. (jpeg_mod_SOURCES): Likewise.
  30397. (jpeg_mod_CFLAGS): Likewise.
  30398. (jpeg_mod_LDFLAGS): Likewise.
  30399. (png_mod_SOURCES): Likewise.
  30400. (png_mod_CFLAGS): Likewise.
  30401. (png_mod_LDFLAGS): Likewise.
  30402. (gfxterm_mod_SOURCES): Likewise.
  30403. (gfxterm_mod_CFLAGS): Likewise.
  30404. (gfxterm_mod_LDFLAGS): Likewise.
  30405. * term/gfxterm.c: Removed include to grub/machine/memory.h,
  30406. grub/machine/console.h.
  30407. 2009-01-04 Jerone Young <jerone@gmail.com>
  30408. Make on screen instructions clearer
  30409. Based on patch created by Jidanni <jidanni@jidanni.org>
  30410. * normal/menu.c: print clearer instructions on the screen
  30411. 2009-01-02 Colin D Bennett <colin@gibibit.com>
  30412. New font engine.
  30413. Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
  30414. build system and fixed gfxterm.c to work with different sized fonts.
  30415. * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
  30416. * configure: Re-generated.
  30417. * DISTLIST: Removed font/manager.c.
  30418. Added font/font.c.
  30419. Added font/font_cmd.c.
  30420. * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
  30421. compilation.
  30422. * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
  30423. * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
  30424. * kern/term.c: Changed users of grub_utf8_to_ucs4.
  30425. * normal/menu.c: Likewise.
  30426. * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
  30427. (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
  30428. * include/grub/font.h: Replaced with new file.
  30429. * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
  30430. (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
  30431. (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
  30432. (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
  30433. (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
  30434. (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
  30435. fg_red, fg_green, fg_blue, fg_alpha.
  30436. (grub_video_adapter): Removed blit_glyph.
  30437. (grub_video_blit_glyph): Removed.
  30438. * font/manager.c: Removed file.
  30439. * font/font.c: New file.
  30440. * font/font_cmd.c: Likewise.
  30441. * video/video.c (grub_video_blit_glyph): Removed.
  30442. * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
  30443. (grub_video_vbe_map_rgba): Likewise.
  30444. (grub_video_vbe_unmap_color_int): Likewise.
  30445. (grub_video_vbe_blit_glyph): Removed.
  30446. (grub_video_vbe_adapter): Removed blit_glyph.
  30447. * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
  30448. (get_pixel): Likewise.
  30449. (set_pixel): Likewise.
  30450. * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
  30451. * term/gfxterm.c: Adapted to new font engine.
  30452. * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
  30453. * term/i386/pc/vga.c: Likewise.
  30454. * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
  30455. * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
  30456. * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
  30457. * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
  30458. * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
  30459. * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
  30460. * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
  30461. * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
  30462. * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
  30463. * util/grub.d/00_header.in: Changed to use new loadfont command.
  30464. * util/grub-mkconfig_lib.in: Changed font extension.
  30465. 2008-12-28 Felix Zielcke <fzielcke@z-51.de>
  30466. * util/getroot.c (grub_util_get_grub_dev): Add support for
  30467. /dev/md/dNNpNN style partitionable mdraid devices.
  30468. 2008-12-12 Alex Smith <alex@alex-smith.me.uk>
  30469. * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
  30470. at a time limit of the PXE TFTP API correctly.
  30471. (grub_pxefs_close): Likewise.
  30472. 2008-11-29 Robert Millan <rmh@aybabtu.com>
  30473. * disk/ata.c (grub_ata_pciinit): Handle errors raised by
  30474. grub_ata_device_initialize() calls.
  30475. 2008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
  30476. * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
  30477. iteration failed.
  30478. * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
  30479. 2008-11-28 Robert Millan <rmh@aybabtu.com>
  30480. Fix build on powerpc-ieee1275. Based on patch created by
  30481. Manoel Abranches <mrabran@linux.vnet.ibm.com>.
  30482. * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
  30483. `kern/ieee1275/mmap.c'.
  30484. * include/grub/powerpc/ieee1275/memory.h: New file.
  30485. Provide grub-install on coreboot.
  30486. * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
  30487. (grub_install_SOURCES): New variable.
  30488. * util/i386/pc/grub-install.in: Add a few condition checks to make it
  30489. usable on coreboot.
  30490. 2008-11-25 Felix Zielcke <fzielcke@z-51.de>
  30491. * util/grub-fstest.c (grub_term_get_current_input): Change return type
  30492. to `grub_term_input_t'.
  30493. (grub_term_get_current_output): Change return type to
  30494. `grub_term_output_t'.
  30495. 2008-11-22 Robert Millan <rmh@aybabtu.com>
  30496. Fix breakage on coreboot due to declaration mismatch.
  30497. * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
  30498. (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
  30499. grub_vga_text_cls().
  30500. * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
  30501. comments. Avoid copying one more byte than necessary (just in case).
  30502. * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
  30503. to 0x200000 (avoids trouble with some OFW implementations, and matches
  30504. with the one in Yaboot).
  30505. Reported by Manoel Abranches
  30506. 2008-11-20 Robert Millan <rmh@aybabtu.com>
  30507. * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
  30508. (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
  30509. * util/grub-mkconfig_lib.in (grub_warn): New function.
  30510. (convert_system_path_to_grub_path): Use grub_warn() when issuing
  30511. warnings, to obtain consistent formatting.
  30512. * util/grub.d/00_header.in: Likewise.
  30513. * util/update-grub_lib.in: Likewise.
  30514. * loader/i386/linux.c (allocate_pages): Fix a warning.
  30515. Move comment text to `#error' stanza.
  30516. Harmonize ieee1275's grub_available_iterate() with the generic
  30517. grub_machine_mmap_iterate() interface (fixes a recently-introduced
  30518. build problem on i386-ieee1275):
  30519. * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
  30520. * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
  30521. parameter `type'. Update all users of this function.
  30522. * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
  30523. `kern/ieee1275/mmap.c'.
  30524. * kern/ieee1275/init.c
  30525. * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
  30526. with ...
  30527. (grub_machine_mmap_iterate): ... this.
  30528. * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
  30529. return type to `grub_err_t'. Update all implementations of this
  30530. function prototype.
  30531. * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
  30532. Likewise.
  30533. Add `lsmmap' command (lists firmware-provided memory map):
  30534. * commands/lsmmap.c: New file.
  30535. * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
  30536. (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
  30537. variables.
  30538. * conf/powerpc-ieee1275.rmk: Likewise.
  30539. * conf/i386-coreboot.rmk: Likewise.
  30540. * conf/i386-ieee1275.rmk: Likewise.
  30541. 2008-11-19 Robert Millan <rmh@aybabtu.com>
  30542. * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
  30543. * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
  30544. constraints to initrd allocation (based on code from
  30545. loader/i386/pc/linux.c). Without them, initrd was allocated too high
  30546. for Linux to find it.
  30547. 2008-11-14 Robert Millan <rmh@aybabtu.com>
  30548. * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
  30549. order to cope with duplicate slashes.
  30550. 2008-11-14 Robert Millan <rmh@aybabtu.com>
  30551. * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
  30552. Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
  30553. don't want to mess with lower memory, because it is used in the Linux
  30554. loader.
  30555. * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
  30556. an appropriate place in lower memory, between 0x10000 and 0x90000,
  30557. like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
  30558. is in our heap (probably as a result of it being corrupted during
  30559. decompression). Add #error instance with comment to explain why this
  30560. loader isn't currently usable on PC/BIOS.
  30561. 2008-11-14 Robert Millan <rmh@aybabtu.com>
  30562. * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
  30563. (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
  30564. 2008-11-12 Robert Millan <rmh@aybabtu.com>
  30565. Make loader/i386/linux.c buildable on i386-pc (although disabled).
  30566. * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
  30567. (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
  30568. from here ...
  30569. * include/grub/i386/pc/memory.h: ... to here.
  30570. 2008-11-12 Robert Millan <rmh@aybabtu.com>
  30571. Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
  30572. split).
  30573. * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
  30574. (grub_console_cur_color, grub_console_real_putchar)
  30575. (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
  30576. (grub_console_setcolorstate, grub_console_setcolor)
  30577. (grub_console_getcolor): Move from here ...
  30578. * include/grub/i386/vga_common.h: ... to here (new file).
  30579. * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
  30580. `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
  30581. `<grub/i386/io.h>'.
  30582. * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
  30583. `<grub/i386/vga_common.h>'.
  30584. 2008-11-12 Robert Millan <rmh@aybabtu.com>
  30585. * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
  30586. * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
  30587. (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
  30588. variables.
  30589. * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
  30590. `term/i386/pc/console.c' with `term/i386/vga_common.c'.
  30591. * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
  30592. grub_console_init() with call to grub_vga_text_init().
  30593. (grub_machine_fini): Replace call to
  30594. grub_console_fini() with call to grub_vga_text_fini() and
  30595. grub_at_keyboard_fini().
  30596. * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
  30597. (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
  30598. (grub_console_setcolorstate, grub_console_setcolor)
  30599. (grub_console_getcolor): New function prototypes.
  30600. * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
  30601. (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
  30602. (grub_vga_text_setcursor): Static-ize.
  30603. (grub_vga_text_term): New structure.
  30604. (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
  30605. * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
  30606. (grub_console_cur_color, grub_console_standard_color)
  30607. (grub_console_normal_color, grub_console_highlight_color)
  30608. (map_char, grub_console_putchar, grub_console_getcharwidth)
  30609. (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
  30610. (grub_console_getcolor): Move from here ...
  30611. * term/i386/vga_common.c: ... to here (same function names).
  30612. 2008-11-12 Robert Millan <rmh@aybabtu.com>
  30613. Use newly-added Multiboot support in coreboot.
  30614. * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
  30615. `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
  30616. * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
  30617. alignment, set `MULTIBOOT_MEMORY_INFO' flag.
  30618. (codestart): Store the MBI in `startup_multiboot_info' when we're
  30619. being loaded using Multiboot.
  30620. * kern/i386/coreboot/init.c (grub_machine_init): Move
  30621. grub_at_keyboard_init() call to beginning of function (useful for
  30622. debugging). Call grub_machine_mmap_init() before attempting to use
  30623. grub_machine_mmap_iterate().
  30624. (grub_lower_mem, grub_upper_mem): Move from here ...
  30625. * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
  30626. here (new file).
  30627. * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
  30628. function prototype.
  30629. 2008-11-12 Robert Millan <rmh@aybabtu.com>
  30630. Fix a regression introduced by the at_keyboard.mod split. Because
  30631. some terminals are default on some platforms and non-default on
  30632. others, the first terminal being registered determines which is
  30633. going to be default.
  30634. * kern/term.c (grub_term_register_input): If this is the first
  30635. terminal being registered, set it as the current one.
  30636. (grub_term_register_output): Likewise.
  30637. * term/efi/console.c (grub_console_init): Do not call
  30638. grub_term_set_current_output() or grub_term_set_current_input().
  30639. * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
  30640. * term/i386/pc/console.c (grub_console_init): Likewise.
  30641. (grub_console_fini): Do not call grub_term_set_current_input()
  30642. (but leave grub_term_set_current_output() to restore text mode).
  30643. 2008-11-10 Robert Millan <rmh@aybabtu.com>
  30644. * util/grub.d/00_header.in: Add backward compatibility check for
  30645. versions of terminal.mod that don't understand `terminal_input' or
  30646. `terminal_output'.
  30647. 2008-11-09 Robert Millan <rmh@aybabtu.com>
  30648. * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
  30649. `terminal_input' / `terminal_output', not `terminal'.
  30650. 2008-11-08 Robert Millan <rmh@aybabtu.com>
  30651. * Makefile.in (include_DATA): Fix srcdir=. assumption.
  30652. (DISTCLEANFILES): Add `build_env.mk'.
  30653. 2008-11-08 Robert Millan <rmh@aybabtu.com>
  30654. * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
  30655. `struct grub_term_output'. Remove `.checkkey' and `.getkey'
  30656. members. Update all users.
  30657. * util/console.c (grub_ncurses_term): Split in ...
  30658. (grub_ncurses_term_input): ... this, and ...
  30659. (grub_ncurses_term_output): ... this. Update all users.
  30660. * term/ieee1275/ofconsole.c: Remove stale `#endif'.
  30661. 2008-11-08 Robert Millan <rmh@aybabtu.com>
  30662. * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
  30663. (PKGDATA): Add $(pkgdata_SRCDIR).
  30664. (pkglib_BUILDDIR): New variable.
  30665. (pkgdata_SRCDIR): New variable.
  30666. (build_env.mk): New target.
  30667. (include_DATA): New variable.
  30668. (install-local): Install $(include_DATA) files in $(includedir).
  30669. 2008-11-07 Pavel Roskin <proski@gnu.org>
  30670. * gendistlist.sh: Use C locale for sorting to ensure consistent
  30671. output on all systems.
  30672. * util/grub.d/00_header.in: Remove incorrect space before
  30673. "serial".
  30674. 2008-11-07 Robert Millan <rmh@aybabtu.com>
  30675. * include/multiboot2.h (struct multiboot_header): Add `flags' member as
  30676. per specification.
  30677. * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
  30678. * loader/multiboot_loader.c (find_multi_boot2_header): New function
  30679. (based on find_multi_boot1_header).
  30680. (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
  30681. using find_multi_boot2_header(), and abort if neither Multiboot or
  30682. Multiboot headers were found.
  30683. 2008-11-07 Robert Millan <rmh@aybabtu.com>
  30684. Modularize at_keyboard.mod:
  30685. * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
  30686. (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
  30687. (at_keyboard_mod_LDFLAGS): New variables.
  30688. Actual terminal split:
  30689. * include/grub/term.h (struct grub_term): Split in ...
  30690. (struct grub_term_input): ... this, and ...
  30691. (struct grub_term_output): ... this. Update all users.
  30692. (grub_term_set_current): Split in ...
  30693. (grub_term_set_current_input): ... this, and ...
  30694. (grub_term_set_current_output): ... this.
  30695. (grub_term_get_current): Split in ...
  30696. (grub_term_get_current_input): ... this, and ...
  30697. (grub_term_get_current_output): ... this.
  30698. (grub_term_register): Split in ...
  30699. (grub_term_register_input): ... this, and ...
  30700. (grub_term_register_output): ... this.
  30701. (grub_term_unregister): Split in ...
  30702. (grub_term_unregister_input): ... this, and ...
  30703. (grub_term_unregister_output): ... this.
  30704. (grub_term_iterate): Split in ...
  30705. (grub_term_iterate_input): ... this, and ...
  30706. (grub_term_iterate_output): ... this.
  30707. * kern/term.c (grub_term_list): Split in ...
  30708. (grub_term_list_input): ... this, and ...
  30709. (grub_term_list_output): ... this. Update all users.
  30710. (grub_cur_term): Split in ...
  30711. (grub_cur_term_input): ... this, and ...
  30712. (grub_cur_term_output): ... this. Update all users.
  30713. (grub_term_set_current): Split in ...
  30714. (grub_term_set_current_input): ... this, and ...
  30715. (grub_term_set_current_output): ... this.
  30716. (grub_term_get_current): Split in ...
  30717. (grub_term_get_current_input): ... this, and ...
  30718. (grub_term_get_current_output): ... this.
  30719. (grub_term_register): Split in ...
  30720. (grub_term_register_input): ... this, and ...
  30721. (grub_term_register_output): ... this.
  30722. (grub_term_unregister): Split in ...
  30723. (grub_term_unregister_input): ... this, and ...
  30724. (grub_term_unregister_output): ... this.
  30725. (grub_term_iterate): Split in ...
  30726. (grub_term_iterate_input): ... this, and ...
  30727. (grub_term_iterate_output): ... this.
  30728. * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
  30729. a check for input and one for output (and only attempt to get keys
  30730. from user when input works).
  30731. * util/grub-probe.c (grub_term_get_current): Split in ...
  30732. (grub_term_get_current_input): ... this, and ...
  30733. (grub_term_get_current_output): ... this.
  30734. * util/grub-fstest.c: Likewise.
  30735. * util/i386/pc/grub-setup.c: Likewise.
  30736. * util/grub-editenv.c: Likewise.
  30737. Portability adjustments:
  30738. * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
  30739. `term/i386/pc/at_keyboard.c'.
  30740. * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
  30741. grub_keyboard_controller_init() (now handled by terminal .init).
  30742. * kern/i386/coreboot/init.c (grub_machine_init): Add call to
  30743. grub_at_keyboard_init().
  30744. * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
  30745. (grub_console_checkkey, grub_console_getkey): Remove (now provided by
  30746. at_keyboard.mod via input terminal interface).
  30747. * include/grub/i386/coreboot/console.h: Convert into a stub for
  30748. `<grub/i386/pc/console.h>'.
  30749. Migrate full terminals to new API:
  30750. * term/efi/console.c (grub_console_term): Split into ...
  30751. (grub_console_term_input): ... this, and ...
  30752. (grub_console_term_output): ... this. Update all users.
  30753. * term/ieee1275/ofconsole.c: Remove __i386__ hack.
  30754. (grub_ofconsole_init): Split into ...
  30755. (grub_ofconsole_init_input): ... this, and ...
  30756. (grub_ofconsole_init_output): ... this.
  30757. (grub_ofconsole_term): Split into ...
  30758. (grub_ofconsole_term_input): ... this, and ...
  30759. (grub_ofconsole_term_output): ... this. Update all users.
  30760. * term/i386/pc/serial.c (grub_serial_term): Split into ...
  30761. (grub_serial_term_input): ... this, and ...
  30762. (grub_serial_term_output): ... this. Update all users.
  30763. * term/i386/pc/console.c (grub_console_term): Split into ...
  30764. (grub_console_term_input): ... this, and ...
  30765. (grub_console_term_output): ... this. Update all users.
  30766. (grub_console_term_input): Only enable it on PC/BIOS platform.
  30767. (grub_console_init): Remove grub_keyboard_controller_init() call.
  30768. Migrate input terminals to new API:
  30769. * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
  30770. `i386' and `i386/pc' to enable build on x86_64 (this driver is
  30771. i386-specific anyway).
  30772. (grub_console_checkkey): Rename to ...
  30773. (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
  30774. users.
  30775. (grub_keyboard_controller_orig): New variable.
  30776. (grub_console_getkey): Rename to ...
  30777. (grub_at_keyboard_getkey): ... this. Static-ize. Update all
  30778. users.
  30779. (grub_keyboard_controller_init): Static-ize. Save original
  30780. controller value so that it can be restored ...
  30781. (grub_keyboard_controller_fini): ... here (new function).
  30782. (grub_at_keyboard_term): New structure.
  30783. (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
  30784. functions.
  30785. Migrate output terminals to new API:
  30786. * term/i386/pc/vga.c (grub_vga_term): Change type to
  30787. `struct grub_term_output'. Remove `.checkkey' and `.getkey'
  30788. members. Update all users.
  30789. * term/gfxterm.c (grub_video_term): Change type to
  30790. `struct grub_term_output'. Remove `.checkkey' and `.getkey'
  30791. members. Update all users.
  30792. * include/grub/i386/pc/console.h (grub_console_checkkey)
  30793. (grub_console_getkey): Do not export (no longer needed by gfxterm,
  30794. etc).
  30795. Migrate `terminal' command and userland tools to new API:
  30796. * commands/terminal.c (grub_cmd_terminal): Split into ...
  30797. (grub_cmd_terminal_input): ... this, and ...
  30798. (grub_cmd_terminal_output): ... this.
  30799. (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
  30800. `terminal_input' and `terminal_output'.
  30801. * util/grub.d/00_header.in: Adjust `terminal' calls to new
  30802. `terminal_input' / `terminal_output' API.
  30803. * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
  30804. ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
  30805. provided ${GRUB_TERMINAL}, convert it).
  30806. 2008-11-04 Robert Millan <rmh@aybabtu.com>
  30807. * util/grub.d/10_freebsd.in: New file. Generate grub configuration
  30808. for FreeBSD.
  30809. * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
  30810. 2008-11-03 Bean <bean123ch@gmail.com>
  30811. * kern/elf.c (grub_elf32_load): Revert to previous code.
  30812. (grub_elf64_load): Likewise.
  30813. * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
  30814. 2008-11-01 Robert Millan <rmh@aybabtu.com>
  30815. * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
  30816. (TARGET_CPPFLAGS): Likewise.
  30817. * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
  30818. 2008-11-01 Carles Pina i Estany <carles@pina.cat>
  30819. * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
  30820. 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
  30821. * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
  30822. addition of objects until the code is not going to be able to fail.
  30823. 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
  30824. * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
  30825. (add a missing NULL check, and correct them by moving the pointer
  30826. operations after the actual check).
  30827. 2008-10-29 Robert Millan <rmh@aybabtu.com>
  30828. * util/i386/pc/grub-install.in: Handle empty string as output from
  30829. make_system_path_relative_to_its_root().
  30830. 2008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
  30831. * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
  30832. circular metadata worst case scenario. If the metadata is circular
  30833. then copy the wrap in place.
  30834. * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
  30835. project lib/format_text/layout.h
  30836. Circular metadata bug found and patch debugged by Jan Derk Gerlings.
  30837. 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
  30838. * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
  30839. 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
  30840. * util/update-grub_lib.in: Mention filename in warning message.
  30841. 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
  30842. * NEWS: Update for rename of update-grub to grub-mkconfig.
  30843. 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
  30844. * util/update-grub_lib.in: Copy to ...
  30845. * util/grub-mkconfig_lib.in: ... this. Update all users.
  30846. * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
  30847. * util/update-grub.in: Rename to ...
  30848. * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
  30849. option. Add `--output' option to allow users to specify the generated
  30850. configuration file. Default to stdout.
  30851. (update_grub_dir): Rename to ...
  30852. (grub_mkconfig_dir): ... this.
  30853. (grub_cfg): Default to an empty string.
  30854. * conf/common.rmk (update-grub): Rename to ...
  30855. (grub-mkconfig): ... this.
  30856. (update-grub_lib): Copy to ...
  30857. (grub-mkconfig_lib): ... this.
  30858. (update-grub_SCRIPTS): Copy to ...
  30859. (grub-mkconfig_SCRIPTS): ... this. Update all users.
  30860. (update-grub_DATA): Rename to ...
  30861. (grub-mkconfig_DATA): ... this.
  30862. 2008-09-28 Robert Millan <rmh@aybabtu.com>
  30863. * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
  30864. to `modified'. Add the real `created' field.
  30865. (grub_iso9660_uuid): Use `modified' rather than `created' for
  30866. constructing the UUID.
  30867. 2008-09-28 Felix Zielcke <fzielcke@z-51.de>
  30868. fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
  30869. Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
  30870. 2008-09-28 Bean <bean123ch@gmail.com>
  30871. * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
  30872. Thanks to Christian Franke for finding this bug.
  30873. 2008-09-25 Robert Millan <rmh@aybabtu.com>
  30874. * util/grub-mkdevicemap.c (make_device_map): Actually replace all
  30875. instances of grub_util_get_disk_name() (see previous commit).
  30876. 2008-09-25 Robert Millan <rmh@aybabtu.com>
  30877. * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
  30878. `util/i386/get_disk_name.c'.
  30879. * conf/i386-efi.rmk: Likewise.
  30880. * conf/x86_64-efi.rmk: Likewise.
  30881. * conf/i386-coreboot.rmk: Likewise.
  30882. * conf/i386-ieee1275.rmk: Likewise.
  30883. * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
  30884. `util/ieee1275/get_disk_name.c'.
  30885. * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
  30886. * util/ieee1275/get_disk_name.c: Remove file.
  30887. * util/i386/get_disk_name.c: Remove file.
  30888. * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
  30889. "hd%d" for device.map entries, rather than using
  30890. grub_util_get_disk_name().
  30891. 2008-09-24 Carles Pina i Estany <carles@pina.cat>
  30892. * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
  30893. warning.
  30894. * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
  30895. 2008-09-24 Carles Pina i Estany <carles@pina.cat>
  30896. * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
  30897. Changed to 0x5100.
  30898. (GRUB_TERM_PPAGE): Changed to 0x4900.
  30899. 2008-09-24 Robert Millan <rmh@aybabtu.com>
  30900. * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
  30901. macros (they were i386-pc specific).
  30902. * include/grub/sparc64/ieee1275/console.h: Likewise.
  30903. * include/grub/efi/console.h: Likewise.
  30904. 2008-09-22 Bean <bean123ch@gmail.com>
  30905. * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
  30906. resident and in attribute list.
  30907. * include/grub/ntfs.h (BMP_LEN): Removed.
  30908. 2008-09-22 Bean <bean123ch@gmail.com>
  30909. * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
  30910. scsi->name and scsi->luns, as they will be set in grub_scsi_open.
  30911. * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
  30912. error occurs, as grub_disk_open will call grub_disk_close, which will
  30913. call p->close (scsi).
  30914. 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
  30915. * configure.ac (AC_INIT): Quote `GRUB' string and version number.
  30916. (AC_PREREQ): Bumped to 2.59.
  30917. (AC_TRY_COMPILE): Replace obsolete macro with ...
  30918. (AC_COMPILE_IFELSE): ... this.
  30919. * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
  30920. (AC_LINK_IFELSE): ... this.
  30921. 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
  30922. * autogen.sh: Add a call to `gendistlist.sh'.
  30923. 2008-09-19 Christian Franke <franke@computer.org>
  30924. * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
  30925. * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
  30926. * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
  30927. Export __enable_execute_stack() to modules.
  30928. * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
  30929. New function.
  30930. 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
  30931. * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
  30932. Sort the list.
  30933. 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
  30934. * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
  30935. #include <grub/util/hostdisk.h>.
  30936. 2008-09-08 Robert Millan <rmh@aybabtu.com>
  30937. * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
  30938. segments when their filesz is zero (grub_file_read() interprets
  30939. zero-size as "read until EOF", which results in memory corruption).
  30940. Use `lowest_segment' rather than 0 for calculating the current
  30941. segment load address.
  30942. 2008-09-08 Robert Millan <rmh@aybabtu.com>
  30943. * util/hostdisk.c (open_device): Replace a grub_util_info() call
  30944. with grub_dprintf("hostdisk", ...), as it was so verbose that it
  30945. clobbered useful information.
  30946. 2008-09-08 Robert Millan <rmh@aybabtu.com>
  30947. * include/grub/util/biosdisk.h: Move to ...
  30948. * include/grub/util/hostdisk.h: ... here. Update all users.
  30949. * util/biosdisk.c: Move to ...
  30950. * util/hostdisk.c: ... here. Update all users.
  30951. 2008-09-07 Robert Millan <rmh@aybabtu.com>
  30952. * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
  30953. variables.
  30954. (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
  30955. and length can be stored directly in the `mbi->mmap_addr' and
  30956. `mbi->mmap_length' struct fields.
  30957. 2008-09-07 Robert Millan <rmh@aybabtu.com>
  30958. * conf/i386.rmk: New file. Provides declaration for building
  30959. `cpuid.mod'.
  30960. * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
  30961. (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
  30962. variables.
  30963. Include `conf/i386.mk'.
  30964. * conf/i386-efi.rmk: Likewise.
  30965. * conf/x86_64-efi.rmk: Likewise.
  30966. * conf/i386-coreboot.rmk: Likewise.
  30967. * conf/i386-ieee1275.rmk: Likewise.
  30968. 2008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
  30969. Based on patch created by Colin D Bennett <colin@gibibit.com>.
  30970. Adds optimization support for BGR based modes.
  30971. * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
  30972. (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
  30973. (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
  30974. (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
  30975. (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
  30976. (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
  30977. (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
  30978. (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
  30979. (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
  30980. (grub_video_i386_vbeblit_index_index): Likewise.
  30981. (grub_video_i386_vbeblit_replace_directN): Added.
  30982. (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
  30983. (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
  30984. (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
  30985. (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
  30986. (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
  30987. (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
  30988. (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
  30989. (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
  30990. (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
  30991. (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
  30992. (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
  30993. (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
  30994. (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
  30995. * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
  30996. (grub_video_i386_vbefill_R8G8B8): Likewise.
  30997. (grub_video_i386_vbefill_index): Likewise.
  30998. (grub_video_i386_vbefill_direct32): Added.
  30999. (grub_video_i386_vbefill_direct24): Likewise.
  31000. (grub_video_i386_vbefill_direct16): Likewise.
  31001. (grub_video_i386_vbefill_direct8): Likewise.
  31002. * include/grub/video.h (grub_video_blit_format): Removed
  31003. GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
  31004. (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
  31005. GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
  31006. GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
  31007. GRUB_VIDEO_BLIT_FORMAT_BGR_565.
  31008. * video/video.c (grub_video_get_blit_format): Updated to use new
  31009. blit formats. Added handling for 16 bit color modes.
  31010. * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
  31011. fillers.
  31012. (common_blitter): Updated to use new blitters.
  31013. * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
  31014. Removed.
  31015. (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
  31016. (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
  31017. (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
  31018. (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
  31019. (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
  31020. (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
  31021. (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
  31022. (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
  31023. (grub_video_i386_vbeblit_index_index): Likewise.
  31024. (grub_video_i386_vbeblit_replace_directN): Added.
  31025. (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
  31026. (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
  31027. (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
  31028. (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
  31029. (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
  31030. (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
  31031. (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
  31032. (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
  31033. (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
  31034. (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
  31035. (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
  31036. (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
  31037. (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
  31038. * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
  31039. (grub_video_i386_vbefill_R8G8B8): Likewise.
  31040. (grub_video_i386_vbefill_index): Likewise.
  31041. (grub_video_i386_vbefill_direct32): Added.
  31042. (grub_video_i386_vbefill_direct24): Likewise.
  31043. (grub_video_i386_vbefill_direct16): Likewise.
  31044. (grub_video_i386_vbefill_direct8): Likewise.
  31045. * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
  31046. types.
  31047. * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
  31048. types.
  31049. * video/readers/png.c (grub_png_decode_image_header): Adapt to new
  31050. blitter types.
  31051. * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
  31052. types.
  31053. 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
  31054. * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
  31055. RAID level 1.
  31056. 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
  31057. * fs/iso9660.c (grub_iso9660_date): New structure.
  31058. (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
  31059. (grub_iso9660_uuid): New function.
  31060. 2008-09-05 Bean <bean123ch@gmail.com>
  31061. * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
  31062. * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
  31063. insensitive bit for names in Win32 and Win32 & DOS namespace.
  31064. * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
  31065. * include/grub/types.h (LONG_MAX): Likewise.
  31066. 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
  31067. * util/getroot.c: Include <config.h>.
  31068. (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
  31069. add support for /dev/md/N devices and handle LVM double dash escaping.
  31070. 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
  31071. * config.guess: Update to latest version from config git.
  31072. * config.sub: Likewise.
  31073. 2008-09-03 Robert Millan <rmh@aybabtu.com>
  31074. * disk/scsi.c (grub_scsi_open): Remove size limit when printing
  31075. `disk->total_sectors'.
  31076. 2008-09-01 Colin D Bennett <colin@gibibit.com>
  31077. * include/grub/normal.h: Fixed incorrect comment for
  31078. GRUB_COMMAND_FLAG_NO_ARG_PARSE.
  31079. 2008-09-01 Colin D Bennett <colin@gibibit.com>
  31080. * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
  31081. values with defines.
  31082. * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
  31083. (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
  31084. (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
  31085. (GRUB_VBE_MODEATTR_COLOR): Likewise.
  31086. (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
  31087. (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
  31088. (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
  31089. (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
  31090. (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
  31091. (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
  31092. (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
  31093. (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
  31094. (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
  31095. (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
  31096. (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
  31097. (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
  31098. (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
  31099. (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
  31100. (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
  31101. 2008-08-31 Robert Millan <rmh@aybabtu.com>
  31102. * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
  31103. declaration.
  31104. (grub_multiboot): Fix a few warnings.
  31105. 2008-08-31 Robert Millan <rmh@aybabtu.com>
  31106. * loader/i386/pc/multiboot.c: Update comment not to say that
  31107. boot_device support is unimplemented.
  31108. 2008-08-31 Robert Millan <rmh@aybabtu.com>
  31109. * loader/i386/pc/multiboot.c: Update comment not to say that a.out
  31110. or memory map support are unimplemented.
  31111. 2008-08-31 Colin D Bennett <colin@gibibit.com>
  31112. * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
  31113. 2008-08-31 Colin D Bennett <colin@gibibit.com>
  31114. * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
  31115. total video memory in 'vbeinfo' output; show color format details for
  31116. each video mode.
  31117. 2008-08-30 Pavel Roskin <proski@gnu.org>
  31118. * util/genmoddep.c: Remove for real this time.
  31119. * DISTLIST: Remove util/genmoddep.c.
  31120. 2008-08-30 Robert Millan <rmh@aybabtu.com>
  31121. * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
  31122. as required by Multiboot spec (it was already 4-byte aligned, but
  31123. only by chance).
  31124. 2008-08-29 Pavel Roskin <proski@gnu.org>
  31125. * kern/powerpc/ieee1275/crt0.S: Rename to ...
  31126. * kern/powerpc/ieee1275/startup.S: ... this.
  31127. * conf/powerpc-ieee1275.rmk: Adjust for the above.
  31128. * DISTLIST: Likewise.
  31129. * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
  31130. grub/cpu/kernel.h. Add start label for consistency with other
  31131. platforms. Add grub_prefix immediately after start. Add jump
  31132. to the code after grub_prefix.
  31133. * include/grub/powerpc/kernel.h: Provide valid values for
  31134. GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
  31135. 2008-08-29 Bean <bean123ch@gmail.com>
  31136. * configure.ac: Change host_os to cygwin for mingw.
  31137. (asprintf): New check for function.
  31138. * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
  31139. #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
  31140. * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
  31141. declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
  31142. sync, sleep and grub_util_get_disk_size for mingw.
  31143. * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
  31144. to get size in mingw.
  31145. (open_device): Use flag O_BINARY if it's defined.
  31146. (find_root_device): Add dummy code for mingw.
  31147. * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
  31148. (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
  31149. (get_scsi_disk_name): Return 0 for mingw.
  31150. * util/hostfs.c: #include <grub/util/misc.h>.
  31151. (grub_hostfs_open): Use "rb" flag to open file, use
  31152. grub_util_get_disk_size to get disk size for mingw.
  31153. * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
  31154. (asprintf): New function if HAVE_ASPRINTF is not set.
  31155. (sync): New function for mingw.
  31156. (sleep): Likewise.
  31157. (grub_util_get_disk_size): Likewise.
  31158. 2008-08-28 Pavel Roskin <proski@gnu.org>
  31159. * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
  31160. kern/time.c.
  31161. 2008-08-28 Robert Millan <rmh@aybabtu.com>
  31162. * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
  31163. 2008-08-28 Robert Millan <rmh@aybabtu.com>
  31164. Change find_grub_drive() syntax so it doesn't prevent it from
  31165. detecting NULL names as errors.
  31166. * util/biosdisk.c (find_grub_drive): Move free slot search code
  31167. from here ...
  31168. (find_free_slot): ... to here.
  31169. (read_device_map): Use find_free_slot() to search for free slots.
  31170. 2008-08-27 Marco Gerards <marco@gnu.org>
  31171. * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
  31172. (scsi_mod_SOURCES): New variable.
  31173. (scsi_mod_CFLAGS): Likewise
  31174. (scsi_mod_LDFLAGS): Likewise.
  31175. * disk/scsi.c: New file.
  31176. * include/grub/scsi.h: Likewise.
  31177. * include/grub/scsicmd.h: Likewise.
  31178. * disk/ata.c: Include <grub/scsi.h>.
  31179. (grub_atapi_packet): Do not use grub_ata_cmd, use registers
  31180. instead.
  31181. (grub_ata_iterate): Skip ATAPI devices.
  31182. (grub_ata_open): Only handle ATAPI devices.
  31183. (struct grub_atapi_read): Removed.
  31184. (grub_atapi_readsector): Likewise.
  31185. (grub_ata_read): No longer handle ATAPI devices.
  31186. (grub_ata_write): Likewise.
  31187. (grub_atapi_iterate): New function.
  31188. (grub_atapi_read): Likewise.
  31189. (grub_atapi_write): Likewise.
  31190. (grub_atapi_open): Likewise.
  31191. (grub_atapi_close): Likewise.
  31192. (grub_atapi_dev): New variable.
  31193. (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
  31194. (GRUB_MOD_FINI(ata)): Unregister ATAPI.
  31195. * include/grub/disk.h (enum grub_disk_dev_id): Add
  31196. `GRUB_DISK_DEVICE_SCSI_ID'.
  31197. 2008-08-26 Robert Millan <rmh@aybabtu.com>
  31198. * util/biosdisk.c (grub_util_biosdisk_open, open_device)
  31199. (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
  31200. descriptive.
  31201. 2008-08-23 Bean <bean123ch@gmail.com>
  31202. * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
  31203. (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
  31204. disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
  31205. (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
  31206. dm_nv.mod.
  31207. (raid5rec_mod_SOURCES): New macro.
  31208. (raid5rec_mod_CFLAGS): Likewise.
  31209. (raid5rec_mod_LDFLAGS): Likewise.
  31210. (raid6rec_mod_SOURCES): Likewise.
  31211. (raid6rec_mod_CFLAGS): Likewise.
  31212. (raid6rec_mod_LDFLAGS): Likewise.
  31213. (mdraid_mod_SOURCES): Likewise.
  31214. (mdraid_mod_CFLAGS): Likewise.
  31215. (mdraid_mod_LDFLAGS): Likewise.
  31216. (dm_nv_mod_SOURCES): Likewise.
  31217. (dm_nv_mod_CFLAGS): Likewise.
  31218. (dm_nv_mod_LDFLAGS): Likewise.
  31219. * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
  31220. (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
  31221. disk/mdraid_linux.c and disk/dmraid_nvidia.c.
  31222. * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
  31223. disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
  31224. * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
  31225. * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
  31226. * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
  31227. * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
  31228. * disk/raid5_recover.c: New file.
  31229. * disk/raid6_recover.c: Likewise.
  31230. * disk/mdraid_linux.c: Likewise.
  31231. * disk/dmraid_nvidia.c: Likewise.
  31232. * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
  31233. ULONG_MAX.
  31234. * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
  31235. calculate the size of raid device.
  31236. (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
  31237. different layout of raid5.
  31238. (grub_raid_scan_device): Remove code specific to mdraid.
  31239. (grub_raid_list): New variable.
  31240. (free_array): New function.
  31241. (grub_raid_register): Likewise.
  31242. (grub_raid_unregister): Likewise.
  31243. (grub_raid_rescan): Likewise.
  31244. (GRUB_MOD_INIT): Don't iterate device here.
  31245. (GRUB_MOD_FINI): Use free_array to release resource.
  31246. * include/grub/raid.h: Remove macro and structure specific to mdraid.
  31247. (grub_raid5_recover_func_t): New function variable type.
  31248. (grub_raid6_recover_func_t): Likewise.
  31249. (grub_raid5_recover_func): New variable.
  31250. (grub_raid6_recover_func): Likewise.
  31251. (grub_raid_register): New function.
  31252. (grub_raid_unregister): Likewise.
  31253. (grub_raid_rescan): Likewise.
  31254. (grub_raid_block_xor): Likewise.
  31255. * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
  31256. (CMD_CRC): New macro.
  31257. (part): Removed.
  31258. (read_file): Handle device as well as file.
  31259. (cmd_crc): New function.
  31260. (fstest): Handle multiple disks.
  31261. (options): Remove part, raw and long, add root and diskcount.
  31262. (usage): Add crc, remove -p, -r, -l, add -r and -c.
  31263. (main): Find the first non option entry and ignore subsequent options,
  31264. add handling for the new options, support multiple disks.
  31265. * util/grub-probe.c (probe): Add mdraid to abstraction_name.
  31266. 2008-08-23 Bean <bean123ch@gmail.com>
  31267. * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
  31268. * genfslist.sh: Ignore kernel.mod.
  31269. * genpartmaplist.sh: Likewise.
  31270. 2008-08-23 Robert Millan <rmh@aybabtu.com>
  31271. * util/getroot.c (find_root_device): Skip anything that starts with
  31272. a dot, not just directories. This avoids things like /dev/.tmp.md0.
  31273. 2008-08-22 Felix Zielcke <fzielcke@z-51.de>
  31274. * util/update-grub.in (GRUB_GFXMODE): Export variable.
  31275. * util/grub.d/00_header.in: Allow the administrator to change default
  31276. gfxmode via ${GRUB_GFXMODE}.
  31277. 2008-08-21 Felix Zielcke <fzielcke@z-51.de>
  31278. * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
  31279. 2008-08-21 Robert Millan <rmh@aybabtu.com>
  31280. * loader/i386/linux.c: New file. Implements generic 32-bit Linux
  31281. loader.
  31282. * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
  31283. `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
  31284. 2008-08-20 Carles Pina i Estany <carles@pina.cat>
  31285. * menu/normal.c (run_menu): Replace hardcoded numbers with macros
  31286. (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
  31287. 2008-08-19 Robert Millan <rmh@aybabtu.com>
  31288. * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
  31289. (struct grub_virtual_screen): Remove `cursor_color'.
  31290. (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
  31291. initialization.
  31292. (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
  31293. 2008-08-18 Robert Millan <rmh@aybabtu.com>
  31294. Unify (identical) linux_normal.c files.
  31295. * loader/i386/efi/linux_normal.c: Move from here ...
  31296. * loader/linux_normal.c: ... to here. Update all users.
  31297. * loader/i386/pc/linux_normal.c: Delete. Update all users.
  31298. * loader/i386/ieee1275/linux_normal.c: Likewise.
  31299. 2008-08-18 Robert Millan <rmh@aybabtu.com>
  31300. * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
  31301. (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
  31302. (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
  31303. (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
  31304. (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
  31305. New macros.
  31306. (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
  31307. * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
  31308. (GRUB_LINUX_CL_END_OFFSET): ... to here.
  31309. * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
  31310. (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
  31311. (GRUB_EFI_CL_END_OFFSET): Rename to ...
  31312. (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
  31313. (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
  31314. Initialize `params->video_cursor_x' and `params->video_cursor_y'
  31315. portably using grub_getxy().
  31316. Replace `-EFI' with `-bzImage' in boot message.
  31317. 2008-08-17 Robert Millan <rmh@aybabtu.com>
  31318. * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
  31319. 2008-08-17 Robert Millan <rmh@aybabtu.com>
  31320. * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
  31321. * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
  31322. (GRUB_MACHINE_MEMORY_RESERVED): New macros.
  31323. (grub_machine_mmap_iterate): New function declaration.
  31324. * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
  31325. structure.
  31326. (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
  31327. macros.
  31328. * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
  31329. type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
  31330. Move e820 parsing from here ...
  31331. * kern/i386/pc/mmap.c: New file.
  31332. (grub_machine_mmap_iterate): ... to here.
  31333. * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
  31334. (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
  31335. (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
  31336. (grub_available_iterate): Redeclare to return `void', and redeclare
  31337. its hook to use grub_uint64_t as addr and size parameters, and rename
  31338. to ...
  31339. (grub_machine_mmap_iterate): ... this. Update all users.
  31340. * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
  31341. to make it more readable. Rename to ...
  31342. (grub_machine_mmap_iterate): ... this.
  31343. * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
  31344. (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
  31345. (grub_multiboot): Allocate an extra region after the payload, and fill
  31346. it with a Multiboot memory map. Adjust a.out loader to calculate size
  31347. with the extra space.
  31348. (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
  31349. with the extra space.
  31350. 2008-08-17 Carles Pina i Estany <carles@pina.cat>
  31351. * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
  31352. 2008-08-17 Felix Zielcke <fzielcke@z-51.de>
  31353. * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
  31354. mdate-sh to the list `find' searches for.
  31355. * DISTLIST: Regenerated.
  31356. 2008-08-16 Felix Zielcke <fzielcke@z-51.de>
  31357. * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
  31358. genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
  31359. genmoddep.awk, gensymlist.sh.in.
  31360. (DISTDIRS): Add bus, docs, hook, lib.
  31361. * DISTLIST: Regenerated.
  31362. * NEWS: Add cygwin support and change the `os-prober' entry a bit.
  31363. 2008-08-16 Robert Millan <rmh@aybabtu.com>
  31364. * disk/raid.c (grub_raid_init): Handle/report errors set by
  31365. grub_device_iterate().
  31366. * disk/lvm.c (grub_lvm_init): Likewise.
  31367. 2008-08-15 Bean <bean123ch@gmail.com>
  31368. * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
  31369. and datehook.mod.
  31370. (datetime_mod_SOURCES): New macro.
  31371. (datetime_mod_CFLAGS): Likewise.
  31372. (datetime_mod_LDFLAGS): Likewise.
  31373. (date_mod_SOURCES): Likewise.
  31374. (date_mod_CFLAGS): Likewise.
  31375. (date_mod_LDFLAGS): Likewise.
  31376. (datehook_mod_SOURCES): Likewise.
  31377. (datehook_mod_CFLAGS): Likewise.
  31378. (datehook_mod_LDFLAGS): Likewise.
  31379. * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
  31380. and datehook.mod.
  31381. (datetime_mod_SOURCES): New macro.
  31382. (datetime_mod_CFLAGS): Likewise.
  31383. (datetime_mod_LDFLAGS): Likewise.
  31384. (date_mod_SOURCES): Likewise.
  31385. (date_mod_CFLAGS): Likewise.
  31386. (date_mod_LDFLAGS): Likewise.
  31387. (datehook_mod_SOURCES): Likewise.
  31388. (datehook_mod_CFLAGS): Likewise.
  31389. (datehook_mod_LDFLAGS): Likewise.
  31390. * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
  31391. and datehook.mod.
  31392. (datetime_mod_SOURCES): New macro.
  31393. (datetime_mod_CFLAGS): Likewise.
  31394. (datetime_mod_LDFLAGS): Likewise.
  31395. (date_mod_SOURCES): Likewise.
  31396. (date_mod_CFLAGS): Likewise.
  31397. (date_mod_LDFLAGS): Likewise.
  31398. (datehook_mod_SOURCES): Likewise.
  31399. (datehook_mod_CFLAGS): Likewise.
  31400. (datehook_mod_LDFLAGS): Likewise.
  31401. * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
  31402. and datehook.mod.
  31403. (datetime_mod_SOURCES): New macro.
  31404. (datetime_mod_CFLAGS): Likewise.
  31405. (datetime_mod_LDFLAGS): Likewise.
  31406. (date_mod_SOURCES): Likewise.
  31407. (date_mod_CFLAGS): Likewise.
  31408. (date_mod_LDFLAGS): Likewise.
  31409. (datehook_mod_SOURCES): Likewise.
  31410. (datehook_mod_CFLAGS): Likewise.
  31411. (datehook_mod_LDFLAGS): Likewise.
  31412. * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
  31413. and datehook.mod.
  31414. (datetime_mod_SOURCES): New macro.
  31415. (datetime_mod_CFLAGS): Likewise.
  31416. (datetime_mod_LDFLAGS): Likewise.
  31417. (date_mod_SOURCES): Likewise.
  31418. (date_mod_CFLAGS): Likewise.
  31419. (date_mod_LDFLAGS): Likewise.
  31420. (datehook_mod_SOURCES): Likewise.
  31421. (datehook_mod_CFLAGS): Likewise.
  31422. (datehook_mod_LDFLAGS): Likewise.
  31423. * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
  31424. * commands/date.c: New file.
  31425. * hook/datehook.c: Likewise.
  31426. * include/grub/lib/datetime.h: Likewise.
  31427. * include/grub/i386/cmos.h: Likewise.
  31428. * lib/datetime.c: Likewise.
  31429. * lib/i386/datetime.c: Likewise.
  31430. * lib/efi/datetime.c: Likewise.
  31431. 2008-08-14 Robert Millan <rmh@aybabtu.com>
  31432. * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
  31433. (grub_mkelfimage_SOURCES): New variable.
  31434. (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
  31435. * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
  31436. (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
  31437. * conf/powerpc-ieee1275.rmk: Likewise.
  31438. * conf/i386-ieee1275.rmk: Likewise.
  31439. * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
  31440. * kern/i386/coreboot/init.c: Likewise.
  31441. * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
  31442. with `<grub/cpu/kernel.h>'.
  31443. (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
  31444. to ...
  31445. (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
  31446. * kern/i386/coreboot/startup.S: Likewise.
  31447. * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
  31448. (GRUB_MOD_GAP): Remove.
  31449. * include/grub/powerpc/kernel.h: New file.
  31450. * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
  31451. (GRUB_KERNEL_MACHINE_DATA_END): Remove.
  31452. * include/grub/i386/kernel.h: New file.
  31453. * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
  31454. (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
  31455. (GRUB_KERNEL_MACHINE_DATA_END): Remove.
  31456. * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
  31457. `grub-mkelfimage'.
  31458. Use --directory when invoking grub_mkimage.
  31459. * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
  31460. (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
  31461. GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
  31462. and GRUB_KERNEL_CPU_PREFIX.
  31463. 2008-08-14 Felix Zielcke <fzielcke@z-51.de>
  31464. * include/grub/err.h (grub_err_printf): New function prototype.
  31465. * util/misc.c (grub_err_printf): New function.
  31466. * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
  31467. grub_printf.
  31468. * kern/err.c (grub_print_error): Use grub_err_printf.
  31469. 2008-08-13 Robert Millan <rmh@aybabtu.com>
  31470. * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
  31471. 2008-08-13 Robert Millan <rmh@aybabtu.com>
  31472. * docs/grub.cfg: Use the native device name for the example GNU/Hurd
  31473. boot entry.
  31474. 2008-08-12 Robert Millan <rmh@aybabtu.com>
  31475. * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
  31476. of the relocation code from here ...
  31477. (grub_multiboot): ... to here.
  31478. (forward_relocator, backward_relocator): Move from here ...
  31479. * kern/i386/loader.S (grub_multiboot_forward_relocator)
  31480. (grub_multiboot_backward_relocator): ... to here.
  31481. (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
  31482. magic in %eax. Use %ebp for jumping (so %edx is not trashed).
  31483. * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
  31484. (grub_multiboot_forward_relocator_end)
  31485. (grub_multiboot_backward_relocator)
  31486. (grub_multiboot_backward_relocator_end): New variables.
  31487. 2008-08-12 Bean <bean123ch@gmail.com>
  31488. * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
  31489. 2008-08-11 Robert Millan <rmh@aybabtu.com>
  31490. * kern/i386/linuxbios/startup.S: Move from here ...
  31491. * kern/i386/coreboot/startup.S: ... to here.
  31492. * kern/i386/linuxbios/init.c: Move from here ...
  31493. * kern/i386/coreboot/init.c: ... to here.
  31494. * kern/i386/linuxbios/table.c: Move from here ...
  31495. * kern/i386/coreboot/mmap.c: ... to here.
  31496. * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
  31497. 2008-08-11 Robert Millan <rmh@aybabtu.com>
  31498. * kern/device.c (grub_device_open): Do not handle grub_disk_open()
  31499. errors. Leave it to the upper layer to handle them.
  31500. 2008-08-09 Christian Franke <franke@computer.org>
  31501. * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
  31502. * conf/common.rmk: Install `grub-pe2elf' only if requested.
  31503. Install `grub.d/10_windows' only on Cygwin.
  31504. * configure.ac: Add subst of `target_os'.
  31505. Check `target_os' also before setting TARGET_OBJ2ELF.
  31506. Add `--enable-grub-pe2elf'.
  31507. 2008-08-08 Robert Millan <rmh@aybabtu.com>
  31508. * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
  31509. (grub_last_time): Change type to grub_uint64_t.
  31510. (grub_disk_open): Migrate code from to using grub_get_time_ms().
  31511. (grub_disk_close): Likewise.
  31512. * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
  31513. (run_menu): Migrate code from to using grub_get_time_ms().
  31514. * util/misc.c (grub_get_time_ms): New function.
  31515. 2008-08-08 Marco Gerards <marco@gnu.org>
  31516. * disk/ata.c (grub_ata_regget): Change return type to
  31517. `grub_uint8_t'.
  31518. (grub_ata_regget2): Likewise.
  31519. (grub_ata_wait_status): New function.
  31520. (grub_ata_wait_busy): Removed function, updated all users to use
  31521. `grub_ata_wait_status'.
  31522. (grub_ata_wait_drq): Likewise.
  31523. (grub_ata_cmd): New function.
  31524. (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
  31525. error handling.
  31526. (grub_ata_pio_write): Add error handling.
  31527. (grub_atapi_identify): Likewise.
  31528. (grub_atapi_packet): Use `grub_ata_cmd' and improve error
  31529. handling.
  31530. (grub_ata_identify): Use `grub_ata_cmd' and improve error
  31531. handling. Actually use the detected registers. Reorder the
  31532. detection logic such that it is easier to read.
  31533. (grub_ata_pciinit): Do not assign the same ID to each controller.
  31534. (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
  31535. handling.
  31536. (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
  31537. * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
  31538. 2008-08-08 Marco Gerards <marco@gnu.org>
  31539. * NEWS: Update.
  31540. 2008-08-07 Bean <bean123ch@gmail.com>
  31541. * include/grub/x86_64/pci.h: New file.
  31542. 2008-08-07 Christian Franke <franke@computer.org>
  31543. * kern/i386/pit.c (TIMER2_SPEAKER): New define.
  31544. (TIMER2_GATE): Likewise.
  31545. (grub_pit_wait): Add enable/disable of the timer2 gate
  31546. bit of port 0x61. This fixes a possible infinite loop.
  31547. 2008-08-07 Bean <bean123ch@gmail.com>
  31548. * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
  31549. kern/i386/tsc.c and kern/i386/pit.c.
  31550. * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
  31551. x86_64 platform.
  31552. * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
  31553. <grub/i386/tsc.h>.
  31554. * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
  31555. 2008-08-07 Bean <bean123ch@gmail.com>
  31556. * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
  31557. * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
  31558. * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
  31559. multiple inclusion. Add #include <grub/types.h>.
  31560. 2008-08-06 Christian Franke <franke@computer.org>
  31561. * conf/common.rmk: Build and install `10_windows'.
  31562. * util/grub.d/10_windows.in: New script.
  31563. 2008-08-06 Pavel Roskin <proski@gnu.org>
  31564. * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
  31565. 2008-08-06 Robert Millan <rmh@aybabtu.com>
  31566. * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
  31567. * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
  31568. 2008-08-06 Bean <bean123ch@gmail.com>
  31569. * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
  31570. (grub_pxefs_fs_int): Remove dummy definition.
  31571. (grub_pxefs_open): Use data->block_size to store the current block
  31572. size setting.
  31573. (grub_pxefs_read): Use block size stored in data->block_size. As the
  31574. value of grub_pxe_blksize can be changed after the file is opened.
  31575. 2008-08-06 Bean <bean123ch@gmail.com>
  31576. * fs/i386/pc/pxe.c (curr_file): new variable.
  31577. (grub_pxefs_open): Simply the handling of pxe file system. Don't
  31578. require the dummy internal file system anymore.
  31579. (grub_pxefs_read): Removed.
  31580. (grub_pxefs_close): Likewise.
  31581. (grub_pxefs_fs_int): Likewise.
  31582. (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
  31583. connection when we switch file.
  31584. (grub_pxefs_close_int): Renamed to grub_pxefs_close.
  31585. 2008-08-06 Robert Millan <rmh@aybabtu.com>
  31586. * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
  31587. `halt.mod'.
  31588. (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
  31589. (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
  31590. * kern/i386/halt.c: New file.
  31591. * kern/i386/reboot.c: Likewise.
  31592. * include/grub/i386/reboot.h: Likewise.
  31593. * include/grub/i386/halt.h: Likewise.
  31594. * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
  31595. Include `<grub/cpu/halt.h>'.
  31596. * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
  31597. [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
  31598. * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
  31599. (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
  31600. (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
  31601. (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
  31602. (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
  31603. (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
  31604. from here ...
  31605. * include/grub/i386/at_keyboard.h: ... to here.
  31606. 2008-08-05 Robert Millan <rmh@aybabtu.com>
  31607. * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
  31608. * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
  31609. * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
  31610. `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
  31611. `kern/generic/millisleep.c'.
  31612. * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
  31613. instead of grub_get_rtc().
  31614. (grub_tsc_init): Initialize `tsc_boot_time'.
  31615. * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
  31616. (grub_machine_init): Use grub_tsc_init() rather than
  31617. installing an RTC-based handler via grub_install_get_time_ms().
  31618. * kern/i386/pit.c: New file.
  31619. * include/grub/i386/pit.h: Likewise.
  31620. 2008-08-05 Bean <bean123ch@gmail.com>
  31621. * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
  31622. * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
  31623. (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
  31624. (pxe_mod_SOURCES): New macro.
  31625. (pxe_mod_CFLAGS): Likewise.
  31626. (pxe_mod_LDFLAGS): Likewise.
  31627. (pxecmd_mod_SOURCES): Likewise.
  31628. (pxecmd_mod_CFLAGS): Likewise.
  31629. (pxecmd_mod_LDFLAGS): Likewise.
  31630. * kern/i386/pc/startup.S (grub_pxe_scan): New function.
  31631. (grub_pxe_call): Likewise.
  31632. * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
  31633. * commands/i386/pc/pxecmd.c: New file.
  31634. * fs/i386/pc/pxe.c: Likewise.
  31635. * include/grub/i386/pc/pxe.h: Likewise.
  31636. 2008-08-05 Bean <bean123ch@gmail.com>
  31637. * util/console.c (grub_console_cur_color): New variable.
  31638. (grub_console_standard_color): Likewise.
  31639. (grub_console_normal_color): Likewise.
  31640. (grub_console_highlight_color): Likewise.
  31641. (color_map): Likewise.
  31642. (use_color): Likewise.
  31643. (NUM_COLORS): New macro.
  31644. (grub_ncurses_setcolorstate): Handle color properly.
  31645. (grub_ncurses_setcolor): Don't change color here, just remember the
  31646. settings, color will be set in grub_ncurses_setcolorstate.
  31647. (grub_ncurses_getcolor): New function.
  31648. (grub_ncurses_init): Initialize color pairs.
  31649. (grub_ncurses_term): New member grub_ncurses_getcolor.
  31650. 2008-08-05 Colin D Bennett <colin@gibibit.com>
  31651. High resolution timer support. Implemented for x86 CPUs using TSC.
  31652. Extracted generic grub_millisleep() so it's linked in only as needed.
  31653. This requires a Pentium compatible CPU; if the RDTSC instruction is
  31654. not supported, then it falls back on the generic grub_get_time_ms()
  31655. implementation that uses the machine's RTC.
  31656. * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
  31657. `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
  31658. `kern/generic/millisleep.c'.
  31659. * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
  31660. `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
  31661. * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
  31662. `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
  31663. * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
  31664. * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
  31665. `kern/generic/millisleep.c'.
  31666. * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
  31667. * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
  31668. * kern/generic/rtc_get_time_ms.c: New file.
  31669. * kern/generic/millisleep.c: New file.
  31670. * kern/misc.c: Don't include
  31671. <kern/time.h> anymore.
  31672. (grub_millisleep_generic): Removed.
  31673. * commands/sleep.c (grub_interruptible_millisleep): Uses
  31674. grub_get_time_ms() instead of grub_get_rtc().
  31675. * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
  31676. function.
  31677. (grub_cpu_is_cpuid_supported): New inline function.
  31678. (grub_cpu_is_tsc_supported): New inline function.
  31679. (grub_tsc_init): New function prototype.
  31680. (grub_tsc_get_time_ms): New function prototype.
  31681. * kern/i386/tsc.c (grub_get_time_ms): New file.
  31682. * include/grub/time.h: Include <grub/types.h.
  31683. (grub_millisleep_generic): Removed.
  31684. (grub_get_time_ms): New prototype.
  31685. (grub_install_get_time_ms): New prototype.
  31686. (grub_rtc_get_time_ms): New prototype.
  31687. * kern/time.c (grub_get_time_ms): New function.
  31688. (grub_install_get_time_ms): New function.
  31689. * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
  31690. <grub/time.h> anymore.
  31691. (grub_millisleep): Removed.
  31692. (grub_machine_init): Call grub_tsc_init.
  31693. * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
  31694. get_time_ms() implementation.
  31695. * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
  31696. (ieee1275_get_time_ms): New function.
  31697. (grub_machine_init): Install get_time_ms() implementation.
  31698. * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
  31699. (grub_machine_init): Call grub_tsc_init().
  31700. (grub_millisleep): Removed.
  31701. * kern/ieee1275/init.c (grub_millisleep): Removed.
  31702. (grub_machine_init): Install ieee1275_get_time_ms()
  31703. implementation.
  31704. (ieee1275_get_time_ms): New function.
  31705. (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
  31706. real work.
  31707. 2008-08-05 Marco Gerards <marco@gnu.org>
  31708. * disk/ata.c: Include <grub/pci.h>.
  31709. (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
  31710. (grub_ata_initialize): Rewritten.
  31711. (grub_ata_device_initialize): New function.
  31712. 2008-08-04 Pavel Roskin <proski@gnu.org>
  31713. * kern/main.c: Include grub/mm.h.
  31714. 2008-08-04 Robert Millan <rmh@aybabtu.com>
  31715. * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
  31716. (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
  31717. corruption problem).
  31718. 2008-08-04 Robert Millan <rmh@aybabtu.com>
  31719. * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
  31720. warnings introduced in my last commit.
  31721. 2008-08-03 Robert Millan <rmh@aybabtu.com>
  31722. Make PCI available on all i386 architectures.
  31723. * include/grub/i386/pc/pci.h: Move from here ...
  31724. * include/grub/i386/pci.h: ... to here.
  31725. * include/grub/i386/pc/pci.h: Remove.
  31726. * include/grub/i386/efi/pci.h: Remove.
  31727. * include/grub/x86_64/efi/pci.h: Remove.
  31728. * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
  31729. `<grub/cpu/pci.h>'.
  31730. * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
  31731. (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
  31732. (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
  31733. * conf/i386-ieee1275.rmk: Likewise.
  31734. 2008-08-03 Robert Millan <rmh@aybabtu.com>
  31735. * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
  31736. (grub_console_setcursor): Make it possible to set cursor off.
  31737. 2008-08-03 Robert Millan <rmh@aybabtu.com>
  31738. * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
  31739. of modules instead of assuming which platform provides what.
  31740. * util/update-grub.in: Likewise.
  31741. 2008-08-03 Robert Millan <rmh@aybabtu.com>
  31742. * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
  31743. instead of `grub_install_dos_part' to determine whether a drive needs
  31744. to be prepended to prefix (`grub_install_dos_part' is not reliable,
  31745. because it can be overridden when loading GRUB via Multiboot).
  31746. 2008-08-02 Robert Millan <rmh@aybabtu.com>
  31747. * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
  31748. 2008-08-02 Robert Millan <rmh@aybabtu.com>
  31749. * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
  31750. of informational grub_dprintf() calls.
  31751. 2008-08-02 Robert Millan <rmh@aybabtu.com>
  31752. * disk/memdisk.c (memdisk_size): Don't initialize.
  31753. (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
  31754. * include/grub/i386/pc/kernel.h
  31755. (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
  31756. (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
  31757. (grub_memdisk_image_size, grub_arch_memdisk_addr)
  31758. (grub_arch_memdisk_size): Remove.
  31759. * include/grub/kernel.h (struct grub_module_header): Remove `offset'
  31760. field (was only used to transfer a constant). Add `type' field to
  31761. support multiple module types.
  31762. (grub_module_iterate): New function.
  31763. * kern/device.c (grub_device_open): Do not hide error messages
  31764. when grub_disk_open() fails. Use grub_print_error() instead.
  31765. * kern/i386/pc/init.c (grub_arch_modules_addr)
  31766. (grub_arch_memdisk_size): Remove functions.
  31767. (grub_arch_modules_addr): Return the module address in high memory
  31768. (now that it isn't copied anymore).
  31769. * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
  31770. (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
  31771. decompression routine (grub_total_module_size already includes that
  31772. now). Don't copy modules back to low memory.
  31773. * kern/main.c: Include `<grub/mm.h>'.
  31774. (grub_load_modules): Split out (and use) ...
  31775. (grub_module_iterate): ... this function, which iterates through
  31776. module objects and runs a hook.
  31777. Comment out grub_mm_init_region() call, as it would cause non-ELF
  31778. modules to be overwritten.
  31779. * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
  31780. the memdisk image in its own region, make it part of the module list.
  31781. * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
  31782. (main): Parse --memdisk|-m option, and pass user-provided path as
  31783. parameter to generate_image().
  31784. (add_segments): Pass `memdisk_path' down to load_modules().
  31785. (load_modules): Embed memdisk image in module section when requested.
  31786. * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
  31787. `header.type' instead of `header.offset'.
  31788. * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
  31789. (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
  31790. (memdisk_mod_LDFLAGS): New variables.
  31791. * conf/i386-coreboot.rmk: Likewise.
  31792. * conf/i386-ieee1275.rmk: Likewise.
  31793. 2008-08-02 Robert Millan <rmh@aybabtu.com>
  31794. * loader/i386/pc/multiboot.c (playground, forward_relocator)
  31795. (backward_relocator): New variables. Used to allocate and relocate
  31796. the payload, respectively.
  31797. (grub_multiboot_load_elf32): Load into heap instead of requested
  31798. address, install the appropriate relocator code in each bound of
  31799. the payload, and set the entry point such that
  31800. grub_multiboot_real_boot() will jump to one of them.
  31801. * kern/i386/loader.S (grub_multiboot_payload_size)
  31802. (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
  31803. (grub_multiboot_payload_entry_offset): New variables.
  31804. (grub_multiboot_real_boot): Set cpu context to what the relocator
  31805. expects, and jump to the relocator instead of the payload.
  31806. * include/grub/i386/loader.h (grub_multiboot_payload_size)
  31807. (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
  31808. (grub_multiboot_payload_entry_offset): Export.
  31809. 2008-08-01 Bean <bean123ch@gmail.com>
  31810. * normal/menu_entry.c (editor_getline): Don't return the original
  31811. string as result, as it will be released by lexer once it has done
  31812. using it.
  31813. 2008-08-01 Robert Millan <rmh@aybabtu.com>
  31814. * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
  31815. within menuentries, not before them.
  31816. util/grub.d/10_hurd.in: Likewise.
  31817. 2008-08-01 Bean <bean123ch@gmail.com>
  31818. * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
  31819. (bufio_mod_SOURCES): New macro.
  31820. (bufio_mod_CFLAGS): Likewise.
  31821. (bufio_mod_LDFLAGS): Likewise.
  31822. * include/grub/bufio.h: New file.
  31823. * io/bufio.c: Likewise.
  31824. * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
  31825. (grub_video_reader_png): Use grub_buffile_open to open file.
  31826. * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
  31827. (grub_video_reader_jpeg): Use grub_buffile_open to open file.
  31828. * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
  31829. (grub_video_reader_tga): Use grub_buffile_open to open file.
  31830. * font/manager.c: Include <grub/bufio.h>.
  31831. (add_font): Use grub_buffile_open to open file.
  31832. 2008-07-31 Robert Millan <rmh@aybabtu.com>
  31833. * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
  31834. ELF segments, use a macro for arbitrarily accessing any of them instead
  31835. of preparing a pointer that allows access to one at a time.
  31836. (grub_multiboot_load_elf64): Likewise.
  31837. 2008-07-31 Bean <bean123ch@gmail.com>
  31838. * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
  31839. GRUB_KERNEL_MACHINE_DATA_END.
  31840. 2008-07-30 Robert Millan <rmh@aybabtu.com>
  31841. * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
  31842. Increase from 0x50 to 0x60.
  31843. * util/i386/pc/grub-install.in: Detect cross-disk installs, and
  31844. use UUIDs to identify the root drive for them. If that's not
  31845. possible, abort.
  31846. * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
  31847. check, for cross-disk installs.
  31848. 2008-07-30 Robert Millan <rmh@aybabtu.com>
  31849. * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
  31850. is non-empty, use it to set the `prefix' environment variable instead
  31851. of the usual approach.
  31852. * kern/i386/linuxbios/init.c (make_install_device): Remove function.
  31853. (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
  31854. environment variable instead of dummy make_install_device().
  31855. * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
  31856. (start): Insert a data section, with `grub_prefix' variable.
  31857. * kern/i386/linuxbios/startup.S: Likewise.
  31858. * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
  31859. New variable reference.
  31860. * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
  31861. New macro. Defines offset of `grub_prefix' within startup.S (relative
  31862. to `start').
  31863. (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
  31864. section within startup.S (relative to `start').
  31865. * include/grub/i386/coreboot/kernel.h: Likewise.
  31866. * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
  31867. Overwrite grub_prefix with its contents, at the beginning of the
  31868. first segment.
  31869. (main): Understand -p|--prefix.
  31870. 2008-07-30 Robert Millan <rmh@aybabtu.com>
  31871. * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
  31872. 2008-07-30 Robert Millan <rmh@aybabtu.com>
  31873. * term/i386/pc/vga_text.c (grub_console_cls): Use
  31874. grub_console_gotoxy() to go back to beginning of the screen.
  31875. Found by Patrick Georgi <patrick.georgi@coresystems.de>
  31876. 2008-07-29 Christian Franke <franke@computer.org>
  31877. * util/update-grub_lib.in (make_system_path_relative_to_its_root):
  31878. Add conversion of emulated mount points on Cygwin.
  31879. 2008-07-29 Christian Franke <franke@computer.org>
  31880. * util/update-grub.in: Add a check for admin
  31881. group on Cygwin.
  31882. Remove old `grub.cfg.new' before creation.
  31883. Add `-f' to `mv' to handle the different filesystem
  31884. semantics of Windows.
  31885. 2008-07-29 Bean <bean123ch@gmail.com>
  31886. * normal/main.c (get_line): Fix buffer overflow bug.
  31887. 2008-07-28 Robert Millan <rmh@aybabtu.com>
  31888. * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
  31889. (struct grub_apple_header): New struct. Describes the layout of
  31890. the partmap header.
  31891. (apple_partition_map_iterate): Check the header magic as well as the
  31892. partition magic (which was already being checked).
  31893. 2008-07-28 Pavel Roskin <proski@gnu.org>
  31894. * genmk.rb: Add a warning to the beginning of the output that
  31895. it's a generated file and should not be edited.
  31896. 2008-07-28 Robert Millan <rmh@aybabtu.com>
  31897. * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
  31898. with the same number are found, just use issue a warning with
  31899. grub_dprintf(), as this error has been reported to be non-fatal.
  31900. 2008-07-27 Robert Millan <rmh@aybabtu.com>
  31901. * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
  31902. information.
  31903. 2008-07-27 Bean <bean123ch@gmail.com>
  31904. * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
  31905. (grub_fat_find_dir): Ignore case when comparing filename.
  31906. 2008-07-27 Bean <bean123ch@gmail.com>
  31907. * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
  31908. smallino, as it's more descriptive, and i8count can be confused with
  31909. the other field count.
  31910. (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
  31911. inode type.
  31912. 2008-07-27 Bean <bean123ch@gmail.com>
  31913. * commands/crc.c: New file.
  31914. * lib/crc.c: Likewise.
  31915. * include/grub/lib/crc.h: Likewise.
  31916. * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
  31917. * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
  31918. (hexdump): Move this function to ...
  31919. * lib/hexdump.c: ... here.
  31920. * include/grub/hexdump.h: Renamed to ...
  31921. * include/grub/lib/hexdump.h: ... this.
  31922. * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
  31923. * util/grub-editenv.c: Likewise.
  31924. * include/envblk.h: Renamed to ...
  31925. * include/lib/envblk.h: ... this.
  31926. * util/envblk.c: Renamed to ...
  31927. * lib/envblk.c: ... this.
  31928. * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
  31929. lib/hexdump.c.
  31930. (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
  31931. (pkglib_MODULES): Add crc.mod.
  31932. (hexdump_mod_SOURCES): Add lib/hexdump.c.
  31933. (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
  31934. (crc_mod_SOURCES): New macro.
  31935. (crc_mod_CFLAGS): Likewise.
  31936. (crc_mod_LDFLAGS): Likewise.
  31937. * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
  31938. * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
  31939. * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
  31940. * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
  31941. * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
  31942. 2008-07-27 Felix Zielcke <fzielcke@z-51.de>
  31943. * commands/help.c: Include <grub/term.h>.
  31944. (TERM_WIDTH): Removed. Updated all users.
  31945. 2008-07-27 Pavel Roskin <proski@gnu.org>
  31946. * util/getroot.c (find_root_device): Rephrase a comment to avoid
  31947. spurious warnings about a comment within a comment.
  31948. 2008-07-25 Robert Millan <rmh@aybabtu.com>
  31949. * util/getroot.c (find_root_device): Skip devices that match
  31950. /dev/dm-[0-9]. This lets the real device be found for any type of
  31951. abstraction (LVM, EVMS, RAID..).
  31952. (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
  31953. and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
  31954. device is found first, find_root_device() will now skip it.
  31955. 2008-07-24 Pavel Roskin <proski@gnu.org>
  31956. * include/grub/types.h: Use __builtin_bswap32() and
  31957. __builtin_bswap64() with gcc 4.3 and newer.
  31958. 2008-07-24 Christian Franke <franke@computer.org>
  31959. * util/i386/pc/grub-install.in: If `--debug' is specified,
  31960. pass `--verbose' to grub-setup.
  31961. Abort script if make_system_path_relative_to_its_root() fails.
  31962. 2008-07-24 Bean <bean123ch@gmail.com>
  31963. * configure.ac: Fixed a bug caused by the previous cygwin patch,
  31964. variable `target_platform' should be `platform'.
  31965. 2008-07-24 Bean <bean123ch@gmail.com>
  31966. * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
  31967. (grub_png_init_fixed_block): New function.
  31968. (grub_png_decode_image_data): Handle fixed huffman code compression.
  31969. 2008-07-24 Bean <bean123ch@gmail.com>
  31970. * common.rmk (bin_UTILITIES): Add grub-pe2elf.
  31971. (grub_pe2elf_SOURCES): New macro.
  31972. (CLEANFILES): Add grub-pe2elf.
  31973. * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
  31974. (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
  31975. (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
  31976. (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
  31977. (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
  31978. (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
  31979. (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
  31980. (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
  31981. (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
  31982. (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
  31983. (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
  31984. (GRUB_PE32_SYM_CLASS_FILE): Likewise.
  31985. (GRUB_PE32_DT_FUNCTION): Likewise.
  31986. (GRUB_PE32_REL_I386_DIR32): Likewise.
  31987. (GRUB_PE32_REL_I386_REL32): Likewise.
  31988. (grub_pe32_symbol): New structure.
  31989. (grub_pe32_reloc): Likewise.
  31990. * util/grub-pe2elf.c: New file.
  31991. * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
  31992. start symbol in non pc platform.
  31993. * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
  31994. The following patches are from Christian Franke.
  31995. * include/grub/dl.h: Remove .previous, gas supports this only
  31996. for ELF format.
  31997. * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
  31998. Remove .type, gas supports this only for ELF format.
  31999. * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
  32000. nullbytes in symbol table. This fixes an infinite loop if table is
  32001. zero filled.
  32002. * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
  32003. TARGET_IMG_LDFLAGS and EXEEXT.
  32004. * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
  32005. TARGET_IMG_LDFLAGS_AC.
  32006. (grub_CHECK_STACK_ARG_PROBE): New function.
  32007. * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
  32008. * conf/i386-pc-cygwin-ld-img.sc: New linker script.
  32009. * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
  32010. to set TARGET_IMG_LD* accordingly.
  32011. Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
  32012. Add call to grub_CHECK_STACK_ARG_PROBE.
  32013. Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
  32014. * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
  32015. * genmk.rb: Add EXEEXT to CLEANFILES.
  32016. 2008-07-23 Robert Millan <rmh@aybabtu.com>
  32017. * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
  32018. define the codes for arrows and lines used for the menu).
  32019. (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
  32020. as well.
  32021. * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
  32022. fonts, because the latter are too slow.
  32023. 2008-07-21 Bean <bean123ch@gmail.com>
  32024. * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
  32025. a20. Run keyboard test last, as it will cause macbook to halt.
  32026. 2008-07-18 Pavel Roskin <proski@gnu.org>
  32027. * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
  32028. load foreign architecture modules correctly anyway. Keep
  32029. support for loading host architecture modules, whether we
  32030. compile them or not.
  32031. 2008-07-17 Pavel Roskin <proski@gnu.org>
  32032. * configure.ac: Use -m32 or -m64 regardless of whether we had to
  32033. change target_cpu. The compiler default can mismatch target_cpu
  32034. in any case.
  32035. * disk/efi/efidisk.c: Fix format warnings on x86_64.
  32036. * kern/efi/efi.c: Likewise.
  32037. * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
  32038. target compiler is functional.
  32039. * configure.ac: Call grub_PROG_TARGET_CC once all target flags
  32040. are set up.
  32041. * configure.ac: Default to efi platform for x86_64-apple. Allow
  32042. powerpc64 CPU, default to ieee1275 platform for it. Split CPU
  32043. adjustments from the rest, only do them if target is not
  32044. explicitly given. Merge other adjustments with the final sanity
  32045. check. Remove an extraneous check for supported CPU. Be
  32046. specific which CPU and which platform is not supported.
  32047. * configure.ac: Default to pc platform for x86_64.
  32048. 2008-07-17 Robert Millan <rmh@aybabtu.com>
  32049. Partial LinuxBIOS -> Coreboot rename.
  32050. * conf/i386-linuxbios.rmk: Renamed to ...
  32051. * conf/i386-coreboot.rmk: ... this.
  32052. * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
  32053. * configure.ac: Accept "coreboot" as input platform (but maintain
  32054. compatibility with "linuxbios").
  32055. * include/grub/i386/linuxbios: Renamed to ...
  32056. * include/grub/i386/coreboot: ... this.
  32057. 2008-07-17 Bean <bean123ch@gmail.com>
  32058. * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
  32059. (appleldr_mod_SOURCE): New variable.
  32060. (appleldr_mod_CFLAGS): Likewise.
  32061. (appleldr_mod_LDFLAGS): Likewise.
  32062. (pci_mod_SOURCES): Likewise.
  32063. (pci_mod_CFLAGS): Likewise.
  32064. (pci_mod_LDFLAGS): Likewise.
  32065. (lspci_mod_SOURCES): Likewise.
  32066. (lspci_mod_CFLAGS): Likewise.
  32067. (lspci_mod_LDFLAGS): Likewise.
  32068. * conf/x86_64-efi.rmk: New file.
  32069. * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
  32070. macro.
  32071. (grub_efidisk_write): Likewise.
  32072. * include/efi/api.h (efi_call_0): New macro.
  32073. (efi_call_1): Likewise.
  32074. (efi_call_2): Likewise.
  32075. (efi_call_3): Likewise.
  32076. (efi_call_4): Likewise.
  32077. (efi_call_5): Likewise.
  32078. (efi_call_6): Likewise.
  32079. * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
  32080. grub_rescue_cmd_chainloader.
  32081. * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
  32082. (grub_pe32_optional_header): Change some fields based on i386 or
  32083. x86_64 platform.
  32084. (GRUB_PE32_PE32_MAGIC): Likewise.
  32085. * include/grub/efi/uga_draw.h: New file.
  32086. * include/grub/elf.h (STN_ABS): New constant.
  32087. (R_X86_64_NONE): Relocation constant for x86_64.
  32088. (R_X86_64_64): Likewise.
  32089. (R_X86_64_PC32): Likewise.
  32090. (R_X86_64_GOT32): Likewise.
  32091. (R_X86_64_PLT32): Likewise.
  32092. (R_X86_64_COPY): Likewise.
  32093. (R_X86_64_GLOB_DAT): Likewise.
  32094. (R_X86_64_JUMP_SLOT): Likewise.
  32095. (R_X86_64_RELATIVE): Likewise.
  32096. (R_X86_64_GOTPCREL): Likewise.
  32097. (R_X86_64_32): Likewise.
  32098. (R_X86_64_32S): Likewise.
  32099. (R_X86_64_16): Likewise.
  32100. (R_X86_64_PC16): Likewise.
  32101. (R_X86_64_8): Likewise.
  32102. (R_X86_64_PC8): Likewise.
  32103. * include/grub/i386/efi/pci.h: New file.
  32104. * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
  32105. Change it value based on platform.
  32106. (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
  32107. (GRUB_E820_RAM): Likewise.
  32108. (GRUB_E820_RESERVED): Likewise.
  32109. (GRUB_E820_ACPI): Likewise.
  32110. (GRUB_E820_NVS): Likewise.
  32111. (GRUB_E820_EXEC_CODE): Likewise.
  32112. (GRUB_E820_MAX_ENTRY): Likewise.
  32113. (grub_e820_mmap): New structure.
  32114. (linux_kernel_header): Change the efi field according to different
  32115. kernel version, also field from linux_kernel_header.
  32116. * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
  32117. * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
  32118. (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
  32119. (GRUB_PCI_ADDR_SPACE_IO): Likewise.
  32120. (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
  32121. (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
  32122. (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
  32123. (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
  32124. (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
  32125. (GRUB_PCI_ADDR_MEM_MASK): Likewise.
  32126. (GRUB_PCI_ADDR_IO_MASK): Likewise.
  32127. * include/grub/x86_64/efi/kernel.h: New file.
  32128. * include/grub/x86_64/efi/loader.h: Likewise.
  32129. * include/grub/x86_64/efi/machine.h: Likewise.
  32130. * include/grub/x86_64/efi/pci.h: Likewise.
  32131. * include/grub/x86_64/efi/time.h: Likewise.
  32132. * include/grub/x86_64/linux.h: Likewise.
  32133. * include/grub/x86_64/setjmp.h: Likewise.
  32134. * include/grub/x86_64/time.h: Likewise.
  32135. * include/grub/x86_64/types.h: Likewise.
  32136. * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
  32137. GRUB_TARGET_SIZEOF_VOID_P.
  32138. * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
  32139. (grub_efi_locate_handle): Likewise.
  32140. (grub_efi_open_protocol): Likewise.
  32141. (grub_efi_set_text_mode): Likewise.
  32142. (grub_efi_stall): Likewise.
  32143. (grub_exit): Likewise.
  32144. (grub_reboot): Likewise.
  32145. (grub_halt): Likewise.
  32146. (grub_efi_exit_boot_services): Likewise.
  32147. (grub_get_rtc): Likewise.
  32148. * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
  32149. (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
  32150. (grub_efi_allocate_pages): Wrap efi calls.
  32151. (grub_efi_free_pages): Wrap efi calls.
  32152. (grub_efi_get_memory_map): Wrap efi calls.
  32153. * kern/x86_64/dl.c: New file.
  32154. * kern/x86_64/efi/callwrap.S: Likewise.
  32155. * kern/x86_64/efi/startup.S: Likewise.
  32156. * loader/efi/appleloader.c: Likewise.
  32157. * loader/efi/chainloader.c (cmdline): New variable.
  32158. (grub_chainloader_unload): Wrap efi calls.
  32159. (grub_chainloader_boot): Likewise.
  32160. (grub_rescue_cmd_chainloader): Wrap efi calls, handle
  32161. command line.
  32162. * loader/efi/chainloader_normal.c (chainloader_command):
  32163. Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
  32164. command line.
  32165. * loader/i386/efi/linux.c (allocate_pages): Change allocation
  32166. method.
  32167. (grub_e820_add_region): New function.
  32168. (grub_linux_boot): Construct e820 map from efi map, handle x86_64
  32169. booting.
  32170. (grub_find_video_card): New function.
  32171. (grub_linux_setup_video): New function.
  32172. (grub_rescue_cmd_linux): Probe for video information.
  32173. * normal/x86_64/setjmp.S: New file.
  32174. * term/efi/console.c (map_char): New function.
  32175. (grub_console_putchar): Map unicode char.
  32176. (grub_console_checkkey): Wrap efi calls.
  32177. (grub_console_getkey): Likewise.
  32178. (grub_console_getwh): Likewise.
  32179. (grub_console_gotoxy): Likewise.
  32180. (grub_console_cls): Likewise.
  32181. (grub_console_setcolorstate): Likewise.
  32182. (grub_console_setcursor): Likewise.
  32183. * util/i386/efi/grub-mkimage.c: Add support for x86_64.
  32184. 2008-07-16 Pavel Roskin <proski@gnu.org>
  32185. * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
  32186. format strings.
  32187. * util/i386/efi/grub-mkimage.c (get_target_address): Return a
  32188. pointer, not an integer. This fixes a warning and prevents
  32189. precision loss on 64-bit systems.
  32190. (relocate_addresses): Remove unneeded cast.
  32191. 2008-07-15 Pavel Roskin <proski@gnu.org>
  32192. * kern/i386/ieee1275/init.c: Include grub/cache.h.
  32193. * term/ieee1275/ofconsole.c: Disable code unused on i386.
  32194. * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
  32195. Fix comparison between signed and unsigned.
  32196. * include/grub/i386/ieee1275/console.h: Declare
  32197. grub_console_init() and grub_console_fini().
  32198. * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
  32199. It's empty and unused.
  32200. * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
  32201. beginning to avoid warnings with some compilers.
  32202. * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
  32203. [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
  32204. 2008-07-14 Pavel Roskin <proski@gnu.org>
  32205. * kern/env.c (grub_register_variable_hook): Don't copy empty
  32206. string, it leaks memory. Pass "" to grub_env_set(), it should
  32207. handle constant strings.
  32208. * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
  32209. * commands/cmp.c (grub_cmd_cmp): Likewise.
  32210. * kern/dl.c (grub_dl_flush_cache): Likewise.
  32211. (grub_dl_load_core): Likewise.
  32212. * kern/elf.c (grub_elf32_load_phdrs): Likewise.
  32213. (grub_elf64_load_phdrs): Likewise.
  32214. 2008-07-13 Pavel Roskin <proski@gnu.org>
  32215. * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
  32216. between signed and unsigned.
  32217. (LzmaEnc_Finish): Fix warning about an unused parameter.
  32218. 2008-07-13 Bean <bean123ch@gmail.com>
  32219. * Makefile.in (enable_lzo): New rule.
  32220. * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
  32221. * configure.ac (ENABLE_LZO): New option --enable-lzo.
  32222. * boot/i386/pc/lnxboot.S: #include <config.h>.
  32223. * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
  32224. its value according to the compression algorithm used, lzo or lzma.
  32225. * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
  32226. compression algorithm according to configure macro.
  32227. * kern/i386/pc/startup.S (codestart): Likewise.
  32228. * kern/i386/pc/lzma_decode.S: New file.
  32229. * include/grub/lib/LzFind.h: Likewise.
  32230. * include/grub/lib/LzHash.h: Likewise.
  32231. * include/grub/lib/LzmaDec.h: Likewise.
  32232. * include/grub/lib/LzmaEnc.h: Likewise.
  32233. * include/grub/lib/LzmaTypes.h: Likewise.
  32234. * lib/LzFind.c: Likewise.
  32235. * lib/LzmaDec.c: Likewise.
  32236. * lib/LzmaEnc.c: Likewise.
  32237. 2008-07-13 Bean <bean123ch@gmail.com>
  32238. * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
  32239. (grub_ext4_extent_header): New structure.
  32240. (grub_ext4_extent): Likewise.
  32241. (grub_ext4_extent_idx): Likewise.
  32242. (grub_ext4_find_leaf): New function.
  32243. (grub_ext2_read_block): Handle extents.
  32244. 2008-07-12 Robert Millan <rmh@aybabtu.com>
  32245. * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
  32246. 2008-07-11 Robert Millan <rmh@aybabtu.com>
  32247. * util/grub.d/40_custom.in: New file. Example on how to add custom
  32248. entries to /etc/grub.d.
  32249. * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
  32250. 40_custom (implicitly, by merging all the grub.d rules).
  32251. 2008-07-11 Pavel Roskin <proski@gnu.org>
  32252. * commands/read.c (grub_getline): Fix invalid memory access.
  32253. Don't add newline to the variable value.
  32254. * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
  32255. [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
  32256. (serial_hw_get_port): Check validity of the port number.
  32257. (grub_cmd_serial): Check return value of serial_hw_get_port().
  32258. 2008-07-07 Pavel Roskin <proski@gnu.org>
  32259. * boot/i386/pc/diskboot.S (notification_string): Replace
  32260. "Loading kernel" with just "loading". This is shorter, less
  32261. confusing and saves a few bytes for possible future changes.
  32262. 2008-07-05 Pavel Roskin <proski@gnu.org>
  32263. * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
  32264. size for ATAPI devices, they are undefined. Output sector
  32265. number in decimal form.
  32266. * disk/ata.c: Use named constants for status bits.
  32267. 2008-07-04 Pavel Roskin <proski@gnu.org>
  32268. * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
  32269. grub_addr_t before casting it to the void pointer to fix a
  32270. warning. Non-addressable regions are discarded earlier.
  32271. (grub_arch_modules_addr): Cast _end to grub_addr_t.
  32272. * kern/i386/linuxbios/table.c: Include grub/misc.h.
  32273. (check_signature): Don't shadow table_header.
  32274. (grub_linuxbios_table_iterate): Cast numeric constants to
  32275. grub_linuxbios_table_header_t.
  32276. * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
  32277. grub_stop().
  32278. * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
  32279. prevent warnings.
  32280. * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
  32281. pointer, which can cause warnings. Support 64-bit addresses.
  32282. * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
  32283. of sizeof(long). This fixes PowerPC image generation on x86_64.
  32284. 2008-07-04 Robert Millan <rmh@aybabtu.com>
  32285. This fixes a performance issue when pc & gpt partmap iterators
  32286. didn't abort iteration even after our hook found what it was
  32287. looking for (often causing expensive probes of non-existent drives).
  32288. Some callers relied on previous buggy behaviour, since they would
  32289. raise an error when their own hooks caused early abortion of its
  32290. iteration.
  32291. * kern/device.c (grub_device_open): Improve error message.
  32292. * disk/lvm.c (grub_lvm_open): Likewise.
  32293. * disk/raid.c (grub_raid_open): Likewise.
  32294. * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
  32295. when hook requests it, independently of grub_errno.
  32296. (pc_partition_map_probe): Do not fail when find_func() caused
  32297. early abortion of pc_partition_map_iterate().
  32298. * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
  32299. when hook requests it, independently of grub_errno.
  32300. (gpt_partition_map_probe): Do not fail when find_func() caused
  32301. early abortion of gpt_partition_map_iterate().
  32302. * kern/partition.c (grub_partition_iterate): Abort parent iteration
  32303. when hook requests it, independently of grub_errno. Do not fail when
  32304. part_map_iterate_hook() caused early abortion of p->iterate().
  32305. * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
  32306. when grub_partition_iterate() returned with non-zero.
  32307. 2008-07-03 Pavel Roskin <proski@gnu.org>
  32308. * disk/ata.c (grub_ata_pio_write): Check status before writing,
  32309. like we do in grub_ata_pio_read().
  32310. (grub_ata_readwrite): Always write individual sectors. Fix the
  32311. sector count for the remainder.
  32312. (grub_ata_write): Enable writing to ATA devices. Correctly
  32313. report error for ATAPI devices.
  32314. 2008-07-02 Pavel Roskin <proski@gnu.org>
  32315. * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
  32316. warning.
  32317. * disk/ata.c (grub_ata_readwrite): Don't increment sector number
  32318. for every read sector, we already increment it for the whole
  32319. batch. This fixes reading more than 256 sectors at once.
  32320. * util/grub-editenv.c (cmd_info): Cast argument to long
  32321. explicitly. ptrdiff_t reduces to int on i386.
  32322. * util/grub-editenv.c (main): Be specific which parameter is
  32323. missing.
  32324. * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
  32325. (memdisk): Make memdisk_orig_addr a pointer.
  32326. * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
  32327. for file offsets, use grub_off_t instead. Fix printf format
  32328. warnings.
  32329. * fs/reiserfs.c: Remove #warning, TODO list items don't belong
  32330. there. Real unexpected warnings should not drown in the noise
  32331. about known problems.
  32332. * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
  32333. grub_disk_addr_t for memory addresses.
  32334. * loader/aout.c (grub_aout_load): Cast load_addr to pointer
  32335. explicitly to fix a warning.
  32336. * util/grub-editenv.c (cmd_info): Fix warning in printf format.
  32337. * Makefile.in (MODULE_LDFLAGS): New variable.
  32338. * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
  32339. the linker accepts --build-id=none.
  32340. * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
  32341. MODULE_LDFLAGS.
  32342. * genmk.rb: Use MODULE_LDFLAGS when linking modules.
  32343. * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
  32344. those in Linux XFS code. Provide a way to access 64-bit parent
  32345. inode.
  32346. (grub_xfs_iterate_dir): Use the new names. Avoid reading past
  32347. the end of struct grub_xfs_dir_header.
  32348. 2008-07-02 Bean <bean123ch@gmail.com>
  32349. * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
  32350. GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
  32351. and GRUB_IEEE1275_FLAG_NO_ANSI.
  32352. * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
  32353. GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
  32354. and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
  32355. * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
  32356. immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
  32357. * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
  32358. GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
  32359. * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
  32360. esc sequence on non ANSI terminal.
  32361. (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
  32362. * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
  32363. beginning of file.
  32364. 2008-07-02 Bean <bean123ch@gmail.com>
  32365. * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
  32366. (grub_editenv_SOURCES): New variable.
  32367. (pkglib_MODULES): Add loadenv.mod.
  32368. (loadenv_mod_SOURCES): New variable.
  32369. (loadenv_mod_CFLAGS): Likewise.
  32370. (loadenv_mod_LDFLAGS): Likewise.
  32371. * include/grub/envblk.h: New file.
  32372. * util/envblk.c: New file.
  32373. * util/grub-editenv.c: New file.
  32374. * commands/loadenv.c: New file.
  32375. 2008-07-01 Pavel Roskin <proski@gnu.org>
  32376. * include/multiboot2.h (struct multiboot_tag_module): Use char,
  32377. not unsigned char. This fixes warnings and is consistent with
  32378. other tags.
  32379. * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
  32380. * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
  32381. * term/tparm.c (analyze): Always set *popcount.
  32382. * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
  32383. cast to fix a warning.
  32384. * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
  32385. cast to suppress a warning.
  32386. * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
  32387. grub_fshelp_read_file() expects.
  32388. * fs/fat.c: Fix UUID calculation on big-endian systems. We
  32389. write uuid as a 32-bit value in CPU byte order, so declare and
  32390. use it as such.
  32391. * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
  32392. long if the format specifier expects it.
  32393. * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
  32394. * partmap/pc.c (pc_partition_map_iterate): Likewise.
  32395. * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
  32396. long to fix a warning.
  32397. * fs/reiserfs.c (grub_reiserfs_read): Change casts in
  32398. grub_dprintf() arguments to fix warnings.
  32399. 2008-06-30 Pavel Roskin <proski@gnu.org>
  32400. * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
  32401. install_bsd_part immediately before core.img is embedded or
  32402. modified on disk. This fixes core.img verification if core.img
  32403. cannot be embedded.
  32404. * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
  32405. core_path to calculate the blocklist.
  32406. Patch from Javier Martín <lordhabbit@gmail.com>
  32407. 2008-06-29 Robert Millan <rmh@aybabtu.com>
  32408. * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
  32409. block to disk block.
  32410. (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
  32411. Patch from Niels Böhm <bitbucket@arcor.de>
  32412. 2008-06-29 Robert Millan <rmh@aybabtu.com>
  32413. * util/update-grub_lib.in (font_path): Search for fonts in
  32414. /boot/grub first, which is more likely to be readable (we aren't
  32415. deciding where fonts live, just looking for them).
  32416. 2008-06-26 Pavel Roskin <proski@gnu.org>
  32417. * util/biosdisk.c (read_device_map): Don't leave dead map
  32418. entries for devices failing stat() check.
  32419. * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
  32420. core_path_dev for the core.img path on the target device.
  32421. 2008-06-26 Robert Millan <rmh@aybabtu.com>
  32422. * disk/fs_uuid.c: New file.
  32423. * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
  32424. (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
  32425. (fs_uuid_mod_LDFLAGS): New variables.
  32426. * include/grub/disk.h (grub_disk_dev_id): Add
  32427. `GRUB_DISK_DEVICE_UUID_ID'.
  32428. * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
  32429. implement iterate().
  32430. 2008-06-26 Robert Millan <rmh@aybabtu.com>
  32431. * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
  32432. "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
  32433. Linux image includes no initrd.
  32434. 2008-06-21 Javier Martín <lordhabbit@gmail.com>
  32435. * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
  32436. call to resolve the core image location that effectively appended the
  32437. name twice.
  32438. 2008-06-21 Robert Millan <rmh@aybabtu.com>
  32439. * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
  32440. call from here ...
  32441. * util/grub.d/10_hurd.in: ... to here ...
  32442. * util/grub.d/10_linux.in: ... and here.
  32443. 2008-06-19 Robert Millan <rmh@aybabtu.com>
  32444. * kern/main.c (grub_main): Export `prefix' variable immediately
  32445. after it has been set by grub_machine_set_prefix().
  32446. 2008-06-19 Robert Millan <rmh@aybabtu.com>
  32447. * commands/search.c (search_label, search_fs_uuid, search_file): Print
  32448. search result when not saving to variable, not the other way around.
  32449. When saving to variable, abort iteration as soon as a match is found.
  32450. 2008-06-19 Robert Millan <rmh@aybabtu.com>
  32451. * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
  32452. check for partition that provides /boot/grub. Its logic is flawed,
  32453. as it prevents prepare_grub_to_access_device() from being called
  32454. multiple times.
  32455. 2008-06-19 Robert Millan <rmh@aybabtu.com>
  32456. * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
  32457. "insmod" command directly when abstraction modules are needed,
  32458. instead of relying on GRUB_PRELOAD_MODULES (which had no effect
  32459. since it had already been processed).
  32460. 2008-06-19 Pavel Roskin <proski@gnu.org>
  32461. * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
  32462. changed. This is needed in case GRUB_LIBDIR changes.
  32463. * conf/i386-ieee1275.rmk: Likewise.
  32464. * conf/i386-linuxbios.rmk: Likewise.
  32465. * conf/i386-pc.rmk: Likewise.
  32466. * conf/powerpc-ieee1275.rmk: Likewise.
  32467. 2008-06-18 Pavel Roskin <proski@gnu.org>
  32468. * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
  32469. kernel_elf_symlist.c to symlist.c for consistency with other
  32470. architectures. Update all users.
  32471. * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
  32472. 2008-06-18 Robert Millan <rmh@aybabtu.com>
  32473. * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
  32474. it in prefix.
  32475. * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
  32476. `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
  32477. a RAID device, run setup() for all members independently on whether
  32478. LVM abstraction is being used.
  32479. (setup): Don't handle prefix at all; let grub-mkimage take care of it.
  32480. If grub-mkimage has set `*install_dos_part == -2', don't override this
  32481. value.
  32482. Perform *install_dos_part adjustments independently on whether
  32483. we're embedding or not.
  32484. Clarify error message when image is too big for embedding.
  32485. Remove duplicate *install_dos_part stanza.
  32486. 2008-06-17 Robert Millan <rmh@aybabtu.com>
  32487. * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
  32488. (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
  32489. variables.
  32490. (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
  32491. values in grub_ofconsole_normal_color and
  32492. grub_ofconsole_highlight_color (they're not directly related to
  32493. background and foreground).
  32494. (grub_ofconsole_setcolorstate): Extract background and foreground
  32495. from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
  32496. 2008-06-17 Robert Millan <rmh@aybabtu.com>
  32497. * util/update-grub_lib.in (prepare_grub_to_access_device): Use
  32498. /boot/grub for the check in last commit, not /boot (they could be
  32499. different partitions).
  32500. 2008-06-16 Robert Millan <rmh@aybabtu.com>
  32501. * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
  32502. asked to setup access for the same partition that provides /boot,
  32503. don't bother using UUIDs since our root already has the value we
  32504. want.
  32505. 2008-06-16 Robert Millan <rmh@aybabtu.com>
  32506. * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
  32507. I2O devices.
  32508. Patch from Sven Mueller <sven@debian.org>.
  32509. 2008-06-16 Robert Millan <rmh@aybabtu.com>
  32510. * util/update-grub.in: Check for $EUID instead of $UID.
  32511. Reported by Vincent Zweije.
  32512. 2008-06-16 Bean <bean123ch@gmail.com>
  32513. * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
  32514. (grub_ext2_read_block): Likewise.
  32515. (grub_ext2_read_inode): Likewise.
  32516. (grub_ext2_mount): Likewise.
  32517. (grub_ext2_close): Likewise.
  32518. (grub_ext3_get_journal): Removed.
  32519. * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
  32520. (grub_reiserfs_read_symlink): Likewise.
  32521. (grub_reiserfs_mount): Likewise.
  32522. (grub_reiserfs_open): Likewise.
  32523. (grub_reiserfs_read): Likewise.
  32524. (grub_reiserfs_close): Likewise.
  32525. (grub_reiserfs_get_journal): Removed.
  32526. * fs/fshelp.c (grub_fshelp_read): Removed.
  32527. (grub_fshelp_map_block): Likewise.
  32528. * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
  32529. (grub_fshelp_journal): Likewise.
  32530. (grub_fshelp_read): Likewise.
  32531. (grub_fshelp_map_block): Likewise.
  32532. 2008-06-16 Pavel Roskin <proski@gnu.org>
  32533. * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
  32534. floating point anymore.
  32535. * include/grub/powerpc/libgcc.h: Leave only necessary exports.
  32536. 2008-06-15 Pavel Roskin <proski@gnu.org>
  32537. * commands/ls.c (grub_ls_list_files): Use integer calculations
  32538. for human readable format, avoid floating point use.
  32539. * kern/misc.c (grub_ftoa): Remove.
  32540. (grub_vsprintf): Remove floating point support.
  32541. 2008-06-15 Robert Millan <rmh@aybabtu.com>
  32542. * util/grub.d/10_linux.in: Use the underlying device for loop-AES
  32543. devices.
  32544. Reported by Max Vozeler.
  32545. 2008-06-15 Robert Millan <rmh@aybabtu.com>
  32546. * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
  32547. in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
  32548. skipped later.
  32549. (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
  32550. the beginning of the prefix.
  32551. * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
  32552. It is assumed that if we have a memdisk, grub-mkimage has set
  32553. grub_prefix to include the "(memdisk)" drive in it.
  32554. 2008-06-15 Robert Millan <rmh@aybabtu.com>
  32555. * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
  32556. Initialize keyboard controller after registering the terminal, so that
  32557. grub_printf() can be called from grub_keyboard_controller_init().
  32558. 2008-06-15 Robert Millan <rmh@aybabtu.com>
  32559. * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
  32560. extent-btree which is written as big endian on disk.
  32561. Reported by Alain Greppin <al@chilibi.org>.
  32562. 2008-06-14 Robert Millan <rmh@aybabtu.com>
  32563. * util/i386/efi/grub-install.in (modules): Remove `_chain'.
  32564. * util/i386/pc/grub-install.in (modules): Likewise.
  32565. 2008-06-13 Pavel Roskin <proski@gnu.org>
  32566. * commands/ls.c (grub_ls_list_files): Fix format warnings.
  32567. 2008-06-13 Bean <bean123ch@gmail.com>
  32568. * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
  32569. * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
  32570. * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
  32571. to indicate sparse block.
  32572. 2008-06-12 Pavel Roskin <proski@gnu.org>
  32573. * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
  32574. number, grub_fshelp_read() does it for us.
  32575. * fs/fshelp.c (grub_fshelp_read): New function. Implement
  32576. linear disk read with journal translation.
  32577. * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
  32578. * include/grub/fshelp.h: Declare grub_fshelp_read().
  32579. 2008-06-09 Pavel Roskin <proski@gnu.org>
  32580. * fs/minix.c (grub_minix_mount): Handle error reading
  32581. superblock.
  32582. 2008-06-08 Robert Millan <rmh@aybabtu.com>
  32583. * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
  32584. don't append the RAID prefix afterwards.
  32585. Reported by Clint Adams.
  32586. 2008-06-08 Robert Millan <rmh@aybabtu.com>
  32587. Based on description from Pavel:
  32588. * kern/disk.c (grub_disk_check_range): Rename to ...
  32589. (grub_disk_adjust_range): ... this. Add a comment explaining the
  32590. tasks performed by this function.
  32591. 2008-06-08 Robert Millan <rmh@aybabtu.com>
  32592. * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
  32593. `num_serial' (for consistency with other variables).
  32594. (struct grub_ntfs_data): Add `uuid' member.
  32595. * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
  32596. (grub_ntfs_uuid): New function.
  32597. (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
  32598. 2008-06-07 Pavel Roskin <proski@gnu.org>
  32599. * util/biosdisk.c (open_device): Revert last change to the
  32600. function, it broke installation. The sector needs to be
  32601. different dependent on which device is opened.
  32602. 2008-06-06 Robert Millan <rmh@aybabtu.com>
  32603. Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
  32604. rest of GRUB, and breakage doesn't happen if its value were modified.
  32605. * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
  32606. Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
  32607. a constant (same value).
  32608. * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
  32609. `GRUB_KERNEL_MACHINE_DATA_END' (same value).
  32610. 2008-06-06 Robert Millan <rmh@aybabtu.com>
  32611. * util/biosdisk.c (open_device): Do not modify sector offset when
  32612. accessing a partition. kern/disk.c already handles this for us.
  32613. 2008-06-06 Robert Millan <rmh@aybabtu.com>
  32614. * util/grub-emu.c (grub_machine_init): Move code in this function from
  32615. here ...
  32616. (main): ... to here (before grub_util_biosdisk_init() call, to prevent
  32617. segfault in case grub_printf() is called).
  32618. * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
  32619. grub_probe. Update all users not to explicitly add it again.
  32620. (grub_device): New variable; contains corresponding device for grubdir.
  32621. (fs_module, partmap_module, devabstraction_module): Pass
  32622. `--device ${grub_device}' to grub_probe to avoid traversing /dev
  32623. every time.
  32624. 2008-06-05 Robert Millan <rmh@aybabtu.com>
  32625. * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
  32626. is found, print it (same layout as with labels).
  32627. 2008-06-04 Robert Millan <rmh@aybabtu.com>
  32628. * util/biosdisk.c (get_drive): Rename to ...
  32629. (find_grub_drive): ... this. Update all users.
  32630. (get_os_disk): Rename to ...
  32631. (convert_system_partition_to_system_disk): ... this. Update all users.
  32632. (find_drive): Rename to ...
  32633. (find_system_device): ... this. Update all users.
  32634. 2008-06-04 Robert Millan <rmh@aybabtu.com>
  32635. * util/biosdisk.c (get_os_disk): Handle IDA devices.
  32636. * util/grub-mkdevicemap.c (get_mmc_disk_name)
  32637. (make_device_map): Likewise.
  32638. 2008-06-01 Robert Millan <rmh@aybabtu.com>
  32639. * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
  32640. before dereferencing it.
  32641. * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
  32642. union with fat12/fat16-specific ones. Add some new fields, including
  32643. `num_serial' for both versions.
  32644. (struct grub_fat_data): Add `uuid' member.
  32645. (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
  32646. names. Initialize `data->uuid' using `num_serial'.
  32647. (grub_fat_uuid): New function.
  32648. (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
  32649. * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
  32650. (grub_reiserfs_uuid): New function.
  32651. (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
  32652. member.
  32653. * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
  32654. (grub_xfs_uuid): New function.
  32655. (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
  32656. 2008-06-01 Robert Millan <rmh@aybabtu.com>
  32657. * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
  32658. code that is backward compatible with pre-uuid search command.
  32659. 2008-05-31 Robert Millan <rmh@aybabtu.com>
  32660. * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
  32661. floppies after everything else, to ensure floppy drive isn't accessed
  32662. unnecessarily (patch from Bean).
  32663. 2008-05-31 Robert Millan <rmh@aybabtu.com>
  32664. * commands/search.c (search_label, search_fs_uuid, search_file): Do
  32665. not print device names when we were asked to set a variable.
  32666. 2008-05-31 Robert Millan <rmh@aybabtu.com>
  32667. * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
  32668. using "cursor-on" and "cursor-off" commands (understood at least by
  32669. the Open Firmware flavour on OLPC).
  32670. 2008-05-31 Michael Gorven <michael@gorven.za.net>
  32671. * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
  32672. on and off sequences.
  32673. 2008-05-31 Robert Millan <rmh@aybabtu.com>
  32674. * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
  32675. * util/update-grub.in: Likewise.
  32676. 2008-05-30 Pavel Roskin <proski@gnu.org>
  32677. * util/biosdisk.c (linux_find_partition): Simplify logic and
  32678. make the code more universal. Keep special processing for
  32679. devfs, but use a simple rule for all other devices. If the
  32680. device ends with a number, append 'p' and the partition number.
  32681. Otherwise, append only the partition number.
  32682. 2008-05-30 Robert Millan <rmh@aybabtu.com>
  32683. * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
  32684. * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
  32685. GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
  32686. the `root' parameter to Linux.
  32687. 2008-05-30 Robert Millan <rmh@aybabtu.com>
  32688. * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
  32689. * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
  32690. --fs_uuid with --fs-uuid.
  32691. * util/update-grub.in: Allow filesystem UUID probes to fail (since not
  32692. all filesystems support them).
  32693. 2008-05-30 Robert Millan <rmh@aybabtu.com>
  32694. * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
  32695. grub_printf() flags, since we're printing in units of 2 bytes.
  32696. 2008-05-30 Robert Millan <rmh@aybabtu.com>
  32697. * util/grub.d/00_header.in: Remove obsolete comment referencing
  32698. convert_system_path_to_grub_path().
  32699. * util/update-grub.in: Likewise.
  32700. * util/update-grub_lib.in (is_path_readable_by_grub): New function.
  32701. (convert_system_path_to_grub_path): Add a warning message explaining
  32702. that this function is deprecated. Rely on is_path_readable_by_grub()
  32703. for the readability checks.
  32704. (font_path): Use is_path_readable_by_grub() for the readability
  32705. check rather than convert_system_path_to_grub_path().
  32706. 2008-05-30 Robert Millan <rmh@aybabtu.com>
  32707. * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
  32708. * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
  32709. converting it first.
  32710. * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
  32711. grub.cfg for access to font file, and afterwards call it again to set
  32712. the root device.
  32713. 2008-05-30 Robert Millan <rmh@aybabtu.com>
  32714. * commands/search.c (options): Add --fs_uuid option.
  32715. (search_fs_uuid): New function.
  32716. (grub_cmd_search): Fix --set argument passing.
  32717. Use search_fs_uuid() when requested via --fs_uuid.
  32718. (grub_search_init): Update help message.
  32719. * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
  32720. and redeclare it as an array of 16-bit words.
  32721. (grub_ext2_uuid): New function.
  32722. (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
  32723. * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
  32724. * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
  32725. (GRUB_DEVICE_BOOT_UUID): New variables.
  32726. (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
  32727. * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
  32728. whenever possible.
  32729. * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
  32730. just assume `root' variable has the right value.
  32731. * util/grub.d/10_linux.in: Likewise.
  32732. * util/grub-probe.c (probe): Probe for filesystem UUID when requested
  32733. via PRINT_FS_UUID.
  32734. (main): Recognise `-t fs_uuid' argument.
  32735. 2008-05-30 Robert Millan <rmh@aybabtu.com>
  32736. * util/biosdisk.c (map): Redefine structure to hold information
  32737. about GRUB drive name.
  32738. (get_drive): Reimplement without assuming (and verifying) BIOS-like
  32739. drive names.
  32740. (call_hook): Remove.
  32741. (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
  32742. member. Assume drive has partitions.
  32743. (grub_util_biosdisk_open): Access device names via `.device' struct
  32744. member.
  32745. (open_device): Likewise.
  32746. (find_drive): Likewise.
  32747. (read_device_map): Adjust map[] usage to match the new struct
  32748. definition. Don't check for duplicates (still possible, but not cheap
  32749. anymore).
  32750. (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
  32751. (make_device_name): Remove assumption of BIOS-like drive names.
  32752. 2008-05-30 Pavel Roskin <proski@gnu.org>
  32753. * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
  32754. compiling execute.c doesn't need grub_script.tab.h anymore.
  32755. (normal/command.c_DEPENDENCIES): Likewise.
  32756. (normal/function.c_DEPENDENCIES): Likewise.
  32757. * conf/i386-ieee1275.rmk: Likewise.
  32758. * conf/i386-linuxbios.rmk: Likewise.
  32759. * conf/i386-pc.rmk: Likewise.
  32760. * conf/powerpc-ieee1275.rmk: Likewise.
  32761. * conf/sparc64-ieee1275.rmk: Likewise.
  32762. 2008-05-29 Pavel Roskin <proski@gnu.org>
  32763. * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
  32764. when scanning metadata for volume group name.
  32765. * include/grub/script.h: Don't include grub_script.tab.h. It's
  32766. a generated file, which may only be included from the files with
  32767. DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
  32768. use union YYSTYPE, as the later allows forward declaration.
  32769. * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
  32770. 2008-05-29 Robert Millan <rmh@aybabtu.com>
  32771. * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
  32772. (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
  32773. [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
  32774. (grub_console_checkkey): Add grub_dprintf() call to report unknown
  32775. scan codes.
  32776. 2008-05-29 Robert Millan <rmh@aybabtu.com>
  32777. * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
  32778. control key combinations.
  32779. 2008-05-29 Robert Millan <rmh@aybabtu.com>
  32780. * util/powerpc/ieee1275/grub-install.in: Move from here ...
  32781. * util/ieee1275/grub-install.in: ... to here.
  32782. * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
  32783. * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
  32784. (grub_install_SOURCES): Likewise.
  32785. 2008-05-29 Robert Millan <rmh@aybabtu.com>
  32786. * fs/affs.c: Update copyright year.
  32787. * fs/ext2.c: Likewise.
  32788. * fs/fshelp.c: Likewise.
  32789. * fs/hfsplus.c: Likewise.
  32790. * fs/ntfs.c: Likewise.
  32791. * fs/xfs.c: Likewise.
  32792. * include/grub/fshelp.h: Likewise.
  32793. * util/grub-mkdevicemap.c: Likewise.
  32794. 2008-05-28 Robert Millan <rmh@aybabtu.com>
  32795. * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
  32796. might need to be fatfs to support some firmware implementations
  32797. (e.g. OFW or EFI).
  32798. 2008-05-28 Robert Millan <rmh@aybabtu.com>
  32799. * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
  32800. devices.
  32801. * util/grub-mkdevicemap.c (get_mmc_disk_name)
  32802. (make_device_map): Likewise.
  32803. 2008-05-20 Bean <bean123ch@gmail.com>
  32804. * fs/fshelp.c (grub_fshelp_map_block): New function.
  32805. (grub_fshelp_find_file): Use 64-bit type for pos and block address.
  32806. Use `>>' and `&' operator to avoid 64-bit divide and modulo.
  32807. * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
  32808. (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
  32809. (grub_fshelp_journal): New structure.
  32810. (grub_fshelp_map_block): New function prototype.
  32811. (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
  32812. (grub_fshelp_map_block): Likewise.
  32813. * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
  32814. (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
  32815. (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
  32816. (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
  32817. (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
  32818. (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
  32819. (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
  32820. (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
  32821. (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
  32822. (EXT3_JOURNAL_FLAG_DELETED): Likewise.
  32823. (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
  32824. (grub_ext2_sblock): New members for journal support.
  32825. (grub_ext3_journal_header): New structure.
  32826. (grub_ext3_journal_revoke_header): Likewise.
  32827. (grub_ext3_journal_block_tag): Likewise.
  32828. (grub_ext3_journal_sblock): Likewise.
  32829. (grub_fshelp_node): New members logfile and journal.
  32830. (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
  32831. grub_fshelp_map_block to get real block number.
  32832. (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
  32833. number.
  32834. (grub_ext2_read_inode): Likewise.
  32835. (grub_ext3_get_journal): New function.
  32836. (grub_read_inode): Initialize journal using grub_ext3_get_journal.
  32837. (grub_ext2_close): Release memory used by journal.
  32838. * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
  32839. (REISERFS_MAGIC_DESC_BLOCK): New macro.
  32840. (grub_reiserfs_transaction_header): Renamed to
  32841. grub_reiserfs_description_block, replace field data with real_blocks.
  32842. (grub_reiserfs_commit_block): New structure.
  32843. (grub_reiserfs_data): New member journal.
  32844. (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
  32845. number.
  32846. (grub_reiserfs_read_symlink): Likewise.
  32847. (grub_reiserfs_iterate_dir): Likewise.
  32848. (grub_reiserfs_open): Likewise.
  32849. (grub_reiserfs_read): Likewise.
  32850. (grub_reiserfs_get_journal): New function.
  32851. (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
  32852. three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
  32853. using grub_reiserfs_get_journal.
  32854. (grub_reiserfs_close): Release memory used by journal.
  32855. * fs/affs.c (grub_affs_read_block): Change block type to
  32856. grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
  32857. * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
  32858. * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
  32859. * fs/ntfs.c (grub_ntfs_read_block): Likewise.
  32860. * fs/udf.c (grub_udf_read_block): Change block type to
  32861. grub_disk_addr_t. Use type cast to avoid warning.
  32862. * fs/xfs.c (grub_xfs_read_block): Likewise.
  32863. 2008-05-16 Christian Franke <franke@computer.org>
  32864. * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
  32865. to ensure that break with ESC will always work.
  32866. * commands/sleep.c (grub_interruptible_millisleep): Likewise.
  32867. Remove ESC from keyboard queue.
  32868. 2008-05-16 Christian Franke <franke@computer.org>
  32869. * util/biosdisk.c: [__CYGWIN__] Add includes.
  32870. (grub_util_biosdisk_open): Use Linux code also for Cygwin.
  32871. (get_os_disk): Move variable declarations to OS specific
  32872. parts to avoid warning.
  32873. [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
  32874. [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
  32875. (grub_util_biosdisk_get_grub_dev): Use Linux code also for
  32876. Cygwin.
  32877. * util/getroot.c: [__CYGWIN__] Add includes.
  32878. (strip_extra_slashes): Fix "/" case.
  32879. [__CYGWIN__] (get_win32_path): New function.
  32880. [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
  32881. [__CYGWIN__] (find_root_device): Disable.
  32882. [__CYGWIN__] (get_bootsec_serial): New function.
  32883. [__CYGWIN__] (find_cygwin_root_device): Likewise.
  32884. [__linux__] (grub_guess_root_device): Add early returns to simplify
  32885. structure.
  32886. [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
  32887. [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
  32888. check for Linux only.
  32889. 2008-05-15 Bean <bean123ch@gmail.com>
  32890. * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
  32891. keyboard hang problem in apple's intel mac.
  32892. 2008-05-09 Robert Millan <rmh@aybabtu.com>
  32893. * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
  32894. devices.
  32895. * util/grub-mkdevicemap.c (get_virtio_disk_name)
  32896. (make_device_map): Likewise.
  32897. Reported by Aurelien Jarno <aurel32@debian.org>
  32898. 2008-05-07 Ian Campbell <ijc@hellion.org.uk>
  32899. * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
  32900. * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
  32901. (make_device_map): Output entries for xvd type disks.
  32902. 2008-05-07 Robert Millan <rmh@aybabtu.com>
  32903. * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
  32904. devices.
  32905. * util/grub-mkdevicemap.c (get_cciss_disk_name)
  32906. (make_device_map): Likewise.
  32907. Reported by Roland Dreier <rdreier@cisco.com>
  32908. 2008-05-07 Robert Millan <rmh@aybabtu.com>
  32909. * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
  32910. grub_strstr() call. Correct a few mistakes in failure path handling.
  32911. 2008-05-06 Robert Millan <rmh@aybabtu.com>
  32912. * util/update-grub_lib.in (make_system_path_relative_to_its_root):
  32913. Do not print a trailing slash (therefore, the root directory is an
  32914. empty string).
  32915. (convert_system_path_to_grub_path): Do not remove trailing slash
  32916. from make_system_path_relative_to_its_root() output.
  32917. * util/i386/pc/grub-install.in: Add trailing slash to output from
  32918. make_system_path_relative_to_its_root().
  32919. 2008-05-06 Robert Millan <rmh@aybabtu.com>
  32920. * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
  32921. ensures that output lines aren't intermangled with those sent to
  32922. stderr (via grub_util_info()).
  32923. * util/grub-probe.c (grub_refresh): Likewise.
  32924. * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
  32925. 2008-05-05 Christian Franke <franke@computer.org>
  32926. * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
  32927. Add Cygwin device names.
  32928. (get_ide_disk_name) [__CYGWIN__]: Likewise.
  32929. (get_scsi_disk_name) [__CYGWIN__]: Likewise.
  32930. (check_device): Return error instead of success on empty name.
  32931. (make_device_map): Move label inside linux specific code to
  32932. prevent compiler warning.
  32933. 2008-04-30 Robert Millan <rmh@aybabtu.com>
  32934. Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
  32935. * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
  32936. first boot option.
  32937. * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
  32938. 2008-04-29 Robert Millan <rmh@aybabtu.com>
  32939. * docs/grub.cfg: New file (example GRUB configuration).
  32940. 2008-04-26 Robert Millan <rmh@aybabtu.com>
  32941. * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
  32942. `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
  32943. and `disk/ieee1275/nand.c'.
  32944. 2008-04-25 Bean <bean123ch@gmail.com>
  32945. * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
  32946. i386-linuxbios.
  32947. * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
  32948. change the buffer size to 4096 for cdrom device.
  32949. * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
  32950. and nand.mod.
  32951. (_linux_mod_SOURCES): New variable.
  32952. (_linux_mod_CFLAGS): Likewise.
  32953. (_linux_mod_LDFLAGS): Likewise.
  32954. (linux_mod_SOURCES): Likewise.
  32955. (linux_mod_CFLAGS): Likewise.
  32956. (linux_mod_LDFLAGS): Likewise.
  32957. (nand_mod_SOURCES): Likewise.
  32958. (nand_mod_CFLAGS): Likewise.
  32959. (nand_mod_LDFLAGS): Likewise.
  32960. * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
  32961. GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
  32962. type property. (nand device in olpc don't have this property)
  32963. * include/grub/disk.h (grub_disk_dev_id): New macro
  32964. GRUB_DISK_DEVICE_NAND_ID.
  32965. * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
  32966. function prototype.
  32967. (grub_rescue_cmd_initrd): Likewise.
  32968. * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
  32969. (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
  32970. ofw_cif_handler and ofw_idt, adjust padding number.
  32971. * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
  32972. GRUB_MACHINE_IEEE1275 is defined.
  32973. * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
  32974. Use NESTED_FUNC_ATTR attribute on the hook parameter.
  32975. * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
  32976. on nested function heap_init.
  32977. (grub_upper_mem): New variable for i386-ieee1275.
  32978. (grub_get_extended_memory): New function for i386-ieee1275.
  32979. (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
  32980. * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
  32981. NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
  32982. property.
  32983. * loader/i386/ieee1275/linux.c: New file.
  32984. * loader/i386/ieee1275/linux_normal.c: New file.
  32985. * disk/ieee1275/nand.c: New file.
  32986. 2008-04-18 Thomas Schwinge <tschwinge@gnu.org>
  32987. * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
  32988. value.
  32989. * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
  32990. 2008-04-18 Robert Millan <rmh@aybabtu.com>
  32991. Restructures early code path on ieee1275 to unify grub_main() as
  32992. the first C function that is executed in every platform.
  32993. * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
  32994. * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
  32995. cmain().
  32996. * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
  32997. * kern/ieee1275/cmain.c (cmain): Rename to ...
  32998. * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
  32999. * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
  33000. at the beginning.
  33001. 2008-04-18 Robert Millan <rmh@aybabtu.com>
  33002. * util/update-grub.in: Fix syntax error when setting
  33003. `GRUB_PRELOAD_MODULES'.
  33004. Reported by Stephane Chazelas <stephane@artesyncp.com>
  33005. 2008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
  33006. * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
  33007. section into account, newer toolchains generate unique build ids
  33008. * configure.ac: remove the test for --build-id=none acceptance,
  33009. we want build ids to be preserved
  33010. * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
  33011. far from other sections don't cause the raw binary images grow
  33012. size
  33013. 2008-04-15 Robert Millan <rmh@aybabtu.com>
  33014. * disk/lvm.c: Update copyright year.
  33015. * kern/misc.c: Likewise.
  33016. 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
  33017. * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
  33018. there is no memory left for physical volume name.
  33019. 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
  33020. * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
  33021. volume name mapping to support bigger than 9 character names properly.
  33022. 2008-04-13 Robert Millan <rmh@aybabtu.com>
  33023. * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
  33024. as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
  33025. 2008-04-13 Christian Franke <franke@computer.org>
  33026. * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
  33027. to create a floppy emulation boot CD when non emulation mode
  33028. does not work.
  33029. Enable Joliet CD filesystem extension.
  33030. 2008-04-13 Robert Millan <rmh@aybabtu.com>
  33031. * kern/misc.c (grub_strncat): Fix off-by-one error.
  33032. Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
  33033. * kern/env.c (grub_env_context_close): Clear current context, not
  33034. previous one.
  33035. Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
  33036. * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
  33037. 2008-04-13 Robert Millan <rmh@aybabtu.com>
  33038. Improve robustness when handling LVM.
  33039. * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
  33040. (and leave `*p' unmodified).
  33041. (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
  33042. through it.
  33043. (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
  33044. iterating through it.
  33045. (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
  33046. through it.
  33047. (grub_lvm_scan_device): Check the return value (and fail gracefully
  33048. when due) on each grub_lvm_getvalue() or grub_strstr() call.
  33049. Don't assume `vg->pvs != NULL' when iterating through it.
  33050. 2008-04-13 Robert Millan <rmh@aybabtu.com>
  33051. * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
  33052. * genmk.rb (partmap): New variable.
  33053. (CLEANFILES, PARTMAPFILES): Add #{partmap}.
  33054. (#{partmap}): New target rule.
  33055. * genpartmaplist.sh: New file.
  33056. * Makefile.in (pkglib_DATA): Add partmap.lst.
  33057. (partmap.lst): New target rule.
  33058. * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
  33059. modules (including all partition maps), instead of preloading them.
  33060. 2007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
  33061. * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
  33062. `linux-boot-prober' (if installed) to detect other operating
  33063. systems which are installed on the computer and add them to
  33064. the boot menu.
  33065. * conf/common.rmk: Build and install 30_os-prober.
  33066. 2008-04-12 Robert Millan <rmh@aybabtu.com>
  33067. * kern/powerpc/ieee1275/init.c: Move from here ...
  33068. * kern/ieee1275/init.c: ... to here. Update all users.
  33069. * kern/powerpc/ieee1275/cmain.c: Move from here ...
  33070. * kern/ieee1275/cmain.c: ... to here. Update all users.
  33071. * kern/powerpc/ieee1275/openfw.c: Move from here ...
  33072. * kern/ieee1275/openfw.c: ... to here. Update all users.
  33073. * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
  33074. * loader/ieee1275/multiboot2.c: ... to here. Update all users.
  33075. 2008-04-10 Pavel Roskin <proski@gnu.org>
  33076. * configure.ac: Always use "_cv_" in cache variables for
  33077. compatibility with Autoconf 2.62.
  33078. 2008-04-07 Robert Millan <rmh@aybabtu.com>
  33079. Revert grub/machine/init.h addition by Pavel (since it breaks on
  33080. i386-ieee1275 and others):
  33081. * util/i386/pc/misc.c: Remove grub/machine/init.h.
  33082. * util/powerpc/ieee1275/misc.c: Likewise.
  33083. 2008-04-07 Robert Millan <rmh@aybabtu.com>
  33084. * util/grub-probe.c (probe): Improve error message.
  33085. 2008-04-07 Robert Millan <rmh@aybabtu.com>
  33086. * util/biosdisk.c (read_device_map): Skip devices that don't exist
  33087. (this prevents the presence of a bogus entry from ruining the whole
  33088. thing).
  33089. 2008-04-06 Pavel Roskin <proski@gnu.org>
  33090. * util/biosdisk.c: Include grub/util/biosdisk.h.
  33091. * util/grub-fstest.c (execute_command): Make static.
  33092. * util/grub-mkdevicemap.c (check_device): Likewise.
  33093. * util/i386/pc/misc.c: Include grub/machine/init.h.
  33094. * util/powerpc/ieee1275/misc.c: Likewise.
  33095. * util/lvm.c: Include grub/util/lvm.h.
  33096. * util/misc.c: Include grub/kernel.h, grub/misc.h and
  33097. grub/cache.h.
  33098. * util/raid.c: Include grub/util/raid.h.
  33099. (grub_util_getdiskname): Make static.
  33100. * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
  33101. grub_hostfs_fini(), as they are called from grub_init_all() and
  33102. grub_fini_all() respectively. This fixes an infinite loop in
  33103. grub-fstest due to double registration of hostfs.
  33104. Reported by Christian Franke <Christian.Franke@t-online.de>
  33105. 2008-04-05 Pavel Roskin <proski@gnu.org>
  33106. * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
  33107. all 8 functions. Otherwise, probe function 0 only.
  33108. 2008-04-04 Pavel Roskin <proski@gnu.org>
  33109. * commands/lspci.c (grub_lspci_iter): Print the bus number
  33110. correctly.
  33111. * commands/lspci.c (grub_pci_classes): Fix typos.
  33112. (grub_lspci_iter): Don't print func twice. Print vendor ID
  33113. before device ID, as it's normally done.
  33114. * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
  33115. Fix signedness warnings.
  33116. * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
  33117. Likewise.
  33118. * util/ieee1275/get_disk_name.c: Include config.h so that
  33119. _GNU_SOURCE is defined and getline() is declared. Mark an
  33120. unused argument as such. Fix a signedness warning.
  33121. 2008-04-02 Pavel Roskin <proski@gnu.org>
  33122. * genkernsyms.sh.in: Use more robust assignments for CC and
  33123. srcdir. Quote srcdir.
  33124. * gensymlist.sh.in: Likewise. Assert at the compile time that
  33125. the symbol table is not empty.
  33126. * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
  33127. * fs/cpio.c (grub_cpio_read): Likewise.
  33128. 2008-04-01 Pavel Roskin <proski@gnu.org>
  33129. * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
  33130. * disk/host.c (grub_host_open): Likewise.
  33131. * disk/loopback.c (grub_loopback_open): Likewise.
  33132. * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
  33133. disk->id as in disk/host.c, not a multi-character constant.
  33134. * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
  33135. later is obsolete, potentially dangerous and sets a bad example.
  33136. * util/i386/efi/grub-mkimage.c (make_header): Likewise.
  33137. * util/misc.c (grub_util_get_image_size): Likewise.
  33138. * disk/loopback.c (options): Improve help for "--partitions".
  33139. * normal/arg.c (grub_arg_show_help): Fix spacing of the long
  33140. options to align them with the short options, e.g. "echo -e".
  33141. 2008-03-31 Bean <bean123ch@gmail.com>
  33142. * video/reader/png.c (grub_png_data): New member is_16bit and
  33143. image_data.
  33144. (grub_png_decode_image_header): Detect 16 bit png image.
  33145. (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
  33146. (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
  33147. (grub_video_reader_png): Release memory occupied by image_data.
  33148. * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
  33149. 4096 bytes.
  33150. (grub_nfs_mount): Skip the test for sector per cluster.
  33151. * include/grub/ntfs.h (MAX_SPC): Removed.
  33152. 2008-03-31 Bean <bean123ch@gmail.com>
  33153. * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
  33154. (grub_probe_SOURCES): Add fs/afs.c.
  33155. (grub_fstest_SOURCES): Likewise.
  33156. (afs_mod_SOURCES): New variable.
  33157. (afs_mod_CFLAGS): Likewise.
  33158. (afs_mod_LDFLAGS): Likewise.
  33159. * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
  33160. (grub_emu_SOURCES): Likewise.
  33161. * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
  33162. * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
  33163. * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
  33164. * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
  33165. * fs/afs.c: New file.
  33166. 2008-03-30 Pavel Roskin <proski@gnu.org>
  33167. * disk/host.c: Include grub/misc.h to fix a warning.
  33168. * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
  33169. warnings about implicit declarations.
  33170. * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
  33171. variable.
  33172. * include/grub/i386/loader.h: Change declaration of
  33173. grub_linux_boot() to match what grub_loader_set() expects.
  33174. * util/getroot.c (grub_guess_root_device): Return const char* to
  33175. fix a warning.
  33176. * util/grub-probe.c (probe): Fix a warning about uninitialized
  33177. abstraction_name variable.
  33178. * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
  33179. second argument as unused to fix a warning.
  33180. * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
  33181. missing grub_error() call.
  33182. * util/update-grub_lib.in: Define datarootdir, since Autoconf
  33183. 2.60 and newer uses it to define datadir.
  33184. * commands/sleep.c: Fix warning about implicit declaration.
  33185. * disk/memdisk.c: Likewise.
  33186. * loader/aout.c: Likewise.
  33187. * loader/i386/bsd_normal.c: Likewise.
  33188. * util/grub-probe.c: Likewise.
  33189. * commands/i386/cpuid.c (has_longmode): Make static.
  33190. * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
  33191. * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
  33192. * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
  33193. GDT. This is more robust, as %ds can change.
  33194. (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
  33195. calling real_to_prot().
  33196. (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
  33197. 2008-03-28 Pavel Roskin <proski@gnu.org>
  33198. * kern/i386/pc/startup.S: Assert that uncompressed functions
  33199. don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
  33200. * kern/i386/pc/lzo1x.S: Remove all .align directives in the
  33201. code, as they push parts of the code (error handlers) beyond
  33202. GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
  33203. code as correctness and size.
  33204. 2008-03-28 Pavel Roskin <proski@gnu.org>
  33205. * kern/i386/pc/startup.S
  33206. (grub_biosdisk_get_diskinfo_int13_extensions): When converting
  33207. data block address to the real mode, keep offset minimal. This
  33208. works around a bug in AWARD BIOS on old Athlon systems, which
  33209. makes CD detection hang.
  33210. 2008-03-26 Pavel Roskin <proski@gnu.org>
  33211. * normal/color.c (grub_parse_color_name_pair): Make `name' a
  33212. const.
  33213. * include/grub/normal.h: Add grub_parse_color_name_pair()
  33214. declaration.
  33215. 2008-03-24 Bean <bean123ch@gmail.com>
  33216. * disk/i386/pc/biosdisk.c (cd_start): Removed.
  33217. (cd_count): Removed.
  33218. (cd_drive): New variable.
  33219. (grub_biosdisk_get_drive): Don't check for (cdN) device.
  33220. (grub_biosdisk_call_hook): Likewise.
  33221. (grub_biosdisk_iterate): Change cdrom detection method.
  33222. (grub_biosdisk_open): Replace cd_start with cd_drive.
  33223. (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
  33224. detect cdrom device.
  33225. * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
  33226. Removed.
  33227. (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
  33228. (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
  33229. (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
  33230. (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
  33231. (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
  33232. (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
  33233. (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
  33234. (grub_biosdisk_cdrp): New structure.
  33235. (grub_biosdisk_get_cdinfo_int13_extensions): New function.
  33236. * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
  33237. * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
  33238. device.
  33239. * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
  33240. New function.
  33241. 2008-03-20 Robert Millan <rmh@aybabtu.com>
  33242. Remove 2 TiB limit in ata.mod.
  33243. * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
  33244. (grub_ata_dumpinfo): Print sector count with 0x%llx.
  33245. (grub_ata_identify): Interpret `&info16[100]' as a pointer to
  33246. grub_uint64_t instead of grub_uint32_t.
  33247. 2008-03-05 Bean <bean123ch@gmail.com>
  33248. * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
  33249. (grub_multiboot): Set boot device.
  33250. * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
  33251. 2008-03-02 Bean <bean123ch@gmail.com>
  33252. * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
  33253. symlink_buffer.
  33254. 2008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
  33255. * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
  33256. texinfo.tex.
  33257. * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
  33258. modified.
  33259. * docs/fdl.texi: New file.
  33260. * docs/mdate-sh: New file. Copied from gnulib.
  33261. * docs/texinfo.tex: Likewise.
  33262. * config.guess: Updated from gnulib.
  33263. * install-sh: Likewise.
  33264. 2008-02-28 Robert Millan <rmh@aybabtu.com>
  33265. * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
  33266. (aout_mod_SOURCES): New variable.
  33267. (aout_mod_CFLAGS): Likewise.
  33268. (aout_mod_LDFLAGS): Likewise.
  33269. * conf/i386-ieee1275.rmk: Likewise.
  33270. 2008-02-28 Robert Millan <rmh@aybabtu.com>
  33271. * util/update-grub.in: Reorganise terminal validity check. Accept
  33272. `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
  33273. Based on suggestion by Franklin PIAT.
  33274. 2008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
  33275. * include/grub/util/getroot.h (grub_util_check_block_device): Export new
  33276. function.
  33277. * util/getroot.c (grub_util_check_block_device): New function that
  33278. returns the given argument if it is a block device and returns NULL else.
  33279. * util/grub-probe.c (argument_is_device): New variable.
  33280. (probe): Promote device_name from a variable to an argument. Receive
  33281. device_name from grub_util_check_block_device() if path is NULL and from
  33282. grub_guess_root_device() else. Do not free() device_name anymore.
  33283. (options): Introduce new parameter '-d, --device'.
  33284. (main): Add description of the new parameter to the help screen.
  33285. Rename path variable to argument. Set argument_is_device if the '-d'
  33286. option is given. Pass argument to probe() depending on
  33287. argument_is_device.
  33288. 2008-02-24 Bean <bean123ch@gmail.com>
  33289. * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
  33290. (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
  33291. (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
  33292. (GRUB_ISO9660_VOLDESC_PART): Likewise.
  33293. (GRUB_ISO9660_VOLDESC_END): Likewise.
  33294. (grub_iso9660_primary_voldesc): New member escape.
  33295. (grub_iso9660_data): New member joliet.
  33296. (grub_iso9660_convert_string): New function.
  33297. (grub_iso9660_mount): Detect joliet extension.
  33298. (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
  33299. (grub_iso9660_iso9660_label): Likewise.
  33300. * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
  33301. (grub_setup_SOURCES): Add fs/udf.c.
  33302. (grub_fstest_SOURCES): Likewise.
  33303. (udf_mod_SOURCES): New variable.
  33304. (udf_mod_CFLAGS): Likewise.
  33305. (udf_mod_LDFLAGS): Likewise.
  33306. * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
  33307. (grub_emu_SOURCES): Likewise.
  33308. * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
  33309. * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
  33310. * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
  33311. * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
  33312. * fs/udf.c: New file.
  33313. 2008-02-24 Robert Millan <rmh@aybabtu.com>
  33314. * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
  33315. (normal/lexer.c_DEPENDENCIES): New variables.
  33316. * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
  33317. (normal/lexer.c_DEPENDENCIES): Likewise.
  33318. * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
  33319. (normal/lexer.c_DEPENDENCIES): Likewise.
  33320. * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
  33321. (normal/lexer.c_DEPENDENCIES): Likewise.
  33322. * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
  33323. (normal/lexer.c_DEPENDENCIES): Likewise.
  33324. * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
  33325. (normal/lexer.c_DEPENDENCIES): Likewise.
  33326. 2008-02-23 Robert Millan <rmh@aybabtu.com>
  33327. * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
  33328. since they were intended to be in hex. This didn't break previously
  33329. because of a bug in gpt_partition_map_iterate() (see below).
  33330. (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
  33331. when checking the validity of GPT header.
  33332. Remove `partno', since it always provides the same information as `i'.
  33333. 2008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
  33334. * include/grub/efi/time.h: Fix a wrong comment.
  33335. 2008-02-19 Pavel Roskin <proski@gnu.org>
  33336. * kern/rescue.c (grub_enter_rescue_mode): Improve initial
  33337. message.
  33338. 2008-02-19 Bean <bean123ch@gmail.com>
  33339. * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
  33340. (aout_mod_SOURCES): New variable.
  33341. (aout_mod_CFLAGS): Likewise.
  33342. (aout_mod_LDFLAGS): Likewise.
  33343. (_bsd_mod_SOURCES): New variable.
  33344. (_bsd_mod_CFLAGS): Likewise.
  33345. (_bsd_mod_LDFLAGS): Likewise.
  33346. (bsd_mod_SOURCES): New variable.
  33347. (bsd_mod_CFLAGS): Likewise.
  33348. (bsd_mod_LDFLAGS): Likewise.
  33349. * include/grub/aout.h: New file.
  33350. * include/grub/i386/loader.h (grub_unix_real_boot): New function.
  33351. * include/grub/i386/bsd.h: New file.
  33352. * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
  33353. to make it public.
  33354. * kern/elf.c (grub_elf32_load): Get the physical address after the hook
  33355. function is called, so that it's possible to change it inside the hook.
  33356. (grub_elf64_load): Likewise.
  33357. (grub_elf_file): Don't close the file if elf header is not found.
  33358. (grub_elf_close): Close the file if grub_elf_file fails (The new
  33359. grub_elf_file won't close it).
  33360. (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
  33361. (grub_elf64_size): Likewise.
  33362. * kern/i386/loader.S (grub_unix_real_boot): New function.
  33363. * loader/aout.c: New file.
  33364. * loader/i386/bsd.c: New file.
  33365. * loader/i386/bsd_normal.c: New file.
  33366. * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
  33367. * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
  33368. can test other formats.
  33369. 2008-02-19 Robert Millan <rmh@aybabtu.com>
  33370. * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
  33371. (grub_gpt_partition_type_empty): Redefine with macro from
  33372. `<grub/gpt_partition.h>'.
  33373. (gpt_partition_map_iterate): Adjust partition type comparison.
  33374. Export `entry' as partmap-specific `part.data' struct.
  33375. (grub_gpt_header, grub_gpt_partentry): Move from here ...
  33376. * include/grub/gpt_partition.h (grub_gpt_header)
  33377. (grub_gpt_partentry): ... to here (new file).
  33378. * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
  33379. (grub_gpt_partition_type_bios_boot): New const variable, defined
  33380. with macro from `<grub/gpt_partition.h>'.
  33381. (setup): Replace `first_start' with `embed_region', which keeps
  33382. track of the embed region (and is partmap-agnostic).
  33383. Replace find_first_partition_start() with find_usable_region(),
  33384. which finds a usable region for embedding using partmap-specific
  33385. knowledge (supports PC/MSDOS and GPT).
  33386. Fix all assumptions that the embed region start at sector 1, using
  33387. `embed_region.start' from now on. Similarly, use `embed_region.end'
  33388. rather than `first_start' to calculate available size.
  33389. In grub_util_info() message, replace "into after the MBR" with an
  33390. indication of the specific sector our embed region starts at.
  33391. 2008-02-19 Robert Millan <rmh@aybabtu.com>
  33392. * DISTLIST: Replace `commands/ieee1275/halt.c' and
  33393. `commands/ieee1275/reboot.c' with `commands/halt.c' and
  33394. `commands/reboot.c'.
  33395. * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
  33396. (halt_mod_SOURCES): Likewise.
  33397. * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
  33398. (halt_mod_SOURCES): Likewise.
  33399. 2008-02-17 Christian Franke <franke@computer.org>
  33400. * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
  33401. 2008-02-17 Robert Millan <rmh@aybabtu.com>
  33402. * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
  33403. set `first_start' to 0 for non-PC/MSDOS partition maps.
  33404. 2008-02-16 Robert Millan <rmh@aybabtu.com>
  33405. * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
  33406. do not assume partition map is PC/MSDOS before performing checks that
  33407. are specific to that layout.
  33408. 2008-02-13 Robert Millan <rmh@aybabtu.com>
  33409. * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
  33410. `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
  33411. * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
  33412. 2008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
  33413. * configure.ac: Only a cosmetic change on the handling of
  33414. -fno-stack-protector.
  33415. 2008-02-12 Alexandre Boeglin <alex@boeglin.org>
  33416. * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
  33417. commands/i386/pc/halt.c and reboot.c by commands/halt.c and
  33418. reboot.c.
  33419. (grub_install_SOURCES): Add halt.mod and reboot.mod.
  33420. (halt_mod_SOURCES): New variable.
  33421. (halt_mod_CFLAGS): Likewise.
  33422. (halt_mod_LDFLAGS): Likewise.
  33423. (reboot_mod_SOURCES): Likewise.
  33424. (reboot_mod_CFLAGS): Likewise.
  33425. (reboot_mod_LDFLAGS): Likewise.
  33426. * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
  33427. commands/ieee1275/halt.c and reboot.c by commands/halt.c and
  33428. reboot.c.
  33429. (halt_mod_SOURCES): Likewise.
  33430. (reboot_mod_SOURCES): Likewise.
  33431. * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
  33432. commands/i386/pc/reboot.c by commands/reboot.c.
  33433. (reboot_mod_SOURCES): Likewise.
  33434. * commands/i386/pc/reboot.c: merge this file ...
  33435. * commands/ieee1275/reboot.c: ... and this file ...
  33436. * commands/reboot.c: ... to this file.
  33437. Add some precompiler directive to include the correct header for
  33438. each machine.
  33439. * commands/ieee1275/halt.c: move this file ...
  33440. * commands/halt.c: ... to here.
  33441. Add some precompiler directive to include the correct header for
  33442. each machine.
  33443. * include/grub/efi/efi.h (grub_reboot): New function declaration.
  33444. (grub_halt): Likewise.
  33445. * kern/efi/efi.c (grub_reboot): New function.
  33446. (grub_halt): Likewise.
  33447. 2008-02-12 Robert Millan <rmh@aybabtu.com>
  33448. * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
  33449. /dev (like it is done for /dev/mapper). This doesn't provide support
  33450. for EVMS, but at least it is now easy to identify the problem when it
  33451. arises.
  33452. 2008-02-11 Robert Millan <rmh@aybabtu.com>
  33453. * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
  33454. (grub_util_biosdisk_get_grub_dev): Check open() exit status by
  33455. comparing it with -1, not 0.
  33456. 2008-02-10 Robert Millan <rmh@aybabtu.com>
  33457. * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
  33458. `disk/lvm.c'.
  33459. * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
  33460. * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
  33461. * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
  33462. `disk/lvm.c' to the end of the list.
  33463. * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
  33464. * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
  33465. 2008-02-10 Robert Millan <rmh@aybabtu.com>
  33466. * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
  33467. grub_print_error() instead. This will let user know why we're entering
  33468. rescue mode.
  33469. Based on suggestions from Sam Morris.
  33470. 2008-02-10 Alexandre Boeglin <alex@boeglin.org>
  33471. * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
  33472. on remaining N args, instead of "--" arg N times.
  33473. 2008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
  33474. * font/manager.c (unknown_glyph): Added variable for unknown glyph.
  33475. (fill_with_default_glyph): Changed to use unknown_glyph for fill
  33476. pattern for unknown glyphs.
  33477. 2008-02-09 Robert Millan <rmh@aybabtu.com>
  33478. * configure.ac: Probe for `help2man'.
  33479. * Makefile.in (builddir): New variable.
  33480. (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
  33481. or otherwise add a few flags/options to it.
  33482. (install-local): For every executable utility or script that is
  33483. installed, invoke $(HELP2MAN) to install a manpage based on --help
  33484. output.
  33485. * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
  33486. that it doesn't prevent --help from working in build tree.
  33487. * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
  33488. with `bug-grub@gnu.org'.
  33489. * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
  33490. * util/update-grub.in (usage): New function.
  33491. Implement proper argument check, with support for --help and --version
  33492. (as well as existing -y).
  33493. 2008-02-09 Christian Franke <franke@computer.org>
  33494. * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
  33495. avoid overwriting previous output.
  33496. * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
  33497. 2008-02-09 Robert Millan <rmh@aybabtu.com>
  33498. * normal/menu.c (run_menu): If timeout is set to zero, don't bother
  33499. drawing the menu.
  33500. 2008-02-09 Robert Millan <rmh@aybabtu.com>
  33501. * commands/sleep.c: New file.
  33502. * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
  33503. (sleep_mod_SOURCES): New variable.
  33504. (sleep_mod_CFLAGS): Likewise.
  33505. (sleep_mod_LDFLAGS): Likewise.
  33506. 2008-02-09 Robert Millan <rmh@aybabtu.com>
  33507. * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
  33508. situations in which we can deduce the RAID size and the superblock
  33509. doesn't match it.
  33510. 2008-02-09 Robert Millan <rmh@aybabtu.com>
  33511. * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
  33512. and return a grub_diskmemberlist_t composed of LVM physical volumes.
  33513. [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
  33514. * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
  33515. and return a grub_diskmemberlist_t composed of physical array members.
  33516. [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
  33517. * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
  33518. prototype.
  33519. [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
  33520. [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
  33521. [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
  33522. * util/grub-probe.c (probe): Move partmap probing code from here ...
  33523. (probe_partmap): ... to here.
  33524. (probe): Use probe_partmap() once for the disk we're probing, and
  33525. additionally, when such disk contains a memberlist() struct member,
  33526. once for each disk that is contained in the structure returned by
  33527. memberlist().
  33528. 2008-02-09 Robert Millan <rmh@aybabtu.com>
  33529. * util/grub-probe.c (main): When `verbosity > 1', set `debug'
  33530. environment variable to 'all' in order to obtain debug output from
  33531. non-util/ code.
  33532. * util/i386/pc/grub-setup.c (main): Likewise.
  33533. 2008-02-08 Robert Millan <rmh@aybabtu.com>
  33534. * disk/raid.c (grub_raid_scan_device): Check for
  33535. `array->device[sb.this_disk.number]' rather than for
  33536. `array->device[sb.this_disk.number]->name', since the latter is not
  33537. guaranteed to be accessible.
  33538. 2008-02-08 Robert Millan <rmh@aybabtu.com>
  33539. * disk/raid.c: Update copyright.
  33540. * fs/cpio.c: Likewise.
  33541. * include/grub/raid.h: Likewise.
  33542. * loader/i386/pc/multiboot.c: Likewise.
  33543. * util/hostfs.c: Likewise.
  33544. 2008-02-08 Robert Millan <rmh@aybabtu.com>
  33545. * include/grub/raid.h (struct grub_raid_array): Change type of `device'
  33546. to a grub_disk_t array.
  33547. * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
  33548. `device[x]'.
  33549. (grub_raid_scan_device): Replace `device[x].name' accesses with
  33550. `device[x]->name'. Simplify initialization of `array->device[x]'.
  33551. 2008-02-08 Robert Millan <rmh@aybabtu.com>
  33552. * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
  33553. grub_dprintf() calls.
  33554. * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
  33555. error message.
  33556. 2008-02-07 Christian Franke <franke@computer.org>
  33557. * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
  33558. instead of fseek and ftell to support large files.
  33559. (grub_hostfs_read): Likewise.
  33560. 2008-02-07 Robert Millan <rmh@aybabtu.com>
  33561. Patch from Jeroen Dekkers.
  33562. * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
  33563. failure, since successfully reading all array members might not be
  33564. required.
  33565. 2008-02-06 Robert Millan <rmh@aybabtu.com>
  33566. * util/grub-probe.c (probe): Simplify partmap probing (with the
  33567. assumption that the first word up to the underscore equals to
  33568. the module name).
  33569. 2008-02-06 Christian Franke <franke@computer.org>
  33570. * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
  33571. (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
  33572. last block of a cpio or tar stream.
  33573. Check for "TRAILER!!!" instead of any empty data
  33574. block to detect last block of a cpio stream.
  33575. (grub_cpio_dir): Fix constness of variable np.
  33576. (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
  33577. cpio or tar trailer is detected. This fixes a crash
  33578. on open of a non existing file.
  33579. 2008-02-05 Bean <bean123ch@gmail.com>
  33580. * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
  33581. address of entry.
  33582. (grub_multiboot_load_elf64): Likewise.
  33583. (grub_multiboot): Initialize mbi structure.
  33584. * util/grub-fstest.c: Don't include unused header file script.h.
  33585. * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
  33586. of file.
  33587. (grub_fstest_SOURCES): Likewise.
  33588. 2008-02-05 Robert Millan <rmh@aybabtu.com>
  33589. * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
  33590. (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
  33591. (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
  33592. (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
  33593. * kern/i386/pc/startup.S: Include `<grub/term.h>'.
  33594. (translation_table): Replace hardcoded values with macros
  33595. provided by `<grub/term.h>'.
  33596. * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
  33597. (keyboard_map): Correct/add a few values, with macros provided
  33598. by `<grub/term.h>'.
  33599. (keyboard_map_shift): Zero values that don't differ from their
  33600. `keyboard_map' equivalents.
  33601. (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
  33602. Discard the second scan code that is always sent by Caps lock.
  33603. Only use `keyboard_map_shift' when it provides a non-zero value,
  33604. otherwise fallback to `keyboard_map'.
  33605. 2008-02-04 Bean <bean123ch@gmail.com>
  33606. * Makefile.in (enable_grub_fstest): New variable.
  33607. * conf/common.rmk (grub_fstest_init.lst): New rule.
  33608. (grub_fstest_init.h): Likewise.
  33609. (grub_fstest_init.c): Likewise.
  33610. (util/grub-fstest.c_DEPENDENCIES): New variable.
  33611. (grub_fstest_SOURCES): Likewise.
  33612. * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
  33613. * util/grub-fstest.c: New file.
  33614. 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
  33615. Make grub-setup handle a separate root device.
  33616. * util/i386/pc/grub-setup.c (setup): Always open the root device,
  33617. so that the root device can be compared with the destination
  33618. device.
  33619. When embedding the core image, if the root and destination devices
  33620. are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
  33621. 0xFF.
  33622. When not embedding, set ROOT_DRIVE to 0xFF.
  33623. 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
  33624. Add support for having a grub directory in a different drive. This
  33625. is still only the data handling part.
  33626. * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
  33627. (codestart): Save %dh in GRUB_ROOT_DRIVE.
  33628. (grub_root_drive): New variable.
  33629. * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
  33630. instead of GRUB_BOOT_DRIVE to construct a device name. Set
  33631. GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
  33632. as it was.
  33633. * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
  33634. * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
  33635. macro.
  33636. (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
  33637. * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
  33638. is bogus, because PXE booting does not specify any drive
  33639. correctly.
  33640. * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
  33641. am not sure if this is really correct.
  33642. * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
  33643. is always identical to the boot drive when booting from a CD.
  33644. * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
  33645. longer.
  33646. (root_drive): New variable.
  33647. (real_start): Unconditionally set %dh to ROOT_DRIVE.
  33648. (setup_sectors): Push %dx right after popping it, because %dh will
  33649. be modified later.
  33650. (copy_buffer): Restore %dx.
  33651. 2008-02-03 Robert Millan <rmh@aybabtu.com>
  33652. * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
  33653. use `cdboot.img' for cdrom images.
  33654. 2008-02-03 Robert Millan <rmh@aybabtu.com>
  33655. * util/grub.d/00_header.in: Issue scripting commands for GRUB to
  33656. only setup gfxterm when `font' command has succeeded.
  33657. 2008-02-03 Robert Millan <rmh@aybabtu.com>
  33658. * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
  33659. (grub_rescue_cmd_multiboot_loader)
  33660. (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
  33661. 2008-02-03 Pavel Roskin <proski@gnu.org>
  33662. * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
  33663. %edx and %esi from stack only after grub_gate_a20() is called.
  33664. grub_gate_a20() clobbers %edx.
  33665. 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
  33666. * configure.ac (AC_INIT): Bumped to 1.96.
  33667. * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
  33668. commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
  33669. include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
  33670. video/readers/png.c.
  33671. 2008-02-03 Bean <bean123ch@gmail.com>
  33672. * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
  33673. (cdboot_img_SOURCES): New variable.
  33674. (cdboot_img_ASFLAGS): New variable.
  33675. (cdboot_img_LDFLAGS): New variable.
  33676. * boot/i386/pc/cdboot.S: New file.
  33677. * disk/i386/pc/biosdisk.c (cd_start): New variable.
  33678. (cd_count): Likewise.
  33679. (grub_biosdisk_get_drive): Add support for cd device.
  33680. (grub_biosdisk_call_hook): Likewise.
  33681. (grub_biosdisk_iterate): Likewise.
  33682. (grub_biosdisk_open): Likewise.
  33683. (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
  33684. (grub_biosdisk_rw): Support reading from cd device.
  33685. (GRUB_MOD_INIT): Iterate cd devices.
  33686. * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
  33687. (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
  33688. (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
  33689. * kern/i386/pc/init.c (make_install_device): Check for cd device.
  33690. 2008-02-02 Robert Millan <rmh@aybabtu.com>
  33691. * commands/read.c: New file.
  33692. * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
  33693. (read_mod_SOURCES): New variable.
  33694. (read_mod_CFLAGS): Likewise.
  33695. (read_mod_LDFLAGS): Likewise.
  33696. 2008-02-02 Robert Millan <rmh@aybabtu.com>
  33697. * normal/main.c (grub_normal_execute): Check for `menu->size' when
  33698. determining whether menu has to be displayed.
  33699. 2008-02-02 Marco Gerards <marco@gnu.org>
  33700. * bus/pci.c: New file.
  33701. * include/grub/pci.h: Likewise.
  33702. * include/grub/i386/pc/pci.h: Likewise.
  33703. * commands/lspci.c: Likewise.
  33704. * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
  33705. `lspci.mod'.
  33706. (pci_mod_SOURCES): New variable.
  33707. (pci_mod_CFLAGS): Likewise.
  33708. (pci_mod_LDFLAGS): Likewise.
  33709. (lspci_mod_SOURCES): Likewise.
  33710. (lspci_mod_CFLAGS): Likewise.
  33711. (lspci_mod_LDFLAGS): Likewise.
  33712. 2008-02-02 Bean <bean123ch@gmail.com>
  33713. * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
  33714. (grub_ufs_get_file_block): Fix indirect block calculation problem.
  33715. * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
  33716. (grub_xfs_btree_node): New structure.
  33717. (grub_xfs_btree_root): New structure.
  33718. (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
  33719. (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
  33720. (GRUB_XFS_EXTENT_BLOCK): Likewise.
  33721. (GRUB_XFS_EXTENT_SIZE): Likewise.
  33722. (grub_xfs_read_block): Support btree format type.
  33723. (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
  33724. Use directory block as basic unit.
  33725. * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
  33726. * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
  33727. __attribute__ ((__regparm__ (1))).
  33728. 2008-02-01 Robert Millan <rmh@aybabtu.com>
  33729. Correct a mistake in previous commit.
  33730. * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
  33731. top.
  33732. (normal/command.c_DEPENDENCIES): New variable.
  33733. 2008-02-01 Robert Millan <rmh@aybabtu.com>
  33734. * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
  33735. top.
  33736. (normal/command.c_DEPENDENCIES): New variable.
  33737. (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
  33738. * conf/i386-ieee1275.rmk: Likewise.
  33739. * conf/i386-linuxbios.rmk: Likewise.
  33740. * conf/i386-pc.rmk: Likewise.
  33741. * conf/sparc64-ieee1275.rmk: Likewise.
  33742. * conf/powerpc-ieee1275.rmk: Likewise.
  33743. (grub_emu_SOURCES): Add `fs/fshelp.c'.
  33744. * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
  33745. 2008-02-01 Robert Millan <rmh@aybabtu.com>
  33746. * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
  33747. call at beginning of function.
  33748. 2008-01-31 Pavel Roskin <proski@gnu.org>
  33749. * util/powerpc/ieee1275/grub-mkrescue.in: New file.
  33750. * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
  33751. (grub_mkrescue_SOURCES): Likewise.
  33752. * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
  33753. 2008-01-30 Robert Millan <rmh@aybabtu.com>
  33754. * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
  33755. (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
  33756. * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
  33757. (grub_probe_SOURCES): ... to here.
  33758. * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
  33759. (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
  33760. * conf/i386-ieee1275.rmk: Likewise.
  33761. * conf/i386-linuxbios.rmk: Likewise.
  33762. * conf/powerpc-ieee1275.rmk: Likewise.
  33763. 2008-01-30 Tristan Gingold <gingold@free.fr>
  33764. * kern/rescue.c: Silently accept empty lines.
  33765. 2008-01-29 Bean <bean123ch@gmail.com>
  33766. * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
  33767. (real_code_2): Code cleanup and change comment style.
  33768. (move_memory): Avoid using 32-bit address mode.
  33769. 2008-01-29 Bean <bean123ch@gmail.com>
  33770. * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
  33771. (png_mod_SOURCES): New variable.
  33772. (png_mod_CFLAGS): Likewise.
  33773. (png_mod_LDFLAGS): Likewise.
  33774. * video/readers/png.c: New file.
  33775. 2008-01-28 Robert Millan <rmh@aybabtu.com>
  33776. * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
  33777. * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
  33778. `ifndef GRUB_MOD_GAP' hack.
  33779. * util/elf/grub-mkimage.c (add_segments): Likewise.
  33780. 2008-01-27 Robert Millan <rmh@aybabtu.com>
  33781. * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
  33782. `GRUB_MOD_GAP' for platforms in which it's not defined.
  33783. * util/elf/grub-mkimage.c (add_segments): Likewise.
  33784. 2008-01-27 Robert Millan <rmh@aybabtu.com>
  33785. Get grub-emu to build again (including parallel builds).
  33786. * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
  33787. Split into ...
  33788. (util/grub-emu.c_DEPENDENCIES): ... this, ...
  33789. (normal/execute.c_DEPENDENCIES): ... this, ...
  33790. (grub-emu_DEPENDENCIES): ... and this.
  33791. * conf/i386-efi.rmk: Likewise.
  33792. * conf/i386-linuxbios.rmk: Likewise.
  33793. * conf/i386-ieee1275.rmk: Likewise.
  33794. * conf/powerpc-ieee1275.rmk: Likewise.
  33795. (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
  33796. 2008-01-27 Robert Millan <rmh@aybabtu.com>
  33797. * NEWS: Add a few items.
  33798. 2008-01-27 Robert Millan <rmh@aybabtu.com>
  33799. Fix parallel builds with grub-emu. Based on earlier commit for
  33800. grub-probe and grub-setup.
  33801. * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
  33802. (util/grub-emu.c_DEPENDENCIES): ... this.
  33803. * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
  33804. (util/grub-emu.c_DEPENDENCIES): ... this.
  33805. * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
  33806. (util/grub-emu.c_DEPENDENCIES): ... this.
  33807. * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
  33808. (util/grub-emu.c_DEPENDENCIES): ... this.
  33809. * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
  33810. (util/grub-emu.c_DEPENDENCIES): ... this.
  33811. 2008-01-27 Pavel Roskin <proski@gnu.org>
  33812. * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
  33813. to create a gap between _end and the modules added to the image
  33814. with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
  33815. * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
  33816. * util/elf/grub-mkimage.c (add_segments): Likewise.
  33817. 2008-01-26 Pavel Roskin <proski@gnu.org>
  33818. * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
  33819. just return an error.
  33820. 2008-01-26 Bean <bean123ch@gmail.com>
  33821. * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
  33822. (grub_reiserfs_get_item): Save offset of the next item.
  33823. (grub_reiserfs_iterate_dir): Use next_offset to find next item.
  33824. 2008-01-25 Robert Millan <rmh@aybabtu.com>
  33825. * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
  33826. make all filesystem sources appear together (possibly fixing omissions
  33827. while at it).
  33828. * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
  33829. * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
  33830. * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
  33831. * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
  33832. * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
  33833. add `kern/file.c'.
  33834. * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
  33835. * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
  33836. * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
  33837. * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
  33838. * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
  33839. (probe): Add a sanity check to make sure of our ability to read
  33840. requested files when probing for filesystem type.
  33841. * genmk.rb: Update copyright year (2007).
  33842. * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
  33843. (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
  33844. (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
  33845. (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
  33846. (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
  33847. : Remove function prototypes.
  33848. 2008-01-25 Robert Millan <rmh@aybabtu.com>
  33849. Revert my previous commits (based on wrong assumption of how grub_errno
  33850. works).
  33851. * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
  33852. * kern/file.c (grub_file_open): Likewise.
  33853. 2008-01-24 Pavel Roskin <proski@gnu.org>
  33854. * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
  33855. that hang if GRUB tries to setup colors.
  33856. * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
  33857. colors for firmwares that don't support it.
  33858. * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
  33859. Recognize Open Hack'Ware, set flags to work around its
  33860. limitations.
  33861. 2008-01-24 Robert Millan <rmh@aybabtu.com>
  33862. * kern/file.c (grub_file_open): Do not account previous failures of
  33863. unrelated functions when grub_errno is checked for.
  33864. Reported by Oleg Strikov.
  33865. 2008-01-24 Bean <bean123ch@gmail.com>
  33866. * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
  33867. (grub_ufs_sblock): New member volume name.
  33868. (grub_ufs_find_file): Fix string copy bug.
  33869. (grub_ufs_label): Implement this function properly.
  33870. * fs/hfs.c (grub_hfs_cnid_type): New enum.
  33871. (grub_hfs_iterate_records): Use the correct file number for extents
  33872. and catalog file. Fix problem in next index calculation.
  33873. (grub_hfs_find_node): Replace recursive function call with loop.
  33874. (grub_hfs_iterate_dir): Replace recursive function call with loop.
  33875. 2008-01-23 Robert Millan <rmh@aybabtu.com>
  33876. * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
  33877. `<grub/symbol.h>' and `<grub/multiboot.h>'.
  33878. (grub_multiboot2_real_boot): New function prototype.
  33879. * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
  33880. [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
  33881. * kern/i386/ieee1275/init.c (grub_os_area_addr)
  33882. (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
  33883. 2008-01-23 Robert Millan <rmh@aybabtu.com>
  33884. * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
  33885. #ifdef'ed out grub_printf().
  33886. 2008-01-23 Robert Millan <rmh@aybabtu.com>
  33887. * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
  33888. grub_dprintf calls, since they make "debug=all" mode unusable.
  33889. (grub_console_checkkey): Likewise.
  33890. 2008-01-23 Robert Millan <rmh@aybabtu.com>
  33891. * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
  33892. `term/i386/pc/at_keyboard.c'.
  33893. (pkglib_MODULES): Add `serial.mod'.
  33894. (serial_mod_SOURCES): New variable.
  33895. (serial_mod_CFLAGS): Likewise.
  33896. (serial_mod_LDFLAGS): Likewise.
  33897. * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
  33898. `<grub/powerpc/ieee1275/console.h>'.
  33899. (grub_keyboard_controller_init): New function prototype.
  33900. (grub_console_checkkey): Likewise.
  33901. (grub_console_getkey): Likewise.
  33902. * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
  33903. keyboard on i386.
  33904. * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
  33905. grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
  33906. 2008-01-23 Robert Millan <rmh@aybabtu.com>
  33907. * kern/i386/pc/init.c (make_install_device): When memdisk image is
  33908. present, "(memdisk)/boot/grub" becomes the default prefix.
  33909. * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
  33910. a memdisk tarball with all the modules. Add --overlay=DIR option that
  33911. allows users to overlay additional files into the image.
  33912. 2008-01-23 Robert Millan <rmh@aybabtu.com>
  33913. * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
  33914. and `machine/memory.h'.
  33915. (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
  33916. (_multiboot_mod_SOURCES): New variable.
  33917. (_multiboot_mod_CFLAGS): Likewise.
  33918. (_multiboot_mod_LDFLAGS): Likewise.
  33919. (multiboot_mod_SOURCES): Likewise.
  33920. (multiboot_mod_CFLAGS): Likewise.
  33921. (multiboot_mod_LDFLAGS): Likewise.
  33922. * include/grub/i386/ieee1275/loader.h: New file.
  33923. * include/grub/i386/ieee1275/machine.h: Likewise.
  33924. * include/grub/i386/ieee1275/memory.h: Likewise.
  33925. * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
  33926. variable declaration.
  33927. (grub_os_area_size): Likewise.
  33928. * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
  33929. (grub_lower_mem, grub_upper_mem): New variables.
  33930. (grub_stop_floppy): New function (just to make
  33931. grub_multiboot2_real_boot() happy).
  33932. * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
  33933. `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
  33934. (grub_stop): New function.
  33935. Include `"../realmode.S"' and `"../loader.S"'.
  33936. * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
  33937. Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
  33938. * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
  33939. rely on grub_multiboot2_real_boot() for final boot.
  33940. 2008-01-22 Robert Millan <rmh@aybabtu.com>
  33941. * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
  33942. `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
  33943. device that doesn't look like an SD card.
  33944. * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
  33945. `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
  33946. * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
  33947. OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
  33948. found.
  33949. 2008-01-22 Robert Millan <rmh@aybabtu.com>
  33950. * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
  33951. avoid claiming over our own code.
  33952. 2008-01-22 Bean <bean123ch@gmail.com>
  33953. * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
  33954. (jpeg_mod_SOURCES): New variable.
  33955. (jpeg_mod_CFLAGS): Likewise.
  33956. (jpeg_mod_LDFLAGS): Likewise.
  33957. * video/readers/jpeg.c : New file.
  33958. 2008-01-22 Bean <bean123ch@gmail.com>
  33959. * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
  33960. there are no more items.
  33961. 2008-01-21 Robert Millan <rmh@aybabtu.com>
  33962. * kern/mm.c (grub_mm_init_region): Improve debug message.
  33963. 2008-01-21 Robert Millan <rmh@aybabtu.com>
  33964. * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
  33965. (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
  33966. address.
  33967. (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
  33968. a C macro.
  33969. * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
  33970. Indicates start of upper memory.
  33971. * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
  33972. (generate_image): Abort when image size is big enough to corrupt
  33973. upper memory.
  33974. * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
  33975. (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
  33976. * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
  33977. instead of hardcoding 0xA0000.
  33978. * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
  33979. (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
  33980. instead of hardcoding 0xA0000.
  33981. 2008-01-21 Robert Millan <rmh@aybabtu.com>
  33982. * disk/memdisk.c (memdisk_size): New variable.
  33983. (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
  33984. `memdisk_size'.
  33985. (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
  33986. image to dynamic memory.
  33987. (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
  33988. `memdisk_size'. Free memdisk block.
  33989. 2008-01-21 Robert Millan <rmh@aybabtu.com>
  33990. Fix detection of very small filesystems (like tar).
  33991. * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
  33992. contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
  33993. GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
  33994. a problem with this disk).
  33995. 2008-01-21 Robert Millan <rmh@aybabtu.com>
  33996. * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
  33997. on grub_biosdisk_rw_standard() error.
  33998. 2008-01-21 Robert Millan <rmh@aybabtu.com>
  33999. * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
  34000. recent changes.
  34001. * kern/elf.c: Likewise.
  34002. * kern/ieee1275/ieee1275.c: Likewise.
  34003. * kern/powerpc/ieee1275/openfw.c: Likewise.
  34004. * term/ieee1275/ofconsole.c: Likewise.
  34005. 2008-01-21 Robert Millan <rmh@aybabtu.com>
  34006. * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
  34007. * include/grub/kernel.h (grub_arch_memdisk_addr)
  34008. (grub_arch_memdisk_size): Moved from here ...
  34009. * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
  34010. (grub_arch_memdisk_size): ... to here.
  34011. 2008-01-21 Robert Millan <rmh@aybabtu.com>
  34012. Mostly based on bugfix from Bean.
  34013. * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
  34014. attribute with hook() parameter.
  34015. (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
  34016. declaration.
  34017. (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
  34018. attribute with hook() parameter.
  34019. (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
  34020. declaration.
  34021. 2008-01-21 Robert Millan <rmh@aybabtu.com>
  34022. * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
  34023. (pkglib_MODULES): Add `memdisk.mod'.
  34024. (memdisk_mod_SOURCES): New variable.
  34025. (memdisk_mod_CFLAGS): Likewise.
  34026. (memdisk_mod_LDFLAGS): Likewise.
  34027. * disk/memdisk.c: New file.
  34028. * include/grub/disk.h (grub_disk_dev_id): Add
  34029. `GRUB_DISK_DEVICE_MEMDISK_ID'.
  34030. * include/grub/i386/pc/kernel.h
  34031. (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
  34032. (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
  34033. (grub_kernel_image_size): New variable declaration.
  34034. (grub_total_module_size): Likewise.
  34035. (grub_memdisk_image_size): Likewise.
  34036. * include/grub/i386/pc/memory.h
  34037. (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
  34038. * include/grub/kernel.h: Include `<grub/symbol.h>'.
  34039. (grub_arch_memdisk_addr): New variable declaration.
  34040. (grub_arch_memdisk_size): Likewise.
  34041. * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
  34042. (grub_arch_memdisk_size): Likewise.
  34043. * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
  34044. (codestart): Replace hardcoded `0x100000' with
  34045. `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
  34046. * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
  34047. (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
  34048. not NULL, append the contents of the file it refers to, at the end of
  34049. the compressed kernel image. Initialize `grub_memdisk_image_size'
  34050. variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
  34051. (options): Add "memdisk"|'m' option.
  34052. (main): Parse --memdisk|-m option, and pass user-provided path as
  34053. parameter to generate_image().
  34054. 2008-01-20 Robert Millan <rmh@aybabtu.com>
  34055. * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
  34056. grub_dprintf() calls from here ...
  34057. * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
  34058. 2008-01-20 Robert Millan <rmh@aybabtu.com>
  34059. Fix detection of "real mode" when /options/real-mode? doesn't exist.
  34060. * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
  34061. declaration.
  34062. * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
  34063. (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
  34064. `GRUB_IEEE1275_FLAG_REAL_MODE'.
  34065. (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
  34066. property).
  34067. * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
  34068. `grub_ieee1275_mmu' rather than obtaining a handler on every call.
  34069. 2008-01-19 Robert Millan <rmh@aybabtu.com>
  34070. Get rid of confusing function (superseded by
  34071. `grub_ieee1275_get_integer_property')
  34072. * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
  34073. prototype.
  34074. * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
  34075. function.
  34076. * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
  34077. grub_ieee1275_decode_int_4(), by obtaining integer properties directly
  34078. in native endianness from grub_ieee1275_get_integer_property().
  34079. 2008-01-19 Robert Millan <rmh@aybabtu.com>
  34080. * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
  34081. command after "shut-down", since implementations differ on which
  34082. the command for halt is.
  34083. 2008-01-19 Robert Millan <rmh@aybabtu.com>
  34084. * include/grub/i386/linuxbios/console.h: Add header protection.
  34085. (grub_keyboard_controller_init): New function prototype.
  34086. * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
  34087. (KEYBOARD_COMMAND_READ): Likewise.
  34088. (KEYBOARD_COMMAND_WRITE): Likewise.
  34089. (KEYBOARD_SCANCODE_SET1): Likewise.
  34090. (grub_keyboard_controller_write): New function.
  34091. (grub_keyboard_controller_read): Likewise.
  34092. (grub_keyboard_controller_init): Likewise.
  34093. * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
  34094. (grub_console_init): On coreboot/LinuxBIOS, call
  34095. grub_keyboard_controller_init().
  34096. 2008-01-19 Robert Millan <rmh@aybabtu.com>
  34097. PowerPC changes provided by Pavel Roskin.
  34098. * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
  34099. * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
  34100. don't rely on cmain() doing it.
  34101. * kern/i386/ieee1275/startup.S (_start): Store %eax in
  34102. grub_ieee1275_entry_fn, don't rely on cmain() doing it.
  34103. 2008-01-16 Robert Millan <rmh@aybabtu.com>
  34104. * include/grub/i386/linuxbios/memory.h
  34105. (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
  34106. * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
  34107. receive `table_header' as argument. Instead, probe for it in the
  34108. known memory ranges where it can be present.
  34109. (grub_available_iterate): Do not pass a fixed `table_header' address
  34110. to grub_linuxbios_table_iterate().
  34111. 2008-01-15 Robert Millan <rmh@aybabtu.com>
  34112. * configure.ac: Add `i386-ieee1275' to the list of supported targets.
  34113. * conf/i386-ieee1275.rmk: New file.
  34114. * include/grub/i386/ieee1275/console.h: Likewise.
  34115. * include/grub/i386/ieee1275/ieee1275.h: Likewise.
  34116. * include/grub/i386/ieee1275/kernel.h: Likewise.
  34117. * include/grub/i386/ieee1275/time.h: Likewise.
  34118. * kern/i386/ieee1275/init.c: Likewise.
  34119. * kern/i386/ieee1275/startup.S: Likewise.
  34120. 2008-01-15 Robert Millan <rmh@aybabtu.com>
  34121. * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
  34122. when pointers are 32-bit (but still do set it to one when they are
  34123. 64-bit).
  34124. 2008-01-15 Robert Millan <rmh@aybabtu.com>
  34125. * include/grub/ieee1275/ieee1275.h
  34126. (grub_ieee1275_get_integer_property): New function prototype.
  34127. * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
  34128. (grub_ieee1275_get_integer_property): New function. Wraps around
  34129. grub_ieee1275_get_property() to handle endianness.
  34130. * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
  34131. grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
  34132. where appropriate.
  34133. * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
  34134. (grub_map): Likewise.
  34135. * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
  34136. 2008-01-15 Bean <bean123ch@gmail.com>
  34137. * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
  34138. (grub_script_execute_cmdline): Reset grub_errno.
  34139. * normal/main.c (read_config_file): Reset grub_errno.
  34140. * normal/parse.y (script_init): New.
  34141. (script): Move function and menuentry here.
  34142. (delimiter): New.
  34143. (command): Add delimiter at the end of command.
  34144. (commands): Adjust to match the new command.
  34145. (commandblock): Remove grub_script_lexer_record_start.
  34146. (menuentry): Add grub_script_lexer_record_start, use the new commands.
  34147. (if): Use the new commands.
  34148. * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
  34149. 2008-01-15 Robert Millan <rmh@aybabtu.com>
  34150. * normal/menu.c (run_menu): Move timeout message from here ...
  34151. (print_timeout): ... to here.
  34152. (run_menu): Use print_timeout() once during initial draw to print
  34153. the whole message, and again in every clock tick to update only
  34154. the number of seconds.
  34155. 2008-01-15 Robert Millan <rmh@aybabtu.com>
  34156. * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
  34157. actual size of `available' from grub_ieee1275_get_property(), and
  34158. restrict parsing to that bound.
  34159. 2008-01-15 Christian Franke <franke@computer.org>
  34160. * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
  34161. (argp_program_version): Remove variable.
  34162. (argp_program_bug_address): Likewise.
  34163. (options): Convert from struct argp_option to struct option.
  34164. (struct arguments): Remove.
  34165. (parse_opt): Remove.
  34166. (usage): New function.
  34167. (main): Replace struct args members by simple variables.
  34168. Replace argp_parse() by getopt_long().
  34169. Add switch to evaluate options.
  34170. Add missing "(...)" around root_dev in prefix string.
  34171. 2008-01-14 Robert Millan <rmh@aybabtu.com>
  34172. * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
  34173. for grub_ieee1275_exit(), in order to improve portability.
  34174. 2008-01-14 Robert Millan <rmh@aybabtu.com>
  34175. * util/grub.d/10_linux.in (prefix): Define.
  34176. (exec_prefix): Likewise. Both definitions are later used by `libdir'.
  34177. 2008-01-13 Pavel Roskin <proski@gnu.org>
  34178. * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
  34179. grub_errno if no errors have been detected.
  34180. 2008-01-12 Robert Millan <rmh@aybabtu.com>
  34181. * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
  34182. (grub_util_get_dev_abstraction): New function prototype.
  34183. * util/getroot.c: Include `<grub/util/getroot.h>'
  34184. (grub_util_get_grub_dev): Move detection of abstraction type to ...
  34185. (grub_util_get_dev_abstraction): ... here (new function).
  34186. * util/grub-probe.c: Convert PRINT_* to an enum. Add
  34187. `PRINT_ABSTRACTION'.
  34188. (probe): Probe for abstraction type when requested.
  34189. (main): Understand `--target=abstraction'.
  34190. * util/i386/efi/grub-install.in: Add abstraction module to core
  34191. image when it is found to be necessary.
  34192. * util/i386/pc/grub-install.in: Likewise.
  34193. * util/powerpc/ieee1275/grub-install.in: Likewise.
  34194. * util/update-grub_lib.in (font_path): Return system path without
  34195. converting to GRUB path.
  34196. * util/update-grub.in: Convert system path returned by font_path()
  34197. to a GRUB path. Use `grub-probe -t abstraction' to determine what
  34198. abstraction module is needed for loading fonts (if any). Export
  34199. that as `GRUB_PRELOAD_MODULES'.
  34200. * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
  34201. insmod commands).
  34202. 2008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
  34203. Remove some unused code from reiserfs.
  34204. * fs/reiserfs.c (struct grub_reiserfs_key)
  34205. [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
  34206. (struct grub_reiserfs_node_body): Removed.
  34207. (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
  34208. Likewise.
  34209. (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
  34210. Likewise.
  34211. (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
  34212. Likewise.
  34213. (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
  34214. Likewise.
  34215. (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
  34216. Likewise.
  34217. (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
  34218. Likewise.
  34219. (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
  34220. (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
  34221. (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
  34222. 2008-01-10 Robert Millan <rmh@aybabtu.com>
  34223. * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
  34224. Determines if a file is garbage left by packaging systems, etc.
  34225. * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
  34226. for processing /etc/grub.d scripts.
  34227. * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
  34228. * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
  34229. as a condition for processing Linux images.
  34230. 2008-01-10 Pavel Roskin <proski@gnu.org>
  34231. * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
  34232. to compile reiserfs.c on PowerPC.
  34233. 2008-01-10 Robert Millan <rmh@aybabtu.com>
  34234. * kern/device.c (grub_device_iterate): Do not abort device iteration
  34235. when one of the devices cannot be opened.
  34236. * kern/disk.c (grub_disk_open): Do not account previous failures of
  34237. unrelated functions when grub_errno is checked for.
  34238. 2008-01-08 Robert Millan <rmh@aybabtu.com>
  34239. * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
  34240. `! grub_linux_is_bzimage', change order of address comparison to make
  34241. it more intuitive, and improve "too big zImage" error message.
  34242. 2008-01-08 Robert Millan <rmh@aybabtu.com>
  34243. * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
  34244. `$(update-grub_DATA)'.
  34245. (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
  34246. targets.
  34247. 2008-01-07 Robert Millan <rmh@aybabtu.com>
  34248. * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
  34249. which instruction is modified by grub-setup during installation
  34250. (since it wasn't obvious by only looking at this file).
  34251. 2008-01-07 Robert Millan <rmh@aybabtu.com>
  34252. * TODO: Rewrite. Just refer to the wiki and the BTS instead of
  34253. listing actual TODO items.
  34254. 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
  34255. * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
  34256. correctly.
  34257. (grub_reiserfs_get_key_offset): Likewise.
  34258. (grub_reiserfs_set_key_offset): Likewise.
  34259. (grub_reiserfs_set_key_type): Likewise.
  34260. (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
  34261. (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
  34262. better to remove the bitfield version completely.
  34263. 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
  34264. * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
  34265. allocated from the heap, due to the fshelp implementation.
  34266. (grub_reiserfs_dir): Free NODE, due to the same reason.
  34267. 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
  34268. Mostly from Vincent Pelletier:
  34269. * fs/reiserfs.c: New file.
  34270. * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
  34271. (reiserfs_mod_SOURCES): New variable.
  34272. (reiserfs_mod_CFLAGS): Likewise.
  34273. (reiserfs_mod_LDFLAGS): Likewise.
  34274. * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
  34275. disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
  34276. include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
  34277. normal/color.c.
  34278. 2008-01-06 Robert Millan <rmh@aybabtu.com>
  34279. * normal/color.c: Remove `<grub/env.h>'.
  34280. 2008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
  34281. * include/grub/normal.h: Include <grub/env.h>.
  34282. 2008-01-05 Robert Millan <rmh@aybabtu.com>
  34283. * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
  34284. usage example with `(hd0,1)'.
  34285. Reported by Samuel Thibault.
  34286. 2008-01-05 Robert Millan <rmh@aybabtu.com>
  34287. * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
  34288. (grub_linux_boot_zimage): Rename to ...
  34289. (grub_linux_boot): ... this.
  34290. (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
  34291. (grub_linux_boot_zimage): Conditionalize zImage copy.
  34292. * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
  34293. (grub_linux_boot_bzimage): Remove prototype.
  34294. (grub_linux_boot_zimage): Rename to ...
  34295. (grub_linux_boot): ... this.
  34296. * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
  34297. (grub_linux_boot): Remove function.
  34298. 2008-01-05 Robert Millan <rmh@aybabtu.com>
  34299. * include/grub/normal.h (grub_env_write_color_normal): New prototype.
  34300. (grub_env_write_color_highlight): Likewise.
  34301. (grub_wait_after_message): Likewise.
  34302. * normal/color.c: New file.
  34303. * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
  34304. (normal_mod_DEPENDENCIES): Likewise.
  34305. * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
  34306. (normal_mod_DEPENDENCIES): Likewise.
  34307. * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
  34308. (normal_mod_DEPENDENCIES): Likewise.
  34309. * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
  34310. (normal_mod_DEPENDENCIES): Likewise.
  34311. * normal/menu_entry.c (run): Rely on grub_wait_after_message()
  34312. for waiting after a message is printed.
  34313. * normal/main.c (read_config_file): Likewise.
  34314. (grub_normal_init): Register grub_env_write_color_normal() and
  34315. grub_env_write_color_highlight() hooks. Mark `color_normal' and
  34316. `color_highlight' variables as global.
  34317. * normal/menu.c (grub_wait_after_message): New function.
  34318. (grub_color_menu_normal): New variable. Replaces ...
  34319. (GRUB_COLOR_MENU_NORMAL): ... this macro.
  34320. (grub_color_menu_highlight): New variable. Replaces ...
  34321. (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
  34322. (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
  34323. `GRUB_TERM_COLOR_STANDARD'.
  34324. (print_message): Use `grub_setcolorstate' to reload colors. Rename
  34325. `normal_code' and `highlight_code' to `old_color_normal' and
  34326. `old_color_highlight', respectively.
  34327. (grub_menu_init_page): Update colors when drawing the menu, based on
  34328. `menu_color_normal' and `menu_color_highlight' variables.
  34329. (grub_menu_run): Rely on grub_wait_after_message() for waiting after
  34330. a message is printed.
  34331. 2008-01-05 Robert Millan <rmh@aybabtu.com>
  34332. * kern/env.c (grub_env_context_open): Propagate hooks for global
  34333. variables to new context.
  34334. * kern/main.c (grub_set_root_dev): Export `root' variable.
  34335. 2008-01-05 Robert Millan <rmh@aybabtu.com>
  34336. * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
  34337. discs unconditionally, since udev and others have options to provide
  34338. them.
  34339. 2008-01-05 Robert Millan <rmh@aybabtu.com>
  34340. * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
  34341. 2008-01-04 Christian Franke <franke@computer.org>
  34342. * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
  34343. of eisa_mmap.
  34344. 2008-01-03 Pavel Roskin <proski@gnu.org>
  34345. * kern/i386/linuxbios/init.c: Put "void" to all function
  34346. declarations with no arguments.
  34347. * kern/powerpc/ieee1275/init.c: Likewise.
  34348. * term/i386/pc/at_keyboard.c: Likewise.
  34349. * term/i386/pc/vga_text.c: Likewise.
  34350. * util/grub-mkdevicemap.c: Likewise.
  34351. 2008-01-02 Robert Millan <rmh@aybabtu.com>
  34352. * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
  34353. message when loaded image is out of bounds.
  34354. (grub_multiboot_load_elf64): Likewise.
  34355. 2008-01-02 Pavel Roskin <proski@gnu.org>
  34356. * util/grub.d/10_linux.in: Try version without ".old" when
  34357. looking for initrd. It's better to use initrd from the newer
  34358. kernel of the same version than no initrd at all.
  34359. 2008-01-01 Robert Millan <rmh@aybabtu.com>
  34360. * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
  34361. 2008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
  34362. * include/grub/video.h: Added grub_video_unmap_color and
  34363. grub_video_get_active_render_target.
  34364. (grub_video_adapter): Added unmap_color and get_active_render_target.
  34365. * video/video.c: Added grub_video_unmap_color and
  34366. grub_video_get_active_render_target.
  34367. (grub_video_get_info): Changed method to accept NULL pointer as an
  34368. argument to allow detection of active video adapter.
  34369. * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
  34370. grub_video_vbe_unmap_color_int.
  34371. Added grub_video_vbe_unmap_color and
  34372. grub_video_vbe_get_active_render_target.
  34373. (grub_video_vbe_adapter): Added unmap_color and
  34374. get_active_render_target.
  34375. * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
  34376. with grub_video_vbe_unmap_color_int.
  34377. * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
  34378. (DEFAULT_NORMAL_COLOR): Likewise.
  34379. (DEFAULT_HIGHLIGHT_COLOR) Likewise.
  34380. (DEFAULT_FG_COLOR): Removed.
  34381. (DEFAULT_BG_COLOR): Likewise.
  34382. (DEFAULT_CURSOR_COLOR): Changed value.
  34383. (grub_virtual_screen): Added standard_color_setting,
  34384. normal_color_setting, highlight_color_setting and term_color.
  34385. (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
  34386. (bitmap_width): Added.
  34387. (bitmap_height): Likewise.
  34388. (bitmap): Likewise.
  34389. (set_term_color): Likewise.
  34390. (grub_virtual_screen_setup): Changed to use new terminal coloring
  34391. settings.
  34392. (grub_gfxterm_init): Added init for bitmap.
  34393. (grub_gfxterm_fini): Added destroy for bitmap.
  34394. (redraw_screen_rect): Updated to use background bitmap and new
  34395. terminal coloring.
  34396. (scroll_up): Added optimization for case when there is no bitmap.
  34397. (grub_gfxterm_cls): Fixed to use correct background color.
  34398. (grub_virtual_screen_setcolorstate): Changed to use new terminal
  34399. coloring.
  34400. (grub_virtual_screen_setcolor): Likewise.
  34401. (grub_virtual_screen_getcolor): Added.
  34402. (grub_gfxterm_background_image_cmd): Likewise.
  34403. (grub_video_term): Added setcolor and getcolor.
  34404. (MOD_INIT): Added registration of background_image command.
  34405. (MOD_TERM): Added unregistration for background_image command.
  34406. 2007-12-30 Pavel Roskin <proski@gnu.org>
  34407. * loader/multiboot_loader.c: Fix multiboot command
  34408. unregistration. Fix all typos in the word "multiboot".
  34409. 2007-12-29 Pavel Roskin <proski@gnu.org>
  34410. * util/grub.d/10_linux.in: Refactor search for initrd. Add
  34411. support for initrd names used in Fedora.
  34412. 2007-12-26 Bean <bean123ch@gmail.com>
  34413. * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
  34414. (cpio_mod_SOURCES): New variable.
  34415. (cpio_mod_CFLAGS): Likewise.
  34416. (cpio_mod_LDFLAGS): Likewise.
  34417. * fs/cpio.c: New file.
  34418. * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
  34419. * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
  34420. * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
  34421. * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
  34422. 2007-12-25 Robert Millan <rmh@aybabtu.com>
  34423. * include/grub/term.h (struct grub_term): Add `getcolor' function.
  34424. (grub_getcolor): New function.
  34425. * kern/term.c (grub_getcolor): New function.
  34426. * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
  34427. (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
  34428. (print_entry): Set normal and highlight colors to
  34429. `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
  34430. respectively, before printing and restore them to old
  34431. values afterwards.
  34432. (grub_menu_init_page): Likewise. Fill an additional colored space
  34433. that would otherwise be left blank.
  34434. * term/efi/console.c (grub_console_getcolor): New function.
  34435. (struct grub_console_term.getcolor): New variable.
  34436. * term/i386/pc/console.c (grub_console_getcolor): New function.
  34437. (struct grub_console_term.getcolor): New variable.
  34438. * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
  34439. (struct grub_console_term.getcolor): New variable.
  34440. * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
  34441. (struct grub_console_term.setcolor): Remove variable.
  34442. * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
  34443. (struct grub_console_term.setcolor): Remove variable.
  34444. * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
  34445. (struct grub_console_term.setcolor): Remove variable.
  34446. * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
  34447. (struct grub_console_term.setcolor): Remove variable.
  34448. 2007-12-25 Robert Millan <rmh@aybabtu.com>
  34449. * configure.ac: Search for possible unifont.hex locations, and
  34450. define UNIFONT_HEX if found.
  34451. * Makefile.in (UNIFONT_HEX): Define variable.
  34452. (DATA): Rename to ...
  34453. (PKGLIB): ... this. Update all users.
  34454. (PKGDATA): New variable.
  34455. (pkgdata_IMAGES): Rename to ...
  34456. (pkglib_IMAGES): ... this. Update all users.
  34457. (pkgdata_MODULES): Rename to ...
  34458. (pkglib_MODULES): ... this. Update all users.
  34459. (pkgdata_PROGRAMS): Rename to ...
  34460. (pkglib_PROGRAMS): ... this. Update all users.
  34461. (pkgdata_DATA): Rename to ...
  34462. (pkglib_DATA): ... this. Update all users.
  34463. (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
  34464. (unicode.pff, ascii.pff): New rules.
  34465. (all-local): Add `$(PKGDATA)' dependency.
  34466. (install-local): Process `$(PKGDATA)'.
  34467. * util/update-grub_lib.in (font_path): Search for *.pff files in
  34468. a few more locations, including `${pkgdata}'.
  34469. 2007-12-23 Robert Millan <rmh@aybabtu.com>
  34470. Patch from Bean <bean123ch@gmail.com>:
  34471. * disk/loopback.c (grub_loopback_read): Add missing bit shift to
  34472. `size'.
  34473. 2007-12-21 Bean <bean123ch@gmail.com>
  34474. * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
  34475. (ntfscomp_mod_SOURCES): New variable.
  34476. (ntfscomp_mod_CFLAGS): Likewise.
  34477. (ntfscomp_mod_LDFLAGS): Likewise.
  34478. * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
  34479. (grub_probe_SOURCES): Likewise.
  34480. (grub_emu_SOURCES): Likewise.
  34481. * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
  34482. (grub_emu_SOURCES): Likewise.
  34483. * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
  34484. (grub_emu_SOURCES): Likewise.
  34485. * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
  34486. (grub_emu_SOURCES): Likewise.
  34487. * fs/ntfs.c (grub_ntfscomp_func): New variable.
  34488. (read_run_list): Renamed to grub_ntfs_read_run_list.
  34489. (decomp_nextvcn): Moved to ntfscomp.c.
  34490. (decomp_getch): Likewise.
  34491. (decomp_get16): Likewise.
  34492. (decomp_block): Likewise.
  34493. (read_block): Likewise.
  34494. (read_data): Partially moved to ntfscomp.c.
  34495. (fixup): Change unsigned to grub_uint16_t.
  34496. (read_mft): Change unsigned long to grub_uint32_t.
  34497. (read_attr): Likewise.
  34498. (read_data): Likewise.
  34499. (read_run_data): Likewise.
  34500. (read_run_list): Likewise.
  34501. (read_mft): Likewise.
  34502. * fs/ntfscomp.c: New file.
  34503. * include/grub/ntfs.h: New file.
  34504. 2007-12-16 Robert Millan <rmh@aybabtu.com>
  34505. * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
  34506. IDE disk check, since Linux is known to support 20 IDE disks.
  34507. Reported by Colin Watson.
  34508. 2007-12-15 Bean <bean123ch@gmail.com>
  34509. * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
  34510. (lnxboot_img_SOURCES): New variable.
  34511. (lnxboot_img_ASFLAGS): Likewise.
  34512. (lnxboot_img_LDFLAGS): Likewise.
  34513. * boot/i386/pc/lnxboot.S: New file.
  34514. 2007-11-24 Pavel Roskin <proski@gnu.org>
  34515. * configure.ac: Test if '--build-id=none' is supported by the
  34516. linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
  34517. objcopy to generate incorrect binary files (binutils
  34518. 2.17.50.0.18-1 as shipped by Fedora 8).
  34519. * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
  34520. linking, so that build ID doesn't break the test.
  34521. 2007-11-24 Pavel Roskin <proski@gnu.org>
  34522. * include/grub/i386/time.h: use "void" in the argument list
  34523. of grub_cpu_idle().
  34524. * include/grub/powerpc/time.h: Likewise.
  34525. * include/grub/sparc64/time.h: Likewise.
  34526. 2007-11-18 Christian Franke <franke@computer.org>
  34527. * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
  34528. now return control chars instead of GRUB_CONSOLE_KEY_* constants.
  34529. This fixes the problem that function keys did not work in grub-emu.
  34530. 2007-11-18 Christian Franke <franke@computer.org>
  34531. * disk/host.c (grub_host_open): Remove attribute unused from
  34532. name parameter. Add check for "host". This fixes the problem
  34533. that grub-emu does not find partitions.
  34534. 2007-11-18 Christian Franke <franke@computer.org>
  34535. * util/hostfs.c (is_dir): New function.
  34536. (grub_hostfs_dir): Handle missing dirent.d_type case.
  34537. (grub_hostfs_read): Add missing fseek().
  34538. (grub_hostfs_label): Clear label pointer. This fixes a crash
  34539. of grub-emu on "ls (host)".
  34540. 2007-11-18 Christian Franke <franke@computer.org>
  34541. * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
  34542. Add attribute packed, gcc 3.4.4 on Cygwin aligns this
  34543. to 64 bit boundary by default.
  34544. 2007-11-18 Bean <bean123ch@gmail.com>
  34545. * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
  34546. (hexdump_mod_SOURCES): New variable.
  34547. (hexdump_mod_CFLAGS): Likewise.
  34548. (hexdump_mod_LDFLAGS): Likewise.
  34549. * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
  34550. * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
  34551. * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
  34552. * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
  34553. * include/grub/hexdump.h: New file.
  34554. * commands/hexdump.c: New file.
  34555. 2007-11-10 Robert Millan <rmh@aybabtu.com>
  34556. * commands/i386/pc/play.c (beep_off): Switch order of arguments
  34557. in grub_outb() calls.
  34558. (beep_on): Likewise.
  34559. 2007-11-10 Christian Franke <franke@computer.org>
  34560. * normal/menu.c (run_menu): Check for empty menu to avoid crash.
  34561. (grub_menu_run): Likewise.
  34562. 2007-11-10 Robert Millan <rmh@aybabtu.com>
  34563. * include/grub/i386/efi/machine.h: New file.
  34564. * include/grub/i386/linuxbios/machine.h: Likewise.
  34565. * include/grub/i386/pc/machine.h: Likewise.
  34566. * include/grub/powerpc/ieee1275/machine.h: Likewise.
  34567. * include/grub/sparc64/ieee1275/machine.h: Likewise.
  34568. * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
  34569. (serial_hw_io_addr): New variable.
  34570. (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
  34571. instead of `(unsigned short *) 0x400'.
  34572. 2007-11-10 Bean <bean123ch@gmail.com>
  34573. * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
  34574. 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
  34575. * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
  34576. (vga_mod_SOURCES): Added.
  34577. (vga_mod_CFLAGS): Likewise.
  34578. (vga_mod_LDFLAGS): Likewise.
  34579. * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
  34580. grub_outb() calls.
  34581. (set_map_mask): Likewise.
  34582. (set_read_map): Likewise.
  34583. (set_read_address): Likewise.
  34584. (vga_font): Removed variable.
  34585. (get_vga_glyph): Removed function.
  34586. (invalidate_char): Likewise.
  34587. (write_char): Changed to use grub_font_get_glyph() for font
  34588. information.
  34589. (grub_vga_putchar): Likewise.
  34590. (grub_vga_getcharwidth): Likewise.
  34591. 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
  34592. * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
  34593. flags.
  34594. (pxeboot_img_LDFLAGS): Likewise.
  34595. (diskboot_img_LDFLAGS): Likewise.
  34596. (kernel_img_LDFLAGS): Likewise.
  34597. 2007-11-06 Robert Millan <rmh@aybabtu.com>
  34598. * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
  34599. in grub_outb() calls.
  34600. (serial_hw_init): Likewise.
  34601. 2007-11-05 Robert Millan <rmh@aybabtu.com>
  34602. * util/update-grub.in: Allow files in ${update_grub_dir} to contain
  34603. spaces. Skip non-regular files.
  34604. 2007-11-05 Robert Millan <rmh@aybabtu.com>
  34605. * kern/disk.c (grub_disk_firmware_fini)
  34606. (grub_disk_firmware_is_tainted): New variables.
  34607. * include/grub/disk.h (grub_disk_firmware_fini)
  34608. (grub_disk_firmware_is_tainted): Likewise.
  34609. * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
  34610. (grub_disk_biosdisk_fini): ... to here.
  34611. (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
  34612. (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
  34613. is set. Register grub_disk_biosdisk_fini() in
  34614. `grub_disk_firmware_fini'.
  34615. * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
  34616. (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
  34617. Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
  34618. to finish existing firmware disk interface.
  34619. * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
  34620. (ata_mod_SOURCES): New variable.
  34621. (ata_mod_CFLAGS): Likewise.
  34622. (ata_mod_LDFLAGS): Likewise.
  34623. 2007-11-05 Robert Millan <rmh@aybabtu.com>
  34624. * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
  34625. (grub_ata_wait): Reimplement using grub_millisleep().
  34626. * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
  34627. * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
  34628. 2007-11-03 Marco Gerards <marco@gnu.org>
  34629. * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
  34630. (CRTC_ADDR_PORT): New macro.
  34631. (CRTC_DATA_PORT): Likewise.
  34632. (CRTC_CURSOR): Likewise.
  34633. (CRTC_CURSOR_ADDR_HIGH): Likewise.
  34634. (CRTC_CURSOR_ADDR_LOW): Likewise.
  34635. (update_cursor): New function.
  34636. (grub_console_real_putchar): Call `update_cursor'.
  34637. (grub_console_gotoxy): Likewise.
  34638. (grub_console_cls): Set the default color when clearing the
  34639. screen.
  34640. (grub_console_setcursor): Implemented.
  34641. 2007-11-03 Marco Gerards <marco@gnu.org>
  34642. * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
  34643. become activate.
  34644. (grub_ata_pio_write): Likewise.
  34645. (grub_atapi_identify): Wait after issuing an ATA command.
  34646. (grub_atapi_packet): Likewise.
  34647. (grub_ata_identify): Likewise.
  34648. (grub_ata_readwrite): Likewise.
  34649. 2007-11-03 Marco Gerards <marco@gnu.org>
  34650. * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
  34651. (grub_ata_pio_write): Likewise.
  34652. (grub_ata_readwrite): Use `grub_error', instead of
  34653. returning `grub_errno'.
  34654. 2007-11-03 Marco Gerards <marco@gnu.org>
  34655. * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
  34656. grub_ata_pio_write once for every single sector, instead of for
  34657. multiple sectors.
  34658. 2007-10-31 Robert Millan <rmh@aybabtu.com>
  34659. * configure.ac: Add `i386-linuxbios' to the list of supported targets.
  34660. * conf/i386-linuxbios.rmk: New file.
  34661. * kern/i386/pc/hardware.c: Likewise.
  34662. * term/i386/pc/at_keyboard.c: Likewise.
  34663. * term/i386/pc/vga_text.c: Likewise.
  34664. * include/grub/i386/linuxbios/boot.h: Likewise.
  34665. * include/grub/i386/linuxbios/console.h: Likewise.
  34666. * include/grub/i386/linuxbios/init.h: Likewise.
  34667. * include/grub/i386/linuxbios/kernel.h: Likewise.
  34668. * include/grub/i386/linuxbios/loader.h: Likewise.
  34669. * include/grub/i386/linuxbios/memory.h: Likewise.
  34670. * include/grub/i386/linuxbios/serial.h: Likewise.
  34671. * include/grub/i386/linuxbios/time.h: Likewise.
  34672. * kern/i386/linuxbios/init.c: Likewise.
  34673. * kern/i386/linuxbios/startup.S: Likewise.
  34674. * kern/i386/linuxbios/table.c: Likewise.
  34675. 2007-10-31 Marco Gerards <marco@gnu.org>
  34676. * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
  34677. (ata_mod_SOURCES): New variable.
  34678. (ata_mod_CFLAGS): Likewise.
  34679. (ata_mod_LDFLAGS): Likewise.
  34680. * disk/ata.c: New file.
  34681. * include/grub/disk.h (grub_disk_dev_id): Add
  34682. `GRUB_DISK_DEV_ATA_ID'.
  34683. 2007-10-31 Robert Millan <rmh@aybabtu.com>
  34684. * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
  34685. * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
  34686. * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
  34687. * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
  34688. * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
  34689. `<grub/types.h>'.
  34690. * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
  34691. 2007-10-27 Robert Millan <rmh@aybabtu.com>
  34692. * include/grub/types.h (ULONG_MAX): Define macro.
  34693. 2007-10-22 Robert Millan <rmh@aybabtu.com>
  34694. * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
  34695. `"../realmode.S"'.
  34696. Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
  34697. 2007-10-22 Robert Millan <rmh@aybabtu.com>
  34698. * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
  34699. (pkgdata_MODULES): Add `biosdisk.mod'.
  34700. (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
  34701. variables.
  34702. * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
  34703. (grub_biosdisk_init): Replace with ...
  34704. (GRUB_MOD_INIT(biosdisk)): ... this.
  34705. (grub_biosdisk_fini): Replace with ...
  34706. (GRUB_MOD_FINI(biosdisk)): ... this.
  34707. * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
  34708. (grub_machine_init): Remove call to grub_biosdisk_init().
  34709. (grub_machine_fini): Remove call to grub_machine_fini().
  34710. * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
  34711. 2007-10-22 Robert Millan <rmh@aybabtu.com>
  34712. * include/grub/time.h: New file.
  34713. * include/grub/i386/time.h: Likewise.
  34714. * include/grub/powerpc/time.h: Likewise.
  34715. * include/grub/sparc64/time.h: Likewise.
  34716. * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
  34717. instances to ...
  34718. (KERNEL_MACHINE_TIME_HEADER): ... this.
  34719. * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
  34720. instances to ...
  34721. (KERNEL_MACHINE_TIME_HEADER): ... this.
  34722. * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
  34723. instances to ...
  34724. (KERNEL_MACHINE_TIME_HEADER): ... this.
  34725. * kern/i386/efi/init.c: Include `<grub/time.h>'.
  34726. (grub_millisleep): New function.
  34727. * kern/i386/pc/init.c: Include `<grub/time.h>'.
  34728. (grub_millisleep): New function.
  34729. * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
  34730. Remove `grub/machine/time.h' include.
  34731. (grub_millisleep): New function.
  34732. * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
  34733. Remove `grub/machine/time.h' include.
  34734. (grub_millisleep): New function.
  34735. * include/grub/misc.h (grub_div_roundup): New function.
  34736. * kern/misc.c: Include `<grub/time.h>'.
  34737. (grub_millisleep_generic): New function.
  34738. * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
  34739. Add `time.h'.
  34740. * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
  34741. Add `time.h'.
  34742. * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
  34743. `machine/time.h'. Add `time.h'.
  34744. * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
  34745. 2007-10-21 Robert Millan <rmh@aybabtu.com>
  34746. * include/grub/misc.h (grub_max): New function.
  34747. 2007-10-21 Robert Millan <rmh@aybabtu.com>
  34748. * util/misc.c (grub_util_info): Call fflush() before returning.
  34749. 2007-10-20 Robert Millan <rmh@aybabtu.com>
  34750. * genmk.rb (Image): Copy `extra_flags' from here ...
  34751. (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
  34752. * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
  34753. to `argc' and `args' arguments.
  34754. 2007-10-17 Robert Millan <rmh@aybabtu.com>
  34755. * kern/i386/loader.S: New file.
  34756. * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
  34757. * kern/i386/loader.S (grub_linux_prot_size)... to here.
  34758. * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
  34759. * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
  34760. * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
  34761. * kern/i386/loader.S (grub_linux_real_addr)... to here.
  34762. * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
  34763. * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
  34764. * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
  34765. * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
  34766. * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
  34767. * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
  34768. * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
  34769. * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
  34770. * kern/i386/realmode.S: New file.
  34771. * kern/i386/pc/startup.S (protstack): Moved from here ...
  34772. * kern/i386/realmode.S (protstack)... to here.
  34773. * kern/i386/pc/startup.S (gdt): Moved from here ...
  34774. * kern/i386/realmode.S (gdt)... to here.
  34775. * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
  34776. * kern/i386/realmode.S (prot_to_real)... to here.
  34777. * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
  34778. `kern/i386/realmode.S'.
  34779. 2007-10-17 Robert Millan <rmh@aybabtu.com>
  34780. * include/grub/i386/loader.h: New file.
  34781. * include/grub/i386/pc/loader.h (grub_linux_prot_size)
  34782. (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
  34783. (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
  34784. (grub_multiboot_real_boot, grub_multiboot2_real_boot)
  34785. (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
  34786. * include/grub/i386/loader.h (grub_linux_prot_size)
  34787. (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
  34788. (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
  34789. (grub_multiboot_real_boot, grub_multiboot2_real_boot)
  34790. (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
  34791. * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
  34792. 2007-10-15 Robert Millan <rmh@aybabtu.com>
  34793. * normal/misc.c (grub_normal_print_device_info): Do not probe for
  34794. filesystem when dev->disk is unset.
  34795. Do probe for filesystem even when dev->disk->has_partitions is set.
  34796. In case a filesystem is found, always report it.
  34797. In case it isn't, if dev->disk->has_partitions is set, report that
  34798. a partition table was found instead of reporting that no filesystem
  34799. could be identified.
  34800. 2007-10-12 Robert Millan <rmh@aybabtu.com>
  34801. * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
  34802. to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
  34803. * include/grub/types.h (grub_host_to_target16): New macro.
  34804. (grub_host_to_target32): Likewise.
  34805. (grub_host_to_target64): Likewise.
  34806. (grub_target_to_host16): Likewise.
  34807. (grub_target_to_host32): Likewise.
  34808. (grub_target_to_host64): Likewise.
  34809. * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
  34810. Renamed from to ...
  34811. (GRUB_MOD_ALIGN): ...this. Update all users.
  34812. * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
  34813. grub_host_to_target32.
  34814. Replace grub_be_to_cpu32 with grub_target_to_host32.
  34815. (load_modules): Likewise.
  34816. (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
  34817. Replace grub_be_to_cpu32 with grub_target_to_host32.
  34818. Replace grub_cpu_to_be16 with grub_host_to_target16.
  34819. Replace grub_cpu_to_be32 grub_host_to_target32.
  34820. 2007-10-12 Robert Millan <rmh@aybabtu.com>
  34821. * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
  34822. * util/elf/grub-mkimage.c: ... here.
  34823. * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
  34824. `util/powerpc/ieee1275/grub-mkimage.c'.
  34825. 2007-10-07 Robert Millan <rmh@aybabtu.com>
  34826. * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
  34827. and make it easier to figure out.
  34828. Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
  34829. (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
  34830. Do not avoid claiming a region above HEAP_MAX_ADDR if that would
  34831. leave us with less than HEAP_MIN_SIZE total heap.
  34832. Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
  34833. 2007-10-03 Robert Millan <rmh@aybabtu.com>
  34834. * include/grub/i386/io.h: New file.
  34835. * commands/i386/pc/play.c (inb): Removed.
  34836. (outb): Removed.
  34837. Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
  34838. with grub_outb().
  34839. * term/i386/pc/serial.c (inb): Removed.
  34840. (outb): Removed.
  34841. Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
  34842. with grub_outb().
  34843. * term/i386/pc/vga.c (inb): Removed.
  34844. (outb): Removed.
  34845. Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
  34846. with grub_outb().
  34847. 2007-10-02 Robert Millan <rmh@aybabtu.com>
  34848. * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
  34849. * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
  34850. Reported by Marcin Kurek.
  34851. 2007-09-07 Robert Millan <rmh@aybabtu.com>
  34852. * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
  34853. SmartFirmware version updates (as released by Sven Luther), and avoid
  34854. setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
  34855. GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
  34856. known broken.
  34857. 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
  34858. From Hitoshi Ozeki:
  34859. * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
  34860. when merging two regions.
  34861. 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
  34862. * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
  34863. * normal/completion.c (grub_normal_do_completion): Likewise.
  34864. Reported by Hitoshi Ozeki.
  34865. 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
  34866. Do not use devices at boot in chainloading.
  34867. * loader/i386/pc/chainloader.c (boot_drive): New variable.
  34868. (boot_part_addr): Likewise.
  34869. (grub_chainloader_boot): Simply call grub_chainloader_real_boot
  34870. with BOOT_DRIVE and BOOT_PART_ADDR.
  34871. (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
  34872. Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
  34873. 2007-08-29 Robert Millan <rmh@aybabtu.com>
  34874. Patch from Simon Peter <dn.tlp@gmx.net>:
  34875. * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
  34876. * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
  34877. util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
  34878. util/i386/pc/grub-setup.c_DEPENDENCIES.
  34879. * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
  34880. util/grub-probe.c_DEPENDENCIES.
  34881. * conf/powerpc-ieee1275.rmk: Likewise.
  34882. 2007-08-28 Robert Millan <rmh@aybabtu.com>
  34883. * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
  34884. to tell grub-mkdevicemap how to name devices.
  34885. * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
  34886. feature).
  34887. * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
  34888. util/i386/get_disk_name.c.
  34889. * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
  34890. * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
  34891. util/ieee1275/get_disk_name.c.
  34892. * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
  34893. * DISTLIST: Add util/i386/get_disk_name.c and
  34894. util/ieee1275/get_disk_name.c.
  34895. * util/grub-mkdevicemap.c: Replace device naming logic with
  34896. grub_util_get_disk_name() calls.
  34897. 2007-08-20 Robert Millan <rmh@aybabtu.com>
  34898. * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
  34899. (so that it works for both plural and singular quantities).
  34900. 2007-08-05 Robert Millan <rmh@aybabtu.com>
  34901. * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
  34902. so that [xz] isn't taken into account when determining order.
  34903. 2007-08-02 Marco Gerards <marco@gnu.org>
  34904. * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
  34905. `include/multiboot2.h', `include/grub/elfload.h',
  34906. `include/multiboot.h', `include/grub/multiboot.h',
  34907. `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
  34908. `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
  34909. `kern/elf.c', `loader/multiboot_loader.c',
  34910. `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
  34911. `loader/i386/pc/multiboot2.c',
  34912. `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
  34913. `util/i386/pc/grub-mkrescue.in'. Remove
  34914. `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
  34915. `include/grub/i386/pc/util/biosdisk.h' and
  34916. `include/grub/powerpc/ieee1275/multiboot.h'.
  34917. 2007-08-02 Bean <bean123ch@gmail.com>
  34918. * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
  34919. (ntfs_mod_SOURCES): New variable.
  34920. (ntfs_mod_CFLAGS): Likewise.
  34921. (ntfs_mod_LDFLAGS): Likewise.
  34922. * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
  34923. (grub_probe_SOURCES): Likewise.
  34924. (grub_emu_SOURCES): Likewise.
  34925. * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
  34926. (grub_emu_SOURCES): Likewise.
  34927. * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
  34928. (grub_emu_SOURCES): Likewise.
  34929. * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
  34930. * fs/ntfs.c: New file.
  34931. 2007-08-02 Bean <bean123ch@gmail.com>
  34932. * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
  34933. * file.h (grub_file): Likewise.
  34934. * fshelp.h (grub_fshelp_read_file): Likewise.
  34935. * util/i386/pc/grub-setup.c (setup): Likewise.
  34936. (save_first_sector): Likewise.
  34937. (save_blocklists): Likewise.
  34938. * fs/affs.c (grub_affs_read_file): Likewise.
  34939. * fs/ext2.c (grub_ext2_read_file): Likewise.
  34940. * fs/fat.c (grub_fat_read_data): Likewise.
  34941. * fs/fshelp.c (grub_fshelp_read_file): Likewise.
  34942. * fs/hfs.c (grub_hfs_read_file): Likewise.
  34943. * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
  34944. * fs/jfs.c (grub_jfs_read_file): Likewise.
  34945. * fs/minix.c (grub_minix_read_file): Likewise.
  34946. * fs/sfs.c (grub_sfs_read_file): Likewise.
  34947. * fs/ufs.c (grub_ufs_read_file): Likewise.
  34948. * fs/xfs.c (grub_xfs_read_file): Likewise.
  34949. * command/blocklist.c (read_blocklist): Likewise.
  34950. (print_blocklist): Likewise.
  34951. 2007-08-02 Marco Gerards <marco@gnu.org>
  34952. * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
  34953. `util/hostfs.c'.
  34954. * disk/host.c: New file.
  34955. * util/hostfs.c: Likewise.
  34956. * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
  34957. return `GRUB_ERR_BAD_FS'.
  34958. * fs/sfs.c (grub_sfs_mount): Likewise.
  34959. * fs/xfs.c (grub_xfs_mount): Likewise.
  34960. * include/grub/disk.h (enum grub_disk_dev_id): Add
  34961. `GRUB_DISK_DEVICE_HOST_ID'.
  34962. * util/grub-emu.c (main): Initialize and de-initialize hostfs.
  34963. 2007-07-24 Jerone Young <jerone@gmail.com>
  34964. * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
  34965. modules for compilation.
  34966. * conf/powerpc-ieee1275.rmk: Likewise.
  34967. * include/multiboot.h: Move multiboot definitions to one file. Rename
  34968. many definitions to not get grub specific.
  34969. * include/multiboot2.h: Create header with multiboot 2 definitions.
  34970. * include/grub/multiboot.h: Header for grub specific function
  34971. prototypes and definitions.
  34972. * include/grub/multiboot2.h: Likewise.
  34973. * include/grub/multiboot_loader.h: Likewise.
  34974. * include/grub/i386/pc/multiboot.h: Removed.
  34975. * include/grub/powerpc/ieee1275/multiboot.h: Removed.
  34976. * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
  34977. and 2 to allow for one multiboot and module commands.
  34978. * loader/multiboot2.c: Add multiboot2 functionality.
  34979. * loader/i386/pc/multiboot.c: Modify for new multiboot header location
  34980. and definition names.
  34981. * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
  34982. 2 functions.
  34983. * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
  34984. ieee1275 specific multiboot2 code.
  34985. * kern/i386/pc/startup.S: Change headers and definition names for
  34986. multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
  34987. 2007-07-22 Robert Millan <rmh@aybabtu.com>
  34988. * geninitheader.sh: Process file specified in first parameter rather
  34989. than hardcoding grub_modules_init.lst.
  34990. * geninit.sh: Likewise. Also, construct header name dynamically rather
  34991. than hardcoding grub_modules_init.h.
  34992. * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
  34993. grub-emu to grub_emu_init.[ch]. Add rules to build analogous
  34994. grub_probe_init.[ch] and grub_setup_init.[ch].
  34995. * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
  34996. grub_modules_init.h with grub_emu_init.h.
  34997. (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
  34998. grub_probe_init.[ch] files.
  34999. * conf/i386-efi.rmk: Likewise.
  35000. * conf/i386-pc.rmk: Likewise.
  35001. (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
  35002. grub_setup_init.[ch] files.
  35003. * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
  35004. * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
  35005. to initialize modules rather than a list of hardcoded functions.
  35006. * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
  35007. grub_init_all() to initialize modules rather than a list of hardcoded
  35008. functions.
  35009. 2007-07-22 Robert Millan <rmh@aybabtu.com>
  35010. * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
  35011. GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
  35012. 2007-07-22 Robert Millan <rmh@aybabtu.com>
  35013. * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
  35014. GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
  35015. * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
  35016. flag when running on SmartFirmware.
  35017. * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
  35018. "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
  35019. was set.
  35020. * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
  35021. Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
  35022. rather than decreasing it.
  35023. * util/i386/pc/grub-setup.c (setup): When embedding is required, but
  35024. there's not enough space to do it, fail in the same way as when it
  35025. can't be done because there are no partitions.
  35026. * util/powerpc/ieee1275/grub-install.in: Improve error message shown
  35027. when nvsetenv failed.
  35028. 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
  35029. * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
  35030. because this rule is automatically generated.
  35031. (grub-mkrescue): Removed for the same reason as above.
  35032. 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
  35033. Migrate to GNU General Public License Version 3.
  35034. * COPYING: Replaced with the plain text version of GPLv3.
  35035. * config.guess: Updated from gnulib.
  35036. * config.sub: Likewise.
  35037. * geninit.sh: Output a GPLv3 copyright notice.
  35038. * geninitheader.sh: Likewise.
  35039. * genmodsrc.sh: Likewise.
  35040. * gensymlist.sh.in: Likewise.
  35041. * boot/i386/pc/boot.S: Upgraded to GPLv3.
  35042. * boot/i386/pc/diskboot.S: Likewise.
  35043. * boot/i386/pc/pxeboot.S: Likewise.
  35044. * commands/blocklist.c: Likewise.
  35045. * commands/boot.c: Likewise.
  35046. * commands/cat.c: Likewise.
  35047. * commands/cmp.c: Likewise.
  35048. * commands/configfile.c: Likewise.
  35049. * commands/echo.c: Likewise.
  35050. * commands/help.c: Likewise.
  35051. * commands/ls.c: Likewise.
  35052. * commands/search.c: Likewise.
  35053. * commands/terminal.c: Likewise.
  35054. * commands/test.c: Likewise.
  35055. * commands/videotest.c: Likewise.
  35056. * commands/i386/cpuid.c: Likewise.
  35057. * commands/i386/pc/halt.c: Likewise.
  35058. * commands/i386/pc/play.c: Likewise.
  35059. * commands/i386/pc/reboot.c: Likewise.
  35060. * commands/i386/pc/vbeinfo.c: Likewise.
  35061. * commands/i386/pc/vbetest.c: Likewise.
  35062. * commands/ieee1275/halt.c: Likewise.
  35063. * commands/ieee1275/reboot.c: Likewise.
  35064. * commands/ieee1275/suspend.c: Likewise.
  35065. * disk/loopback.c: Likewise.
  35066. * disk/lvm.c: Likewise.
  35067. * disk/raid.c: Likewise.
  35068. * disk/efi/efidisk.c: Likewise.
  35069. * disk/i386/pc/biosdisk.c: Likewise.
  35070. * disk/ieee1275/ofdisk.c: Likewise.
  35071. * font/manager.c: Likewise.
  35072. * fs/affs.c: Likewise.
  35073. * fs/ext2.c: Likewise.
  35074. * fs/fat.c: Likewise.
  35075. * fs/fshelp.c: Likewise.
  35076. * fs/hfs.c: Likewise.
  35077. * fs/hfsplus.c: Likewise.
  35078. * fs/iso9660.c: Likewise.
  35079. * fs/jfs.c: Likewise.
  35080. * fs/minix.c: Likewise.
  35081. * fs/sfs.c: Likewise.
  35082. * fs/ufs.c: Likewise.
  35083. * fs/xfs.c: Likewise.
  35084. * hello/hello.c: Likewise.
  35085. * include/grub/acorn_filecore.h: Likewise.
  35086. * include/grub/arg.h: Likewise.
  35087. * include/grub/bitmap.h: Likewise.
  35088. * include/grub/boot.h: Likewise.
  35089. * include/grub/cache.h: Likewise.
  35090. * include/grub/device.h: Likewise.
  35091. * include/grub/disk.h: Likewise.
  35092. * include/grub/dl.h: Likewise.
  35093. * include/grub/elfload.h: Likewise.
  35094. * include/grub/env.h: Likewise.
  35095. * include/grub/err.h: Likewise.
  35096. * include/grub/file.h: Likewise.
  35097. * include/grub/font.h: Likewise.
  35098. * include/grub/fs.h: Likewise.
  35099. * include/grub/fshelp.h: Likewise.
  35100. * include/grub/gzio.h: Likewise.
  35101. * include/grub/hfs.h: Likewise.
  35102. * include/grub/kernel.h: Likewise.
  35103. * include/grub/loader.h: Likewise.
  35104. * include/grub/lvm.h: Likewise.
  35105. * include/grub/misc.h: Likewise.
  35106. * include/grub/mm.h: Likewise.
  35107. * include/grub/net.h: Likewise.
  35108. * include/grub/normal.h: Likewise.
  35109. * include/grub/parser.h: Likewise.
  35110. * include/grub/partition.h: Likewise.
  35111. * include/grub/pc_partition.h: Likewise.
  35112. * include/grub/raid.h: Likewise.
  35113. * include/grub/rescue.h: Likewise.
  35114. * include/grub/script.h: Likewise.
  35115. * include/grub/setjmp.h: Likewise.
  35116. * include/grub/symbol.h: Likewise.
  35117. * include/grub/term.h: Likewise.
  35118. * include/grub/terminfo.h: Likewise.
  35119. * include/grub/tparm.h: Likewise.
  35120. * include/grub/types.h: Likewise.
  35121. * include/grub/video.h: Likewise.
  35122. * include/grub/efi/api.h: Likewise.
  35123. * include/grub/efi/chainloader.h: Likewise.
  35124. * include/grub/efi/console.h: Likewise.
  35125. * include/grub/efi/console_control.h: Likewise.
  35126. * include/grub/efi/disk.h: Likewise.
  35127. * include/grub/efi/efi.h: Likewise.
  35128. * include/grub/efi/pe32.h: Likewise.
  35129. * include/grub/efi/time.h: Likewise.
  35130. * include/grub/i386/linux.h: Likewise.
  35131. * include/grub/i386/setjmp.h: Likewise.
  35132. * include/grub/i386/types.h: Likewise.
  35133. * include/grub/i386/efi/kernel.h: Likewise.
  35134. * include/grub/i386/efi/loader.h: Likewise.
  35135. * include/grub/i386/efi/time.h: Likewise.
  35136. * include/grub/i386/pc/biosdisk.h: Likewise.
  35137. * include/grub/i386/pc/boot.h: Likewise.
  35138. * include/grub/i386/pc/chainloader.h: Likewise.
  35139. * include/grub/i386/pc/console.h: Likewise.
  35140. * include/grub/i386/pc/init.h: Likewise.
  35141. * include/grub/i386/pc/kernel.h: Likewise.
  35142. * include/grub/i386/pc/loader.h: Likewise.
  35143. * include/grub/i386/pc/memory.h: Likewise.
  35144. * include/grub/i386/pc/multiboot.h: Likewise.
  35145. * include/grub/i386/pc/serial.h: Likewise.
  35146. * include/grub/i386/pc/time.h: Likewise.
  35147. * include/grub/i386/pc/vbe.h: Likewise.
  35148. * include/grub/i386/pc/vbeblit.h: Likewise.
  35149. * include/grub/i386/pc/vbefill.h: Likewise.
  35150. * include/grub/i386/pc/vbeutil.h: Likewise.
  35151. * include/grub/i386/pc/vga.h: Likewise.
  35152. * include/grub/ieee1275/ieee1275.h: Likewise.
  35153. * include/grub/ieee1275/ofdisk.h: Likewise.
  35154. * include/grub/powerpc/libgcc.h: Likewise.
  35155. * include/grub/powerpc/setjmp.h: Likewise.
  35156. * include/grub/powerpc/types.h: Likewise.
  35157. * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
  35158. * include/grub/powerpc/ieee1275/console.h: Likewise.
  35159. * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
  35160. * include/grub/powerpc/ieee1275/kernel.h: Likewise.
  35161. * include/grub/powerpc/ieee1275/loader.h: Likewise.
  35162. * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
  35163. * include/grub/powerpc/ieee1275/time.h: Likewise.
  35164. * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
  35165. * include/grub/sparc64/libgcc.h: Likewise.
  35166. * include/grub/sparc64/setjmp.h: Likewise.
  35167. * include/grub/sparc64/types.h: Likewise.
  35168. * include/grub/sparc64/ieee1275/console.h: Likewise.
  35169. * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
  35170. * include/grub/sparc64/ieee1275/kernel.h: Likewise.
  35171. * include/grub/sparc64/ieee1275/time.h: Likewise.
  35172. * include/grub/util/biosdisk.h: Likewise.
  35173. * include/grub/util/getroot.h: Likewise.
  35174. * include/grub/util/lvm.h: Likewise.
  35175. * include/grub/util/misc.h: Likewise.
  35176. * include/grub/util/raid.h: Likewise.
  35177. * include/grub/util/resolve.h: Likewise.
  35178. * io/gzio.c: Likewise.
  35179. * kern/device.c: Likewise.
  35180. * kern/disk.c: Likewise.
  35181. * kern/dl.c: Likewise.
  35182. * kern/elf.c: Likewise.
  35183. * kern/env.c: Likewise.
  35184. * kern/err.c: Likewise.
  35185. * kern/file.c: Likewise.
  35186. * kern/fs.c: Likewise.
  35187. * kern/loader.c: Likewise.
  35188. * kern/main.c: Likewise.
  35189. * kern/misc.c: Likewise.
  35190. * kern/mm.c: Likewise.
  35191. * kern/parser.c: Likewise.
  35192. * kern/partition.c: Likewise.
  35193. * kern/rescue.c: Likewise.
  35194. * kern/term.c: Likewise.
  35195. * kern/efi/efi.c: Likewise.
  35196. * kern/efi/init.c: Likewise.
  35197. * kern/efi/mm.c: Likewise.
  35198. * kern/i386/dl.c: Likewise.
  35199. * kern/i386/efi/init.c: Likewise.
  35200. * kern/i386/efi/startup.S: Likewise.
  35201. * kern/i386/pc/init.c: Likewise.
  35202. * kern/i386/pc/lzo1x.S: Likewise.
  35203. * kern/i386/pc/startup.S: Likewise.
  35204. * kern/ieee1275/ieee1275.c: Likewise.
  35205. * kern/powerpc/cache.S: Likewise.
  35206. * kern/powerpc/dl.c: Likewise.
  35207. * kern/powerpc/ieee1275/cmain.c: Likewise.
  35208. * kern/powerpc/ieee1275/crt0.S: Likewise.
  35209. * kern/powerpc/ieee1275/init.c: Likewise.
  35210. * kern/powerpc/ieee1275/openfw.c: Likewise.
  35211. * kern/sparc64/cache.S: Likewise.
  35212. * kern/sparc64/dl.c: Likewise.
  35213. * kern/sparc64/ieee1275/init.c: Likewise.
  35214. * kern/sparc64/ieee1275/openfw.c: Likewise.
  35215. * loader/efi/chainloader.c: Likewise.
  35216. * loader/efi/chainloader_normal.c: Likewise.
  35217. * loader/i386/efi/linux.c: Likewise.
  35218. * loader/i386/efi/linux_normal.c: Likewise.
  35219. * loader/i386/pc/chainloader.c: Likewise.
  35220. * loader/i386/pc/chainloader_normal.c: Likewise.
  35221. * loader/i386/pc/linux.c: Likewise.
  35222. * loader/i386/pc/linux_normal.c: Likewise.
  35223. * loader/i386/pc/multiboot.c: Likewise.
  35224. * loader/i386/pc/multiboot_normal.c: Likewise.
  35225. * loader/powerpc/ieee1275/linux.c: Likewise.
  35226. * loader/powerpc/ieee1275/linux_normal.c: Likewise.
  35227. * normal/arg.c: Likewise.
  35228. * normal/cmdline.c: Likewise.
  35229. * normal/command.c: Likewise.
  35230. * normal/completion.c: Likewise.
  35231. * normal/execute.c: Likewise.
  35232. * normal/function.c: Likewise.
  35233. * normal/lexer.c: Likewise.
  35234. * normal/main.c: Likewise.
  35235. * normal/menu.c: Likewise.
  35236. * normal/menu_entry.c: Likewise.
  35237. * normal/misc.c: Likewise.
  35238. * normal/parser.y: Likewise.
  35239. * normal/script.c: Likewise.
  35240. * normal/i386/setjmp.S: Likewise.
  35241. * normal/powerpc/setjmp.S: Likewise.
  35242. * normal/sparc64/setjmp.S: Likewise.
  35243. * partmap/acorn.c: Likewise.
  35244. * partmap/amiga.c: Likewise.
  35245. * partmap/apple.c: Likewise.
  35246. * partmap/gpt.c: Likewise.
  35247. * partmap/pc.c: Likewise.
  35248. * partmap/sun.c: Likewise.
  35249. * term/gfxterm.c: Likewise.
  35250. * term/terminfo.c: Likewise.
  35251. * term/efi/console.c: Likewise.
  35252. * term/i386/pc/console.c: Likewise.
  35253. * term/i386/pc/serial.c: Likewise.
  35254. * term/i386/pc/vesafb.c: Likewise.
  35255. * term/i386/pc/vga.c: Likewise.
  35256. * term/ieee1275/ofconsole.c: Likewise.
  35257. * util/biosdisk.c: Likewise.
  35258. * util/console.c: Likewise.
  35259. * util/genmoddep.c: Likewise.
  35260. * util/getroot.c: Likewise.
  35261. * util/grub-emu.c: Likewise.
  35262. * util/grub-mkdevicemap.c: Likewise.
  35263. * util/grub-probe.c: Likewise.
  35264. * util/lvm.c: Likewise.
  35265. * util/misc.c: Likewise.
  35266. * util/raid.c: Likewise.
  35267. * util/resolve.c: Likewise.
  35268. * util/update-grub.in: Likewise.
  35269. * util/update-grub_lib.in: Likewise.
  35270. * util/grub.d/00_header.in: Likewise.
  35271. * util/grub.d/10_hurd.in: Likewise.
  35272. * util/grub.d/10_linux.in: Likewise.
  35273. * util/i386/efi/grub-install.in: Likewise.
  35274. * util/i386/efi/grub-mkimage.c: Likewise.
  35275. * util/i386/pc/grub-install.in: Likewise.
  35276. * util/i386/pc/grub-mkimage.c: Likewise.
  35277. * util/i386/pc/grub-mkrescue.in: Likewise.
  35278. * util/i386/pc/grub-setup.c: Likewise.
  35279. * util/i386/pc/misc.c: Likewise.
  35280. * util/powerpc/ieee1275/grub-install.in: Likewise.
  35281. * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
  35282. * util/powerpc/ieee1275/misc.c: Likewise.
  35283. * video/bitmap.c: Likewise.
  35284. * video/video.c: Likewise.
  35285. * video/i386/pc/vbe.c: Likewise.
  35286. * video/i386/pc/vbeblit.c: Likewise.
  35287. * video/i386/pc/vbefill.c: Likewise.
  35288. * video/i386/pc/vbeutil.c: Likewise.
  35289. * video/readers/tga.c: Likewise.
  35290. 2007-07-02 Robert Millan <rmh@aybabtu.com>
  35291. * conf/i386-efi.rmk: Replace obsolete reference to
  35292. util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
  35293. with util/getroot.c.
  35294. * conf/powerpc-ieee1275.rmk: Likewise.
  35295. * conf/sparc64-ieee1275.rmk: Likewise.
  35296. * util/grub-emu.c (main): Fix unchecked pointer handling.
  35297. 2007-07-02 Robert Millan <rmh@aybabtu.com>
  35298. * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
  35299. invocation to fail, in order to support partition-less media.
  35300. * util/i386/pc/grub-install.in: Likewise.
  35301. * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
  35302. which fs or partmap modules are needed (akin to its sister scripts).
  35303. Also use grub-probe to get rid of unportable /proc/mounts check.
  35304. Print the same informational message that the other scripts do, before
  35305. exiting.
  35306. 2007-06-23 Robert Millan <rmh@aybabtu.com>
  35307. * util/update-grub_lib.in (font_path): New function. Determine whether
  35308. a font file can be found and, if so, echo the GRUB path to it.
  35309. * util/update-grub.in: Handle multiple terminals depending on user
  35310. input, platform availability and font file presence. Propagate
  35311. variables of our findings to /etc/grub.d/ children.
  35312. * util/grub.d/00_header.in: Handle multiple terminals, based on
  35313. environment setup by update-grub.
  35314. 2007-06-23 Robert Millan <rmh@aybabtu.com>
  35315. * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
  35316. 2007-06-21 Robert Millan <rmh@aybabtu.com>
  35317. * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
  35318. indicate end of data section in kernel image.
  35319. * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
  35320. GRUB_KERNEL_MACHINE_DATA_END.
  35321. * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
  35322. space for it.
  35323. * kern/i386/efi/startup.S: Likewise.
  35324. * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
  35325. during image generation. Implement --prefix option to override this
  35326. patch.
  35327. * util/i386/efi/grub-mkimage.c: Likewise.
  35328. * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
  35329. code to make path relative to its root into a separate function.
  35330. * util/i386/pc/grub-install.in: Use newly provided
  35331. make_system_path_relative_to_its_root() to convert ${grubdir}, then
  35332. pass the result to grub-install --prefix.
  35333. 2007-06-13 Robert Millan <rmh@aybabtu.com>
  35334. * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
  35335. DEFAULT_DEVICE_MAP.
  35336. * util/grub-emu.c: Use above definitions from misc.h instead of
  35337. defining them.
  35338. * util/grub-mkdevicemap.c: Likewise.
  35339. * util/i386/pc/grub-setup.c: Likewise.
  35340. * util/grub-probe.c: Likewise.
  35341. (probe): Abort with grub_util_error() when either
  35342. grub_guess_root_device or grub_util_get_grub_dev fails.
  35343. 2007-06-12 Robert Millan <rmh@aybabtu.com>
  35344. * normal/command.c (grub_command_execute): Use NULL rather than 0 for
  35345. "pager" assignment.
  35346. * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
  35347. "pcdata".
  35348. * util/grub-probe.c (probe): Likewise for "drive_name".
  35349. 2007-06-11 Robert Millan <rmh@aybabtu.com>
  35350. * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
  35351. not just the cdrom one.
  35352. 2007-06-11 Robert Millan <rmh@aybabtu.com>
  35353. * util/i386/pc/grub-mkrescue.in: Add "set -e".
  35354. Add --pkglibdir=DIR option to override pkglibdir.
  35355. Mention --image-type=TYPE in help output.
  35356. Fix --grub-mkimage (it was a no-op).
  35357. Abort gracefully when no parameter is given.
  35358. 2007-06-11 Robert Millan <rmh@aybabtu.com>
  35359. * util/i386/pc/grub-mkrescue.in: New file.
  35360. * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
  35361. * Makefile.in: Handle bin_SCRIPTS.
  35362. 2007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
  35363. * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
  35364. list of video modes.
  35365. 2007-06-06 Robert Millan <rmh@aybabtu.com>
  35366. * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
  35367. file doesn't exist, or if it is in a filesystem grub can't read.
  35368. * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
  35369. not abort if GRUB_DRIVE could not be defined. Rearrange generated
  35370. header comment to fit in 80 columns when the variables are resolved.
  35371. * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
  35372. could be identified by update-grub. Remove redundant check for
  35373. unifont.pff existence (since convert_system_path_to_grub_path now
  35374. handles that).
  35375. 2007-06-04 Robert Millan <rmh@aybabtu.com>
  35376. * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
  35377. * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
  35378. * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
  35379. 2007-06-04 Robert Millan <rmh@aybabtu.com>
  35380. * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
  35381. * include/grub/partition.h: Declare grub_apple_partition_map_init and
  35382. grub_apple_partition_map_fini.
  35383. * util/biosdisk.c
  35384. (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
  35385. to access >2 TiB disks).
  35386. Print disk->total_sectors with %llu instead of %lu, since this
  35387. variable is always 64-bit (prevents wrong disk size from being displayed
  35388. on either >2 TiB disk or big-endian CPU).
  35389. (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
  35390. into a generic case that supports all (sane) partition maps.
  35391. Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
  35392. breaks big-endian.
  35393. * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
  35394. and grub_apple_partition_map_fini() after that.
  35395. 2007-06-01 Robert Millan <rmh@aybabtu.com>
  35396. * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
  35397. * util/grub.d/00_header.in: Only enable gfxterm when
  35398. convert_system_path_to_grub_path() succeeds.
  35399. 2007-05-20 Robert Millan <rmh@aybabtu.com>
  35400. * util/update-grub_lib.in: New file.
  35401. * DISTLIST: Add update-grub_lib.in.
  35402. * conf/common.rmk: Generate update-grub_lib and install it in
  35403. $(lib_DATA).
  35404. * Makefile.in: Add install routine for $(lib_DATA).
  35405. * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
  35406. function provided by update-grub_lib to support arbitrary paths of
  35407. unifont.pff.
  35408. * util/update-grub.in: Use convert_system_path_to_grub_path() to
  35409. initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
  35410. 2007-05-19 Robert Millan <rmh@aybabtu.com>
  35411. * commands/i386/cpuid.c: New module.
  35412. * DISTLIST: Add it.
  35413. * conf/i386-efi.rmk: Enable cpuid.mod.
  35414. * conf/i386-pc.rmk: Likewise.
  35415. 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
  35416. * kern/disk.c (grub_disk_read): Check return value of
  35417. grub_realloc().
  35418. 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
  35419. * util/getroot.c (grub_util_get_grub_dev): Support partitionable
  35420. arrays.
  35421. * disk/raid.c (grub_raid_open): Likewise.
  35422. 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
  35423. * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
  35424. stack instead of on the heap.
  35425. * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
  35426. before doing a read on it.
  35427. * configure.ac: Only use -fno-stack-protector for the target
  35428. environment.
  35429. 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
  35430. * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
  35431. __attribute_ ((unused)) to mode_type argument.
  35432. * util/getroot.c (grub_guess_root_device): Fix #endif.
  35433. * kern/misc.c (memcmp): Fix prototype.
  35434. * include/grub/partition.h [GRUB_UTIL]
  35435. (grub_gpt_partition_map_init): Add prototype.
  35436. (grub_gpt_partition_map_fini): Likewise.
  35437. * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
  35438. at the right place.
  35439. * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
  35440. (grub_fat_read_data): Likewise.
  35441. (grub_fat_find_dir): Likewise.
  35442. * font/manager.c (find_glyph): Make table a const.
  35443. (grub_font_get_glyph): Remove bitmap from if statement.
  35444. 2007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
  35445. * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
  35446. code, first search for device in /dev/mapper, then in /dev.
  35447. (grub_util_get_grub_dev): New function.
  35448. * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
  35449. prototype.
  35450. * util/grub-probe.c (probe): Remove check for RAID, call
  35451. grub_util_get_grub_dev() instead of
  35452. grub_util_biosdisk_get_grub_dev().
  35453. * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
  35454. grub_util_biosdisk_get_grub_dev().
  35455. * util/i386/pc/grub-setup.c (main): Likewise.
  35456. 2007-05-16 Robert Millan <rmh@aybabtu.com>
  35457. * DISTLIST: Update for the latest changes.
  35458. * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
  35459. util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
  35460. * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
  35461. grub/util/biosdisk.h.
  35462. * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
  35463. grub/util/biosdisk.h.
  35464. 2007-05-16 Robert Millan <rmh@aybabtu.com>
  35465. * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
  35466. 2007-05-16 Robert Millan <rmh@aybabtu.com>
  35467. * util/i386/efi/grub-install.in: New.
  35468. * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
  35469. newly added grub-install.
  35470. * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
  35471. include.
  35472. * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
  35473. grub/util/biosdisk.h.
  35474. * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
  35475. grub/util/biosdisk.h.
  35476. 2007-05-16 Robert Millan <rmh@aybabtu.com>
  35477. * include/grub/i386/pc/util/biosdisk.h: Moved to ...
  35478. * include/grub/util/biosdisk.h: ... here.
  35479. * util/i386/pc/biosdisk.c: Moved to ...
  35480. * util/biosdisk.c: ... here.
  35481. * util/i386/pc/getroot.c: Moved to ...
  35482. * util/getroot.c: ... here.
  35483. * util/i386/pc/grub-mkdevicemap.c: Moved to ...
  35484. * util/grub-mkdevicemap.c: ... here.
  35485. * util/i386/pc/grub-probe.c: Moved to ...
  35486. * util/grub-probe.c: ... here.
  35487. 2007-05-15 Robert Millan <rmh@aybabtu.com>
  35488. * util/update-grub.in: Remove duplicated line in grub.cfg header
  35489. message.
  35490. 2007-05-13 Robert Millan <rmh@aybabtu.com>
  35491. * util/update-grub.in: Fix a few assumptions about the devices holding
  35492. /, /boot and /boot/grub being the same.
  35493. * util/grub.d/00_header.in: Likewise.
  35494. * util/grub.d/10_hurd.in: Likewise.
  35495. * util/grub.d/10_linux.in: Likewise.
  35496. * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
  35497. patterns. Use that to define the `.old' suffix as older than `'.
  35498. * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
  35499. * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
  35500. the grub.cfg header message.
  35501. 2007-05-11 Robert Millan <rmh@aybabtu.com>
  35502. * util/update-grub.in: Create device.map if it doesn't already exist,
  35503. before attempting to run grub-probe.
  35504. Check for grub-probe and grub-mkdevicemap with the same code
  35505. grub-install is using.
  35506. Remove test mode.
  35507. 2007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
  35508. * Makefile.in: Add the datarootdir autoconf variable.
  35509. 2007-05-09 Robert Millan <rmh@aybabtu.com>
  35510. * util/i386/pc/grub-probe.c (probe): When detecting partition map,
  35511. fail gracefully if dev->disk->partition == NULL.
  35512. 2007-05-07 Robert Millan <rmh@aybabtu.com>
  35513. * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
  35514. determine partition map module.
  35515. * util/i386/pc/grub-install.in: Use this feature to decide which
  35516. partition module to load, instead of hardcoding pc and gpt.
  35517. 2007-05-07 Robert Millan <rmh@aybabtu.com>
  35518. * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
  35519. source directory differs from build directory.
  35520. 2007-05-05 Robert Millan <rmh@aybabtu.com>
  35521. * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
  35522. initialisation.
  35523. 2007-05-05 Robert Millan <rmh@aybabtu.com>
  35524. * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
  35525. 2007-05-05 Robert Millan <rmh@aybabtu.com>
  35526. * util/grub.d/10_linux.in: Allow the administrator to insert Linux
  35527. command-line arguments via ${GRUB_CMDLINE_LINUX}.
  35528. 2007-05-05 Robert Millan <rmh@aybabtu.com>
  35529. * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
  35530. (grub_probe_SOURCES): Likewise.
  35531. * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
  35532. GPT and initialize dos_part and bsd_part accordingly.
  35533. * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
  35534. install_bsd_part.
  35535. (main): Activate gpt module for use during partition identification,
  35536. and deactivate it afterwards.
  35537. * util/i386/pc/grub-install.in: Add gpt module to core.img.
  35538. * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
  35539. partition identification, and deactivate it afterwards.
  35540. 2007-05-05 Robert Millan <rmh@aybabtu.com>
  35541. * term/i386/pc/console.c (grub_console_fini): Call
  35542. grub_term_set_current() before grub_term_unregister().
  35543. 2007-05-04 Robert Millan <rmh@aybabtu.com>
  35544. * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
  35545. util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
  35546. * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
  35547. and update-grub_DATA.
  35548. * conf/common.rmk: Build and install update-grub components.
  35549. * conf/common.mk: Regenerate.
  35550. * util/update-grub.in: New. Core of update-grub.
  35551. * util/grub.d/00_header.in: New. Generates grub.cfg header.
  35552. * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
  35553. * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
  35554. * util/grub.d/README: New. Document grub.d directory layout.
  35555. 2007-05-01 Robert Millan <rmh@aybabtu.com>
  35556. * util/grub-emu.c: Move initialization functions
  35557. grub_util_biosdisk_init() and grub_init_all() before
  35558. grub_util_biosdisk_get_grub_dev(), which relies on them.
  35559. 2007-04-19 Robert Millan <rmh@aybabtu.com>
  35560. * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
  35561. it is used later.
  35562. 2007-04-18 Jerone Young <jerone@gmail.com>
  35563. * kernel/elf.c: Add missing parenthesis for conditional statement
  35564. stanza.
  35565. 2007-04-10 Jerone Young <jerone@gmail.com>
  35566. * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
  35567. continue on and look for device node with real device name.
  35568. 2007-04-10 Jerone Young <jerone@gmail.com>
  35569. * configure.ac: Add argument for autoconf to use transformation
  35570. ability.
  35571. * Makefile.in: Add autoconf package transformation code.
  35572. * util/i386/pc/grub-install.in: Likewise.
  35573. * util/powerpc/ieee1275/grub-install.in: Likewise.
  35574. 2007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
  35575. * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
  35576. (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
  35577. (EXT2_REVISION): Likewise.
  35578. (EXT2_INODE_SIZE): Likewise.
  35579. (struct grub_ext2_block_group): Added a missing member
  35580. "used_dirs".
  35581. (grub_ext2_read_inode): Divide by the inode size in a superblock
  35582. instead of 128 to obtain INODES_PER_BLOCK.
  35583. Use the macro EXT2_INODE_SIZE instead of directly using
  35584. SBLOCK->INODE_SIZE.
  35585. 2007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
  35586. * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
  35587. superblock instead of the structure size to compute an
  35588. offset. This fixes the problem that GRUB could not read a
  35589. filesystem when inode size is different from 128-byte.
  35590. 2007-03-05 Marco Gerards <marco@gnu.org>
  35591. * normal/main.c (read_config_file): When "menu" is not set, create
  35592. an initial context.
  35593. 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
  35594. * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
  35595. (HEAP_LIMIT): New macro.
  35596. (grub_claim_heap): Claim memory up to `heaplimit'.
  35597. 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
  35598. * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
  35599. * kern/powerpc/ieee1275/init.c (_end): Add declaration.
  35600. (_start): Likewise.
  35601. (grub_arch_modules_addr): Return address after `_end'.
  35602. * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
  35603. (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
  35604. (add_segments): Calculate `_end' from phdr size and location.
  35605. (ALIGN_UP): Moved to ...
  35606. * include/grub/misc.h: here.
  35607. * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
  35608. New macro.
  35609. (GRUB_IEEE1275_MODULE_BASE): Removed.
  35610. 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
  35611. * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
  35612. loop boundary.
  35613. 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
  35614. * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
  35615. All users updated.
  35616. (grub_elf64_load_hook_t): Likewise.
  35617. * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
  35618. debug output.
  35619. 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
  35620. * kern/mm.c: Update copyright.
  35621. (grub_mm_debug): Correct syntax error.
  35622. (grub_mm_dump_free): New function.
  35623. (grub_debug_free): Call `grub_free'.
  35624. * include/grub/mm.h: Update copyright.
  35625. (grub_mm_dump_free): Add declaration.
  35626. 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
  35627. * include/grub/ieee1275/ieee1275.h: Update copyright.
  35628. * kern/powerpc/ieee1275/init.c: Likewise.
  35629. * kern/powerpc/ieee1275/openfw.c: Likewise.
  35630. * loader/powerpc/ieee1275/linux.c: Likewise.
  35631. * include/grub/elfload.h: Likewise.
  35632. * kern/elf.c: Likewise.
  35633. (grub_elf32_load): Pass `base' and `size' parameters. Update all
  35634. callers.
  35635. (grub_elf64_load): Likewise.
  35636. (grub_elf32_load_segment): Move to a nested function.
  35637. (grub_elf64_load_segment): Likewise.
  35638. 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
  35639. * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
  35640. prototype.
  35641. * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
  35642. (grub_heap_len): Likewise.
  35643. (HEAP_SIZE): New macro.
  35644. (grub_claim_heap): New function.
  35645. (grub_machine_init): Don't claim heap directly. Call
  35646. `grub_claim_heap'.
  35647. * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
  35648. (grub_available_iterate): New function.
  35649. 2007-02-03 Thomas Schwinge <tschwinge@gnu.org>
  35650. * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
  35651. * configure.ac: Use it for testing the HOST and TARGET compilers.
  35652. 2006-12-13 Thomas Schwinge <tschwinge@gnu.org>
  35653. * Makefile.in (enable_grub_emu): New variable.
  35654. * configure.ac (--enable-grub-emu): New option.
  35655. Do the checks for (n)curses only if `--enable-grub-emu' is requested.
  35656. * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
  35657. * conf/i386-pc.rmk: Likewise.
  35658. * conf/powerpc-ieee1275.rmk: Likewise.
  35659. * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
  35660. 2006-12-12 Marco Gerards <marco@gnu.org>
  35661. * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
  35662. * kern/env.c (grub_env_unset): Don't free the member `value' when
  35663. the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
  35664. pointer.
  35665. * normal/main.c (current_menu): Removed.
  35666. (free_menu): Unset the `menu' environment variable.
  35667. (grub_normal_menu_addentry): Make use of the environment variable
  35668. `menu', instead of using the global `current_menu'. Allocate
  35669. memory for the sourcecode of this entry.
  35670. (read_config_file): New argument `nested', changed all callers.
  35671. Only in the case of a new context, initialize a new menu. Set the
  35672. `menu' environment variable.
  35673. (grub_normal_execute): Don't set and unset the environment
  35674. variable `menu' here anymore. Only free the menu when leaving the
  35675. context.
  35676. * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
  35677. leak.
  35678. 2006-12-11 Marco Gerards <marco@gnu.org>
  35679. * normal/menu_entry.c (run): Fix off by one bug so the last line
  35680. is executed. Move the loader check to outside the loop.
  35681. 2006-12-08 Hollis Blanchard <hollis@penguinppc.org>
  35682. * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
  35683. 2006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
  35684. * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
  35685. the number of sectors. Reported by Andrey Shuvikov
  35686. <mr_hyro@yahoo.com>.
  35687. 2006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
  35688. * kern/disk.c (grub_disk_read): When there is a read error, always
  35689. try to read only the necessary data.
  35690. * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
  35691. disk/raid.c.
  35692. * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
  35693. prototype.
  35694. [GRUB_UTIL] (grub_raid_fini): Likewise.
  35695. [GRUB_UTIL] (grub_lvm_init): Likewise.
  35696. [GRUB_UTIL] (grub_lvm_fini): Likewise.
  35697. * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
  35698. RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
  35699. (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
  35700. and grub_raid_fini().
  35701. 2006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
  35702. * include/grub/types.h (__unused): Rename to UNUSED.
  35703. * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
  35704. (grub_elf64_size): Likewise.
  35705. 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
  35706. * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
  35707. grub_error_push and grub_error_pop in the error-handling path.
  35708. (grub_elf32_load_segment): Only call grub_file_read with non-zero
  35709. length.
  35710. 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
  35711. * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
  35712. * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
  35713. * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
  35714. (kernel_elf_SOURCES): Likewise.
  35715. * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
  35716. * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
  35717. * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
  35718. * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
  35719. * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
  35720. (elf_mod_SOURCES): New variable.
  35721. (elf_mod_CFLAGS): Likewise.
  35722. (elf_mod_LDFLAGS): Likewise.
  35723. * include/grub/types.h (__unused): New macro.
  35724. * include/grub/elfload.h: New file.
  35725. * kern/elf.c: Likewise.
  35726. * loader/powerpc/ieee1275/linux.c: Include elfload.h.
  35727. (ELF32_LOADMASK): New macro.
  35728. (ELF64_LOADMASK): Likewise.
  35729. (vmlinux): Removed.
  35730. (grub_linux_load32): New function.
  35731. (grub_linux_load64): Likewise.
  35732. (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
  35733. Use grub_elf_t instead of grub_file_t.
  35734. 2006-11-02 Hollis Blanchard <hollis@penguinppc.org>
  35735. * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
  35736. `catch_result' to struct set_color_args.
  35737. 2006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
  35738. * normal/menu.c: Include grub/script.h.
  35739. * normal/menu_entry.c: Likewise.
  35740. * include/grub/normal.h: Do not include grub/script.h.
  35741. 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
  35742. * kern/disk.c (grub_disk_read): Correct debug printf formatting.
  35743. 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
  35744. * kern/disk.c (grub_disk_open): Print debug messages when opening a
  35745. disk.
  35746. (grub_disk_close): Print debug messages when closing a disk.
  35747. (grub_disk_read): Print debug messages when disk read fails.
  35748. * kern/fs.c (grub_fs_probe): Print debug messages when detecting
  35749. filesystem type.
  35750. * kern/partition.c: Include misc.h.
  35751. (grub_partition_iterate): Print debug messages when detecting
  35752. partition type.
  35753. 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
  35754. * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
  35755. is negative.
  35756. * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
  35757. 2006-10-26 Hollis Blanchard <hollis@penguinppc.org>
  35758. * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
  35759. Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
  35760. 2006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
  35761. * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
  35762. instead of sizeof(lv). Patch by Michael Guntsche.
  35763. 2006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
  35764. * disk/lvm.c: Rename VGS to VG_LIST.
  35765. (grub_lvm_iterate): Change VGS->LV to VG-LV.
  35766. (grub_lvm_open): Likewise.
  35767. Thanks to Michael Guntsche for finding this bug.
  35768. 2006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
  35769. * configure.ac (AC_INIT): Bumped to 1.95.
  35770. 2006-10-14 Robert Millan <rmh@aybabtu.com>
  35771. * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
  35772. with "/dev/.static/dev/md".
  35773. 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
  35774. * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
  35775. DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
  35776. DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
  35777. DRIVE_NAME are always freed.
  35778. * util/i386/pc/biosdisk.c (make_device_name): Add one into
  35779. DOS_PART, as a DOS partition is counted from one instead of zero
  35780. now. Reported by Robert Millan.
  35781. 2006-10-14 Robert Millan <rmh@aybabtu.com>
  35782. * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
  35783. grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
  35784. * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
  35785. string returned by grub_guess_root_device.
  35786. * util/i386/pc/grub-setup.c: Likewise.
  35787. * util/i386/pc/grub-probefs.c: Likewise.
  35788. * util/i386/pc/grub-probefs.c: Rename to ...
  35789. * util/i386/pc/grub-probe.c: ... this.
  35790. * DISTLIST: Remove grub-probefs, add grub-probe.
  35791. * conf/i386-efi.rmk: Likewise.
  35792. * conf/i386-pc.rmk: Likewise.
  35793. * util/i386/pc/grub-install.in: Likewise.
  35794. * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
  35795. choose which information we want to print.
  35796. 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
  35797. * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
  35798. include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
  35799. include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
  35800. include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
  35801. video/readers/tga.c and video/i386/pc/vbeutil.c.
  35802. 2006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
  35803. Added support for RAID and LVM.
  35804. * disk/lvm.c: New file.
  35805. * disk/raid.c: Likewise.
  35806. * include/grub/lvm.h: Likewise.
  35807. * include/grub/raid.h: Likewise.
  35808. * include/grub/util/lvm.h: Likewise.
  35809. * include/grub/util/raid.h: Likewise.
  35810. * util/lvm.c: Likewise.
  35811. * util/raid.c: Likewise.
  35812. * include/grub/disk.h (grub_disk_dev_id): Add
  35813. GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
  35814. (grub_disk_get_size): New prototype.
  35815. * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
  35816. returns a partition.
  35817. (grub_disk_get_size): New function.
  35818. * kern/i386/pc/init.c (make_install_device): Copy the prefix
  35819. verbatim if grub_install_dos_part is -2.
  35820. * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
  35821. and LVM devices.
  35822. * util/i386/pc/grub-setup.c (setup): New argument
  35823. MUST_EMBED. Force embedding of GRUB when the argument is
  35824. true. Close FILE before returning.
  35825. (main): Add support for RAID and LVM.
  35826. * conf/common.rmk: Add RAID and LVM modules.
  35827. * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
  35828. util/lvm.c.
  35829. (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
  35830. * kern/misc.c (grub_strstr): New function.
  35831. * include/grub/misc.h (grub_strstr): New prototype.
  35832. 2006-10-10 Tristan Gingold <tristan.gingold@bull.net>
  35833. * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
  35834. 2006-10-05 Tristan Gingold <tristan.gingold@bull.net>
  35835. * kern/misc.c (grub_strtoull): Guess the base only if not
  35836. specified.
  35837. 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
  35838. * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
  35839. PowerMac support.
  35840. 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
  35841. * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
  35842. * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
  35843. Remove `flags' argument. All callers changed.
  35844. * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
  35845. (IEEE1275_IHANDLE_INVALID): New variable.
  35846. (IEEE1275_CELL_INVALID): New variable.
  35847. (grub_ieee1275_finddevice, grub_ieee1275_get_property,
  35848. grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
  35849. grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
  35850. grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
  35851. grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
  35852. codes from Open Firmware. All callers updated.
  35853. (grub_ieee1275_next_property): Directly return Open Firmware return
  35854. code.
  35855. * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
  35856. Standardize error checking from `grub_ieee1275_get_property'.
  35857. * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
  35858. `devalias' to `aliases'. Correct comments. Consolidate error paths.
  35859. 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
  35860. * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
  35861. `instance_to_package_args' to `instance_to_path_args'.
  35862. * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
  35863. `grub_ieee1275_chosen'.
  35864. * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
  35865. `grub_ieee1275_interpret'.
  35866. 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
  35867. * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
  35868. 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
  35869. * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
  35870. (__cmpdi): Likewise.
  35871. * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
  35872. `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
  35873. `grub_ssize_t'.
  35874. * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
  35875. * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
  35876. to type `grub_ssize_t'.
  35877. (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
  35878. 2006-09-22 Marco Gerards <marco@gnu.org>
  35879. * normal/script.c (grub_script_create_cmdmenu): Skip leading
  35880. newlines.
  35881. 2006-09-22 Marco Gerards <marco@gnu.org>
  35882. * commands/echo.c: New file.
  35883. * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
  35884. * conf/common.rmk (echo_mod_SOURCES): New variable.
  35885. (echo_mod_CFLAGS): Likewise.
  35886. (echo_mod_LDFLAGS): Likewise.
  35887. 2006-09-22 Marco Gerards <marco@gnu.org>
  35888. * normal/main.c (get_line): Malloc memory instead of using
  35889. preallocated memory. Removed the arguments `cmdline' and
  35890. `max_len'. Updated all callers.
  35891. 2006-09-22 Marco Gerards <marco@gnu.org>
  35892. * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
  35893. (normal_mod_DEPENDENCIES): Likewise.
  35894. * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
  35895. (normal_mod_DEPENDENCIES): Likewise.
  35896. * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
  35897. 2006-09-22 Johan Rydberg <jrydberg@gnu.org>
  35898. * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
  35899. programs.
  35900. * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
  35901. (normal_mod_DEPENDENCIES): Likewise.
  35902. * conf/i386-pc.mk: Regenerate.
  35903. * conf/i386-efi.mk: Likewise
  35904. * conf/common.mk: Likewise.
  35905. * conf/powerpc-ieee1275.mk: Likewise.
  35906. * conf/sparc64-ieee1275.mk: Likewise.
  35907. 2006-09-22 Robert Millan <rmh@aybabtu.com>
  35908. Sync with i386 version.
  35909. * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
  35910. * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
  35911. 2006-09-21 Robert Millan <rmh@aybabtu.com>
  35912. Import from GRUB Legacy (lib/device.c):
  35913. * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
  35914. (init_device_map) [__linux__]: Add support for I2O devices.
  35915. 2006-09-14 Marco Gerards <marco@gnu.org>
  35916. * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
  35917. `-melf_i386'.
  35918. 2006-09-14 Robert Millan <rmh@aybabtu.com>
  35919. * util/i386/pc/grub-install.in: Skip menu.lst when removing
  35920. /boot/grub/*.lst.
  35921. * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
  35922. * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
  35923. before adding it to device.map.
  35924. 2006-08-15 Johan Rydberg <jrydberg@gnu.org>
  35925. * genmk.rb: Let GCC generate dependencies the first time it
  35926. compiles a file; using the -MD option.
  35927. * conf/common.mk: Regenerate.
  35928. * conf/i386-pc.mk: Likewise.
  35929. * conf/i386-efi.mk: Likewise.
  35930. * conf/powerpc-ieee1275.mk: Likewise.
  35931. * conf/sparc64-ieee1275.mk: Likewise.
  35932. 2006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
  35933. Move the prototypes of grub_setjmp and grub_longjmp to
  35934. cpu/setjmp.h, so that each architecture may specify different
  35935. attributes.
  35936. * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
  35937. (grub_longjmp): Likewise.
  35938. * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
  35939. (grub_longjmp): Likewise.
  35940. * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
  35941. (grub_longjmp): Likewise.
  35942. * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
  35943. [!GRUB_UTIL] (grub_longjmp): Removed.
  35944. 2006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
  35945. * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
  35946. "color!" method does not return any value.
  35947. 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
  35948. * include/grub/bitmap.h: New file.
  35949. * include/grub/i386/pc/vbeutil.h: Likewise.
  35950. * video/bitmap.c: Likewise.
  35951. * video/readers/tga.c: Likewise.
  35952. * video/i386/pc/vbeutil.c: Likewise.
  35953. * commands/videotest.c: Code cleanup and updated to reflect to new
  35954. video API.
  35955. * term/gfxterm.c: Likewise.
  35956. * video/video.c: Likewise.
  35957. * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
  35958. (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
  35959. (bitmap_mod_SOURCES): New entry.
  35960. (bitmap_mod_CFLAGS): Likewise.
  35961. (bitmap_mod_LDFLAGS): Likewise.
  35962. (tga_mod_SOURCES): Likewise.
  35963. (tga_mod_CFLAGS): Likewise.
  35964. (tga_mod_LDFLAGS): Likewise.
  35965. * include/grub/video.h (grub_video_blit_operators): New enum type.
  35966. (grub_video_render_target): Changed as forward declaration and moved
  35967. actual definition to be video driver specific.
  35968. (grub_video_adapter.blit_bitmap): Added blitting operator.
  35969. (grub_video_adapter.blit_render_target): Likewise.
  35970. (grub_video_blit_bitmap): Likewise.
  35971. (grub_video_blit_render_target): Likewise.
  35972. * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
  35973. driver specific render target definition.
  35974. (grub_video_vbe_map_rgba): Added driver internal helper.
  35975. (grub_video_vbe_unmap_color): Updated to use
  35976. grub_video_i386_vbeblit_info.
  35977. (grub_video_vbe_get_video_ptr): Likewise.
  35978. * include/grub/i386/pc/vbeblit.h
  35979. (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
  35980. grub_video_i386_vbeblit_info.
  35981. (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
  35982. (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
  35983. (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
  35984. (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
  35985. (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
  35986. (grub_video_i386_vbeblit_index_index): Likewise.
  35987. (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
  35988. (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
  35989. (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
  35990. (grub_video_i386_vbeblit_blend): Added generic blitter for blend
  35991. operator.
  35992. (grub_video_i386_vbeblit_replace): Added generic blitter for replace
  35993. operator.
  35994. * video/i386/pc/vbeblit.c: Updated to reflect changes on
  35995. include/grub/i386/pc/vbeblit.h.
  35996. * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
  35997. Updated to use grub_video_i386_vbeblit_info.
  35998. (grub_video_i386_vbefill_R8G8B8): Likewise.
  35999. (grub_video_i386_vbefill_index): Likewise.
  36000. (grub_video_i386_vbefill): Added generic filler.
  36001. * video/i386/pc/vbefill.c: Updated to reflect changes on
  36002. include/grub/i386/pc/vbefill.h.
  36003. * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
  36004. grub_video_i386_vbeblit_info.
  36005. (grub_video_vbe_unmap_color): Likewise.
  36006. (grub_video_vbe_blit_glyph): Likewise.
  36007. (grub_video_vbe_scroll): Likewise.
  36008. (grub_video_vbe_draw_pixel): Removed function.
  36009. (grub_video_vbe_get_pixel): Likewise.
  36010. (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
  36011. updated code to use it.
  36012. (common_blitter): Added common blitter for render target and bitmap.
  36013. (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
  36014. (grub_video_vbe_blit_render_target): Likewise.
  36015. 2006-07-30 Johan Rydberg <jrydberg@gnu.org>
  36016. * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
  36017. is in text mode if there is no console control protocol instance
  36018. available.
  36019. 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
  36020. * include/grub/video.h: Code cleanup.
  36021. * include/grub/i386/pc/vbe.h: Likewise.
  36022. * video/i386/pc/vbe.c: Likewise.
  36023. * video/i386/pc/vbeblit.c: Likewise.
  36024. * video/i386/pc/vbefill.c: Likewise.
  36025. * video/video.c: Likewise. Also added more comments.
  36026. 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
  36027. * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
  36028. (struct grub_biosdisk_dap): Likewise.
  36029. * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
  36030. linkage settings for all functions.
  36031. 2006-07-12 Marco Gerards <marco@gnu.org>
  36032. * configure.ac (--enable-mm-debug): Fix typo.
  36033. * genkernsyms.sh.in: Use proper quoting for `CC'.
  36034. 2006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
  36035. * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
  36036. (normal_mod_ASFLAGS): Remove "-m32".
  36037. 2006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
  36038. * util/misc.c: Include config.h.
  36039. [!HAVE_MEMALIGN]: Do not include malloc.h.
  36040. (grub_memalign): Use posix_memalign, if present. Then, use
  36041. memalign, if present. Otherwise, emit an error.
  36042. * util/grub-emu.c: Do not include malloc.h.
  36043. * include/grub/util/misc.h: Include unistd.h. This is required for
  36044. FreeBSD, because off_t is defined in unistd.h. Reported by Harley
  36045. D. Eades III <hde@foobar-qux.org>.
  36046. * configure.ac (AC_GNU_SOURCE): Added.
  36047. (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
  36048. type.
  36049. 2006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
  36050. * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
  36051. ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
  36052. 2006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
  36053. * include/grub/types.h (grub_host_addr_t): Rename to
  36054. grub_target_addr_t.
  36055. (grub_host_off_t): Rename to grub_target_off_t.
  36056. (grub_host_size_t): Rename to grub_target_size_t.
  36057. (grub_host_ssize_t): Rename to grub_target_ssize_t.
  36058. Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
  36059. * include/grub/kernel.h (struct grub_module_header): Change type
  36060. of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
  36061. (grub_module_info): Likewise.
  36062. 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
  36063. * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
  36064. of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
  36065. Velazquez <jesus.velazquez@gmail.com>.
  36066. 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
  36067. Count partitions from 1 instead of 0 in the string representation
  36068. of partitions. Still use 0-based internally.
  36069. * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
  36070. (sun_partition_map_iterate): Use grub_partition_t instead of
  36071. struct grub_partition *. Cast DESC->START_CYLINDER to
  36072. grub_uint64_t after converting the endian.
  36073. (sun_partition_map_probe): Subtract 1 for PARTNUM.
  36074. (sun_partition_map_get_name): Add 1 to P->INDEX.
  36075. * partmap/pc.c (grub_partition_parse): Subtract 1 for
  36076. PCDATA->DOS_PART.
  36077. (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
  36078. * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
  36079. zero instead of one.
  36080. (gpt_partition_map_probe): Subtract 1 for PARTNUM.
  36081. (gpt_partition_map_get_name): Add 1 into P->INDEX.
  36082. * partmap/apple.c (apple_partition_map_iterate): Change the type
  36083. of POS to unsigned.
  36084. (apple_partition_map_probe): Subtract 1 for PARTNUM.
  36085. (apple_partition_map_get_name): Add 1 into P->INDEX.
  36086. * partmap/amiga.c (amiga_partition_map_iterate): Change the type
  36087. of POS to unsigned.
  36088. (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
  36089. calculate the offset of a partition.
  36090. (amiga_partition_map_probe): Subtract 1 for PARTNUM.
  36091. (amiga_partition_map_get_name): Add 1 into P->INDEX.
  36092. * partmap/acorn.c (acorn_partition_map_find): Change the type of
  36093. SECTOR to grub_disk_addr_t.
  36094. (acorn_partition_map_iterate): Likewise.
  36095. (acorn_partition_map_probe): Subtract 1 for PARTNUM.
  36096. Change the type of SECTOR to grub_disk_addr_t. Declare P on the
  36097. top.
  36098. (acorn_partition_map_get_name): Add 1 into P->INDEX.
  36099. * kern/i386/pc/init.c (make_install_device): Add 1 into
  36100. GRUB_INSTALL_DOS_PART.
  36101. * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
  36102. conditional.
  36103. 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
  36104. Clean up the code to support 64-bit addressing in disks and
  36105. files. This change is not enough for filesystems yet.
  36106. * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
  36107. type of "start" to grub_uint64_t.
  36108. (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
  36109. grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
  36110. save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
  36111. convert addresses.
  36112. * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
  36113. to grub_disk_addr_t.
  36114. * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
  36115. string.
  36116. * partmap/pc.c (pc_partition_map_iterate): Likewise.
  36117. * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
  36118. to char *.
  36119. * normal/script.c (grub_script_parse): Remove unused MEMFREE.
  36120. * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
  36121. * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
  36122. * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
  36123. to grub_off_t, to detect an error from grub_file_seek.
  36124. (grub_multiboot_load_elf32): Likewise.
  36125. * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
  36126. maximum unsigned long value when an overflow is detected.
  36127. (grub_strtoull): New function.
  36128. (grub_divmod64): Likewise.
  36129. (grub_lltoa): use grub_divmod64.
  36130. * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
  36131. grub_disk_addr_t.
  36132. (grub_fs_blocklist_open): Increase P if P is not NULL to advance
  36133. the pointer to next character. Use grub_strtoull instead of
  36134. grub_strtoul.
  36135. (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
  36136. SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
  36137. respectively.
  36138. * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
  36139. return value is signed.
  36140. (grub_file_seek): Change the type of OLD to grub_off_t. Do not
  36141. test if OFFSET is less than zero, as OFFSET is unsigned now.
  36142. * kern/disk.c (struct grub_disk_cache): Change the type of
  36143. "sector" to grub_disk_addr_t.
  36144. (grub_disk_cache_get_index): Change the type of SECTOR to
  36145. grub_disk_addr_t. Calculate the hash with SECTOR casted to
  36146. unsigned after shifting.
  36147. (grub_disk_cache_invalidate): Change the type of SECTOR to
  36148. grub_disk_addr_t.
  36149. (grub_disk_cache_unlock): Likewise.
  36150. (grub_disk_cache_store): Likewise.
  36151. (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
  36152. START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
  36153. grub_disk_addr_t and grub_uint64_t, respectively.
  36154. (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
  36155. body, as the value of OFFSET is tweaked by
  36156. grub_disk_check_range. Change the types of START_SECTOR, LEN and
  36157. POS to grub_disk_addr_t, grub_size_t and grub_size_t,
  36158. respectively.
  36159. (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
  36160. body, as the value of OFFSET is tweaked by
  36161. grub_disk_check_range. Change the types of LEN and N to
  36162. grub_size_t.
  36163. * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
  36164. and "saved_offset" to grub_off_t.
  36165. (test_header): Cast BUF to char *.
  36166. (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
  36167. to char *.
  36168. (grub_gzio_read): Change the types of OFFSET and SIZE to
  36169. grub_off_t and grub_size_t, respectively.
  36170. * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
  36171. Removed.
  36172. (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
  36173. (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
  36174. (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
  36175. (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
  36176. (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
  36177. * include/grub/types.h (grub_off_t): Unconditionally set to
  36178. grub_uint64_t.
  36179. (grub_disk_addr_t): Changed to grub_uint64_t.
  36180. * include/grub/partition.h (struct grub_partition): Change the
  36181. types of "start", "len" and "offset" to grub_disk_addr_t,
  36182. grub_uint64_t and grub_disk_addr_t, respectively.
  36183. (grub_partition_get_start): Return grub_disk_addr_t.
  36184. (grub_partition_get_len): Return grub_uint64_t.
  36185. * include/grub/misc.h (grub_strtoull): New prototype.
  36186. (grub_divmod64): Likewise.
  36187. * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
  36188. of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
  36189. grub_off_t, respectively.
  36190. All callers and references changed.
  36191. * include/grub/fs.h (struct grub_fs): Change the type of LEN to
  36192. grub_size_t in "read".
  36193. All callers and references changed.
  36194. * include/grub/file.h (struct grub_file): Change the types of
  36195. "offset" and "size" to grub_off_t and grub_off_t,
  36196. respectively. Change the type of SECTOR to grub_disk_addr_t in
  36197. "read_hook".
  36198. (grub_file_read): Change the type of LEN to grub_size_t.
  36199. (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
  36200. grub_off_t.
  36201. (grub_file_size): Return grub_off_t.
  36202. (grub_file_tell): Likewise.
  36203. All callers and references changed.
  36204. * include/grub/disk.h (struct grub_disk_dev): Change the types of
  36205. SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
  36206. "write".
  36207. (struct grub_disk): Change the type of "total_sectors" to
  36208. grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
  36209. "read_hook".
  36210. (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
  36211. grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
  36212. (grub_disk_write): Likewise.
  36213. All callers and references changed.
  36214. * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
  36215. char * for grub_strncmp to silence gcc.
  36216. (grub_iso9660_mount): Likewise.
  36217. (grub_iso9660_mount): Likewise.
  36218. (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
  36219. return statement.
  36220. (grub_iso9660_iterate_dir): Likewise.
  36221. (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
  36222. * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
  36223. LEN to grub_disk_addr_t and grub_size_t, respectively.
  36224. * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
  36225. * fs/jfs.c (grub_jfs_read_file): Likewise.
  36226. * fs/minix.c (grub_jfs_read_file): Likewise.
  36227. * fs/sfs.c (grub_jfs_read_file): Likewise.
  36228. * fs/ufs.c (grub_jfs_read_file): Likewise.
  36229. * fs/xfs.c (grub_jfs_read_file): Likewise.
  36230. * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
  36231. and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
  36232. respectively.
  36233. * fs/ext2.c (grub_ext2_read_block): When an error happens, set
  36234. BLKNR to -1 instead of returning GRUB_ERRNO.
  36235. (grub_ext2_read_file): Change the types of SECTOR and
  36236. LEN to grub_disk_addr_t and grub_size_t, respectively.
  36237. * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
  36238. LEN to grub_disk_addr_t and grub_size_t, respectively.
  36239. * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
  36240. grub_file_read.
  36241. * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
  36242. string. Do not cast SECTOR explicitly.
  36243. * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
  36244. TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
  36245. (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
  36246. grub_disk_addr_t and grub_size_t, respectively. If the sector is
  36247. over 2TB and LBA mode is not supported, raise an error.
  36248. (get_safe_sectors): New function.
  36249. (grub_biosdisk_read): Use get_safe_sectors.
  36250. (grub_biosdisk_write): Likewise.
  36251. * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
  36252. (grub_efidisk_write): Likewise.
  36253. * disk/loopback.c (delete_loopback): Cosmetic changes.
  36254. (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
  36255. correctly.
  36256. (grub_loopback_open): Likewise.
  36257. (grub_loopback_read): Likewise. Also, change the type of POS to
  36258. grub_off_t, and fix the usage of grub_memset.
  36259. * commands/i386/pc/play.c: Include grub/machine/time.h.
  36260. * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
  36261. print FILE->SIZE.
  36262. * commands/configfile.c: Include grub/env.h.
  36263. * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
  36264. GRUB_ERRNO directly instead. Change the type of POS to
  36265. grub_off_t. Follow the coding standard.
  36266. * commands/blocklist.c: Include grub/partition.h.
  36267. (grub_cmd_blocklist): Return an error if the underlying device is
  36268. not a disk. Take the starting sector of a partition into account,
  36269. if a partition is used.
  36270. * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
  36271. a length field.
  36272. (lba_mode): Support 64-bit addresses.
  36273. (chs_mode): Likewise.
  36274. (copy_buffer): Adapted to the new offsets of a length field and a
  36275. segment field.
  36276. (blocklist_default_start): Allocate 64-bit space.
  36277. * boot/i386/pc/boot.S (force_lba): Removed.
  36278. (boot_drive): Moved to under KERNEL_SECTOR.
  36279. (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
  36280. space.
  36281. (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
  36282. is useless.
  36283. (lba_mode): Refactored to support a 64-bit address. More size
  36284. optimization.
  36285. (setup_sectors): Likewise.
  36286. 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
  36287. * DISTLIST: Added include/grub/i386/linux.h. Removed
  36288. include/grub/i386/pc/linux.h
  36289. * configure.ac (AC_INIT): Bumped to 1.94.
  36290. * config.guess: Updated from gnulib.
  36291. * config.sub: Likewise.
  36292. * install-sh: Likewise.
  36293. * mkinstalldirs: Likewise.
  36294. 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
  36295. * conf/common.rmk (grub_modules_init.lst): Depended on
  36296. grub_emu_SOURCES, excluding grub_emu_init.c, instead of
  36297. MODSRCFILES.
  36298. * genmk.rb (PModule::rule): Reverted the previous change.
  36299. 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
  36300. * conf/common.rmk (grub_modules_init.lst): Depends on
  36301. $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
  36302. that the target does not exist before producing.
  36303. (grub_modules_init.h): Remove the target before generating.
  36304. (grub_emu_init.c): Likewise.
  36305. * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
  36306. 2006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
  36307. * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
  36308. for the target-specific tests. Make sure that we also have the
  36309. up-to-date target variables for those tests.
  36310. 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
  36311. * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
  36312. (PModule::rule): Likewise.
  36313. 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
  36314. * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
  36315. TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
  36316. target-specific flags should be prefixed.
  36317. (PModule::rule): Likewise.
  36318. 2006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
  36319. * configure.ac (CMP): Check if cmp is available explicitly.
  36320. 2006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
  36321. * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
  36322. (target_cpu): New variable.
  36323. (pkglibdir): Use target_cpu instead of host_cpu.
  36324. * util/i386/pc/grub-install.in (host_cpu): Removed.
  36325. (target_cpu): New variable.
  36326. (pkglibdir): Use target_cpu instead of host_cpu.
  36327. * util/genmoddep.c: Removed.
  36328. * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
  36329. instead of GRUB_HOST_SIZEOF_VOID_P.
  36330. * kern/dl.c: Likewise.
  36331. * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
  36332. ...
  36333. (GRUB_TARGET_SIZEOF_VOID_P): ... this.
  36334. (GRUB_HOST_SIZEOF_LONG): Renamed to ...
  36335. (GRUB_TARGET_SIZEOF_LONG): ... this.
  36336. (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
  36337. (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
  36338. * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
  36339. to ...
  36340. (GRUB_TARGET_SIZEOF_VOID_P): ... this.
  36341. (GRUB_HOST_SIZEOF_LONG): Renamed to ...
  36342. (GRUB_TARGET_SIZEOF_LONG): ... this.
  36343. (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
  36344. (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
  36345. * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
  36346. to ...
  36347. (GRUB_TARGET_SIZEOF_VOID_P): ... this.
  36348. (GRUB_HOST_SIZEOF_LONG): Renamed to ...
  36349. (GRUB_TARGET_SIZEOF_LONG): ... this.
  36350. (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
  36351. (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
  36352. * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
  36353. GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
  36354. [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
  36355. instead of GRUB_HOST_SIZEOF_LONG.
  36356. [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
  36357. GRUB_HOST_WORDS_BIGENDIAN to define or undefine
  36358. GRUB_CPU_WORDS_BIGENDIAN.
  36359. Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
  36360. define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
  36361. grub_host_ssize_t.
  36362. * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
  36363. (genmoddep_SOURCES): Likewise.
  36364. * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
  36365. (genmoddep_SOURCES): Likewise.
  36366. * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
  36367. (genmoddep_SOURCES): Likewise.
  36368. * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
  36369. Likewise.
  36370. (genmoddep_SOURCES): Likewise.
  36371. * genmoddep.awk: New file.
  36372. * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
  36373. TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
  36374. CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
  36375. (PModule::rule): Likewise.
  36376. (Program::rule): Likewise.
  36377. (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
  36378. BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
  36379. respectively.
  36380. * configure.ac: Rewritten intensively to use host and target
  36381. instead of build and host, respectively.
  36382. * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
  36383. (host_cpu): Removed.
  36384. (target_cpu): New variable.
  36385. (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
  36386. (BUILD_CC): Removed.
  36387. (BUILD_CFLAGS): Likewise.
  36388. (BUILD_CPPFLAGS): Likewise.
  36389. (TARGET_CC): New variable.
  36390. (TARGET_CFLAGS): Likewise.
  36391. (TARGET_CPPFLAGS): Likewise.
  36392. (TARGET_LDFLAGS): Likewise.
  36393. (AWK): Likewise.
  36394. (include): Use target_cpu instead of host_cpu.
  36395. (moddep.lst:): Use genmoddep.awk instead of genmoddep.
  36396. * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
  36397. 2006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
  36398. * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
  36399. 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
  36400. field 'false' to 'exec_on_false'.
  36401. (grub_script_create_cmdif): Renamed argument names to reflect above
  36402. changes.
  36403. * normal/execute.c (grub_script_execute_cmdif): Likewise.
  36404. * normal/script.c (grub_script_create_cmdif): Likewise.
  36405. 2006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
  36406. * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
  36407. top.
  36408. (grub_hfsplus_btree_recptr): Likewise.
  36409. (grub_hfsplus_find_block): Do not take RETRY any longer. Use
  36410. FILEBLOCK both to pass a block number and store next block
  36411. number.
  36412. (grub_hfsplus_read_block): Rewritten heavily to support an extent
  36413. overflow file correctly. Specify errors appropriately, because
  36414. fshelp expects that GRUB_ERRNO is set when fails. Reuse
  36415. grub_hfsplus_btree_recptr to get the pointer to a found key.
  36416. (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
  36417. is found.
  36418. * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
  36419. linux.mod.
  36420. (_linux_mod_SOURCES): New variable.
  36421. (_linux_mod_CFLAGS): Likewise.
  36422. (_linux_mod_LDFLAGS): Likewise.
  36423. (linux_mod_SOURCES): Likewise.
  36424. (linux_mod_CFLAGS): Likewise.
  36425. (linux_mod_LDFLAGS): Likewise.
  36426. * DISTLIST: Added loader/i386/efi/linux.c,
  36427. loader/i386/efi/linux_normal.c and
  36428. include/grub/i386/efi/loader.h.
  36429. * loader/i386/efi/linux.c: New file.
  36430. * loader/i386/efi/linux_normal.c: Likewise.
  36431. * include/grub/i386/efi/loader.h: Likewise.
  36432. 2006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
  36433. * commands/blocklist.c: New file.
  36434. * DISTLIST: Added commands/blocklist.c.
  36435. * term/efi/console.c (grub_console_highlight_color): Use a lighter
  36436. color for the background, and a darker color for the foreground.
  36437. (grub_console_checkkey): Return READ_KEY.
  36438. (grub_console_cls): Set the background to
  36439. GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
  36440. * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
  36441. * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
  36442. the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
  36443. * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
  36444. prototype.
  36445. * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
  36446. BG. The spec is wrong again.
  36447. * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
  36448. prototype.
  36449. [GRUB_UTIL] (grub_blocklist_fini): Likewise.
  36450. * conf/i386-pc.rmk (grub_emu_SOURCES): Added
  36451. commands/blocklist.c.
  36452. * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
  36453. * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
  36454. (blocklist_mod_SOURCES): New variable.
  36455. (blocklist_mod_CFLAGS): Likewise.
  36456. (blocklist_mod_LDFLAGS): Likewise.
  36457. 2006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
  36458. * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
  36459. duplication.
  36460. (lba_mode): Use %eax more intensively to reduce the code size.
  36461. 2006-05-20 Marco Gerards <marco@gnu.org>
  36462. * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
  36463. * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
  36464. for `menuentry'.
  36465. (script): Accept leading newlines.
  36466. (newlines): New rule to describe 0 or more newlines.
  36467. (commands): Accept `command' with trailing newline. Fixed the
  36468. order in which arguments were passed to `grub_script_add_cmd'.
  36469. Accept commands separated by newlines.
  36470. (function): Changed to accept newlines.
  36471. (menuentry) Rewritten.
  36472. * normal/script.c (grub_script_create_cmdmenu): Add new entries in
  36473. front of the list, instead of to the end.
  36474. 2006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
  36475. * util/i386/pc/grub-install.in (bindir): New variable.
  36476. (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
  36477. Shaver <lbgwjl@gmail.com>.
  36478. 2006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
  36479. * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
  36480. grub/machine/linux.h
  36481. * loader/i386/pc/linux.c: Likewise.
  36482. * include/grub/i386/pc/linux.h: Moved to ...
  36483. * include/grub/i386/linux.h: ... here.
  36484. * include/grub/i386/linux.h (struct linux_kernel_params): New
  36485. struct.
  36486. 2006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
  36487. * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
  36488. checking.
  36489. (grub_video_vbe_blit_glyph): Likewise.
  36490. (grub_video_vbe_blit_bitmap): Likewise.
  36491. (grub_video_vbe_blit_render_target): Likewise.
  36492. 2006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
  36493. * configure.ac (--with-platform): Properly quote the square
  36494. brackets.
  36495. 2006-05-08 Marco Gerards <marco@gnu.org>
  36496. * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
  36497. this...
  36498. (kernel_elf_HEADERS): ...to this. Updated all users.
  36499. (grubof_symlist.c): Renamed from this...
  36500. (kernel_elf_symlist.c): ...to this. Updated all users.
  36501. (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
  36502. (grubof_SOURCES): Renamed from this...
  36503. (kernel_elf_SOURCES): ...to this.
  36504. (grubof_HEADERS): Renamed from this...
  36505. (kernel_elf_HEADERS): ...to this.
  36506. (grubof_CFLAGS): Renamed from this...
  36507. (kernel_elf_CFLAGS): ...to this.
  36508. (grubof_ASFLAGS): Renamed from this...
  36509. (kernel_elf_ASFLAGS): ...to this.
  36510. (grubof_LDFLAGS): Renamed from this...
  36511. (kernel_elf_LDFLAGS): ...to this.
  36512. * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
  36513. this...
  36514. (kernel_elf_HEADERS): ...to this. Updated all users.
  36515. (grubof_symlist.c): Renamed from this...
  36516. (kernel_elf_symlist.c): ...to this. Updated all users.
  36517. (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
  36518. (grubof_SOURCES): Renamed from this...
  36519. (kernel_elf_SOURCES): ...to this.
  36520. (grubof_HEADERS): Renamed from this...
  36521. (kernel_elf_HEADERS): ...to this.
  36522. (grubof_CFLAGS): Renamed from this...
  36523. (kernel_elf_CFLAGS): ...to this.
  36524. (grubof_ASFLAGS): Renamed from this...
  36525. (kernel_elf_ASFLAGS): ...to this.
  36526. (grubof_LDFLAGS): Renamed from this...
  36527. (kernel_elf_LDFLAGS): ...to this.
  36528. * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
  36529. `kernel.elf' instead of `grubof'.
  36530. 2006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
  36531. Add --with-platform to configure. Use pkglibdir instead of
  36532. pkgdatadir. This is reported by Roger Leigh.
  36533. * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
  36534. (host_vendor): Likewise.
  36535. (host_os): Likewise.
  36536. (pkgdatadir): Likewise.
  36537. (platform): New variable.
  36538. (pkglibdir): Likewise.
  36539. Use PKGLIBDIR instead of PKGDATADIR.
  36540. * util/i386/pc/grub-install.in (datadir): Removed.
  36541. (host_vendor): Likewise.
  36542. (host_os): Likewise.
  36543. (pkgdatadir): Likewise.
  36544. (platform): New variable.
  36545. (pkglibdir): Likewise.
  36546. Use PKGLIBDIR instead of PKGDATADIR.
  36547. * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
  36548. instead of GRUB_DATADIR.
  36549. (main): Likewise.
  36550. * util/i386/pc/grub-mkimage.c (usage): Likewise.
  36551. (main): Likewise.
  36552. * util/i386/efi/grub-mkimage.c (usage): Likewise.
  36553. (main): Likewise.
  36554. * configure.ac (--with-platform): New option.
  36555. Use PLATFORM instead of HOST_VENDOR to specify a platform.
  36556. * Makefile.in: Include a makefile based on PLATFORM instead of
  36557. HOST_VENDOR.
  36558. (pkgdatadir): Not appended by the machine type.
  36559. (pkglibdir): Appended by the machine type.
  36560. (host_vendor): Removed.
  36561. (platform): New variable.
  36562. (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
  36563. (install-local): Use PKGLIBDIR instead of PKGDATADIR.
  36564. (uninstall): Likewise.
  36565. 2006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
  36566. Use the environment context in the menu. Remove the commands
  36567. "default" and "timeout", and use variables instead.
  36568. * normal/menu.c: Include grub/env.h.
  36569. (print_entry): Cast TITLE to silence gcc.
  36570. (get_timeout): New function.
  36571. (set_timeout): Likewise.
  36572. (get_entry_number): Likewise.
  36573. (run_menu): Use a default entry, a fallback entry and a timeout
  36574. in the environment variables "default", "fallback" and
  36575. "timeout". Also, tweak the default entry if it is not within the
  36576. current menu entries.
  36577. (grub_menu_run): Use a fallback entry in the environment variable
  36578. "fallback".
  36579. * normal/main.c (read_config_file): Do not initialize
  36580. NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
  36581. NEWMENU->TIMEOUT.
  36582. (grub_normal_execute): Use a data slot to store the menu.
  36583. * include/grub/normal.h (struct grub_menu): Removed default_entry,
  36584. fallback_entry and timeout.
  36585. (struct grub_menu_list): Removed.
  36586. (grub_menu_list_t): Likewise.
  36587. (struct grub_context): Likewise.
  36588. (grub_context_t): Likewise.
  36589. (grub_context_get): Likewise.
  36590. (grub_context_get_current_menu): Likewise.
  36591. (grub_context_push_menu): Likewise.
  36592. (grub_context_pop_menu): Likewise.
  36593. (grub_default_init): Likewise.
  36594. (grub_default_fini): Likewise.
  36595. (grub_timeout_init): Likewise.
  36596. (grub_timeout_fini): Likewise.
  36597. * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
  36598. and timeout.mod.
  36599. (normal_mod_SOURCES): Removed normal/context.c.
  36600. * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
  36601. commands/default.c, commands/timeout.c and normal/context.c.
  36602. (normal_mod_SOURCES): Removed normal/context.c.
  36603. * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
  36604. commands/timeout.c and normal/context.c.
  36605. (normal_mod_SOURCES): Removed normal/context.c.
  36606. * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
  36607. commands/default.c, commands/timeout.c and normal/context.c.
  36608. (normal_mod_SOURCES): Removed normal/context.c.
  36609. * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
  36610. timeout.mod.
  36611. (default_mod_SOURCES): Removed.
  36612. (default_mod_CFLAGS): Likewise.
  36613. (default_mod_LDFLAGS): Likewise.
  36614. (timeout_mod_SOURCES): Removed.
  36615. (timeout_mod_CFLAGS): Likewise.
  36616. (timeout_mod_LDFLAGS): Likewise.
  36617. * DISTLIST: Removed commands/default.c, commands/timeout.c and
  36618. normal/context.c.
  36619. * commands/default.c: Removed.
  36620. * commands/timeout.c: Likewise.
  36621. * normal/context.c: Likewise.
  36622. 2006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
  36623. * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
  36624. 2006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
  36625. * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
  36626. "next" to "prev" for readability.
  36627. (struct grub_env_sorted_var): New struct.
  36628. (grub_env_context): Renamed to ...
  36629. (initial_context): ... this.
  36630. (grub_env_var_context): Renamed to ...
  36631. (current_context): ... this.
  36632. (grub_env_find): Look only at CURRENT_CONTEXT.
  36633. (grub_env_context_open): Rewritten to copy exported variables from
  36634. previous context.
  36635. (grub_env_context_close): Rewritten according to the new
  36636. scheme. Also, add an assertion to prevent the initial context from
  36637. removed.
  36638. (grub_env_insert): Removed the code for the sorted list.
  36639. (grub_env_remove): Likewise.
  36640. (grub_env_export): Simply mark the variable with
  36641. GRUB_ENV_VAR_GLOBAL.
  36642. (grub_env_set): A cosmetic change for naming consistency.
  36643. (grub_env_get): Likewise.
  36644. (grub_env_unset): Likewise.
  36645. (grub_env_iterate): Rewritten to sort variables within this
  36646. function.
  36647. (grub_register_variable_hook): Fixed for naming consistency. Call
  36648. grub_env_find again, only if NAME is not found at the first time.
  36649. (mangle_data_slot_name): New function.
  36650. (grub_env_set_data_slot): Likewise.
  36651. (grub_env_get_data_slot): Likewise.
  36652. (grub_env_unset_data_slot): Likewise.
  36653. * include/grub/env.h (grub_env_var_type): New enum.
  36654. (GRUB_ENV_VAR_LOCAL): New constant.
  36655. (GRUB_ENV_VAR_GLOBAL): Likewise.
  36656. (GRUB_ENV_VAR_DATA): Likewise.
  36657. (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
  36658. "type".
  36659. (grub_env_set): Replace VAR with NAME for consistency.
  36660. (grub_register_variable_hook): Likewise.
  36661. (grub_env_export): Specify the name of the argument.
  36662. (grub_env_set_data_slot): New prototype.
  36663. (grub_env_get_data_slot): Likewise.
  36664. (grub_env_unset_data_slot): Likewise.
  36665. 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
  36666. Extend the loader so that GRUB can accept a loader which comes
  36667. back to GRUB when a loaded image exits. Also, this change adds
  36668. support for a chainloader on EFI.
  36669. * term/efi/console.c: Include grub/misc.h.
  36670. (grub_console_checkkey): Display a scan code on the top for
  36671. debugging. This will be removed once the EFI port gets stable.
  36672. Correct the scan code mapping.
  36673. * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
  36674. allocate memory from larger regions, in order to reduce the number
  36675. of allocated regions. Otherwise, the MacOSX loader panics.
  36676. (filter_memory_map): Avoid less than 1MB for compatibility with
  36677. other loaders.
  36678. (add_memory_regions): Allocate from the tail of a region, if
  36679. possible, to avoid allocating a region near to 1MB, for the MacOSX
  36680. loader.
  36681. * kern/efi/init.c (grub_efi_set_prefix): Specify
  36682. GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
  36683. * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
  36684. argument IMAGE_HANDLE and specify it to get a loaded image.
  36685. (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
  36686. grub_efi_get_loaded_image.
  36687. (grub_efi_get_filename): Divide the length by the size of
  36688. grub_efi_char16_t.
  36689. (grub_efi_get_device_path): New function.
  36690. (grub_efi_print_device_path): Print End Device Path nodes. Divide
  36691. the length by the size of grub_efi_char16_t for a file path device
  36692. path node.
  36693. * kern/loader.c (grub_loader_noreturn): New variable.
  36694. (grub_loader_set): Accept a new argument NORETURN. Set
  36695. GRUB_LOADER_NORETURN to NORETURN.
  36696. All callers changed.
  36697. (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
  36698. grub_machine_fini.
  36699. * include/grub/efi/efi.h (grub_efi_get_device_path): New
  36700. prototype.
  36701. (grub_efi_get_loaded_image): Take an argument to specify an image
  36702. handle.
  36703. * include/grub/loader.h (grub_loader_set): Added one more argument
  36704. NORETURN.
  36705. * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
  36706. instead of grub_efi_open_protocol.
  36707. (grub_efidisk_get_device_name): Likewise.
  36708. (grub_efidisk_close): Print a newline.
  36709. (grub_efidisk_get_device_handle): Fixed to use
  36710. GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
  36711. GRUB_EFI_DEVICE_PATH_TYPE.
  36712. * disk/efi/efidisk.c (device_path_guid): Moved to ...
  36713. * kern/efi/efi.c (device_path_guid): ... here.
  36714. * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
  36715. chain.mod.
  36716. (kernel_mod_HEADERS): Added efi/disk.h.
  36717. (_chain_mod_SOURCES): New variable.
  36718. (_chain_mod_CFLAGS): Likewise.
  36719. (_chain_mod_LDFLAGS): Likewise.
  36720. (chain_mod_SOURCES): Likewise.
  36721. (chain_mod_CFLAGS): Likewise.
  36722. (chain_mod_LDFLAGS): Likewise.
  36723. * DISTLIST: Added include/grub/efi/chainloader.h,
  36724. loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
  36725. * include/grub/efi/chainloader.h: New file.
  36726. * loader/efi/chainloader.c: Likewise.
  36727. * loader/efi/chainloader_normal.c: Likewise.
  36728. 2006-04-30 Marco Gerards <marco@gnu.org>
  36729. * commands/configfile.c (grub_cmd_source): New function.
  36730. (GRUB_MOD_INIT): Register the commands `source' and `.'.
  36731. (GRUB_MOD_FINI): De-register the commands `source' and `.'.
  36732. 2006-04-30 Marco Gerards <marco@gnu.org>
  36733. * normal/execute.c (grub_script_execute_cmd): Change the return
  36734. type to `grub_err_t'. Correctly return the error.
  36735. (grub_script_execute_cmdline): In case a command line is not a
  36736. command or a function, try to interpret it as an assignment.
  36737. 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
  36738. * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
  36739. (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
  36740. skip a node whose name is obviously invalid as UTF-16,
  36741. i.e. contains a NUL character. Stop the iteration when the last
  36742. directory entry is found. Instead of using the return value of
  36743. grub_hfsplus_btree_iterate_node, store the value in RET and use
  36744. it, because the iterator can be stopped by the last directory
  36745. entry.
  36746. 2006-04-30 Marco Gerards <marco@gnu.org>
  36747. * include/grub/env.h (grub_env_export): New prototype. Reported
  36748. by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
  36749. 2006-04-30 Marco Gerards <marco@gnu.org>
  36750. * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
  36751. size of the extents in a catalog file record.
  36752. 2006-04-29 Marco Gerards <marco@gnu.org>
  36753. * commands/configfile.c (grub_cmd_configfile): Execute the
  36754. configfile within its own context.
  36755. * include/grub/env.h (grub_env_context_open): New prototype.
  36756. (grub_env_context_close): Likewise.
  36757. * kern/env.c (grub_env): Removed.
  36758. (grub_env_sorted): Likewise.
  36759. (grub_env_context): New variable.
  36760. (grub_env_var_context): Likewise.
  36761. (grub_env_find): Search both the active context and the global
  36762. context.
  36763. (grub_env_context_open): New function.
  36764. (grub_env_context_close): Likewise.
  36765. (grub_env_insert): Likewise.
  36766. (grub_env_remove): Likewise.
  36767. (grub_env_export): Likewise.
  36768. (grub_env_set): Changed to use helper functions to avoid code
  36769. duplication.
  36770. (grub_env_iterate): Rewritten so both the current context and the
  36771. global context are being used.
  36772. * normal/command.c (export_command): New function.
  36773. (grub_command_init): Register the `export' function.
  36774. 2006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
  36775. * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
  36776. explicitly to suppress gcc's warnings.
  36777. * fs/fat.c (grub_fat_find_dir): Likewise.
  36778. (grub_fat_label): Likewise.
  36779. * fs/xfs.c (grub_xfs_read_inode): Likewise.
  36780. (grub_xfs_mount): Likewise.
  36781. (grub_xfs_label): Likewise.
  36782. * fs/affs.c (grub_affs_mount): Likewise.
  36783. (grub_affs_label): Likewise.
  36784. (grub_affs_iterate_dir): Likewise.
  36785. * fs/sfs.c (grub_sfs_mount): Likewise.
  36786. (grub_sfs_iterate_dir): Likewise.
  36787. * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
  36788. * fs/hfs.c (grub_hfs_mount): Likewise.
  36789. (grub_hfs_cmp_catkeys): Likewise.
  36790. (grub_hfs_find_dir): Likewise.
  36791. (grub_hfs_dir): Likewise.
  36792. (grub_hfs_label): Likewise.
  36793. * fs/jfs.c (grub_jfs_mount): Likewise.
  36794. (grub_jfs_opendir): Likewise.
  36795. (grub_jfs_getent): Likewise.
  36796. (grub_jfs_lookup_symlink): Likewise.
  36797. (grub_jfs_label): Likewise.
  36798. * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
  36799. (grub_hfsplus_iterate_dir): Likewise.
  36800. (grub_hfsplus_btree_iterate_node): Made static.
  36801. * util/grub-emu.c (prefix): New variable.
  36802. (grub_machine_set_prefix): New function.
  36803. (main): Do not set the environment variable "prefix" here. Only
  36804. set PREFIX, which is used later by grub_machine_set_prefix.
  36805. * include/grub/video.h: Do not include grub/symbol.h.
  36806. (grub_video_register): Not exported. This symbol is not defined in
  36807. the kernel.
  36808. (grub_video_unregister): Likewise.
  36809. (grub_video_iterate): Likewise.
  36810. (grub_video_setup): Likewise.
  36811. (grub_video_restore): Likewise.
  36812. (grub_video_get_info): Likewise.
  36813. (grub_video_get_blit_format): Likewise.
  36814. (grub_video_set_palette): Likewise.
  36815. (grub_video_get_palette): Likewise.
  36816. (grub_video_set_viewport): Likewise.
  36817. (grub_video_get_viewport): Likewise.
  36818. (grub_video_map_color): Likewise.
  36819. (grub_video_map_rgb): Likewise.
  36820. (grub_video_map_rgba): Likewise.
  36821. (grub_video_fill_rect): Likewise.
  36822. (grub_video_blit_glyph): Likewise.
  36823. (grub_video_blit_bitmap): Likewise.
  36824. (grub_video_blit_render_target): Likewise.
  36825. (grub_video_scroll): Likewise.
  36826. (grub_video_swap_buffers): Likewise.
  36827. (grub_video_create_render_target): Likewise.
  36828. (grub_video_delete_render_target): Likewise.
  36829. (grub_video_set_active_render_target): Likewise.
  36830. * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
  36831. Undefined.
  36832. [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
  36833. * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
  36834. config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
  36835. (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
  36836. instead of $(srcdir)/genkernsyms.sh.
  36837. * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
  36838. config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
  36839. (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
  36840. instead of $(srcdir)/genkernsyms.sh.
  36841. * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
  36842. gensymlist.sh instead of $(srcdir)/gensymlist.sh.
  36843. (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
  36844. instead of $(srcdir)/genkernsyms.sh.
  36845. * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
  36846. gensymlist.sh instead of $(srcdir)/gensymlist.sh.
  36847. (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
  36848. instead of $(srcdir)/genkernsyms.sh.
  36849. * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
  36850. genkernsyms.sh.
  36851. * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
  36852. genkernsyms.sh.
  36853. (gensymlist.sh): New target.
  36854. (genkernsyms.sh): Likewise.
  36855. * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
  36856. genkernsyms.sh.in and gensymlist.sh.in.
  36857. * genkernsyms.sh: Removed.
  36858. * gensymlist.sh: Likewise.
  36859. * genkernsyms.sh.in: New file.
  36860. * gensymlist.sh.in: Likewise.
  36861. 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
  36862. * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
  36863. clobber "prefix", since we may have already set it manually.
  36864. 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
  36865. * kern/misc.c (abort): New alias for grub_abort.
  36866. 2006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
  36867. A new machine-specific function "grub_machine_set_prefix" is
  36868. defined. This is called after loading modules, so that a prefix
  36869. initialization can use modules. Also, this change adds an
  36870. intensive debugging feature for the memory manager via the
  36871. configure option "--enable-mm-debug".
  36872. * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
  36873. PART.LEN.
  36874. * kern/sparc64/ieee1275/init.c (abort): Removed.
  36875. (grub_stop): Likewise.
  36876. (grub_exit): New function.
  36877. (grub_set_prefix): Renamed to ...
  36878. (grub_machine_set_prefix): ... this.
  36879. (grub_machine_init): Do not call grub_set_prefix.
  36880. * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
  36881. (grub_machine_set_prefix): ... this.
  36882. (grub_machine_init): Do not call grub_set_prefix.
  36883. * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
  36884. (grub_machine_init): Do not set the prefix here.
  36885. * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
  36886. * kern/efi/init.c: Include grub/mm.h.
  36887. (grub_efi_set_prefix): New function.
  36888. * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
  36889. (grub_efi_get_filename): New function.
  36890. (grub_print_device_path): Renamed to ...
  36891. (grub_efi_print_device_path): ... this.
  36892. * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
  36893. [MM_DEBUG] (grub_realloc): Likewise.
  36894. [MM_DEBUG] (grub_free): Likewise.
  36895. [MM_DEBUG] (grub_memalign): Likewise.
  36896. [MM_DEBUG] (grub_mm_debug): New variable.
  36897. [MM_DEBUG] (grub_debug_malloc): New function.
  36898. [MM_DEBUG] (grub_debug_free): New function.
  36899. [MM_DEBUG] (grub_debug_realloc): New function.
  36900. [MM_DEBUG] (grub_debug_memalign): New function.
  36901. * kern/misc.c (grub_abort): Print a newline to distinguish
  36902. the message.
  36903. * kern/main.c (grub_main): Call grub_machine_set_prefix and
  36904. grub_set_root_dev after loading modules. This is necessary when
  36905. setting a prefix depends on modules.
  36906. * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
  36907. (grub_efi_print_device_path): ... this.
  36908. (grub_efi_get_filename): New prototype.
  36909. (grub_efi_set_prefix): Likewise.
  36910. * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
  36911. and grub/disk.h.
  36912. (grub_efidisk_get_device_handle): New prototype.
  36913. (grub_efidisk_get_device_name): Likewise.
  36914. * include/grub/mm.h: Include config.h.
  36915. (MM_DEBUG): Removed.
  36916. [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
  36917. [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
  36918. [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
  36919. [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
  36920. [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
  36921. [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
  36922. [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
  36923. [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
  36924. [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
  36925. * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
  36926. * disk/efi/efidisk.c: Include grub/partition.h.
  36927. (iterate_child_devices): New function.
  36928. (add_device): First, compare only last device path nodes, so that
  36929. devices are sorted by the types.
  36930. (grub_efidisk_get_device_handle): New function.
  36931. (grub_efidisk_get_device_name): Likewise.
  36932. * configure.ac (--enable-mm-debug): New option to enable the
  36933. memory manager debugging feature. This makes the binary much
  36934. bigger, so is disabled by default.
  36935. 2006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
  36936. Use grub_abort instead of grub_stop, and grub_exit must be
  36937. define in each architecture now. Also, this change adds support
  36938. for EFI disks.
  36939. * util/i386/pc/grub-probefs.c: Include grub/term.h.
  36940. (grub_getkey): New function.
  36941. (grub_term_get_current): Likewise.
  36942. * util/i386/pc/grub-setup.c: Include grub/term.h.
  36943. (grub_getkey): New function.
  36944. (grub_term_get_current): Likewise.
  36945. * util/misc.c (grub_stop): Renamed to ...
  36946. (grub_exit): ... this.
  36947. * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
  36948. (grub_exit): ... this.
  36949. (grub_machine_init): Use grub_abort instead of abort.
  36950. (grub_stop): Removed.
  36951. * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
  36952. abort.
  36953. * kern/i386/pc/startup.S (grub_exit): New function.
  36954. (cold_reboot): New label.
  36955. * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
  36956. (grub_efi_init): Call grub_efidisk_init.
  36957. (grub_efi_fini): Call grub_efidisk_fini.
  36958. * kern/efi/efi.c: Include grub/mm.h.
  36959. (grub_efi_console_control_guid): Renamed to ...
  36960. (console_control_guid): ... this.
  36961. (grub_efi_loaded_image_guid): Renamed to ...
  36962. (loaded_image_guid): ... this.
  36963. (grub_efi_locate_handle): New function.
  36964. (grub_efi_open_protocol): Likewise.
  36965. (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
  36966. GRUB_EFI_CONSOLE_CONTROL_GUID.
  36967. (grub_efi_exit): Removed.
  36968. (grub_stop): Likewise.
  36969. (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
  36970. (grub_exit): New function.
  36971. (grub_print_device_path): Likewise.
  36972. * kern/rescue.c (grub_rescue_cmd_exit): New function.
  36973. (grub_enter_rescue_mode): Register "exit".
  36974. * kern/misc.c (grub_real_dprintf): A cosmetic change.
  36975. (grub_abort): New function.
  36976. * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
  36977. * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
  36978. * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
  36979. * include/grub/efi/efi.h (grub_efi_exit): Removed.
  36980. (grub_print_device_path): New prototype.
  36981. (grub_efi_locate_handle): Likewise.
  36982. (grub_efi_open_protocol): Likewise.
  36983. * include/grub/efi/disk.h (grub_efidisk_fini): New file.
  36984. * disk/efi/efidisk.c: Likewise.
  36985. * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
  36986. * include/grub/efi/console_control.h
  36987. (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
  36988. * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
  36989. last 8 bytes as an array.
  36990. (GRUB_EFI_DISK_IO_GUID): New macro.
  36991. (GRUB_EFI_BLOCK_IO_GUID): Likewise.
  36992. (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
  36993. (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
  36994. grub_uint8_t.
  36995. (struct grub_efi_guid): Use an array to specify the last 8 bytes.
  36996. (struct grub_efi_device_path): Rename the member "sub_type" to
  36997. "subtype".
  36998. (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
  36999. (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
  37000. (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
  37001. (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
  37002. (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
  37003. (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
  37004. (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
  37005. (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
  37006. (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
  37007. (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
  37008. (struct grub_efi_pci_device_path): New structure.
  37009. (grub_efi_pci_device_path_t): New type.
  37010. (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
  37011. (struct grub_efi_pccard_device_path): New structure.
  37012. (grub_efi_pccard_device_path_t): New type.
  37013. (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
  37014. (struct grub_efi_memory_mapped_device_path): New structure.
  37015. (grub_efi_memory_mapped_device_path_t): New type.
  37016. (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
  37017. (struct grub_efi_vendor_device_path): New structure.
  37018. (grub_efi_vendor_device_path_t): New type.
  37019. (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
  37020. (struct grub_efi_controller_device_path): New structure.
  37021. (grub_efi_controller_device_path_t): New type.
  37022. (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
  37023. (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
  37024. (struct grub_efi_acpi_device_path): New structure.
  37025. (grub_efi_acpi_device_path_t): New type.
  37026. (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
  37027. (struct grub_efi_expanded_acpi_device_path): New structure.
  37028. (grub_efi_expanded_acpi_device_path_t): New type.
  37029. (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
  37030. (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
  37031. (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
  37032. (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
  37033. (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
  37034. (struct grub_efi_atapi_device_path): New structure.
  37035. (grub_efi_atapi_device_path_t): New type.
  37036. (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
  37037. (struct grub_efi_fibre_channel_device_path): New structure.
  37038. (grub_efi_fibre_channel_device_path_t): New type.
  37039. (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
  37040. (struct grub_efi_1394_device_path): New structure.
  37041. (grub_efi_1394_device_path_t): New type.
  37042. (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
  37043. (struct grub_efi_usb_device_path): New structure.
  37044. (grub_efi_usb_device_path_t): New type.
  37045. (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
  37046. (struct grub_efi_usb_class_device_path): New structure.
  37047. (grub_efi_usb_class_device_path_t): New type.
  37048. (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
  37049. (struct grub_efi_i2o_device_path): New structure.
  37050. (grub_efi_i2o_device_path_t): New type.
  37051. (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
  37052. (struct grub_efi_mac_address_device_path): New structure.
  37053. (grub_efi_mac_address_device_path_t): New type.
  37054. (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
  37055. (struct grub_efi_ipv4_device_path): New structure.
  37056. (grub_efi_ipv4_device_path_t): New type.
  37057. (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
  37058. (struct grub_efi_ipv6_device_path): New structure.
  37059. (grub_efi_ipv6_device_path_t): New type.
  37060. (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
  37061. (struct grub_efi_infiniband_device_path): New structure.
  37062. (grub_efi_infiniband_device_path_t): New type.
  37063. (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
  37064. (struct grub_efi_uart_device_path): New structure.
  37065. (grub_efi_uart_device_path_t): New type.
  37066. (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
  37067. (struct grub_efi_vendor_messaging_device_path): New structure.
  37068. (grub_efi_vendor_messaging_device_path_t): New type.
  37069. (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
  37070. (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
  37071. (struct grub_efi_hard_drive_device_path): New structure.
  37072. (grub_efi_hard_drive_device_path_t): New type.
  37073. (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
  37074. (struct grub_efi_cdrom_device_path): New structure.
  37075. (grub_efi_cdrom_device_path_t): New type.
  37076. (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
  37077. (struct grub_efi_vendor_media_device_path): New structure.
  37078. (grub_efi_vendor_media_device_path_t): New type.
  37079. (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
  37080. (struct grub_efi_file_path_device_path): New structure.
  37081. (grub_efi_file_path_device_path_t): New type.
  37082. (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
  37083. (struct grub_efi_protocol_device_path): New structure.
  37084. (grub_efi_protocol_device_path_t): New type.
  37085. (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
  37086. (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
  37087. (struct grub_efi_bios_device_path): New structure.
  37088. (grub_efi_bios_device_path_t): New type.
  37089. (struct grub_efi_disk_io): New structure.
  37090. (grub_efi_disk_io_t): New type.
  37091. (struct grub_efi_block_io_media): New structure.
  37092. (grub_efi_block_io_media_t): New type.
  37093. (struct grub_efi_block_io): New structure.
  37094. (grub_efi_block_io_t): New type.
  37095. * include/grub/misc.h (grub_stop): Removed.
  37096. (grub_exit): New prototype.
  37097. (grub_abort): Likewise.
  37098. * include/grub/disk.h (enum grub_disk_dev_id): Added
  37099. GRUB_DISK_DEVICE_EFIDISK_ID.
  37100. * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
  37101. disk/efi/efidisk.c.
  37102. (kernel_syms.lst): Remove the target if an error occurs.
  37103. 2006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
  37104. * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
  37105. as it was simply too buggy.
  37106. 2006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
  37107. * kern/misc.c (grub_lltoa): New function.
  37108. (grub_vsprintf): Added support for the long long suffix,
  37109. i.e. "ll".
  37110. 2006-04-20 Hollis Blanchard <hollis@penguinppc.org>
  37111. * Makefile.in (LDFLAGS): Add variable.
  37112. (LD): Remove variable.
  37113. * configure.ac: Add -m32 to LDFLAGS.
  37114. * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
  37115. * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
  37116. (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
  37117. (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
  37118. suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
  37119. variables.
  37120. * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
  37121. * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
  37122. * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
  37123. 2006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
  37124. * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
  37125. length for unknown glyph.
  37126. 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
  37127. Add support for pre-loaded modules into the EFI port.
  37128. * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
  37129. completely. Accept one more argument DIR. The caller has changed.
  37130. * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
  37131. * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
  37132. (grub_efi_loaded_image_guid): New variable.
  37133. (grub_efi_get_loaded_image): New function.
  37134. (grub_arch_modules_addr): Likewise.
  37135. * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
  37136. prototype.
  37137. * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
  37138. (struct grub_efi_loaded_image): New structure.
  37139. (grub_efi_loaded_image_t): New type.
  37140. 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
  37141. * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
  37142. size with GRUB_OS_AREA_SIZE as grub_size_t instead of
  37143. grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
  37144. 2006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
  37145. * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
  37146. 2006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
  37147. * DISTLIST: Added include/grub/efi/console.h,
  37148. include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
  37149. kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
  37150. * include/grub/efi/console.h: New file.
  37151. * include/grub/efi/time.h: Likewise.
  37152. * include/grub/i386/efi/kernel.h: Likewise.
  37153. * kern/efi/init.c: Likewise.
  37154. * kern/efi/mm.c: Likewise.
  37155. * term/efi/console.c: Likewise.
  37156. * kern/i386/efi/init.c: Do not include grub/machine/time.h.
  37157. (grub_stop): Removed.
  37158. (grub_get_rtc): Likewise.
  37159. (grub_machine_init): Simply call grub_efi_init.
  37160. (grub_machine_fini): Call grub_efi_fini.
  37161. * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
  37162. (grub_efi_output_string): Removed.
  37163. (grub_efi_stall): New function.
  37164. (grub_stop): Likewise.
  37165. (grub_get_rtc): Likewise.
  37166. * include/grub/efi/efi.h (grub_efi_output_string): Removed.
  37167. (grub_efi_stall): New prototype.
  37168. (grub_efi_allocate_pages): Likewise.
  37169. (grub_efi_free_pages): Likewise.
  37170. (grub_efi_get_memory_map): Likewise.
  37171. (grub_efi_mm_init): Likewise.
  37172. (grub_efi_mm_fini): Likewise.
  37173. (grub_efi_init): Likewise.
  37174. (grub_efi_fini): Likewise.
  37175. * include/grub/i386/efi/time.h: Do not include
  37176. grub/symbol.h. Include grub/efi/time.h.
  37177. (GRUB_TICKS_PER_SECOND): Removed.
  37178. (grub_get_rtc): Likewise.
  37179. * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
  37180. Added padding. The EFI spec is buggy.
  37181. (GRUB_EFI_BLACK): New macro.
  37182. (GRUB_EFI_BLUE): Likewise.
  37183. (GRUB_EFI_GREEN): Likewise.
  37184. (GRUB_EFI_CYAN): Likewise.
  37185. (GRUB_EFI_RED): Likewise.
  37186. (GRUB_EFI_MAGENTA): Likewise.
  37187. (GRUB_EFI_BROWN): Likewise.
  37188. (GRUB_EFI_LIGHTGRAY): Likewise.
  37189. (GRUB_EFI_BRIGHT): Likewise.
  37190. (GRUB_EFI_DARKGRAY): Likewise.
  37191. (GRUB_EFI_LIGHTBLUE): Likewise.
  37192. (GRUB_EFI_LIGHTGREEN): Likewise.
  37193. (GRUB_EFI_LIGHTCYAN): Likewise.
  37194. (GRUB_EFI_LIGHTRED): Likewise.
  37195. (GRUB_EFI_LIGHTMAGENTA): Likewise.
  37196. (GRUB_EFI_YELLOW): Likewise.
  37197. (GRUB_EFI_WHITE): Likewise.
  37198. (GRUB_EFI_BACKGROUND_BLACK): Likewise.
  37199. (GRUB_EFI_BACKGROUND_BLUE): Likewise.
  37200. (GRUB_EFI_BACKGROUND_GREEN): Likewise.
  37201. (GRUB_EFI_BACKGROUND_CYAN): Likewise.
  37202. (GRUB_EFI_BACKGROUND_RED): Likewise.
  37203. (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
  37204. (GRUB_EFI_BACKGROUND_BROWN): Likewise.
  37205. (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
  37206. (GRUB_EFI_TEXT_ATTR): Likewise.
  37207. * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
  37208. kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
  37209. (kernel_mod_HEADERS): Added efi/time.h.
  37210. 2006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
  37211. * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
  37212. include/grub/efi/api.h, include/grub/efi/console_control.h,
  37213. include/grub/efi/efi.h, include/grub/efi/pe32.h,
  37214. include/grub/i386/efi/time.h, kern/efi/efi.c,
  37215. kern/i386/efi/init.c, kern/i386/efi/startup.S,
  37216. and util/i386/efi/grub-mkimage.c.
  37217. * Makefile.in (RMKFILES): Added i386-efi.rmk.
  37218. * genmk.rb (PModule#rule): Do not export symbols if
  37219. #{prefix}_EXPORTS is set to "no".
  37220. * conf/i386-efi.mk: New file.
  37221. * conf/i386-efi.rmk: Likewise.
  37222. * include/grub/efi/api.h: Likewise.
  37223. * include/grub/efi/console_control.h: Likewise.
  37224. * include/grub/efi/efi.h: Likewise.
  37225. * include/grub/efi/pe32.h: Likewise.
  37226. * include/grub/i386/efi/time.h: Likewise.
  37227. * kern/efi/efi.c: Likewise.
  37228. * kern/i386/efi/init.c: Likewise.
  37229. * kern/i386/efi/startup.S: Likewise.
  37230. * util/i386/efi/grub-mkimage.c: Likewise.
  37231. 2006-04-17 Marco Gerards <marco@gnu.org>
  37232. * include/grub/script.h: Include <grub/parser.h> and
  37233. "grub_script.tab.h".
  37234. (struct grub_lexer_param): New struct.
  37235. (struct grub_parser_param): Likewise.
  37236. (grub_script_create_arglist): Pass the state in an argument.
  37237. (grub_script_add_arglist): Likewise.
  37238. (grub_script_create_cmdline): Likewise.
  37239. (grub_script_create_cmdblock): Likewise.
  37240. (grub_script_create_cmdif): Likewise.
  37241. (grub_script_create_cmdmenu): Likewise.
  37242. (grub_script_add_cmd): Likewise.
  37243. (grub_script_arg_add): Likewise.
  37244. (grub_script_lexer_ref): Likewise.
  37245. (grub_script_lexer_deref): Likewise.
  37246. (grub_script_lexer_record_start): Likewise.
  37247. (grub_script_lexer_record_stop): Likewise.
  37248. (grub_script_mem_record): Likewise.
  37249. (grub_script_mem_record_stop): Likewise.
  37250. (grub_script_malloc): Likewise.
  37251. (grub_script_yylex): Likewise.
  37252. (grub_script_yyparse): Likewise.
  37253. (grub_script_yyerror): Likewise.
  37254. (grub_script_yylex): Likewise.
  37255. (grub_script_lexer_init): Return the state.
  37256. * normal/lexer.c (grub_script_lexer_state): Removed variable.
  37257. (grub_script_lexer_done): Likewise.
  37258. (grub_script_lexer_getline): Likewise.
  37259. (grub_script_lexer_refs): Likewise.
  37260. (script): Likewise.
  37261. (newscript): Likewise.
  37262. (record): Likewise.
  37263. (recording): Likewise.
  37264. (recordpos): Likewise.
  37265. (recordlen): Likewise.
  37266. (grub_script_lexer_init): Return the state instead of setting
  37267. global variables.
  37268. (grub_script_lexer_ref): Use the newly added argument for state
  37269. instead of globals.
  37270. (grub_script_lexer_deref): Likewise.
  37271. (grub_script_lexer_record_start): Likewise.
  37272. (grub_script_lexer_record_stop): Likewise.
  37273. (recordchar): Likewise.
  37274. (nextchar): Likewise.
  37275. (grub_script_yylex2): Likewise.
  37276. (grub_script_yylex): Likewise.
  37277. (grub_script_yyerror): Likewise.
  37278. * normal/parser.y (func_mem): Removed variable.
  37279. (menu_entry): Likewise.
  37280. (err): Likewise.
  37281. (%lex-param): New parser option.
  37282. (%parse-param): Likewise.
  37283. (script): Always return the AST.
  37284. (argument): Pass the state around.
  37285. (arguments): Likewise.
  37286. (grubcmd): Likewise.
  37287. (commands): Likewise.
  37288. (function): Likewise.
  37289. (menuentry): Likewise.
  37290. (if_statement): Likewise.
  37291. (if): Likewise.
  37292. * normal/script.c (grub_script_memused): Removed variable.
  37293. (grub_script_parsed): Likewise.
  37294. (grub_script_malloc): Added a state argument. Use that instead of
  37295. global variables.
  37296. (grub_script_mem_record): Likewise.
  37297. (grub_script_mem_record_stop): Likewise.
  37298. (grub_script_arg_add): Likewise.
  37299. (grub_script_add_arglist): Likewise.
  37300. (grub_script_create_cmdline): Likewise.
  37301. (grub_script_create_cmdif): Likewise.
  37302. (grub_script_create_cmdmenu): Likewise.
  37303. (grub_script_add_cmd): Likewise.
  37304. (grub_script_parse): Setup the state before calling the parser.
  37305. 2006-04-16 Marco Gerards <marco@gnu.org>
  37306. * normal/command.c (grub_command_init): Remove the title command.
  37307. * normal/lexer.c (grub_script_yylex): Renamed from this...
  37308. (grub_script_yylex2): ... to this.
  37309. (grub_script_yylex): New function. Temporary
  37310. introduced to filter some tokens.
  37311. (grub_script_yyerror): Print a newline.
  37312. * normal/main.c (read_config_file): Output information about the
  37313. lines that contain errors. Wait for a key after all lines have
  37314. been processed. Don't return an empty menu.
  37315. * normal/parser.y (func_mem): Don't initialize.
  37316. (menu_entry): Likewise.
  37317. (err): New variable.
  37318. (script): Don't return anything when an error was encountered.
  37319. (ws, returns): Removed rules.
  37320. (argument): Disabled concatenated variable support.
  37321. (arguments): Remove explicit separators.
  37322. (grubcmd): Likewise.
  37323. (function): Likewise.
  37324. (menuentry): Likewise.
  37325. (if): Likewise.
  37326. (commands): Likewise. Add error handling.
  37327. * normal/script.c (grub_script_create_cmdline): If
  37328. `grub_script_parsed' is 0, assume the parser encountered an error.
  37329. 2006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
  37330. * configure.ac: Add support for EFI. Fix the typo
  37331. BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
  37332. 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
  37333. * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
  37334. foreign multibyte characters should be shown correctly.
  37335. 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
  37336. * normal/main.c (grub_normal_menu_addentry): Fixed menu size
  37337. calculation.
  37338. (read_config_file): Made it to close file before returning.
  37339. 2006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
  37340. * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
  37341. include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
  37342. video/i386/pc/vbefill.c.
  37343. * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
  37344. video/i386/pc/vbefill.c.
  37345. * include/grub/video.h (grub_video_blit_format): New enum.
  37346. (grub_video_mode_info): Added new member blit_format.
  37347. (grub_video_get_blit_format): New function prototype.
  37348. * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
  37349. function prototype.
  37350. (grub_video_vbe_map_rgb): Likewise.
  37351. (grub_video_vbe_unmap_color): Likewise.
  37352. * include/grub/i386/pc/vbeblit.h: New file.
  37353. * include/grub/i386/pc/vbefill.h: New file.
  37354. * video/video.c (grub_video_get_blit_format): New function.
  37355. (grub_video_vbe_get_video_ptr): Re-declared as non-static.
  37356. (grub_video_vbe_map_rgb): Likewise.
  37357. (grub_video_vbe_unmap_color): Likewise.
  37358. * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
  37359. optimized fills.
  37360. (grub_video_vbe_blit_render_target): Changed to use more optimized
  37361. blits.
  37362. (grub_video_vbe_setup): Added detection for optimized settings.
  37363. (grub_video_vbe_create_render_target): Likewise.
  37364. * video/i386/pc/vbeblit.c: New file.
  37365. * video/i386/pc/vbefill.c: New file.
  37366. 2006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
  37367. * font/manager.c (grub_font_get_glyph): Removed font fixup from
  37368. here...
  37369. * util/unifont2pff.rb: ... and moved it to here. Improved argument
  37370. parsing to support both hex and dec ranges. If filename was missing
  37371. show usage information.
  37372. 2006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
  37373. * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
  37374. video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
  37375. * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
  37376. gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
  37377. (video_mod_SOURCES): Added.
  37378. (video_mod_CFLAGS): Likewise.
  37379. (video_mod_LDFLAGS): Likewise.
  37380. (gfxterm_mod_SOURCES): Likewise.
  37381. (gfxterm_mod_CFLAGS): Likewise.
  37382. (gfxterm_mod_LDFLAGS): Likewise.
  37383. (videotest_mod_SOURCES): Likewise.
  37384. (videotest_mod_CFLAGS): Likewise.
  37385. (videotest_mod_LDFLAGS): Likewise.
  37386. (vesafb_mod_SOURCES): Removed.
  37387. (vesafb_mod_CFLAGS): Likewise.
  37388. (vesafb_mod_LDFLAGS): Likewise.
  37389. (vga_mod_SOURCES): Likewise.
  37390. (vga_mod_CFLAGS): Likewise.
  37391. (vga_mod_LDFLAGS): Likewise.
  37392. * commands/videotest.c: New file.
  37393. * font/manager.c (fill_with_default_glyph): Modified to use
  37394. grub_font_glyph.
  37395. (grub_font_get_glyph): Likewise.
  37396. (fontmanager): Renamed from this...
  37397. (font_manager): ... to this.
  37398. * include/grub/font.h (grub_font_glyph): Added new structure.
  37399. (grub_font_get_glyph): Modified to use grub_font_glyph.
  37400. * include/grub/misc.h (grub_abs): Added as inline function.
  37401. * include/grub/video.h: New file.
  37402. * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
  37403. (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
  37404. (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
  37405. (grub_vbe_get_controller_info): Renamed from this...
  37406. (grub_vbe_bios_get_controller_info): ... to this.
  37407. (grub_vbe_get_mode_info): Renamed from this...
  37408. (grub_vbe_bios_get_mode_info): ... to this.
  37409. (grub_vbe_set_mode): Renamed from this...
  37410. (grub_vbe_bios_set_mode): ... to this.
  37411. (grub_vbe_get_mode): Renamed from this...
  37412. (grub_vbe_bios_get_mode): ... to this.
  37413. (grub_vbe_set_memory_window): Renamed from this...
  37414. (grub_vbe_bios_set_memory_window): ... to this.
  37415. (grub_vbe_get_memory_window): Renamed from this...
  37416. (grub_vbe_bios_get_memory_window): ... to this.
  37417. (grub_vbe_set_scanline_length): Renamed from this...
  37418. (grub_vbe_set_scanline_length): ... to this.
  37419. (grub_vbe_get_scanline_length): Renamed from this...
  37420. (grub_vbe_bios_get_scanline_length): ... to this.
  37421. (grub_vbe_set_display_start): Renamed from this...
  37422. (grub_vbe_bios_set_display_start): ... to this.
  37423. (grub_vbe_get_display_start): Renamed from this...
  37424. (grub_vbe_bios_get_display_start): ... to this.
  37425. (grub_vbe_set_palette_data): Renamed from this...
  37426. (grub_vbe_bios_set_palette_data): ... to this.
  37427. (grub_vbe_set_pixel_rgb): Removed.
  37428. (grub_vbe_set_pixel_index): Likewise.
  37429. * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
  37430. from this...
  37431. (grub_vbe_bios_get_controller_info): ... to this.
  37432. (grub_vbe_get_mode_info): Renamed from this...
  37433. (grub_vbe_bios_get_mode_info): ... to this.
  37434. (grub_vbe_set_mode): Renamed from this...
  37435. (grub_vbe_bios_set_mode): ... to this.
  37436. (grub_vbe_get_mode): Renamed from this...
  37437. (grub_vbe_bios_get_mode): ... to this.
  37438. (grub_vbe_set_memory_window): Renamed from this...
  37439. (grub_vbe_bios_set_memory_window): ... to this.
  37440. (grub_vbe_get_memory_window): Renamed from this...
  37441. (grub_vbe_bios_get_memory_window): ... to this.
  37442. (grub_vbe_set_scanline_length): Renamed from this...
  37443. (grub_vbe_set_scanline_length): ... to this.
  37444. (grub_vbe_get_scanline_length): Renamed from this...
  37445. (grub_vbe_bios_get_scanline_length): ... to this.
  37446. (grub_vbe_set_display_start): Renamed from this...
  37447. (grub_vbe_bios_set_display_start): ... to this.
  37448. (grub_vbe_get_display_start): Renamed from this...
  37449. (grub_vbe_bios_get_display_start): ... to this.
  37450. (grub_vbe_set_palette_data): Renamed from this...
  37451. (grub_vbe_bios_set_palette_data): ... to this.
  37452. (grub_vbe_bios_get_controller_info): Fixed problem with registers
  37453. getting corrupted after calling it. Added more pushes and pops.
  37454. (grub_vbe_bios_set_mode): Likewise.
  37455. (grub_vbe_bios_get_mode): Likewise.
  37456. (grub_vbe_bios_get_memory_window): Likewise.
  37457. (grub_vbe_bios_set_scanline_length): Likewise.
  37458. (grub_vbe_bios_get_scanline_length): Likewise.
  37459. (grub_vbe_bios_get_display_start): Likewise.
  37460. (grub_vbe_bios_set_palette_data): Likewise.
  37461. * normal/cmdline.c (cl_set_pos): Refresh the screen.
  37462. (cl_insert): Likewise.
  37463. (cl_delete): Likewise.
  37464. * term/gfxterm.c: New file.
  37465. * term/i386/pc/vesafb.c: Removed file.
  37466. * video/video.c: New file.
  37467. * video/i386/pc/vbe.c (real2pm): Added new function.
  37468. (grub_video_vbe_draw_pixel): Likewise.
  37469. (grub_video_vbe_get_video_ptr): Likewise.
  37470. (grub_video_vbe_get_pixel): Likewise
  37471. (grub_video_vbe_init): Likewise.
  37472. (grub_video_vbe_fini): Likewise.
  37473. (grub_video_vbe_setup): Likewise.
  37474. (grub_video_vbe_get_info): Likewise.
  37475. (grub_video_vbe_set_palette): Likewise.
  37476. (grub_video_vbe_get_palette): Likewise.
  37477. (grub_video_vbe_set_viewport): Likewise.
  37478. (grub_video_vbe_get_viewport): Likewise.
  37479. (grub_video_vbe_map_color): Likewise.
  37480. (grub_video_vbe_map_rgb): Likewise.
  37481. (grub_video_vbe_map_rgba): Likewise.
  37482. (grub_video_vbe_unmap_color): Likewise.
  37483. (grub_video_vbe_fill_rect): Likewise.
  37484. (grub_video_vbe_blit_glyph): Likewise.
  37485. (grub_video_vbe_blit_bitmap): Likewise.
  37486. (grub_video_vbe_blit_render_target): Likewise.
  37487. (grub_video_vbe_scroll): Likewise.
  37488. (grub_video_vbe_swap_buffers): Likewise.
  37489. (grub_video_vbe_create_render_target): Likewise.
  37490. (grub_video_vbe_delete_render_target): Likewise.
  37491. (grub_video_vbe_set_active_render_target): Likewise.
  37492. (grub_vbe_set_pixel_rgb): Remove function.
  37493. (grub_vbe_set_pixel_index): Likewise.
  37494. (index_color_mode): Remove static variable.
  37495. (active_mode): Likewise.
  37496. (framebuffer): Likewise.
  37497. (bytes_per_scan_line): Likewise.
  37498. (grub_video_vbe_adapter): Added new static variable.
  37499. (framebuffer): Likewise.
  37500. (render_target): Likewise.
  37501. (initial_mode): Likewise.
  37502. (mode_in_use): Likewise.
  37503. (mode_list): Likewise.
  37504. 2006-03-10 Marco Gerards <marco@gnu.org>
  37505. * configure.ac (AC_INIT): Bumped to 1.93.
  37506. * DISTLIST: Added `include/grub/hfs.h'.
  37507. 2006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
  37508. * boot/i386/pc/boot.S (general_error): Before looping, try INT
  37509. 18H, which might help the BIOS falling back to next boot media.
  37510. 2006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
  37511. * util/i386/pc/grub-install.in: Escape a backslash. Reported by
  37512. Poe Chen <poe.poechen@gmail.com>.
  37513. 2006-01-17 Marco Gerards <marco@gnu.org>
  37514. * include/grub/normal.h: Include <grub/script.h>.
  37515. (grub_command_list): Removed struct.
  37516. (grub_command_list_t): Removed type.
  37517. (grub_menu_entry): Remove members `num' and `command_list'. Add
  37518. members `commands' and `sourcecode'.
  37519. * include/grub/script.h: Add inclusion guards.
  37520. (grub_script_cmd_menuentry): New struct.
  37521. (grub_script_execute_menuentry): New prototype.
  37522. (grub_script_lexer_record_start): Likewise.
  37523. (grub_script_lexer_record_stop): Likewise.
  37524. * normal/execute.c (grub_script_execute_menuentry): New function.
  37525. * normal/lexer.c (record, recording, recordpos, recordlen): New
  37526. variables.
  37527. (grub_script_lexer_record_start): New function.
  37528. (grub_script_lexer_record_stop): Likewise.
  37529. (recordchar): Likewise.
  37530. (nextchar): Likewise.
  37531. (grub_script_yylex): Use `nextchar' to fetch new characters. Use
  37532. 2048 as the buffer size. Add the tokens `menuentry' and `@'.
  37533. * normal/main.c: Include <grub/parser.h> and <grub/script.h>
  37534. (current_menu): New variable.
  37535. (free_menu): Mainly rewritten.
  37536. (grub_normal_menu_addentry): New function.
  37537. (read_config_file): Rewritten.
  37538. * normal/menu.c (run_menu_entry): Mainly rewritten.
  37539. * normal/menu_entry.c (make_screen): Rewritten the code to insert
  37540. the menu entry.
  37541. (run): Mainly rewritten.
  37542. * normal/parser.y (menu_entry): New variable.
  37543. (GRUB_PARSER_TOKEN_MENUENTRY): New token.
  37544. (menuentry): New rule.
  37545. (command): Add `menuentry'.
  37546. (if_statement): Allow additional returns before `fi'.
  37547. * normal/script.c (grub_script_create_cmdmenu): New function.
  37548. 2006-01-03 Marco Gerards <marco@gnu.org>
  37549. * INSTALL: GNU Bison is required.
  37550. * configure.ac: Rewritten the test to detect Bison.
  37551. * Makefile.in (YACC): New variable. Reported by Xun Sun
  37552. <xun.sun.cn@gmail.com>.
  37553. 2006-01-03 Marco Gerards <marco@gnu.org>
  37554. * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
  37555. the HFS+ filesystem to filesystem blocks.
  37556. (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
  37557. GCC warning is silenced.
  37558. 2006-01-03 Marco Gerards <marco@gnu.org>
  37559. * partmap/apple.c (apple_partition_map_iterate): Convert the data
  37560. read from disk from big endian to host byte order.
  37561. 2006-01-03 Hollis Blanchard <hollis@penguinppc.org>
  37562. * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
  37563. documentation.
  37564. (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
  37565. (grub_hfs_mount): Grammar fix in error. Make sure this is not an
  37566. embedded HFS+ filesystem.
  37567. (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
  37568. (grub_hfs_sblock): Move from here...
  37569. * include/grub/hfs.h: To here... New file.
  37570. * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
  37571. documentation.
  37572. (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
  37573. New macros.
  37574. (grub_hfsplus_volheader): Change type of member `magic' to
  37575. `grub_uint16_t'.
  37576. (grub_hfsplus_data): Add new member `embedded_offset'.
  37577. (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
  37578. returned block.
  37579. (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
  37580. Calculate the offset.
  37581. 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
  37582. * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
  37583. Removed.
  37584. (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
  37585. 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
  37586. * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
  37587. ENV->NAME is NULL after allocating ENV->VALUE.
  37588. 2005-12-25 Marco Gerards <marco@gnu.org>
  37589. * kern/env.c (grub_env_set): Rewritten the error handling code.
  37590. 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
  37591. * geninit.sh: Made more robust, and more portable.
  37592. 2005-12-25 Marco Gerards <marco@gnu.org>
  37593. Add support for Apple HFS+ filesystems.
  37594. * fs/hfsplus.c: New file.
  37595. * DISTLIST: Added `fs/hfsplus.c'.
  37596. * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
  37597. (hfsplus_mod_SOURCES): New variable.
  37598. (hfsplus_mod_CFLAGS): Likewise.
  37599. (hfsplus_mod_LDFLAGS): Likewise.
  37600. * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
  37601. (grub_setup_SOURCES): Likewise.
  37602. (grub_mkdevicemap_SOURCES): Likewise.
  37603. (grub_emu_SOURCES): Likewise.
  37604. * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
  37605. * fs/fshelp.c (grub_fshelp_log2blksize): New function.
  37606. * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
  37607. 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
  37608. * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
  37609. commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
  37610. include/grub/parser.h, include/grub/script.h, kern/parser.c,
  37611. kern/sparc64/cache.S, normal/execute.c, normal/function.c,
  37612. normal/lexer.c, normal/parser.y, normal/script.c, and
  37613. partmap/gpt.c.
  37614. Removed kern/sparc64/cache.c.
  37615. * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
  37616. grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
  37617. grub_emu_init.c.
  37618. * configure.ac (AC_INIT): Bumped to 1.92.
  37619. 2005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
  37620. * kern/err.c (grub_error_push): Added new function to support error
  37621. stacks.
  37622. (grub_error_pop): Likewise.
  37623. (grub_error_stack_items): New local variable to support error stacks.
  37624. (grub_error_stack_pos): Likewise.
  37625. (grub_error_stack_assert): Likewise.
  37626. (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
  37627. stack depth.
  37628. (grub_print_error): Added support to print errors from error stack.
  37629. * include/grub/err.h (grub_error_push): Added function prototype.
  37630. (grub_error_pop): Likewise.
  37631. 2005-12-09 Hollis Blanchard <hollis@penguinppc.org>
  37632. * configure.ac: Accept `powerpc64' as host_cpu.
  37633. (amd64): Rename to `biarch32'.
  37634. * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
  37635. non-cacheline-aligned addresses.
  37636. * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
  37637. (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
  37638. if `size' is non-zero.
  37639. 2005-12-03 Marco Gerards <mgerards@xs4all.nl>
  37640. * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
  37641. and `cd' to make sure the filename is not prefixed with a
  37642. directory name.
  37643. (pkgdata_MODULES): Add `gpt.mod'.
  37644. (gpt_mod_SOURCES): New variable.
  37645. (gpt_mod_CFLAGS): Likewise.
  37646. (gpt_mod_LDFLAGS): Likewise.
  37647. * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
  37648. * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
  37649. New macro.
  37650. * partmap/gpt.c: New file.
  37651. * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
  37652. GPT partition map is detected.
  37653. 2005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
  37654. * commands/i386/pc/play.c: New file.
  37655. * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
  37656. (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
  37657. macros.
  37658. 2005-11-27 Marco Gerards <mgerards@xs4all.nl>
  37659. * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
  37660. ((unused))' to silence gcc warning.
  37661. 2005-11-26 Hollis Blanchard <hollis@penguinppc.org>
  37662. * configure.ac: Correct `AC_PROG_YACC' test.
  37663. 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
  37664. * util/powerpc/ieee1275/grub-install.in: Run the mount point
  37665. check before installing files.
  37666. 2005-11-22 Mike Small <smallm@panix.com>
  37667. * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
  37668. number regex so multidigit numbers are recognized correctly.
  37669. 2005-11-22 Mike Small <smallm@panix.com>
  37670. * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
  37671. debugging message before attempting to claim memory.
  37672. (grub_rescue_cmd_initrd): Add a claim debugging message and try
  37673. multiple addresses in case of failure.
  37674. 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
  37675. * term/tparm.c (get_space): Remove empty `if' statement.
  37676. * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
  37677. * kern/parser.c (check_varstate): Rename `state' to 's'.
  37678. 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
  37679. * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
  37680. variable definitions to the beginning of each function. Sort stack
  37681. variables by size.
  37682. (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
  37683. `buf' argument to `char *'.
  37684. 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
  37685. * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
  37686. (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
  37687. minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
  37688. hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
  37689. help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
  37690. sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
  37691. configfile.mod, search.mod, gzio.mod and test.mod.
  37692. (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
  37693. (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
  37694. (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
  37695. (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
  37696. (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
  37697. (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
  37698. (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
  37699. (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
  37700. (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
  37701. (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
  37702. (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
  37703. (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
  37704. (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
  37705. (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
  37706. (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
  37707. (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
  37708. (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
  37709. (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
  37710. (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
  37711. (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
  37712. (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
  37713. (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
  37714. (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
  37715. * conf/common.mk (grub_modules_init.lst): Use `find' instead of
  37716. `grep --include'.
  37717. (pkgdata_MODULES): Add test.mod.
  37718. 2005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
  37719. * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
  37720. appending to variables with "+=".
  37721. (PModule): Use full pathname to generate *.lst filenames.
  37722. * Makefile.in: Fixed list rules moved from genmk.rb.
  37723. (.DELETE_ON_ERROR): New special target.
  37724. (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
  37725. * conf/i386-pc.rmk: Include conf/common.mk.
  37726. (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
  37727. minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
  37728. hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
  37729. help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
  37730. sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
  37731. configfile.mod, search.mod, gzio.mod and test.mod.
  37732. (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
  37733. (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
  37734. (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
  37735. (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
  37736. (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
  37737. (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
  37738. (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
  37739. (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
  37740. (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
  37741. (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
  37742. (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
  37743. (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
  37744. (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
  37745. (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
  37746. (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
  37747. (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
  37748. (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
  37749. (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
  37750. (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
  37751. (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
  37752. (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
  37753. (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
  37754. (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
  37755. here...
  37756. * conf/common.rmk: ... to here. New file.
  37757. * conf/common.mk: New file.
  37758. 2005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
  37759. * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
  37760. (grub_script.tab.c): ... here.
  37761. * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
  37762. (grub_script.tab.c): ... here.
  37763. * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
  37764. (grub_script.tab.c): ... here.
  37765. * normal/command.c (grub_command_find): Fixed a memory leak of
  37766. MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
  37767. 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
  37768. * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
  37769. "@" which marks the start of a comment on ARM.
  37770. (VARIABLE): Likewise.
  37771. 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
  37772. Add support for Linux/ADFS partition tables.
  37773. * partmap/acorn.c: New file.
  37774. * include/grub/acorn_filecore.h: Likewise.
  37775. * DISTLIST: Added `partmap/acorn.c' and
  37776. `include/grub/acorn_filecore.h'.
  37777. * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
  37778. `partmap/acorn.c'.
  37779. (pkgdata_MODULES): Add `acorn.mod'.
  37780. (acorn_mod_SOURCES): New variable.
  37781. (acorn_mod_CFLAGS): Likewise.
  37782. * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
  37783. `partmap/acorn.c'.
  37784. (pkgdata_MODULES): Add `acorn.mod'.
  37785. (acorn_mod_SOURCES): New variable.
  37786. (acorn_mod_CFLAGS): Likewise.
  37787. * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
  37788. (pkgdata_MODULES): Add `acorn.mod'.
  37789. (acorn_mod_SOURCES): New variable.
  37790. (acorn_mod_CFLAGS): Likewise.
  37791. (acorn_mod_LDFLAGS): Likewise.
  37792. * include/types.h (grub_disk_addr_t): New typedef.
  37793. 2005-11-13 Marco Gerards <mgerards@xs4all.nl>
  37794. * geninit.sh: New file.
  37795. * geninitheader.sh: Likewise.
  37796. * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
  37797. * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
  37798. * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
  37799. * commands/configfile.c (grub_configfile_init)
  37800. (grub_configfile_fini): Likewise.
  37801. * commands/default.c (grub_default_init, grub_default_fini):
  37802. Likewise.
  37803. * commands/help.c (grub_help_init, grub_help_fini): Likewise.
  37804. * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
  37805. * commands/search.c (grub_search_init, grub_search_fini): Likewise.
  37806. * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
  37807. Likewise.
  37808. * commands/test.c (grub_test_init, grub_test_fini): Likewise.
  37809. * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
  37810. Likewise.
  37811. * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
  37812. * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
  37813. Likewise.
  37814. * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
  37815. Likewise.
  37816. * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
  37817. Likewise.
  37818. * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
  37819. * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
  37820. * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
  37821. * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
  37822. * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
  37823. * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
  37824. * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
  37825. * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
  37826. * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
  37827. * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
  37828. * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
  37829. * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
  37830. * partmap/amiga.c (grub_amiga_partition_map_init)
  37831. (grub_amiga_partition_map_fini): Likewise.
  37832. * partmap/apple.c (grub_apple_partition_map_init)
  37833. (grub_apple_partition_map_fini): Likewise.
  37834. * partmap/pc.c (grub_pc_partition_map_init)
  37835. (grub_pc_partition_map_fini): Likewise.
  37836. * partmap/sun.c (grub_sun_partition_map_init,
  37837. grub_sun_partition_map_fini): Likewise.
  37838. * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
  37839. Likewise.
  37840. * util/grub-emu.c: Include <grub_modules_init.h>.
  37841. (main): Don't initialize and de-initialize any modules directly,
  37842. use `grub_init_all' and `grub_fini_all' instead.
  37843. * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
  37844. `grub_vesafb_mod_init'.
  37845. (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
  37846. all users.
  37847. * term/i386/pc/vga.c (grub_vga_init): Renamed to
  37848. `grub_vga_mod_init'. Updated all users.
  37849. (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
  37850. * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
  37851. (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
  37852. rules.
  37853. * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
  37854. Generate a function to initialize the module in utilities.
  37855. Updated all callers.
  37856. (GRUB_MOD_FINI): Add argument `name'. Generate a function to
  37857. initialize the module in utilities. Updated all callers.
  37858. 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
  37859. * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
  37860. escape sequence and a literal ^L to clear the screen.
  37861. * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
  37862. when returning from Open Firmware.
  37863. 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
  37864. * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
  37865. (grub_ofconsole_height): Likewise.
  37866. (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
  37867. manually insert a '\n'.
  37868. (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
  37869. `grub_ofconsole_height'. Return early if these are already set.
  37870. 2005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
  37871. * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
  37872. `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
  37873. `normal/execute.c', `normal/lexer.c', `io/gzio.c',
  37874. `kern/parser.c', `grub_script.tab.c', `normal/function.c'
  37875. and `normal/script.c'.
  37876. (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
  37877. `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
  37878. (test_mod_SOURCES): New variable.
  37879. (test_mod_CFLAGS): Likewise.
  37880. (test_mod_LDFLAGS): Likewise.
  37881. (pkgdata_MODULES): Add `test.mod'.
  37882. (grub_script.tab.c): New rule.
  37883. (grub_script.tab.h): Likewise.
  37884. 2005-11-07 Marco Gerards <mgerards@xs4all.nl>
  37885. * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
  37886. `commands/test.c', `normal/execute.c', `normal/lexer.c',
  37887. `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
  37888. (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
  37889. `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
  37890. (test_mod_SOURCES): New variable.
  37891. (test_mod_CFLAGS): Likewise.
  37892. (pkgdata_MODULES): Add `test.mod'.
  37893. (grub_script.tab.c): New rule.
  37894. (grub_script.tab.h): Likewise.
  37895. 2005-11-06 Marco Gerards <mgerards@xs4all.nl>
  37896. Add initial scripting support.
  37897. * commands/test.c: New file.
  37898. * include/grub/script.h: Likewise.
  37899. * normal/execute.c: Likewise.
  37900. * normal/function.c: Likewise.
  37901. * normal/lexer.c: Likewise.
  37902. * normal/parser.y: Likewise.
  37903. * normal/script.c: Likewise.
  37904. * configure.ac: Add `AC_PROG_YACC' test.
  37905. * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
  37906. `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
  37907. `normal/function.c' and `normal/script.c'.
  37908. (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
  37909. `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
  37910. (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
  37911. variables.
  37912. (pkgdata_MODULES): Add `test.mod'.
  37913. (grub_script.tab.c): New rule.
  37914. (grub_script.tab.h): Likewise.
  37915. * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
  37916. * include/grub/normal.h (grub_test_init): New prototype.
  37917. (grub_test_fini): Likewise.
  37918. * normal/command.c: Include <grub/script.h>.
  37919. (grub_command_execute): Rewritten.
  37920. * util/grub-emu.c (main): Call `grub_test_init' and
  37921. `grub_test_fini'.
  37922. 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
  37923. * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
  37924. to 0.
  37925. * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
  37926. there are no pending characters.
  37927. 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
  37928. * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
  37929. `grub_strndup' to drop device arguments. Replace unnecessary
  37930. `grub_strndup' with `grub_strdup'.
  37931. 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
  37932. * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
  37933. `debug' environment variable has been set.
  37934. 2005-11-02 Hollis Blanchard <hollis@penguinppc.org>
  37935. * Makefile.in (install-local): Use $(DATA).
  37936. (uninstall): Likewise.
  37937. * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
  37938. (sbin_UTILITIES): ... to here.
  37939. (sbin_SCRIPTS): New variable.
  37940. (grub_install_SOURCES): New variable.
  37941. * util/powerpc/ieee1275/grub-install.in: New file.
  37942. * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
  37943. variable.
  37944. (add_segments): Call `grub_util_get_path'.
  37945. 2005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
  37946. From Timothy Baldwin:
  37947. * commands/ls.c (grub_ls_list_files): Close FILE with
  37948. grub_file_close.
  37949. * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
  37950. 2005-10-24 Marco Gerards <mgerards@xs4all.nl>
  37951. * include/grub/parser.h: New file.
  37952. * kern/parser.c: Likewise.
  37953. * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
  37954. (grub_setup_SOURCES): Likewise.
  37955. (grub_probefs_SOURCES): Likewise.
  37956. (grub_emu_SOURCES): Likewise.
  37957. (kernel_img_HEADERS): Add `parser.h'.
  37958. * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
  37959. (grub_emu_SOURCES): Add `kern/parser.c'.
  37960. (grubof_SOURCES): Likewise.
  37961. * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
  37962. (grubof_SOURCES): Add `kern/parser.c'.
  37963. * include/grub/misc.h (grub_split_cmdline): Removed prototype.
  37964. * kern/misc.c (grub_split_cmdline): Removed function.
  37965. * kern/rescue.c: Include <grub/parser.h>.
  37966. (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
  37967. of `grub_split_cmdline'.
  37968. * normal/command.c: Include <grub/parser.h>.
  37969. (grub_command_execute): Use `grub_parser_split_cmdline' instead
  37970. of `grub_split_cmdline'.
  37971. * normal/completion.c: Include <grub/parser.h>.
  37972. (cmdline_state): New variable.
  37973. (iterate_dir): End the filename with a quote depending on the
  37974. command line state.
  37975. (get_state): new function.
  37976. (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
  37977. split the arguments and determine the current argument. When the
  37978. argument string is not quoted, escape all spaces.
  37979. 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
  37980. * normal/sparc64/setjmp.S: New file.
  37981. 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
  37982. * include/grub/sparc64/libgcc.h: New file.
  37983. * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
  37984. (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
  37985. normal/sparc64/setjmp.c.
  37986. 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
  37987. * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
  37988. * kern/sparc64/cache.S: New file.
  37989. * kern/sparc64/cache.c: Removed.
  37990. * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
  37991. (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
  37992. -mtune=ultrasparc.
  37993. (COMMON_LDFLAGS): Add -melf64_sparc.
  37994. (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
  37995. (grubof_SOURCES): Use cache.S instead of cache.c.
  37996. (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
  37997. --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
  37998. (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
  37999. commented though.
  38000. (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
  38001. (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
  38002. (linux_mod_CFLAGS): Commented out.
  38003. (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
  38004. out because module isn't built.
  38005. (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
  38006. (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
  38007. (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
  38008. (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
  38009. (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
  38010. (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
  38011. (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
  38012. (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
  38013. (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
  38014. (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
  38015. (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
  38016. (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
  38017. (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
  38018. (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
  38019. 2005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
  38020. * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
  38021. grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
  38022. longer, because HFS should not be used on PC.
  38023. 2005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
  38024. * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
  38025. consistently within the loop.
  38026. 2005-10-15 Marco Gerards <mgerards@xs4all.nl>
  38027. * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
  38028. directory can not be read.
  38029. 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
  38030. * configure.ac (AC_INIT): Increase the version number to 1.91.
  38031. * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
  38032. include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
  38033. term/i386/pc/serial.c.
  38034. 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
  38035. * kern/file.c (grub_file_seek): Seeking to an offset equal to a
  38036. file size must be permitted.
  38037. * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
  38038. between %ah and %al.
  38039. 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
  38040. * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
  38041. grub_uint64_t.
  38042. Call the hook with a NUL-terminated filename.
  38043. (grub_xfs_mount): Use grub_be_to_cpu32 instead of
  38044. grub_cpu_to_be32.
  38045. * kern/term.c (cursor_state): New variable.
  38046. (grub_term_set_current): Reset the cursor state on a new
  38047. terminal.
  38048. (grub_setcursor): Rewritten to use CURSOR_STATE.
  38049. (grub_getcursor): New function.
  38050. * include/grub/term.h (grub_getcursor): New prototype.
  38051. * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
  38052. integers on ARM. Reported by Timothy Baldwin
  38053. <T.E.Baldwin99@members.leeds.ac.uk>.
  38054. 2005-10-11 Marco Gerards <mgerards@xs4all.nl>
  38055. * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
  38056. allocated.
  38057. (grub_sfs_dir): Likewise.
  38058. 2005-10-09 Marco Gerards <mgerards@xs4all.nl>
  38059. Add support for the SFS filesystem.
  38060. * fs/sfs.c: New file.
  38061. * DISTLIST: Added `fs/sfs.c'.
  38062. * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
  38063. (grub_probefs_SOURCES): Likewise.
  38064. (grub_emu_SOURCES): Likewise.
  38065. (pkgdata_MODULES): Add `sfs.mod'.
  38066. (sfs_mod_SOURCES): New variable.
  38067. (sfs_mod_CFLAGS): Likewise.
  38068. (sfs_mod_LDFLAGS): Likewise.
  38069. * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
  38070. (pkgdata_MODULES): Add `sfs.mod'.
  38071. (sfs_mod_SOURCES): New variable.
  38072. (sfs_mod_CFLAGS): Likewise.
  38073. * util/grub-emu.c (main): Call `grub_sfs_init' and
  38074. `grub_sfs_fini'.
  38075. * include/grub/fs.h (grub_sfs_init): New prototype.
  38076. (grub_sfs_fini): Likewise.
  38077. 2005-10-07 Marco Gerards <mgerards@xs4all.nl>
  38078. Add support for the AFFS filesystem.
  38079. * fs/affs.c: New file.
  38080. * DISTLIST: Added `fs/affs.c'.
  38081. * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
  38082. (grub_probefs_SOURCES): Likewise.
  38083. (grub_emu_SOURCES): Likewise.
  38084. (pkgdata_MODULES): Add `affs.mod'.
  38085. (affs_mod_SOURCES): New variable.
  38086. (affs_mod_CFLAGS): Likewise.
  38087. (affs_mod_LDFLAGS): Likewise.
  38088. * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
  38089. (pkgdata_MODULES): Add `affs.mod'.
  38090. (affs_mod_SOURCES): New variable.
  38091. (affs_mod_CFLAGS): Likewise.
  38092. * util/grub-emu.c (main): Call `grub_affs_init' and
  38093. `grub_affs_fini'.
  38094. * include/grub/fs.h (grub_affs_init): New prototype.
  38095. (grub_affs_fini): Likewise.
  38096. 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
  38097. * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
  38098. 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
  38099. * configure.ac: Accept `x86_64' as host_cpu. In that case add
  38100. `-m32' to CFLAGS.
  38101. * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
  38102. linking.
  38103. * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
  38104. (COMMON_LDFLAGS): New variable.
  38105. (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
  38106. (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
  38107. (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
  38108. (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
  38109. (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
  38110. (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
  38111. (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
  38112. (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
  38113. (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
  38114. (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
  38115. (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
  38116. (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
  38117. (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
  38118. (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
  38119. (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
  38120. variables.
  38121. (normal_mod_ASFLAGS): Add `-m32'.
  38122. * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
  38123. (grub_host_size_t, grub_host_ssize_t): New types.
  38124. (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
  38125. dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
  38126. `GRUB_HOST_SIZEOF_VOID_P'.
  38127. * include/grub/kernel.h (struct grub_module_header): Type of
  38128. member offset changed to `grub_host_off_t'. Type of member size
  38129. changed to `grub_host_size_t'.
  38130. (struct grub_module_info): Type of member offset changed to
  38131. `grub_host_off_t'. Type of member size changed to
  38132. `grub_host_size_t'.
  38133. 2005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
  38134. Make GRUB's kernel compliant to Multiboot Specification.
  38135. * kern/i386/pc/startup.S (multiboot_header): New label.
  38136. (multiboot_entry): Likewise.
  38137. (multiboot_trampoline): Likewise.
  38138. * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
  38139. Increased to 0x4A0.
  38140. * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
  38141. put parentheses after a question mark.
  38142. [!GRUB_UTIL] (my_mod): New variable.
  38143. * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
  38144. 2005-09-28 Marco Gerards <mgerards@xs4all.nl>
  38145. Adds support for the XFS filesystem. Btrees are not supported
  38146. yet.
  38147. * fs/xfs.c: New file.
  38148. * DISTLIST: Added `fs/xfs.c'.
  38149. * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
  38150. (grub_probefs_SOURCES): Likewise.
  38151. (grub_emu_SOURCES): Likewise.
  38152. (pkgdata_MODULES): Add `xfs.mod'.
  38153. (xfs_mod_SOURCES): New variable.
  38154. (xfs_mod_CFLAGS): Likewise.
  38155. * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
  38156. (pkgdata_MODULES): Add `xfs.mod'.
  38157. (xfs_mod_SOURCES): New variable.
  38158. (xfs_mod_CFLAGS): Likewise.
  38159. * util/grub-emu.c (main): Call `grub_xfs_init' and
  38160. `grub_xfs_fini'.
  38161. * include/grub/fs.h (grub_xfs_init): New prototype.
  38162. (grub_xfs_fini): Likewise.
  38163. 2005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
  38164. * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
  38165. color modes, allow greater than 16 colors to be configured as
  38166. a default palette.
  38167. 2005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
  38168. * normal/completion.c (complete_arguments): Add the qualifier
  38169. const into OPTIONS.
  38170. From Omniflux <omniflux+lists@omniflux.com>:
  38171. * include/grub/terminfo.h: New file.
  38172. * include/grub/tparm.h: Likewise.
  38173. * include/grub/i386/pc/serial.h: Likewise.
  38174. * term/terminfo.c: Likewise.
  38175. * term/tparm.c: Likewise.
  38176. * term/i386/pc/serial.c: Likewise.
  38177. * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
  38178. serial.mod.
  38179. (terminfo_mod_SOURCES): New variable.
  38180. (terminfo_mod_CFLAGS): Likewise.
  38181. (serial_mod_SOURCES): Likewise.
  38182. (serial_mod_CFLAGS): Likewise.
  38183. 2005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
  38184. * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
  38185. boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
  38186. and kern/powerpc/ieee1275/cmain.c, respectively.
  38187. * boot/powerpc/ieee1275/crt0.S: Moved to ...
  38188. * kern/powerpc/ieee1275/crt0.S: ... here.
  38189. * boot/powerpc/ieee1275/cmain.c: Moved to ...
  38190. * kern/powerpc/ieee1275/cmain.c: ... here.
  38191. * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
  38192. kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
  38193. instead of boot/powerpc/ieee1275/crt0.S and
  38194. boot/powerpc/ieee1275/cmain.c, respectively.
  38195. * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
  38196. sectors. It was not used anyway.
  38197. 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
  38198. * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
  38199. `unused parameter' warning.
  38200. 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
  38201. * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
  38202. function.
  38203. (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
  38204. getcharwidth.
  38205. 2005-08-28 Marco Gerards <metgerards@student.han.nl>
  38206. * include/grub/normal.h (enum grub_completion_type): Added
  38207. `GRUB_COMPLETION_TYPE_ARGUMENT'.
  38208. * normal/cmdline.c (print_completion): Handle
  38209. the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
  38210. * normal/menu_entry.c (store_completion): Likewise.
  38211. * normal/completion.c (complete_arguments): New function.
  38212. (grub_normal_do_completion): Call `complete_arguments' when the
  38213. current words start with a dash.
  38214. 2005-08-27 Marco Gerards <metgerards@student.han.nl>
  38215. * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
  38216. `gzio.mod' instead of `io.mod').
  38217. 2005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
  38218. * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
  38219. (DISTDIRS): Added io and video.
  38220. Rewrite the search routine to make an output consistently.
  38221. * DISTLIST: Added conf/sparc64-ieee1275.mk,
  38222. conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
  38223. include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
  38224. io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
  38225. kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
  38226. util/powerpc/ieee1275/misc.c.
  38227. * include/grub/gzio.h: New file.
  38228. * io/gzio.c: Likewise.
  38229. * kern/file.c (grub_file_close): Call grub_device_close only if
  38230. FILE->DEVICE is not NULL.
  38231. * include/grub/mm.h [!NULL] (NULL): New macro.
  38232. * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
  38233. * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
  38234. (pkgdata_MODULES): Added gzio.mod.
  38235. (gzio_mod_SOURCES): New variable.
  38236. (gzio_mod_CFLAGS): Likewise.
  38237. * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
  38238. (pkgdata_MODULES): Added gzio.mod.
  38239. (gzio_mod_SOURCES): New variable.
  38240. (gzio_mod_CFLAGS): Likewise.
  38241. * commands/cat.c: Include grub/gzio.h.
  38242. (grub_cmd_cat): Use grub_gzfile_open instead of
  38243. grub_file_open.
  38244. * commands/cmp.c: Include grub/gzio.h.
  38245. (grub_cmd_cmp): Use grub_gzfile_open instead of
  38246. grub_file_open.
  38247. * loader/i386/pc/multiboot.c: Include grub/gzio.h.
  38248. (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
  38249. grub_file_open.
  38250. (grub_rescue_cmd_module): Likewise.
  38251. 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
  38252. * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
  38253. kern/sparc64/ieee1275/init.c because it contains _start.
  38254. * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
  38255. 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
  38256. * configure.ac: Add support for sparc64 host with ieee1275
  38257. firmware.
  38258. * configure: Generated from configure.ac.
  38259. * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
  38260. instead of int.
  38261. (grub_ofdisk_read): Likewise.
  38262. (grub_ofdisk_open): Use %p to print pointer values, and cast the
  38263. pointers as (void *) to remove a warning.
  38264. (grub_ofdisk_close): Likewise.
  38265. (grub_ofdisk_read): Likewise.
  38266. * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
  38267. returns, so make it return void to remove a warning.
  38268. * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
  38269. Corresponding prototype change.
  38270. * kern/mm.c (grub_mm_init_region): Use %p to print pointer
  38271. values, and cast the pointers as (void *) to remove a warning.
  38272. (grub_mm_dump): Likewise.
  38273. * conf/sparc64-ieee1275.mk: New file.
  38274. * conf/sparc64-ieee1275.rmk: Likewise.
  38275. * include/grub/sparc64/setjmp.h: Likewise.
  38276. * include/grub/sparc64/types.h: Likewise.
  38277. * include/grub/sparc64/ieee1275/console.h: Likewise.
  38278. * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
  38279. * include/grub/sparc64/ieee1275/kernel.h: Likewise.
  38280. * include/grub/sparc64/ieee1275/time.h: Likewise.
  38281. * kern/sparc64/cache.c: Likewise.
  38282. * kern/sparc64/dl.c: Likewise.
  38283. * kern/sparc64/ieee1275/init.c: Likewise.
  38284. * kern/sparc64/ieee1275/openfw.c: Likewise.
  38285. 2005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
  38286. * util/console.c (grub_ncurses_putchar): If C is greater than
  38287. 0x7f, set C to a question mark.
  38288. (grub_ncurses_getcharwidth): New function.
  38289. (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
  38290. getcharwidth.
  38291. * normal/menu.c (print_entry): Made aware of Unicode. First,
  38292. convert TITLE to UCS-4, and predict the cursor position by
  38293. grub_getcharwidth.
  38294. * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
  38295. const to SRC.
  38296. * kern/misc.c (grub_utf16_to_utf8): Likewise.
  38297. 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
  38298. * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
  38299. the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
  38300. grub_strcat.
  38301. * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
  38302. file by the option BOOT_IMAGE. Use grub_stpcpy instead of
  38303. grub_strcpy and grub_strlen. Take it into account that a space
  38304. character is inserted as a delimiter.
  38305. 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
  38306. * partmap/pc.c (pc_partition_map_iterate): Include the value of an
  38307. invalid magic in the error.
  38308. * commands/search.c: New file.
  38309. * util/grub-emu.c (main): Call grub_search_init and
  38310. grub_search_fini.
  38311. * kern/rescue.c (grub_rescue_print_disks): Removed.
  38312. (grub_rescue_print_devices): New function.
  38313. (grub_rescue_cmd_ls): Use grub_device_iterate with
  38314. grub_rescue_print_devices instead of grub_disk_dev_iterate with
  38315. grub_rescue_print_disks.
  38316. * kern/partition.c (grub_partition_iterate): Return the result of
  38317. PARTMAP->ITERATE instead of GRUB_ERRNO.
  38318. * kern/device.c: Include grub/partition.h.
  38319. (grub_device_iterate): New function.
  38320. * include/grub/partition.h (grub_partition_iterate): Return int
  38321. instead of grub_err_t.
  38322. * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
  38323. prototype.
  38324. [GRUB_UTIL] (grub_search_fini): Likewise.
  38325. * include/grub/device.h (grub_device_iterate): New prototype.
  38326. * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
  38327. commands/search.c.
  38328. (pkgdata_MODULES): Added search.mod.
  38329. (search_mod_SOURCES): New variable.
  38330. (search_mod_CFLAGS): Likewise.
  38331. * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
  38332. (pkgdata_MODULES): Added search.mod.
  38333. (search_mod_SOURCES): New variable.
  38334. (search_mod_CFLAGS): Likewise.
  38335. * commands/ls.c (grub_ls_list_disks): Renamed to ...
  38336. (grub_ls_list_devices): ... this, and use grub_device_iterate.
  38337. All callers changed.
  38338. * DISTLIST: Added commands/search.c.
  38339. 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
  38340. * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
  38341. conversion.
  38342. (grub_getcharwidth): New function.
  38343. * kern/misc.c (grub_utf8_to_ucs4): New function.
  38344. * include/grub/term.h (struct grub_term): Added a new member
  38345. "getcharwidth".
  38346. (grub_getcharwidth): New prototype.
  38347. * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
  38348. * term/i386/pc/console.c (map_char): New function. Segregated from
  38349. grub_console_putchar.
  38350. (grub_console_putchar): Use map_char.
  38351. (grub_console_getcharwidth): New function.
  38352. (grub_console_term): Specified grub_console_getcharwidth as
  38353. getcharwidth.
  38354. * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
  38355. (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
  38356. * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
  38357. GRUB_ERRNO.
  38358. (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
  38359. on grub_strtoul completely.
  38360. (write_char): Declare local variables in the beginning of the
  38361. function.
  38362. (grub_vesafb_getcharwidth): New function.
  38363. (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
  38364. getcharwidth.
  38365. 2005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
  38366. * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
  38367. commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
  38368. commands/i386/pc/vbetest.c.
  38369. * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
  38370. call grub_vbe_get_controller_info again, because the returned
  38371. information is volatile.
  38372. (grub_vbe_set_video_mode): Mostly rewritten.
  38373. (grub_vbe_get_video_mode): Use grub_vbe_probe and use
  38374. grub_vbe_status_t correctly.
  38375. (grub_vbe_get_video_mode_info): Likewise.
  38376. (grub_vbe_set_pixel_rgb): Use a switch statement rather than
  38377. several if statements.
  38378. * commands/i386/pc/vbe_list_modes.c: Renamed to ...
  38379. * commands/i386/pc/vbeinfo.c: ... this.
  38380. * commands/i386/pc/vbe_test.c: Renamed to ...
  38381. * commands/i386/pc/vbetest.c: ... this.
  38382. * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
  38383. ...
  38384. (grub_cmd_vbeinfo): ... this. Save video modes before
  38385. iterating. Skip a video mode, if it is not available, not enough
  38386. information is given or it is monochrome. Show the memory
  38387. model. Leave the interpretation of MODEVAR to grub_strtoul
  38388. completely.
  38389. (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
  38390. (GRUB_MOD_FINI): Likewise.
  38391. * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
  38392. (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
  38393. grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
  38394. duplicated grub_env_get. Leave the interpretation of MODEVAR to
  38395. grub_strtoul completely.
  38396. (real2pm): Removed.
  38397. (GRUB_MOD_INIT): Rename vbe_test to vbetest.
  38398. (GRUB_MOD_FINI): Likewise.
  38399. * normal/misc.c: Include grub/mm.h.
  38400. * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
  38401. vbe_list_modes with vbetest.mod and vbeinfo.mod.
  38402. (vbe_list_modes_mod_SOURCES): Removed.
  38403. (vbe_list_modes_mod_CFLAGS): Likewise.
  38404. (vbe_test_mod_SOURCES): Likewise.
  38405. (vbe_test_mod_CFLAGS): Likewise.
  38406. (vbeinfo_mod_SOURCES): New variable.
  38407. (vbeinfo_mod_CFLAGS): Likewise.
  38408. (vbetest_mod_SOURCES): Likewise.
  38409. (vbetest_mod_CFLAGS): Likewise.
  38410. 2005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
  38411. * normal/misc.c: New file.
  38412. * DISTLIST: Added normal/misc.c.
  38413. * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
  38414. DISK to HOOK. Call HOOK with DISK.
  38415. * partmap/apple.c (apple_partition_map_iterate): Likewise.
  38416. * partmap/pc.c (pc_partition_map_iterate): Likewise.
  38417. * partmap/sun.c (sun_partition_map_iterate): Likewise.
  38418. * normal/menu_entry.c (struct screen): Added a new member
  38419. "completion_shown".
  38420. (completion_buffer): New global variable.
  38421. (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
  38422. (store_completion): New function.
  38423. (complete): Likewise.
  38424. (clear_completions): Likewise.
  38425. (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
  38426. call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
  38427. a tab, call complete.
  38428. * normal/completion.c (disk_dev): Removed.
  38429. (print_simple_completion): Likewise.
  38430. (print_partition_completion): Likewise.
  38431. (print_func): New global variable.
  38432. (add_completion): Do not take the arguments WHAT or PRINT any
  38433. longer. Added a new argument TYPE. Instead of printing directly,
  38434. call PRINT_FUNC if not NULL.
  38435. All callers changed.
  38436. (complete_device): Use a local variable DEV instead of
  38437. DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
  38438. (grub_normal_do_completion): Take a new argument HOOK. Do not
  38439. initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
  38440. empty string, return NULL instead.
  38441. All callers changed.
  38442. * normal/cmdline.c (print_completion): New function.
  38443. * kern/partition.c (grub_partition_iterate): Add an argument DISK
  38444. to HOOK.
  38445. All callers changed.
  38446. * kern/disk.c (grub_print_partinfo): Removed.
  38447. * include/grub/partition.h (struct grub_partition_map): Add a new
  38448. argument DISK into HOOK of ITERATE.
  38449. (grub_partition_iterate): Add a new argument DISK to HOOK.
  38450. * include/grub/normal.h (enum grub_completion_type): New enum.
  38451. (grub_completion_type_t): New type.
  38452. (GRUB_COMPLETION_TYPE_COMMAND): New constant.
  38453. (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
  38454. (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
  38455. (GRUB_COMPLETION_TYPE_FILE): Likewise.
  38456. (grub_normal_do_completion): Added a new argument HOOK.
  38457. (grub_normal_print_device_info): New prototype.
  38458. * include/grub/disk.h (grub_print_partinfo): Removed.
  38459. * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
  38460. (normal_mod_SOURCES): Likewise.
  38461. * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
  38462. (normal_mod_SOURCES): Likewise.
  38463. * commands/ls.c (grub_ls_list_disks): Use
  38464. grub_normal_print_device_info instead of grub_print_partinfo. Free
  38465. PNAME.
  38466. (grub_ls_list_files): Use grub_normal_print_device_info instead of
  38467. duplicating the code.
  38468. 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
  38469. * commands/i386/pc/vbe_list_modes.c: Update source formatting to
  38470. follow GCS more precisely.
  38471. * commands/i386/pc/vbe_test.c: Likewise.
  38472. * include/grub/i386/pc/vbe.h: Likewise.
  38473. * term/i386/pc/vesafb.c: Likewise.
  38474. * video/i386/pc/vbe.c: Likewise.
  38475. 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
  38476. * DISTLIST: Added term/i386/pc/vesafb.c
  38477. DISTLIST: Added video/i386/pc/vbe.c
  38478. DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
  38479. DISTLIST: Added commands/i386/pc/vbe_test.c.
  38480. * commands/i386/pc/vbe_list_modes.c: New file.
  38481. * commands/i386/pc/vbe_test.c: Likewise.
  38482. * term/i386/pc/vesafb.c: Likewise.
  38483. * video/i386/pc/vbe.c: Likewise.
  38484. * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
  38485. (grub_vbe_probe) Added prototype.
  38486. (grub_vbe_set_video_mode) Likewise.
  38487. (grub_vbe_get_video_mode) Likewise.
  38488. (grub_vbe_get_video_mode_info) Likewise.
  38489. (grub_vbe_set_pixel_rgb) Likewise.
  38490. (grub_vbe_set_pixel_index) Likewise.
  38491. * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
  38492. (pkgdata_MODULES): Added vesafb.mod.
  38493. (pkgdata_MODULES): Added vbe_list_modes.mod.
  38494. (pkgdata_MODULES): Added vbe_test.mod.
  38495. (vbe_mod_SOURCES): Added.
  38496. (vbe_mod_CFLAGS): Likewise.
  38497. (vesafb_mod_SOURCES): Likewise.
  38498. (vesafb_mod_CFLAGS): Likewise.
  38499. (vbe_list_modes_mod_SOURCES): Likewise.
  38500. (vbe_list_modes_mod_CFLAGS): Likewise.
  38501. (vbe_test_mod_SOURCES): Likewise.
  38502. (vbe_test_mod_CFLAGS): Likewise.
  38503. 2005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
  38504. * normal/command.c (grub_command_execute): If INTERACTIVE is
  38505. false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
  38506. CMDLINE. Disable the pager if INTERACTIVE is true.
  38507. All callers are changed.
  38508. * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
  38509. before reading a config file.
  38510. * normal/main.c (read_config_file): Even if a command is not
  38511. found, register it if it is within an entry.
  38512. * util/grub-emu.c: Include sys/types.h and unistd.h.
  38513. (options): Added --hold.
  38514. (struct arguments): Added a new member "hold".
  38515. (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
  38516. missing.
  38517. (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
  38518. cleared by a debugger, if it is not zero.
  38519. * include/grub/normal.h (grub_command_execute): Add an argument
  38520. INTERACTIVE.
  38521. 2005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
  38522. * DISTLIST: Added include/grub/i386/pc/vbe.h.
  38523. 2005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
  38524. * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
  38525. program with another one, because the old one didn't detect a bug
  38526. in gcc-3.4. Always use regparm 2, because the new test is still
  38527. not enough for gcc-4.0. Someone must investigate a simple test
  38528. case which detects a bug in gcc-4.0.
  38529. 2005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
  38530. * DISTLIST: Added normal/completion.c.
  38531. * normal/completion.c: New file.
  38532. * term/i386/pc/console.c (grub_console_getwh): New function.
  38533. (grub_console_term): Assign grub_console_getwh to getwh.
  38534. * normal/cmdline.c (grub_tab_complete): Removed. Now the same
  38535. function is defined in normal/completion.c as
  38536. grub_normal_do_completion.
  38537. (grub_cmdline_get): Use grub_normal_do_completion instead of
  38538. grub_tab_complete.
  38539. * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
  38540. returns non-zero, otherwise return 0.
  38541. (grub_partition_iterate): First, probe the partition map. Then,
  38542. call ITERATE only for this partition map.
  38543. * kern/misc.c (grub_strncmp): Rewritten.
  38544. * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
  38545. returns non-zero. Otherwise return 0.
  38546. * include/grub/partition.h (grub_partition_map_iterate): Return
  38547. int instead of void.
  38548. * include/grub/normal.h (grub_normal_do_completion): New prototype.
  38549. * include/grub/misc.h (grub_strncmp): Change the type of N to
  38550. grub_size_t.
  38551. * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
  38552. of void.
  38553. * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
  38554. unsigned explicitly before comparing it with I.
  38555. * kern/main.c (grub_env_write_root): Add the attribute unused into
  38556. VAR.
  38557. * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
  38558. normal/completion.c.
  38559. (normal_mod_SOURCES): Likewise.
  38560. * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
  38561. (normal_mod_SOURCES): Likewise.
  38562. * normal/command.c (grub_iterate_commands): If ITERATE returns
  38563. non-zero, return one immediately.
  38564. 2005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
  38565. * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
  38566. * kern/i386/pc/startup.S: Updated Global Descriptor table's
  38567. descriptions.
  38568. (grub_vbe_get_controller_info): New function.
  38569. (grub_vbe_get_mode_info): Likewise.
  38570. (grub_vbe_set_mode): Likewise.
  38571. (grub_vbe_get_mode): Likewise.
  38572. (grub_vbe_set_memory_window): Likewise.
  38573. (grub_vbe_get_memory_window): Likewise.
  38574. (grub_vbe_set_scanline_length): Likewise.
  38575. (grub_vbe_get_scanline_length): Likewise.
  38576. (grub_vbe_set_display_start): Likewise.
  38577. (grub_vbe_get_display_start): Likewise.
  38578. (grub_vbe_set_palette_data): Likewise.
  38579. * include/grub/i386/pc/vbe.h: New file.
  38580. 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
  38581. * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
  38582. kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
  38583. * DISTLIST: Likewise.
  38584. * kern/ieee1275/of.c: Moved to ...
  38585. * kern/ieee1275/ieee1275.c: ... here.
  38586. 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
  38587. * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
  38588. (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
  38589. Pass 0 as `end' parameter to grub_strtoul().
  38590. 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
  38591. * include/grub/powerpc/ieee1275/console.h: Do not include
  38592. <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
  38593. ifdef.
  38594. (grub_console_cur_color): Remove i386-specific prototype.
  38595. (grub_console_real_putchar): Likewise.
  38596. (grub_console_checkkey): Likewise.
  38597. (grub_console_getkey): Likewise.
  38598. (grub_console_getxy): Likewise.
  38599. (grub_console_gotoxy): Likewise.
  38600. (grub_console_cls): Likewise.
  38601. (grub_console_setcursor): Likewise.
  38602. * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
  38603. Include <grub/machine/console.h>.
  38604. * term/ieee1275/ofconsole.c: Likewise.
  38605. 2005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
  38606. * Makefile.in (LIBLZO): New variable.
  38607. * configure.ac: Check for LZO version 2.
  38608. * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
  38609. lzo/lzo1x.h instead of lzo1x.h.
  38610. * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
  38611. of -llzo.
  38612. * util/i386/pc/grub-setup.c (main): Do not free PREFIX
  38613. twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
  38614. * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
  38615. copying the data from PARTITION to P.
  38616. 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
  38617. * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
  38618. negative, unload the module.
  38619. * util/i386/pc/grub-setup.c (setup): The name of the PC partition
  38620. map is "pc_partition_map" but not "pc".
  38621. (usage): Fix the description. The options are --boot-image and
  38622. --core-image but not --boot-file or --core-file.
  38623. (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
  38624. based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
  38625. DEFAULT_DIRECTORY.
  38626. * util/i386/pc/grub-install.in: Do not specify --boot-file or
  38627. --core-file. Specify INSTALL_DEVICE as an argument.
  38628. * util/console.c: Include config.h.
  38629. [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
  38630. [HAVE_NCURSES_H]: Include ncurses.h.
  38631. [HAVE_CURSES_H]: Include curses.h.
  38632. [!A_NORMAL] (A_NORMAL): Defined as zero.
  38633. [!A_STANDOUT] (A_STANDOUT): Likewise.
  38634. * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
  38635. -lncurses.
  38636. * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
  38637. * configure.ac: Check for curses libraries and headers.
  38638. * Makefile.in (LIBCURSES): New variable.
  38639. * genmk.rb (Script::rule): Set the executable bits.
  38640. * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
  38641. name of the PC partition map is "pc_partition_map" but not "pc".
  38642. 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
  38643. * util/i386/pc/grub-install.in (grub_probefs): New variable.
  38644. (modules): Likewise.
  38645. (usage): Added descriptions for --modules and --grub-probefs.
  38646. Handle --modules and --grub-probefs. Save the arguments in MODULES
  38647. and GRUB_PROBEFS, respectively.
  38648. Auto-detect a filesystem module against GRUBDIR. If the result is
  38649. empty and modules are not specified explicitly, abort the
  38650. installation. Add the result to MODULES.
  38651. * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
  38652. disk/powerpc/ieee1275/ofdisk.c,
  38653. include/grub/powerpc/ieee1275/init.h and
  38654. term/powerpc/ieee1275/ofconsole.c.
  38655. Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
  38656. term/ieee1275/ofconsole.c.
  38657. * include/grub/powerpc/ieee1275/console.h: Resurrected.
  38658. * COPYING: Upgraded to the latest version. Only the address of the
  38659. FSF office has changed.
  38660. 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
  38661. * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
  38662. kern/ieee1275.c with kern/ieee1275/of.c.
  38663. * kern/ieee1275.c: Moved to ...
  38664. * kern/ieee1275/of.c: ... here.
  38665. 2005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
  38666. * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
  38667. readability.
  38668. * config.guess: Updated to the latest version from gnulib.
  38669. * config.sub: Likewise.
  38670. * install.sh: Likewise.
  38671. * mkinstalldirs: Likewise.
  38672. * include/grub/console.h: Removed. This file is arch-specific. Do
  38673. not put this in include/grub.
  38674. * include/grub/i386/pc/console.h: Resurrected.
  38675. * util/console.c: Include grub/machine/console.h instead of
  38676. grub/console.h.
  38677. * util/grub-emu.c: Likewise.
  38678. 2005-08-04 Marco Gerards <metgerards@student.han.nl>
  38679. * kern/term.c (grub_putcode): Use `grub_getwh' instead of
  38680. hardcoded value.
  38681. From Vincent Pelletier <subdino2004@yahoo.fr>
  38682. * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
  38683. Redefined to use grub_getwh.
  38684. (grub_term): New member named getwh.
  38685. (grub_getwh): New prototype.
  38686. * kern/term.c (grub_getwh): New function.
  38687. * term/i386/pc/console.c (grub_console_getwh): New function.
  38688. (grub_console_term): New member `getwh'.
  38689. * term/i386/pc/vga.c (grub_vga_getwh): New function.
  38690. (grub_vga_term): New member `getwh'.
  38691. * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
  38692. grub_ssize_t.
  38693. (grub_ofconsole_getw): New function.
  38694. (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
  38695. (grub_ofconsole_term): New field named getwh and new initial
  38696. value.
  38697. 2005-08-03 Hollis Blanchard <hollis@penguinppc.org>
  38698. * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
  38699. * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
  38700. Move `abort', `grub_reboot', and `grub_halt' prototypes ...
  38701. * include/grub/powerpc/ieee1275/kernel.h: ... to here.
  38702. * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
  38703. of <grub/machine/ieee1275.h>.
  38704. * commands/ieee1275/reboot.c: Likewise.
  38705. * boot/powerpc/ieee1275/ieee1275.c: Move ...
  38706. * kern/ieee1275.c: ... to here. All users updated. Change all
  38707. parameter structs to use new type `grub_ieee1275_cell_t'.
  38708. * term/powerpc/ieee1275/ofconsole.c: Move ...
  38709. * term/ieee1275/ofconsole.c: ... to here. All users updated.
  38710. * disk/powerpc/ieee1275/ofdisk.c: Move ...
  38711. * disk/ieee1275/ofdisk.c: ... to here. All users updated.
  38712. * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
  38713. to return int.
  38714. * include/grub/i386/pc/console.h: Move to include/grub/console.h.
  38715. Remove unused prototypes. All users updated.
  38716. * include/grub/powerpc/ieee1275/console.h: Removed.
  38717. * include/grub/powerpc/ieee1275/ieee1275.h: Define
  38718. `grub_ieee1275_cell_t'.
  38719. * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
  38720. Cast comparisons with -1 to the correct type.
  38721. * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
  38722. type to match `grub_ieee1275_entry_fn'.
  38723. 2005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
  38724. * DISTLIST: Added util/i386/pc/grub-probefs.c.
  38725. * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
  38726. (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
  38727. partmap/sun.c.
  38728. (grub_probefs_SOURCES): New variable.
  38729. * util/i386/pc/grub-probefs.c: New file.
  38730. * util/i386/pc/grub-setup.c (main): Call
  38731. grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
  38732. grub_hfs_init and grub_jfs_init to initialize the system. Call
  38733. grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
  38734. grub_pc_partition_map_fini to finish the system.
  38735. 2005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
  38736. * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
  38737. function.
  38738. (grub_multiboot_load_elf32): Likewise.
  38739. (grub_multiboot_is_elf64): Likewise.
  38740. (grub_multiboot_load_elf64): Likewise.
  38741. (grub_multiboot_load_elf): Likewise.
  38742. (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
  38743. an ELF32 or ELF64 file.
  38744. This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
  38745. From Serbinenko Vladimir <serbinenko.vova@list.ru>:
  38746. * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
  38747. NULL before calling FS->LABEL.
  38748. * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
  38749. * commands/ls.c (grub_ls_list_files): Show labels, if possible.
  38750. (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
  38751. before calling FS->LABEL.
  38752. 2005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
  38753. * util/i386/pc/grub-install.in (datadir): New variable.
  38754. (libdir): Removed.
  38755. (pkgdatadir): New variable.
  38756. (pkglibdir): Removed.
  38757. 2005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
  38758. * DISTLIST: Added util/i386/pc/grub-install.in.
  38759. * util/i386/pc/grub-install.in: New file.
  38760. * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
  38761. (grub_install_SOURCES): Likewise.
  38762. * genmk.rb: Added support for scripts.
  38763. (Script): New class.
  38764. (scripts): New variable.
  38765. * Makefile.in (install-local): Install sbin_SCRIPTS by
  38766. INSTALL_SCRIPT.
  38767. (uninstall): Remove sbin_SCRIPTS.
  38768. * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
  38769. device, try to get a GRUB device by
  38770. grub_util_biosdisk_get_grub_dev.
  38771. Free DEST_DEV.
  38772. * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
  38773. description for --device-map.
  38774. 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
  38775. Change the semantics of variable hooks. They now return strings
  38776. instead of error values.
  38777. * util/i386/pc/grub-setup.c: Include grub/env.h.
  38778. (setup): Use grub_device_set_root instead of grub_env_set.
  38779. * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
  38780. grub_env_get instead of grub_device_set_root and
  38781. grub_device_get_root, respectively.
  38782. * kern/main.c (grub_env_write_root): New function.
  38783. (grub_set_root_dev): Register grub_env_write_hook for "root". Use
  38784. grub_env_set instead of grub_device_set_root.
  38785. * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
  38786. many variables.
  38787. (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
  38788. rather than calling ENV->WRITE_HOOK afterwards.
  38789. (grub_env_get): Return the result of ENV->READ_HOOK rather than
  38790. passing a pointer of a pointer.
  38791. (grub_register_variable_hook): Change the types of "read_hook" and
  38792. "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
  38793. respectively.
  38794. Allocate the default empty string on the heap, because this string
  38795. may be freed later.
  38796. * kern/device.c: Include grub/env.h.
  38797. (grub_device_set_root): Removed.
  38798. (grub_device_get_root): Likewise.
  38799. (grub_device_open): Use grub_env_get instead of
  38800. grub_device_get_root.
  38801. * include/grub/env.h (grub_env_read_hook_t): New type.
  38802. (grub_env_write_hook_t): Likewise.
  38803. (grub_env_var): Change the types of "read_hook" and "write_hook"
  38804. to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
  38805. (grub_register_variable_hook): Likewise.
  38806. * include/grub/device.h (grub_device_set_root): Removed.
  38807. (grub_device_set_root): Likewise.
  38808. * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
  38809. make sure that DIRNAME terminates with '/', so that
  38810. grub_fat_find_dir will fail if PATH is not a directory.
  38811. * commands/ls.c (grub_ls_list_files): Remove the qualifier const
  38812. from DIRNAME.
  38813. Use the qualifier auto for print_files and print_files_long.
  38814. If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
  38815. as a regular file.
  38816. Put a newline only if there is no error.
  38817. (grub_cmd_ls): Remove grub_ls_print_files, because this is not
  38818. used.
  38819. 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
  38820. * kern/partition.c (grub_partition_probe): Initialize PART to
  38821. NULL. Otherwise, when no partition map is registered, this returns
  38822. a garbage.
  38823. 2005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
  38824. * partmap/apple.c (apple_partition_map_iterate): Check if POS
  38825. equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
  38826. valid.
  38827. 2005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
  38828. * commands/ls.c (grub_ls_list_disks): Print the filesystem
  38829. information on each device, if it does not have partitions. Print
  38830. "Device" instead of "Disk", because this function is not specific
  38831. to disk devices.
  38832. * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
  38833. static to ensure that it is put on the memory rather than a
  38834. register.
  38835. 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
  38836. * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
  38837. (grub_cat_init): Likewise.
  38838. * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
  38839. (options): Likewise.
  38840. * commands/configfile.c (GRUB_MOD_INIT): Likewise.
  38841. (grub_configfile_init): Likewise.
  38842. * font/manager.c (GRUB_MOD_INIT): Likewise.
  38843. * commands/help.c (GRUB_MOD_INIT): Likewise.
  38844. (grub_help_init): Likewise.
  38845. * normal/command.c (grub_command_init): Likewise.
  38846. * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
  38847. * disk/loopback.c (grub_loop_init): Likewise.
  38848. (GRUB_MOD_INIT): Likewise.
  38849. * commands/ls.c (grub_ls_init): Likewise.
  38850. (GRUB_MOD_INIT): Likewise.
  38851. (options): Likewise.
  38852. * commands/boot.c (grub_boot_init): Likewise.
  38853. (GRUB_MOD_INIT): Likewise.
  38854. * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
  38855. * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
  38856. (GRUB_MOD_INIT): Likewise.
  38857. * commands/cmp.c (grub_cmp_init): Likewise.
  38858. (GRUB_MOD_INIT): Likewise.
  38859. * normal/arg.c: Use <> instead of "" to include header files.
  38860. (SHORT_ARG_HELP): New macro.
  38861. (SHORT_ARG_USAGE): Likewise.
  38862. (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
  38863. of 'h' and 'u' for help and usage, respectively. Use more GNU-like
  38864. descriptions.
  38865. (find_short): Check if C is 'h' or 'u' explicitly.
  38866. (grub_arg_show_help): Use space characters instead of tabs. Treat
  38867. SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
  38868. are shown with --help and --usage only if they are not used for
  38869. the command itself.
  38870. (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
  38871. 'h' and 'u'.
  38872. * include/grub/arg.h (struct grub_arg_option): Add the qualifier
  38873. const into "longarg". Change the type of "shortarg" to int.
  38874. 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
  38875. * boot/i386/pc/boot.S (boot_drive_check): New label.
  38876. * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
  38877. macro.
  38878. * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
  38879. which do not pass a boot drive correctly. Copied from GRUB Legacy.
  38880. 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
  38881. * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
  38882. When turning off Gate A20, skip the check and return immediately,
  38883. because this is not fatal usually.
  38884. 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
  38885. * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
  38886. be 0x7C00 instead of 0x8000.
  38887. * boot/i386/pc/pxeboot.S: Rewritten.
  38888. * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
  38889. EXT_C.
  38890. (gate_a20_check_state): Read a byte from 0x108000. Invert the
  38891. result.
  38892. 2005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
  38893. * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
  38894. robustness. This routine now supports a BIOS call and System
  38895. Control Port A to modify the gate A20.
  38896. * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
  38897. Increased to 0x440.
  38898. 2005-07-12 Hollis Blanchard <hollis@penguinppc.org>
  38899. * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
  38900. device path and resulting ihandle.
  38901. (grub_ofdisk_close): dprintf the ihandle being closed.
  38902. (grub_ofdisk_read): dprintf function parameters.
  38903. * kern/mm.c (grub_mm_init_region): Likewise.
  38904. * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
  38905. (grub_linux_boot): dprintf the Linux entry point, initrd address and
  38906. size, and boot arguments.
  38907. (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
  38908. before loading into memory.
  38909. (grub_rescue_cmd_initrd): dprintf the initrd's address and size
  38910. before loading into memory.
  38911. 2005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
  38912. * kern/mm.c: Added much documentation.
  38913. (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
  38914. 8, set to 5 instead of 8.
  38915. 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
  38916. * DISTLIST: Added util/i386/pc/grub-mkimage.c.
  38917. * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
  38918. (grub_mkdevicemap_SOURCES): New variable.
  38919. * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
  38920. lib/device.c of GRUB Legacy.
  38921. 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
  38922. * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
  38923. instead of PATH is NULL.
  38924. 2005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
  38925. * commands/cmp.c (BUFFER_SIZE): New macro.
  38926. (grub_cmd_cmp): Close the right file at the right time. Compare
  38927. only data just read. Don't report files of different size as
  38928. identical. Dynamically allocate buffers. Move variable
  38929. declarations at the beginning of function.
  38930. 2005-07-09 Yoshinori Okuji <okuji@enbug.org>
  38931. * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
  38932. reverse.
  38933. 2004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
  38934. * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
  38935. when backspace is pressed at beginning of line.
  38936. 2005-07-03 Yoshinori Okuji <okuji@enbug.org>
  38937. * DISTLIST: Added genfslist.sh.
  38938. * normal/main.c (fs_module_list): New variable.
  38939. (autoload_fs_module): New function.
  38940. (read_fs_list): Likewise.
  38941. (grub_normal_execute): Call read_fs_list.
  38942. * kern/fs.c (grub_fs_autoload_hook): New variable.
  38943. (grub_fs_probe): Added support for auto-loading.
  38944. * include/grub/normal.h (struct grub_fs_module_list): New struct.
  38945. (grub_fs_module_list_t): New type.
  38946. * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
  38947. (grub_fs_autoload_hook): New prototype.
  38948. * genfslist.sh: New file.
  38949. * genmk.rb: Added a rule to generate a filesystem list.
  38950. 2005-06-30 Marco Gerards <metgerards@student.han.nl>
  38951. * configure.ac: Fix the test for cross-compiling.
  38952. * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
  38953. define GRUB_UTIL anymore.
  38954. * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
  38955. so this function works on other systems than just big endian.
  38956. (load_modules): Likewise.
  38957. (add_segments): Likewise.
  38958. 2005-06-23 Hollis Blanchard <hollis@penguinppc.org>
  38959. * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
  38960. contains `l' modifier, get a long from va_arg().
  38961. 2005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
  38962. * kern/mm.c (grub_free): If the next free block which is being
  38963. merged is the first free block, set the first block to the block
  38964. being freed.
  38965. Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
  38966. 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
  38967. * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
  38968. `grub_ieee1275_chosen'.
  38969. 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
  38970. * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
  38971. (grub_ieee1275_chosen): New variable.
  38972. (cmain): Initialize and use `grub_ieee1275_chosen' instead of
  38973. `chosen'.
  38974. * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
  38975. * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
  38976. Rename first argument to `phandle' for consistency.
  38977. (grub_ieee1275_get_property_length): Likewise.
  38978. (grub_ieee1275_next_property): Likewise. Change type of first argument
  38979. to grub_ieee1275_phandle_t.
  38980. * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
  38981. Move export next to declaration.
  38982. (grub_ieee1275_chosen): New variable.
  38983. * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
  38984. Correct cosmetic typo.
  38985. * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
  38986. `grub_ieee1275_chosen'.
  38987. * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
  38988. * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
  38989. (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
  38990. * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
  38991. `grub_ieee1275_chosen'.
  38992. 2005-05-10 Hollis Blanchard <hollis@penguinppc.org>
  38993. * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
  38994. /chosen/bootargs.
  38995. * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
  38996. /chosen/bootargs as "variable=value" pairs.
  38997. 2005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
  38998. * include/grub/misc.h (grub_dprintf): New macro.
  38999. (grub_real_dprintf): New prototype.
  39000. (grub_strword): Likewise.
  39001. (grub_iswordseparator): Likewise.
  39002. * kern/misc.c (grub_real_dprintf): New function.
  39003. (grub_strword): Likewise.
  39004. (grub_iswordseparator): Likewise.
  39005. 2005-04-30 Hollis Blanchard <hollis@penguinppc.org>
  39006. * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
  39007. (roundup): Remove macro.
  39008. (grub_ieee1275_flags): Make static.
  39009. (grub_ieee1275_realmode): Remove.
  39010. (grub_ieee1275_test_flag): New function.
  39011. (grub_ieee1275_set_flag): Likewise.
  39012. (find_options): Rename to `grub_ieee1275_find_options'; update
  39013. callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
  39014. GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
  39015. (cmain): New prototype.
  39016. (cmain): Use `grub_ieee1275_set_flag' instead of accessing
  39017. `grub_ieee1275_flags' directly.
  39018. * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
  39019. machine/biosdisk.h.
  39020. * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
  39021. Don't include grub/machine/init.h.
  39022. (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
  39023. * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
  39024. Remove prototype.
  39025. (grub_ieee1275_realmode): Likewise.
  39026. (grub_ieee1275_flag): New enum.
  39027. (grub_ieee1275_test_flag): New prototype.
  39028. (grub_ieee1275_set_flag): New prototype.
  39029. * include/grub/powerpc/ieee1275/init.h: Remove file.
  39030. * include/grub/powerpc/ieee1275/ofdisk.h: New file.
  39031. * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
  39032. Include grub/machine/console.h. Include grub/machine/ofdisk.h.
  39033. (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
  39034. comment.
  39035. * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
  39036. `grub_ieee1275_test_flag'.
  39037. (grub_ieee1275_encode_devname): Likewise.
  39038. 2005-04-21 Hollis Blanchard <hollis@penguinppc.org>
  39039. * include/grub/powerpc/ieee1275/ieee1275.h
  39040. (grub_ieee1275_encode_devname): New prototype.
  39041. (grub_ieee1275_get_filename): Likewise.
  39042. * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
  39043. function.
  39044. (grub_set_prefix): Likewise.
  39045. (grub_machine_init): Call grub_set_prefix.
  39046. * kern/powerpc/ieee1275/openfw.c: Fix typos.
  39047. (grub_parse_type): New enum.
  39048. (grub_ieee1275_get_devargs): New function.
  39049. (grub_ieee1275_get_devname): Likewise.
  39050. (grub_ieee1275_parse_args): Likewise.
  39051. (grub_ieee1275_get_filename): Likewise.
  39052. (grub_ieee1275_encode_devname): Likewise.
  39053. 2005-03-30 Marco Gerards <metgerards@student.han.nl>
  39054. * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
  39055. `grub_loader_unset'.
  39056. 2005-03-26 Hollis Blanchard <hollis@penguinppc.org>
  39057. * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
  39058. instead of grub_ieee1275_interpret.
  39059. (grub_halt_init): New function.
  39060. (grub_halt_fini): Likewise.
  39061. (GRUB_MOD_INIT): Correct message grammar.
  39062. * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
  39063. instead of grub_ieee1275_interpret.
  39064. (grub_reboot_init): New function.
  39065. (grub_reboot_fini): Likewise.
  39066. * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
  39067. commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
  39068. util/i386/pc/misc.c with commands/ieee1275/halt.c,
  39069. commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
  39070. * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
  39071. function.
  39072. * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
  39073. Add prototype.
  39074. * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
  39075. prototype.
  39076. (grub_halt): Likewise.
  39077. * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
  39078. (cmain): Remove __attribute__((unused)).
  39079. * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
  39080. (grub_heap_len): Likewise.
  39081. (grub_machine_fini): New function.
  39082. * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
  39083. (grub_halt): Likewise.
  39084. * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
  39085. function.
  39086. * util/powerpc/ieee1275/misc.c: New file.
  39087. 2005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
  39088. * DISTLIST: New file.
  39089. * gendistlist.sh: Likewise.
  39090. * Makefile.in (COMMON_DISTFILES): Removed.
  39091. (BOOT_DISTFILES): Likewise.
  39092. (CONF_DISTFILES): Likewise.
  39093. (DISK_DISTFILES): Likewise.
  39094. (FS_DISTFILES): Likewise.
  39095. (INCLUDE_DISTFILES): Likewise.
  39096. (KERN_DISTFILES): Likewise.
  39097. (LOADER_DISTFILES): Likewise.
  39098. (TERM_DISTFILES): Likewise.
  39099. (UTIL_DISTFILES): Likewise.
  39100. (DISTFILES): Likewise.
  39101. (uninstall): Uninstall files in $(pkgdata_DATA).
  39102. (DISTLIST): New target.
  39103. (distdir): Use the contents of the file DISTLIST to get a list of
  39104. distributed files.
  39105. 2005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
  39106. * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
  39107. descriptor. This is ported from GRUB Legacy.
  39108. * gencmdlist.sh: Added an extra semicolon to make it work with
  39109. old sed versions. Reported by Robert Bihlmeyer
  39110. <robbe@orcus.priv.at>.
  39111. 2005-03-08 Yoshinori Okuji <okuji@enbug.org>
  39112. Automatic loading of commands is supported.
  39113. * normal/main.c (read_command_list): New function.
  39114. (grub_normal_execute): Call read_command_list.
  39115. * normal/command.c (grub_register_command): Return zero or CMD.
  39116. Allocate CMD->NAME from the heap.
  39117. Initialize CMD->MODULE_NAME to zero.
  39118. Find the same name as well. If the same command is found and it is
  39119. a dummy command, overwrite members. If it is not a dummy command,
  39120. return zero.
  39121. (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
  39122. (grub_command_find): If a dummy command is found, load a module
  39123. and retry to find a command only once.
  39124. * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
  39125. make sure that each command is loaded.
  39126. * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
  39127. macro.
  39128. (struct grub_command): Remove const from the member `name'.
  39129. Add a new member `module_name'.
  39130. (grub_register_command): Return grub_command_t.
  39131. * commands/help.c (grub_cmd_help): Call grub_command_find to make
  39132. sure that each command is loaded.
  39133. * genmk.rb (PModule::rule): Specify a module name without the
  39134. suffix ".mod" to gencmdlist.sh.
  39135. 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
  39136. * gencmdlist.sh: New file.
  39137. * genmk.rb (PModule::rule): Generate a rule for a command list.
  39138. Clean command.lst.
  39139. Generate command.lst from $(COMMANDFILES).
  39140. * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
  39141. (DATA): Added $(pkgdata_DATA).
  39142. (install-local): Install files in $(pkgdata_DATA).
  39143. 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
  39144. * term/i386/pc/vga.c (debug_command): Removed.
  39145. (GRUB_MOD_INIT): Do not register the command "debug".
  39146. From Hollis Blanchard:
  39147. * commands/configfile.c: New file.
  39148. * conf/i386-pc.rmk (grub_emu_SOURCES): Added
  39149. commands/configfile.c.
  39150. (pkgdata_MODULES): Added configfile.mod.
  39151. (configfile_mod_SOURCES): New variable.
  39152. (configfile_mod_CFLAGS): Likewise.
  39153. * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
  39154. commands/configfile.c.
  39155. (pkgdata_MODULES): Added configfile.mod.
  39156. (configfile_mod_SOURCES): New variable.
  39157. (configfile_mod_CFLAGS): Likewise.
  39158. * util/grub-emu.c (main): Call grub_configfile_init and
  39159. grub_configfile_fini.
  39160. * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
  39161. prototype.
  39162. [GRUB_UTIL] (grub_configfile_fini): Likewise.
  39163. 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
  39164. * normal/arg.c (grub_arg_show_help): Do not show the bug report
  39165. address.
  39166. * commands/help.c (grub_cmd_help): Do not print newlines after
  39167. the last command in print_command_help.
  39168. 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
  39169. * commands/default.h: New file.
  39170. * commands/timeout.h: Likewise.
  39171. * normal/context.c: Likewise.
  39172. * util/misc.c: Do not include sys/times.h.
  39173. Include sys/time.h and grub/machine/time.h.
  39174. (grub_get_rtc): Rewritten with gettimeofday.
  39175. * util/grub-emu.c (main): Call grub_default_init and
  39176. grub_timeout_init before grub_normal_init, and call
  39177. grub_timeout_fini and grub_default_fini after grub_main.
  39178. * util/console.c (grub_ncurses_checkkey): Return the read
  39179. character or -1.
  39180. * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
  39181. timeouts.
  39182. * normal/main.c (read_config_file): Push MENU. If this fails,
  39183. print an error and wait for a user input.
  39184. Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
  39185. If a menu is empty or an error occurs, pop MENU.
  39186. (grub_normal_execute): Pop and free MENU after grub_menu_run
  39187. returns.
  39188. * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
  39189. * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
  39190. include time.h.
  39191. [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
  39192. without GRUB_UTIL.
  39193. * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
  39194. time.h.
  39195. [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
  39196. without GRUB_UTIL.
  39197. * include/grub/normal.h (struct grub_menu_list): New struct.
  39198. (grub_menu_list_t): New type.
  39199. (struct grub_context): New struct.
  39200. (grub_context_t): New type.
  39201. (grub_register_command): Got rid of EXPORT_FUNC.
  39202. (grub_unregister_command): Likewise.
  39203. (grub_context_get): New prototype.
  39204. (grub_context_get_current_menu): Likewise.
  39205. (grub_context_push_menu): Likewise.
  39206. (grub_context_pop_menu): Likewise.
  39207. [GRUB_UTIL] (grub_default_init): Likewise.
  39208. [GRUB_UTIL] (grub_default_fini): Likewise.
  39209. [GRUB_UTIL] (grub_timeout_init): Likewise.
  39210. [GRUB_UTIL] (grub_timeout_fini): Likewise.
  39211. * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
  39212. commands/timeout.c and normal/context.c.
  39213. (pkgdata_MODULES): Added default.mod and timeout.mod.
  39214. (normal_mod_SOURCES): Added normal/context.c.
  39215. (default_mod_SOURCES): New variable.
  39216. (default_mod_CFLAGS): Likewise.
  39217. (timeout_mod_SOURCES): Likewise.
  39218. (timeout_mod_CFLAGS): Likewise.
  39219. * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
  39220. conf/i386-pc.rmk.
  39221. (pkgdata_MODULES): Added default.mod and timeout.mod.
  39222. (normal_mod_SOURCES): Added normal/context.c.
  39223. (default_mod_SOURCES): New variable.
  39224. (default_mod_CFLAGS): Likewise.
  39225. (timeout_mod_SOURCES): Likewise.
  39226. (timeout_mod_CFLAGS): Likewise.
  39227. * Makefile.in (all-local): Added $(MKFILES).
  39228. 2005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
  39229. * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
  39230. (grub_emu_SOURCES): Likewise.
  39231. (pkgdata_MODULES): Add `sun.mod'.
  39232. (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
  39233. * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
  39234. `partmap/sun.c'.
  39235. (pkgdata_MODULES): Add `sun.mod'.
  39236. (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
  39237. * include/grub/partition.h (grub_sun_partition_map_init): New
  39238. prototype.
  39239. (grub_sun_partition_map_fini): Likewise.
  39240. * partmap/sun.c: New file.
  39241. * util/grub-emu.c (main): Initialize and de-initialize the sun
  39242. partitionmap support.
  39243. 2005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
  39244. This implements an Emacs-like menu entry editor.
  39245. * normal/menu_entry.c: New file.
  39246. * util/console.c (grub_ncurses_putchar): Translate some Unicode
  39247. characters to ASCII.
  39248. (saved_char): New variable.
  39249. (grub_ncurses_checkkey): Rewritten completely.
  39250. (grub_ncurses_getkey): Likewise.
  39251. (grub_ncurses_init): Call raw instead of cbreak.
  39252. * normal/menu.c (print_entry): Do not put a space.
  39253. (init_page): Renamed to ...
  39254. (grub_menu_init_page): ... this. All callers changed.
  39255. (edit_menu_entry): Removed.
  39256. (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
  39257. * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
  39258. * kern/misc.c (grub_vprintf): Call grub_refresh.
  39259. * normal/menu.c (DISP_LEFT): Renamed to ...
  39260. * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
  39261. * normal/menu.c (DISP_UP): Renamed to ...
  39262. * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
  39263. * normal/menu.c (DISP_RIGHT): Renamed to ...
  39264. * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
  39265. * normal/menu.c (DISP_DOWN): Renamed to ...
  39266. * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
  39267. * normal/menu.c (DISP_HLINE): Renamed to ...
  39268. * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
  39269. * normal/menu.c (DISP_VLINE): Renamed to ...
  39270. * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
  39271. * normal/menu.c (DISP_UL): Renamed to ...
  39272. * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
  39273. * normal/menu.c (DISP_UR): Renamed to ...
  39274. * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
  39275. * normal/menu.c (DISP_LL): Renamed to ...
  39276. * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
  39277. * normal/menu.c (DISP_LR): Renamed to ...
  39278. * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
  39279. * normal/menu.c (TERM_WIDTH): Renamed to ...
  39280. * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
  39281. * normal/menu.c (TERM_HEIGHT): Renamed to ...
  39282. * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
  39283. * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
  39284. * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
  39285. * normal/menu.c (TERM_MARGIN): Renamed to ...
  39286. * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
  39287. * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
  39288. * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
  39289. * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
  39290. * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
  39291. * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
  39292. * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
  39293. * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
  39294. * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
  39295. * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
  39296. * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
  39297. * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
  39298. * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
  39299. * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
  39300. * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
  39301. * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
  39302. * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
  39303. * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
  39304. * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
  39305. * normal/menu.c (TERM_CURSOR_X): Renamed to ...
  39306. * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
  39307. All callers changed.
  39308. * include/grub/normal.h: New prototype.
  39309. * conf/i386-pc.rmk (grub_emu_SOURCES): Added
  39310. normal/menu_entry.c.
  39311. (normal_mod_SOURCES): Likewise.
  39312. * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
  39313. (normal_mod_SOURCES): Likewise.
  39314. 2005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
  39315. * include/grub/normal.h (grub_halt_init): New prototype.
  39316. (grub_halt_fini): Likewise.
  39317. (grub_reboot_init): Likewise.
  39318. (grub_reboot_fini): Likewise.
  39319. * util/grub-emu.c: Include signal.h.
  39320. (main_env): New global variable.
  39321. (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
  39322. catch C-c.
  39323. (grub_machine_fini): New function.
  39324. (main): Call grub_halt_init and grub_reboot_init before
  39325. grub_main, and grub_reboot_fini and grub_halt_fini after it.
  39326. Call setjmp with MAIN_ENV to go back afterwards.
  39327. Call grub_machine_fini right before return.
  39328. * include/grub/util/misc.h: Include setjmp.h.
  39329. (main_env): New prototype.
  39330. * include/grub/kernel.h (grub_machine_fini): New prototype.
  39331. * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
  39332. * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
  39333. * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
  39334. * kern/i386/pc/init.c (grub_machine_fini): Likewise.
  39335. * term/i386/pc/console.c (grub_console_fini): Likewise.
  39336. * util/i386/pc/misc.c: New file.
  39337. * conf/i386-pc.rmk (grub_emu_SOURCES): Added
  39338. util/i386/pc/misc.c, commands/i386/pc/halt.c and
  39339. commands/i386/pc/reboot.c.
  39340. 2005-02-14 Guillem Jover <guillem@hadrons.org>
  39341. * include/grub/dl.h (grub_dl_check_header): New prototype.
  39342. (grub_arch_dl_check_header): Change return type to grub_err_t,
  39343. remove size parameter and export function. Update all callers.
  39344. * kern/dl.c (grub_dl_check_header): New function.
  39345. (grub_dl_load_core): Use `grub_dl_check_header' instead of
  39346. `grub_arch_dl_check_header'. Check ELF type. Check if sections
  39347. are inside the core.
  39348. * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
  39349. independent ELF header checks.
  39350. * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
  39351. * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
  39352. `grub_dl_check_header' instead of explicit checks. Check for the
  39353. ELF type.
  39354. * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
  39355. `grub_dl_check_header' instead of explicit checks. Remove arch
  39356. specific ELF header checks.
  39357. * util/grub-emu.c (grub_arch_dl_check_header): Remove the
  39358. argument SIZE.
  39359. 2005-02-13 Hollis Blanchard <hollis@penguinppc.org>
  39360. * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
  39361. * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
  39362. 2005-02-12 Hollis Blanchard <hollis@penguinppc.org>
  39363. * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
  39364. return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
  39365. (part_map_iterate): Clear `grub_errno' and return 0 if
  39366. `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
  39367. * partmap/amiga.c (amiga_partition_map_iterate): Return
  39368. GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
  39369. * partmap/apple.c (apple_partition_map_iterate): Likewise.
  39370. 2005-02-01 Guillem Jover <guillem@hadrons.org>
  39371. * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
  39372. help info.
  39373. 2005-01-31 Marco Gerards <metgerards@student.han.nl>
  39374. * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
  39375. Removed prototype.
  39376. (grub_rescue_cmd_linux): New prototype.
  39377. (grub_rescue_cmd_initrd): Likewise.
  39378. * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
  39379. `bi_rec'.
  39380. (grub_linux_release_mem): Release the memory for the initrd.
  39381. (grub_load_linux): Renamed from this...
  39382. (grub_rescue_cmd_linux): ...To this. Changed all callers.
  39383. Changed `entry' not to be static. Loop over memory regions to
  39384. find another one when the default fails.
  39385. (grub_rescue_cmd_initrd): New function.
  39386. (grub_linux_init): Remove function.
  39387. (grub_linux_fini): Likewise.
  39388. (GRUB_MOD_INIT): Register `initrd'.
  39389. (GRUB_MOD_FINI): Unregister `initrd'.
  39390. * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
  39391. Function removed.
  39392. (grub_linux_normal_fini): Likewise.
  39393. (GRUB_MOD_INIT): Register `initrd'.
  39394. (GRUB_MOD_FINI): Unregister `initrd'.
  39395. 2005-01-31 Marco Gerards <metgerards@student.han.nl>
  39396. * commands/help.c: New file.
  39397. * normal/arg.c (show_help): Renamed to...
  39398. (grub_arg_show_help): ... this.
  39399. * commands/i386/pc/halt.c: New file.
  39400. * commands/i386/pc/reboot.c: Likewise.
  39401. * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
  39402. (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
  39403. (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
  39404. (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
  39405. variables.
  39406. * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
  39407. `commands/help.c'.
  39408. (pkgdata_MODULES): Add `help.mod'.
  39409. (help_mod_SOURCES, help_mod_CFLAGS): New variables.
  39410. * grub/i386/pc/init.h (grub_reboot): New prototype.
  39411. (grub_halt): Likewise.
  39412. * include/grub/normal.h (grub_arg_show_help): New prototype.
  39413. (grub_help_init): Likewise.
  39414. (grub_help_fini): Likewise.
  39415. * util/grub-emu.c (main): Initialize and deinitialize the help
  39416. command.
  39417. * normal/cmdline.c (grub_cmdline_get): Doc fix.
  39418. * normal/command.c (grub_command_init): Fixed the description of
  39419. the `set' and `unset' commands.
  39420. 2005-01-31 Marco Gerards <metgerards@student.han.nl>
  39421. * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
  39422. function.
  39423. * commands/ieee1275/halt.c: New file.
  39424. * commands/ieee1275/reboot.c: Likewise.
  39425. * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
  39426. `__attribute__ ((unused))'. Some GCS related fixed.
  39427. (grub_suspend_init) [GRUB_UTIL]: Function removed.
  39428. (grub_suspend_fini): Likewise.
  39429. * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
  39430. and `halt.mod'.
  39431. (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
  39432. (halt_mod_CFLAGS): New variables.
  39433. * include/grub/powerpc/ieee1275/ieee1275.h
  39434. (grub_ieee1275_interpret): New prototype.
  39435. 2005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
  39436. * include/grub/misc.h (memmove): New prototype.
  39437. (memcpy): Likewise.
  39438. 2005-01-22 Hollis Blanchard <hollis@penguinppc.org>
  39439. * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
  39440. `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
  39441. 2005-01-22 Marco Gerards <metgerards@student.han.nl>
  39442. * kern/misc.c (grub_strndup): Function rewritten.
  39443. 2005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
  39444. * normal/menu.c (TERM_WIDTH): Macro redefined.
  39445. (TERM_TOP_BORDER_Y): Likewise.
  39446. (draw_border): Replaced while-loop by a for-loop. Make the number
  39447. of lines consistent with the number of lines displayed in
  39448. print_entries. Added a margin below the rectangle.
  39449. (print_entry): Make the entry fit in the rectangle.
  39450. (print_entries): Display the scroll arrows next to the right
  39451. border.
  39452. 2005-01-21 Marco Gerards <metgerards@student.han.nl>
  39453. * fs/minix.c (grub_minix_find_file): Reserve more space for
  39454. `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
  39455. `grub_strncpy' to copy `path' into it.
  39456. 2005-01-21 Marco Gerards <metgerards@student.han.nl>
  39457. Add the loopback device, a device via which files can be accessed
  39458. as devices.
  39459. * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
  39460. (pkgdata_MODULES): Add loopback.mod.
  39461. (loopback_mod_SOURCES): New variable.
  39462. (loopback_mod_CFLAGS): Likewise.
  39463. * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
  39464. `disk/loopback.c'.
  39465. (pkgdata_MODULES): Add loopback.mod.
  39466. (loopback_mod_SOURCES): New variable.
  39467. (loopback_mod_CFLAGS): Likewise.
  39468. * disk/loopback.c: new file.
  39469. * include/grub/normal.h (grub_loop_init): New prototype.
  39470. (grub_loop_fini): New prototype.
  39471. * util/grub-emu.c (main): Initialize and de-initialize loopback
  39472. support.
  39473. * include/grub/disk.h (grub_disk_dev_id): Add
  39474. `GRUB_DISK_DEVICE_LOOPBACK_ID'.
  39475. 2005-01-20 Hollis Blanchard <hollis@penguinppc.org>
  39476. * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
  39477. function.
  39478. * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
  39479. (suspend_mod_SOURCES): New variable.
  39480. (suspend_mod_CFLAGS): Likewise.
  39481. * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
  39482. New prototype.
  39483. * commands/ieee1275/suspend.c: New file.
  39484. 2005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
  39485. * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
  39486. ((unused))' to `__attribute__ ((used))'.
  39487. (GRUB_MOD_FINI): Likewise.
  39488. * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
  39489. * genmk.rb (PModule): Assign space to common symbols when linking
  39490. modules.
  39491. 2005-01-20 Marco Gerards <metgerards@student.han.nl>
  39492. * include/grub/mm.h (grub_mm_init_region): Change the type of the
  39493. `unsigned' arguments to `grub_size_t'.
  39494. (grub_malloc): Likewise.
  39495. (grub_realloc): Likewise.
  39496. (grub_memalign): Likewise.
  39497. * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
  39498. * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
  39499. * util/misc.c (grub_malloc): Likewise.
  39500. (grub_realloc): Likewise.
  39501. * kern/mm.c (get_header_from_pointer): Change the casts to
  39502. `unsigned' into a cast to `grub_size_t'.
  39503. * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
  39504. point to `currnode' when `currnode' is changed.
  39505. * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
  39506. Schottelius <nico-linux@schottelius.org>.
  39507. 2005-01-09 Hollis Blanchard <hollis@penguinppc.org>
  39508. * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
  39509. (note_path): Remove variable.
  39510. (GRUB_IEEE1275_NOTE_NAME): New macro.
  39511. (GRUB_IEEE1275_NOTE_TYPE): Likewise.
  39512. (grub_ieee1275_note_hdr): New structure.
  39513. (grub_ieee1275_note_desc): Likewise.
  39514. (grub_ieee1275_note): Likewise.
  39515. (load_note): Remove `dir' argument. All callers updated. Remove
  39516. `note_img' and `path'. Do not load a file from `note_path'.
  39517. Initialize a struct grub_ieee1275_note and write that to `out'.
  39518. Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
  39519. 2005-01-05 Marco Gerards <metgerards@student.han.nl>
  39520. * util/misc.c (grub_util_read_image): Revert last change. It
  39521. called `grub_util_read_at', which seeks from the beginning of the
  39522. file.
  39523. 2005-01-04 Hollis Blanchard <hollis@penguinppc.org>
  39524. * TODO: Add note about endianness in grub-mkimage.
  39525. * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
  39526. section.
  39527. * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
  39528. (grub_mkimage_SOURCES): New target.
  39529. * include/grub/kernel.h (grub_start_addr): Remove variable.
  39530. (grub_end_addr): Likewise.
  39531. (grub_total_module_size): Likewise.
  39532. (grub_kernel_image_size): Likewise.
  39533. (GRUB_MODULE_MAGIC): New constant.
  39534. (grub_module_info): New structure.
  39535. (grub_arch_modules_addr): New prototype.
  39536. (grub_get_end_addr): Remove prototype.
  39537. * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
  39538. * include/grub/powerpc/ieee1275/kernel.h: New file.
  39539. * include/grub/util/misc.h (grub_util_get_fp_size): New
  39540. prototype.
  39541. (grub_util_read_at): Likewise.
  39542. (grub_util_write_image_at): Likewise.
  39543. * kern/main.c (grub_get_end_addr): Remove function.
  39544. (grub_load_modules): Call grub_arch_modules_addr instead of using
  39545. grub_end_addr. Look for a grub_module_info struct in memory. Use
  39546. the grub_module_info fields instead of calling grub_get_end_addr
  39547. as loop conditions. Move grub_add_unused_region code here.
  39548. (grub_add_unused_region): Remove function.
  39549. * kern/i386/pc/init.c: Include grub/cache.h.
  39550. (grub_machine_init): Remove call to grub_get_end_addr. Remove
  39551. one call to add_mem_region.
  39552. (grub_arch_modules_addr): New function.
  39553. * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
  39554. (grub_total_module_size): Likewise.
  39555. Include grub/machine/kernel.h.
  39556. (grub_arch_modules_addr): New function.
  39557. * util/grub-emu.c (grub_end_addr): Remove variable.
  39558. (grub_total_module_size): Likewise.
  39559. (grub_arch_modules_addr): New function.
  39560. * util/misc.c: Include unistd.h.
  39561. (grub_util_get_fp_size): New function.
  39562. (grub_util_read_at): Likewise.
  39563. (grub_util_write_image_at): Likewise.
  39564. (grub_util_read_image): Call grub_util_read_at.
  39565. (grub_util_write_image): Call grub_util_write_image_at.
  39566. * util/i386/pc/grub-mkimage.c (generate_image): Allocate
  39567. additional memory in kernel_img for a struct grub_module_info.
  39568. Fill in that grub_module_info.
  39569. * util/powerpc/ieee1275/grub-mkimage.c: New file.
  39570. 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
  39571. * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
  39572. New function.
  39573. * include/grub/powerpc/ieee1275/ieee1275.h
  39574. (grub_ieee1275_milliseconds): New prototype.
  39575. * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
  39576. Change to 1000.
  39577. * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
  39578. grub_ieee1275_milliseconds.
  39579. 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
  39580. * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
  39581. variable.
  39582. (find_options): New function.
  39583. (cmain): Call find_options.
  39584. * include/grub/powerpc/ieee1275/ieee1275.h
  39585. (grub_ieee1275_realmode): New extern variable.
  39586. * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
  39587. grub_map if grub_ieee1275_realmode is false.
  39588. 2004-12-29 Marco Gerards <metgerards@student.han.nl>
  39589. * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
  39590. lines are inserted and make it work like readline. Reported by
  39591. Vincent Pelletier <subdino2004@yahoo.fr>.
  39592. 2004-12-28 Marco Gerards <metgerards@student.han.nl>
  39593. * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
  39594. * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
  39595. `kern/powerpc/cache.S'.
  39596. 2004-12-27 Marco Gerards <metgerards@student.han.nl>
  39597. * genmk.rb: Handle the `Program' class in the main loop. Written
  39598. by Johan Rydberg <jrydberg@gnu.org>.
  39599. (Program): New class.
  39600. (programs): New variable.
  39601. * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
  39602. instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
  39603. instead of "grub/kernel.h". Include <grub/machine/init.h>.
  39604. (help_arch): Function removed.
  39605. * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
  39606. `powerpc/libgcc.h' and `loader.h'.
  39607. (pkgdata_PROGRAMS): New variable.
  39608. (sbin_UTILITIES): Variable removed.
  39609. (grub_emu_SOURCES): Added kern/powerpc/cache.S.
  39610. (grubof_SOURCES): Variable re-defined so it only includes the
  39611. core functionality.
  39612. (grubof_CFLAGS): Remove `-DGRUBOF'.
  39613. (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
  39614. (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
  39615. (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
  39616. (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
  39617. (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
  39618. (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
  39619. (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
  39620. (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
  39621. (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
  39622. (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
  39623. (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
  39624. (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
  39625. (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
  39626. (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
  39627. (pc_mod_CFLAGS): New variables.
  39628. * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
  39629. (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
  39630. * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
  39631. * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
  39632. Moved from here...
  39633. * include/grub/i386/pc/init.h (grub_os_area_addr)
  39634. (rub_os_area_size): ... to here.
  39635. * include/grub/powerpc/ieee1275/ieee1275.h
  39636. (grub_ieee1275_entry_fn): Export symbol.
  39637. * include/grub/powerpc/ieee1275/init.h: New file.
  39638. * include/grub/powerpc/libgcc.h: Likewise.
  39639. * include/grub/cache.h: Likewise.
  39640. * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
  39641. <hollis@penguinppc.org>.
  39642. * kern/dl.c: Include <grub/cache.h>.
  39643. (grub_dl_flush_cache): New function.
  39644. (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
  39645. for this module.
  39646. * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
  39647. (grub_console_init): Removed prototypes.
  39648. (grub_machine_init): Don't initialize the modules anymore.
  39649. * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
  39650. static.
  39651. * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
  39652. Macro undef removed.
  39653. (GRUB_HOST_WORDS_BIGENDIAN): New macro.
  39654. * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
  39655. relocation `R_PPC_REL32'. Return an error when the relocation is
  39656. unknown.
  39657. * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
  39658. * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
  39659. * util/misc.c (grub_arch_sync_caches): Likewise.
  39660. 2004-12-19 Marco Gerards <metgerards@student.han.nl>
  39661. * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
  39662. `symlist.c', add `grubof_symlist.c'.
  39663. (symlist.c): Variable removed.
  39664. (grubof_HEADERS): Variable added.
  39665. (grubof_symlist.c): New target.
  39666. (kernel_syms.lst): Use `grubof_HEADERS' instead of
  39667. `kernel_img_HEADERS'.
  39668. (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
  39669. * kern/powerpc/dl.c: New file.
  39670. * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
  39671. Function removed.
  39672. (grub_arch_dl_relocate_symbols): Likewise.
  39673. (grub_register_exported_symbols): Likewise.
  39674. 2004-12-13 Marco Gerards <metgerards@student.han.nl>
  39675. * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
  39676. (grub_ext2_dir): Likewise. Don't return in case of an error, jump
  39677. to fail instead. Reported by Vincent Pelletier
  39678. <subdino2004@yahoo.fr>.
  39679. * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
  39680. it is not allocated. Reported by Vincent Pelletier
  39681. <subdino2004@yahoo.fr>.
  39682. * normal/cmdline.c (grub_tab_complete): Add a blank line to the
  39683. output so the output looks better.
  39684. 2004-12-04 Marco Gerards <metgerards@student.han.nl>
  39685. Modulize the partition map support and add support for the amiga
  39686. partition map.
  39687. * commands/ls.c: Include <grub/partition.h> instead of
  39688. <grub/machine/partition.h>.
  39689. * kern/disk.c: Likewise.
  39690. * kern/rescue.c: Likewise.
  39691. * loader/i386/pc/chainloader.c: Likewise.
  39692. * normal/cmdline.c: Likewise.
  39693. * kern/powerpc/ieee1275/init.c: Likewise.
  39694. (grub_machine_init): Call `grub_pc_partition_map_init',
  39695. `grub_amiga_partition_map_init' and
  39696. `grub_apple_partition_map_init'.
  39697. * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
  39698. `disk/i386/pc/partition.c'. Add `kern/partition.c'.
  39699. (kernel_img_HEADERS): Remove `machine/partition.h'. Add
  39700. `partition.h' and `pc_partition.h'.
  39701. (grub_setup_SOURCES): Remove
  39702. `disk/i386/pc/partition.c'. Add `kern/partition.c',
  39703. `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
  39704. (grub_emu_SOURCES): Likewise.
  39705. (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
  39706. (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
  39707. (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
  39708. * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
  39709. `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
  39710. `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
  39711. (grubof_SOURCES): Likewise.
  39712. * disk/i386/pc/partition.c: File removed.
  39713. * disk/powerpc/ieee1275/partition.c: Likewise.
  39714. * include/grub/powerpc/ieee1275/partition.h: Likewise.
  39715. * include/grub/i386/pc/partition.h: Likewise.
  39716. * kern/partition.c: New file.
  39717. * partmap/amiga.c: Likewise.
  39718. * partmap/apple.c: Likewise.
  39719. * partmap/pc.c: Likewise.
  39720. * include/grub/partition.h: Likewise..
  39721. * include/grub/pc_partition.h: Likewise.
  39722. * util/grub-emu.c: Include <grub/partition.h> instead of
  39723. <grub/machine/partition.h>.
  39724. (main): Call `grub_pc_partition_map_init',
  39725. `grub_amiga_partition_map_init' and
  39726. `grub_apple_partition_map_init' and deinitialize afterwards.
  39727. * util/i386/pc/biosdisk.c: Include `#include
  39728. <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
  39729. `<grub/machine/partition.h>'.
  39730. * util/i386/pc/grub-setup.c: Likewise.
  39731. * util/i386/pc/biosdisk.c: Likewise.
  39732. (grub_util_biosdisk_get_grub_dev): Only access the PC specific
  39733. partition information in case of a PC partition.
  39734. * util/i386/pc/grub-setup.c: Include `#include
  39735. <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
  39736. `<grub/machine/partition.h>'.
  39737. (setup): Only access the PC specific partition information in case
  39738. of a PC partition.
  39739. 2004-11-17 Hollis Blanchard <hollis@penguinppc.org>
  39740. * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
  39741. (grub_longjmp): Likewise.
  39742. * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
  39743. 20.
  39744. * normal/powerpc/setjmp.S: New file.
  39745. * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
  39746. `normal/powerpc/setjmp.S'.
  39747. (grubof_CFLAGS): Add `-DGRUBOF'.
  39748. * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
  39749. [GRUB_UTIL && !GRUBOF].
  39750. 2004-11-16 Marco Gerards <metgerards@student.han.nl>
  39751. * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
  39752. property named `name'. Correctly handle the error returned by
  39753. `grub_ieee1275_finddevice' if a device can not be opened.
  39754. 2004-11-02 Hollis Blanchard <hollis@penguinppc.org>
  39755. * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
  39756. `actual' for negativity.
  39757. * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
  39758. kern/fshelp.c.
  39759. 2004-11-01 Marco Gerards <metgerards@student.han.nl>
  39760. * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
  39761. (PAGE_OFFSET): New macro.
  39762. (CRTC_ADDR_PORT): Likewise.
  39763. (CRTC_DATA_PORT): Likewise.
  39764. (START_ADDR_HIGH_REGISTER): Likewise.
  39765. (START_ADDR_LOW_REGISTER): Likewise.
  39766. (GRAPHICS_ADDR_PORT): Likewise.
  39767. (GRAPHICS_DATA_PORT): Likewise.
  39768. (READ_MAP_REGISTER): Likewise.
  39769. (INPUT_STATUS1_REGISTER): Likewise.
  39770. (INPUT_STATUS1_VERTR_BIT): Likewise.
  39771. (page): New variable.
  39772. (wait_vretrace): New function.
  39773. (set_read_map): Likewise.
  39774. (set_start_address): Likewise.
  39775. (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
  39776. the right page.
  39777. (check_vga_mem): Take the page into account.
  39778. (write_char): Likewise.
  39779. (write_cursor): Likewise.
  39780. (scroll_up): Likewise. Copy the page to the page that is not
  39781. shown and switch between both pages.
  39782. (grub_vga_putchar): Fix off by one error.
  39783. (grub_vga_cls): Wait for the vertical retrace. Take the page into
  39784. account.
  39785. 2004-11-01 Marco Gerards <metgerards@student.han.nl>
  39786. Add support for iso9660 (including rockridge).
  39787. * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
  39788. (iso9660_mod_SOURCES): New variable.
  39789. (iso9660_mod_CFLAGS): Likewise.
  39790. * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
  39791. * include/grub/fs.h (grub_iso9660_init): New prototype.
  39792. * util/grub-emu.c (main): Call `grub_iso9660_init'.
  39793. * fs/iso9660.c: New file.
  39794. * include/grub/misc.h (grub_strncat): New prototype.
  39795. * kern/misc.c (grub_strncat): New function.
  39796. * fs/hfs.c (grub_hfs_mount): Translate the error
  39797. `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
  39798. * fs/jfs.c (grub_jfs_mount): Likewise.
  39799. * fs/ufs.c (grub_ufs_mount): Likewise.
  39800. 2004-10-28 Hollis Blanchard <hollis@penguinppc.org>
  39801. * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
  39802. which initialized BAT registers.
  39803. * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
  39804. grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
  39805. Move from here...
  39806. * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
  39807. grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
  39808. ... to here.
  39809. * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
  39810. (grub_mapclaim): Likewise.
  39811. * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
  39812. grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
  39813. hand.
  39814. 2004-10-19 Hollis Blanchard <hollis@penguinppc.org>
  39815. * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
  39816. (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
  39817. -ffreestanding and -msoft-float.
  39818. 2004-10-15 Hollis Blanchard <hollis@penguinppc.org>
  39819. * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
  39820. append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
  39821. set in grub_ieee1275_flags.
  39822. 2004-10-14 Hollis Blanchard <hollis@penguinppc.org>
  39823. * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
  39824. prototype.
  39825. * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
  39826. grub_console_init first.
  39827. Change the memory range used for grub_ieee1275_claim and
  39828. grub_mm_init_region.
  39829. Print an error message if the claim fails.
  39830. Include <grub/misc.h>.
  39831. 2004-10-13 Hollis Blanchard <hollis@penguinppc.org>
  39832. * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
  39833. Call grub_children_iterate for device nodes of type `scsi',
  39834. `ide', or `ata'.
  39835. (grub_ofdisk_open): Remove manual device alias resolution.
  39836. Fix memory leak when device cannot be opened.
  39837. * include/grub/powerpc/ieee1275/ieee1275.h
  39838. (grub_children_iterate): New prototype.
  39839. * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
  39840. New function.
  39841. * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
  39842. Return -1 if args.size was -1.
  39843. 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
  39844. * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
  39845. (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
  39846. World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
  39847. Open Firmware's memory for it; claim memory from _start to _end.
  39848. * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
  39849. (_end): New extern.
  39850. (_start): Zero BSS from __bss_start to _end.
  39851. * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
  39852. New extern.
  39853. (GRUB_IEEE1275_NO_PARTITION_0): New #define.
  39854. 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
  39855. * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
  39856. -1 if args.base was -1.
  39857. 2004-10-08 Hollis Blanchard <hollis@penguinppc.org>
  39858. * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
  39859. escape sequence instead of a literal ^L. Also call
  39860. grub_ofconsole_gotoxy.
  39861. 2004-10-03 Hollis Blanchard <hollis@penguinppc.org>
  39862. * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
  39863. void * arguments to grub_addr_t. All callers updated. Also make
  39864. the `result' argument optional.
  39865. (grub_ieee1275_release): change void * arguments to grub_addr_t.
  39866. All callers updated.
  39867. 2004-09-22 Hollis Blanchard <hollis@penguinppc.org>
  39868. * commands/ls.c (grub_ls_list_files): Use the string following the
  39869. initial ')', if present, as the filesystem path.
  39870. * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
  39871. * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
  39872. 2004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
  39873. Make the source code of the menu interface more readable.
  39874. * normal/menu.c: Include grub/mm.h.
  39875. (TERM_WIDTH): New macro.
  39876. (TERM_HEIGHT): Likewise.
  39877. (TERM_INFO_HEIGHT): Likewise.
  39878. (TERM_MARGIN): Likewise.
  39879. (TERM_SCROLL_WIDTH): Likewise.
  39880. (TERM_TOP_BORDER_Y): Likewise.
  39881. (TERM_LEFT_BORDER_X): Likewise.
  39882. (TERM_BORDER_WIDTH): Likewise.
  39883. (TERM_MESSAGE_HEIGHT): Likewise.
  39884. (TERM_BORDER_HEIGHT): Likewise.
  39885. (TERM_NUM_ENTRIES): Likewise.
  39886. (TERM_FIRST_ENTRY_Y): Likewise.
  39887. (TERM_ENTRY_WIDTH): Likewise.
  39888. (TERM_CURSOR_X): Likewise.
  39889. (draw_border): Use macros instead of magic numbers.
  39890. (print_entry): Likewise.
  39891. (print_entries): Likewise.
  39892. (run_menu): Likewise. Also, handle the key 'e'.
  39893. (run_menu_entry): Ignore empty command lines.
  39894. (print_message): Added a new argument EDIT. If EDIT is true,
  39895. print a different message.
  39896. (init_page): Likewise.
  39897. (edit_menu_entry): New function. Not implemented yet.
  39898. 2004-09-17 Marco Gerards <metgerards@student.han.nl>
  39899. Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
  39900. can be loaded from normal mode.
  39901. * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
  39902. `multiboot.mod'.
  39903. (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
  39904. (multiboot_mod_CFLAGS): New variables.
  39905. * loader/i386/pc/linux_normal.c: New file.
  39906. * loader/i386/pc/multiboot_normal.c: Likewise.
  39907. * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
  39908. attribute `unused'.
  39909. * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
  39910. `fdiro' to read the mode information from instead of `diro'.
  39911. * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
  39912. looking up a symlink.
  39913. * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
  39914. macro.
  39915. * normal/command.c (grub_command_execute): Don't parse the
  39916. arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
  39917. flags of the command.
  39918. * normal/menu.c (grub_menu_run): Fix typo.
  39919. 2004-09-14 Hollis Blanchard <hollis@penguinppc.org>
  39920. * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
  39921. * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
  39922. `y + 1' instead of `y - 1'.
  39923. * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
  39924. 2004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
  39925. From Hollis Blanchard <hollis@penguinppc.org>:
  39926. * kern/misc.c (memmove): New alias for grub_memmove.
  39927. (memcmp): New alias for grub_memcmp.
  39928. (memset): New alias for grub_memset.
  39929. * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
  39930. Change "int handle" to "grub_ieee1275_phandle_t handle".
  39931. * include/grub/powerpc/ieee1275/ieee1275.h
  39932. (grub_ieee1275_get_property): Likewise.
  39933. 2004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
  39934. Added normal mode command `chainloader' as module chain.mod, which
  39935. depends on normal.mod and _chain.mod.
  39936. * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
  39937. (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
  39938. * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
  39939. Deleted prototype.
  39940. * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
  39941. but arguments parsing moved to ...
  39942. (grub_chainloader_cmd): ... here. New function.
  39943. * include/grub/i386/pc/chainloader.h: New file.
  39944. * loader/i386/pc/chainloader_normal.c: Likewise.
  39945. 2004-09-11 Marco Gerards <metgerards@student.han.nl>
  39946. * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
  39947. (grub_mkimage_LDFLAGS): Likewise.
  39948. (grub_emu_SOURCES): Likewise.
  39949. (kernel_img_HEADERS): Added fshelp.h.
  39950. * fs/ext2.c: Include <grub/fshelp.h>.
  39951. (FILETYPE_REG): New macro.
  39952. (FILETYPE_INO_REG): Likewise.
  39953. (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
  39954. Changed all users.
  39955. (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
  39956. all users.
  39957. (grub_fshelp_node): New struct.
  39958. (grub_ext2_data): Added member `diropen'. Changed member `inode'
  39959. to a pointer.
  39960. (grub_ext2_get_file_block): Removed function.
  39961. (grub_ext2_read_block): New function.
  39962. (grub_ext2_read_file): Replaced parameter `data' by `node'.
  39963. This function was written.
  39964. (grub_ext2_mount): Read the root inode. Create a diropen struct.
  39965. (grub_ext2_find_file): Removed function.
  39966. (grub_ext2_read_symlink): New function.
  39967. (grub_ext2_iterate_dir): Likewise.
  39968. (grub_ext2_open): Rewritten.
  39969. (grub_ext2_dir): Rewritten.
  39970. * include/grub/fshelp.h: New file.
  39971. * fs/fshelp.c: Likewise.
  39972. 2004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
  39973. * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
  39974. (print_message): Add a missing newline.
  39975. (run_menu): Added timeout support.
  39976. (run_menu_entry): New local function.
  39977. (grub_menu_run): Added support for booting.
  39978. * kern/loader.c (grub_loader_is_loaded): New function.
  39979. * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
  39980. (grub_get_rtc): Exported.
  39981. * include/grub/i386/pc/time.h: Include grub/symbol.h.
  39982. (grub_get_rtc): Exported.
  39983. * include/grub/normal.h (struct grub_command_list): Remove
  39984. constant from the member `command'.
  39985. * include/grub/loader.h (grub_loader_is_loaded): Declared.
  39986. * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
  39987. * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
  39988. 2004-08-28 Marco Gerards <metgerards@student.han.nl>
  39989. Add support for the JFS filesystem.
  39990. * fs/jfs.c: New file.
  39991. * include/grub/fs.h (grub_jfs_init): New prototype.
  39992. (grub_jfs_fini): New prototype.
  39993. * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
  39994. (grub_emu_SOURCES): Likewise.
  39995. (pkgdata_MODULES): Add jfs.mod.
  39996. (jfs_mod_SOURCES): New variable.
  39997. (jfs_mod_CFLAGS): Likewise.
  39998. * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
  39999. (grubof_SOURCES): Likewise.
  40000. * util/grub-emu.c (main): Initialize and deinitialize JFS support.
  40001. * fs/fat.c (grub_fat_find_dir): Convert the filename little
  40002. endian to the host endian.
  40003. (grub_fat_utf16_to_utf8): Move function from there...
  40004. * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
  40005. the endianness of the source string anymore.
  40006. * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
  40007. 2004-08-24 Marco Gerards <metgerards@student.han.nl>
  40008. * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
  40009. (grub_boot_fini) [GRUB_UTIL]: Likewise.
  40010. (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
  40011. (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
  40012. * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
  40013. (grub_hfs_iterate_dir): Make the function static. Add prototypes
  40014. for `node_found' and `it_dir'.
  40015. (grub_hfs_dir): Add prototype for `dir_hook'.
  40016. * fs/minix.c (grub_minix_get_file_block): Add prototype for
  40017. `grub_get_indir'. Rename `indir' in two blocks to `indir16'
  40018. and `indir32' to silence a gcc warning.
  40019. * include/grub/fs.h (grub_hfs_init): New prototype.
  40020. (grub_hfs_fini): Likewise.
  40021. 2004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
  40022. Each disk device has its own id now. This is useful to make use
  40023. of multiple disk devices.
  40024. * include/grub/disk.h (grub_disk_dev_id): New enum.
  40025. (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
  40026. (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
  40027. * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
  40028. GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
  40029. * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
  40030. GRUB_DISK_DEVICE_OFDISK_ID as an id.
  40031. * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
  40032. GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
  40033. * include/grub/disk.h (struct grub_disk_dev): Added a new member
  40034. "id" which is used by the cache manager.
  40035. * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
  40036. of just "GRUB".
  40037. 2004-08-18 Marco Gerards <metgerards@student.han.nl>
  40038. * fs/hfs.c: New file.
  40039. * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
  40040. (grub_emu_SOURCES): Likewise.
  40041. (pkgdata_MODULES): Add hfs.mod.
  40042. * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
  40043. (grubof_SOURCES): Likewise.
  40044. * util/grub-emu.c (main): Initialize and deinitialize HFS support.
  40045. * include/grub/misc.h (grub_strncasecmp): Add prototype.
  40046. * kern/misc.c (grub_strncasecmp): Add function.
  40047. 2004-08-14 Marco Gerards <metgerards@student.han.nl>
  40048. * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
  40049. with parentheses.
  40050. * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
  40051. (grub_ext2_dir): In case the directory entry type is unknown, read
  40052. it from the inode.
  40053. 2004-08-02 Peter Bruin <pjbruin@dds.nl>
  40054. * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
  40055. grub_load_linux instead of grub_rescue_cmd_linux as second
  40056. argument of grub_rescue_register_command.
  40057. * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
  40058. 2004-07-27 Marco Gerards <metgerards@student.han.nl>
  40059. * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
  40060. function.
  40061. * commands/boot.c: Remove the check for `GRUB_UTIL'.
  40062. * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
  40063. `loader/powerpc/ieee1275/linux.c',
  40064. `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
  40065. * include/grub/powerpc/ieee1275/ieee1275.h
  40066. (grub_ieee1275_release): New prototype.
  40067. * include/grub/powerpc/ieee1275/loader.h: Rewritten.
  40068. * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
  40069. normal, boot, linux and linux_normal.
  40070. * loader/powerpc/ieee1275/linux.c: New file.
  40071. * loader/powerpc/ieee1275/linux_normal.c: Likewise.
  40072. 2004-07-12 Marco Gerards <metgerards@student.han.nl>
  40073. * normal/arg.c (grub_arg_parse): Correct error handling after
  40074. reallocating the argumentlist (check if `argl' is not null instead
  40075. of checking if `args' is not null).
  40076. * kern/mm.c (grub_realloc): Return the same pointer when using the
  40077. same region, instead of returning the header address.
  40078. 2004-07-11 Marco Gerards <metgerards@student.han.nl>
  40079. * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
  40080. one block instead of two when looking for the initial partition.
  40081. (grub_partition_probe): Initialize the local variable `p' with 0.
  40082. Use base 10 for the grub_strtoul call.
  40083. * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
  40084. need for one local variable.
  40085. (grub_strtoul): Don't add the new value to `num', instead of that
  40086. just assign it.
  40087. 2004-07-11 Marco Gerards <metgerards@student.han.nl>
  40088. * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
  40089. (pxeboot_img_SOURCES): New variable.
  40090. (pxeboot_img_ASFLAGS): Likewise.
  40091. (pxeboot_img_LDFLAGS): Likewise.
  40092. * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
  40093. GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
  40094. <lode_leroy@hotmail.com>.
  40095. 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
  40096. * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
  40097. there was no input.
  40098. 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
  40099. * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
  40100. the history buffer logic.
  40101. 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
  40102. * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
  40103. (FILETYPE_INO_SYMLINK): New macros.
  40104. (grub_ext2_find_file): Check if the node is a directory using the
  40105. inode stat information instead of using the filetype in the
  40106. dirent. Exclude the first character of an absolute symlink.
  40107. (grub_ext2_dir): Mask out the filetype part of the mode member of
  40108. the inode.
  40109. 2004-05-24 Marco Gerards <metgerards@student.han.nl>
  40110. Add support for UFS version 1 and 2. Add support for the minix
  40111. filesystem version 1 and 2, both the variants with 14 and 30 long
  40112. filenames.
  40113. * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
  40114. fs/minix.c.
  40115. (grub_emu_SOURCES): Likewise.
  40116. (pkgdata_MODULES): Add ufs.mod and minix.mod.
  40117. (ufs_mod_SOURCES): New variable.
  40118. (ufs_mod_CFLAGS): Likewise.
  40119. (minix_mod_SOURCES): Likewise.
  40120. (minix_mod_CFLAGS): Likewise.
  40121. * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
  40122. fs/minix.c.
  40123. (grubof_SOURCES): Likewise.
  40124. * fs/ufs.c: New file.
  40125. * fs/minix.c: New file.
  40126. * include/grub/fs.h (grub_ufs_init): New prototype.
  40127. (grub_ufs_fini): Likewise.
  40128. (grub_minix_init): Likewise.
  40129. (grub_minix_fini): Likewise.
  40130. * util/grub-emu.c (main): Initialize and deinitialize UFS and
  40131. minix fs.
  40132. 2004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
  40133. * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
  40134. commands/ls.c, commands/terminal.c, commands/boot.c,
  40135. commands/cmp.c and commands/cat.c.
  40136. (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
  40137. * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
  40138. "env.h"
  40139. 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
  40140. All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
  40141. and grub_, respectively. Because the conversion is trivial and
  40142. mechanical, I omit the details here. Please refer to the CVS
  40143. if you need more information.
  40144. 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
  40145. * include/pupa: Renamed to ...
  40146. * include/grub: ... this.
  40147. * util/i386/pc/pupa-mkimage.c: Renamed to ...
  40148. * util/i386/pc/grub-mkimage.c: ... this.
  40149. * util/i386/pc/pupa-setup.c: Renamed to ...
  40150. * util/i386/pc/grub-setup.c: ... this.
  40151. * util/pupa-emu.c: Renamed to ...
  40152. * util/grub-emu.c: ... this.
  40153. 2004-03-29 Marco Gerards <metgerards@student.han.nl>
  40154. Add support for the newworld apple macintosh (PPC). This has been
  40155. tested on the powerbook 2000 only. It only adds support for
  40156. generic ieee1275 functions, console and disk support. This should
  40157. be easy to port to other architectures with support for Open
  40158. Firmware.
  40159. * configure.ac: Accept the powerpc as host_cpu. In the case of
  40160. the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
  40161. specific tests are only executed while building for the i386.
  40162. Inverse test for crosscompile.
  40163. * genmk.rb (Utility): Allow assembler files.
  40164. * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
  40165. * conf/powerpc-ieee1275.rmk: New file.
  40166. * disk/powerpc/ieee1275/ofdisk.c: Likewise.
  40167. * disk/powerpc/ieee1275/partition.c: Likewise.
  40168. * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
  40169. * include/pupa/powerpc/ieee1275/console.h: Likewise.
  40170. * include/pupa/powerpc/ieee1275/partition.h: Likewise.
  40171. * include/pupa/powerpc/ieee1275/time.h: Likewise.
  40172. * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
  40173. * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
  40174. * include/pupa/powerpc/ieee1275/loader.h
  40175. * include/pupa/powerpc/setjmp.h: Likewise.
  40176. * include/pupa/powerpc/types.h: Likewise.
  40177. * kern/powerpc/ieee1275/init.c: Likewise.
  40178. * kern/powerpc/ieee1275/openfw.c: Likewise.
  40179. * term/powerpc/ieee1275/ofconsole.c: Likewise.
  40180. These files were written by Johan Rydberg
  40181. (jrydberg@night.trouble.net) and I only modified them slightly.
  40182. * boot/powerpc/ieee1275/cmain.c: New file.
  40183. * boot/powerpc/ieee1275/crt0.S: Likewise.
  40184. * boot/powerpc/ieee1275/ieee1275.c: Likewise.
  40185. * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
  40186. 2004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
  40187. * Makefile.in: Update copyright.
  40188. * genmodsrc.sh: Likewise.
  40189. * gensymlist.sh: Likewise.
  40190. * term/i386/pc/vga.c: Indent correctly.
  40191. * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
  40192. bugreporting address.
  40193. * util/i386/pc/pupa-setup.c (usage): Likewise,
  40194. (main): Call pupa_ext2_init and pupa_ext2_fini.
  40195. * fs/fat.c (log2): Renamed to ...
  40196. (fat_log2): ... this.
  40197. All callers changed.
  40198. * kern/misc.c (memcpy): Alias to pupa_memmove.
  40199. * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
  40200. lvalue cast.
  40201. * util/console.c (pupa_ncurses_fini): Return 0.
  40202. * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
  40203. Move fail label here.
  40204. [__GNU__]: Don't warn when using stat.
  40205. (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
  40206. (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
  40207. long int. Use strtol instead of strtoul.
  40208. 2004-03-14 Marco Gerards <metgerards@student.han.nl>
  40209. * commands/boot.c: New file.
  40210. * commands/cat.c: Likewise.
  40211. * commands/cmp.c: Likewise.
  40212. * commands/ls.c: Likewise.
  40213. * commands/terminal.c: Likewise.
  40214. * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
  40215. (pupa_register_command): Changed interface to match the new
  40216. argument parser.
  40217. (pupa_command_execute): Changed (almost rewritten) so it uses
  40218. pupa_split_command. Added support for setting variables using the
  40219. syntax `foo=bar'.
  40220. (rescue_command): Changed to work with the new argument parser.
  40221. (terminal_command): Moved from here to commands/terminal.c.
  40222. (set_command): New function.
  40223. (unset_command): New function.
  40224. (insmod_command): New function.
  40225. (rmmod_command): New function.
  40226. (lsmod_command): New function.
  40227. (pupa_command_init): Don't initialize the command terminal
  40228. anymore. Initialize the commands set, unset, insmod, rmmod and
  40229. lsmod.
  40230. * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
  40231. (kernel_img_HEADERS): Add arg.h and env.h.
  40232. (pupa_mkimage_LDFLAGS): Add kern/env.c.
  40233. (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
  40234. commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
  40235. normal/arg.c.
  40236. (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
  40237. terminal.mod.
  40238. (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
  40239. (boot_mod_SOURCES): New variable.
  40240. (terminal_mod_SOURCES): Likewise.
  40241. (ls_mod_SOURCES): Likewise.
  40242. (cmp_mod_SOURCES): Likewise.
  40243. (cat_mod_SOURCES): Likewise.
  40244. * normal/arg.c: New file.
  40245. * kern/env.c: Likewise.
  40246. * include/pupa/arg.h: Likewise.
  40247. * include/pupa/env.h: Likewise.
  40248. * font/manager.c (font_command): Changed to match argument parsing
  40249. interface changes.
  40250. (PUPA_MOD_INIT): Likewise.
  40251. * hello/hello.c (pupa_cmd_hello): Likewise.
  40252. (PUPA_MOD_INIT): Likewise.
  40253. * include/pupa/disk.h: Include <pupa/device.h>.
  40254. (pupa_print_partinfo): New prototype.
  40255. * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
  40256. (pupa_dl_get_prefix): Likewise.
  40257. * include/pupa/misc.h: Include <pupa/err.h>.
  40258. (pupa_isgraph): New prototype.
  40259. (pupa_isdigit): Likewise.
  40260. (pupa_split_cmdline): Likewise.
  40261. * include/pupa/normal.h: Include <pupa/arg.h>.
  40262. (pupa_command): Changed the prototype of the member `func' to
  40263. match the argument parsing interface. Added member `options'.
  40264. (pupa_register_command): Updated to match function.
  40265. (pupa_arg_parse): New prototype.
  40266. (pupa_hello_init) [PUPA_UTIL]: New prototype.
  40267. (pupa_hello_fini) [PUPA_UTIL]: Likewise.
  40268. (pupa_ls_init) [PUPA_UTIL]: Likewise.
  40269. (pupa_ls_fini) [PUPA_UTIL]: Likewise.
  40270. (pupa_cat_init) [PUPA_UTIL]: Likewise.
  40271. (pupa_cat_fini) [PUPA_UTIL]: Likewise.
  40272. (pupa_boot_init) [PUPA_UTIL]: Likewise.
  40273. (pupa_boot_fini) [PUPA_UTIL]: Likewise.
  40274. (pupa_cmp_init) [PUPA_UTIL]: Likewise.
  40275. (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
  40276. (pupa_terminal_init) [PUPA_UTIL]: Likewise.
  40277. (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
  40278. * kern/disk.c: Include <pupa/file.h>.
  40279. (pupa_print_partinfo): New function.
  40280. * kern/dl.c: Include <pupa/env.h>.
  40281. (pupa_dl_dir): Variable removed.
  40282. (pupa_dl_load): Use the environment variable `prefix' instead of
  40283. the variable pupa_dl_dir.
  40284. (pupa_dl_set_prefix): Function removed.
  40285. (pupa_dl_get_prefix): Likewise.
  40286. * kern/i386/pc/init.c: Include <pupa/env.h>.
  40287. (pupa_machine_init): Use the environment variable `prefix' instead of
  40288. using pupa_dl_set_prefix to set the prefix.
  40289. * kern/main.c: Include <pupa/env.h>.
  40290. (pupa_set_root_dev): Use the environment variable `prefix' instead of
  40291. using pupa_dl_get_prefix to get the prefix.
  40292. * kern/misc.c: Include <pupa/env.h>.
  40293. (pupa_isdigit): New function.
  40294. (pupa_isgraph): Likewise.
  40295. (pupa_ftoa): Likewise.
  40296. (pupa_vsprintf): Added support for printing values of the type
  40297. `double'. Make it possible to format variable output when using
  40298. formatting like `%1.2%f'.
  40299. (pupa_split_cmdline): New function.
  40300. * kern/rescue.c: Include <pupa/env.h>.
  40301. (next_word): Removed function.
  40302. (pupa_rescue_cmd_prefix): Likewise.
  40303. (pupa_rescue_cmd_set): New function.
  40304. (pupa_rescue_cmd_unset): New function.
  40305. (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
  40306. split the command line instead of splitting it here. Added
  40307. support for setting variables using the syntax `foo=bar'. Don't
  40308. initialize the prefix command anymore. Initialized the set and
  40309. unset commands.
  40310. * normal/cmdline.c: Include <pupa/env.h>.
  40311. (pupa_tab_complete): Added prototypes for print_simple_completion,
  40312. print_partition_completion, add_completion, iterate_commands,
  40313. iterate_dev, iterate_part and iterate_dir. Moved code to print
  40314. partition information from here to kern/disk.c.
  40315. (pupa_cmdline_run): Don't check if the function exists anymore.
  40316. * normal/main.c: Include <pupa/env.h>.
  40317. (pupa_rescue_cmd_normal): Use the environment variable `prefix'
  40318. instead of using pupa_dl_get_prefix to get the prefix.
  40319. * term/i386/pc/vga.c: Include <pupa/arg.h>.
  40320. (check_vga_mem): Cast pointers to `void *' to silence a gcc
  40321. warning.
  40322. (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
  40323. (pupa_vga_setcolor): Declare unused variables with `__attribute__
  40324. ((unused))' to silence a gcc warning.
  40325. (pupa_vga_setcolor): Likewise.
  40326. (debug_command): Changed to match argument parsing
  40327. interface changes.
  40328. * util/pupa-emu.c: Include <pupa/env.h>.
  40329. (options): Added 0's for unused fields to silence a gcc warning.
  40330. (argp): Likewise.
  40331. (main): Use the environment variable `prefix' instead of using
  40332. pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
  40333. boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
  40334. and terminal.
  40335. * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
  40336. * util/misc.c: Include <malloc.h>.
  40337. (pupa_malloc): Rewritten so errors are correctly reported.
  40338. (pupa_realloc): Likewise.
  40339. (pupa_memalign): Likewise.
  40340. (pupa_mm_init_region): Declare unused variables with
  40341. `__attribute__ ((unused))' to silence a gcc warning.
  40342. * normal/i386/setjmp.S: Remove tab at the end of the file to
  40343. silence a gcc warning.
  40344. * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
  40345. variables with `__attribute__ ((unused))' to silence a gcc
  40346. warning.
  40347. * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
  40348. local variable i unsigned to silence a gcc warning.
  40349. * kern/term.c: Include <pupa/misc.h>.
  40350. (pupa_more_lines): New variable.
  40351. (pupa_more): Likewise.
  40352. (pupa_putcode): When the pager is active pause at the end of every
  40353. screen.
  40354. (pupa_set_more): New function.
  40355. * include/pupa/term.h (pupa_set_more): New prototype.
  40356. 2004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
  40357. Now this project is GRUB 2 rather than PUPA. The location of
  40358. the CVS repository was moved to GRUB's.
  40359. * configure.ac: Use bug-grub as the reporting address.
  40360. Use GRUB instead of PUPA.
  40361. Change the version number to 1.90.
  40362. 2004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
  40363. * genkernsyms.sh: Updated copyright information.
  40364. * genmk.rb: Likewise.
  40365. * genmodsrc.sh: Likewise.
  40366. * gensymlist.sh: Likewise.
  40367. * boot/i386/pc/boot.S: Likewise.
  40368. * boot/i386/pc/diskboot.S: Likewise.
  40369. * disk/i386/pc/biosdisk.c: Likewise.
  40370. * disk/i386/pc/partition.c: Likewise.
  40371. * font/manager.c: Likewise.
  40372. * fs/ext2.c: Likewise.
  40373. * fs/fat.c: Likewise.
  40374. * include/pupa/boot.h: Likewise.
  40375. * include/pupa/device.h: Likewise.
  40376. * include/pupa/disk.h: Likewise.
  40377. * include/pupa/dl.h: Likewise.
  40378. * include/pupa/elf.h: Likewise.
  40379. * include/pupa/err.h: Likewise.
  40380. * include/pupa/file.h: Likewise.
  40381. * include/pupa/font.h: Likewise.
  40382. * include/pupa/fs.h: Likewise.
  40383. * include/pupa/kernel.h: Likewise.
  40384. * include/pupa/loader.h: Likewise.
  40385. * include/pupa/misc.h: Likewise.
  40386. * include/pupa/mm.h: Likewise.
  40387. * include/pupa/net.h: Likewise.
  40388. * include/pupa/normal.h: Likewise.
  40389. * include/pupa/rescue.h: Likewise.
  40390. * include/pupa/setjmp.h: Likewise.
  40391. * include/pupa/symbol.h: Likewise.
  40392. * include/pupa/term.h: Likewise.
  40393. * include/pupa/types.h: Likewise.
  40394. * include/pupa/i386/setjmp.h: Likewise.
  40395. * include/pupa/i386/types.h: Likewise.
  40396. * include/pupa/i386/pc/biosdisk.h: Likewise.
  40397. * include/pupa/i386/pc/boot.h: Likewise.
  40398. * include/pupa/i386/pc/console.h: Likewise.
  40399. * include/pupa/i386/pc/init.h: Likewise.
  40400. * include/pupa/i386/pc/kernel.h: Likewise.
  40401. * include/pupa/i386/pc/linux.h: Likewise.
  40402. * include/pupa/i386/pc/loader.h: Likewise.
  40403. * include/pupa/i386/pc/memory.h: Likewise.
  40404. * include/pupa/i386/pc/multiboot.h: Likewise.
  40405. * include/pupa/i386/pc/partition.h: Likewise.
  40406. * include/pupa/i386/pc/time.h: Likewise.
  40407. * include/pupa/i386/pc/vga.h: Likewise.
  40408. * include/pupa/i386/pc/util/biosdisk.h: Likewise.
  40409. * include/pupa/util/getroot.h: Likewise.
  40410. * include/pupa/util/misc.h: Likewise.
  40411. * include/pupa/util/resolve.h: Likewise.
  40412. * kern/device.c: Likewise.
  40413. * kern/disk.c: Likewise.
  40414. * kern/dl.c: Likewise.
  40415. * kern/err.c: Likewise.
  40416. * kern/file.c: Likewise.
  40417. * kern/fs.c: Likewise.
  40418. * kern/loader.c: Likewise.
  40419. * kern/main.c: Likewise.
  40420. * kern/misc.c: Likewise.
  40421. * kern/mm.c: Likewise.
  40422. * kern/rescue.c: Likewise.
  40423. * kern/term.c: Likewise.
  40424. * kern/i386/dl.c: Likewise.
  40425. * kern/i386/pc/init.c: Likewise.
  40426. * kern/i386/pc/lzo1x.S: Likewise.
  40427. * kern/i386/pc/startup.S: Likewise.
  40428. * loader/i386/pc/chainloader.c: Likewise.
  40429. * loader/i386/pc/linux.c: Likewise.
  40430. * loader/i386/pc/multiboot.c: Likewise.
  40431. * normal/cmdline.c: Likewise.
  40432. * normal/command.c: Likewise.
  40433. * normal/main.c: Likewise.
  40434. * normal/menu.c: Likewise.
  40435. * normal/i386/setjmp.S: Likewise.
  40436. * term/i386/pc/console.c: Likewise.
  40437. * term/i386/pc/vga.c: Likewise.
  40438. * util/console.c: Likewise.
  40439. * util/genmoddep.c: Likewise.
  40440. * util/misc.c: Likewise.
  40441. * util/pupa-emu.c: Likewise.
  40442. * util/resolve.c: Likewise.
  40443. * util/unifont2pff.rb: Likewise.
  40444. * util/i386/pc/biosdisk.c: Likewise.
  40445. * util/i386/pc/getroot.c: Likewise.
  40446. * util/i386/pc/pupa-mkimage.c: Likewise.
  40447. * util/i386/pc/pupa-setup.c: Likewise.
  40448. 2004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
  40449. * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
  40450. when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
  40451. callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
  40452. reading and reset it after reading.
  40453. (pupa_ext2_close): Return PUPA_ERR_NONE.
  40454. * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
  40455. Correct value.
  40456. (struct linux_kernel_header): Add kernel_version and
  40457. initrd_addr_max.
  40458. * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
  40459. pupa_file_read succeeds.
  40460. (pupa_rescue_cmd_initrd): Implement.
  40461. 2003-12-03 Marco Gerards <metgerards@student.han.nl>
  40462. * fs/ext2.c (pupa_ext2_label): New function.
  40463. (pupa_ext2_fs): Added label.
  40464. * fs/fat.c (pupa_fat_label): New function.
  40465. (pupa_fat_fs): Added label.
  40466. * include/pupa/fs.h (struct pupa_fs): Added prototype label.
  40467. * kern/misc.c (pupa_strndup): New function.
  40468. * include/pupa/misc.h (pupa_strndup): New prototype.
  40469. * include/pupa/normal.h: Include <pupa/err.h>.
  40470. (pupa_set_history): New prototype.
  40471. (pupa_iterate_commands): New prototype.
  40472. * normal/cmdline.c: Include <pupa/machine/partition.h>,
  40473. <pupa/disk.h>, <pupa/file.h>.
  40474. (hist_size): New variable.
  40475. (hist_lines): Likewise.
  40476. (hist_end): Likewise.
  40477. (hist_used): Likewise.
  40478. (pupa_set_history): New function.
  40479. (pupa_history_get): Likewise.
  40480. (pupa_history_add): Likewise.
  40481. (pupa_history_replace): Likewise.
  40482. (pupa_tab_complete): Likewise.
  40483. (pupa_cmdline_run): Added tab completion and history buffer. Tab
  40484. completion shows partitionnames while completing partitions, this
  40485. feature was suggested by Jeff Bailey.
  40486. * normal/command.c (pupa_iterate_commands): New function.
  40487. * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
  40488. (pupa_normal_init): Initialize history buffer.
  40489. (PUPA_MOD_INIT): Likewise.
  40490. (pupa_normal_fini): Free the history buffer.
  40491. (PUPA_MOD_FINI): Likewise.
  40492. * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
  40493. key.
  40494. * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
  40495. * configure.ac [i386]: Check for regparam bug.
  40496. (NESTED_FUNC_ATTR) [! i386]: Defined.
  40497. 2003-11-17 Marco Gerards <metgerards@student.han.nl>
  40498. * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
  40499. (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
  40500. (pupa_emu_SOURCES): New variable.
  40501. (pupa_emu_LDFLAGS): Likewise.
  40502. * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
  40503. (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
  40504. * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
  40505. (pupa_normal_fini) [PUPA_UTIL]: Likewise.
  40506. * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
  40507. (pupa_jmp_buf): New typedef.
  40508. (pupa_setjmp) [PUPA_UTIL]: New macro.
  40509. (pupa_longjmp) [PUPA_UTIL]: Likewise.
  40510. * include/pupa/term.h (struct pupa_term): New member `refresh'.
  40511. (pupa_refresh): New prototype.
  40512. * include/pupa/util/getroot.h: New file.
  40513. * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
  40514. it.
  40515. * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
  40516. (pupa_rescue_cmd_cat): Likewise.
  40517. (pupa_rescue_cmd_ls): Likewise.
  40518. (pupa_rescue_cmd_testload): Likewise.
  40519. (pupa_rescue_cmd_lsmod): Likewise.
  40520. * normal/cmdline.c (pupa_cmdline_get): Likewise.
  40521. * normal/menu.c (run_menu): Likewise.
  40522. * kern/term.c (pupa_cls): Likewise.
  40523. (pupa_refresh): New function.
  40524. * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
  40525. (pupa_normal_fini) [PUPA_UTIL]: Likewise.
  40526. * util/console.c: New file.
  40527. * util/i386/pc/getroot.c: New file.
  40528. * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
  40529. (pupa_putchar): New function.
  40530. (pupa_refresh): Likewise.
  40531. (xgetcwd): Function moved to ...
  40532. (strip_extra_slashes): Likewise.
  40533. (get_prefix): Likewise.
  40534. * util/i386/pc/getroot.c: ... here.
  40535. (find_root_device): Function moved and renamed to...
  40536. * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
  40537. Changed all callers.
  40538. * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
  40539. and renamed to...
  40540. * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
  40541. Changed all callers.
  40542. * util/misc.c (pupa_memalign): New function.
  40543. (pupa_mm_init_region): Likewise.
  40544. (pupa_register_exported_symbols): Likewise.
  40545. (pupa_putchar): Function removed.
  40546. * util/pupa-emu.c: New file.
  40547. 2003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
  40548. * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
  40549. (_multiboot_mod_SOURCES): New variable.
  40550. (_multiboot_mod_CFLAGS): Likewise.
  40551. * loader/i386/pc/multiboot.c: New file.
  40552. * include/pupa/i386/pc/multiboot.h: Likewise.
  40553. * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
  40554. (pupa_multiboot_real_boot): New function.
  40555. * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
  40556. (pupa_multiboot_real_boot): New prototype.
  40557. (pupa_rescue_cmd_multiboot): Likewise
  40558. (pupa_rescue_cmd_module): Likewise.
  40559. * kern/loader.c (pupa_loader_set): Continue when
  40560. pupa_loader_unload_func() fails.
  40561. (pupa_loader_unset): New function.
  40562. * include/pupa/loader.h (pupa_loader_unset): New prototype.
  40563. * kern/misc.c (pupa_stpcpy): New function.
  40564. * include/pupa/misc.h (pupa_stpcpy): New prototype.
  40565. 2003-11-12 Marco Gerards <metgerards@student.han.nl>
  40566. * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
  40567. for available extensions.
  40568. * include/pupa/i386/pc/time.h: New file.
  40569. * kern/disk.c: Include <pupa/machine/time.h>.
  40570. (PUPA_CACHE_TIMEOUT): New macro.
  40571. (pupa_last_time): New variable.
  40572. (pupa_disk_open): Flush the cache when there was a timeout.
  40573. (pupa_disk_close): Reset the timer.
  40574. * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
  40575. pupa_currticks.
  40576. * util/misc.c: Include <sys/times.h>
  40577. (pupa_get_rtc): New function.
  40578. 2003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
  40579. * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
  40580. as blocks.
  40581. (pupa_ext2_get_file_block): Use blocks member.
  40582. * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
  40583. first block. Return -1 instead of pupa_errno on error.
  40584. 2003-10-27 Marco Gerards <metgerards@student.han.nl>
  40585. * README: In the pupa-mkimage example use _chain instead of chain
  40586. and ext2 instead of fat.
  40587. * TODO: Replace ext2fs with jfs as an example. Add an item for
  40588. adding journal playback for ext2fs.
  40589. * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
  40590. (pkgdata_MODULES): Added ext2.mod.
  40591. (ext2_mod_SOURCES): New variable.
  40592. (ext2_mod_CFLAGS): Likewise.
  40593. * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
  40594. * include/pupa/misc.h (pupa_strncpy): New prototype.
  40595. (pupa_strcat): Likewise.
  40596. (pupa_strncmp): Likewise.
  40597. * kern/misc.c (pupa_strcat): Enable function.
  40598. (pupa_strncpy): New function.
  40599. (pupa_strncmp): Likewise.
  40600. * fs/ext2.c: New file.
  40601. * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
  40602. when the read failed before retrying.
  40603. * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
  40604. (_FILE_OFFSET_BITS): Likewise.
  40605. * configure.ac: Added AC_SYS_LARGEFILE.
  40606. 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
  40607. * genmk.rb (PModule#rule): Make sure to get only symbol names
  40608. from the output of nm.
  40609. Reported by Robert Millan <rmh.grub@aybabtu.com>.
  40610. 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
  40611. I forgot to check in these changes for a long time. This adds
  40612. incomplete support for VGA console, and this is still very
  40613. buggy. Also, a lot of consideration is required for I18N,
  40614. UNICODE, and VGA font issues. Therefore, assume that this is
  40615. such that "better than nothing".
  40616. * font/manager.c: New file.
  40617. * include/pupa/font.h: Likewise.
  40618. * include/pupa/i386/pc/vga.h: Likewise.
  40619. * term/i386/pc/vga.c: Likewise.
  40620. * util/unifont2pff.rb: Likewise.
  40621. * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
  40622. (pkgdata_MODULES): Added vga.mod and font.mod.
  40623. (vga_mod_SOURCES): New variables.
  40624. (vga_mod_CFLAGS): Likewise.
  40625. (font_mod_SOURCES): Likewise.
  40626. (font_mod_CFLAGS): Likewise.
  40627. * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
  40628. * include/pupa/term.h: Include pupa/err.h.
  40629. (struct pupa_term): Added init and fini.
  40630. Changed the argument of putchar to pupa_uint32_t.
  40631. * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
  40632. (pupa_console_real_putchar): New prototype.
  40633. (pupa_console_putchar): Removed.
  40634. (pupa_console_checkkey): Exported.
  40635. (pupa_console_getkey): Likewise.
  40636. * kern/misc.c (pupa_vsprintf): Add support for UNICODE
  40637. characters.
  40638. * kern/term.c (pupa_term_set_current): Rewritten.
  40639. (pupa_putchar): Likewise.
  40640. (pupa_putcode): New function.
  40641. * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
  40642. (pupa_console_real_putchar): ... this.
  40643. (pupa_vga_set_mode): New function.
  40644. (pupa_vga_get_font): Likewise.
  40645. * normal/command.c: Include pupa/term.h.
  40646. (terminal_command): New function.
  40647. (pupa_command_init): Register the command "terminal".
  40648. * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
  40649. (DISP_UP): Likewise.
  40650. (DISP_RIGHT): Likewise.
  40651. (DISP_DOWN): Likewise.
  40652. (DISP_HLINE): Likewise.
  40653. (DISP_VLINE): Likewise.
  40654. (DISP_UL): Likewise.
  40655. (DISP_UR): Likewise.
  40656. (DISP_LL): Likewise.
  40657. (DISP_LR): Likewise.
  40658. * term/i386/pc/console.c (pupa_console_putchar): New function.
  40659. 2003-02-08 NIIBE Yutaka <gniibe@m17n.org>
  40660. * util/resolve.c (pupa_util_resolve_dependencies): BUG
  40661. FIX. Reverse the path_list.
  40662. * include/pupa/normal.h: Export pupa_register_command and
  40663. pupa_unregister_command.
  40664. * hello/hello.c (pupa_cmd_hello): New module.
  40665. * conf/i386-pc.rmk: Added hello.mod.
  40666. 2003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
  40667. * kern/i386/pc/lzo1x.S: New file.
  40668. * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
  40669. (compress_kernel): New variable.
  40670. (generate_image): Heavily modified to support compressing a
  40671. large part of the core image.
  40672. * util/misc.c (pupa_util_read_image): Fix a file descriptor
  40673. leak.
  40674. (pupa_util_load_image): New function.
  40675. * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
  40676. (pupa_compressed_size): New variable.
  40677. (codestart): Enable Gate A20 here.
  40678. Decompress the compressed part of the core image.
  40679. Rearrange the code to put functions and variables which are
  40680. required for initialization in the non-compressed part.
  40681. Include lzo1x.S.
  40682. * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
  40683. here.
  40684. * include/pupa/util/misc.h (pupa_util_write_image): Declared.
  40685. * include/pupa/i386/pc/kernel.h
  40686. (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
  40687. (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
  40688. (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
  40689. (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
  40690. (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
  40691. * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
  40692. * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
  40693. (Utility#rule): Likewise.
  40694. * configure.ac: Check if LZO is available.
  40695. 2003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
  40696. * include/pupa/normal.h: New file.
  40697. * include/pupa/setjmp.h: Likewise.
  40698. * include/pupa/i386/setjmp.h: Likewise.
  40699. * normal/cmdline.c: Likewise.
  40700. * normal/command.c: Likewise.
  40701. * normal/main.c: Likewise.
  40702. * normal/menu.c: Likewise.
  40703. * normal/i386/setjmp.S: Likewise.
  40704. * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
  40705. (pupa_rescue_cmd_initrd): Likewise.
  40706. * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
  40707. Likewise.
  40708. * kern/i386/pc/startup.S (translation_table): New variable.
  40709. (translate_keycode): New function.
  40710. (pupa_console_getkey): Call translate_keycode.
  40711. * kern/rescue.c (attempt_normal_mode): New function.
  40712. (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
  40713. it failed, print a message.
  40714. * kern/mm.c (pupa_real_malloc): Print more information when a
  40715. free magic is broken.
  40716. (pupa_free): If the first free header is not free actually, set
  40717. it to P.
  40718. * kern/main.c (pupa_load_normal_mode): Just load the module
  40719. "normal".
  40720. (pupa_main): Don't print the message
  40721. "Entering into rescue mode..." here.
  40722. * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
  40723. Declared.
  40724. (pupa_rescue_cmd_initrd): Likewise.
  40725. (pupa_rescue_cmd_initrd): Likewise.
  40726. * include/pupa/symbol.h (FUNCTION): Specify the type.
  40727. (VARIABLE): Likewise.
  40728. * include/pupa/err.h (pupa_err_t): Added
  40729. PUPA_ERR_UNKNOWN_COMMAND.
  40730. * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
  40731. (pupa_dl_get_prefix): Likewise.
  40732. * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
  40733. Added _chain.mod and _linux.mod instead of chain.mod and
  40734. linux.mod.
  40735. (chain_mod_SOURCES): Renamed to ...
  40736. (_chain_mod_SOURCES): ... this.
  40737. (chain_mod_CFLAGS): Renamed to ...
  40738. (_chain_mod_CFLAGS): ... this.
  40739. (linux_mod_SOURCES): Renamed to ...
  40740. (_linux_mod_SOURCES): ... this.
  40741. (linux_mod_CFLAGS): Renamed to ...
  40742. (_linux_mod_CFLAGS): ... this.
  40743. (normal_mod_SOURCES): New variable.
  40744. (normal_mod_CFLAGS): Likewise.
  40745. (normal_mod_ASFLAGS): Likewise.
  40746. 2003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
  40747. * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
  40748. possible.
  40749. * kern/dl.c (pupa_dl_ref): Refer depending modules
  40750. recursively.
  40751. (pupa_dl_unref): Unrefer depending modules recursively.
  40752. Don't call pupa_dl_unload implicitly, because PUPA can crash if
  40753. a module is unloaded before one depending on that module is
  40754. unloaded.
  40755. (pupa_dl_unload): Unload depending modules explicitly,
  40756. if possible.
  40757. 2003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
  40758. * include/pupa/i386/pc/linux.h: New file.
  40759. * loader/i386/pc/linux.c: Likewise.
  40760. * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
  40761. Removed.
  40762. (pupa_chainloader_unload): Return PUPA_ERR_NONE.
  40763. (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
  40764. of PUPA_CHAINLOADER_BOOT_SECTOR.
  40765. * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
  40766. (pupa_linux_prot_size): New variable.
  40767. (pupa_linux_tmp_addr): Likewise.
  40768. (pupa_linux_real_addr): Likewise.
  40769. (pupa_linux_boot_zimage): New function.
  40770. (pupa_linux_boot_bzimage): Likewise.
  40771. * kern/i386/pc/init.c (struct mem_region): New structure.
  40772. (MAX_REGIONS): New macro.
  40773. (mem_regions): New variable.
  40774. (num_regions): Likewise.
  40775. (pupa_os_area_addr): Likewise.
  40776. (pupa_os_area_size): Likewise.
  40777. (pupa_lower_mem): Likewise.
  40778. (pupa_upper_mem): Likewise.
  40779. (add_mem_region): New function.
  40780. (compact_mem_regions): Likewise.
  40781. (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
  40782. the size of the conventional memory and that of so-called upper
  40783. memory (before the first memory hole).
  40784. Instead of adding each found region to free memory, use
  40785. add_mem_region and add them after removing overlaps.
  40786. Also, add only 1/4 of the upper memory to free memory. The rest
  40787. is used for loading OS images. Maybe this is ad hoc, but this
  40788. makes it much easier to relocate OS images when booting.
  40789. * kern/rescue.c (pupa_rescue_cmd_module): Removed.
  40790. (pupa_enter_rescue_mode): Don't register initrd and module.
  40791. * kern/mm.c: Include pupa/dl.h.
  40792. * kern/main.c: Include pupa/file.h and pupa/device.h.
  40793. * kern/loader.c (pupa_loader_load_module_func): Removed.
  40794. (pupa_loader_load_module): Likewise.
  40795. * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
  40796. ``.o''.
  40797. * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
  40798. (pupa_linux_tmp_addr): Likewise.
  40799. (pupa_linux_real_addr): Likewise.
  40800. (pupa_linux_boot_zimage): Likewise.
  40801. (pupa_linux_boot_bzimage): Likewise.
  40802. * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
  40803. (pupa_upper_mem): Likewise.
  40804. (pupa_gate_a20): Don't export, because turning off Gate A20 in a
  40805. module is too dangerous.
  40806. * include/pupa/loader.h (pupa_os_area_addr): Declared.
  40807. (pupa_os_area_size): Likewise.
  40808. (pupa_loader_set): Remove the first argument. Loader doesn't
  40809. manage modules or initrd any longer.
  40810. (pupa_loader_load_module): Removed.
  40811. * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
  40812. (linux_mod_SOURCES): New variable.
  40813. (linux_mod_CFLAGS): Likewise.
  40814. 2003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
  40815. * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
  40816. the length of a blocklist correctly.
  40817. * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
  40818. Use ioctl only if the OS file is a block device.
  40819. (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
  40820. not very useful for normal files.
  40821. * kern/main.c (pupa_set_root_dev): New function.
  40822. (pupa_load_normal_mode): Likewise.
  40823. (pupa_main): Call those above.
  40824. * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
  40825. pupa_uint16_t.
  40826. * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
  40827. 2003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
  40828. * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
  40829. (setup): Configure the installed partition information and the
  40830. dl prefix.
  40831. * loader/i386/pc/chainloader.c (my_mod): New variable.
  40832. (pupa_chainloader_unload): New function.
  40833. (pupa_rescue_cmd_chainloader): Refer itself.
  40834. (PUPA_MOD_INIT): Save its own module in MY_MOD.
  40835. * kern/i386/pc/startup.S (install_partition): Removed.
  40836. (version_string): Likewise.
  40837. (config_file): Likewise.
  40838. (pupa_install_dos_part): New variable.
  40839. (pupa_install_bsd_part): Likewise.
  40840. (pupa_prefix): Likewise.
  40841. (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
  40842. * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
  40843. and pupa/misc.h.
  40844. (make_install_device): New function.
  40845. (pupa_machine_init): Set the dl prefix.
  40846. * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
  40847. (buf): Renamed to ...
  40848. (linebuf): ... this.
  40849. (pupa_rescue_cmd_prefix): New function.
  40850. (pupa_rescue_cmd_insmod): Likewise.
  40851. (pupa_rescue_cmd_rmmod): Likewise.
  40852. (pupa_rescue_cmd_lsmod): Likewise.
  40853. (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
  40854. rmmod and lsmod.
  40855. * kern/mm.c (pupa_memalign): If failed even after invalidating
  40856. disk caches, unload unneeded modules and retry.
  40857. * kern/misc.c (pupa_memmove): New function.
  40858. (pupa_memcpy): Removed.
  40859. (pupa_strcpy): New function.
  40860. (pupa_itoa): Made static.
  40861. * kern/dl.c (pupa_dl_iterate): New function.
  40862. (pupa_dl_ref): Likewise.
  40863. (pupa_dl_unref): Likewise.
  40864. (pupa_dl_unload): Return if succeeded or not.
  40865. (pupa_dl_unload_unneeded): New function.
  40866. (pupa_dl_unload_all): Likewise.
  40867. (pupa_dl_init): Renamed to ...
  40868. (pupa_dl_set_prefix): ... this.
  40869. (pupa_dl_get_prefix): New function.
  40870. * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
  40871. (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
  40872. (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
  40873. (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
  40874. (pupa_install_dos_part): Declared.
  40875. (pupa_install_bsd_part): Likewise.
  40876. (pupa_prefix): Likewise.
  40877. (pupa_boot_drive): Likewise.
  40878. * include/pupa/types.h: Fix a typo.
  40879. * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
  40880. pupa_memmove.
  40881. (pupa_memmove): Declared.
  40882. (pupa_strcpy): Likewise.
  40883. * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
  40884. pupa_mod_init takes one argument, its own module.
  40885. (pupa_dl_unload_unneeded): Declared.
  40886. (pupa_dl_unload_all): Likewise.
  40887. (pupa_dl_ref): Likewise.
  40888. (pupa_dl_unref): Likewise.
  40889. (pupa_dl_iterate): Likewise.
  40890. (pupa_dl_init): Renamed to ...
  40891. (pupa_dl_set_prefix): ... this.
  40892. (pupa_dl_get_prefix): Declared.
  40893. * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
  40894. (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
  40895. unloaded.
  40896. (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
  40897. (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
  40898. * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
  40899. -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
  40900. 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
  40901. * util/i386/pc/pupa-setup.c (setup): Define the internal
  40902. function find_first_partition_start at the top level, because GCC
  40903. 3.0.x cannot compile internal functions in deeper scopes
  40904. correctly.
  40905. (find_root_device): Use lstat instead of stat.
  40906. Don't follow symbolic links.
  40907. Fix the path-constructing code.
  40908. * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
  40909. (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
  40910. by a BLKGETSIZE ioctl first, because block devices don't fill
  40911. the member st_mode of the structure stat on Linux.
  40912. [__linux__] (linux_find_partition): Use a temporary buffer
  40913. REAL_DEV for the working space. Copy it to DEV before returning.
  40914. (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
  40915. buffer cache consistent.
  40916. (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
  40917. strncmp. The previous value was merely wrong.
  40918. (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
  40919. * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
  40920. FAT size is 12. The previous value was merely wrong.
  40921. * kern/main.c (pupa_main): Don't split the starting message from
  40922. newlines.
  40923. * kern/term.c (pupa_putchar): Put CR after LF instead of before
  40924. LF, because BIOS goes crazy about character attributes in this
  40925. case.
  40926. 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
  40927. * include/i386/pc/util/biosdisk.h: New file.
  40928. * util/i386/pc/biosdisk.c: Likewise.
  40929. * util/i386/pc/pupa-setup.c: Likewise.
  40930. * Makefile.in (INCLUDE_DISTFILES): Added
  40931. include/pupa/i386/pc/util/biosdisk.h.
  40932. (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
  40933. directory util/i386/pc.
  40934. (install-local): Added a rule for sbin_UTILITIES.
  40935. (uninstall): Likewise.
  40936. * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
  40937. * util/misc.c (xrealloc): New function.
  40938. (pupa_malloc): Likewise.
  40939. (pupa_free): Likewise.
  40940. (pupa_realloc): Likewise.
  40941. (pupa_stop): Likewise.
  40942. (pupa_putchar): Likewise.
  40943. * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
  40944. * include/pupa/util/misc.h (xrealloc): Declared.
  40945. * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
  40946. macro.
  40947. (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
  40948. (PUPA_BOOT_MACHINE_BPB_END): ... this.
  40949. * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
  40950. [PUPA_UTIL] (pupa_fat_fini): Likewise.
  40951. * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
  40952. way should be implemented.
  40953. [PUPA_UTIL] (pupa_fat_fini): Likewise.
  40954. * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
  40955. the size of NAME for safety.
  40956. (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
  40957. 0x88.
  40958. * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
  40959. (pupa_setup_SOURCES): Likewise.
  40960. * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
  40961. 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
  40962. * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
  40963. bunch of pushl's from pusha, because this destroys the return
  40964. value.
  40965. 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
  40966. Use -mrtd and -mregparm=3 to reduce the generated code sizes.
  40967. This means that any missing prototypes could be fatal. Also, you
  40968. must take care when writing assembly code. See the comments at
  40969. the beginning of startup.S, for more details.
  40970. * kern/i386/pc/startup.S (pupa_halt): Modified for the new
  40971. compilation mechanism.
  40972. (pupa_chainloader_real_boot): Likewise.
  40973. (pupa_biosdisk_rw_int13_extensions): Likewise.
  40974. (pupa_biosdisk_rw_standard): Likewise.
  40975. (pupa_biosdisk_check_int13_extensions): Likewise.
  40976. (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
  40977. (pupa_biosdisk_get_diskinfo_standard): Likewise.
  40978. (pupa_get_memsize): Likewise.
  40979. (pupa_get_mmap_entry): Likewise.
  40980. (pupa_console_putchar): Likewise.
  40981. (pupa_console_setcursor): Likewise.
  40982. (pupa_getrtsecs): Use pushl instead of push.
  40983. * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
  40984. memory instead of the stack for a mmap entry, because some
  40985. BIOSes may ignore the maximum size and overflow.
  40986. * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
  40987. * genmk.rb (PModule#rule): Compile automatically generated
  40988. sources with module-specific CFLAGS as well as other sources.
  40989. 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
  40990. * configure.ac: Check ld.
  40991. Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
  40992. respectively, before checking endianness and sizes.
  40993. * Makefile.in (LD): New variable.
  40994. 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
  40995. * Makefile.in (BUILD_CC): CC -> BUILD_CC.
  40996. 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
  40997. * Changelog: New file.