ChangeLog 1.6 MB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033280342803528036280372803828039280402804128042280432804428045280462804728048280492805028051280522805328054280552805628057280582805928060280612806228063280642806528066280672806828069280702807128072280732807428075280762807728078280792808028081280822808328084280852808628087280882808928090280912809228093280942809528096280972809828099281002810128102281032810428105281062810728108281092811028111281122811328114281152811628117281182811928120281212812228123281242812528126281272812828129281302813128132281332813428135281362813728138281392814028141281422814328144281452814628147281482814928150281512815228153281542815528156281572815828159281602816128162281632816428165281662816728168281692817028171281722817328174281752817628177281782817928180281812818228183281842818528186281872818828189281902819128192281932819428195281962819728198281992820028201282022820328204282052820628207282082820928210282112821228213282142821528216282172821828219282202822128222282232822428225282262822728228282292823028231282322823328234282352823628237282382823928240282412824228243282442824528246282472824828249282502825128252282532825428255282562825728258282592826028261282622826328264282652826628267282682826928270282712827228273282742827528276282772827828279282802828128282282832828428285282862828728288282892829028291282922829328294282952829628297282982829928300283012830228303283042830528306283072830828309283102831128312283132831428315283162831728318283192832028321283222832328324283252832628327283282832928330283312833228333283342833528336283372833828339283402834128342283432834428345283462834728348283492835028351283522835328354283552835628357283582835928360283612836228363283642836528366283672836828369283702837128372283732837428375283762837728378283792838028381283822838328384283852838628387283882838928390283912839228393283942839528396283972839828399284002840128402284032840428405284062840728408284092841028411284122841328414284152841628417284182841928420284212842228423284242842528426284272842828429284302843128432284332843428435284362843728438284392844028441284422844328444284452844628447284482844928450284512845228453284542845528456284572845828459284602846128462284632846428465284662846728468284692847028471284722847328474284752847628477284782847928480284812848228483284842848528486284872848828489284902849128492284932849428495284962849728498284992850028501285022850328504285052850628507285082850928510285112851228513285142851528516285172851828519285202852128522285232852428525285262852728528285292853028531285322853328534285352853628537285382853928540285412854228543285442854528546285472854828549285502855128552285532855428555285562855728558285592856028561285622856328564285652856628567285682856928570285712857228573285742857528576285772857828579285802858128582285832858428585285862858728588285892859028591285922859328594285952859628597285982859928600286012860228603286042860528606286072860828609286102861128612286132861428615286162861728618286192862028621286222862328624286252862628627286282862928630286312863228633286342863528636286372863828639286402864128642286432864428645286462864728648286492865028651286522865328654286552865628657286582865928660286612866228663286642866528666286672866828669286702867128672286732867428675286762867728678286792868028681286822868328684286852868628687286882868928690286912869228693286942869528696286972869828699287002870128702287032870428705287062870728708287092871028711287122871328714287152871628717287182871928720287212872228723287242872528726287272872828729287302873128732287332873428735287362873728738287392874028741287422874328744287452874628747287482874928750287512875228753287542875528756287572875828759287602876128762287632876428765287662876728768287692877028771287722877328774287752877628777287782877928780287812878228783287842878528786287872878828789287902879128792287932879428795287962879728798287992880028801288022880328804288052880628807288082880928810288112881228813288142881528816288172881828819288202882128822288232882428825288262882728828288292883028831288322883328834288352883628837288382883928840288412884228843288442884528846288472884828849288502885128852288532885428855288562885728858288592886028861288622886328864288652886628867288682886928870288712887228873288742887528876288772887828879288802888128882288832888428885288862888728888288892889028891288922889328894288952889628897288982889928900289012890228903289042890528906289072890828909289102891128912289132891428915289162891728918289192892028921289222892328924289252892628927289282892928930289312893228933289342893528936289372893828939289402894128942289432894428945289462894728948289492895028951289522895328954289552895628957289582895928960289612896228963289642896528966289672896828969289702897128972289732897428975289762897728978289792898028981289822898328984289852898628987289882898928990289912899228993289942899528996289972899828999290002900129002290032900429005290062900729008290092901029011290122901329014290152901629017290182901929020290212902229023290242902529026290272902829029290302903129032290332903429035290362903729038290392904029041290422904329044290452904629047290482904929050290512905229053290542905529056290572905829059290602906129062290632906429065290662906729068290692907029071290722907329074290752907629077290782907929080290812908229083290842908529086290872908829089290902909129092290932909429095290962909729098290992910029101291022910329104291052910629107291082910929110291112911229113291142911529116291172911829119291202912129122291232912429125291262912729128291292913029131291322913329134291352913629137291382913929140291412914229143291442914529146291472914829149291502915129152291532915429155291562915729158291592916029161291622916329164291652916629167291682916929170291712917229173291742917529176291772917829179291802918129182291832918429185291862918729188291892919029191291922919329194291952919629197291982919929200292012920229203292042920529206292072920829209292102921129212292132921429215292162921729218292192922029221292222922329224292252922629227292282922929230292312923229233292342923529236292372923829239292402924129242292432924429245292462924729248292492925029251292522925329254292552925629257292582925929260292612926229263292642926529266292672926829269292702927129272292732927429275292762927729278292792928029281292822928329284292852928629287292882928929290292912929229293292942929529296292972929829299293002930129302293032930429305293062930729308293092931029311293122931329314293152931629317293182931929320293212932229323293242932529326293272932829329293302933129332293332933429335293362933729338293392934029341293422934329344293452934629347293482934929350293512935229353293542935529356293572935829359293602936129362293632936429365293662936729368293692937029371293722937329374293752937629377293782937929380293812938229383293842938529386293872938829389293902939129392293932939429395293962939729398293992940029401294022940329404294052940629407294082940929410294112941229413294142941529416294172941829419294202942129422294232942429425294262942729428294292943029431294322943329434294352943629437294382943929440294412944229443294442944529446294472944829449294502945129452294532945429455294562945729458294592946029461294622946329464294652946629467294682946929470294712947229473294742947529476294772947829479294802948129482294832948429485294862948729488294892949029491294922949329494294952949629497294982949929500295012950229503295042950529506295072950829509295102951129512295132951429515295162951729518295192952029521295222952329524295252952629527295282952929530295312953229533295342953529536295372953829539295402954129542295432954429545295462954729548295492955029551295522955329554295552955629557295582955929560295612956229563295642956529566295672956829569295702957129572295732957429575295762957729578295792958029581295822958329584295852958629587295882958929590295912959229593295942959529596295972959829599296002960129602296032960429605296062960729608296092961029611296122961329614296152961629617296182961929620296212962229623296242962529626296272962829629296302963129632296332963429635296362963729638296392964029641296422964329644296452964629647296482964929650296512965229653296542965529656296572965829659296602966129662296632966429665296662966729668296692967029671296722967329674296752967629677296782967929680296812968229683296842968529686296872968829689296902969129692296932969429695296962969729698296992970029701297022970329704297052970629707297082970929710297112971229713297142971529716297172971829719297202972129722297232972429725297262972729728297292973029731297322973329734297352973629737297382973929740297412974229743297442974529746297472974829749297502975129752297532975429755297562975729758297592976029761297622976329764297652976629767297682976929770297712977229773297742977529776297772977829779297802978129782297832978429785297862978729788297892979029791297922979329794297952979629797297982979929800298012980229803298042980529806298072980829809298102981129812298132981429815298162981729818298192982029821298222982329824298252982629827298282982929830298312983229833298342983529836298372983829839298402984129842298432984429845298462984729848298492985029851298522985329854298552985629857298582985929860298612986229863298642986529866298672986829869298702987129872298732987429875298762987729878298792988029881298822988329884298852988629887298882988929890298912989229893298942989529896298972989829899299002990129902299032990429905299062990729908299092991029911299122991329914299152991629917299182991929920299212992229923299242992529926299272992829929299302993129932299332993429935299362993729938299392994029941299422994329944299452994629947299482994929950299512995229953299542995529956299572995829959299602996129962299632996429965299662996729968299692997029971299722997329974299752997629977299782997929980299812998229983299842998529986299872998829989299902999129992299932999429995299962999729998299993000030001300023000330004300053000630007300083000930010300113001230013300143001530016300173001830019300203002130022300233002430025300263002730028300293003030031300323003330034300353003630037300383003930040300413004230043300443004530046300473004830049300503005130052300533005430055300563005730058300593006030061300623006330064300653006630067300683006930070300713007230073300743007530076300773007830079300803008130082300833008430085300863008730088300893009030091300923009330094300953009630097300983009930100301013010230103301043010530106301073010830109301103011130112301133011430115301163011730118301193012030121301223012330124301253012630127301283012930130301313013230133301343013530136301373013830139301403014130142301433014430145301463014730148301493015030151301523015330154301553015630157301583015930160301613016230163301643016530166301673016830169301703017130172301733017430175301763017730178301793018030181301823018330184301853018630187301883018930190301913019230193301943019530196301973019830199302003020130202302033020430205302063020730208302093021030211302123021330214302153021630217302183021930220302213022230223302243022530226302273022830229302303023130232302333023430235302363023730238302393024030241302423024330244302453024630247302483024930250302513025230253302543025530256302573025830259302603026130262302633026430265302663026730268302693027030271302723027330274302753027630277302783027930280302813028230283302843028530286302873028830289302903029130292302933029430295302963029730298302993030030301303023030330304303053030630307303083030930310303113031230313303143031530316303173031830319303203032130322303233032430325303263032730328303293033030331303323033330334303353033630337303383033930340303413034230343303443034530346303473034830349303503035130352303533035430355303563035730358303593036030361303623036330364303653036630367303683036930370303713037230373303743037530376303773037830379303803038130382303833038430385303863038730388303893039030391303923039330394303953039630397303983039930400304013040230403304043040530406304073040830409304103041130412304133041430415304163041730418304193042030421304223042330424304253042630427304283042930430304313043230433304343043530436304373043830439304403044130442304433044430445304463044730448304493045030451304523045330454304553045630457304583045930460304613046230463304643046530466304673046830469304703047130472304733047430475304763047730478304793048030481304823048330484304853048630487304883048930490304913049230493304943049530496304973049830499305003050130502305033050430505305063050730508305093051030511305123051330514305153051630517305183051930520305213052230523305243052530526305273052830529305303053130532305333053430535305363053730538305393054030541305423054330544305453054630547305483054930550305513055230553305543055530556305573055830559305603056130562305633056430565305663056730568305693057030571305723057330574305753057630577305783057930580305813058230583305843058530586305873058830589305903059130592305933059430595305963059730598305993060030601306023060330604306053060630607306083060930610306113061230613306143061530616306173061830619306203062130622306233062430625306263062730628306293063030631306323063330634306353063630637306383063930640306413064230643306443064530646306473064830649306503065130652306533065430655306563065730658306593066030661306623066330664306653066630667306683066930670306713067230673306743067530676306773067830679306803068130682306833068430685306863068730688306893069030691306923069330694306953069630697306983069930700307013070230703307043070530706307073070830709307103071130712307133071430715307163071730718307193072030721307223072330724307253072630727307283072930730307313073230733307343073530736307373073830739307403074130742307433074430745307463074730748307493075030751307523075330754307553075630757307583075930760307613076230763307643076530766307673076830769307703077130772307733077430775307763077730778307793078030781307823078330784307853078630787307883078930790307913079230793307943079530796307973079830799308003080130802308033080430805308063080730808308093081030811308123081330814308153081630817308183081930820308213082230823308243082530826308273082830829308303083130832308333083430835308363083730838308393084030841308423084330844308453084630847308483084930850308513085230853308543085530856308573085830859308603086130862308633086430865308663086730868308693087030871308723087330874308753087630877308783087930880308813088230883308843088530886308873088830889308903089130892308933089430895308963089730898308993090030901309023090330904309053090630907309083090930910309113091230913309143091530916309173091830919309203092130922309233092430925309263092730928309293093030931309323093330934309353093630937309383093930940309413094230943309443094530946309473094830949309503095130952309533095430955309563095730958309593096030961309623096330964309653096630967309683096930970309713097230973309743097530976309773097830979309803098130982309833098430985309863098730988309893099030991309923099330994309953099630997309983099931000310013100231003310043100531006310073100831009310103101131012310133101431015310163101731018310193102031021310223102331024310253102631027310283102931030310313103231033310343103531036310373103831039310403104131042310433104431045310463104731048310493105031051310523105331054310553105631057310583105931060310613106231063310643106531066310673106831069310703107131072310733107431075310763107731078310793108031081310823108331084310853108631087310883108931090310913109231093310943109531096310973109831099311003110131102311033110431105311063110731108311093111031111311123111331114311153111631117311183111931120311213112231123311243112531126311273112831129311303113131132311333113431135311363113731138311393114031141311423114331144311453114631147311483114931150311513115231153311543115531156311573115831159311603116131162311633116431165311663116731168311693117031171311723117331174311753117631177311783117931180311813118231183311843118531186311873118831189311903119131192311933119431195311963119731198311993120031201312023120331204312053120631207312083120931210312113121231213312143121531216312173121831219312203122131222312233122431225312263122731228312293123031231312323123331234312353123631237312383123931240312413124231243312443124531246312473124831249312503125131252312533125431255312563125731258312593126031261312623126331264312653126631267312683126931270312713127231273312743127531276312773127831279312803128131282312833128431285312863128731288312893129031291312923129331294312953129631297312983129931300313013130231303313043130531306313073130831309313103131131312313133131431315313163131731318313193132031321313223132331324313253132631327313283132931330313313133231333313343133531336313373133831339313403134131342313433134431345313463134731348313493135031351313523135331354313553135631357313583135931360313613136231363313643136531366313673136831369313703137131372313733137431375313763137731378313793138031381313823138331384313853138631387313883138931390313913139231393313943139531396313973139831399314003140131402314033140431405314063140731408314093141031411314123141331414314153141631417314183141931420314213142231423314243142531426314273142831429314303143131432314333143431435314363143731438314393144031441314423144331444314453144631447314483144931450314513145231453314543145531456314573145831459314603146131462314633146431465314663146731468314693147031471314723147331474314753147631477314783147931480314813148231483314843148531486314873148831489314903149131492314933149431495314963149731498314993150031501315023150331504315053150631507315083150931510315113151231513315143151531516315173151831519315203152131522315233152431525315263152731528315293153031531315323153331534315353153631537315383153931540315413154231543315443154531546315473154831549315503155131552315533155431555315563155731558315593156031561315623156331564315653156631567315683156931570315713157231573315743157531576315773157831579315803158131582315833158431585315863158731588315893159031591315923159331594315953159631597315983159931600316013160231603316043160531606316073160831609316103161131612316133161431615316163161731618316193162031621316223162331624316253162631627316283162931630316313163231633316343163531636316373163831639316403164131642316433164431645316463164731648316493165031651316523165331654316553165631657316583165931660316613166231663316643166531666316673166831669316703167131672316733167431675316763167731678316793168031681316823168331684316853168631687316883168931690316913169231693316943169531696316973169831699317003170131702317033170431705317063170731708317093171031711317123171331714317153171631717317183171931720317213172231723317243172531726317273172831729317303173131732317333173431735317363173731738317393174031741317423174331744317453174631747317483174931750317513175231753317543175531756317573175831759317603176131762317633176431765317663176731768317693177031771317723177331774317753177631777317783177931780317813178231783317843178531786317873178831789317903179131792317933179431795317963179731798317993180031801318023180331804318053180631807318083180931810318113181231813318143181531816318173181831819318203182131822318233182431825318263182731828318293183031831318323183331834318353183631837318383183931840318413184231843318443184531846318473184831849318503185131852318533185431855318563185731858318593186031861318623186331864318653186631867318683186931870318713187231873318743187531876318773187831879318803188131882318833188431885318863188731888318893189031891318923189331894318953189631897318983189931900319013190231903319043190531906319073190831909319103191131912319133191431915319163191731918319193192031921319223192331924319253192631927319283192931930319313193231933319343193531936319373193831939319403194131942319433194431945319463194731948319493195031951319523195331954319553195631957319583195931960319613196231963319643196531966319673196831969319703197131972319733197431975319763197731978319793198031981319823198331984319853198631987319883198931990319913199231993319943199531996319973199831999320003200132002320033200432005320063200732008320093201032011320123201332014320153201632017320183201932020320213202232023320243202532026320273202832029320303203132032320333203432035320363203732038320393204032041320423204332044320453204632047320483204932050320513205232053320543205532056320573205832059320603206132062320633206432065320663206732068320693207032071320723207332074320753207632077320783207932080320813208232083320843208532086320873208832089320903209132092320933209432095320963209732098320993210032101321023210332104321053210632107321083210932110321113211232113321143211532116321173211832119321203212132122321233212432125321263212732128321293213032131321323213332134321353213632137321383213932140321413214232143321443214532146321473214832149321503215132152321533215432155321563215732158321593216032161321623216332164321653216632167321683216932170321713217232173321743217532176321773217832179321803218132182321833218432185321863218732188321893219032191321923219332194321953219632197321983219932200322013220232203322043220532206322073220832209322103221132212322133221432215322163221732218322193222032221322223222332224322253222632227322283222932230322313223232233322343223532236322373223832239322403224132242322433224432245322463224732248322493225032251322523225332254322553225632257322583225932260322613226232263322643226532266322673226832269322703227132272322733227432275322763227732278322793228032281322823228332284322853228632287322883228932290322913229232293322943229532296322973229832299323003230132302323033230432305323063230732308323093231032311323123231332314323153231632317323183231932320323213232232323323243232532326323273232832329323303233132332323333233432335323363233732338323393234032341323423234332344323453234632347323483234932350323513235232353323543235532356323573235832359323603236132362323633236432365323663236732368323693237032371323723237332374323753237632377323783237932380323813238232383323843238532386323873238832389323903239132392323933239432395323963239732398323993240032401324023240332404324053240632407324083240932410324113241232413324143241532416324173241832419324203242132422324233242432425324263242732428324293243032431324323243332434324353243632437324383243932440324413244232443324443244532446324473244832449324503245132452324533245432455324563245732458324593246032461324623246332464324653246632467324683246932470324713247232473324743247532476324773247832479324803248132482324833248432485324863248732488324893249032491324923249332494324953249632497324983249932500325013250232503325043250532506325073250832509325103251132512325133251432515325163251732518325193252032521325223252332524325253252632527325283252932530325313253232533325343253532536325373253832539325403254132542325433254432545325463254732548325493255032551325523255332554325553255632557325583255932560325613256232563325643256532566325673256832569325703257132572325733257432575325763257732578325793258032581325823258332584325853258632587325883258932590325913259232593325943259532596325973259832599326003260132602326033260432605326063260732608326093261032611326123261332614326153261632617326183261932620326213262232623326243262532626326273262832629326303263132632326333263432635326363263732638326393264032641326423264332644326453264632647326483264932650326513265232653326543265532656326573265832659326603266132662326633266432665326663266732668326693267032671326723267332674326753267632677326783267932680326813268232683326843268532686326873268832689326903269132692326933269432695326963269732698326993270032701327023270332704327053270632707327083270932710327113271232713327143271532716327173271832719327203272132722327233272432725327263272732728327293273032731327323273332734327353273632737327383273932740327413274232743327443274532746327473274832749327503275132752327533275432755327563275732758327593276032761327623276332764327653276632767327683276932770327713277232773327743277532776327773277832779327803278132782327833278432785327863278732788327893279032791327923279332794327953279632797327983279932800328013280232803328043280532806328073280832809328103281132812328133281432815328163281732818328193282032821328223282332824328253282632827328283282932830328313283232833328343283532836328373283832839328403284132842328433284432845328463284732848328493285032851328523285332854328553285632857328583285932860328613286232863328643286532866328673286832869328703287132872328733287432875328763287732878328793288032881328823288332884328853288632887328883288932890328913289232893328943289532896328973289832899329003290132902329033290432905329063290732908329093291032911329123291332914329153291632917329183291932920329213292232923329243292532926329273292832929329303293132932329333293432935329363293732938329393294032941329423294332944329453294632947329483294932950329513295232953329543295532956329573295832959329603296132962329633296432965329663296732968329693297032971329723297332974329753297632977329783297932980329813298232983329843298532986329873298832989329903299132992329933299432995329963299732998329993300033001330023300333004330053300633007330083300933010330113301233013330143301533016330173301833019330203302133022330233302433025330263302733028330293303033031330323303333034330353303633037330383303933040330413304233043330443304533046330473304833049330503305133052330533305433055330563305733058330593306033061330623306333064330653306633067330683306933070330713307233073330743307533076330773307833079330803308133082330833308433085330863308733088330893309033091330923309333094330953309633097330983309933100331013310233103331043310533106331073310833109331103311133112331133311433115331163311733118331193312033121331223312333124331253312633127331283312933130331313313233133331343313533136331373313833139331403314133142331433314433145331463314733148331493315033151331523315333154331553315633157331583315933160331613316233163331643316533166331673316833169331703317133172331733317433175331763317733178331793318033181331823318333184331853318633187331883318933190331913319233193331943319533196331973319833199332003320133202332033320433205332063320733208332093321033211332123321333214332153321633217332183321933220332213322233223332243322533226332273322833229332303323133232332333323433235332363323733238332393324033241332423324333244332453324633247332483324933250332513325233253332543325533256332573325833259332603326133262332633326433265332663326733268332693327033271332723327333274332753327633277332783327933280332813328233283332843328533286332873328833289332903329133292332933329433295332963329733298332993330033301333023330333304333053330633307333083330933310333113331233313333143331533316333173331833319333203332133322333233332433325333263332733328333293333033331333323333333334333353333633337333383333933340333413334233343333443334533346333473334833349333503335133352333533335433355333563335733358333593336033361333623336333364333653336633367333683336933370333713337233373333743337533376333773337833379333803338133382333833338433385333863338733388333893339033391333923339333394333953339633397333983339933400334013340233403334043340533406334073340833409334103341133412334133341433415334163341733418334193342033421334223342333424334253342633427334283342933430334313343233433334343343533436334373343833439334403344133442334433344433445334463344733448334493345033451334523345333454334553345633457334583345933460334613346233463334643346533466334673346833469334703347133472334733347433475334763347733478334793348033481334823348333484334853348633487334883348933490334913349233493334943349533496334973349833499335003350133502335033350433505335063350733508335093351033511335123351333514335153351633517335183351933520335213352233523335243352533526335273352833529335303353133532335333353433535335363353733538335393354033541335423354333544335453354633547335483354933550335513355233553335543355533556335573355833559335603356133562335633356433565335663356733568335693357033571335723357333574335753357633577335783357933580335813358233583335843358533586335873358833589335903359133592335933359433595335963359733598335993360033601336023360333604336053360633607336083360933610336113361233613336143361533616336173361833619336203362133622336233362433625336263362733628336293363033631336323363333634336353363633637336383363933640336413364233643336443364533646336473364833649336503365133652336533365433655336563365733658336593366033661336623366333664336653366633667336683366933670336713367233673336743367533676336773367833679336803368133682336833368433685336863368733688336893369033691336923369333694336953369633697336983369933700337013370233703337043370533706337073370833709337103371133712337133371433715337163371733718337193372033721337223372333724337253372633727337283372933730337313373233733337343373533736337373373833739337403374133742337433374433745337463374733748337493375033751337523375333754337553375633757337583375933760337613376233763337643376533766337673376833769337703377133772337733377433775337763377733778337793378033781337823378333784337853378633787337883378933790337913379233793337943379533796337973379833799338003380133802338033380433805338063380733808338093381033811338123381333814338153381633817338183381933820338213382233823338243382533826338273382833829338303383133832338333383433835338363383733838338393384033841338423384333844338453384633847338483384933850338513385233853338543385533856338573385833859338603386133862338633386433865338663386733868338693387033871338723387333874338753387633877338783387933880338813388233883338843388533886338873388833889338903389133892338933389433895338963389733898338993390033901339023390333904339053390633907339083390933910339113391233913339143391533916339173391833919339203392133922339233392433925339263392733928339293393033931339323393333934339353393633937339383393933940339413394233943339443394533946339473394833949339503395133952339533395433955339563395733958339593396033961339623396333964339653396633967339683396933970339713397233973339743397533976339773397833979339803398133982339833398433985339863398733988339893399033991339923399333994339953399633997339983399934000340013400234003340043400534006340073400834009340103401134012340133401434015340163401734018340193402034021340223402334024340253402634027340283402934030340313403234033340343403534036340373403834039340403404134042340433404434045340463404734048340493405034051340523405334054340553405634057340583405934060340613406234063340643406534066340673406834069340703407134072340733407434075340763407734078340793408034081340823408334084340853408634087340883408934090340913409234093340943409534096340973409834099341003410134102341033410434105341063410734108341093411034111341123411334114341153411634117341183411934120341213412234123341243412534126341273412834129341303413134132341333413434135341363413734138341393414034141341423414334144341453414634147341483414934150341513415234153341543415534156341573415834159341603416134162341633416434165341663416734168341693417034171341723417334174341753417634177341783417934180341813418234183341843418534186341873418834189341903419134192341933419434195341963419734198341993420034201342023420334204342053420634207342083420934210342113421234213342143421534216342173421834219342203422134222342233422434225342263422734228342293423034231342323423334234342353423634237342383423934240342413424234243342443424534246342473424834249342503425134252342533425434255342563425734258342593426034261342623426334264342653426634267342683426934270342713427234273342743427534276342773427834279342803428134282342833428434285342863428734288342893429034291342923429334294342953429634297342983429934300343013430234303343043430534306343073430834309343103431134312343133431434315343163431734318343193432034321343223432334324343253432634327343283432934330343313433234333343343433534336343373433834339343403434134342343433434434345343463434734348343493435034351343523435334354343553435634357343583435934360343613436234363343643436534366343673436834369343703437134372343733437434375343763437734378343793438034381343823438334384343853438634387343883438934390343913439234393343943439534396343973439834399344003440134402344033440434405344063440734408344093441034411344123441334414344153441634417344183441934420344213442234423344243442534426344273442834429344303443134432344333443434435344363443734438344393444034441344423444334444344453444634447344483444934450344513445234453344543445534456344573445834459344603446134462344633446434465344663446734468344693447034471344723447334474344753447634477344783447934480344813448234483344843448534486344873448834489344903449134492344933449434495344963449734498344993450034501345023450334504345053450634507345083450934510345113451234513345143451534516345173451834519345203452134522345233452434525345263452734528345293453034531345323453334534345353453634537345383453934540345413454234543345443454534546345473454834549345503455134552345533455434555345563455734558345593456034561345623456334564345653456634567345683456934570345713457234573345743457534576345773457834579345803458134582345833458434585345863458734588345893459034591345923459334594345953459634597345983459934600346013460234603346043460534606346073460834609346103461134612346133461434615346163461734618346193462034621346223462334624346253462634627346283462934630346313463234633346343463534636346373463834639346403464134642346433464434645346463464734648346493465034651346523465334654346553465634657346583465934660346613466234663346643466534666346673466834669346703467134672346733467434675346763467734678346793468034681346823468334684346853468634687346883468934690346913469234693346943469534696346973469834699347003470134702347033470434705347063470734708347093471034711347123471334714347153471634717347183471934720347213472234723347243472534726347273472834729347303473134732347333473434735347363473734738347393474034741347423474334744347453474634747347483474934750347513475234753347543475534756347573475834759347603476134762347633476434765347663476734768347693477034771347723477334774347753477634777347783477934780347813478234783347843478534786347873478834789347903479134792347933479434795347963479734798347993480034801348023480334804348053480634807348083480934810348113481234813348143481534816348173481834819348203482134822348233482434825348263482734828348293483034831348323483334834348353483634837348383483934840348413484234843348443484534846348473484834849348503485134852348533485434855348563485734858348593486034861348623486334864348653486634867348683486934870348713487234873348743487534876348773487834879348803488134882348833488434885348863488734888348893489034891348923489334894348953489634897348983489934900349013490234903349043490534906349073490834909349103491134912349133491434915349163491734918349193492034921349223492334924349253492634927349283492934930349313493234933349343493534936349373493834939349403494134942349433494434945349463494734948349493495034951349523495334954349553495634957349583495934960349613496234963349643496534966349673496834969349703497134972349733497434975349763497734978349793498034981349823498334984349853498634987349883498934990349913499234993349943499534996349973499834999350003500135002350033500435005350063500735008350093501035011350123501335014350153501635017350183501935020350213502235023350243502535026350273502835029350303503135032350333503435035350363503735038350393504035041350423504335044350453504635047350483504935050350513505235053350543505535056350573505835059350603506135062350633506435065350663506735068350693507035071350723507335074350753507635077350783507935080350813508235083350843508535086350873508835089350903509135092350933509435095350963509735098350993510035101351023510335104351053510635107351083510935110351113511235113351143511535116351173511835119351203512135122351233512435125351263512735128351293513035131351323513335134351353513635137351383513935140351413514235143351443514535146351473514835149351503515135152351533515435155351563515735158351593516035161351623516335164351653516635167351683516935170351713517235173351743517535176351773517835179351803518135182351833518435185351863518735188351893519035191351923519335194351953519635197351983519935200352013520235203352043520535206352073520835209352103521135212352133521435215352163521735218352193522035221352223522335224352253522635227352283522935230352313523235233352343523535236352373523835239352403524135242352433524435245352463524735248352493525035251352523525335254352553525635257352583525935260352613526235263352643526535266352673526835269352703527135272352733527435275352763527735278352793528035281352823528335284352853528635287352883528935290352913529235293352943529535296352973529835299353003530135302353033530435305353063530735308353093531035311353123531335314353153531635317353183531935320353213532235323353243532535326353273532835329353303533135332353333533435335353363533735338353393534035341353423534335344353453534635347353483534935350353513535235353353543535535356353573535835359353603536135362353633536435365353663536735368353693537035371353723537335374353753537635377353783537935380353813538235383353843538535386353873538835389353903539135392353933539435395353963539735398353993540035401354023540335404354053540635407354083540935410354113541235413354143541535416354173541835419354203542135422354233542435425354263542735428354293543035431354323543335434354353543635437354383543935440354413544235443354443544535446354473544835449354503545135452354533545435455354563545735458354593546035461354623546335464354653546635467354683546935470354713547235473354743547535476354773547835479354803548135482354833548435485354863548735488354893549035491354923549335494354953549635497354983549935500355013550235503355043550535506355073550835509355103551135512355133551435515355163551735518355193552035521355223552335524355253552635527355283552935530355313553235533355343553535536355373553835539355403554135542355433554435545355463554735548355493555035551355523555335554355553555635557355583555935560355613556235563355643556535566355673556835569355703557135572355733557435575355763557735578355793558035581355823558335584355853558635587355883558935590355913559235593355943559535596355973559835599356003560135602356033560435605356063560735608356093561035611356123561335614356153561635617356183561935620356213562235623356243562535626356273562835629356303563135632356333563435635356363563735638356393564035641356423564335644356453564635647356483564935650356513565235653356543565535656356573565835659356603566135662356633566435665356663566735668356693567035671356723567335674356753567635677356783567935680356813568235683356843568535686356873568835689356903569135692356933569435695356963569735698356993570035701357023570335704357053570635707357083570935710357113571235713357143571535716357173571835719357203572135722357233572435725357263572735728357293573035731357323573335734357353573635737357383573935740357413574235743357443574535746357473574835749357503575135752357533575435755357563575735758357593576035761357623576335764357653576635767357683576935770357713577235773357743577535776357773577835779357803578135782357833578435785357863578735788357893579035791357923579335794357953579635797357983579935800358013580235803358043580535806358073580835809358103581135812358133581435815358163581735818358193582035821358223582335824358253582635827358283582935830358313583235833358343583535836358373583835839358403584135842358433584435845358463584735848358493585035851358523585335854358553585635857358583585935860358613586235863358643586535866358673586835869358703587135872358733587435875358763587735878358793588035881358823588335884358853588635887358883588935890358913589235893358943589535896358973589835899359003590135902359033590435905359063590735908359093591035911359123591335914359153591635917359183591935920359213592235923359243592535926359273592835929359303593135932359333593435935359363593735938359393594035941359423594335944359453594635947359483594935950359513595235953359543595535956359573595835959359603596135962359633596435965359663596735968359693597035971359723597335974359753597635977359783597935980359813598235983359843598535986359873598835989359903599135992359933599435995359963599735998359993600036001360023600336004360053600636007360083600936010360113601236013360143601536016360173601836019360203602136022360233602436025360263602736028360293603036031360323603336034360353603636037360383603936040360413604236043360443604536046360473604836049360503605136052360533605436055360563605736058360593606036061360623606336064360653606636067360683606936070360713607236073360743607536076360773607836079360803608136082360833608436085360863608736088360893609036091360923609336094360953609636097360983609936100361013610236103361043610536106361073610836109361103611136112361133611436115361163611736118361193612036121361223612336124361253612636127361283612936130361313613236133361343613536136361373613836139361403614136142361433614436145361463614736148361493615036151361523615336154361553615636157361583615936160361613616236163361643616536166361673616836169361703617136172361733617436175361763617736178361793618036181361823618336184361853618636187361883618936190361913619236193361943619536196361973619836199362003620136202362033620436205362063620736208362093621036211362123621336214362153621636217362183621936220362213622236223362243622536226362273622836229362303623136232362333623436235362363623736238362393624036241362423624336244362453624636247362483624936250362513625236253362543625536256362573625836259362603626136262362633626436265362663626736268362693627036271362723627336274362753627636277362783627936280362813628236283362843628536286362873628836289362903629136292362933629436295362963629736298362993630036301363023630336304363053630636307363083630936310363113631236313363143631536316363173631836319363203632136322363233632436325363263632736328363293633036331363323633336334363353633636337363383633936340363413634236343363443634536346363473634836349363503635136352363533635436355363563635736358363593636036361363623636336364363653636636367363683636936370363713637236373363743637536376363773637836379363803638136382363833638436385363863638736388363893639036391363923639336394363953639636397363983639936400364013640236403364043640536406364073640836409364103641136412364133641436415364163641736418364193642036421364223642336424364253642636427364283642936430364313643236433364343643536436364373643836439364403644136442364433644436445364463644736448364493645036451364523645336454364553645636457364583645936460364613646236463364643646536466364673646836469364703647136472364733647436475364763647736478364793648036481364823648336484364853648636487364883648936490364913649236493364943649536496364973649836499365003650136502365033650436505365063650736508365093651036511365123651336514365153651636517365183651936520365213652236523365243652536526365273652836529365303653136532365333653436535365363653736538365393654036541365423654336544365453654636547365483654936550365513655236553365543655536556365573655836559365603656136562365633656436565365663656736568365693657036571365723657336574365753657636577365783657936580365813658236583365843658536586365873658836589365903659136592365933659436595365963659736598365993660036601366023660336604366053660636607366083660936610366113661236613366143661536616366173661836619366203662136622366233662436625366263662736628366293663036631366323663336634366353663636637366383663936640366413664236643366443664536646366473664836649366503665136652366533665436655366563665736658366593666036661366623666336664366653666636667366683666936670366713667236673366743667536676366773667836679366803668136682366833668436685366863668736688366893669036691366923669336694366953669636697366983669936700367013670236703367043670536706367073670836709367103671136712367133671436715367163671736718367193672036721367223672336724367253672636727367283672936730367313673236733367343673536736367373673836739367403674136742367433674436745367463674736748367493675036751367523675336754367553675636757367583675936760367613676236763367643676536766367673676836769367703677136772367733677436775367763677736778367793678036781367823678336784367853678636787367883678936790367913679236793367943679536796367973679836799368003680136802368033680436805368063680736808368093681036811368123681336814368153681636817368183681936820368213682236823368243682536826368273682836829368303683136832368333683436835368363683736838368393684036841368423684336844368453684636847368483684936850368513685236853368543685536856368573685836859368603686136862368633686436865368663686736868368693687036871368723687336874368753687636877368783687936880368813688236883368843688536886368873688836889368903689136892368933689436895368963689736898368993690036901369023690336904369053690636907369083690936910369113691236913369143691536916369173691836919369203692136922369233692436925369263692736928369293693036931369323693336934369353693636937369383693936940369413694236943369443694536946369473694836949369503695136952369533695436955369563695736958369593696036961369623696336964369653696636967369683696936970369713697236973369743697536976369773697836979369803698136982369833698436985369863698736988369893699036991369923699336994369953699636997369983699937000370013700237003370043700537006370073700837009370103701137012370133701437015370163701737018370193702037021370223702337024370253702637027370283702937030370313703237033370343703537036370373703837039370403704137042370433704437045370463704737048370493705037051370523705337054370553705637057370583705937060370613706237063370643706537066370673706837069370703707137072370733707437075370763707737078370793708037081370823708337084370853708637087370883708937090370913709237093370943709537096370973709837099371003710137102371033710437105371063710737108371093711037111371123711337114371153711637117371183711937120371213712237123371243712537126371273712837129371303713137132371333713437135371363713737138371393714037141371423714337144371453714637147371483714937150371513715237153371543715537156371573715837159371603716137162371633716437165371663716737168371693717037171371723717337174371753717637177371783717937180371813718237183371843718537186371873718837189371903719137192371933719437195371963719737198371993720037201372023720337204372053720637207372083720937210372113721237213372143721537216372173721837219372203722137222372233722437225372263722737228372293723037231372323723337234372353723637237372383723937240372413724237243372443724537246372473724837249372503725137252372533725437255372563725737258372593726037261372623726337264372653726637267372683726937270372713727237273372743727537276372773727837279372803728137282372833728437285372863728737288372893729037291372923729337294372953729637297372983729937300373013730237303373043730537306373073730837309373103731137312373133731437315373163731737318373193732037321373223732337324373253732637327373283732937330373313733237333373343733537336373373733837339373403734137342373433734437345373463734737348373493735037351373523735337354373553735637357373583735937360373613736237363373643736537366373673736837369373703737137372373733737437375373763737737378373793738037381373823738337384373853738637387373883738937390373913739237393373943739537396373973739837399374003740137402374033740437405374063740737408374093741037411374123741337414374153741637417374183741937420374213742237423374243742537426374273742837429374303743137432374333743437435374363743737438374393744037441374423744337444374453744637447374483744937450374513745237453374543745537456374573745837459374603746137462374633746437465374663746737468374693747037471374723747337474374753747637477374783747937480374813748237483374843748537486374873748837489374903749137492374933749437495374963749737498374993750037501375023750337504375053750637507375083750937510375113751237513375143751537516375173751837519375203752137522375233752437525375263752737528375293753037531375323753337534375353753637537375383753937540375413754237543375443754537546375473754837549375503755137552375533755437555375563755737558375593756037561375623756337564375653756637567375683756937570375713757237573375743757537576375773757837579375803758137582375833758437585375863758737588375893759037591375923759337594375953759637597375983759937600376013760237603376043760537606376073760837609376103761137612376133761437615376163761737618376193762037621376223762337624376253762637627376283762937630376313763237633376343763537636376373763837639376403764137642376433764437645376463764737648376493765037651376523765337654376553765637657376583765937660376613766237663376643766537666376673766837669376703767137672376733767437675376763767737678376793768037681376823768337684376853768637687376883768937690376913769237693376943769537696376973769837699377003770137702377033770437705377063770737708377093771037711377123771337714377153771637717377183771937720377213772237723377243772537726377273772837729377303773137732377333773437735377363773737738377393774037741377423774337744377453774637747377483774937750377513775237753377543775537756377573775837759377603776137762377633776437765377663776737768377693777037771377723777337774377753777637777377783777937780377813778237783377843778537786377873778837789377903779137792377933779437795377963779737798377993780037801378023780337804378053780637807378083780937810378113781237813378143781537816378173781837819378203782137822378233782437825378263782737828378293783037831378323783337834378353783637837378383783937840378413784237843378443784537846378473784837849378503785137852378533785437855378563785737858378593786037861378623786337864378653786637867378683786937870378713787237873378743787537876378773787837879378803788137882378833788437885378863788737888378893789037891378923789337894378953789637897378983789937900379013790237903379043790537906379073790837909379103791137912379133791437915379163791737918379193792037921379223792337924379253792637927379283792937930379313793237933379343793537936379373793837939379403794137942379433794437945379463794737948379493795037951379523795337954379553795637957379583795937960379613796237963379643796537966379673796837969379703797137972379733797437975379763797737978379793798037981379823798337984379853798637987379883798937990379913799237993379943799537996379973799837999380003800138002380033800438005380063800738008380093801038011380123801338014380153801638017380183801938020380213802238023380243802538026380273802838029380303803138032380333803438035380363803738038380393804038041380423804338044380453804638047380483804938050380513805238053380543805538056380573805838059380603806138062380633806438065380663806738068380693807038071380723807338074380753807638077380783807938080380813808238083380843808538086380873808838089380903809138092380933809438095380963809738098380993810038101381023810338104381053810638107381083810938110381113811238113381143811538116381173811838119381203812138122381233812438125381263812738128381293813038131381323813338134381353813638137381383813938140381413814238143381443814538146381473814838149381503815138152381533815438155381563815738158381593816038161381623816338164381653816638167381683816938170381713817238173381743817538176381773817838179381803818138182381833818438185381863818738188381893819038191381923819338194381953819638197381983819938200382013820238203382043820538206382073820838209382103821138212382133821438215382163821738218382193822038221382223822338224382253822638227382283822938230382313823238233382343823538236382373823838239382403824138242382433824438245382463824738248382493825038251382523825338254382553825638257382583825938260382613826238263382643826538266382673826838269382703827138272382733827438275382763827738278382793828038281382823828338284382853828638287382883828938290382913829238293382943829538296382973829838299383003830138302383033830438305383063830738308383093831038311383123831338314383153831638317383183831938320383213832238323383243832538326383273832838329383303833138332383333833438335383363833738338383393834038341383423834338344383453834638347383483834938350383513835238353383543835538356383573835838359383603836138362383633836438365383663836738368383693837038371383723837338374383753837638377383783837938380383813838238383383843838538386383873838838389383903839138392383933839438395383963839738398383993840038401384023840338404384053840638407384083840938410384113841238413384143841538416384173841838419384203842138422384233842438425384263842738428384293843038431384323843338434384353843638437384383843938440384413844238443384443844538446384473844838449384503845138452384533845438455384563845738458384593846038461384623846338464384653846638467384683846938470384713847238473384743847538476384773847838479384803848138482384833848438485384863848738488384893849038491384923849338494384953849638497384983849938500385013850238503385043850538506385073850838509385103851138512385133851438515385163851738518385193852038521385223852338524385253852638527385283852938530385313853238533385343853538536385373853838539385403854138542385433854438545385463854738548385493855038551385523855338554385553855638557385583855938560385613856238563385643856538566385673856838569385703857138572385733857438575385763857738578385793858038581385823858338584385853858638587385883858938590385913859238593385943859538596385973859838599386003860138602386033860438605386063860738608386093861038611386123861338614386153861638617386183861938620386213862238623386243862538626386273862838629386303863138632386333863438635386363863738638386393864038641386423864338644386453864638647386483864938650386513865238653386543865538656386573865838659386603866138662386633866438665386663866738668386693867038671386723867338674386753867638677386783867938680386813868238683386843868538686386873868838689386903869138692386933869438695386963869738698386993870038701387023870338704387053870638707387083870938710387113871238713387143871538716387173871838719387203872138722387233872438725387263872738728387293873038731387323873338734387353873638737387383873938740387413874238743387443874538746387473874838749387503875138752387533875438755387563875738758387593876038761387623876338764387653876638767387683876938770387713877238773387743877538776387773877838779387803878138782387833878438785387863878738788387893879038791387923879338794387953879638797387983879938800388013880238803388043880538806388073880838809388103881138812388133881438815388163881738818388193882038821388223882338824388253882638827388283882938830388313883238833388343883538836388373883838839388403884138842388433884438845388463884738848388493885038851388523885338854388553885638857388583885938860388613886238863388643886538866388673886838869388703887138872388733887438875388763887738878388793888038881388823888338884388853888638887388883888938890388913889238893388943889538896388973889838899389003890138902389033890438905389063890738908389093891038911389123891338914389153891638917389183891938920389213892238923389243892538926389273892838929389303893138932389333893438935389363893738938389393894038941389423894338944389453894638947389483894938950389513895238953389543895538956389573895838959389603896138962389633896438965389663896738968389693897038971389723897338974389753897638977389783897938980389813898238983389843898538986389873898838989389903899138992389933899438995389963899738998389993900039001390023900339004390053900639007390083900939010390113901239013390143901539016390173901839019390203902139022390233902439025390263902739028390293903039031390323903339034390353903639037390383903939040390413904239043390443904539046390473904839049390503905139052390533905439055390563905739058390593906039061390623906339064390653906639067390683906939070390713907239073390743907539076390773907839079390803908139082390833908439085390863908739088390893909039091390923909339094390953909639097390983909939100391013910239103391043910539106391073910839109391103911139112391133911439115391163911739118391193912039121391223912339124391253912639127391283912939130391313913239133391343913539136391373913839139391403914139142391433914439145391463914739148391493915039151391523915339154391553915639157391583915939160391613916239163391643916539166391673916839169391703917139172391733917439175391763917739178391793918039181391823918339184391853918639187391883918939190391913919239193391943919539196391973919839199392003920139202392033920439205392063920739208392093921039211392123921339214392153921639217392183921939220392213922239223392243922539226392273922839229392303923139232392333923439235392363923739238392393924039241392423924339244392453924639247392483924939250392513925239253392543925539256392573925839259392603926139262392633926439265392663926739268392693927039271392723927339274392753927639277392783927939280392813928239283392843928539286392873928839289392903929139292392933929439295392963929739298392993930039301393023930339304393053930639307393083930939310393113931239313393143931539316393173931839319393203932139322393233932439325393263932739328393293933039331393323933339334393353933639337393383933939340393413934239343393443934539346393473934839349393503935139352393533935439355393563935739358393593936039361393623936339364393653936639367393683936939370393713937239373393743937539376393773937839379393803938139382393833938439385393863938739388393893939039391393923939339394393953939639397393983939939400394013940239403394043940539406394073940839409394103941139412394133941439415394163941739418394193942039421394223942339424394253942639427394283942939430394313943239433394343943539436394373943839439394403944139442394433944439445394463944739448394493945039451394523945339454394553945639457394583945939460394613946239463394643946539466394673946839469394703947139472394733947439475394763947739478394793948039481394823948339484394853948639487394883948939490394913949239493394943949539496394973949839499395003950139502395033950439505395063950739508395093951039511395123951339514395153951639517395183951939520395213952239523395243952539526395273952839529395303953139532395333953439535395363953739538395393954039541395423954339544395453954639547395483954939550395513955239553395543955539556395573955839559395603956139562395633956439565395663956739568395693957039571395723957339574395753957639577395783957939580395813958239583395843958539586395873958839589395903959139592395933959439595395963959739598395993960039601396023960339604396053960639607396083960939610396113961239613396143961539616396173961839619396203962139622396233962439625396263962739628396293963039631396323963339634396353963639637396383963939640396413964239643396443964539646396473964839649396503965139652396533965439655396563965739658396593966039661396623966339664396653966639667396683966939670396713967239673396743967539676396773967839679396803968139682396833968439685396863968739688396893969039691396923969339694396953969639697396983969939700397013970239703397043970539706397073970839709397103971139712397133971439715397163971739718397193972039721397223972339724397253972639727397283972939730397313973239733397343973539736397373973839739397403974139742397433974439745397463974739748397493975039751397523975339754397553975639757397583975939760397613976239763397643976539766397673976839769397703977139772397733977439775397763977739778397793978039781397823978339784397853978639787397883978939790397913979239793397943979539796397973979839799398003980139802398033980439805398063980739808398093981039811398123981339814398153981639817398183981939820398213982239823398243982539826398273982839829398303983139832398333983439835398363983739838398393984039841398423984339844398453984639847398483984939850398513985239853398543985539856398573985839859398603986139862398633986439865398663986739868398693987039871398723987339874398753987639877398783987939880398813988239883398843988539886398873988839889398903989139892398933989439895398963989739898398993990039901399023990339904399053990639907399083990939910399113991239913399143991539916399173991839919399203992139922399233992439925399263992739928399293993039931399323993339934399353993639937399383993939940399413994239943399443994539946399473994839949399503995139952399533995439955399563995739958399593996039961399623996339964399653996639967399683996939970399713997239973399743997539976399773997839979399803998139982399833998439985399863998739988399893999039991399923999339994399953999639997399983999940000400014000240003400044000540006400074000840009400104001140012400134001440015400164001740018400194002040021400224002340024400254002640027400284002940030400314003240033400344003540036400374003840039400404004140042400434004440045400464004740048400494005040051400524005340054400554005640057400584005940060400614006240063400644006540066400674006840069400704007140072400734007440075400764007740078400794008040081400824008340084400854008640087400884008940090400914009240093400944009540096400974009840099401004010140102401034010440105401064010740108401094011040111401124011340114401154011640117401184011940120401214012240123401244012540126401274012840129401304013140132401334013440135401364013740138401394014040141401424014340144401454014640147401484014940150401514015240153401544015540156401574015840159401604016140162401634016440165401664016740168401694017040171401724017340174401754017640177401784017940180401814018240183401844018540186401874018840189401904019140192401934019440195401964019740198401994020040201402024020340204402054020640207402084020940210402114021240213402144021540216402174021840219402204022140222402234022440225402264022740228402294023040231402324023340234402354023640237402384023940240402414024240243402444024540246402474024840249402504025140252402534025440255402564025740258402594026040261402624026340264402654026640267402684026940270402714027240273402744027540276402774027840279402804028140282402834028440285402864028740288402894029040291402924029340294402954029640297402984029940300403014030240303403044030540306403074030840309403104031140312403134031440315403164031740318403194032040321403224032340324403254032640327403284032940330403314033240333403344033540336403374033840339403404034140342403434034440345403464034740348403494035040351403524035340354403554035640357403584035940360403614036240363403644036540366403674036840369403704037140372403734037440375403764037740378403794038040381403824038340384403854038640387403884038940390403914039240393403944039540396403974039840399404004040140402404034040440405404064040740408404094041040411404124041340414404154041640417404184041940420404214042240423404244042540426404274042840429404304043140432404334043440435404364043740438404394044040441404424044340444404454044640447404484044940450404514045240453404544045540456404574045840459404604046140462404634046440465404664046740468404694047040471404724047340474404754047640477404784047940480404814048240483404844048540486404874048840489404904049140492404934049440495404964049740498404994050040501405024050340504405054050640507405084050940510405114051240513405144051540516405174051840519405204052140522405234052440525405264052740528405294053040531405324053340534405354053640537405384053940540405414054240543405444054540546405474054840549405504055140552405534055440555405564055740558405594056040561405624056340564405654056640567405684056940570405714057240573405744057540576405774057840579405804058140582405834058440585405864058740588405894059040591405924059340594405954059640597405984059940600406014060240603406044060540606406074060840609406104061140612406134061440615406164061740618406194062040621406224062340624406254062640627406284062940630406314063240633406344063540636406374063840639406404064140642406434064440645406464064740648406494065040651406524065340654406554065640657406584065940660406614066240663406644066540666406674066840669406704067140672406734067440675406764067740678406794068040681406824068340684406854068640687406884068940690406914069240693406944069540696406974069840699407004070140702407034070440705407064070740708407094071040711407124071340714407154071640717407184071940720407214072240723407244072540726407274072840729407304073140732407334073440735407364073740738407394074040741407424074340744407454074640747407484074940750407514075240753407544075540756407574075840759407604076140762407634076440765407664076740768407694077040771407724077340774407754077640777407784077940780407814078240783407844078540786407874078840789407904079140792407934079440795407964079740798407994080040801408024080340804408054080640807408084080940810408114081240813408144081540816408174081840819408204082140822408234082440825408264082740828408294083040831408324083340834408354083640837408384083940840408414084240843408444084540846408474084840849408504085140852408534085440855408564085740858408594086040861408624086340864408654086640867408684086940870408714087240873408744087540876408774087840879408804088140882408834088440885408864088740888408894089040891408924089340894408954089640897408984089940900409014090240903409044090540906409074090840909409104091140912409134091440915409164091740918409194092040921409224092340924409254092640927409284092940930409314093240933409344093540936409374093840939409404094140942409434094440945409464094740948409494095040951409524095340954409554095640957409584095940960409614096240963409644096540966409674096840969409704097140972409734097440975409764097740978409794098040981409824098340984409854098640987409884098940990409914099240993409944099540996409974099840999410004100141002410034100441005410064100741008410094101041011410124101341014410154101641017410184101941020410214102241023410244102541026410274102841029410304103141032410334103441035410364103741038410394104041041410424104341044410454104641047410484104941050410514105241053410544105541056410574105841059410604106141062410634106441065410664106741068410694107041071410724107341074410754107641077410784107941080410814108241083410844108541086410874108841089410904109141092410934109441095410964109741098410994110041101411024110341104411054110641107411084110941110411114111241113411144111541116411174111841119411204112141122411234112441125411264112741128411294113041131411324113341134411354113641137411384113941140411414114241143411444114541146411474114841149411504115141152411534115441155411564115741158411594116041161411624116341164411654116641167411684116941170411714117241173411744117541176411774117841179411804118141182411834118441185411864118741188411894119041191411924119341194411954119641197411984119941200412014120241203412044120541206412074120841209412104121141212412134121441215412164121741218412194122041221412224122341224412254122641227412284122941230412314123241233412344123541236412374123841239412404124141242412434124441245412464124741248412494125041251412524125341254412554125641257412584125941260412614126241263412644126541266412674126841269412704127141272412734127441275412764127741278412794128041281412824128341284412854128641287412884128941290412914129241293412944129541296412974129841299413004130141302413034130441305413064130741308413094131041311413124131341314413154131641317413184131941320413214132241323413244132541326413274132841329413304133141332413334133441335413364133741338413394134041341413424134341344413454134641347413484134941350413514135241353413544135541356413574135841359413604136141362413634136441365413664136741368413694137041371413724137341374413754137641377413784137941380413814138241383413844138541386413874138841389413904139141392413934139441395413964139741398413994140041401414024140341404414054140641407414084140941410414114141241413414144141541416414174141841419414204142141422414234142441425414264142741428414294143041431414324143341434414354143641437414384143941440414414144241443414444144541446414474144841449414504145141452414534145441455414564145741458414594146041461414624146341464414654146641467414684146941470414714147241473414744147541476414774147841479414804148141482414834148441485414864148741488414894149041491414924149341494414954149641497414984149941500415014150241503415044150541506415074150841509415104151141512415134151441515415164151741518415194152041521415224152341524415254152641527415284152941530415314153241533415344153541536415374153841539415404154141542415434154441545415464154741548415494155041551415524155341554415554155641557415584155941560415614156241563415644156541566415674156841569415704157141572415734157441575415764157741578415794158041581415824158341584415854158641587415884158941590415914159241593415944159541596415974159841599416004160141602416034160441605416064160741608416094161041611416124161341614416154161641617416184161941620416214162241623416244162541626416274162841629416304163141632416334163441635416364163741638416394164041641416424164341644416454164641647416484164941650416514165241653416544165541656416574165841659416604166141662416634166441665416664166741668416694167041671416724167341674416754167641677416784167941680416814168241683416844168541686416874168841689416904169141692416934169441695416964169741698416994170041701417024170341704417054170641707417084170941710417114171241713417144171541716417174171841719417204172141722417234172441725417264172741728417294173041731417324173341734417354173641737417384173941740417414174241743417444174541746417474174841749417504175141752417534175441755417564175741758417594176041761417624176341764417654176641767417684176941770417714177241773417744177541776417774177841779417804178141782417834178441785417864178741788417894179041791417924179341794417954179641797417984179941800418014180241803418044180541806418074180841809418104181141812418134181441815418164181741818418194182041821418224182341824418254182641827418284182941830418314183241833418344183541836418374183841839418404184141842418434184441845418464184741848418494185041851418524185341854418554185641857418584185941860418614186241863418644186541866418674186841869418704187141872418734187441875418764187741878418794188041881418824188341884418854188641887418884188941890418914189241893418944189541896418974189841899419004190141902419034190441905419064190741908419094191041911419124191341914419154191641917419184191941920419214192241923419244192541926419274192841929419304193141932419334193441935419364193741938419394194041941419424194341944419454194641947419484194941950419514195241953419544195541956419574195841959419604196141962419634196441965419664196741968419694197041971419724197341974419754197641977419784197941980419814198241983419844198541986419874198841989419904199141992419934199441995419964199741998419994200042001420024200342004420054200642007420084200942010420114201242013420144201542016420174201842019420204202142022420234202442025420264202742028420294203042031420324203342034420354203642037420384203942040420414204242043420444204542046420474204842049420504205142052420534205442055420564205742058420594206042061420624206342064420654206642067420684206942070420714207242073420744207542076420774207842079420804208142082420834208442085420864208742088420894209042091420924209342094420954209642097420984209942100421014210242103421044210542106421074210842109421104211142112421134211442115421164211742118421194212042121421224212342124421254212642127421284212942130421314213242133421344213542136421374213842139421404214142142421434214442145421464214742148421494215042151421524215342154421554215642157421584215942160421614216242163421644216542166421674216842169421704217142172421734217442175421764217742178421794218042181421824218342184421854218642187421884218942190421914219242193421944219542196421974219842199422004220142202422034220442205422064220742208422094221042211422124221342214422154221642217422184221942220422214222242223422244222542226422274222842229422304223142232422334223442235422364223742238422394224042241422424224342244422454224642247422484224942250422514225242253422544225542256422574225842259422604226142262422634226442265422664226742268422694227042271422724227342274422754227642277422784227942280422814228242283422844228542286422874228842289422904229142292422934229442295422964229742298422994230042301423024230342304423054230642307423084230942310423114231242313423144231542316423174231842319423204232142322423234232442325423264232742328423294233042331423324233342334423354233642337423384233942340423414234242343423444234542346423474234842349423504235142352423534235442355423564235742358423594236042361423624236342364423654236642367423684236942370423714237242373423744237542376423774237842379423804238142382423834238442385423864238742388423894239042391423924239342394423954239642397423984239942400424014240242403424044240542406424074240842409424104241142412424134241442415424164241742418424194242042421424224242342424424254242642427424284242942430424314243242433424344243542436424374243842439424404244142442424434244442445424464244742448424494245042451424524245342454424554245642457424584245942460424614246242463424644246542466424674246842469424704247142472424734247442475424764247742478424794248042481424824248342484424854248642487424884248942490424914249242493424944249542496424974249842499425004250142502425034250442505425064250742508425094251042511425124251342514425154251642517425184251942520425214252242523425244252542526425274252842529425304253142532425334253442535425364253742538425394254042541425424254342544425454254642547425484254942550425514255242553425544255542556425574255842559425604256142562425634256442565425664256742568425694257042571425724257342574425754257642577425784257942580425814258242583425844258542586425874258842589425904259142592425934259442595425964259742598425994260042601426024260342604426054260642607426084260942610426114261242613426144261542616426174261842619426204262142622426234262442625426264262742628426294263042631426324263342634426354263642637426384263942640426414264242643426444264542646426474264842649426504265142652426534265442655426564265742658426594266042661426624266342664426654266642667426684266942670426714267242673426744267542676426774267842679426804268142682426834268442685426864268742688426894269042691426924269342694426954269642697426984269942700427014270242703427044270542706427074270842709427104271142712427134271442715427164271742718427194272042721427224272342724427254272642727427284272942730427314273242733427344273542736427374273842739427404274142742427434274442745427464274742748427494275042751427524275342754427554275642757427584275942760427614276242763427644276542766427674276842769427704277142772427734277442775427764277742778427794278042781427824278342784427854278642787427884278942790427914279242793427944279542796427974279842799428004280142802428034280442805428064280742808428094281042811428124281342814428154281642817428184281942820428214282242823428244282542826428274282842829428304283142832428334283442835428364283742838428394284042841428424284342844428454284642847428484284942850428514285242853428544285542856428574285842859428604286142862428634286442865428664286742868428694287042871428724287342874428754287642877428784287942880428814288242883428844288542886428874288842889428904289142892428934289442895428964289742898428994290042901429024290342904429054290642907429084290942910429114291242913429144291542916429174291842919429204292142922429234292442925429264292742928429294293042931429324293342934429354293642937429384293942940429414294242943429444294542946429474294842949429504295142952429534295442955429564295742958429594296042961429624296342964429654296642967429684296942970429714297242973429744297542976429774297842979429804298142982429834298442985429864298742988429894299042991429924299342994429954299642997429984299943000430014300243003430044300543006430074300843009430104301143012430134301443015430164301743018430194302043021430224302343024430254302643027430284302943030430314303243033430344303543036430374303843039430404304143042430434304443045430464304743048430494305043051430524305343054430554305643057430584305943060430614306243063430644306543066430674306843069430704307143072430734307443075430764307743078430794308043081430824308343084430854308643087430884308943090430914309243093430944309543096430974309843099431004310143102431034310443105431064310743108431094311043111431124311343114431154311643117431184311943120431214312243123431244312543126431274312843129431304313143132431334313443135431364313743138431394314043141431424314343144431454314643147431484314943150431514315243153431544315543156431574315843159431604316143162431634316443165431664316743168431694317043171431724317343174431754317643177431784317943180431814318243183431844318543186431874318843189431904319143192431934319443195431964319743198431994320043201432024320343204432054320643207432084320943210432114321243213432144321543216432174321843219432204322143222432234322443225432264322743228432294323043231432324323343234432354323643237432384323943240432414324243243432444324543246432474324843249432504325143252432534325443255432564325743258432594326043261432624326343264432654326643267432684326943270432714327243273432744327543276432774327843279432804328143282432834328443285432864328743288432894329043291432924329343294432954329643297432984329943300433014330243303433044330543306433074330843309433104331143312433134331443315433164331743318433194332043321433224332343324433254332643327433284332943330433314333243333433344333543336433374333843339433404334143342433434334443345433464334743348433494335043351433524335343354433554335643357433584335943360433614336243363433644336543366433674336843369433704337143372433734337443375433764337743378433794338043381433824338343384433854338643387433884338943390433914339243393433944339543396433974339843399434004340143402434034340443405434064340743408434094341043411434124341343414434154341643417434184341943420434214342243423434244342543426434274342843429434304343143432434334343443435434364343743438434394344043441434424344343444434454344643447434484344943450434514345243453434544345543456434574345843459434604346143462434634346443465434664346743468434694347043471434724347343474434754347643477434784347943480434814348243483434844348543486434874348843489434904349143492434934349443495434964349743498434994350043501435024350343504435054350643507435084350943510435114351243513435144351543516435174351843519435204352143522435234352443525435264352743528435294353043531435324353343534435354353643537435384353943540435414354243543435444354543546435474354843549435504355143552435534355443555435564355743558435594356043561435624356343564435654356643567435684356943570435714357243573435744357543576435774357843579435804358143582435834358443585435864358743588435894359043591435924359343594435954359643597435984359943600436014360243603436044360543606436074360843609436104361143612436134361443615436164361743618436194362043621436224362343624436254362643627436284362943630436314363243633436344363543636436374363843639436404364143642436434364443645436464364743648436494365043651436524365343654436554365643657436584365943660436614366243663436644366543666436674366843669436704367143672436734367443675436764367743678436794368043681436824368343684436854368643687436884368943690436914369243693436944369543696436974369843699437004370143702437034370443705437064370743708437094371043711437124371343714437154371643717437184371943720437214372243723437244372543726437274372843729437304373143732437334373443735437364373743738437394374043741437424374343744437454374643747437484374943750437514375243753437544375543756437574375843759437604376143762437634376443765437664376743768437694377043771437724377343774437754377643777437784377943780437814378243783437844378543786437874378843789437904379143792437934379443795437964379743798437994380043801438024380343804438054380643807438084380943810438114381243813438144381543816438174381843819438204382143822438234382443825438264382743828438294383043831438324383343834438354383643837438384383943840438414384243843438444384543846438474384843849438504385143852438534385443855438564385743858438594386043861438624386343864438654386643867438684386943870438714387243873438744387543876438774387843879438804388143882438834388443885438864388743888438894389043891438924389343894438954389643897438984389943900439014390243903439044390543906439074390843909439104391143912439134391443915439164391743918439194392043921439224392343924439254392643927439284392943930439314393243933439344393543936439374393843939439404394143942439434394443945439464394743948439494395043951439524395343954439554395643957439584395943960439614396243963439644396543966439674396843969439704397143972439734397443975439764397743978439794398043981439824398343984439854398643987439884398943990439914399243993439944399543996439974399843999440004400144002440034400444005440064400744008440094401044011440124401344014440154401644017440184401944020440214402244023440244402544026440274402844029440304403144032440334403444035440364403744038440394404044041440424404344044440454404644047440484404944050440514405244053440544405544056440574405844059440604406144062440634406444065440664406744068440694407044071440724407344074440754407644077440784407944080440814408244083440844408544086440874408844089440904409144092440934409444095440964409744098440994410044101441024410344104441054410644107441084410944110441114411244113441144411544116441174411844119441204412144122441234412444125441264412744128441294413044131441324413344134441354413644137441384413944140441414414244143441444414544146441474414844149441504415144152441534415444155441564415744158441594416044161441624416344164441654416644167441684416944170441714417244173441744417544176441774417844179441804418144182441834418444185441864418744188441894419044191441924419344194441954419644197441984419944200442014420244203442044420544206442074420844209442104421144212442134421444215442164421744218442194422044221442224422344224442254422644227442284422944230442314423244233442344423544236442374423844239442404424144242442434424444245442464424744248442494425044251442524425344254442554425644257442584425944260442614426244263442644426544266442674426844269442704427144272442734427444275442764427744278442794428044281442824428344284442854428644287442884428944290442914429244293442944429544296442974429844299443004430144302443034430444305443064430744308443094431044311443124431344314443154431644317443184431944320443214432244323443244432544326443274432844329443304433144332443334433444335443364433744338443394434044341443424434344344443454434644347443484434944350443514435244353443544435544356443574435844359443604436144362443634436444365443664436744368443694437044371443724437344374443754437644377443784437944380443814438244383443844438544386443874438844389443904439144392443934439444395443964439744398443994440044401444024440344404444054440644407444084440944410444114441244413444144441544416444174441844419444204442144422444234442444425444264442744428444294443044431444324443344434444354443644437444384443944440444414444244443444444444544446444474444844449444504445144452444534445444455444564445744458444594446044461444624446344464444654446644467444684446944470444714447244473444744447544476444774447844479444804448144482444834448444485444864448744488444894449044491444924449344494444954449644497444984449944500445014450244503445044450544506445074450844509445104451144512445134451444515445164451744518445194452044521445224452344524445254452644527445284452944530445314453244533445344453544536445374453844539445404454144542445434454444545445464454744548445494455044551445524455344554445554455644557445584455944560445614456244563445644456544566445674456844569445704457144572445734457444575445764457744578445794458044581445824458344584445854458644587445884458944590445914459244593445944459544596445974459844599446004460144602446034460444605446064460744608446094461044611446124461344614446154461644617446184461944620446214462244623446244462544626446274462844629446304463144632446334463444635446364463744638446394464044641446424464344644446454464644647446484464944650446514465244653446544465544656446574465844659446604466144662446634466444665446664466744668446694467044671446724467344674446754467644677446784467944680446814468244683446844468544686446874468844689446904469144692446934469444695446964469744698446994470044701447024470344704447054470644707447084470944710447114471244713447144471544716447174471844719447204472144722447234472444725447264472744728447294473044731447324473344734447354473644737447384473944740447414474244743447444474544746447474474844749447504475144752447534475444755447564475744758447594476044761447624476344764447654476644767447684476944770447714477244773447744477544776447774477844779447804478144782447834478444785447864478744788447894479044791447924479344794447954479644797447984479944800448014480244803448044480544806448074480844809448104481144812448134481444815448164481744818448194482044821448224482344824448254482644827448284482944830448314483244833448344483544836448374483844839448404484144842448434484444845448464484744848448494485044851448524485344854448554485644857448584485944860448614486244863448644486544866448674486844869448704487144872448734487444875448764487744878448794488044881448824488344884448854488644887448884488944890448914489244893448944489544896448974489844899449004490144902449034490444905449064490744908449094491044911449124491344914449154491644917449184491944920449214492244923449244492544926449274492844929449304493144932449334493444935449364493744938449394494044941449424494344944449454494644947449484494944950449514495244953449544495544956449574495844959449604496144962449634496444965449664496744968449694497044971449724497344974449754497644977449784497944980449814498244983449844498544986449874498844989449904499144992449934499444995449964499744998449994500045001450024500345004450054500645007450084500945010450114501245013450144501545016450174501845019450204502145022450234502445025450264502745028450294503045031450324503345034450354503645037450384503945040450414504245043450444504545046450474504845049450504505145052450534505445055450564505745058450594506045061450624506345064450654506645067450684506945070450714507245073450744507545076450774507845079450804508145082450834508445085450864508745088450894509045091450924509345094450954509645097450984509945100451014510245103451044510545106451074510845109451104511145112451134511445115451164511745118451194512045121451224512345124451254512645127451284512945130451314513245133451344513545136451374513845139451404514145142451434514445145451464514745148451494515045151451524515345154451554515645157451584515945160451614516245163451644516545166451674516845169451704517145172451734517445175451764517745178451794518045181451824518345184451854518645187451884518945190451914519245193451944519545196451974519845199452004520145202452034520445205452064520745208452094521045211452124521345214452154521645217452184521945220452214522245223452244522545226452274522845229452304523145232452334523445235452364523745238452394524045241452424524345244452454524645247452484524945250452514525245253452544525545256452574525845259452604526145262452634526445265452664526745268452694527045271452724527345274452754527645277452784527945280452814528245283452844528545286452874528845289452904529145292452934529445295452964529745298452994530045301453024530345304453054530645307453084530945310453114531245313453144531545316453174531845319453204532145322453234532445325453264532745328453294533045331453324533345334453354533645337453384533945340453414534245343453444534545346453474534845349453504535145352453534535445355453564535745358453594536045361453624536345364453654536645367453684536945370453714537245373453744537545376453774537845379453804538145382453834538445385453864538745388453894539045391453924539345394453954539645397453984539945400454014540245403454044540545406454074540845409454104541145412454134541445415454164541745418454194542045421454224542345424454254542645427454284542945430454314543245433454344543545436454374543845439454404544145442454434544445445454464544745448454494545045451454524545345454454554545645457454584545945460454614546245463454644546545466454674546845469454704547145472454734547445475454764547745478454794548045481454824548345484454854548645487454884548945490454914549245493454944549545496454974549845499455004550145502455034550445505455064550745508455094551045511455124551345514455154551645517455184551945520455214552245523455244552545526455274552845529455304553145532455334553445535455364553745538455394554045541455424554345544455454554645547455484554945550455514555245553455544555545556455574555845559455604556145562455634556445565455664556745568455694557045571455724557345574455754557645577455784557945580455814558245583455844558545586455874558845589455904559145592455934559445595455964559745598455994560045601456024560345604456054560645607456084560945610456114561245613456144561545616456174561845619456204562145622456234562445625456264562745628456294563045631456324563345634456354563645637456384563945640456414564245643456444564545646456474564845649456504565145652456534565445655456564565745658456594566045661456624566345664456654566645667456684566945670456714567245673456744567545676456774567845679456804568145682456834568445685456864568745688456894569045691456924569345694456954569645697456984569945700457014570245703457044570545706457074570845709457104571145712457134571445715457164571745718457194572045721457224572345724457254572645727457284572945730457314573245733457344573545736457374573845739457404574145742457434574445745457464574745748457494575045751457524575345754457554575645757457584575945760457614576245763457644576545766457674576845769457704577145772457734577445775457764577745778457794578045781457824578345784457854578645787457884578945790457914579245793457944579545796457974579845799458004580145802458034580445805458064580745808458094581045811458124581345814458154581645817458184581945820458214582245823458244582545826458274582845829458304583145832458334583445835458364583745838458394584045841458424584345844458454584645847458484584945850458514585245853458544585545856458574585845859458604586145862458634586445865458664586745868458694587045871458724587345874458754587645877458784587945880458814588245883458844588545886458874588845889458904589145892458934589445895458964589745898458994590045901459024590345904459054590645907459084590945910459114591245913459144591545916459174591845919459204592145922459234592445925459264592745928459294593045931459324593345934459354593645937459384593945940459414594245943459444594545946459474594845949459504595145952459534595445955459564595745958459594596045961459624596345964459654596645967459684596945970459714597245973459744597545976459774597845979459804598145982459834598445985459864598745988459894599045991459924599345994459954599645997459984599946000460014600246003460044600546006460074600846009460104601146012460134601446015460164601746018460194602046021460224602346024460254602646027460284602946030460314603246033460344603546036460374603846039460404604146042460434604446045460464604746048460494605046051460524605346054460554605646057460584605946060460614606246063460644606546066460674606846069460704607146072460734607446075460764607746078460794608046081460824608346084460854608646087460884608946090460914609246093460944609546096460974609846099461004610146102461034610446105461064610746108461094611046111461124611346114461154611646117461184611946120461214612246123461244612546126461274612846129461304613146132461334613446135461364613746138461394614046141461424614346144461454614646147461484614946150461514615246153461544615546156461574615846159461604616146162461634616446165461664616746168461694617046171461724617346174461754617646177461784617946180461814618246183461844618546186461874618846189461904619146192461934619446195461964619746198461994620046201462024620346204462054620646207462084620946210462114621246213462144621546216462174621846219462204622146222462234622446225462264622746228462294623046231462324623346234462354623646237462384623946240462414624246243462444624546246462474624846249462504625146252462534625446255462564625746258462594626046261462624626346264462654626646267462684626946270462714627246273462744627546276462774627846279462804628146282462834628446285462864628746288462894629046291462924629346294462954629646297462984629946300463014630246303463044630546306463074630846309463104631146312463134631446315463164631746318463194632046321463224632346324463254632646327463284632946330463314633246333463344633546336463374633846339463404634146342463434634446345463464634746348463494635046351463524635346354463554635646357463584635946360463614636246363463644636546366463674636846369463704637146372463734637446375463764637746378463794638046381463824638346384463854638646387463884638946390463914639246393463944639546396463974639846399464004640146402464034640446405464064640746408464094641046411464124641346414464154641646417464184641946420464214642246423464244642546426464274642846429464304643146432464334643446435464364643746438464394644046441464424644346444464454644646447464484644946450464514645246453464544645546456464574645846459464604646146462464634646446465464664646746468464694647046471464724647346474464754647646477464784647946480464814648246483464844648546486464874648846489464904649146492464934649446495
  1. 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
  2. * configure.ac: Bump version to 2.00.
  3. * grub-core/normal/main.c (features): Add feature_200_final.
  4. 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
  5. 2012-06-27 Jordan Uggla <jordan.uggla@gmail.com>
  6. * NEWS: Fix unclarity and language mistakes.
  7. 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
  8. * grub-core/loader/i386/linux.c (find_efi_mmap_size): Increase
  9. additional size to 3 pages.
  10. Reported by: Stuart Hayes.
  11. 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
  12. * NEWS: Add 2.00 entry.
  13. 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
  14. * grub-core/commands/wildcard.c (check_file): Fix bad logic.
  15. put explicit "/" for empty path.
  16. (wildcard_expand): Improve dprintf.
  17. 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
  18. * grub-core/fs/fshelp.c (grub_fshelp_find_file): Don't free oldnode if
  19. it's equal to currnode. This can happen with "" symlink.
  20. 2012-06-27 Yves Blusseau <blusseau@zetam.org>
  21. * util/grub-mkconfig_lib.in: Fix print messages replacing builtin
  22. echo shell command by printf command.
  23. 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
  24. * grub-core/term/arc/console.c (grub_console_init_output): Add one since
  25. the value returned by firmware is the maximal position, not diumension.
  26. (grub_terminfo_output_state): Use a more sane fallback.
  27. 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
  28. * grub-core/term/terminfo.c (print_terminfo): Print terminal dimensions.
  29. 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
  30. * grub-core/kern/mips/arc/init.c (grub_machine_init): Set clock
  31. frequency to 150 MHz.
  32. 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
  33. Apple fixes.
  34. * grub-core/lib/i386/relocator16.S: Use correct __APPLE__ and not
  35. __APPLE_
  36. * grub-core/lib/i386/relocator_common.S [__APPLE__]: Fix gdtdesc
  37. definition.
  38. * grub-core/lib/i386/relocator64.S [__APPLE__]: Assemble jmp manually.
  39. 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
  40. Handle slash in HFS label.
  41. * grub-core/fs/hfs.c (macroman_to_utf8): New argument slash_translate.
  42. (grub_hfs_dir): Tanslate slash.
  43. (grub_hfs_label): Don't translate slash.
  44. 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
  45. * grub-core/commands/ls.c (grub_ls_list_devices): Disable
  46. network protocol listing since it introduces problematic dependency on
  47. net module.
  48. 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
  49. * util/grub-mkimage.c (generate_image): Add Yeeloong verified hash.
  50. 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
  51. Init video early on yeeloong to avoid being rebooted by watchdog.
  52. * grub-core/Makefile.am (gensm712): New target.
  53. (sm712_start.S): Likewise.
  54. (boot/mips/loongson/fwstart.S): Depend on sm712_start.S
  55. * grub-core/boot/mips/loongson/fwstart.S [!FULOONG2F]: Init SM712.
  56. * grub-core/video/sm712.c [GENINIT]: Generate compact init procedure
  57. description.
  58. * include/grub/vga.h: Move registry definitions to...
  59. * include/grub/vgaregs.h: ... here.
  60. 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
  61. * grub-core/boot/decompressor/minilib.c (grub_memcmp): Fix the compare
  62. signedness.
  63. 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
  64. * util/grub-install.in: Fix dvhtool invocation. Add arc to the list of
  65. platforms with firmware disk drivers in the core.
  66. 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
  67. * grub-core/disk/diskfilter.c (scan_disk) [GRUB_UTIL]: Put more
  68. informative verbose message.
  69. (read_lv): Handle 64-bit segment size.
  70. 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
  71. * grub-core/disk/lvm.c (grub_lvm_getvalue): Handle 64-bit values.
  72. 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
  73. * grub-core/fs/fat.c (grub_fat_iterate_dir_next): Don't stop on a space
  74. character but still remove trainling spaces.
  75. (grub_fat_label): Ignore archive flag.
  76. 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
  77. * grub-core/loader/i386/linux.c (grub_cmd_initrd): Avoid unnecessarry
  78. cast between linux_kernel_header and linux_kernel_params.
  79. 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
  80. * include/grub/diskfilter.h (grub_raid5_recover_func_t): Use proper
  81. type for size.
  82. (grub_raid6_recover_func_t): Likewise.
  83. * grub-core/disk/raid5_recover.c (grub_raid5_recover): Likewise.
  84. * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
  85. 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
  86. * util/grub-mkimage.c (generate_image): Add Fuloong2F verified hash.
  87. 2012-06-25 Grégoire Sutre <gregoire.sutre@gmail.com>
  88. Fix overflow.
  89. * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size)
  90. [__NetBSD__]: Add explicit cast before bitshift.
  91. 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
  92. * configure.ac: Bump to 2.00~rc1.
  93. 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
  94. * grub-core/boot/mips/loongson/fwstart.S: Add missing setting of high
  95. half of $a0.
  96. 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
  97. 2012-06-23 Jordan Uggla <jordan.uggla@gmail.com>
  98. * docs/grub.texi: Fix search syntax.
  99. (Multi-boot manual config): Put msdos rather than GPT example.
  100. Grammar corrections.
  101. 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
  102. * docs/grub.texi (Multi-boot manual config): Use --set. Improve remark.
  103. 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
  104. * grub-core/kern/mm.c (grub_free): Fix agglomerating of free regions.
  105. 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
  106. * grub-core/kern/mm.c (get_header_from_pointer): Put a more informative
  107. message on double free. Put the value of magic in case of mismatch.
  108. 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
  109. Speed-up video on yeeloong.
  110. * grub-core/video/sm712.c (framebuffer): Remove render_target and
  111. add cached_ptr.
  112. (grub_video_sm712_video_fini): Unmap cached_ptr.
  113. (grub_video_sm712_setup): Use cache address and grub_video_fb_setup.
  114. (grub_video_sm712_set_active_render_target): Removed.
  115. (grub_video_adapter): Use grub_video_fb_set_active_render_target.
  116. (grub_video_sm712_swap_buffers): Call grub_video_fb_swap_buffers and
  117. sync caches.
  118. 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
  119. Avoid flushing the same line multiple times on loongson.
  120. * grub-core/kern/mips/cache.S [GRUB_MACHINE_MIPS_LOONGSON]:
  121. Step in 32 bytes and not 1 byte.
  122. * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]:
  123. Likewise.
  124. 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
  125. * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle btrfs
  126. subvolumes.
  127. 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
  128. Implement flow control for http.
  129. * grub-core/net/http.c (parse_line): Handle response 206.
  130. (http_receive): Stall if too many packets are in the queue.
  131. (http_establish): Fix range header.
  132. (http_seek): Fix double free.
  133. (http_close): Likewise.
  134. (http_packets_pulled): New function.
  135. (grub_http_protocol): Set http_seek
  136. * grub-core/net/tcp.c (grub_net_tcp_socket): New field `i_stall'.
  137. (ack_real): Set window depending on i_stall.
  138. (grub_net_send_tcp_packet): Likewise.
  139. (grub_net_tcp_stall): New function.
  140. (grub_net_tcp_unstall): Likewise.
  141. * include/grub/net/tcp.h (grub_net_tcp_stall): New proto.
  142. (grub_net_tcp_unstall): Likewise.
  143. 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
  144. * grub-core/net/tftp.c: Decrease stall to 50 packets.
  145. 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
  146. * grub-core/net/net.c (grub_net_fs_open): Free resources on failed open.
  147. 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
  148. * tests/util/grub-shell.in: Fix a typo.
  149. 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
  150. Implement flow control for tftp.
  151. * grub-core/net/net.c (receive_packets): Decrease the stop to 10
  152. packets but stop only if stop condition is satisfied.
  153. (grub_net_fs_read_real): Call packets_pulled after real read. Use
  154. `stall' instead of `eof' as stop condition.
  155. * grub-core/net/http.c (parse_line): Set `stall' on EOF.
  156. (http_err): Likewise.
  157. * grub-core/net/tftp.c (ack): Replace the first argument with data
  158. instead of socket.
  159. (tftp_receive): Stall if too many packets are in wait queue.
  160. (tftp_packets_pulled): New function.
  161. (grub_tftp_protocol): Set packets_pulled.
  162. * include/grub/net.h (grub_net_packets): New field count.
  163. (grub_net_put_packet): Increment count.
  164. (grub_net_remove_packet): Likewise.
  165. (grub_net_app_protocol): New field `packets_pulled'.
  166. (grub_net): New field `stall'.
  167. 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
  168. * grub-core/net/net.c (receive_packets): Stop after 100 packets to let
  169. sync part to handle them.
  170. 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
  171. * grub-core/kern/main.c (grub_set_prefix_and_root): Fix memory leak.
  172. * grub-core/net/drivers/ieee1275/ofnet.c
  173. (grub_ieee1275_net_config_real): Likewise.
  174. 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
  175. * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Don't create
  176. the direct route for server/gateway.
  177. 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
  178. * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Prefer
  179. IP address to server name since we may not hame the DNS.
  180. 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
  181. * grub-core/net/dns.c (grub_cmd_nslookup): Init addresses to 0 to avoid
  182. freeing random buffer on failure.
  183. * grub-core/net/net.c (grub_net_resolve_address): Likewise.
  184. 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
  185. * grub-core/net/bootp.c (grub_cmd_bootp): Fix packet allocation size.
  186. 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
  187. * grub-core/net/drivers/emu/emunet.c (get_card_packet): Allocate the
  188. reserved bytes.
  189. * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Likewise.
  190. * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Likewise.
  191. Handle malloc error correctly.
  192. 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
  193. * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
  194. blocks.
  195. 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
  196. * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix double
  197. increment.
  198. 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
  199. * grub-core/net/dns.c (grub_cmd_nslookup): Use configured DNS servers if
  200. none is explicitly specified.
  201. 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
  202. * grub-core/net/dns.c (grub_net_add_dns_server): Don't erase old servers
  203. while reallocating.
  204. 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
  205. Respect netmask from bootp/dhcp.
  206. * grub-core/net/bootp.c (parse_dhcp_vendor): Parse mask.
  207. (grub_net_configure_by_dhcp_ack): Use mask and grub_net_add_ipv4_local.
  208. * grub-core/net/net.c (grub_net_add_addr): Split creating local route
  209. into ...
  210. (grub_net_add_ipv4_local): ... this.
  211. (grub_cmd_addaddr): Use grub_net_add_ipv4_local.
  212. * include/grub/net.h (GRUB_NET_BOOTP_NETMASK): New enum value.
  213. (grub_net_add_ipv4_local): New proto.
  214. 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
  215. * grub-core/loader/i386/linux.c (grub_linux_boot): Setup video before
  216. determining EFI memory map size.
  217. 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
  218. * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Escape commas.
  219. 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
  220. * grub-core/kern/main.c (grub_set_prefix_and_root): Skip escaped commas
  221. when looking for partition separator.
  222. 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
  223. * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
  224. Escape commas.
  225. 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
  226. Restructure FAT driver to avoid hook in label reading as it hits a
  227. GCC bug.
  228. * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_EOF.
  229. * grub-core/fs/fat.c (grub_fat_iterate_context): New struct.
  230. (grub_fat_iterate_dir): Split into ...
  231. (grub_fat_iterate_init): ... this, ...
  232. (grub_fat_iterate_fini): ... this, ...
  233. (grub_fat_iterate_dir_next): ... and this. All users updated.
  234. 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
  235. * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
  236. GRUB_IEEE1275_FLAG_BROKEN_REPEAT.
  237. * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
  238. GRUB_IEEE1275_FLAG_BROKEN_REPEAT on PowerBook3,3.
  239. * include/grub/terminfo.h (grub_terminfo_input_state) [__powerpc__]:
  240. New fields last_key and last_key_time.
  241. * grub-core/term/terminfo.c (grub_terminfo_getkey): Transform
  242. extended key-esc into extended key-extended key.
  243. 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
  244. Avoid unnecessary memcpy of whole video buffer.
  245. * grub-core/video/fb/video_fb.c (dirty): New struct.
  246. (framebuffer): Add members current_dirty and previous_dirty.
  247. (dirty): New function.
  248. (grub_video_fb_fill_rect): Update dirty.
  249. (common_blitter): Likewise.
  250. (grub_video_fb_scroll): Likewise.
  251. (doublebuf_blit_update_screen): Copy only dirty part.
  252. (doublebuf_pageflipping_update_screen): Likewise.
  253. (grub_video_fb_doublebuf_blit_init): Init dirty.
  254. (doublebuf_pageflipping_init): Likewise.
  255. (grub_video_fb_setup): Likewise.
  256. 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
  257. * grub-core/net/drivers/ieee1275/ofnet.c (search_net_devices): Decrease
  258. poll rate.
  259. 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
  260. Fix wildcard regexp dot and other special characters handling.
  261. Reported by: Robert Mabee.
  262. * grub-core/commands/wildcard.c (isregexop): Add "|+{}[]?".
  263. (make_regex): Escape "|+{}[]". Transform '?' to '.?'.
  264. (split_path): Trigger expansion on '?'.
  265. (unescape): New function.
  266. (wildcard_expand): Unescape parts copied without globbing.
  267. * grub-core/script/execute.c (wildcard_escape): Escape '?'.
  268. (grub_script_arglist_to_argv): Don't unescape expansions.
  269. 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
  270. * include/grub/net.h (grub_net_card): New member txbufsize.
  271. * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum values
  272. GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
  273. GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN.
  274. * grub-core/net/drivers/efi/efinet.c (grub_efinet_findcards): Use
  275. txbufsize.
  276. * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Use
  277. compatible property to check for macs. Set
  278. GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
  279. GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN on macs.
  280. * grub-core/net/drivers/ieee1275/ofnet.c (card_open): Don't add suffix
  281. if GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX is set.
  282. (send_card_buffer): Use txbuf.
  283. (grub_ofnet_findcards): Allocate txbuf. Simplify code flow and move
  284. nested function out of the parent while on it.
  285. 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
  286. * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Fix packet
  287. presence check.
  288. (grub_ieee1275_net_config_real): Fix config pointer.
  289. 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
  290. * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Extend
  291. filename parsing to non-block devices.
  292. 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
  293. * grub-core/kern/device.c (grub_device_open): Remove dead code.
  294. 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
  295. * include/grub/elf.h: Rename R_PPC to GRUB_R_PPC to avoid collisions.
  296. All users updated.
  297. 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
  298. * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Generate
  299. UUID search command even if hints probing failed.
  300. 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
  301. * po/POTFILES.in: Regenerated.
  302. 2012-06-17 Vladimir Serbinenko <phcoder@gmail.com>
  303. Speed-up video on fuloong.
  304. * grub-core/bus/bonito.c (grub_pci_device_map_range_cached):
  305. New function.
  306. (grub_pci_device_unmap_range): Handle non-cached address.
  307. * grub-core/video/sis315pro.c (framebuffer): Remove render_target and
  308. add direct_ptr.
  309. (grub_video_sis315pro_video_fini): Unmap direct_ptr.
  310. (grub_video_sis315pro_setup): Use cache address and grub_video_fb_setup.
  311. (grub_video_sis315pro_set_active_render_target): Removed.
  312. (grub_video_sis315pro_get_info_and_fini): Use uncached address.
  313. (grub_video_adapter): Use grub_video_fb_set_active_render_target.
  314. (grub_video_sis315pro_swap_buffers): Call grub_video_fb_swap_buffers and
  315. sync caches.
  316. * include/grub/mips/loongson/pci.h (grub_pci_device_map_range_cached):
  317. New proto.
  318. 2012-06-16 Vladimir Serbinenko <phcoder@gmail.com>
  319. * docs/grub.texi (Multi-boot manual config): New section.
  320. 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
  321. Avoid slow read-back from VRAM.
  322. * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
  323. Move from here ...
  324. * grub-core/video/fb/video_fb.c
  325. (grub_video_fb_doublebuf_update_screen_t): ... here. Remove arguments.
  326. * grub-core/video/fb/video_fb.c (framebuf_t): New type.
  327. (front_target): Remove front_target. Add pages.
  328. (grub_video_fb_init): Skip setting front_pages.
  329. (grub_video_fb_fini): Likewise.
  330. (doublebuf_blit_update_screen): Use pages.
  331. (grub_video_fb_doublebuf_blit_init): Likewise.
  332. (doublebuf_pageflipping_init): Allocate offscreen buffer.
  333. (doublebuf_pageflipping_update_screen): Use offscreen buffer.
  334. (grub_video_fb_setup): Prefer doublebuffing.
  335. 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
  336. * grub-core/normal/main.c (GRUB_MOD_INIT): Ignore errors when loading
  337. gzio.
  338. 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
  339. Add loongson tests.
  340. * tests/util/grub-shell.in: Handle loongson.
  341. * tests/partmap_test.in: Add loongson to the list of platform using ATA
  342. drivers.
  343. * grub-core/tests/boot/linux.init-mips.S (SHUTDOWN_MAGIC3) [REBOOT]:
  344. Reboot instead of shutdown if REBOOT is defined.
  345. 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
  346. * grub-core/lib/mips/loongson/reboot.c (grub_reboot): Use 32-bit
  347. sized ports since unlike on real hardware qemu supports only 32-bit
  348. regs.
  349. 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
  350. * Makefile.util.def (grub-mkrescue): Enable on loongson.
  351. * util/grub-mkrescue.in: Handle loongson.
  352. 2012-06-14 Vladimir Serbinenko <phcoder@gmail.com>
  353. * util/getroot.c (convert_system_partition_to_system_disk) [__APPLE__]:
  354. Set is_part appropriately.
  355. (grub_util_biosdisk_get_grub_dev): Use is_part rather than comparing
  356. names. Canonicalize partition without full disk.
  357. 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
  358. Revert usb-quiesce since it's wrong.
  359. * grub-core/disk/ieee1275/ofdisk.c (quiesce): Removed.
  360. (grub_ofdisk_init): Don't do quiesce.
  361. 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
  362. * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Apply
  363. PowerMac workaround to Xserves as well.
  364. Information supplied by: Benjamin Herrenschmidt.
  365. 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
  366. Don't assume that beginning address is also the entry point on ppc.
  367. * grub-core/loader/powerpc/ieee1275/linux.c (linux_entry): New variable.
  368. (grub_linux_boot): Use linux_entry.
  369. (grub_linux_load32): Fill linux_entry. Fix setting linux_addr.
  370. (grub_linux_load64): Likewise.
  371. 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
  372. * util/grub-install.in: Fix cross-disk check on non-PreP machines.
  373. 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
  374. * grub-core/term/ieee1275/console.c (grub_console_fini): Don't
  375. needlessly lose the console.
  376. 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
  377. * grub-core/normal/dyncmd.c (read_command_list): Don't access freed
  378. space.
  379. 2012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
  380. Remove non-functional EFI grub_get_rtc. Put a better fatal message
  381. than current grub_get_rtc() not implemented when booted with
  382. coreboot without TSC.
  383. * grub-core/Makefile.am: Exclude efi/time.h from kernel headers.
  384. Add machine/time.h to kernel headers on loongson.
  385. * grub-core/Makefile.core.def (kernel): Remove
  386. kern/generic/rtc_get_time_ms.c on qemu-multiboot-coreboot.
  387. * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms): Removed.
  388. (grub_get_rtc): Likewise.
  389. * grub-core/kern/generic/rtc_get_time_ms.c: Include grub/machine/time.h.
  390. * grub-core/kern/i386/coreboot/init.c (grub_get_rtc): Removed.
  391. * grub-core/kern/i386/pc/init.c: Include grub/machine/init.h.
  392. * grub-core/kern/i386/tsc.c (grub_tsc_init)
  393. [!GRUB_MACHINE_PCBIOS && !GRUB_MACHINE_IEEE1275]: Call grub_fatal
  394. rather than installing known non-working time source.
  395. * grub-core/kern/ieee1275/init.c (grub_get_rtc): Removed.
  396. * grub-core/kern/mips/loongson/init.c: Include grub/machine/time.h.
  397. * include/grub/time.h: Don't include machine/time.h.
  398. * include/grub/efi/time.h: Removed.
  399. * include/grub/i386/efi/time.h: Likewise.
  400. * include/grub/i386/ieee1275/time.h: Likewise.
  401. * include/grub/powerpc/ieee1275/time.h: Likewise.
  402. * include/grub/sparc64/ieee1275/time.h: Likewise.
  403. * include/grub/x86_64/efi/time.h: Likewise.
  404. 2012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
  405. Remove dot on i and j when combining with above diacritics.
  406. * include/grub/unicode.h (GRUB_UNICODE_DOTLESS_LOWERCASE_I): New enum
  407. value.
  408. (GRUB_UNICODE_DOTLESS_LOWERCASE_J): Likewise.
  409. * grub-core/font/font.c (grub_font_construct_dry_run): Replace i and j
  410. with dotless variants when any combining above is present.
  411. 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
  412. * tests/grub_script_expansion.in: Explicitly tell grep that we handle
  413. text and not binary.
  414. 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
  415. Stop polling as soon as we have the packet we were waiting for.
  416. * include/grub/net.h (grub_net_poll_cards): New argument stop_condition.
  417. All users updated.
  418. * grub-core/net/arp.c (have_pending): New var.
  419. (pending_req): Likewise.
  420. (grub_net_arp_send_request): Fill pending_req and use have_pending as
  421. stop indicator.
  422. (grub_net_arp_receive): Set have_pending.
  423. * grub-core/net/dns.c (recv_data): New field stop.
  424. (recv_hook): Set stop.
  425. (grub_net_dns_lookup): Init stop and use as stop condition.
  426. * grub-core/net/http.c (http_establish): Use headers_recv as stop
  427. condition.
  428. * grub-core/net/net.c (grub_net_poll_cards): New argument
  429. stop_condition. Stop when it goes true.
  430. * grub-core/net/tcp.c (grub_net_tcp_open): Use `established' as stop
  431. indicator.
  432. * grub-core/net/tftp.c (tftp_open): Use `have_oack' as stop indicator.
  433. 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
  434. Keep TX and RX buffers on EFI rather than always allocate new ones.
  435. * include/grub/net.h (grub_net_card_driver): Allow driver to modify
  436. card. All users updated.
  437. (grub_net_card): New members txbuf, rcvbuf, rcvbufsize and txbusy.
  438. * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Reuse buffer.
  439. (get_card_packet): Likewise.
  440. (grub_efinet_findcards): Init new fields.
  441. 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
  442. * grub-core/term/ieee1275/serial.c (do_real_config): Fix cast to fix
  443. compilation error on sparc64.
  444. 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
  445. Use ITC on IA64 rather than broken routine based on daytime.
  446. * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms) [__ia64__]: Remove on
  447. ia64.
  448. (grub_get_rtc) [__ia64__]: Likewise.
  449. * grub-core/kern/ia64/efi/init.c (divisor): New variable.
  450. (get_itc): New function.
  451. (grub_rtc_get_time_ms): Likewise.
  452. (grub_machine_init): Calibrate ITC.
  453. * include/grub/efi/time.h (grub_get_rtc), (GRUB_TICKS_PER_SECOND):
  454. Keep only on non-ia64. Don't export since it's broken and used only
  455. if TSC is unavailable.
  456. 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
  457. * grub-core/disk/efi/efidisk.c (find_parent_device): Return the parent
  458. even if it's used.
  459. (name_devices): Replace #if 0 with #ifdef DEBUG_NAMES.
  460. Skip if parent is unused.
  461. 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
  462. * tests/partmap_test.in: Skip on ppc due to serious firmware bug.
  463. 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
  464. Fix wildcard escaping.
  465. * grub-core/commands/wildcard.c (wildcard_escape): Moved from here ...
  466. * grub-core/script/execute.c (wildcard_escape): .. to here.
  467. Don't escape dot.
  468. * grub-core/commands/wildcard.c (wildcard_unescape): Moved from here ...
  469. * grub-core/script/execute.c (wildcard_unescape): .. to here.
  470. Don't escape dot.
  471. * grub-core/script/execute.c (gettext_append): Always escape.
  472. (grub_script_arglist_to_argv): Always handle escaping/unescaping.
  473. * grub-core/script/yylex.l: Don't cut away the escaping.
  474. * tests/grub_script_echo1.in: Add tests with wildcard.
  475. 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
  476. * grub-core/bus/usb/serial/ftdi.c (real_config): Handle 1.5 stop bits.
  477. (ftdi_hw_configure): Likewise.
  478. * grub-core/bus/usb/serial/pl2303.c (GRUB_PL2303_STOP_BITS_1_5): New
  479. define.
  480. (real_config): Handle 1.5 stop bits.
  481. (pl2303_hw_configure): Likewise.
  482. 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
  483. * Makefile.am: Add ppc linux bootcheck.
  484. * grub-core/tests/boot/linux-ppc.cfg: New file.
  485. * grub-core/tests/boot/linux.init-ppc.S: Likewise.
  486. 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
  487. * tests/grub_script_expansion.in: Skip network protocols.
  488. 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
  489. * tests/util/grub-shell.in: Use escc-ch-a port on ppc.
  490. 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
  491. * util/powerpc/ieee1275/grub-mkrescue.in: Handle (and ignore)
  492. --rom-directory.
  493. Add -graft-points.
  494. 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
  495. ESCC serial driver for conducting sautomated tests in qemu.
  496. Not tested on real hardware.
  497. * include/grub/serial.h (grub_serial_port): New field escc_desc.
  498. * grub-core/term/ieee1275/escc.c: New file.
  499. * grub-core/Makefile.core.def (escc): New module.
  500. 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
  501. * grub-core/term/ieee1275/serial.c (do_real_config): Set handle to
  502. invalid on error.
  503. (serial_hw_fetch): Don't read invalid handle.
  504. (serial_hw_put): Don't write into invalid handle.
  505. 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
  506. Add a 1.5 stop bits value.
  507. * grub-core/term/serial.c (grub_cmd_serial): Handle 1.5.
  508. * include/grub/serial.h (grub_serial_stop_bits_t): Add
  509. GRUB_SERIAL_STOP_BITS_1_5.
  510. 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
  511. * grub-core/commands/wildcard.c (wildcard_expand): Set default return
  512. value rather than let it uninited.
  513. 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
  514. * grub-core/commands/wildcard.c (+check_file): New function.
  515. (wildcard_expand): Don't expand to non-existing files, expand with
  516. suffix and not attempt to expand if not needed.
  517. 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
  518. * grub-core/disk/efi/efidisk.c (name_devices): Don't make disks
  519. out of partitions containing other partitions.
  520. 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
  521. Pass PCIINFO on BIOS to OpenBSD since otherwise it fails to boot
  522. on some qemu versions with GRUB.
  523. * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_PCIBIOS): New
  524. define.
  525. (grub_openbsd_bootarg_pcibios): New struct.
  526. * grub-core/loader/i386/bsd.c (grub_openbsd_boot) [GRUB_MACHINE_PCBIOS]:
  527. Add PCIINFO.
  528. 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
  529. * tests/util/grub-shell.in: Trim firmware output on EFI.
  530. 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
  531. * grub-core/Makefile.core.def (vga_text): Disable on muliboot
  532. and coreboot since it's already in kernel.
  533. 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
  534. * util/getroot.c (grub_util_get_dm_node_linear_info): Moved from here...
  535. * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
  536. to here. New return value start. All users updated.
  537. Recursively scan linear mappings.
  538. * include/grub/emu/hostdisk.h (grub_util_get_dm_node_linear_info): New
  539. proto.
  540. * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
  541. Use grub_util_get_dm_node_linear_info.
  542. * util/getroot.c (convert_system_partition_to_system_disk): Use
  543. grub_util_info rather than grub_dprintf.
  544. (grub_util_biosdisk_get_grub_dev): Add a new grub_util_info.
  545. 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
  546. Move handling of GRUB_QEMU_OPTS to grub-shell so that make check works.
  547. * Makefile.am: Remove GRUB_QEMU_OPTS handling.
  548. * tests/util/grub-shell.in: Add GRUB_QEMU_OPTS handling.
  549. 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
  550. * include/grub/types.h (grub_set_unaligned64): New function.
  551. * util/grub-setup.c (write_rootdev): Use unaligned access functions.
  552. (setup): Likewise.
  553. 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
  554. * grub-core/disk/ieee1275/ofdisk.c (quiesce): New function.
  555. (grub_ofdisk_fini): Quiesce USB devices.
  556. 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
  557. * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_boot): Sync
  558. caches.
  559. 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
  560. * util/grub-fstest.c (cmd_crc): Use grub_get_unaligned32 for safety.
  561. 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
  562. * grub-core/disk/pata.c (grub_pata_pio_read)
  563. [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't byteswap even on mipseb.
  564. (grub_pata_pio_write) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
  565. 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
  566. Extend automated tests to qemu-mips.
  567. * Makefile.am: reorganise tests and enable qemu-mips.
  568. * configure.ac (COND_mipseb), (COND_mipsel): New conditions.
  569. * grub-core/tests/boot/linux.init-mips.S: New file.
  570. * tests/partmap_test.in: Handle ata0 disks.
  571. * tests/util/grub-shell.in: Handle qemu-mips. Make defaults work on
  572. non-pc i386.
  573. 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
  574. * Makefile.util.def (grub-mkrescue) Anable on mips_qemu_mips and
  575. ia64.
  576. * util/grub-mkrescue.in: Handle qemu-mips and ia64. Add missing
  577. quotes while on it.
  578. 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
  579. * grub-core/kern/mips/qemu_mips/init.c (grub_exit): Implement.
  580. (grub_halt): Likewise.
  581. * grub-core/lib/mips/qemu_mips/reboot.c (grub_reboot): Likewise.
  582. 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
  583. * grub-core/term/serial.c (grub_serial_register)
  584. [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't autostart console in order to bring
  585. the behaviour in line with x86 platforms.
  586. 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
  587. * grub-core/commands/hdparm.c (le16_to_char): Always byte-swap strings.
  588. (grub_ata_strncpy): Likewise.
  589. (grub_ata_identify): Add missing byteswaps.
  590. 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
  591. * grub-core/term/i386/pc/vga_text.c (screen_write_char): Add missing
  592. byte-swap.
  593. (screen_read_char): Likewise.
  594. (grub_vga_text_cls): Likewise.
  595. 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
  596. * grub-core/loader/efi/chainloader.c (copy_file_path): Handle non-ASCII
  597. filenames.
  598. (make_file_path): Likewise.
  599. 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
  600. * grub-core/disk/ieee1275/ofdisk.c (scan): Support vscsi on IBM
  601. machines.
  602. Tested by: Paulo Flabiano Smorigo.
  603. Crucial information about API supplied by: Coleen <Last name unknown>.
  604. Reviewed by: Coleen <Last name unknown>.
  605. 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
  606. * util/grub-mkimage.c: Disable -Wcast-align.
  607. 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
  608. * grub-core/genmod.sh.in: Enable objconv errors 2030, 2050 and 2031
  609. as they are fatal.
  610. 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
  611. * grub-core/Makefile.am (rs_decoder.S): Add missing -ffreestanding.
  612. 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
  613. * util/grub-probe.c (escape_of_path): Fix double free.
  614. 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
  615. * grub-core/commands/videoinfo.c (hook): Show pitch.
  616. 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
  617. * util/grub.d/20_linux_xen.in: Skip xen-syms.
  618. 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
  619. * util/grub-probe.c (escape_of_path): Don't add ieee1275/.
  620. (probe): Add ieee1275 to OFW devices.
  621. 2012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
  622. * util/ieee1275/ofpath.c (of_path_of_scsi): Fix wrong format specifier.
  623. 2012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
  624. Handle IBM OFW path.
  625. * util/ieee1275/ofpath.c (find_obppath): Use devspec if obppath isn't
  626. available.
  627. (of_path_of_scsi): Handle vdevice.
  628. 2012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
  629. * grub-core/mmap/i386/pc/mmap.c (malloc_hook):
  630. Allocate in multiples of 16 to avoid adding a few bytes free region the
  631. windows bugs upon.
  632. 2012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
  633. * grub-core/commands/i386/pc/drivemap.c (install_int13_handler):
  634. Allocate in multiples of 16 to avoid adding a few bytes free region the
  635. windows bugs upon.
  636. * grub-core/mmap/i386/pc/mmap.c (malloc_hook): Likewise.
  637. 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
  638. * grub-core/video/efi_gop.c (grub_video_gop_setup): Reject invalid
  639. resolutions.
  640. * grub-core/video/i386/pc/vbe.c (grub_vbe_get_preferred_mode): Likewise.
  641. * grub-core/video/video.c (grub_video_edid_preferred_mode): Likewise.
  642. 2012-06-02 Isao Shimizu <isaoshimizu@gmail.com>
  643. * util/ieee1275/ofpath.c (check_sas): Fix sas path.
  644. 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
  645. * grub-core/normal/menu_entry.c (print_line): Fix off-by-one error which
  646. resulted in \\ at the end of the line.
  647. 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
  648. * grub-core/kern/parser.c (grub_parser_state_transitions): Handle \t.
  649. (grub_parser_cmdline_state): Likewise.
  650. (grub_parser_split_cmdline): Likewise.
  651. 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
  652. * util/getroot.c (grub_guess_root_devices): Don't canonicalise
  653. /dev/root and /dev/dm-*.
  654. 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
  655. * grub-core/normal/menu_entry.c (update_screen): Fix loop condition to
  656. fix partially stale display.
  657. 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
  658. * grub-core/normal/menu_entry.c (backward_char): Use right line for
  659. substraction.
  660. 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
  661. * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write) [__linux__]:
  662. Fix MBR remapping workaround.
  663. (grub_util_biosdisk_read) [__linux__]: Likewise.
  664. 2012-06-01 Vladimir Serbinenko <phcoder@gmail.com>
  665. * util/grub-install.in: Check for ieee1275 and not ieee1276.
  666. 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
  667. * configure.ac: Bump to beta6.
  668. 2012-05-31 Christer Weinigel <christer@weinigel.se>
  669. * grub-core/normal/main.c (grub_file_getline): Fix off-by-one error.
  670. 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
  671. * grub-core/loader/i386/linux.c (grub_linux_boot): Use right version.
  672. (grub_cmd_linux): Likewise.
  673. 2012-05-31 Christer Weinigel <christer@weinigel.se>
  674. Fix EHCI low-speed.
  675. * grub-core/bus/usb/ehci.c (GRUB_EHCI_MULT_ONE): Fix the value.
  676. (GRUB_EHCI_MULT_TWO): Likewise.
  677. (GRUB_EHCI_MULT_THREE): Likewise.
  678. (GRUB_EHCI_CMASK_MASK): New enum value.
  679. (GRUB_EHCI_SMASK_MASK): Likewise.
  680. (GRUB_EHCI_CMASK_OFF): Likewise.
  681. (GRUB_EHCI_SMASK_OFF): Likewise.
  682. (grub_ehci_pci_iter): Enable periodic schedule.
  683. (grub_ehci_parse_notrun): Likewise.
  684. (grub_ehci_restore_hw): Likewise.
  685. (grub_ehci_setup_qh): Set flags for low speed transfers.
  686. (grub_ehci_find_qh): Use periodic list for low speed.
  687. (grub_ehci_setup_transfer): Check periodic queue as well.
  688. (grub_ehci_check_transfer): Likewise.
  689. (grub_ehci_cancel_transfer): Cancel periodic transfer.
  690. 2012-05-31 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
  691. * util/grub-install.in: Write core.elf in PReP even if the --no-nvram
  692. parameter is used.
  693. 2012-05-31 Peter Jones <pjones@redhat.com>
  694. * include/grub/i386/linux.h (linux_kernel_params): Add v206.
  695. * grub-core/loader/i386/linux.c (grub_linux_boot): Use v206.
  696. (grub_cmd_linux) [__x86_64__]: Validate grub_efi_system_table.
  697. 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
  698. * grub-core/loader/i386/linux.c (grub_linux_boot): Fix overflow and
  699. uninited variable. Allocate at least setup_sects.
  700. 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
  701. Fix handling of EFI with big memory maps.
  702. * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_OFFSET): Removed.
  703. (real_mode_mem): Likewise.
  704. (real_mode_target): Likewise.
  705. (real_mode_pages): Likewise.
  706. (prot_mode_pages): Likewise.
  707. (linux_params): New var.
  708. (linux_cmdline): Likewise.
  709. (free_pages): Don't set real mode variables.
  710. (allocate_pages): Don't allocate real mode memory.
  711. (grub_e820_add_region): Remove the limit.
  712. (grub_linux_boot): Allocate and copy real mode memory.
  713. (grub_linux_unload): Free linux_cmdline.
  714. (grub_cmd_linux): Use temporary storage for parameters.
  715. (grub_cmd_initrd): Likewise.
  716. * include/grub/i386/linux.h (GRUB_E820_MAX_ENTRY): Removed.
  717. (linux_kernel_params): Make it 1K big.
  718. 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
  719. * Makefile.util.def: Remove -Wno-format.
  720. * grub-core/Makefile.core.def: Likewise.
  721. 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
  722. * tests/cmp_unit_test.c: Add missing failure message.
  723. * tests/example_unit_test.c: Likewise.
  724. * tests/printf_unit_test.c: Likewise.
  725. 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
  726. * grub-core/commands/gptsync.c (grub_cmd_gptsync): Propagate the
  727. relaxation of protective MBR requirements.
  728. 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
  729. * configure.ac: Add condition for COND_HOST_XNU.
  730. * Makefile.util.def (10_xnu): New script.
  731. * util/grub.d/10_xnu.in: New file, extracted from 30_os_prober.in.
  732. 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
  733. * grub-core/kern/i386/pc/startup.S [__APPLE__]: Add a workaround for
  734. objconv bug.
  735. 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
  736. * grub-core/gdb/i386/machdep.S: Make usable with Apple assembler.
  737. Binary on other platforms stays identical.
  738. 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
  739. * configure.ac: Remove APPLE_CC and add -Wl,-allow_stack_execute on
  740. Apple.
  741. 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
  742. * gentpl.py: Ignore error 2022 in objconv since it's irrelevant for us.
  743. 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
  744. * grub-core/lib/posix_wrap/sys/types.h [__APPLE__]: Include stddef
  745. rather than defining size_t ourselves to avoid conflict.
  746. 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
  747. * grub-core/fs/hfs.c (grub_hfs_dir): Use memset instead of
  748. initialisation to avoid __bzero reference.
  749. 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
  750. * grub-core/boot/i386/pc/startup_raw.S [__APPLE__]: Add Apple assembly
  751. version.
  752. * grub-core/commands/i386/pc/drivemap_int13h.S [__APPLE__]: Likewise.
  753. * grub-core/kern/i386/pc/startup.S [__APPLE__]: Likewise.
  754. * grub-core/lib/i386/relocator16.S [__APPLE__]: Likewise.
  755. * grub-core/lib/i386/relocator_common.S [__APPLE__]: Likewise.
  756. * grub-core/mmap/i386/pc/mmap_helper.S [__APPLE__]: Likewise.
  757. 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
  758. * grub-core/efiemu/runtime/efiemu.c: Replace APPLE_CC with __APPLE__.
  759. * grub-core/kern/misc.c: Likewise.
  760. * grub-core/loader/i386/xnu.c: Likewise.
  761. * include/grub/i386/tsc.h: Likewise.
  762. * include/grub/symbol.h: Likewise.
  763. 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
  764. * include/grub/list.h (grub_bad_type_cast_real): Remove return.
  765. * include/grub/misc.h (ATTRIBUTE_ERROR): Make into noreturn attribute
  766. on older compiler.
  767. 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
  768. * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__APPLE__]:
  769. Implement Apple flavour.
  770. (convert_system_partition_to_system_disk) [__APPLE__]: Likewise.
  771. 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
  772. * include/grub/misc.h (memcmp) [__APPLE__]: Mark as regparm 0.
  773. (memmove) [__APPLE__]: Likewise.
  774. (memcpy) [__APPLE__]: Likewise.
  775. (memset) [__APPLE__]: Likewise.
  776. * grub-core/kern/misc.c (memcmp) [__APPLE__]: Likewise.
  777. (memmove) [__APPLE__]: Likewise.
  778. (memcpy) [__APPLE__]: Likewise.
  779. (memset) [__APPLE__]: Likewise.
  780. 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
  781. * grub-core/genmod.sh.in: Fix a bug in Apple part which caused
  782. dependency discard.
  783. 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
  784. * grub-core/normal/main.c (read_config_file): Provide config_file and
  785. config_directory.
  786. * util/grub.d/41_custom.in: Use config_directoy when available.
  787. 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
  788. * grub-core/fs/bfs.c (iterate_in_b_tree): Add missing NESTED_FUNC_ATTR.
  789. (grub_bfs_dir): Likewise.
  790. 2012-05-27 Peter Jones <pjones@redhat.com>
  791. The old code gives arguments to a printf function which can't work
  792. correctly, and the compiler complains.
  793. * grub-core/tests/example_functional_test.c (example_test): Add
  794. missing text.
  795. * grub-core/tests/lib/test.c (add_failure): Rewrite.
  796. * include/grub/test.h (grub_test_assert_helper): New declaration.
  797. (grub_test_assert): Use grub_test_assert_helper.
  798. 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
  799. * grub-core/Makefile.core.def (example_functional_test): Rename to ...
  800. (exfctest): ... this to avoid overlong filenames.
  801. All users updated.
  802. 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
  803. Handle "." and ".." on squashfs.
  804. * grub-core/fs/squash4.c (grub_fshelp_node): New field stsize.
  805. Make inode numbers into stack.
  806. (grub_squash_read_symlink): Use stack.
  807. (grub_squash_iterate_dir): Use stack. Create "." and ".." nodes.
  808. (make_root_node): Fill stack.
  809. (grub_squash_open): Use stack.
  810. 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
  811. * grub-core/kern/emu/hostdisk.c (open_device): Set dest->dev to 0 after
  812. freeing.
  813. 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
  814. * util/grub-mkconfig_lib.in (print_option_help): Properly redirect
  815. stderr on test calls.
  816. 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
  817. * grub-core/fs/jfs.c (grub_jfs_find_file): Handle "." and "..".
  818. 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
  819. * grub-core/fs/ntfs.c (list_file): Set mtime to correct value.
  820. 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
  821. * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't skip "." and
  822. "..".
  823. 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
  824. * grub-core/fs/hfsplus.c (grub_hfsplus_catfile): New field parentid.
  825. (grub_hfsplus_iterate_dir): Add "." and "..".
  826. 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
  827. * grub-core/fs/cpio.c (canonicalize): Handle "..".
  828. (grub_cpio_find_file) [MODE_USTAR]: Handle hardlinks.
  829. 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
  830. * grub-core/fs/btrfs.c (GRUB_BTRFS_ITEM_TYPE_INODE_REF): New enum value.
  831. (find_path): Handle "." and "..".
  832. 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
  833. * grub-core/fs/affs.c (grub_affs_file): New field hardlink.
  834. (GRUB_AFFS_FILETYPE_HARDLINK): New enum value.
  835. (grub_affs_iterate_dir): Handle hardlinks.
  836. 2012-05-26 Matthew Garrett <mjg@redhat.com>
  837. * grub-core/term/efi/console.c (grub_efi_console_init): Set text mode.
  838. (grub_efi_console_fini): Likewise.
  839. * grub-core/video/efi_gop.c (framebuffer): New field offscreen.
  840. (grub_video_gop_fill_mode_info): Rename to ...
  841. (grub_video_gop_fill_real_mode_info): ... this.
  842. (grub_video_gop_fill_mode_info): New function.
  843. (grub_video_gop_setup): Setup double framebuffer.
  844. (grub_video_gop_get_info_and_fini): Use original framebuffer.
  845. Free offscreen.
  846. (grub_video_gop_swap_buffers): Copy framebuffer.
  847. (grub_video_gop_fini): Free offscreen buffer.
  848. * include/grub/efi/graphics_output.h (grub_efi_gop_blt_operation_t):
  849. New enum.
  850. (grub_efi_gop_blt_pixel): New struct.
  851. 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
  852. * gentpl.py: Remove error disabling for objconv.
  853. 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
  854. * configure.ac: Remove -Wunitialized as it's not available on older
  855. compilers.
  856. 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
  857. Fix extent overflow comparator.
  858. * grub-core/fs/hfsplus.c (grub_hfsplus_extkey_internal): Add type.
  859. (grub_hfsplus_read_block): Set type.
  860. (grub_hfsplus_cmp_extkey): Compare type.
  861. 2012-05-25 Vladimir Serbinenko <phcoder@gmail.com>
  862. * util/grub-fstest.c (cmd_cmp): Fix stat'ing of wrong file.
  863. 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
  864. * grub-core/fs/hfsplus.c (grub_hfsplus_label): Use found ptr rather
  865. than 0.
  866. 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
  867. * Makefile.am (starfield_DATA): Add dejavu_bold_14.pf2.
  868. (dejavu_bold_14.pf2): New target.
  869. 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
  870. * configure.ac: Fix djvu font detection.
  871. 2012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
  872. * grub-core/normal/misc.c (grub_normal_print_device_info): Dsiplay
  873. ext* instead of ext2.
  874. 2012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
  875. * grub-core/normal/term.c (read_terminal_list): Terminate the terminal
  876. name with \0.
  877. 2012-05-22 Jordan Uggla <jordan.uggla@gmail.com>
  878. * docs/grub-dev.texi: Remove dot from .png.
  879. 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
  880. * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Accept
  881. protective entry in any slot.
  882. * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Reject
  883. if protective entry is found in any slot.
  884. Protective entry in non-first slot make no sense but is a widespread
  885. brain damage.
  886. 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
  887. * grub-core/fs/squash4.c (grub_squash_read_data): Add missing byte-swap.
  888. 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
  889. * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Fix size byteswap
  890. with old reiserfs.
  891. (grub_reiserfs_open): Don't free root.
  892. 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
  893. * grub-core/fs/fshelp.c (grub_fshelp_find_file): Set currnode to 0
  894. after freeing for safety.
  895. 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
  896. * grub-core/commands/sleep.c (do_print): Add missing grub_refresh.
  897. Reported by: Jordan Uggla.
  898. 2012-05-21 Jordan Uggla <jordan.uggla@gmail.com>
  899. * docs/grub.texi Fix documentation of GRUB_HIDDEN_TIMOUNT to match the
  900. actual implementation. Specifically, clarify that the grub menu will
  901. be displayed for GRUB_TIMOUT seconds after the hidden timeout has
  902. passed.
  903. 2012-05-21 Benjamin Herrenschmidt <benh@kernel.crashing.org>
  904. * grub-core/kern/powerpc/dl.c (trampoline_template): Use r12 instead
  905. of r0.
  906. 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
  907. Remove unjustified hard dependency of normal.mod on gfxterm.
  908. * include/grub/term.h (grub_term_output): New member fullscreen.
  909. * include/grub/gfxterm.h (grub_gfxterm_fullscreen): Removed.
  910. * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Make static.
  911. (grub_gfxterm): Set .fullscreen.
  912. * grub-core/normal/menu.c (menu_init): Use fullscreen.
  913. * grub-core/gfxmenu/gfxmenu.c (GRUB_MOD_INIT): Likewise.
  914. 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
  915. * docs/grub.texi (Internationalisation/Filesystems): Add precisions
  916. mentioning possible problems with non-ASCII (non-compliant) ISOs.
  917. Mention case-insensitive AFFS, SFS and JFS.
  918. 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
  919. * grub-core/fs/affs.c (grub_affs_mtime): Add missing grub_dl_ref.
  920. 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
  921. * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
  922. a bad FS.
  923. 2012-05-18 Vladimir Serbinenko <phcoder@gmail.com>
  924. * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Mark plain
  925. ISO9660 names as case-insensitive, lowercase it and remove trailing dot.
  926. 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
  927. * grub-core/fs/jfs.c (grub_jfs_data): New field caseins.
  928. (grub_jfs_mount): Fill caseins.
  929. (grub_jfs_find_file): Respect caseins.
  930. 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
  931. * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't strrchr
  932. through UTF-16.
  933. 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
  934. * grub-core/fs/fat.c (grub_fat_find_dir): Fix error message.
  935. New argument origpath. All users updated.
  936. 2012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
  937. * grub-core/fs/ntfs.c (read_data): Prevent overflow.
  938. (read_attr): Ensure that we read start of possibly compressed block.
  939. 2012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
  940. * include/grub/ntfs.h (grub_ntfs_comp_table_element): New struct.
  941. (grub_ntfs_comp): Use grub_ntfs_comp_table_element for comp_table.
  942. All users updated.
  943. 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
  944. * Makefile.am (starfield_DATA): Replace dejavu.pf2 with dejavu_10.pf2,
  945. dejavu_12.pf2, dejavu_14.pf2 and dejavu_16.pf2.
  946. (dejavu.pf2): Replace with ...
  947. (dejavu_10.pf2), (dejavu_12.pf2), (dejavu_14.pf2), (dejavu_16.pf2):
  948. this.
  949. 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
  950. * util/grub.d/20_linux_xen.in: Add missing line.
  951. 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
  952. * include/grub/charset.h (GRUB_UTF16_UPPER_SURROGATE): Fix mask sizes.
  953. (GRUB_UTF16_LOWER_SURROGATE): Likewise.
  954. (grub_utf16_to_utf8): Likewise.
  955. 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
  956. * grub-core/disk/ieee1275/ofdisk.c (scan): Don't scan device tree if
  957. GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS is set.
  958. * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
  959. GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS on IBM hardware.
  960. * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
  961. GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS.
  962. 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
  963. * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
  964. a bad FS.
  965. 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
  966. * grub-core/fs/udf.c (read_string): Bail out on size=0.
  967. (grub_udf_read_symlink): Handle read_string failure.
  968. 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
  969. * grub-core/kern/emu/hostdisk.c (read_device_map): Improve TRANSLATORS
  970. comment.
  971. 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
  972. Fix handling of UDF symlinks.
  973. * grub-core/fs/udf.c (read_string): New argument outbuf.
  974. All users updated.
  975. (grub_ufs_read_symlink): Rename to ...
  976. (grub_udf_read_symlink): ... this. All users updated.
  977. Handle symlinks with more than one component.
  978. 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
  979. * grub-core/fs/affs.c (grub_affs_read_symlink): Fix handling of long
  980. symlinks. Replace leading colon with a slash.
  981. 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
  982. * grub-core/fs/jfs.c (grub_jfs_find_file): Handle multiple slashes in
  983. filename.
  984. 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
  985. * grub-core/fs/bfs.c (find_in_b_tree) [MODE_AFS]: Fix handling of exact
  986. match in inner node.
  987. 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
  988. * grub-core/fs/bfs.c (mount): Improve filesystem detection reliability.
  989. * grub-core/fs/ext2.c (grub_ext2_mount): Likewise.
  990. * grub-core/fs/hfs.c (grub_hfs_mount): Likewise.
  991. * grub-core/fs/hfsplus.c (grub_hfsplus_mount): Likewise.
  992. * grub-core/fs/jfs.c (grub_jfs_mount): Likewise.
  993. * grub-core/fs/minix.c (grub_minix_mount): Likewise.
  994. * grub-core/fs/ntfs.c (grub_ntfs_mount): Likewise.
  995. * grub-core/fs/romfs.c (grub_romfs_mount): Likewise.
  996. * grub-core/fs/xfs.c (grub_xfs_mount): Likewise.
  997. 2012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
  998. Use grub-probe and not cmp to check that disk is empty.
  999. * util/grub-install.in: Use grub-probe for zero-check.
  1000. * util/grub-probe.c (PRINT_ZERO_CHECK): New enum value.
  1001. (probe): Handle PRINT_ZERO_CHECK.
  1002. (argp_parser): Handle -t zero_check.
  1003. 2012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
  1004. Flush block cache on adding disk to device map.
  1005. * grub-core/kern/emu/hostdisk.c (flush_initial_buffer): New function.
  1006. (grub_hostdisk_os_dev_to_grub_drive): Call flush_initial_buffer on
  1007. adding.
  1008. (read_device_map): Likewise.
  1009. (open_device): Flush on opening.
  1010. 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
  1011. * grub-core/fs/cpio.c (grub_cpio_find_file): Handle prefix.
  1012. (handle_symlink): Fix off-by-one error.
  1013. Canonicalize the target.
  1014. (grub_cpio_dir): Canonicalize the name.
  1015. Fix memory leak.
  1016. Set directory.
  1017. (grub_cpio_open): Canonicalize the name.
  1018. 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
  1019. * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix symlink
  1020. handling.
  1021. 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
  1022. * grub-core/fs/ufs.c (grub_ufs_find_file): Fix handling of double slash.
  1023. * grub-core/fs/minix.c (grub_minix_find_file): Likewise.
  1024. 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
  1025. * util/grub-menulst2cfg.c (main): Check return value of fwrite.
  1026. * util/grub-mklayout.c (write_file): Likewise. New argument fname.
  1027. All users updated.
  1028. 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
  1029. * util/grub.d/20_linux_xen.in: Update initrd list based on 10_linux.in
  1030. counterpart.
  1031. 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
  1032. Fix UFS1 big file support.
  1033. * grub-core/fs/ufs.c (INODE): Removed.
  1034. (INODE_SIZE): Always use 64-bit byte-swap since size field is always
  1035. 64-bit.
  1036. (INODE_MODE): Simplify.
  1037. (grub_ufs_inode): Use uint64_t for size and not int64_t.
  1038. (grub_ufs_lookup_symlink): Don't use INODE.
  1039. 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
  1040. Fix minixfs with non-power-of-two blocks since it's supported by minix.
  1041. * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use block_size.
  1042. (grub_minix_data): Replace log_block_size with block_size.
  1043. (grub_minix_read_file): Use block_size but avoid 64-bit division.
  1044. (grub_minix_mount): Fill block_size.
  1045. 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
  1046. * configure.ac: Bump to beta5.
  1047. 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
  1048. Fix wrapped HFS+ handling.
  1049. * grub-core/fs/fshelp.c (grub_fshelp_read_file): New argument
  1050. blocks_start. All users updated.
  1051. * grub-core/fs/hfsplus.c (grub_hfsplus_read_block): Don't add
  1052. wrapping offset.
  1053. (grub_hfsplus_read_file): Pass embedding offset to fshelp_read_file.
  1054. 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
  1055. Fix long symlinks on reiserfs.
  1056. * grub-core/fs/reiserfs.c (grub_fshelp_node): New field size.
  1057. (grub_reiserfs_read_symlink): Use grub_reiserfs_read_real.
  1058. (grub_reiserfs_iterate_dir): Save size for non-directories.
  1059. (grub_reiserfs_open): Don't reread stat block as we already know the
  1060. size.
  1061. (grub_reiserfs_read): Split into...
  1062. (grub_reiserfs_read_real): ... and ...
  1063. (grub_reiserfs_read): ...this.
  1064. 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
  1065. Fix non-indexed JFS.
  1066. * grub-core/fs/jfs.c (grub_jfs_sblock): New field flags.
  1067. (grub_jfs_data): New field namecomponentlen.
  1068. (grub_jfs_mount): Fill namecomponentlen.
  1069. (grub_jfs_getent): Use namecomponentlen rather than hardcoded 11.
  1070. 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
  1071. * grub-core/script/yylex.l: Ugly fix for "\\\n ".
  1072. * tests/grub_script_echo1.in: Add tests.
  1073. 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
  1074. * util/grub-install.in: Ignore empty devicetree directory.
  1075. 2012-05-08 Bean <bean123ch@gmail.com>
  1076. * grub-core/net/ip.c (reassemble): Make asm_buffer into asm_netbuff.
  1077. All users updated.
  1078. (free_rsm): Free header as well.
  1079. (free_old_fragments): Fix memory leak.
  1080. * grub-core/net/netbuff.c (grub_netbuff_free): Make return void.
  1081. * grub-core/net/tftp.c (tftp_receive): Fix memory leak.
  1082. (destroy_pq): Likewise.
  1083. * include/grub/net/netbuff.h (grub_netbuff_free): Make return void.
  1084. 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
  1085. * grub-core/commands/hashsum.c (grub_cmd_hashsum): Align space for
  1086. resulting hash as a precaution.
  1087. 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
  1088. * grub-core/net/bootp.c (set_env_limn_ro): Replace reserved ':' with
  1089. '_' in variable names.
  1090. * grub-core/net/net.c (grub_net_network_level_interface_register):
  1091. Likewise.
  1092. 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
  1093. Fix AFFS with non-512B blocks.
  1094. * grub-core/fs/affs.c (grub_affs_rblock): Make type uint32_t.
  1095. (AFFS_MAX_LOG_BLOCK_SIZE): New definition.
  1096. (grub_affs_data): Replace blocksize with log_blocksize.
  1097. (grub_affs_read_block): Fix non-512B blocks.
  1098. (grub_affs_read_symlink): Likewise.
  1099. (grub_affs_iterate_dir): Likewise. Fix freeing corruption.
  1100. (grub_affs_read): Fix non-512B blocks.
  1101. (grub_affs_label): Likewise.
  1102. (grub_affs_mtime): Likewise.
  1103. (grub_affs_mount): Fix block detection routine.
  1104. 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
  1105. Add filesystem mtime to AFFS.
  1106. * grub-core/fs/affs.c (grub_affs_file): Make type unsigned.
  1107. (aftime2ctime): New function.
  1108. (grub_affs_dir): Use aftime2ctime.
  1109. (grub_affs_label): Fix return value.
  1110. (grub_affs_mtime): New function.
  1111. (grub_affs_fs): Add mtime.
  1112. 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
  1113. * grub-core/fs/affs.c (grub_affs_read_symlink): Convert latin1 into
  1114. UTF-8.
  1115. 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
  1116. * grub-core/fs/sfs.c (grub_sfs_read_symlink): Convert latin1 into
  1117. UTF-8.
  1118. 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
  1119. * grub-core/fs/affs.c (grub_affs_iterate_dir): Mark as case insensitive.
  1120. 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
  1121. * grub-core/fs/sfs.c (grub_sfs_rblock): New fields createtime and
  1122. flags.
  1123. (FLAGS_CASE_SENSITIVE): New enum value.
  1124. (cache_entry): New struct.
  1125. (grub_fshelp_node): Add fields cache_off, next_extent, cache_allocated,
  1126. cache_size and cache.
  1127. (grub_sfs_data): Remove blocksize. All users switched to log_blocksize.
  1128. Add log_blocksize and fshelp_flags.
  1129. (grub_sfs_read_extent): Handle non-512 blocks.
  1130. (grub_sfs_read_block): Add cаche and handle non-512 blocks.
  1131. (grub_sfs_read_file): Handle non-512 blocks.
  1132. (grub_sfs_mount): Handle non-512 blocks. Fill log_blocksize and
  1133. fshelp_flags.
  1134. (grub_sfs_read_symlink): Handle non-512 blocks.
  1135. (grub_sfs_iterate_dir): Init new fields. Mark as case-insensitive.
  1136. (grub_sfs_dir): Free cache.
  1137. (grub_sfs_close): Likewise.
  1138. 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
  1139. * grub-core/fs/bfs.c (read_bfs_file): Fix overflow with over 2TiB
  1140. filesystems.
  1141. 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
  1142. * grub-core/fs/affs.c (grub_affs_read_block): Fix theoretical overflow.
  1143. 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
  1144. * grub-core/commands/ls.c (grub_ls_list_files): Fix overflow.
  1145. 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
  1146. * grub-core/fs/sfs.c (grub_fshelp_node): Fix types.
  1147. (grub_sfs_read_extent): Likewise.
  1148. (grub_sfs_read_block): Likewise.
  1149. (grub_sfs_mount): Likewise.
  1150. (grub_sfs_iterate_dir): Likewise.
  1151. (grub_sfs_read_symlink): Use strncpy instead of strcpy.
  1152. (grub_sfs_read): Remove unnecessarry and wrong temporary variable.
  1153. 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
  1154. Fix errors on compressed NTFS with 512B clusters.
  1155. * include/grub/ntfs.h (grub_ntfscomp_func_t): Use appropriately sized
  1156. types.
  1157. * grub-core/fs/ntfs.c (grub_ntfs_read): Return correct -1 on error and
  1158. not 0.
  1159. * grub-core/fs/ntfscomp.c (read_block): Use appropriately-sized types.
  1160. Relax check for inline extents.
  1161. (ntfscomp): Return correct -1 on error and not 0.
  1162. 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
  1163. * util/grub-install.in: Fix handling of prefix containing spaces.
  1164. 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
  1165. * grub-core/fs/squash4.c (grub_squash_inode): Fix offset field.
  1166. (grub_squash_read_data): Fix offset byte-swapping.
  1167. 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
  1168. * grub-core/kern/misc.c (grub_strcmp): Use unsigned comparison as
  1169. per common usage and preffered in several parts of code.
  1170. (grub_memcmp): Likewise.
  1171. (grub_strncmp): Likewise.
  1172. * include/grub/misc.h (grub_strcasecmp): Likewise.
  1173. (grub_strncasecmp): Likewise.
  1174. * Makefile.util.def (cmp_test): New test.
  1175. (grub_script_strcmp): Likewise.
  1176. * tests/cmp_unit_test.c: New file.
  1177. * tests/grub_script_strcmp.in: Likewise.
  1178. * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Add a comment.
  1179. 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
  1180. * include/grub/pci.h: Move enums into no-asm part.
  1181. 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
  1182. * grub-core/fs/bfs.c (bfs_strcmp) [MODE_AFS]: Use signed comparison.
  1183. 2012-05-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
  1184. * util/getroot.c (find_hurd_root_device): Try to make error message
  1185. and comments to translators clearer.
  1186. 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
  1187. * grub-core/commands/menuentry.c: Fix typo in TRANSLATORS comments.
  1188. 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
  1189. * grub-core/kern/fs.c (grub_fs_probe) [GRUB_UTIL]: Add workaround for
  1190. btrfs.
  1191. 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
  1192. * docs/grub.cfg: Update.
  1193. 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
  1194. * docs/grub.texi (PXE): Remove not present variables.
  1195. 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
  1196. * grub-core/net/net.c (defserver_set_env): New function.
  1197. (defserver_get_env): Likewise.
  1198. (GRUB_MOD_INIT): Register net_default_server and pxe_default_server.
  1199. 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
  1200. * grub-core/kern/emu/hostdisk.c (read_device_map): Skip invalid Fedora
  1201. entries.
  1202. 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
  1203. * grub-core/commands/menuentry.c: Add TRANSLATORS comments.
  1204. * grub-core/kern/emu/hostdisk.c: Likewise.
  1205. 2012-05-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
  1206. Handle hurd userspace partitions.
  1207. * util/getroot.c (find_hurd_root_device): New function.
  1208. (grub_guess_root_devices): Use find_hurd_root_device on Hurd.
  1209. 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
  1210. * util/getroot.c (convert_system_partition_to_system_disk); Add etherd
  1211. names.
  1212. Reported by: Bastian Blank.
  1213. 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
  1214. * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Fix offset when
  1215. crossing page boundary.
  1216. 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
  1217. Fix B-tree search in BFS, especially in presence of non-ASCII
  1218. characters.
  1219. * grub-core/fs/bfs.c (bfs_strcmp): New function.
  1220. (find_in_b_tree): Use standard bsearch + btree algorithm.
  1221. 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
  1222. * util/grub-fstest.c (cmd_cmp): Avoid comparing devices, pipes
  1223. and so on.
  1224. 2012-05-03 Matthew Garrett <mjg@redhat.com>
  1225. 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
  1226. Suspend broadcom cards in order to stop their DMA.
  1227. * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add pci.h on x86 EFI.
  1228. * grub-core/Makefile.core.def (kernel): Add pci.c on x86 EFI.
  1229. (pci): Don't build on x86 EFI.
  1230. * grub-core/bus/pci.c (grub_pci_find_capability): New function.
  1231. * grub-core/kern/efi/mm.c (stop_broadcom) [__i386__ || __x86_64__]:
  1232. New function.
  1233. (grub_efi_finish_boot_services) [__i386__ || __x86_64__]: Call
  1234. stop_broadcom if running on EFI.
  1235. * include/grub/pci.h (GRUB_PCI_CLASS_NETWORK): New enum value.
  1236. (GRUB_PCI_CAP_POWER_MANAGEMENT): Likewise.
  1237. (GRUB_PCI_VENDOR_BROADCOM): Likewise.
  1238. (grub_pci_find_capability): New proto.
  1239. 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
  1240. * docs/grub.texi: Remove dot from the extension as it apparently
  1241. doesn't work with some makeinfo versions.
  1242. 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
  1243. * po/Makefile.in.in: Make msgfmt output in little-endian in accordance
  1244. with GRUB expectance.
  1245. 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
  1246. * util/grub-fstest.c (cmd_cmp): Compare directories recursively.
  1247. 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
  1248. * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Put a trailing
  1249. zero after directory block since last entry may be not 0-terminated if
  1250. it ends on block boundary. Use continue instead of if spanning whole
  1251. loop.
  1252. 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
  1253. Support 4K sectors UDF inline files.
  1254. * grub-core/fs/udf.c (grub_udf_file_entry): Don't specify padding size.
  1255. (grub_udf_extended_file_entry): Likewise.
  1256. (grub_fshelp_node): Name the anonymous union. Put block at the end.
  1257. All users updated.
  1258. (get_fshelp_size): New function.
  1259. (grub_udf_read_icb): Read whole block.
  1260. (grub_udf_iterate_dir): Likewise.
  1261. (grub_udf_dir): Likewise.
  1262. (grub_udf_open): Likewise.
  1263. 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
  1264. * grub-core/fs/ufs.c (grub_ufs_get_file_block): Support triple indirect.
  1265. 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
  1266. * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Use proper check for
  1267. inline symlinks in addition to workaround.
  1268. 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
  1269. * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Handle read_inode errors.
  1270. 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
  1271. * grub-core/fs/xfs.c (GRUB_XFS_EXTENT_BLOCK): Fix bitmask.
  1272. 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
  1273. * grub-core/fs/zfs/zfs.c (nvlist_find_value): Fix return value.
  1274. 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
  1275. Fix reiserfs big seek times.
  1276. * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): New argument
  1277. exact. All users updated.
  1278. (grub_reiserfs_read): Use nearest btree search for seeking.
  1279. Fix return value on error.
  1280. 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
  1281. * grub-core/commands/legacycfg.c (legacy_file): Default to restricted
  1282. entries.
  1283. * grub-core/commands/menuentry.c (grub_cmd_menuentry): Likewise.
  1284. * docs/grub.texi: Update menuentry description.
  1285. 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
  1286. * util/grub-setup.c (setup): Remove duplicate call to embed. Fixes
  1287. crash when embedding onto filesystem.
  1288. 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
  1289. * util/getroot.c (find_root_devices_from_poolname): Handle spaces in the
  1290. name.
  1291. 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
  1292. * grub-core/net/ip.c (handle_dgram): Fix undeclared variable.
  1293. 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
  1294. * grub-core/normal/autofs.c (read_fs_list): Revert accidental wrong
  1295. commit.
  1296. 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
  1297. 2012-05-01 Bean <bean123ch@gmail.com>
  1298. * grub-core/net/ip.c (handle_dgram): Fix DHCP mac comparison.
  1299. 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
  1300. * grub-core/kern/file.c (grub_file_read): Read nothing if len = 0.
  1301. Special behaviour for len = 0 to read whole file isn't used anywhere and
  1302. can cause buffer ovewrflows in several places.
  1303. 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
  1304. * grub-core/normal/autofs.c (read_fs_list): Fix memory leak.
  1305. 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
  1306. Handle RAIDZ on non-512B sectors.
  1307. * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member
  1308. max_children_ashift.
  1309. (fill_vdev_info_real): Fill max_children_ashift.
  1310. (read_device): Use max_children_ashift.
  1311. 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
  1312. * grub-core/fs/fshelp.c (grub_fshelp_find_file): Fix memory leak.
  1313. 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
  1314. * grub-core/kern/emu/hostdisk.c (read_device_map): Reject non-standard
  1315. disk names.
  1316. * docs/grub.texi: Update device.map parts.
  1317. 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
  1318. Don't scan into non-diskfilter devices having diskfilter names.
  1319. * grub-core/disk/diskfilter.c (is_valid_diskfilter_name): New function.
  1320. (scan_disk): New argument accept_diskfilter. Fix recursion depth
  1321. handling.
  1322. (scan_disk_hook): New function.
  1323. 2012-04-29 Bean <bean123ch@gmail.com>
  1324. * grub-core/net/drivers/efi/efinet.c (get_card_packet): Fix buffer
  1325. allocation.
  1326. 2012-04-29 Mads Kiilerich <mads@kiilerich.com> (tiny)
  1327. * configure.ac: Detect starfield theme font path
  1328. /usr/share/fonts/dejavu/DejaVuSans.ttf for Fedora.
  1329. 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
  1330. * grub-core/term/ieee1275/console.c (grub_console_dimensions): Use 80x24
  1331. geometry on serial consoles.
  1332. 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
  1333. * grub-core/term/terminfo.c (grub_terminfo_readkey): Increase timeout
  1334. because of network consoles.
  1335. 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
  1336. * grub-core/term/terminfo.c (grub_terminfo_getkey): Fix incorrect queue
  1337. handling.
  1338. 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
  1339. * grub-core/disk/diskfilter.c (read_segment): Fix the case when disknr
  1340. falls on Q syndrom.
  1341. 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
  1342. * grub-core/fs/nilfs2.c (grub_nilfs2_palloc_entry_offset_log):
  1343. Fix argument to grub_nilfs2_palloc_bitmap_block_offset.
  1344. 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
  1345. * grub-core/fs/squash4.c (lzo_decompress): Set grub_errno on error.
  1346. Allocate at lest 8192 for temporary buffer as required for lzo.
  1347. 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
  1348. * grub-core/fs/fat.c (grub_fat_mount): Don't add logical_sector_bits
  1349. to cluster_bits, since it's already added in.
  1350. (grub_fat_read_data): Likewise.
  1351. 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
  1352. * grub-core/fs/ntfs.c (grub_ntfs_mount): Support 256-byte sectors,
  1353. as long as cluster size is multiple of 512 bytes.
  1354. 2012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
  1355. * util/grub-mkrescue.in: Fix locale directory.
  1356. 2012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
  1357. * grub-core/kern/emu/hostdisk.c (map): Make static.
  1358. 2012-04-23 Bean <bean123ch@gmail.com>
  1359. * util/grub-fstest.c (fstest): Add missing break.
  1360. 2012-04-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
  1361. Fix hurd build.
  1362. * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size) [__GNU__]: Do
  1363. not define nr variable.
  1364. * util/getroot.c [__GNU__] (strip_extra_slashes, xgetcwd, exec_pipe,
  1365. find_root_devices_from_poolname, find_root_devices_from_libzfs,
  1366. grub_find_device): Do not define.
  1367. 2012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
  1368. Fix kfreebsd compile and behaviour.
  1369. * grub-core/kern/emu/hostdisk.c (grub_util_follow_gpart_up): Fix
  1370. format-security.
  1371. * util/getroot.c: Fix wait.h include.
  1372. (grub_guess_root_devices): Error if grub_find_device fails.
  1373. (grub_util_get_geom_abstraction): Fix shadowing and format-security.
  1374. (grub_util_get_dev_abstraction): Likewise.
  1375. (grub_util_pull_device): Likewise.
  1376. (grub_util_get_grub_dev): Likewise.
  1377. * util/lvm.c (grub_util_lvm_isvolume): Likewise.
  1378. 2012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
  1379. Fix and unify wholedisk detection.
  1380. * util/getroot.c (convert_system_partition_to_system_disk): New argument
  1381. is_part. All users updated.
  1382. (device_is_wholedisk): Removed.
  1383. (grub_util_biosdisk_get_grub_dev): Use is_part.
  1384. 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
  1385. * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix opening
  1386. mode.
  1387. 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
  1388. * configure.ac: Bump to beta4.
  1389. 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
  1390. * grub-core/commands/search_wrap.c (grub_cmd_search): Handle old
  1391. --fs-uuid --set UUID syntax.
  1392. 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
  1393. * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix message
  1394. disunification.
  1395. 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
  1396. * conf/Makefile.common (LDFLAGS_PLATFORM): Use explicit -Wl.
  1397. 2012-04-18 Mads Kiilerich <mads@kiilerich.com>
  1398. * grub-mkconfig_lib.in: Ignore *.rpmnew and *.rpmsave.
  1399. 2012-04-18 Mike Gilbert <floppym@gentoo.org>
  1400. * util/grub.d/10_linux.in: Fix detection of genkernel initramfs.
  1401. 2012-04-18 Bean <bean123ch@gmail.com>
  1402. * grub-core/disk/ata.c (grub_ata_strncpy): Put terminating zero at right
  1403. place.
  1404. 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
  1405. * grub-core/kern/emu/hostdisk.c (open_device): New argument max. All
  1406. users updated.
  1407. (grub_util_biosdisk_read): Handle Linux partitions not exactly
  1408. corresponding to GRUB partitions.
  1409. (grub_util_biosdisk_write): Likewise.
  1410. 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
  1411. Scan mdraid before LVM.
  1412. * include/grub/diskfilter.h (grub_diskfilter_register): Renamed to ..
  1413. (grub_diskfilter_register_front): ... this.
  1414. (grub_diskfilter_register_back): New function.
  1415. All users of grub_diskfilter_register updated.
  1416. 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
  1417. * util/grub-install.in: Fix an automatic target detection bug.
  1418. 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
  1419. * util/grub-install.in: New option --efi-directory.
  1420. 2012-04-17 Vladimir Serbinenko <phcoder@gmail.com>
  1421. * grub-core/loader/i386/linux.c (allocate_pages): Overwrite low memory
  1422. boot services if we have no other choice.
  1423. 2012-04-14 Vladimir Serbinenko <phcoder@gmail.com>
  1424. * util/grub-mknetdir.in: Rename --override-directory to --directory and
  1425. document it.
  1426. * tests/util/grub-shell.in: Update to --directory.
  1427. 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
  1428. * grub-core/fs/zfs/zfs.c: Disable -Wstrict-aliasing.
  1429. 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
  1430. * grub-core/fs/minix.c (grub_minix_data): Fix ino type.
  1431. (grub_minix_read_file): Likewise.
  1432. (grub_minix_read_inode): Likewise.
  1433. (grub_minix_find_file): Likewise.
  1434. (grub_minix_dir): Likewise.
  1435. 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
  1436. * util/grub-setup.c (setup): Fix partition handling and blocklist
  1437. check.
  1438. 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
  1439. * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Remove
  1440. redundant buggy overlap check.
  1441. 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
  1442. * tests/util/grub-shell.in: Set pkgdatadir when calling grub-mkrescue
  1443. and grub-mknetdir.
  1444. 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
  1445. * grub-core/loader/i386/linux.c (grub_cmd_linux): Avoid accessing
  1446. kh.loadflags on pre-2.00 kernels.
  1447. 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
  1448. Terminate UNDI and PXE before launching the payload to avoid problems
  1449. with DMA.
  1450. * grub-core/commands/boot.c (grub_loader_noreturn): Rename to ...
  1451. (grub_loader_flags): ... this. All users updated.
  1452. (grub_loader_boot): Check for GRUB_LOADER_FLAG_NORETURN.
  1453. * grub-core/loader/i386/pc/pxechainloader.c (grub_cmd_pxechain): Mark
  1454. loader as GRUB_LOADER_FLAG_PXE_NOT_UNLOAD.
  1455. * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_shutdown): New
  1456. function.
  1457. (grub_pxe_restore): Likewise.
  1458. (fini_hnd): New var.
  1459. (GRUB_MOD_INIT): Register shutdown hook.
  1460. (GRUB_MOD_FINI): Shutdown and unregister shutdown hook.
  1461. * include/grub/loader.h (GRUB_LOADER_FLAG_NORETURN): New const.
  1462. (GRUB_LOADER_FLAG_PXE_NOT_UNLOAD): Likewise.
  1463. (grub_loader_set): Rename second argument to flags.
  1464. 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
  1465. * grub-core/normal/charset.c (grub_ucs4_to_utf8): Return number of
  1466. written bytes.
  1467. (grub_get_num_of_utf8_bytes): New function.
  1468. (grub_ucs4_to_utf8_alloc): Use grub_get_num_of_utf8_bytes.
  1469. * grub-core/normal/menu_entry.c (run): Convert entry to UTF-8 before
  1470. executing it.
  1471. * include/grub/charset.h (grub_get_num_of_utf8_bytes): New proto.
  1472. (grub_ucs4_to_utf8): Change return type.
  1473. 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
  1474. * grub-core/commands/usbtest.c (usb_print_str): Silence spurious
  1475. warning.
  1476. * grub-core/fs/bfs.c (hop_level): Likewise.
  1477. * grub-core/net/bootp.c (grub_cmd_bootp): Likewise.
  1478. 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
  1479. * grub-core/lib/adler32.c: Recode due to license unclearness.
  1480. 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
  1481. * grub-core/io/lzopio.c (read_block_header): Fix incorrect byte swapping
  1482. (test_header): Likewise.
  1483. 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
  1484. Fix --help formatting.
  1485. * util/grub-mkconfig_lib.in (print_option_help): New function.
  1486. (grub_fmt): Likewise.
  1487. * util/grub-install.in: Use print_option_help and grub_fmt.
  1488. * util/grub-kbdcomp.in: Likewise.
  1489. * util/grub-mkconfig.in: Likewise.
  1490. * util/grub-mknetdir.in: Likewise.
  1491. * util/grub-mkrescue.in: Likewise.
  1492. * util/grub-mkstandalone.in: Likewise.
  1493. * util/grub-reboot.in: Likewise.
  1494. * util/grub-set-default.in: Likewise.
  1495. * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
  1496. 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
  1497. * linguas.sh: Remove autogenerated *.po.
  1498. 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
  1499. * po/README: Move language fetcing to ...
  1500. * linguas.sh: ... here.
  1501. * po/README: Point to linguas.sh.
  1502. 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
  1503. * po/README: Exclude ko.po due to disclaimer problems.
  1504. 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
  1505. * grub-core/gettext/gettext.c (grub_gettext_pread): Fix the case when
  1506. len = 0.
  1507. (grub_gettext_translate_real): Handle 0th string.
  1508. (grub_gettext_translate): Ensure that "" isn't translated.
  1509. 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
  1510. * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add
  1511. TRANSLATORS comment.
  1512. (grub_diskfilter_print_partmap): Propagate changing of error into
  1513. warning.
  1514. 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
  1515. * include/grub/diskfilter.h (grub_diskfilter_vg): Increase extent_size
  1516. to uint64_t to prevent overflow.
  1517. (grub_diskfilter_lv): Increase start_extent and extent_count
  1518. to uint64_t to prevent overflow.
  1519. 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
  1520. * configure.ac: Increase version.
  1521. 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
  1522. Introduce en@cyrillic en@hebrew en@arabic and en@greek.
  1523. * po/Rules-translit: New file.
  1524. * po/arabic.sed: Likewise.
  1525. * po/cyrillic.sed: Likewise.
  1526. * po/greek.sed: Likewise.
  1527. * po/hebrew.sed: Likewise.
  1528. * po/README: Add en@cyrillic en@hebrew en@arabic and en@greek.
  1529. * po/Makefile.in.in: Add extra_dist4.
  1530. 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
  1531. Handle big-endian minixfs (fixes minixfs tests on bigendian).
  1532. * grub-core/fs/minix.c: Replace le with minix. Add necessary defines,
  1533. modify names. Introduce MODE_BIGENDIAN.
  1534. * grub-core/fs/minix_be.c: New file.
  1535. * grub-core/fs/minix2_be.c: Likewise
  1536. * grub-core/fs/minix3_be.c: Likewise.
  1537. * Makefile.util.def (libgrubmods): Add minix_be, minix2_be and
  1538. minix3_be.
  1539. * grub-core/Makefile.core.def (minix_be): New module.
  1540. (minix2_be): Likewise.
  1541. (minix3_be): Likewise.
  1542. 2012-04-01 Felix <email@hamburg.de>
  1543. * grub-core/loader/efi/appleloader.c (devpath_7): New var.
  1544. (devs): Add MBP 2011.
  1545. 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
  1546. * grub-core/font/font.c (blit_comb): Handle dagesh somewhat.
  1547. 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
  1548. * grub-core/normal/cmdline.c (print_completion): New field
  1549. prompt_len.
  1550. (grub_cmdline_get): Handle width properly.
  1551. 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
  1552. * grub-core/commands/lsacpi.c (options): Add missing terminator.
  1553. 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
  1554. * include/grub/datetime.h (grub_datetime2unixtime): Fix handling of days
  1555. after 29th of February.
  1556. 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
  1557. Fix exfat endianness handling.
  1558. * grub-core/fs/fat.c (grub_fat_data): Make fat_sector 32-bit.
  1559. (grub_fat_mount) [MODE_EXFAT]: Fix bpb.num_reserved_sectors byte-swap.
  1560. (grub_fat_iterate_dir) [MODE_EXFAT]: Fix attr byte-swap.
  1561. Byte-swap utf16 when necessary.
  1562. (grub_fat_label) [MODE_EXFAT]: Byte-swap utf16 when necessary.
  1563. 2012-03-31 Anton Blanchard <anton@samba.org>
  1564. 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
  1565. Fix btrfs endianness handling.
  1566. * grub-core/fs/btrfs.c (key_cmp): Use grub_le_to_cpu for clarity.
  1567. (lower_bound): Make root uint64_t. Use root in le.
  1568. (grub_btrfs_read_logical): Fix template key init. Fix address byteswap.
  1569. (find_path): Fix template key init.
  1570. (grub_btrfs_dir): Fix mtime byteswap.
  1571. * include/grub/types.h (grub_cpu_to_le64_compile_time): New macro.
  1572. 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
  1573. * grub-core/fs/btrfs.c (grub_btrfs_read_logical): New argument
  1574. recursion_depth. Break infinite resursions. All users updated.
  1575. 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
  1576. * util/getroot.c (convert_system_partition_to_system_disk): Fix use
  1577. after free.
  1578. Reported by: Peter Jones.
  1579. 2012-03-31 Anton Blanchard <anton@samba.org>
  1580. * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Do not byteswap
  1581. 8 bit values.
  1582. 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
  1583. * util/grub-install.in: Fix nvram call for PreP.
  1584. 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
  1585. * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Degrade
  1586. the error when some elements are missing into a warning.
  1587. 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
  1588. * grub-core/normal/charset.c (bidi_line_wrap): Fix out-of-range swap.
  1589. 2012-03-28 Colin Watson <cjwatson@ubuntu.com>
  1590. * docs/grub.texi (Invoking grub-probe): New section.
  1591. Reported by: Filipus Klutiero. Fixes Debian bug #666031.
  1592. 2012-03-27 Vladimir Serbinenko <phcoder@gmail.com>
  1593. Fix tab and wide character handling in editor and menu.
  1594. * grub-core/normal/charset.c (grub_unicode_aglomerate_comb): Don't
  1595. agglomerate control characters with combining marks.
  1596. (bidi_line_wrap): Allow break on tab.
  1597. (grub_unicode_get_comb_start): New function.
  1598. * grub-core/normal/menu_entry.c: Restructure to handle wide characters
  1599. and tab correctly.
  1600. * grub-core/normal/menu_text.c (print_entry): Replace \n, \r, \b and \e
  1601. with a space.
  1602. * grub-core/normal/term.c (print_ucs4_terminal): New argument
  1603. fixed_tab_size. All users updated.
  1604. * include/grub/term.h (GRUB_TERM_TAB_WIDTH): New const.
  1605. (grub_term_getcharwidth): Handle \t.
  1606. * include/grub/unicode.h (grub_unicode_glyph_dup): Fix allocation
  1607. and copy.
  1608. 2012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
  1609. Handle big-endian mdraid.
  1610. * Makefile.util.def (libgrubkern): Add mdraid_linux_be.c.
  1611. * grub-core/Makefile.core.def (mdraid09_be): New module.
  1612. * grub-core/disk/mdraid_linux.c: Use grub_md_to_cpu* and grub_cpu_to_md*
  1613. rather than grub_le_to_cpu* and grub_cpu_to_le*.
  1614. * grub-core/disk/mdraid_linux_be.c: New file.
  1615. 2012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
  1616. * grub-core/gettext/gettext.c (GRUB_MOD_INIT): Handle errors.
  1617. 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
  1618. * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
  1619. missing quotes which caused confusion among translators.
  1620. 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
  1621. * util/grub-mkconfig_lib.in: Fix typo.
  1622. 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
  1623. * grub-core/script/argv.c (grub_script_argv_split_append): Skip leading
  1624. spaces.
  1625. * tests/grub_script_leading_whitespace.in: New file.
  1626. * Makefile.util.def (grub_script_leading_whitespace): New test.
  1627. 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
  1628. * grub-core/kern/dl.c (grub_dl_add): Make global in order for gdb_grub
  1629. to work.
  1630. 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
  1631. * grub-core/fs/jfs.c (grub_jfs_label): Use first label if second one
  1632. starts with control character.
  1633. 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
  1634. * grub-core/gdb/cstub.c (grub_gdb_inbuf): Increase the size to avoid
  1635. overflow.
  1636. (grub_gdb_outbuf): Likewise.
  1637. 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
  1638. * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): Add
  1639. zero terminator. Fixes a crash.
  1640. 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
  1641. * grub-core/loader/i386/linux.c (allocate_pages): Don't allocate
  1642. beyond 4 GiB.
  1643. (grub_cmd_linux): Use GRUB_LINUX_BZIMAGE_ADDR for non-relocatable
  1644. images independently of preffered adderss field.
  1645. 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
  1646. * grub-core/commands/i386/pc/play.c: Improve TRANSLATORS comments.
  1647. * grub-core/commands/regexp.c: Likewise.
  1648. * grub-core/loader/i386/linux.c: Likewise.
  1649. * grub-core/partmap/msdos.c: Likewise.
  1650. * grub-core/script/execute.c: Likewise.
  1651. * grub-core/term/gfxterm.c: Likewise.
  1652. 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
  1653. Add variable parsing in $"..." and fix several mismatches with bash.
  1654. * Makefile.util.def (grub_script_gettext): New test.
  1655. * grub-core/script/execute.c (parse_string): New function.
  1656. (gettext_append): Likewise.
  1657. (grub_script_arglist_to_argv): Use gettext_append.
  1658. * grub-core/script/yylex.l: Fix slash and newline handling in $"...".
  1659. * tests/grub_script_gettext.in: New file.
  1660. 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
  1661. Fix handling of leading spaces in scripts.
  1662. * grub-core/normal/cmdline.c (grub_cmdline_get): Don't strip leading
  1663. spaces.
  1664. * grub-core/normal/main.c (grub_file_getline): Remove all preprocessing
  1665. other than skipping \r. All users updated.
  1666. * tests/grub_script_echo1.in: Add space-related tests.
  1667. * util/grub-menulst2cfg.c (main): Remove useless space skipping.
  1668. 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
  1669. * grub-core/commands/cat.c (grub_cmd_cat): Fix termination key check.
  1670. 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
  1671. * configure.ac: Bump up the version to beta2.
  1672. 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
  1673. Fix gettext reload bugs (e.g. inability to disable gettext
  1674. once enabled).
  1675. * grub-core/gettext/gettext.c: Encapsulate all static variables in
  1676. main_context and secondary_context. All functions updated.
  1677. (grub_gettext_translate): Rename to ...
  1678. (grub_gettext_translate_real): ... this. Return NULL on failed
  1679. translate.
  1680. (grub_gettext_translate): Handle secondary context.
  1681. (grub_gettext_delete_list): Close file and zero-out the context.
  1682. (grub_mofile_open): Don't call grub_gettext_delete_list.
  1683. Don't close file.
  1684. (grub_gettext_init_ext): Call grub_gettext_init_ext. Skip loading
  1685. if locale="" to avoid pointless error message.
  1686. (grub_gettext_env_write_lang): Update lang even if load fails.
  1687. Handle secondary context.
  1688. (grub_gettext_reread_prefix): New function.
  1689. (read_main): Likewise.
  1690. (read_secondary): Likewise.
  1691. (GRUB_MOD_INIT): Handle secondary context. Hook and export variables.
  1692. (GRUB_MOD_FINI): Handle secondary context. Don't close file.
  1693. * grub-core/normal/main.c (read_lists): Call grub_gettext_reread_prefix.
  1694. * include/grub/normal.h (grub_gettext_reread_prefix): New proto.
  1695. 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
  1696. * configure.ac: Decrease warning level to avoid spurious warnings and
  1697. to be able to compile with GCC 4.2.
  1698. * Makefile.util.def: Remove -Wno-error=logical-op.
  1699. 2012-03-10 William Bittner <william.bittner@gmail.com>
  1700. * util/import_unicode.py: Add missing brackets around string for
  1701. python 3 support.
  1702. 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
  1703. Fix efi chainloader on network root.
  1704. * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Handle
  1705. network devices.
  1706. * grub-core/net/drivers/efi/efinet.c (grub_efinet_get_device_handle):
  1707. New function.
  1708. 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
  1709. * grub-core/gfxmenu/gui_progress_bar.c (grub_gui_progress_bar): Remove
  1710. unused show_text member.
  1711. * docs/grub.texi: Document "text" property.
  1712. 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
  1713. * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Fix format
  1714. in dprintf.
  1715. 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
  1716. Fix IMSM handling on Fedora.
  1717. * util/getroot.c (grub_util_is_imsm): New function.
  1718. (grub_util_get_dev_abstraction): Treat IMSM as simple device, not RAID.
  1719. 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
  1720. * Makefile.am: Strip gold section.
  1721. * conf/Makefile.common: Likewise.
  1722. * gentpl.py: Likewise.
  1723. * grub-core/Makefile.core.def: Likewise.
  1724. * grub-core/genmod.sh.in: Likewise.
  1725. 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
  1726. * util/grub.d/10_linux.in: Use stat if grub-probe on root fails.
  1727. * util/grub.d/20_linux_xen.in: Likewise.
  1728. Based on Debian patch.
  1729. 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
  1730. * util/grub.d/10_linux.in: Fix syntax error resulting in
  1731. Richard Laager's patch.
  1732. * util/grub.d/20_linux_xen.in: Propagate Richard Laager's patch.
  1733. 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
  1734. * tests/partmap_test.in: Replace qemu-img usage with dd to decrease
  1735. dependencies.
  1736. 2012-03-10 Richard Laager <rlaager@wiktel.com>
  1737. * util/grub.d/10_linux.in: Fix ZFS root passing.
  1738. 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
  1739. * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
  1740. * grub-core/commands/xnu_uuid.c: Likewise.
  1741. * grub-core/loader/efi/appleloader.c: Likewise.
  1742. * grub-core/script/execute.c: Likewise.
  1743. * grub-core/script/main.c: Likewise.
  1744. * util/grub-mkfont.c: Likewise.
  1745. 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
  1746. * util/grub-mkfont.c (options): Use more appropriate "select" that
  1747. "set" for face index.
  1748. 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
  1749. * util/grub-editenv.c (options): Gettextize command summaries.
  1750. 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
  1751. * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Use
  1752. "out of memory" error messagge.
  1753. 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
  1754. * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add scanning
  1755. of diskfilter for diskfilter on diskfilter support.
  1756. 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
  1757. * util/getroot.c (exec_pipe): Ensure that the child is not localised.
  1758. 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
  1759. * util/grub-install.in: Check for themes/starfield/theme.txt and not
  1760. themes/starfield.
  1761. 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
  1762. * grub-core/gnulib/regcomp.c (regerror): Fix out-of-range array lookup.
  1763. 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
  1764. * grub-core/gdb/i386/idt.c (grub_gdb_breakpoint): Remove old debug code.
  1765. 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
  1766. * grub-core/commands/hashsum.c (grub_cmd_hashsum): Remove dot at the end
  1767. of error message.
  1768. 2012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
  1769. * util/grub-install.in: Fix install non-PreP IEEE1275 install.
  1770. 2012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
  1771. * grub-core/commands/i386/pc/sendkey.c (GRUB_MOD_INIT): Fix confusing
  1772. message.
  1773. * util/grub-install.in: Fix and gettextize error message.
  1774. 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
  1775. * util/grub-fstest.c (options): Replace N with NUM and S with STRING.
  1776. Gettextize.
  1777. * util/grub-mount.c (options): Likewise.
  1778. 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
  1779. * grub-core/commands/probe.c (options): Replace VAR with VARNAME and
  1780. gettextize.
  1781. * grub-core/commands/search_wrap.c (options): Likewise.
  1782. 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
  1783. * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning.
  1784. 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
  1785. * grub-core/boot/i386/pc/startup_raw.S (multiboot_trampoline): Fix
  1786. size calculation.
  1787. * grub-core/kern/i386/realmode.S (realidt): Assume default BIOS IDT if
  1788. none is known.
  1789. 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
  1790. * grub-core/net/net.c (grub_net_addr_to_str): Don't translate
  1791. "temporary" since it's used in identifier and is limited in space.
  1792. 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
  1793. * po/POTFILES.in: Regenerate. Include *.h since they contain
  1794. translatable strings as well.
  1795. 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
  1796. * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
  1797. byte-swap on big-endian.
  1798. Reported by: Lennart Sorensen
  1799. 2012-03-07 Vladimir Serbinenko <phcoder@gmail.com>
  1800. * grub-core/loader/i386/linux.c (prot_init_space): New variable.
  1801. (allocate_pages): Improve dprintf.
  1802. (grub_cmd_linux): Fill prot_init_space. Fix improper usage of
  1803. code32_start. Fill code32_start and kernel_alignment in params.
  1804. (grub_cmd_initrd): Use prot_init_space.
  1805. 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
  1806. * util/grub-mkstandalone.in: Propagate grub-mkimage.c change.
  1807. 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
  1808. * util/grub-install.in: Add missing dot at the end of sentence.
  1809. 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
  1810. * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
  1811. * grub-core/commands/videotest.c: Likewise.
  1812. * grub-core/loader/i386/linux.c: Likewise.
  1813. 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
  1814. * grub-core/commands/acpi.c (options): Fix a dot in the middle of the
  1815. sentence.
  1816. Reported by: Milo Casagrande.
  1817. 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
  1818. * grub-core/commands/acpi.c: Add TRANSLATORS comments.
  1819. * grub-core/commands/gptsync.c: Likewise.
  1820. * grub-core/commands/hashsum.c: Likewise.
  1821. * grub-core/commands/i386/pc/sendkey.c: Likewise.
  1822. * grub-core/commands/legacycfg.c: Likewise.
  1823. * grub-core/io/gzio.c: Likewise.
  1824. * grub-core/net/net.c: Likewise.
  1825. * grub-core/term/gfxterm.c: Likewise.
  1826. * grub-core/term/terminfo.c: Likewise.
  1827. * grub-core/tests/test_blockarg.c: Likewise.
  1828. * grub-core/video/video.c: Likewise.
  1829. * util/grub-install.in: Likewise.
  1830. * util/grub-mkfont.c: Likewise.
  1831. 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
  1832. * util/grub-mkimage.c (help_filter): Add missing capitalisation.
  1833. 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
  1834. * grub-core/commands/search_wrap.c (options): Fix a typo.
  1835. Reported by: David Prévot.
  1836. 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
  1837. * util/grub-kbdcomp.in: Change "layout" to "keyboard layout" in
  1838. description.
  1839. 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
  1840. * util/grub-script-check.c (main): Fix a syntax error message which was
  1841. unclear.
  1842. 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
  1843. * util/grub-mkrescue.in (usage): Fix ROM capitalisation.
  1844. 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
  1845. * grub-core/commands/search_wrap.c (options): Fix wrong copy-paste in
  1846. messages.
  1847. 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
  1848. * util/grub-fstest.c (options): Remove OPTION_ARG_OPTIONAL from options
  1849. without argument.
  1850. * util/grub-mount.c (options): Likewise.
  1851. 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
  1852. * util/grub-mkimage.c (generate_image): Unify diskboot.img size message.
  1853. 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
  1854. * grub-core/net/http.c: Add TRANSLATORS comments.
  1855. * grub-core/normal/cmdline.c: Likewise.
  1856. * grub-core/normal/misc.c: Likewise.
  1857. * grub-core/partmap/msdos.c: Likewise.
  1858. * grub-core/parttool/msdospart.c: Likewise.
  1859. * grub-core/script/execute.c: Likewise.
  1860. * grub-core/script/main.c: Likewise.
  1861. * grub-core/term/terminfo.c: Likewise.
  1862. * grub-core/video/bitmap.c: Likewise.
  1863. * util/grub-install.in: Likewise.
  1864. * util/grub-mkimage.c: Likewise.
  1865. * util/grub-mklayout.c: Likewise.
  1866. * util/grub-setup.c: Likewise.
  1867. 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
  1868. * util/grub-mount.c (fuse_init): Unify cryptomount and loopback messages
  1869. with similar messages in grub-fstest.
  1870. 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
  1871. * util/grub-install.in: Unify "option requires an argument" message
  1872. with similar messages in other files.
  1873. * util/grub-mkconfig.in: Likewise.
  1874. 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
  1875. * util/grub-set-default.in: Replace printf with gettext_printf (the
  1876. string in in question is already translated from grub-reboot)
  1877. 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
  1878. * configure.ac: Bump up the version to beta1.
  1879. 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
  1880. * grub-core/loader/i386/linux.c (allocate_pages): Fix handling of the
  1881. case when min_align = 0.
  1882. 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
  1883. * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning
  1884. and fix a case when line_start overflows.
  1885. 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
  1886. * util/grub-reboot.in (usage): Mention id posibility.
  1887. * util/grub-set-default.in (usage): Likewise.
  1888. 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
  1889. * include/grub/misc.h (ALIGN_UP_OVERHEAD): New define.
  1890. * grub-core/loader/i386/linux.c (grub_cmd_initrd): Align initrds at 4.
  1891. * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
  1892. * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
  1893. * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
  1894. * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
  1895. * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
  1896. 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
  1897. * grub-core/commands/menuentry.c (options): Remove
  1898. GRUB_ARG_OPTION_REPEATABLE.
  1899. Reported by: Andreas Vogel
  1900. 2012-03-04 Andreas Vogel <Andreas.Vogel@anvo-it.de>
  1901. * grub-core/normal/main.c (grub_normal_free_menu): Fix memory leak.
  1902. 2012-03-04 Hideki EIRAKU <hdk1983@gmail.com>
  1903. * grub-core/normal/menu_entry.c (kill_line): Fix a crash and off-by-one
  1904. error.
  1905. 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
  1906. Use sort -V by the idea of Georgi Georgiev.
  1907. * util/grub-mkconfig_lib.in (version_sort): New function.
  1908. (version_test_numeric): Use version_sort.
  1909. 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
  1910. Use submenus in grub-mkconfig.
  1911. * util/grub-mkconfig.in: Define GRUB_ACTUAL_DEFAULT.
  1912. * util/grub-mkconfig_lib.in (grub_quote): New function.
  1913. (gettext_printf): Use gettext and not gettext_quoted to fix several
  1914. messages.
  1915. * util/grub.d/10_hurd.in: Use submenus.
  1916. * util/grub.d/10_kfreebsd.in: Likewise.
  1917. * util/grub.d/10_linux.in: Likewise.
  1918. * util/grub.d/10_netbsd.in: Likewise.
  1919. * util/grub.d/20_linux_xen.in: Likewise.
  1920. * util/grub.d/30_os-prober.in: Likewise.
  1921. * util/grub.d/10_illumos.in: Add missing quoting.
  1922. * util/grub.d/10_windows.in: Likewise.
  1923. 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
  1924. Fix menu title instability bug.
  1925. * grub-core/commands/menuentry.c (options): New option --id.
  1926. (grub_normal_add_menu_entry): New argument id. All users updated.
  1927. (grub_cmd_menuentry): Handle --id.
  1928. (grub_menu_init): Accept unknown arguments.
  1929. * grub-core/normal/main.c (features): Add feature_menuentry_id and
  1930. feature_menuentry_options.
  1931. * grub-core/normal/menu.c (grub_menu_execute_entry): Use id for
  1932. saved_entry.
  1933. (get_entry_number): Match with id as well.
  1934. * include/grub/menu.h (grub_menu_entry): New member id.
  1935. * util/grub-mkconfig_lib.in (grub_get_device_id): New function.
  1936. * util/grub.d/00_header.in: Define menuentry_id_option.
  1937. * util/grub.d/10_hurd.in: Define id.
  1938. * util/grub.d/10_illumos.in: Likewise.
  1939. * util/grub.d/10_kfreebsd.in: Likewise.
  1940. * util/grub.d/10_linux.in: Likewise.
  1941. * util/grub.d/10_netbsd.in: Likewise.
  1942. * util/grub.d/10_windows.in: Likewise.
  1943. * util/grub.d/20_linux_xen.in: Likewise.
  1944. * util/grub.d/30_os-prober.in: Likewise.
  1945. 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
  1946. * grub-core/script/execute.c (grub_script_return): Replace ambiguous
  1947. "scope" with "body".
  1948. 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
  1949. * include/grub/i386/linux.h (linux_kernel_header): Fix init_size type.
  1950. * grub-core/loader/i386/linux.c (grub_cmd_linux): Differentiate between
  1951. prot_size and prot_file_size.
  1952. 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
  1953. * grub-core/disk/diskfilter.c (is_lv_readable): New argument "easily".
  1954. All users updated. If easily=1 require raid-5/-6 to be full.
  1955. (is_node_readable): Likewise.
  1956. (scan_devices): Scan incomplete but readable LVs at the end.
  1957. (grub_diskfilter_memberlist): Pull missing devices.
  1958. (insert_array): Skip scanning until device is complete or scan is
  1959. done otherwise.
  1960. * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix wrong
  1961. check.
  1962. * include/grub/diskfilter.h (grub_diskfilter_lv): New member scanned.
  1963. * util/raid.c (grub_util_raid_getmembers): Handle "removed" disks.
  1964. 2012-03-03 Matthew Garrett <mjg@redhat.com>
  1965. 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
  1966. Avoid EFI boot services when loading Linux.
  1967. * grub-core/lib/i386/relocator.c (grub_relocator32_boot): New argument
  1968. avoid_efi_bootservices. All users updated.
  1969. * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): New
  1970. argument avoid_efi_bootservices. All users updated.
  1971. Use grub_efi_mmap_iterate on EFI, grub_mmap_iterate if available.
  1972. * grub-core/loader/i386/linux.c (allocate_pages): New arguments
  1973. align, min_align, relocatable, prefered_address. All users updated.
  1974. Allocate avoiding boot services if kernel is relocatable.
  1975. (grub_cmd_linux): Check if kernel is relocatable.
  1976. * grub-core/mmap/efi/mmap.c (grub_machine_mmap_iterate): Move most to ..
  1977. (grub_efi_mmap_iterate): ... here. New argument avoid_efi_boot_services.
  1978. Skip GRUB_EFI_BOOT_SERVICES_DATA and GRUB_EFI_BOOT_SERVICES_CODE if
  1979. avoid_efi_boot_services.
  1980. (grub_machine_mmap_iterate): Wrap grub_efi_mmap_iterate.
  1981. * include/grub/i386/linux.h (linux_kernel_header): Update to 2.10.
  1982. (linux_kernel_params): Likewise.
  1983. 2012-03-03 Matthew Garrett <mjg@redhat.com>
  1984. 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
  1985. Use EDID on EFI.
  1986. * grub-core/kern/efi/efi.c (grub_efi_get_variable): New argument
  1987. datasize_out.
  1988. * grub-core/video/efi_gop.c (check_protocol): Check that GOP has usable
  1989. modes. Set gop_handle.
  1990. (grub_video_gop_get_edid): New function.
  1991. (grub_gop_get_preferred_mode): Likewise.
  1992. (grub_video_gop_setup): Use grub_gop_get_preferred_mode.
  1993. (grub_video_efi_gop_adapter): Set .get_edid.
  1994. * include/grub/efi/edid.h: New file.
  1995. * include/grub/efi/efi.h (grub_efi_get_variable): Update proto.
  1996. 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
  1997. * util/grub-install.in: Load efivars unconditionally.
  1998. 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
  1999. * po/Rules-piglatin: Change suffix from .po-update-en to
  2000. .po-update-en-piglatin.
  2001. 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
  2002. Add a pig farm.
  2003. * po/piglatin.sed: New file.
  2004. * po/en@piglatin.header: Likewise.
  2005. * po/Rules-piglatin: Likewise.
  2006. * po/README: Add en@piglatin to autogenerated languages.
  2007. 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
  2008. * grub-core/commands/date.c (GRUB_MOD_INIT): Remove non-uniform
  2009. "Command for ...".
  2010. * grub-core/commands/hdparm.c (options): Use "Display" rather than
  2011. "Check" since we don't check anything.
  2012. * grub-core/commands/i386/cpuid.c (options): Clarify that long mode
  2013. is 64-bit one.
  2014. * grub-core/commands/search_wrap.c (options): Clarify the conditions.
  2015. * grub-core/disk/geli.c (grub_md_sha256_real): Fix typo.
  2016. (grub_md_sha512_real): Likewise.
  2017. 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
  2018. * grub-core/commands/gptsync.c: Fix typographic quoting.
  2019. * grub-core/commands/ieee1275/suspend.c: Likewise.
  2020. * grub-core/commands/parttool.c: Likewise.
  2021. * grub-core/commands/search_wrap.c: Likewise.
  2022. * grub-core/commands/videoinfo.c: Likewise.
  2023. * grub-core/gfxmenu/gui_label.c: Likewise.
  2024. * grub-core/hello/hello.c: Likewise.
  2025. * grub-core/kern/emu/main.c: Likewise.
  2026. * grub-core/net/net.c: Likewise.
  2027. * grub-core/normal/menu.c: Likewise.
  2028. * grub-core/normal/menu_text.c: Likewise.
  2029. * grub-core/normal/misc.c: Likewise.
  2030. * util/grub-editenv.c: Likewise.
  2031. * util/grub-install.in: Likewise.
  2032. * util/grub-kbdcomp.in: Likewise.
  2033. * util/grub-mkconfig.in: Likewise.
  2034. * util/grub-mknetdir.in: Likewise.
  2035. * util/grub-mkrescue.in: Likewise.
  2036. * util/grub-mkstandalone.in: Likewise.
  2037. * util/grub-reboot.in: Likewise.
  2038. * util/grub-set-default.in: Likewise.
  2039. * util/grub-setup.c: Likewise.
  2040. * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
  2041. 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
  2042. * grub-core/commands/acpihalt.c: Add TRANSLATORS comments.
  2043. * grub-core/commands/keystatus.c: Likewise.
  2044. * grub-core/commands/loadenv.c: Likewise.
  2045. * grub-core/commands/probe.c: Likewise.
  2046. * grub-core/commands/regexp.c: Likewise.
  2047. * grub-core/commands/true.c: Likewise.
  2048. * grub-core/commands/videoinfo.c: Likewise.
  2049. * grub-core/disk/cryptodisk.c: Likewise.
  2050. * grub-core/disk/ldm.c: Likewise.
  2051. * grub-core/disk/loopback.c: Likewise.
  2052. * grub-core/disk/luks.c: Likewise.
  2053. * grub-core/fs/zfs/zfsinfo.c: Likewise.
  2054. * grub-core/kern/disk.c: Likewise.
  2055. * grub-core/kern/emu/hostdisk.c: Likewise.
  2056. 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
  2057. * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS comment.
  2058. * util/grub-install.in: Add missing quote in the comment.
  2059. 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
  2060. * grub-core/commands/i386/pc/drivemap.c: Add TRANSLATORS comments.
  2061. * grub-core/commands/lsmmap.c: Likewise.
  2062. * grub-core/commands/minicmd.c: Likewise.
  2063. * grub-core/commands/mips/loongson/lsspd.c: Likewise.
  2064. * grub-core/commands/regexp.c: Likewise.
  2065. * grub-core/gdb/gdb.c: Likewise.
  2066. * grub-core/term/gfxterm.c: Likewise.
  2067. * util/grub-mkconfig.in: Likewise.
  2068. * util/grub-mkfont.c: Likewise.
  2069. * util/grub-mklayout.c: Likewise.
  2070. * util/grub-mknetdir.in: Likewise.
  2071. * util/grub-mkrescue.in: Likewise.
  2072. * util/grub.d/30_os-prober.in: Likewise.
  2073. 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
  2074. * grub-core/commands/videoinfo.c (hook): Replace "Direct"
  2075. with "Direct color" and "Packed" with "Packed pixel".
  2076. (grub_cmd_videoinfo): Simplify legend.
  2077. 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
  2078. * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
  2079. absolutely unclear error message.
  2080. 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
  2081. * util/grub-mkstandalone.in: Remove confusing leftover print.
  2082. 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
  2083. * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS
  2084. comments.
  2085. * grub-core/gdb/gdb.c (grub_cmd_gdbstub): Likewise.
  2086. (GRUB_MOD_INIT): Likewise.
  2087. * grub-core/loader/i386/linux.c (grub_cmd_linux): Clarify that it's
  2088. VGA mode.
  2089. * grub-core/net/net.c (grub_net_route_address): Add TRANSLATORS
  2090. comments.
  2091. * util/grub-install.in (usage): Likewise.
  2092. Spell ID in whole letters.
  2093. Add missing ending dot.
  2094. Quote variables.
  2095. * util/grub-reboot.in: Fix capitalisation.
  2096. * util/grub-set-default.in: Likewise.
  2097. 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
  2098. * util/getroot.c (strip_extra_slashes) [CYGWIN]: #ifdef-out.
  2099. (exec_pipe) [CYGWIN || MINGW32]: Likewise.
  2100. (find_root_devices_from_poolname) [CYGWIN || MINGW32]: Likewise.
  2101. (find_root_devices_from_libzfs) [CYGWIN || MINGW32]: Likewise.
  2102. Disable -Werror for -Wdeprecated-declarations.
  2103. (grub_guess_root_devices) [CYGWIN || MINGW32]: #ifdef-out.
  2104. (get_dm_uuid) [!HAVE_DEVICE_MAPPER]: Likewise.
  2105. (grub_util_get_dm_abstraction) [! __linux__]: #ifdef-out.
  2106. (grub_util_get_grub_dev): Make luks handling dependent on
  2107. HAVE_DEVICE_MAPPER and not __linux__.
  2108. (get_win32_path): Fix format security.
  2109. (grub_find_zpool_from_dir) [CYGWIN || MINGW32]: #ifdef-out.
  2110. (grub_make_system_path_relative_to_its_root) [CYGWIN || MINGW32]:
  2111. Don't try grub_find_zpool_from_dir.
  2112. (grub_make_system_path_relative_to_its_root) [!__linux__]:
  2113. #ifdef-out paresdir.
  2114. 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
  2115. * util/grub-pe2elf.c (usage): Add missing noreturn.
  2116. (write_section_data): Rename name to shname to avoid shadowing.
  2117. (write_symbol_table): Rename name to symname to avoid shadowing.
  2118. Fix write_reloc_section call.
  2119. 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
  2120. * grub-core/boot/i386/pc/startup_raw.S: Move decompressor_end to .bss
  2121. to ensure that it's after the last byte of .text.
  2122. 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
  2123. * util/ieee1275/ofpath.c (my_isdigit): New function.
  2124. (trailing_digits): Use my_isdigit.
  2125. (strip_trailing_digits): Likewise.
  2126. 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
  2127. * util/resolve.c (read_dep_list): Use grub_isspace instead of isspace.
  2128. * grub-core/kern/emu/hostdisk.c (read_device_map): Likewise.
  2129. 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
  2130. * grub-core/kern/i386/pc/startup.S: Define __start.
  2131. 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
  2132. * gentpl.py (kernel): Remove the use of TARGET_OBJ2ELF after strip since
  2133. strip already transforms he format.
  2134. 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
  2135. * conf/i386-pc-cygwin-img-ld.sc: Define also _edata and __edata.
  2136. 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
  2137. * util/grub-install.in: Add missing gettext init.
  2138. * util/grub-kbdcomp.in: Likewise.
  2139. * util/grub-mkconfig.in: Likewise.
  2140. * util/grub-mknetdir.in: Likewise.
  2141. * util/grub-mkrescue.in: Likewise.
  2142. * util/grub-mkstandalone.in: Likewise.
  2143. * util/grub-reboot.in: Likewise.
  2144. * util/grub-set-default.in: Likewise.
  2145. * util/grub.d/00_header.in: Likewise.
  2146. * util/grub.d/10_hurd.in: Likewise.
  2147. * util/grub.d/10_windows.in: Likewise.
  2148. * util/grub.d/30_os-prober.in: Likewise.
  2149. * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
  2150. 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
  2151. * po/Rules-swiss: Fix header comment.
  2152. 2012-02-29 Andreas Vogel <anvoit>
  2153. * grub-core/kern/misc.c (grub_xvasprintf): Fix an exit path which
  2154. resulted in leak of arguments.
  2155. 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
  2156. * grub-core/boot/i386/pc/startup_raw.S: Use separate
  2157. reed_solomon_size const definition instead of computing it since
  2158. Apple assembler doesn't support the later.
  2159. 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
  2160. * gentpl.py (kernel): Rewrite Apple part.
  2161. 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
  2162. * include/grub/kernel.h (FOR_MODULES): Check module magic.
  2163. 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
  2164. * util/grub-mkimagexx.c (locate_sections): Support non-standard
  2165. ELF section gap.
  2166. (load_image): Likewise.
  2167. 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
  2168. * configure.ac: Fix a typo in previous commit.
  2169. 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
  2170. Don't add -Wl,-N on Apple platform.
  2171. * configure.ac (TARGET_LDFLAGS_OLDMAGIC): New subst.
  2172. * conf/Makefile.common: Use TARGET_LDFLAGS_OLDMAGIC instead of -Wl,-N
  2173. 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
  2174. * grub-core/Makefile.core.def (lzma_decompress): Use
  2175. TARGET_IMG_BASE_LDOPT rather than hardcoding -Wl,-Ttext.
  2176. 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
  2177. * grub-core/genmod.sh.in: Rewrite the Apple part.
  2178. 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
  2179. * grub-core/loader/machoXX.c (grub_macho_load): Fix signed vs unsigned
  2180. comparison.
  2181. 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
  2182. * acinclude.m4 (grub_CHECK_PIC): New test.
  2183. * configure.ac: Add -fno-PIC to TARGET_CFLAGS if -fPIC is default.
  2184. 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
  2185. * include/grub/libgcc.h (__STDC_VERSION__): Define if it's not yet so
  2186. to avoid the warning.
  2187. 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
  2188. * grub-core/boot/i386/pc/diskboot.S (firstlist): Rename to ...
  2189. (LOCAL(firstlist)): ... this. Move it before the firstlist and not
  2190. after. All users updated.
  2191. 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
  2192. Use the common size routine in hostfs so we can read disks as well.
  2193. * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Rename to ..
  2194. (grub_util_get_fd_size): ... this. Return size in bytes.
  2195. All users updated.
  2196. * grub-core/kern/emu/hostfs.c (grub_hostfs_open): Use
  2197. grub_util_get_fd_size.
  2198. 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
  2199. * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__APPLE__]:
  2200. Add blocksize retrieval.
  2201. 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
  2202. * configure.ac: Restore CFLAGS after efiemu check.
  2203. 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
  2204. * configure.ac: Move -fnested-functions to CPPFLAGS to workaround
  2205. Apple bug.
  2206. 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
  2207. * grub-core/Makefile.am (MACHO2IMG): Add missing variable.
  2208. 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
  2209. * grub-core/commands/i386/pc/halt.c (grub_halt): Add noreturn attribute.
  2210. (grub_cmd_halt): Likewise.
  2211. 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
  2212. * grub-core/lib/i386/relocator16.S: Declare LOCAL(relocator16_end)
  2213. for local arithmetics.
  2214. Break %sp init into 2 instructions.
  2215. Add 0 byte at the end.
  2216. 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
  2217. * grub-core/disk/diskfilter.c (read_segment): Initialise err
  2218. before loops.
  2219. 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
  2220. * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Use void *
  2221. for context.
  2222. 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
  2223. * grub-core/disk/ldm.c (make_vg): Init part.name.
  2224. (grub_ldm_detect): Silence spurious warning.
  2225. (grub_util_is_ldm): Likewise.
  2226. 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
  2227. * grub-core/loader/i386/xnu.c (grub_xnu_boot): Init fsbfreq to
  2228. sane value to avoid a spurious warning.
  2229. 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
  2230. * include/grub/dl.h: Switch from APPLE_CC to __APPLE__.
  2231. (GRUB_MOD_LICENSE) [ASM_FILE]: Make into macro. All users updated.
  2232. 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
  2233. * include/grub/symbol.h (EXT_C) [!ASM_FILE]: Redefine with strings.
  2234. * grub-core/lib/i386/backtrace.c (grub_backtrace): Use EXT_C.
  2235. 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
  2236. * grub-core/gdb/i386/machdep.S: Use VARIABLE and EXT_C instead of
  2237. hardcoding the relevant info.
  2238. 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
  2239. * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Add
  2240. missing const qualifiers.
  2241. * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): Likewise.
  2242. 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
  2243. * util/getroot.c [__APPLE__]: Add missing includes.
  2244. (grub_util_biosdisk_is_floppy): Fix usage of undefined variable.
  2245. 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
  2246. * util/grub-mkimage.c (generate_image): Silence spurious warning.
  2247. 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
  2248. * util/ieee1275/ofpath.c: Rename devname to sys_devname everywhere to
  2249. avoid conflicts.
  2250. 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
  2251. * util/ieee1275/grub-ofpathname.c: Add missing config.h include.
  2252. 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
  2253. * util/grub-setup.c (setup) [!__linux__]: Add missing file declaration
  2254. and grub_file_close call.
  2255. 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
  2256. Add LZSS Mach-O support (needed for new xnu kernelcache).
  2257. * grub-core/Makefile.core.def (xnu): Add file lzss.c
  2258. * grub-core/loader/lzss.c: New file.
  2259. * grub-core/loader/xnu.c (grub_xnu_load_driver): Close binaryfile
  2260. on Mach-O open failure.
  2261. * grub-core/loader/macho.c (grub_macho_close): Free uncompressedXX.
  2262. Don't free cmdsXX in uncompressedXX is set.
  2263. (grub_macho_file): Init new fields.
  2264. New argument is_64bit. All users updated.
  2265. Handle compressed. Error out if no suitable architecture is found.
  2266. Don't close file.
  2267. (grub_macho_open): New argument is_64bit. All users updated.
  2268. * grub-core/loader/macho32.c: Add defines for new fields.
  2269. * grub-core/loader/macho64.c: Likewise.
  2270. * grub-core/loader/machoXX.c (grub_macho_contains_macho): Make static.
  2271. (grub_macho_parse): Handle compressed.
  2272. Defer actual processing if compressed.
  2273. (grub_macho_cmds_iterate): Decompress if compressed. New argument
  2274. "filename". All users updated.
  2275. (grub_macho_size): New argument "filename". All users updated.
  2276. (grub_macho_get_entry_point): Likewise.
  2277. (grub_macho_load): Handle compressed.
  2278. * include/grub/macho.h (grub_macho_lzss_header): New struct.
  2279. (GRUB_MACHO_LZSS_OFFSET): New define.
  2280. (grub_decompress_lzss): New proto.
  2281. * include/grub/machoload.h (grub_macho_file): New fields to handle
  2282. compressed.
  2283. (grub_macho_contains_macho64): Remove proto.
  2284. (grub_macho_contains_macho32): Likewise.
  2285. * util/grub.d/30_os-prober.in: Use kernel cache if available.
  2286. 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
  2287. * grub-core/disk/pata.c (grub_pata_readwrite): Fix ATAPI protocol error.
  2288. 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
  2289. Fix make dist.
  2290. * Makefile.am (starfield_theme_files): New var.
  2291. (starfield_DATA): Use starfield_theme_files.
  2292. (EXTRA_DIST): Add starfield_theme_files. Add starfield source files.
  2293. Add bootcheck-related files.
  2294. * conf/Makefile.extra-dist (EXTRA_DIST): Add several missing files.
  2295. * docs/Makefile.am (EXTRA_DIST): Add font_char_metrics.png
  2296. and font_char_metrics.txt.
  2297. * grub-core/Makefile.core.def (kernel): Update extra_dist.
  2298. (setjmp): Add lib/ia64/longjmp.S.
  2299. * po/Makefile.in.in (DISTFILES): Add POTFILES-shell.in and grub.d.sed.
  2300. * po/POTFILES.in: Regenerate.
  2301. * po/Rules-swiss: use DISTFILES.common.extra2 and not
  2302. DISTFILES.common.extra1.
  2303. * util/devicemap.c: Removed.
  2304. * grub-core/lib/i386/relocator_backward.S: Likewise.
  2305. * util/import_gcry.py: Remove unused files. Add extra_dist for
  2306. ChangeLog.
  2307. 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
  2308. * grub-core/gettext/gettext.c (grub_mofile_open): Call
  2309. grub_gettext_delete_list before changing grub_gettext_max to avoid
  2310. running out of array bounds.
  2311. 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
  2312. * grub-core/term/i386/pc/vga_text.c: Add GRUB_MACHINE_MULTIBOOT to
  2313. grub_vga_text_init/grub_vga_text_fini.
  2314. 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
  2315. * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix format specification.
  2316. 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
  2317. * configure.ac: Bump to 2.00~beta0.
  2318. 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
  2319. * util/getroot.c (grub_find_root_devices_from_btrfs): Add
  2320. missing initialisation.
  2321. 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
  2322. * grub-core/partmap/msdos.c (message_warn): Clarify messages.
  2323. 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
  2324. Support v2 xnu boot arguments.
  2325. * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree):
  2326. New argument fsbfreq_out.
  2327. (grub_xnu_set_video): Receive an argument grub_xnu_boot_params_common.
  2328. (grub_xnu_boot): Support v2 arguments. Disable PIC so that APIC can
  2329. be used.
  2330. * grub-core/loader/machoXX.c (grub_macho_load): New argument
  2331. darwin_version.
  2332. * grub-core/loader/xnu.c (grub_xnu_darwin_version): New variable.
  2333. * include/grub/i386/xnu.h (grub_xnu_boot_params_common): New struct.
  2334. (grub_xnu_boot_params): Rename to ...
  2335. (grub_xnu_boot_params_v1): ...this. Use grub_xnu_boot_params_common.
  2336. (grub_xnu_boot_params_v2): New struct.
  2337. 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
  2338. * grub-core/efiemu/prepare.c (grub_efiemu_crc): Add missing
  2339. zeroing of CRC field before computing CRC.
  2340. 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
  2341. * grub-core/lib/relocator.c (malloc_in_range): Fix memory leak.
  2342. Change order of allocations to decrease fragmentation.
  2343. 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
  2344. * Makefile.util.def (grub-ofpathname): Enable on all platforms.
  2345. 2012-02-27 Colin Watson <cjwatson@ubuntu.com>
  2346. Use write-combining MTRR to speed up video with buggy BIOSes.
  2347. * grub-core/video/i386/pc/vbe.c (framebuffer): New member mtrr.
  2348. (cpuid): New define.
  2349. (rdmsr): Likewise.
  2350. (wrmsr): Likewise.
  2351. (mtrr_base): Likewise.
  2352. (mtrr_mask): Likewise.
  2353. (grub_vbe_enable_mtrr_entry): New function.
  2354. (grub_vbe_enable_mtrr): Likewise.
  2355. (grub_vbe_disable_mtrr): Likewise.
  2356. (grub_vbe_bios_set_display_start): Disable mtrr when handing the
  2357. control off to BIOS.
  2358. (grub_video_vbe_init): Fill mtrr.
  2359. (grub_video_vbe_fini): Disable mtrr.
  2360. (grub_video_vbe_get_info_and_fini): Likewise.
  2361. (grub_video_vbe_setup): Enable mtrr.
  2362. 2012-02-27 Colin Watson <cjwatson@ubuntu.com>
  2363. * include/grub/partition.h (grub_partition_map): Change prototype of
  2364. embed to take a maximum value for nsectors.
  2365. * include/grub/emu/hostdisk.h (grub_util_ldm_embed): Likewise.
  2366. * include/grub/fs.h (grub_fs): Likewise.
  2367. * grub-core/partmap/msdos.c (embed_signatures): New array.
  2368. (pc_partition_map_embed): Check for and avoid sectors matching any
  2369. of the signatures in embed_signatures, up to max_nsectors.
  2370. * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restrict
  2371. returned sector map to max_nsectors.
  2372. * grub-core/disk/ldm.c (grub_util_ldm_embed): Likewise.
  2373. * grub-core/fs/btrfs.c (grub_btrfs_embed): Likewise.
  2374. * grub-core/fs/zfs/zfs.c (grub_zfs_embed): Likewise.
  2375. * util/grub-setup.c (setup): Allow for the embedding area being
  2376. split into multiple blocklists. Tell dest_partmap->embed the
  2377. maximum number of sectors we care about.
  2378. 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
  2379. * include/grub/fs.h (grub_fs) [GRUB_UTIL]: Add blocklist_install field.
  2380. Specify blocklist_install and reserver_first_sector for all fs.
  2381. * util/grub-setup.c (setup): Use FIBMAP/FIEMAP on Linux. Check resulting
  2382. blocklists.
  2383. 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
  2384. * util/grub-install.in: Clarify strings.
  2385. Fix source dir check.
  2386. 2012-02-27 Richard Laager <rlaager@wiktel.com>
  2387. * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle
  2388. "zfs" and "fuse.zfs" as synonyms.
  2389. 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
  2390. * configure.ac: Put platform and target_cpu substitutions back since
  2391. they are used for directories.
  2392. 2012-02-27 Richard Laager <rlaager@wiktel.com>
  2393. 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
  2394. * util/grub.d/10_linux.in: Add ZFS-related arguments.
  2395. * util/grub.d/20_linux_xen.in: Likewise.
  2396. 2012-02-27 Richard Laager <rlaager@wiktel.com>
  2397. * util/getroot.c (find_root_devices_from_poolname): Handle vdevs
  2398. with full paths.
  2399. 2012-02-27 Richard Laager <rlaager@wiktel.com>
  2400. * util/getroot.c (grub_find_root_devices_from_mountinfo): Add missing
  2401. unescape.
  2402. 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
  2403. Don't use insecure popen in getroot.
  2404. * util/getroot.c (get_mdadm_uuid): Move pipe logic to ...
  2405. (exec_pipe): ... here.
  2406. (find_root_devices_from_poolname): Use exec_pipe.
  2407. 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
  2408. Remove platform and target_cpu replacement.
  2409. * configure.ac: Remove platform and target_cpu substitutions.
  2410. * tests/util/grub-shell.in: Use modinfo.
  2411. * util/powerpc/ieee1275/grub-mkrescue.in: Specify powerpc-ieee1275
  2412. explicitly.
  2413. 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
  2414. Autodetect platform in grub-install but allow override.
  2415. * util/grub-install.in: Autodetect platform. Support --target and
  2416. --directory. Read platform from modinfo.sh.
  2417. 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
  2418. Support btrfs multi-volume probe.
  2419. * util/getroot.c (btrfs_ioctl_dev_info_args) [__linux__]: New struct.
  2420. (btrfs_ioctl_fs_info_args) [__linux__]: Likewise.
  2421. (BTRFS_IOC_DEV_INFO) [__linux__]: New define.
  2422. (BTRFS_IOC_FS_INFO) [__linux__]: Likewise.
  2423. (grub_find_root_devices_from_btrfs) [__linux__]: New function.
  2424. (grub_find_root_devices_from_mountinfo) [__linux__]: Use
  2425. grub_find_root_devices_from_btrfs if on btrfs.
  2426. 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
  2427. Remove any awareness of *.c util files about target.
  2428. * Makefile.util.def (grub-setup): Split to ...
  2429. (grub-bios-setup): ... and this.
  2430. (grub-sparc64-setup): ... and this.
  2431. * configure.ac: Don't add machine_CPPFLAGS into HOST_CPPFLAGS.
  2432. * docs/man/grub-setup.h2m: Split into ...
  2433. * docs/man/grub-sparc64-setup.h2m: ... this.
  2434. * docs/man/grub-bios-setup.h2m: ... and this.
  2435. * include/grub/dl.h (grub_dl) [GRUB_UTIL]: Remove struct.
  2436. * include/grub/elf.h (Elf_*) [GRUB_UTIL]: Remove types.
  2437. (GRUB_TARGET_WORDSIZE) [GRUB_UTIL]: Remove.
  2438. (grub_target_addr_t): Remove.
  2439. (grub_target_size_t): Remove.
  2440. (grub_target_ssize_t): Remove.
  2441. * util/grub-install.in: Use new grub-*-setup.
  2442. * util/grub-mkimagexx.c (Elf_Word): New define.
  2443. (Elf_Half): Likewise.
  2444. (Elf_Section): Likewise.
  2445. (ELF_ST_TYPE): Likewise.
  2446. * util/grub-setup.c: Switch from GRUB_MACHINE_SPARC64 to
  2447. GRUB_SETUP_SPARC64 and from GRUB_MACHINE_PCBIOS to GRUB_SETUP_BIOS.
  2448. 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
  2449. Replace grub_target_addr with more appropriate types.
  2450. * grub-core/commands/efi/fixvideo.c (scan_card): Replace
  2451. grub_target_addr with grub_addr.
  2452. * grub-core/commands/iorw.c (grub_cmd_read): Replace
  2453. grub_target_addr with grub_port.
  2454. (grub_cmd_write): Likewise.
  2455. * grub-core/commands/memrw.c (grub_cmd_read): Replace
  2456. grub_target_addr with grub_addr.
  2457. (grub_cmd_write): Likewise.
  2458. * grub-core/video/efi_uga.c (find_line_len): Likewise.
  2459. 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
  2460. * include/grub/efi/api.h (grub_efi_runtime_services): Add missing
  2461. const qualifier for vendor_guid.
  2462. 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
  2463. * grub-core/efiemu/runtime/efiemu.c (efiemu_get_variable): Add missing
  2464. const qualifier.
  2465. (efiemu_memequal): Likewise.
  2466. (find_variable): Likewise.
  2467. 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
  2468. Fix missing console prototype on qemu-mips.
  2469. * include/grub/mips/qemu_mips/console.h: New file.
  2470. 2012-02-27 Matthew Garrett <mjg@redhat.com>
  2471. 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
  2472. * grub-core/kern/efi/efi.c (grub_efi_get_variable): Add new function.
  2473. * include/grub/efi/efi.h: Likewise.
  2474. * include/grub/efi/api.h: Add guid for EFI-specified variables.
  2475. * include/grub/charset.h (GRUB_MAX_UTF16_PER_UTF8): New definition.
  2476. * grub-core/normal/charset.c (grub_utf8_process): Move from here ...
  2477. * include/grub/charset.h (grub_utf8_process): ... to here. Inline.
  2478. * grub-core/normal/charset.c (grub_utf8_to_utf16): Move from here ...
  2479. * include/grub/charset.h (grub_utf8_to_utf16): ... to here. Inline.
  2480. 2012-02-27 Matthew Garrett <mjg@redhat.com>
  2481. * include/grub/efi/pci.h: New file to define EFI PCI protocols.
  2482. 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
  2483. * grub-core/disk/diskfilter.c (grub_diskfilter_iterate): Fix off-by-one
  2484. error.
  2485. 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
  2486. * configure.ac: Remove inappropriate use of program_transform_name
  2487. on grubdir and bootdir but allow explicit specification of those
  2488. variables.
  2489. 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
  2490. * util/grub-mknetdir.in (grub_prefix): Removed.
  2491. (subdir): Use @bootdirname@ and @grubdirname@.
  2492. 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
  2493. Replace PACKAGE_TARNAME with PACKAGE in pkglibdir and pkgdatadir.
  2494. 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
  2495. * po/POTFILES.in: Regenerated.
  2496. 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
  2497. Remove improper use of program_transform_name on pkglibrootdir.
  2498. * configure.ac (pkglibrootdir): Removed.
  2499. (grub-mkimage): Replace PKGLIBROOTDIR with PKGLIBDIR.
  2500. * util/grub-mkimage.c: Likewise.
  2501. 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
  2502. * grub-core/normal/menu_text.c (grub_print_message_indented_real): Fix a
  2503. warning.
  2504. 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
  2505. * util/grub-install.in: Use file identifier if no UUID is available
  2506. or user explicitly prompted for it.
  2507. 2012-02-27 Navdeep Parhar <nparhar@gmail.com>
  2508. * grub-core/loader/i386/bsd.c (freebsd_zfsguid): New variable.
  2509. (freebsd_get_zfs): New function.
  2510. (grub_freebsd_boot): Pass zfs UUID.
  2511. (grub_cmd_freebsd): Set zfs UUID.
  2512. 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
  2513. * conf/Makefile.common (platformdir): Base on pkglibdir and not
  2514. pkglibrootdir.
  2515. 2012-02-27 Mike Gilbert <floppym@gentoo.org>
  2516. Add configure flag to control libzfs integration.
  2517. * configure.ac: Add AC_ARG_ENABLE(libzfs ...) and associated logic.
  2518. 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
  2519. * grub-core/disk/diskfilter.c (insert_array): Choose the smallest
  2520. device.
  2521. * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Reject too
  2522. small devices.
  2523. 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
  2524. Remove grub_{modname}_init and grub_{modname}_fini. They should never
  2525. be used directly if it's really a module and GRUB_MOD_INIT shouldn't
  2526. be used on non-modules.
  2527. * grub-core/commands/boot.c (GRUB_MOD_INIT) [LOONGSON || QEMU_MIPS]:
  2528. Rename to grub_boot_init.
  2529. (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_boot_fini.
  2530. * grub-core/commands/keylayouts.c (GRUB_MOD_INIT)
  2531. [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_init.
  2532. (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_fini.
  2533. * grub-core/font/font_cmd.c (GRUB_MOD_INIT)
  2534. [LOONGSON || QEMU_MIPS]: Rename to grub_font_init.
  2535. (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_font_fini.
  2536. * grub-core/kern/mips/loongson/init.c: Replace explicit protos with
  2537. includes.
  2538. (grub_machine_init): Remove empty inits.
  2539. * grub-core/kern/mips/qemu_mips/init.c: Replace explicit protos with
  2540. includes.
  2541. (grub_machine_init): Remove empty inits.
  2542. * grub-core/term/arc/console.c: Remove explicit proto.
  2543. * grub-core/term/at_keyboard.c (GRUB_MOD_INIT)
  2544. [LOONGSON || QEMU_MIPS]: Rename to grub_at_keyboard_init.
  2545. (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
  2546. grub_at_keyboard_fini.
  2547. * grub-core/term/gfxterm.c (GRUB_MOD_INIT)
  2548. [LOONGSON || QEMU_MIPS]: Rename to grub_gfxterm_init.
  2549. (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
  2550. grub_gfxterm_fini.
  2551. * grub-core/term/i386/pc/vga_text.c (GRUB_MOD_INIT)
  2552. [LOONGSON || QEMU_MIPS]: Rename to grub_vgatext_init.
  2553. (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
  2554. grub_vgatext_fini.
  2555. * grub-core/term/ieee1275/console.c: Remove explicit proto.
  2556. * grub-core/term/serial.c (GRUB_MOD_INIT)
  2557. [LOONGSON || QEMU_MIPS]: Rename to grub_serial_init.
  2558. (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
  2559. grub_serial_fini.
  2560. * grub-core/term/terminfo.c (GRUB_MOD_INIT)
  2561. [LOONGSON || QEMU_MIPS]: Rename to grub_terminfo_init.
  2562. (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
  2563. grub_terminfo_fini.
  2564. * grub-core/video/bitmap.c (GRUB_MOD_INIT): Removed.
  2565. (GRUB_MOD_FINI): Likewise.
  2566. * grub-core/video/radeon_fuloong2e.c (GRUB_MOD_INIT)
  2567. [LOONGSON]: Rename to grub_video_radeon_fuloong2e_init.
  2568. (GRUB_MOD_FINI) [LOONGSON]: Rename to
  2569. grub_video_radeon_fuloong2e_fini.
  2570. * grub-core/video/sis315pro.c (GRUB_MOD_INIT)
  2571. [LOONGSON]: Rename to grub_video_sis315pro_init.
  2572. (GRUB_MOD_FINI) [LOONGSON]: Rename to
  2573. grub_video_sis315pro_fini.
  2574. * grub-core/video/sm712.c (GRUB_MOD_INIT)
  2575. [LOONGSON]: Rename to grub_video_sm712_init.
  2576. (GRUB_MOD_FINI) [LOONGSON]: Rename to
  2577. grub_video_sm712_fini.
  2578. * include/grub/at_keyboard.h (grub_at_keyboard_init): New proto.
  2579. (grub_at_keyboard_fini): Likewise.
  2580. * include/grub/dl.h (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]:
  2581. Don't declare grub_{modname}_init.
  2582. (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]: Don't declare grub_{modname}_fini.
  2583. * include/grub/keyboard_layouts.h (grub_keylayouts_init) [!EMU]:
  2584. New proto.
  2585. (grub_keylayouts_fini) [!EMU]: Likewise.
  2586. * include/grub/serial.h (grub_serial_init) [!EMU]:
  2587. New proto.
  2588. (grub_serial_fini) [!EMU]: Likewise.
  2589. * include/grub/terminfo.h (grub_terminfo_init) [!EMU]:
  2590. New proto.
  2591. (grub_terminfo_fini) [!EMU]: Likewise.
  2592. * include/grub/video.h (grub_font_init) [!EMU]:
  2593. New proto.
  2594. (grub_font_fini) [!EMU]: Likewise.
  2595. (grub_gfxterm_init) [!EMU]: Likewise.
  2596. (grub_gfxterm_fini) [!EMU]: Likewise.
  2597. (grub_video_sm712_init) [!EMU]: Likewise.
  2598. (grub_video_sm712_fini) [!EMU]: Likewise.
  2599. (grub_video_sis315pro_init) [!EMU]: Likewise.
  2600. (grub_video_sis315pro_fini) [!EMU]: Likewise.
  2601. (grub_video_radeon_fuloong2e_init) [!EMU]: Likewise.
  2602. (grub_video_radeon_fuloong2e_fini) [!EMU]: Likewise.
  2603. 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
  2604. Make nand a prefix for nand devices.
  2605. * grub-core/disk/ieee1275/nand.c (grub_nand_open): Use prefix nand.
  2606. 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
  2607. * grub-core/kern/misc.c (grub_stpcpy): Move from here ...
  2608. * include/grub/misc.h (grub_stpcpy): ... to here. Inlined.
  2609. 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
  2610. * include/grub/env.h (grub_env_find): Remove prototype.
  2611. * grub-core/kern/env.c (grub_env_find): Make static.
  2612. (grub_env_set): Remove useless set.
  2613. 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
  2614. * grub-core/kern/i386/realmode.S: Remove useless align.
  2615. 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
  2616. * include/grub/dl.h (grub_dl_load_file): Don't export.
  2617. 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
  2618. * grub-core/disk/diskfilter.c (grub_diskfilter_open): Remove useless
  2619. grub_dprintf.
  2620. 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
  2621. * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Remove useless
  2622. grub_errors.
  2623. * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Simplify by
  2624. not reloading whole superblock but only the part which is really needed.
  2625. Remove useless grub_errors.
  2626. * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Remove useless
  2627. grub_errors.
  2628. 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
  2629. Don't export grub_get_rtc.
  2630. * include/grub/i386/pc/time.h (grub_get_rtc): Don't export.
  2631. * grub-core/commands/i386/pc/play.c (play): Use grub_get_time_ms.
  2632. 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
  2633. * grub-core/genmod.sh.in: Add -R .note.GNU-stack to strip.
  2634. 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
  2635. * grub-core/disk/diskfilter.c (insert_array): Remove scanner_name
  2636. argument since it can be deduced from diskfilter. All users updated.
  2637. 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
  2638. Remove prio_list.
  2639. * include/grub/list.h (grub_prio_list): Removed.
  2640. (GRUB_PRIO_LIST_PRIO_MASK): Removed. All users switched to
  2641. GRUB_COMMAND_PRIO_MASK.
  2642. (GRUB_PRIO_LIST_FLAG_ACTIVE): Removed. All users switched to
  2643. GRUB_COMMAND_FLAG_ACTIVE.
  2644. (grub_prio_list_insert): Removed.
  2645. (grub_prio_list_remove): Likewise.
  2646. (GRUB_AS_PRIO_LIST): Likewise.
  2647. (GRUB_AS_PRIO_LIST_P): Likewise.
  2648. * include/grub/command.h (GRUB_COMMAND_PRIO_MASK): New define.
  2649. (GRUB_COMMAND_FLAG_ACTIVE): Likewise.
  2650. * grub-core/kern/list.c (grub_prio_list_insert): Remove.
  2651. * grub-core/kern/command.c (grub_register_command_prio): Inline
  2652. the prio_list code.
  2653. (grub_unregister_command): Likewise.
  2654. 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
  2655. Fix interrupt mixup from previous commit.
  2656. * include/grub/i386/pc/int.h (grub_i386_idt): New struct.
  2657. (grub_realidt): New var.
  2658. * grub-core/lib/i386/relocator16.S (grub_relocator16_idt): New variable
  2659. Load idt.
  2660. * grub-core/lib/i386/relocator.c (grub_relocator16_idt):
  2661. New declaration.
  2662. (grub_relocator16_boot): Set grub_relocator16_idt.
  2663. * grub-core/kern/i386/realmode.S (realidt): Renamed to ...
  2664. (LOCAL(realidt)): ... this.
  2665. * grub-core/boot/i386/pc/startup_raw.S: Pass pointer to realidt in eax.
  2666. * grub-core/kern/i386/pc/startup.S: Save pointer to realidt.
  2667. (grub_realidt): New variable.
  2668. 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
  2669. * grub-core/lib/i386/backtrace.c (grub_cmd_backtrace): Move from ...
  2670. * grub-core/lib/backtrace.c (grub_cmd_backtrace): ... to here.
  2671. * grub-core/lib/i386/backtrace.c (GRUB_MOD_INIT): Move from ...
  2672. * grub-core/lib/backtrace.c (GRUB_MOD_INIT): ... to here.
  2673. Gettextize.
  2674. * grub-core/lib/i386/backtrace.c (GRUB_MOD_FINI): Move from ...
  2675. * grub-core/lib/backtrace.c (GRUB_MOD_FINI): ... to here.
  2676. * po/POTFILES.in: Regenerate.
  2677. 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
  2678. * grub-core/commands/probe.c (grub_cmd_probe): Gettextise UUID and label
  2679. errors.
  2680. 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
  2681. * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Stop on
  2682. \0.
  2683. (add_length): Likewise.
  2684. 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
  2685. 2012-02-26 Lubomir Kundrak <lkundrak@redhat.com>
  2686. GDB serial and backtrace support.
  2687. * grub-core/kern/i386/realmode.S (real_to_prot): Reload IDT.
  2688. (prot_to_real): Likewise.
  2689. * grub-core/kern/i386/int.S (grub_bios_interrupt): Remove IDT reload.
  2690. * grub-core/Makefile.core.def (backtrace): New module.
  2691. (gdb): Likewise.
  2692. * grub-core/gdb/cstub.c: New file.
  2693. * grub-core/gdb/gdb.c: Likewise.
  2694. * grub-core/gdb/i386/idt.c: Likewise.
  2695. * grub-core/gdb/i386/machdep.S: Likewise.
  2696. * grub-core/gdb/i386/signal.c: Likewise.
  2697. * grub-core/lib/i386/backtrace.c: Likewise.
  2698. * grub-core/lib/backtrace.c: Likewise.
  2699. * include/grub/backtrace.h: Likewise.
  2700. * include/grub/gdb.h: Likewise.
  2701. * include/grub/i386/gdb.h: Likewise.
  2702. 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
  2703. * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len):
  2704. New function.
  2705. (add_length): Likewise.
  2706. (__argp_fmtstream_update): Handle strings with non-ASCII chars.
  2707. * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): New
  2708. proto.
  2709. * grub-core/gnulib/argp-help.c (argp_args_usage): Use
  2710. __argp_get_display_len.
  2711. 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
  2712. $"..." support in scripts.
  2713. * grub-core/script/execute.c (grub_script_arglist_to_argv): Handle
  2714. GRUB_SCRIPT_ARG_TYPE_GETTEXT.
  2715. * grub-core/script/yylex.l: Likewise.
  2716. * include/grub/script_sh.h (GRUB_SCRIPT_ARG_TYPE_GETTEXT): New enum
  2717. value.
  2718. 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
  2719. * gentpl.py: Remove obsolete pkglib_DATA handling.
  2720. 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
  2721. Don't transform PACKAGE_TARNAME following a discussion on autoconf
  2722. mailing list.
  2723. * util/grub-install.in: Don't transform PACKAGE_TARNAME.
  2724. * util/grub-kbdcomp.in: Likewise.
  2725. * util/grub-mkconfig.in: Likewise.
  2726. * util/grub-mkconfig_lib.in: Likewise.
  2727. * util/grub-mknetdir.in: Likewise.
  2728. * util/grub-mkrescue.in: Likewise.
  2729. * util/grub-mkstandalone.in: Likewise.
  2730. * util/grub-reboot.in: Likewise.
  2731. * util/grub-set-default.in: Likewise.
  2732. * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
  2733. 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
  2734. Remove GRUB_PREFIX.
  2735. * util/grub-mkconfig.in: Remove GRUB_PREFIX.
  2736. * util/grub.d/00_header.in: Compute prefix in the only place it's still
  2737. used for backward compatibility.
  2738. 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
  2739. Add new all_video module.
  2740. * grub-core/Makefile.am (moddep.lst): Make dependent on video.lst.
  2741. * grub-core/Makefile.core.def (all_video): New module.
  2742. * grub-core/genmoddep.awk: Generate dependency of all_video from
  2743. video.lst.
  2744. * grub-core/lib/fake_module.c: New file.
  2745. * grub-core/normal/main.c (features): Add feature_all_video_module.
  2746. * util/grub.d/00_header.in: Define locale_dir based on $prefix and
  2747. don't do explicit search again.
  2748. insmod all_video in load_video if available.
  2749. 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
  2750. Another round of string clarification and adding TRANSLATORS comments.
  2751. 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
  2752. * util/grub-mknetdir.in: Remove erroneous reference to install_device.
  2753. 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
  2754. * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Fix return type
  2755. to grub_ssize_t.
  2756. * grub-core/normal/main.c (grub_normal_init_page): Fix msg_len type.
  2757. * include/grub/charset.h (grub_utf8_to_ucs4_alloc): Fix prototype.
  2758. 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
  2759. * grub-core/normal/menu_text.c (grub_print_message_indented_real): Add
  2760. trailing newline implicitly. All users updated.
  2761. 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
  2762. Implement serial on IEEE1275 and EFI.
  2763. * docs/grub.texi (Platform-specific limitations): Fix the columen video
  2764. on emu. Mention arc and emu as the only platforms without serial
  2765. support.
  2766. * grub-core/Makefile.core.def (serial): Enable on all terminfomodule and
  2767. ieee1275 platforms.
  2768. * grub-core/term/efi/serial.c: New file.
  2769. * grub-core/term/ieee1275/serial.c: Likewise.
  2770. * grub-core/term/serial.c (grub_serial_find): Disable direct port
  2771. specification if no ns8250 driver is available.
  2772. (grub_cmd_serial): Likewise.
  2773. (GRUB_MOD_INIT) [GRUB_MACHINE_IEEE1275]: Init ofserial.
  2774. (GRUB_MOD_INIT) [GRUB_MACHINE_EFI]: Init efiserial.
  2775. * include/grub/efi/api.h (GRUB_EFI_SERIAL_IO_GUID): New define.
  2776. (grub_efi_parity_type_t): New type.
  2777. (grub_efi_stop_bits_t): Likewise.
  2778. (grub_efi_serial_io_interface): New struct.
  2779. * include/grub/serial.h (grub_serial_port): Make 'broken' field
  2780. available for all interfaces.
  2781. Add EFI and IEEE1275 fields.
  2782. (grub_ofserial_init): New proto.
  2783. (grub_efiserial_init): Likeiwse.
  2784. * util/grub.d/00_header.in: Don't check for the presence of serial
  2785. module.
  2786. 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
  2787. * grub-core/disk/ieee1275/ofdisk.c (scan): Fix improper use of device
  2788. name as if it was an alias.
  2789. 2012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
  2790. * grub-core/commands/lsacpi.c (options): Fix typo.
  2791. 2012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
  2792. Convert grub-emu to argp.
  2793. * grub-core/Makefile.core.def (kernel): Add kern/emu/argp_common.c on
  2794. emu.
  2795. * util/argp_common.c: Rename to ...
  2796. * grub-core/kern/emu/argp_common.c: ... this. All users updated.
  2797. Add missing includes.
  2798. * grub-core/kern/emu/main.c: Convert to argp.
  2799. * po/POTFILES.in: Regenerate.
  2800. * util/grub-install.in (usage): Make first letter lowcase in messages
  2801. for uniformity.
  2802. * util/grub-setup.c (options): Likewise.
  2803. 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
  2804. * grub-core/gfxmenu/gui_progress_bar.c (progress_bar_set_property):
  2805. Put back accidently commented-out code.
  2806. 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
  2807. * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Add btree
  2808. loop check using Brent algorithm.
  2809. (grub_hfsplus_btree_search): Likewise.
  2810. 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
  2811. * util/grub-install.in: Fix usage of wrong device for PreP install.
  2812. 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
  2813. * conf/Makefile.common (CFLAGS_GNULIB): Add
  2814. -Wno-unsafe-loop-optimizations.
  2815. * configure.ac: Remove -Wmissing-declarations and -Wmissing-prototypes
  2816. on tools.
  2817. * grub-core/commands/legacycfg.c: Add pragma to skip
  2818. -Wunsafe-loop-optimizations.
  2819. (check_password_md5_real): Fix loop counter type.
  2820. * grub-core/commands/testload.c (grub_cmd_testload): Fix over the EOF
  2821. reading.
  2822. * grub-core/disk/ldm.c (grub_util_get_ldm): Fix logic error.
  2823. * grub-core/fs/zfs/zfs_sha256.c (zio_checksum_SHA256): Add safety
  2824. loop condition.
  2825. * grub-core/io/gzio.c: Add pragma to skip -Wunsafe-loop-optimizations.
  2826. * grub-core/lib/LzmaEnc.c (GetOptimum): Avoid possible infinite loop.
  2827. * grub-core/net/net.c (grub_net_route_address): Add safety loop
  2828. condition.
  2829. * grub-core/normal/charset.c (bidi_line_wrap): Likewise.
  2830. * grub-core/normal/cmdline.c (grub_set_history): Fix loop types and
  2831. avoid possible infinite loops.
  2832. * grub-core/script/parser.y: Add pragma to skip -Wmissing-declarations
  2833. and -Wunsafe-loop-optimizations.
  2834. * grub-core/script/yylex.l: Likewise.
  2835. * util/grub-mkfont.c: Add pragma to skip -Wunsafe-loop-optimizations.
  2836. (print_glyphs): Avoid infinite loops.
  2837. * util/grub-mkimage.c (compress_kernel_xz): Fix format security.
  2838. 2012-02-24 Grégoire Sutre <gregoire.sutre@gmail.com>
  2839. * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): Fix loop condition
  2840. to avoid infinite loop.
  2841. (disp_acpi_rsdt_table): Likewise.
  2842. 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
  2843. * grub-core/font/font.c (grub_font_load): Add support for default
  2844. path for fonts ($prefix/fonts).
  2845. * grub-core/kern/corecmd.c (grub_core_cmd_insmod): Unify condition
  2846. for checking if string is a path.
  2847. * grub-core/normal/main.c (features): Add feature_default_font_path.
  2848. * util/grub-mkconfig.in: Skip mangling of GRUB_FONT into GRUB_FONT_PATH.
  2849. * util/grub.d/00_header.in: Use default directory if possible.
  2850. * util/grub-install.in: Install unicode.pf2.
  2851. 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
  2852. * po/README: Add de_CH and en@quot to po/LINGUAS generation command.
  2853. * po/Rules-swiss: New file.
  2854. * po/swiss.sed: Likewise.
  2855. 2012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
  2856. * grub-core/fs/btrfs.c (find_device): Fix typos.
  2857. * grub-core/fs/zfs/zfs.c (read_device): Likewise.
  2858. * util/grub-mkrelpath.c (argp_parser): Likewise.
  2859. Reported by: Yuri Chornoivan.
  2860. 2012-02-23 Dalet Omega <daletomega@gmail.com>
  2861. * grub-core/gfxmenu/gui_label.c (label_set_property): Add template
  2862. for usual informative messages.
  2863. 2012-02-23 Dalet Omega <daletomega@gmail.com>
  2864. Starfield theme.
  2865. * Makefile.am: Define starfield_DATA and dejavu.pf2 generation.
  2866. * conf/Makefile.common: Define starfielddir.
  2867. * configure.ac: Configure starfield.
  2868. * themes/starfield/COPYING.CC-BY-SA-3.0: New file.
  2869. * themes/starfield/README: Likewise.
  2870. * themes/starfield/blob_w.png: Likewise.
  2871. * themes/starfield/boot_menu_c.png: Likewise.
  2872. * themes/starfield/boot_menu_e.png: Likewise.
  2873. * themes/starfield/boot_menu_n.png: Likewise.
  2874. * themes/starfield/boot_menu_ne.png: Likewise.
  2875. * themes/starfield/boot_menu_nw.png: Likewise.
  2876. * themes/starfield/boot_menu_s.png: Likewise.
  2877. * themes/starfield/boot_menu_se.png: Likewise.
  2878. * themes/starfield/boot_menu_sw.png: Likewise.
  2879. * themes/starfield/boot_menu_w.png: Likewise.
  2880. * themes/starfield/slider_c.png: Likewise.
  2881. * themes/starfield/slider_n.png: Likewise.
  2882. * themes/starfield/slider_s.png: Likewise.
  2883. * themes/starfield/src/blob_nw.xcf: Likewise.
  2884. * themes/starfield/src/bootmenu/: Likewise.
  2885. * themes/starfield/src/bootmenu/center.xcf: Likewise.
  2886. * themes/starfield/src/bootmenu/corner.xcf: Likewise.
  2887. * themes/starfield/src/bootmenu/side.xcf: Likewise.
  2888. * themes/starfield/src/slider_c.xcf: Likewise.
  2889. * themes/starfield/src/slider_n.xcf: Likewise.
  2890. * themes/starfield/src/slider_s.xcf: Likewise.
  2891. * themes/starfield/src/terminalbox/: Likewise.
  2892. * themes/starfield/src/terminalbox/center.xcf: Likewise.
  2893. * themes/starfield/src/terminalbox/corner.xcf: Likewise.
  2894. * themes/starfield/src/terminalbox/side.xcf: Likewise.
  2895. * themes/starfield/starfield.png: Likewise.
  2896. * themes/starfield/terminal_box_c.png: Likewise.
  2897. * themes/starfield/terminal_box_e.png: Likewise.
  2898. * themes/starfield/terminal_box_n.png: Likewise.
  2899. * themes/starfield/terminal_box_ne.png: Likewise.
  2900. * themes/starfield/terminal_box_nw.png: Likewise.
  2901. * themes/starfield/terminal_box_s.png: Likewise.
  2902. * themes/starfield/terminal_box_se.png: Likewise.
  2903. * themes/starfield/terminal_box_sw.png: Likewise.
  2904. * themes/starfield/terminal_box_w.png: Likewise.
  2905. * themes/starfield/theme.txt: Likewise.
  2906. 2012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
  2907. * util/grub.d/00_header.in: Add missing export theme.
  2908. 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
  2909. * util/ieee1275/ofpath.c: Remove include of malloc.h since stdlib is
  2910. already included.
  2911. Reported by: Eren D.
  2912. 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
  2913. * conf/Makefile.common (grubdatadir): Removed.
  2914. (Makefile.am): Move eveything grubdata to pkgdata.
  2915. 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
  2916. * grub-core/commands/acpihalt.c (get_sleep_type):
  2917. Remove unused variable.
  2918. 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
  2919. * include/grub/acpi.h (GRUB_ASCII_OPCODE): Add
  2920. GRUB_ACPI_OPCODE_STRING_CONST, GRUB_ACPI_OPCODE_BUFFER,
  2921. GRUB_ACPI_OPCODE_CREATE_WORD_FIELD
  2922. and GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD.
  2923. * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Replace include of
  2924. i18n with gettext no-op.
  2925. (skip_data_ref_object): Support GRUB_ACPI_OPCODE_BUFFER and
  2926. GRUB_ACPI_OPCODE_STRING_CONST.
  2927. (get_sleep_type): Support GRUB_ACPI_OPCODE_CREATE_WORD_FIELD and
  2928. GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD. Add handling of unknown opcodes.
  2929. 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
  2930. * po/POTFILES.in: Regenerate.
  2931. 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
  2932. * Makefile.util.def (libgrubmods.a): Add -Wno-error=logical-op
  2933. -Wno-error=missing-noreturn.
  2934. 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
  2935. * grub-core/fs/affs.c (grub_affs_read_block): Avoid <= in loop
  2936. condition to avoid possibly infinite loops.
  2937. * grub-core/lib/pbkdf2.c (grub_crypto_pbkdf2): Likewise.
  2938. * grub-core/lib/xzembed/xz_dec_bcj.c (bcj_powerpc): Likewise.
  2939. 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
  2940. * grub-core/normal/charset.c (bidi_line_wrap): Avoid <= in loop
  2941. condition to avoid possibly infinite loops.
  2942. 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
  2943. * grub-core/kern/emu/hostdisk.c (read_device_map): Add missing noreturn
  2944. on show_error.
  2945. 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
  2946. * grub-core/kern/disk.c (grub_disk_write): Add missing const qualifier.
  2947. 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
  2948. * grub-core/kern/corecmd.c (grub_core_cmd_ls): Add missing var init.
  2949. 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
  2950. * util/bin2h.c (usage): Add missing attribute noreturn.
  2951. 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
  2952. * grub-core/commands/testload.c (grub_cmd_testload): Fix overflow
  2953. if the size isn't divisible by 512.
  2954. 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
  2955. Make list_push and list_remove functions rather than inline functions
  2956. to decrease size and avoid aliasing violations.
  2957. * include/grub/list.h (grub_list_push): Move to ...
  2958. * grub-core/kern/list.c (grub_list_push): ... here. Don't inline.
  2959. * include/grub/list.h (grub_list_remove): Move to ...
  2960. * grub-core/kern/list.c (grub_list_remove): ... here. Don't inline.
  2961. 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
  2962. * configure.ac: Disable for now -Wstack-protector, -Wunreachable-code
  2963. and -Wunused-result.
  2964. 2012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
  2965. * grub-core/net/net.c (grub_cmd_deladdr): Fix index.
  2966. Reported by: Seth Goldberg
  2967. 2012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
  2968. * configure.ac: Add -fno-builtin-gettext on host if NLS is disabled.
  2969. 2012-02-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
  2970. * util/grub-mkconfig.in (GRUB_CMDLINE_GNUMACH): Export variable.
  2971. * util/grub.d/10_hurd.in: Include GRUB_CMDLINE_GNUMACH in gnumach
  2972. command line.
  2973. * docs/grub.texi (Simple configuration): Document
  2974. GRUB_CMDLINE_GNUMACH.
  2975. 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
  2976. * conf/Makefile.common (platform_SCRIPTS): New variable.
  2977. (platform_PROGRAMS): Likewise.
  2978. * gentpl.py: Mark *,module and *.image for install.
  2979. * grub-core/gdb_grub.in: Add a notice of expected environment.
  2980. * grub-core/Makefile.core.def (gdb_grub): Mark for install.
  2981. (gmodule.pl): Likewise.
  2982. 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
  2983. Replace grub_checkkey with grub_getkey_noblock.
  2984. * grub-core/kern/term.c (grub_checkkey): Replaced with ...
  2985. (grub_getkey_noblock): ... this. All users updated.
  2986. 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
  2987. * grub-core/kern/emu/console.c: Move to ...
  2988. * grub-core/term/emu/console.c: ...here.
  2989. (grub_ncurses_getkey): Fix return value if no key is detected.
  2990. 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
  2991. * include/grub/test.h (grub_unit_test_init): Add missing prototype.
  2992. (grub_unit_test_fini): Likewise.
  2993. * tests/lib/unit_test.c (main): Remove extra nested external prototype.
  2994. 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
  2995. * include/grub/test.h (GRUB_UNIT_TEST)
  2996. 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
  2997. * grub-core/script/execute.c (grub_script_break): Clarify logic.
  2998. Better error handling.
  2999. (grub_script_return): Likewise.
  3000. * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
  3001. 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
  3002. * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (__GNU_LIBRARY__): Avoid
  3003. rimplicit redifinition.
  3004. 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
  3005. * docs/grub.texi (Internationalisation): Detail (lack of) collation in
  3006. GRUB.
  3007. 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
  3008. * grub-core/normal/cmdline.c (grub_cmdline_get): Don't gettext prompt.
  3009. * grub-core/normal/main.c (grub_normal_read_line_real): Gettext
  3010. prompt here.
  3011. 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
  3012. * grub-core/fs/zfs/zfs.c (zfs_fetch_nvlist): Mark unknown member here
  3013. as GRUB_ERR_BUG. Don't malloc if no device is available.
  3014. 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
  3015. * grub-core/term/terminfo.c (grub_terminfo_output_unregister):
  3016. Mark calling with invalid term as GRUB_ERR_BUG.
  3017. 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
  3018. * grub-core/net/tftp.c (tftp_receive): Silently discard too short
  3019. packets rather than raising an error.
  3020. 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
  3021. * grub-core/loader/xnu.c (grub_xnu_writetree_toheap_real): Avoid set
  3022. in if.
  3023. 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
  3024. * grub-core/loader/efi/appleloader.c (grub_cmd_appleloader): Move
  3025. diagnostic to dprintf.
  3026. * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
  3027. 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
  3028. * grub-core/kern/corecmd.c (grub_core_cmd_ls): Handle error in parsing
  3029. device name.
  3030. 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
  3031. * grub-core/fs/ntfs.c (locate_attr): Avoid set in if.
  3032. (grub_ntfs_iterate_dir): Likewise.
  3033. 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
  3034. Efiemu stylistic fixes and gettext.
  3035. * grub-core/efiemu/i386/loadcore32.c
  3036. (grub_arch_efiemu_relocate_symbols32): Avoid set in if.
  3037. * grub-core/efiemu/i386/loadcore64.c
  3038. (grub_arch_efiemu_relocate_symbols64): Likewise.
  3039. * grub-core/efiemu/i386/pc/cfgtables.c
  3040. (grub_machine_efiemu_init_tables): Likewise.
  3041. * grub-core/efiemu/loadcore.c (grub_efiemu_resolve_symbols): Likewise.
  3042. (grub_efiemu_loadcore_initXX): Add a filename argument.
  3043. All users updated.
  3044. Improved error message.
  3045. * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_init):
  3046. Add a filename argument.
  3047. All users updated.
  3048. * grub-core/efiemu/symbols.c (grub_efiemu_set_virtual_address_map):
  3049. Reclassify double relocation as GRUB_ERR_BUG.
  3050. 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
  3051. * grub-core/commands/i386/pc/play.c (grub_cmd_play): Improve error
  3052. handling.
  3053. 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
  3054. * grub-core/commands/hdparm.c (grub_cmd_hdparm): Allow running
  3055. on partition.
  3056. 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
  3057. * include/grub/misc.h (grub_error_save): Fix cleaning grub_errno.
  3058. 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
  3059. Improve string. Gettextize.
  3060. 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
  3061. * configure.ac: Remove -Winline altogether and -Wmissing-prototypes on
  3062. utils.
  3063. * util/import_gcry.py: Add -Wno-strict-aliasing on checked modules.
  3064. 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
  3065. * grub-core/disk/diskfilter.c (grub_diskfilter_print_partmap)
  3066. [GRUB_UTIL]: New function.
  3067. (insert_array) [GRUB_UTIL]: Store partmaps.
  3068. * include/grub/diskfilter.h (grub_diskfilter_pv) [GRUB_UTIL]: New member
  3069. partmaps.
  3070. (grub_diskfilter_print_partmap) [GRUB_UTIL]: New proto.
  3071. * util/grub-probe.c (probe_partmap): Call grub_diskfilter_print_partmap.
  3072. (probe_abstraction): Print diskfilter and not raid.
  3073. Reported by: Lennart Sorensen
  3074. 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
  3075. * util/grub-mkimage.c (generate_image): Explicitly init decompress_size.
  3076. * util/grub-mkimagexx.c (MASK3): New define.
  3077. (add_value_to_slot_20b): Use MASK3.
  3078. (add_value_to_slot_21): Likewise.
  3079. (relocate_addresses): Fix format specification.
  3080. (load_image): Explicitly init symtab_section.
  3081. 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
  3082. * util/getroot.c (grub_find_root_devices_from_mountinfo): Fix types.
  3083. (grub_util_biosdisk_get_grub_dev): Fix format specification.
  3084. 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
  3085. * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size): Enable
  3086. on powerpc.
  3087. Reported by: Lennart Sorensen
  3088. 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
  3089. * gentpl.py: Add missing license header.
  3090. * docs/grub.texi: Update copyright year.
  3091. 2012-02-10 Grégoire Sutre <gregoire.sutre@gmail.com>
  3092. Source grub-mkconfig_lib from the build directory at build time.
  3093. Suggested by: Vladimir Serbinenko.
  3094. * gentpl.py (manpage): Set pkgdatadir to $(builddir) on help2man call.
  3095. * util/grub-install.in: Define pkgdatadir if not already set, and source
  3096. grub-mkconfig_lib from there.
  3097. * util/grub-kbdcomp.in: Likewise.
  3098. * util/grub-mkconfig.in: Likewise.
  3099. * util/grub-mknetdir.in: Likewise.
  3100. * util/grub-mkrescue.in: Likewise.
  3101. * util/grub-mkstandalone.in: Likewise.
  3102. * util/grub-reboot.in: Likewise.
  3103. * util/grub-set-default.in: Likewise.
  3104. * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
  3105. 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
  3106. Increase warning level.
  3107. * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-redundant-decls
  3108. -Wno-unreachable-code -Wno-conversion -Wno-old-style-definition.
  3109. * configure.ac (HOST_CFLAGS): Add bunch of -W arguments.
  3110. (TARGET_CFLAGS): Likewise.
  3111. (HOST_CFLAGS): Add -Werror unless --disable-werror is activated.
  3112. * grub-core/Makefile.core.def (decompressor_xz): Add
  3113. -Wno-unreachable-code.
  3114. (normal): Add -Wno-redundant-decls.
  3115. (xzio): Add -Wno-unreachable-code.
  3116. (lzopio): Add -Wno-redundant-decls -Wno-error.
  3117. * grub-core/commands/acpi.c: Add exception to -Wcast-align.
  3118. * grub-core/commands/lsacpi.c: Add exception to -Wcast-align.
  3119. * grub-core/gensymlist.sh: Add exception to -Wmissing-format-attribute.
  3120. * grub-core/kern/dl.c: Add exception to -Wcast-align.
  3121. * grub-core/kern/efi/efi.c (grub_efi_modules_addr): Likewise.
  3122. * grub-core/kern/i386/coreboot/init.c: Add exception to
  3123. -Wsuggest-attribute=noreturn.
  3124. * grub-core/kern/ia64/dl.c: Add exception to -Wcast-align.
  3125. * grub-core/kern/ia64/dl_helper.c: Likewise.
  3126. * grub-core/kern/mips/dl.c: Likewise.
  3127. * grub-core/kern/sparc64/dl.c: Likewise.
  3128. * grub-core/lib/LzmaEnc.c: Add exception to -Wshadow.
  3129. * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy): Likewise.
  3130. (memcmp): Likewise.
  3131. * grub-core/lib/pbkdf2.c: Add exception to -Wunreachable-code.
  3132. * grub-core/loader/ia64/efi/linux.c: Add exception to -Wcast-align.
  3133. * grub-core/loader/mips/linux.c: Likewise.
  3134. * grub-core/loader/multiboot_elfxx.c: Likewise.
  3135. * grub-core/script/parser.y: Add exception to -Wunreachable-code.
  3136. * grub-core/video/sm712.c: Add exception to -Wcast-align.
  3137. * util/import_gcry.py: Add -Wno-cast-align to modules checked by hand.
  3138. * grub-core/font/font.c (grub_font_loader_init): Add explicit cast and
  3139. fixme.
  3140. * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
  3141. * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_init):
  3142. Fix prototype.
  3143. 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
  3144. * grub-core/lib/i386/relocator16.S: Fix incorrect use of absolute
  3145. address.
  3146. 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
  3147. * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
  3148. Avoid improper use of strings.
  3149. (grub_cmd_legacy_initrdnounzip): Likewise.
  3150. 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
  3151. * include/grub/emu/misc.h (grub_util_warn): Add missing format
  3152. attribute.
  3153. (grub_util_info): Likewise.
  3154. (grub_util_error): Likewise.
  3155. 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
  3156. * util/grub-mount.c (fuse_init): Avoid improper use of strings.
  3157. * util/grub-fstest.c (fstest): Likewise.
  3158. 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
  3159. * grub-core/disk/geli.c (grub_md_sha256_real): Respect format security.
  3160. (grub_md_sha512_real): Likewise.
  3161. (grub_util_get_geli_uuid): Likewise.
  3162. * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Likewise.
  3163. (grub_util_biosdisk_open): Fix format specification.
  3164. Respect format security.
  3165. * grub-core/kern/emu/misc.c (xmalloc): Respect format security.
  3166. (xrealloc): Likewise.
  3167. (xasprintf): Likewise.
  3168. 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
  3169. * util/import_gcry.py: Include grub/crypto.h in init.c.
  3170. 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
  3171. * util/grub-mkimage.c (compress_kernel_lzma): Respect format security.
  3172. (generate_image): Make prefix a const char *.
  3173. Fix format specifications. Respect format security.
  3174. Avoid void * arithmetics.
  3175. Avoid shadowing.
  3176. (argp_parser): Remove unused variable. Respect format security.
  3177. * util/grub-mkimagexx.c (relocate_symbols): Avoid shadowing.
  3178. (count_funcs) [!MKIMAGE_ELF64]: #if-out.
  3179. (count_funcs): Remove unused variable.
  3180. (relocate_addresses): Fix format specification.
  3181. Disable x86-64 with elf32. Remove unused variables.
  3182. (add_fixup_entry): Avoid shadowing.
  3183. (make_reloc_section): Fix format specification.
  3184. Use assert.
  3185. (locate_sections): Fix format specifications.
  3186. (load_image): Avoid shadowing.
  3187. 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
  3188. * util/grub-setup.c (setup): Remove unused variable. Avoid shadowing.
  3189. Fix format specifications. Respect format security.
  3190. Don't translate already translated grub_errmsg.
  3191. (argp_parser): Remove unused variable
  3192. 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
  3193. * util/grub-mkrelpath.c (argp_parser): Remove unused variable.
  3194. 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
  3195. * util/grub-mkpasswd-pbkdf2.c (argp_parser): Remove unused variable.
  3196. (main): Likewise. Use xmalloc. Respect format security.
  3197. 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
  3198. * util/grub-mklayout.c (console_grub_equivalence): Make "layout"
  3199. a const char *.
  3200. (argp_parser): Remove unused variable.
  3201. 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
  3202. * util/grub-mkfont.c (grub_font_info): Make name a const char *.
  3203. (add_pixel): Make static.
  3204. (add_font): Likewise.
  3205. (write_string_section): Make name and str a const char *.
  3206. (write_be16_section): Make name a const char *.
  3207. (print_glyphs): Make static.
  3208. (write_font_ascii_bitmap): Likewise.
  3209. (write_font_width_spec): Likewise.
  3210. (write_font_pf2): Likewise.
  3211. (argp_parser): Remove unused variable.
  3212. Respect format security.
  3213. (main): Avoid shadowing. Respect format security.
  3214. 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
  3215. * util/grub-editenv.c (argp_parser): Make static.
  3216. (create_envblk_file): Use xmalloc.
  3217. (open_envblk_file): Likewise.
  3218. Resepect format security.
  3219. (set_variables): Respect format security.
  3220. 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
  3221. * util/getroot.c (grub_find_device): Respect format security.
  3222. (get_mdadm_uuid): Remove unused variable.
  3223. (grub_util_pull_device): Dont call gettext on already translated
  3224. grub_errmsg.
  3225. (find_system_device): Remove unused variable.
  3226. (grub_util_get_grub_dev): Likewise.
  3227. (grub_make_system_path_relative_to_its_root): Respect format security.
  3228. 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
  3229. * util/grub-fstest.c (execute_command): Make first argument
  3230. a const char *.
  3231. (read_file): Avoid shadowing.
  3232. Reuse underlying error message if device open fails.
  3233. (cmd_cmp): Respect format security.
  3234. (root): Make const char *.
  3235. (fstest): Remove args argument and use global copy.
  3236. Respect format security.
  3237. (argp_parser): Make static.
  3238. (main): Make default_root const char *.
  3239. 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
  3240. * util/grub-mount.c (root): Make const char *.
  3241. (execute_command): Make first argument a const char *.
  3242. (fuse_init): Respect format security.
  3243. (argp_parser): Make static. Remove unused variable.
  3244. (main): Make default_root a const char *.
  3245. Respect format security.
  3246. 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
  3247. * util/grub-probe.c (probe): Don't call gettext on already translated
  3248. grub_errmsg.
  3249. Remove unused variables.
  3250. (argp_parser): Remove unused variable.
  3251. 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
  3252. * util/grub-script-check.c (argp_parser): Remove unused variable.
  3253. (main): Rename read to curread to avoid shadowing.
  3254. 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
  3255. * util/misc.c (grub_util_write_image_at): Fix format specification.
  3256. (grub_util_write_image): Likewise.
  3257. (grub_script_execute_argument_to_string): Removed (unused).
  3258. (grub_script_execute_menuentry): Likewise.
  3259. (grub_putchar): Likewise.
  3260. 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
  3261. * include/grub/symbol.h (EXT_C) [GRUB_UTIL]: Removed.
  3262. (FUNCTION) [GRUB_UTIL]: Likewise.
  3263. (VARIABLE) [GRUB_UTIL]: Likewise.
  3264. 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
  3265. * include/grub/misc.h: Avoid evaluationg NEED_ENABLE_EXECUTE_STACK and
  3266. NEED_REGISTER_FRAME_INFO in GRUB_UTIL.
  3267. 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
  3268. * grub-core/partmap/bsdlabel.c (iterate_real): Fix freeing of static
  3269. buffer.
  3270. 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
  3271. * grub-core/lib/LzmaEnc.c (LzmaEnc_FastPosInit): Made static.
  3272. (LzmaEnc_SaveState): Removed (unused).
  3273. (LzmaEnc_RestoreState): Likewise.
  3274. (LzmaEnc_InitPriceTables): Made static.
  3275. (LzmaEnc_Construct): Likewise.
  3276. (LzmaEnc_FreeLits): Likewise.
  3277. (LzmaEnc_Destruct): Likewise.
  3278. (LzmaEnc_Init): Likewise.
  3279. (LzmaEnc_InitPrices): Likewise.
  3280. (LzmaEnc_Finish): Likewise.
  3281. (LzmaEnc_PrepareForLzma2): Removed (unused).
  3282. (LzmaEnc_MemPrepare): Likewise.
  3283. (LzmaEnc_GetNumAvailableBytes): Likewise.
  3284. (LzmaEnc_GetCurBuf): Likewise.
  3285. (LzmaEnc_CodeOneMemBlock): Likewise.
  3286. 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
  3287. * grub-core/disk/ldm.c (grub_util_get_ldm): Remove unused variables.
  3288. (grub_util_ldm_embed): Likewise.
  3289. 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
  3290. * util/grub-editenv.c (print_var): Rename name to varname to
  3291. avoid shadowing.
  3292. (main): Rename index to curindex to avoid shadowing.
  3293. Make filename a const char *.
  3294. 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
  3295. * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
  3296. to arg_getline to avoid shadowing.
  3297. 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
  3298. * grub-core/partmap/gpt.c (gpt_partition_map_embed): Rename disk to
  3299. disk_ to avoid shadowing.
  3300. 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
  3301. * grub-core/lib/LzFind.c (MatchFinder_GetIndexByte): Rename index to
  3302. curindex to avoid shadowing.
  3303. Make static.
  3304. (MatchFinder_GetNumAvailableBytes): Make static.
  3305. 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
  3306. * grub-core/fs/squash4.c (direct_read): Rename read to curread to
  3307. avoid shadowing.
  3308. 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
  3309. * grub-core/disk/cryptodisk.c (grub_cryptodisk_endecrypt): Rename
  3310. argument from encrypt to do_encrypt to avoid shadowing.
  3311. 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
  3312. * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elf): Fix
  3313. incorrect nesting of #if's.
  3314. 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
  3315. * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): #if'-out the
  3316. checks which are always false on some platforms.
  3317. (grub_cmd_lsacpi): Likewise.
  3318. * grub-core/kern/misc.c (grub_strtoul): Likewise.
  3319. * grub-core/loader/multiboot.c (grub_multiboot_set_video_mode):
  3320. Likewise.
  3321. 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
  3322. * grub-core/disk/diskfilter.c (read_segment): Renome unreachable code.
  3323. * grub-core/net/ip.c (grub_net_recv_ip4_packets): Likewise.
  3324. 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
  3325. * grub-core/gnulib/regex.h (re_pattern_buffer): Declare buffer as
  3326. re_dfa_t to avoid breaking alignment invariants.
  3327. * grub-core/gnulib/regex_internal.h (re_dfa_t): Moved to ...
  3328. * grub-core/gnulib/regex.h (re_dfa_t): ... here.
  3329. 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
  3330. * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix printf.
  3331. * grub-core/loader/ia64/efi/linux.c (grub_cmd_fpswa): Likewise.
  3332. 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
  3333. * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init):
  3334. Fix declaration.
  3335. 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
  3336. * grub-core/bus/usb/ehci.c (grub_ehci_ehcc_read32): Restructure to
  3337. conserve alignment invariants.
  3338. (grub_ehci_ehcc_read16): Likewise.
  3339. (grub_ehci_oper_read32): Likewise.
  3340. (grub_ehci_oper_write32): Likewise.
  3341. (grub_ehci_pci_iter) [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
  3342. Conserve alignment invariants.
  3343. 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
  3344. * grub-core/kern/emu/full.c (grub_emu_post_init): Remove raid reinit.
  3345. * include/grub/disk.h [GRUB_MACHINE_EMU]: Remove now useless LVM/RAID
  3346. declarations.
  3347. 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
  3348. * grub-core/kern/emu/hostfs.c (grub_hostfs_close):
  3349. Remove unused variable.
  3350. 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
  3351. * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_load):
  3352. Remove set in if.
  3353. 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
  3354. * include/grub/net.h: Remove double declarations.
  3355. 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
  3356. Remove "payload" command in ia64 Linux loader since I couldn't
  3357. find any evidence of it being used for anything.
  3358. Replace "relocate" command with an environment variable
  3359. * grub-core/loader/ia64/efi/linux.c (ia64_boot_param): Remove extra
  3360. fields.
  3361. (ia64_boot_payload): Removed.
  3362. (last_payload): Likewise.
  3363. (RELOCATE_OFF): Likewise.
  3364. (RELOCATE_ON): Likewise.
  3365. (RELOCATE_FORCE): Likewise.
  3366. (relocate): Likewise.
  3367. (free_pages): Don't free payloads.
  3368. (grub_load_elf64): Use common error messages.
  3369. Use "linux_relocate" variable.
  3370. Increase the space after boot_params.
  3371. (grub_cmd_payload): Removed.
  3372. (grub_cmd_relocate): Likewise.
  3373. (grub_cmd_fpswa): Improve messages.
  3374. (cmd_payload): Removed.
  3375. (cmd_relocate): Likewise.
  3376. (GRUB_MOD_INIT): Don't register "payload" and "relocate".
  3377. (GRUB_MOD_FINI): Don't unregister "payload" and "relocate".
  3378. 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
  3379. Convert UHCI to DMA framework.
  3380. * grub-core/bus/usb/uhci.c (grub_uhci): Add chunk and phys members.
  3381. (grub_uhci_pci_iter): Fill new members
  3382. (grub_alloc_td): Use P2V and V2P functions.
  3383. (grub_free_queue): Likewise.
  3384. (grub_alloc_qh): Likewise.
  3385. (grub_uhci_setup_transfer): Likewise.
  3386. (grub_uhci_check_transfer): Likewise.
  3387. 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
  3388. * grub-core/video/colors.c (grub_video_parse_color): Fix error message.
  3389. Remove assignment in if while on it.
  3390. 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
  3391. * util/grub-mkstandalone.in: Fix modules directory.
  3392. 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
  3393. * util/grub-mkimage.c (image_targets): Set default_compression to lzma
  3394. on i386-pc target.
  3395. (argp_parser): Accept "auto" as compression specification.
  3396. 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
  3397. Fix `help' with unloaded modules.
  3398. * include/grub/normal.h (grub_dyncmd_get_cmd): New proto.
  3399. * grub-core/normal/dyncmd.c (grub_dyncmd_get_cmd): New function.
  3400. (grub_dyncmd_dispatcher): Small stylistic fix.
  3401. * grub-core/commands/help.c (grub_cmd_help): Load missing modules when
  3402. explicit help is requested.
  3403. 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
  3404. * grub-core/fs/cpio.c (grub_cpio_dir): Fix a bug with multiple listing.
  3405. Explicitly init restart while on it.
  3406. 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
  3407. * grub-core/lib/posix_wrap/wchar.h (mbrtowc): Set pwc to zero to avoid
  3408. uninited variable.
  3409. 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
  3410. * util/grub-mknetdir.in: Use . rather than source for POSIX
  3411. compatibility.
  3412. 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
  3413. * util/grub-probe.c (main): Fix trailing space in compatibility hint.
  3414. 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
  3415. * grub-core/kern/partition.c (grub_partition_get_name): Fix uninited
  3416. variable.
  3417. 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
  3418. * grub-core/commands/hdparm.c (grub_cmd_hdparm): Accept device name
  3419. without quotes.
  3420. 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
  3421. * grub-core/net/net.c (GRUB_MOD_INIT): Don't register netfs.
  3422. 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
  3423. * grub-core/kern/partition.c (grub_partition_get_name): Fix reverse
  3424. iteration of partitions.
  3425. 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
  3426. Improve gettext support. Stylistic fixes and error handling fixes while
  3427. on it.
  3428. 2012-02-07 Vladimir Serbinenko <phcoder@gmail.com>
  3429. * grub-core/lib/i386/relocator16.S: Revert moving A20 code into PM
  3430. part. Instead setup the correct stack in RM.
  3431. * grub-core/lib/i386/relocator.c (grub_relocator16_boot): Reserve place
  3432. for stack.
  3433. * include/grub/i386/relocator_private.h: New file.
  3434. 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
  3435. * grub-core/commands/minicmd.c (GRUB_MOD_INIT): Add missing SIZE
  3436. argument.
  3437. * util/grub-fstest.c (options): Add missing DEVICE part.
  3438. 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
  3439. Clarify and unify messages.
  3440. * grub-core/commands/hashsum.c (options): Unify messages.
  3441. * grub-core/commands/keystatus.c (GRUB_MOD_INIT): Don't mark a
  3442. literal-only message as translatable.
  3443. * grub-core/commands/lsacpi.c (GRUB_MOD_INIT): Likewise.
  3444. * grub-core/loader/ia64/efi/linux.c (GRUB_MOD_INIT): Likewise.
  3445. * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Add quoting around
  3446. commands.
  3447. * grub-core/commands/menuentry.c (options): Clarify that it's a keyboard
  3448. key, not the key used to unlock. Clarify what it's used for.
  3449. * grub-core/kern/emu/hostdisk.c (read_device_map): Unify error message.
  3450. * grub-core/loader/xnu.c (grub_xnu_load_driver): Remove erroneous colon.
  3451. * grub-core/script/main.c (GRUB_MOD_INIT): Clarify [n] to be [NUM].
  3452. * util/grub-editenv.c (options): Unify "verbose" message.
  3453. * util/grub-fstest.c (read_file): Unify error message.
  3454. (fstest): Add quotes around commands.
  3455. (options): Unify "verbose" message.
  3456. * util/grub-install.in: Add quotes around variable name.
  3457. * util/grub-kbdcomp.in: Unify error message.
  3458. * util/grub-mkfont.c (main): Likewise.
  3459. * util/grub-mkrescue.in: Likewise.
  3460. * util/grub-mklayout.c (options): Unify "verbose" message.
  3461. * util/grub-mkstandalone.in: Unify help and verbose messages.
  3462. * util/grub-mount.c (options): Unify "verbose" message.
  3463. * util/grub-probe.c (options): Likewise.
  3464. * util/grub-script-check.c (options): Likewise.
  3465. * util/grub-setup.c (setup): Unify no-terminator message.
  3466. (options): Use DEVICE and not DEV.
  3467. Unify "verbose" message.
  3468. * util/ieee1275/ofpath.c (xrealpath): Unify error message.
  3469. 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
  3470. Improve and unify messages.
  3471. * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Add argument
  3472. name. All users updated.
  3473. Print filename in error.
  3474. (read_device_map): Print filename in error.
  3475. * util/getroot.c (grub_guess_root_devices): Print filename in error.
  3476. (grub_util_get_os_disk): Likewise.
  3477. (grub_util_biosdisk_get_grub_dev): Likewise.
  3478. (grub_util_check_block_device): Likewise.
  3479. (grub_util_check_char_device): Likewise.
  3480. (grub_make_system_path_relative_to_its_root): Likewise.
  3481. * util/grub-editenv.c (create_envblk_file): Likewise.
  3482. (open_envblk_file): Likewise.
  3483. (write_envblk): Likewise.
  3484. * util/grub-fstest.c (cmd_cp): Likewise.
  3485. (cmd_cat): Likewise.
  3486. (cmd_cmp): Likewise.
  3487. * util/grub-menulst2cfg.c (main): Likewise.
  3488. * util/grub-mkfont.c (write_font_ascii_bitmap): Likewise.
  3489. (write_font_width_spec): Likewise.
  3490. (write_font_pf2): Likewise.
  3491. * util/grub-mkimage.c (generate_image): New argument outname.
  3492. All users updated.
  3493. Remove unreacheable message.
  3494. (options): Unify messages.
  3495. (help_filter): Likewise.
  3496. * util/grub-mklayout.c (usage): Removed (unused).
  3497. (main): Print filename in error.
  3498. * util/grub-mkrescue.in: Fix wrong quoting.
  3499. * util/grub-setup.c (setup): Print filename in error.
  3500. * util/ieee1275/ofpath.c (vendor_is_ATA): Likewise.
  3501. (check_sas): Likewise.
  3502. * util/misc.c (grub_util_get_fp_size): Removed.
  3503. (grub_util_get_image_size): Print filename in error.
  3504. (grub_util_read_at): Removed.
  3505. (grub_util_read_image): Print filename in error.
  3506. (grub_util_load_image): Likewise.
  3507. (grub_util_write_image_at): New argument filename. All users updated.
  3508. Print filename in error.
  3509. (grub_util_write_image): New argument filename. All users updated.
  3510. Print filename in error.
  3511. * util/raid.c (grub_util_raid_getmembers): Print filename in error.
  3512. * util/resolve.c (grub_util_resolve_dependencies): Likewise.
  3513. 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
  3514. * grub-core/Makefile.core.def (pxechain): New module.
  3515. * grub-core/loader/i386/pc/pxechainloader.c: New file.
  3516. * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_get_cached): New
  3517. function.
  3518. (grub_pc_net_config_real): Use grub_pxe_get_cached.
  3519. * include/grub/i386/pc/pxe.h (grub_pxe_get_cached): New proto.
  3520. 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
  3521. * grub-core/kern/err.c (GRUB_MAX_ERRMSG): Move to ...
  3522. * include/grub/err.h (GRUB_MAX_ERRMSG): ... here.
  3523. * include/grub/err.h (grub_error_saved): New struct.
  3524. (grub_errmsg): Make array size explicit.
  3525. * include/grub/misc.h (grub_error_save): New function.
  3526. (grub_error_load): Likewise.
  3527. * grub-core/kern/err.c (grub_error_stack_items): Use grub_error_saved.
  3528. (grub_error_push): Update `errno' member name.
  3529. (grub_error_pop): Likewise
  3530. * grub-core/net/tftp.c (tftp_data): New member save_err.
  3531. (tftp_receive): Save error.
  3532. (tftp_open): Restore error.
  3533. 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
  3534. * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move switch
  3535. to real mode down to execute A20-related code in protected mode as
  3536. intended.
  3537. 2012-02-05 Grégoire Sutre <gregoire.sutre@gmail.com>
  3538. * grub-core/disk/diskfilter.c (grub_diskfilter_make_raid): Return
  3539. NULL when the argument `level' has an unexpected value.
  3540. 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
  3541. Move platform-dependent files from $prefix to $prefix/$platform.
  3542. * config.h.in (GRUB_TARGET_CPU): New definition.
  3543. (GRUB_PLATFORM): Likewise.
  3544. * configure.ac: Define GRUB_TARGET_CPU and GRUB_PLATFORM.
  3545. * grub-core/commands/parttool.c (grub_cmd_parttool): Update dir.
  3546. * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
  3547. * grub-core/kern/dl.c (grub_dl_load): Likewise.
  3548. * grub-core/normal/autofs.c (read_fs_list): Likewise.
  3549. * grub-core/normal/crypto.c (read_crypto_list): Likewise.
  3550. * grub-core/normal/dyncmd.c (read_command_list): Likewise.
  3551. * grub-core/normal/term.c (read_terminal_list): Likewise.
  3552. * grub-core/gettext/gettext.c (grub_mofile_open_lang): Use
  3553. $prefix/locale.
  3554. (grub_gettext_init_ext): Likewise.
  3555. * grub-core/normal/main.c (GRUB_MOD_INIT): Define grub_cpu and
  3556. grub_platform.
  3557. * util/grub-install.in: Update directories.
  3558. * util/grub-mknetdir.in: Likewise.
  3559. * util/grub-mkrescue.in: Likewise.
  3560. 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
  3561. * grub-core/kern/ieee1275/openfw.c (grub_claimmap): Change to
  3562. grub_error framework. All users updated.
  3563. 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
  3564. * grub-core/gettext/gettext.c: Mostly rewritten to avoid using
  3565. lists (by always binsearching), improve caching (cache strings
  3566. used for binsearch, not only results), improve
  3567. maintainability (by using more structured binary search) and correct
  3568. error handling.
  3569. 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
  3570. * grub-core/script/execute.c (grub_script_return): Fix warning.
  3571. 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
  3572. * grub-core/script/execute.c (grub_script_return): Fix potential
  3573. NULL-dereference.
  3574. Reported by: Jim Meyering.
  3575. 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
  3576. * po/POTFILES.in: Regenerate.
  3577. * util/grub-install.in: Gettextize the strings missed in first pass.
  3578. 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
  3579. * Makefile.util.def (grub-mkdevicemap): Removed.
  3580. * include/grub/emu/hostdisk.h (grub_util_get_os_disk): New proto.
  3581. * include/grub/util/deviceiter.h: Removed.
  3582. * util/deviceiter.c: Likewise.
  3583. * util/getroot.c (grub_util_get_os_disk): New function.
  3584. * util/grub-install.in: Remove grub-mkdevicemap. Use -t disk as
  3585. replacement for EFI.
  3586. * util/grub-mkdevicemap.c: Removed.
  3587. * util/grub-probe.c (probe): Handle PRINT_DISK.
  3588. (argp_parser): Handle -t disk.
  3589. 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
  3590. * util/grub-mkfont.c: Migrate to argp.
  3591. * util/grub-mklayout.c: Likewise.
  3592. * util/grub-mkpasswd-pbkdf2.c: Likewise.
  3593. * util/grub-mkrelpath.c: Likewise.
  3594. * util/grub-probe.c: Likewise.
  3595. * util/grub-script-check.c: Likewise.
  3596. 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
  3597. * util/grub-reboot.in: Add missing datarootdir.
  3598. Add missing newline.
  3599. * util/grub-set-default.in: Add missing datarootdir.
  3600. * util/powerpc/ieee1275/grub-mkrescue.in: Add missing newline.
  3601. * util/grub-mkrescue.in: Likewise.
  3602. 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
  3603. * util/grub.d/30_os-prober.in: Fix TRANSLATORS comment.
  3604. 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
  3605. * util/grub-kbdcomp.in: Add decent help and gettextize.
  3606. * docs/man/grub-kbdcomp.h2m: New file.
  3607. 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
  3608. Migrate grub-mkimage.c to argp.
  3609. * Makefile.util.def (grub-mkimage): Add util/argp_common.c.
  3610. (grub-setup): Likewise.
  3611. * util/grub-setup.c (print_version): Move to ...
  3612. * util/argp_common.c (print_version): ... here.
  3613. * util/grub-setup.c (argp_program_version_hook): Move to ...
  3614. * util/argp_common.c (argp_program_version_hook): ... here.
  3615. * util/grub-setup.c (argp_parser): Add exit (1) on fatal error for
  3616. safety.
  3617. * util/grub-mkimage.c (main): Migrate to argp.
  3618. 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
  3619. * util/grub-mkrescue.in: Use same message as
  3620. util/powerpc/ieee1275/grub-mkrescue.in with %s in place of command
  3621. for better translations.
  3622. 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
  3623. * util/powerpc/ieee1275/grub-mkrescue.in: Gettextize. Unify the command
  3624. options with generic grub-mkrescue.in with the goal of future
  3625. merge.
  3626. 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
  3627. * grub-core/kern/mm.c: Add missing include of i18n.h
  3628. * grub-core/lib/relocator.c: Likewise.
  3629. 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
  3630. * grub-core/loader/ia64/efi/linux.c (find_mmap_size): Replace fatal with
  3631. error.
  3632. (allocate_pages): Check return value.
  3633. Replace fatal with error.
  3634. (grub_linux_boot): Replace printf with dprintf.
  3635. Check find_mmap_size return value.
  3636. Replace fatal with error.
  3637. Don't call grub_machine_fini.
  3638. (grub_load_elf64): Replace printf with dprintf.
  3639. (grub_cmd_linux): Likewise.
  3640. (grub_cmd_initrd): Likewise.
  3641. (grub_cmd_payload): Likewise.
  3642. 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
  3643. * grub-core/loader/i386/xnu.c (grub_cmd_devprop_load): Fix error
  3644. message.
  3645. * grub-core/video/radeon_fuloong2e.c
  3646. (grub_video_radeon_fuloong2e_setup): Likewise.
  3647. * grub-core/video/sis315pro.c (grub_video_sis315pro_setup): Likewise.
  3648. * grub-core/video/video.c (grub_video_set_mode): Don't override
  3649. standard out of memory message.
  3650. 2012-02-03 Grégoire Sutre <gregoire.sutre@gmail.com>
  3651. NetBSD disk wedge support.
  3652. * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start)
  3653. [__NetBSD__]: Handle NetBSD disk wedges.
  3654. * util/getroot.c (convert_system_partition_to_system_disk)
  3655. [__NetBSD__]: Likewise.
  3656. 2012-02-03 Mark Wooding <mdw@distorted.org.uk>
  3657. * util/grub-mkconfig.in: Use umask rather than chmod to create
  3658. grub.cfg.new to avoid insecure grub.cfg.
  3659. 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
  3660. * grub-core/commands/ls.c: Gettextize.
  3661. * grub-core/commands/setpci.c: Likewise.
  3662. * grub-core/commands/videotest.c: Likewise.
  3663. * grub-core/disk/geli.c: Likewise.
  3664. * grub-core/kern/mm.c: Likewise.
  3665. * grub-core/lib/relocator.c: Likewise.
  3666. * grub-core/loader/efi/appleloader.c: Likewise.
  3667. * grub-core/loader/i386/xnu.c: Likewise.
  3668. * grub-core/loader/ia64/efi/linux.c: Likewise.
  3669. * grub-core/loader/xnu.c: Likewise.
  3670. * grub-core/net/dns.c: Likewise.
  3671. * grub-core/net/net.c: Likewise.
  3672. * grub-core/script/lexer.c: Likewise.
  3673. * grub-core/script/parser.y: Likewise.
  3674. * grub-core/script/yylex.l: Likewise.
  3675. * util/getroot.c: Likewise.
  3676. * util/grub-setup.c: Likewise.
  3677. 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
  3678. * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): Use proper error
  3679. number.
  3680. 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
  3681. * grub-core/disk/ldm.c (grub_util_ldm_embed): Correct error message.
  3682. 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
  3683. * grub-core/commands/search_file.c (SEARCH_TARGET): Remove obsolete
  3684. macro.
  3685. * grub-core/commands/search_label.c (SEARCH_TARGET): Likewise.
  3686. * grub-core/commands/search_uuid.c (SEARCH_TARGET): Likewise.
  3687. 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
  3688. * util/grub-mkstandalone.in: Fix help messages. Gettextize.
  3689. * util/grub-install.in: Gettextize.
  3690. * util/grub-mkconfig.in: Likewise.
  3691. * util/grub-mkconfig_lib.in: Replace gettext with echo -n and not echo
  3692. if not available.
  3693. (grub_warn): Gettextize.
  3694. * util/grub-mknetdir.in: Gettextize.
  3695. * util/grub-mkrescue.in: Likewise.
  3696. * util/grub-mkstandalone.in: Likewise.
  3697. * util/grub-reboot.in: Likewise.
  3698. * util/grub-set-default.in: Likewise.
  3699. * util/grub.d/00_header.in: Likewise.
  3700. * util/grub.d/10_hurd.in: Likewise.
  3701. * util/grub.d/10_kfreebsd.in: Likewise.
  3702. * util/grub.d/10_linux.in: Likewise.
  3703. * util/grub.d/10_netbsd.in: Likewise.
  3704. * util/grub.d/10_windows.in: Likewise.
  3705. * util/grub.d/20_linux_xen.in: Likewise.
  3706. * util/grub.d/30_os-prober.in: Likewise.
  3707. * po/POTFILES-shell.in: Regenerate.
  3708. 2012-02-03 Richard Laager <rlaager@wiktel.com>
  3709. * util/grub-mkimage.c (main): Fix format-security warning.
  3710. * util/grub-mkrelpath.c (main): Likewise.
  3711. * util/grub-probe.c (main): Likewise.
  3712. 2012-02-03 Richard Laager <rlaager@wiktel.com>
  3713. * util/grub-probe.c (probe): Don't crash on canonicalize_file_name
  3714. failure.
  3715. Put back lost PRINT_DRIVE.
  3716. 2012-02-03 Richard Laager <rlaager@wiktel.com>
  3717. * util/getroot.c (find_root_devices_from_libzfs): Fix compilation error.
  3718. (grub_guess_root_devices): Replace strlen with sizeof.
  3719. Avoid crash.
  3720. (find_root_devices_from_poolname): Remove unused variable.
  3721. Handle raidzN.
  3722. 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
  3723. Support install on multi-device filesystems.
  3724. * include/grub/emu/getroot.h (grub_guess_root_device): Renamed to ...
  3725. (grub_guess_root_devices): ...this. Return char **. All users updated.
  3726. * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo):
  3727. Removed.
  3728. * util/getroot.c (find_root_device_from_libzfs): Moved pool logic to ...
  3729. (find_root_devices_from_poolname): ... here.
  3730. (grub_find_root_devices_from_mountinfo): Return char **. Make static.
  3731. Support zfs-fuse.
  3732. (grub_guess_root_device): Rename to ...
  3733. (grub_guess_root_devices): ... this. Return char **. All users updated.
  3734. * util/grub-install.in: Handle multi-device filesystems.
  3735. * util/grub-probe.c (probe). Make device_names a char **. Add delim
  3736. argument. All users updated.
  3737. Handle multi-device filesystems.
  3738. Use 'delim' as separator.
  3739. Remove device check to allow filesystems on file.
  3740. (main): Support -0 argument. Handle multi-device.
  3741. * util/grub-setup.c (setup): Remove root argument. Handle multi-device.
  3742. Fix a cross-device check while on it.
  3743. (arguments): Remove root_dev.
  3744. (argp_parser): Remove -r.
  3745. (main): Remove root_dev.
  3746. 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
  3747. * grub-core/fs/zfs/zfscrypt.c: Add link to documentation.
  3748. 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
  3749. * grub-core/commands/videotest.c (grub_cmd_videotest): Fix subset
  3750. symbol.
  3751. Reported by: NODA, Kai <nodakai>.
  3752. 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
  3753. Fix ehci on amd64.
  3754. * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): Use %p to print
  3755. pointers.
  3756. * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Likewise.
  3757. (grub_ehci_setup_qh): Likewise.
  3758. (grub_ehci_find_qh): Likewise.
  3759. (grub_ehci_transaction): Likewise.
  3760. (grub_ehci_setup_transfer): Likewise.
  3761. (grub_ehci_check_transfer): Likewise.
  3762. (grub_ehci_portstatus): Likewise.
  3763. (grub_ehci_detect_dev): Likewise.
  3764. (grub_ehci_transfer_controller_data): New field td_last_phys.
  3765. (grub_ehci_setup_transfer): Fill td_last_phys.
  3766. (grub_ehci_check_transfer): Use td_last_phys.
  3767. 2012-02-01 Seth Goldberg <seth.goldberg@oracle.com>
  3768. * grub-core/normal/context.c (grub_env_extractor_close): Don't crash
  3769. if no submenu is present.
  3770. 2012-02-01 Aleš Nesrsta <starous@volny.cz>
  3771. CBI support.
  3772. * include/grub/usb.h (grub_usbms_protocol_t): New values
  3773. GRUB_USBMS_PROTOCOL_CB and GRUB_USBMS_PROTOCOL_CBI.
  3774. * grub-core/disk/usbms.c (GRUB_USBMS_CBI_CMD_SIZE): New define.
  3775. (GRUB_USBMS_CBI_ADSC_REQ): Likewise.
  3776. (grub_usbms_dev): Add subclass, protocol and intrpt.
  3777. Remove in_maxsz and out_maxsz.
  3778. (grub_usbms_reset): Rename to ...
  3779. (grub_usbms_bo_reset): .. this.
  3780. (grub_usbms_cbi_cmd): New function.
  3781. (grub_usbms_cbi_reset): Likewise.
  3782. (grub_usbms_reset): Likewise.
  3783. (grub_usbms_attach): Recognize cbi. Same subclass and protocol.
  3784. (grub_usbms_transfer): Rename to ...
  3785. (grub_usbms_transfer_bo): ... this.
  3786. (grub_usbms_transfer_cbi): Likewise.
  3787. (grub_usbms_transfer): Likewise.
  3788. 2012-02-01 Aleš Nesrsta <starous@volny.cz>
  3789. 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
  3790. EHCI support. All of the credit goes to Aleš Nesrsta. I've just added
  3791. the support for the CS5536 modification thereos and few bugfixes.
  3792. * grub-core/Makefile.core.def (ehci): New module.
  3793. * grub-core/bus/usb/ehci.c: New file.
  3794. * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): New arguments
  3795. port and hubaddr. All users updated.
  3796. Save port and hubaddr into dev structure.
  3797. * include/grub/cs5536.h (GRUB_CS5536_MSR_USB_BASE_SMI_ENABLE): New
  3798. define.
  3799. * include/grub/pci.h (grub_dma_phys2virt): New function.
  3800. (grub_dma_virt2phys): Likewise.
  3801. * include/grub/usb.h (grub_usb_device): New members port and hubaddr.
  3802. 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
  3803. * grub-core/fs/fat.c (grub_fat_mount) [!MODE_EXFAT]: Remove fstype
  3804. check as some mkfs implementations omit it.
  3805. 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
  3806. * docs/grub.texi (Unicode): Mention identifier and space limitations.
  3807. 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
  3808. * grub-core/fs/jfs.c (grub_jfs_sblock): Make volname a char array.
  3809. Add new member volname2.
  3810. (grub_jfs_label): Use volname2 if available.
  3811. 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
  3812. * grub-core/fs/nilfs2.c (grub_nilfs2_super_block): Expand volume_name
  3813. over last_mounted as seen in image generated by mkfs.nilfs2.
  3814. (grub_nilfs2_label): Use sizeof for the size of s_volume_name.
  3815. 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
  3816. * grub-core/fs/fat.c (grub_fat_dir_entry) [MODE_EXFAT]: Expand label
  3817. to 15 UTF-16 characters as seen in FS generated by mkexfatfs.
  3818. (grub_fat_label) [MODE_EXFAT]: Use macros for size.
  3819. 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
  3820. * grub-core/fs/romfs.c (grub_romfs_mount): Fix a bug with labels going
  3821. over the sector.
  3822. 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
  3823. * grub-core/fs/zfs/zfs.c (get_filesystem_dnode): Support space in
  3824. subvolume name (by removing a bogus and useless check).
  3825. 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
  3826. * grub-core/fs/ext2.c (grub_ext2_label): Fix field size. Change to
  3827. sizeof while on it.
  3828. 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
  3829. * grub-core/disk/scsi.c (grub_scsi_read_capacity): Renamed to ...
  3830. (grub_scsi_read_capacity10): ... this.
  3831. (grub_scsi_read_capacity16): New function.
  3832. (grub_scsi_open): Use read_capacity16 if read_capacity10 returned
  3833. 0xffffffff.
  3834. Fix off-by-one error.
  3835. * include/grub/scsi.h (grub_scsi): Rename size to last_block and make it
  3836. 64-bit unsigned.
  3837. * include/grub/scsicmd.h (grub_scsi_read_capacity): Rename to ...
  3838. (grub_scsi_read_capacity10): ... this.
  3839. (grub_scsi_read_capacity_data): Rename to ...
  3840. (grub_scsi_read_capacity10_data): ... this. Rename size to last_block.
  3841. (grub_scsi_read_capacity16): New struct.
  3842. (grub_scsi_read_capacity16_data): Likewise.
  3843. (grub_scsi_cmd_t): Rename grub_scsi_cmd_read_capacity to
  3844. grub_scsi_cmd_read_capacity10.
  3845. New command grub_scsi_cmd_read_capacity16.
  3846. 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
  3847. SCSI >2TiB support.
  3848. * grub-core/disk/scsi.c (grub_scsi_read16): New function.
  3849. (grub_scsi_write16): Likewise.
  3850. (grub_scsi_read): Use read16 when necessary.
  3851. (grub_scsi_write): Likewise.
  3852. * include/grub/scsicmd.h (grub_scsi_read16): New struct.
  3853. (grub_scsi_write16): Likewise.
  3854. (grub_scsi_cmd_t): Add READ16 and WRITE16.
  3855. 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
  3856. SCSI write support (for usbms mainly).
  3857. * grub-core/disk/scsi.c (grub_scsi_write10): Uncomment. Make buffer
  3858. a const pointer.
  3859. (grub_scsi_write): Implement.
  3860. * include/grub/scsi.h (grub_scsi_dev): Make write buffer a const pointer
  3861. 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
  3862. * grub-core/io/lzopio.c (uncompress_block): Fix use of incorrect
  3863. variable.
  3864. 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
  3865. * grub-core/lib/posix_wrap/string.h (memchr): New function.
  3866. 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
  3867. * po/POTFILES.in: Regenerate.
  3868. 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
  3869. * grub-core/lib/posix_wrap/assert.h (assert_real): Replace grub_fatal
  3870. with grub_printf to avoid unnecessary fatal failure.
  3871. 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
  3872. * grub-core/lib/posix_wrap/limits.h (SHRT_MAX): New define.
  3873. (INT_MAX): Likewise.
  3874. * grub-core/lib/posix_wrap/stdio.h (snprintf): New function.
  3875. * grub-core/lib/posix_wrap/stdlib.h (abs): Likewise.
  3876. * grub-core/lib/posix_wrap/string.h (memcmp): Likewise.
  3877. (strcpy): Likewise.
  3878. (strstr): Likewise.
  3879. (strchr): Likewise.
  3880. (strncpy): Likewise.
  3881. (strcat): Likewise.
  3882. (strncat): Likewise.
  3883. (strcoll): Likewise.
  3884. * include/grub/types.h (GRUB_SHRT_MAX): New define.
  3885. (GRUB_INT_MAX): Likewise.
  3886. 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
  3887. * grub-core/gnulib/regcomp.c (regerror): Don't use abort on
  3888. unexpected error.
  3889. (optimize_utf8): Likewise.
  3890. * grub-core/lib/posix_wrap/stdlib.h (abort): Removed.
  3891. 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
  3892. * grub-core/boot/i386/pc/lnxboot.S: Use
  3893. GRUB_DECOMPRESSOR_MAX_DECOMPRESSOR_SIZE.
  3894. * grub-core/boot/i386/pc/startup_raw.S: Ensure about boot_dev
  3895. location.
  3896. * include/grub/offsets.h (GRUB_DECOMPRESSOR_I386_PC_BOOT_DEVICE): New
  3897. definition.
  3898. (GRUB_DECOMPRESSOR_I386_PC_MAX_DECOMPRESSOR_SIZE): Likewise.
  3899. 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
  3900. * util/getroot.c (grub_util_get_dm_node_linear_info): Fix memory leak.
  3901. * grub-core/disk/cryptodisk.c (cryptodisk_cleanup): Disable for
  3902. now to avoid double free.
  3903. * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_dev): Rename to
  3904. hostdisk.
  3905. * include/grub/disk.h (grub_disk_dev_id): New id HOSTDISK.
  3906. * util/grub-probe.c (escape_of_path): Always return a new copy.
  3907. (print_full_name): Escape path.
  3908. (probe): Don't call grub_util_devname_to_ofpath on NULL.
  3909. Fix hints on abstractions.
  3910. 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
  3911. * util/grub-mkconfig_lib.in (prepare_grub_to_access_device):
  3912. Don't add "root" line if no compatibility hont is available.
  3913. Suggested by: Seth Goldberg.
  3914. 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
  3915. * include/grub/ata.h (grub_ata): Add a new element maxbuffer.
  3916. * grub-core/disk/ata.c (grub_ata_readwrite): Limit to ata->maxbuffer.
  3917. * grub-core/disk/pata.c (grub_pata_open): Set ata->maxbuffer.
  3918. * grub-core/disk/ahci.c (grub_ahci_open): Likewise.
  3919. 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
  3920. * include/grub/zfs/dnode.h (DN_MIN_INDBLKSHIFT): Removed.
  3921. 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
  3922. * util/grub-pe2elf.c (ehdr): Make static.
  3923. (shdr): Likewise.
  3924. (num_sections): Likewise.
  3925. (offset): Likewise.
  3926. 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
  3927. Eliminate ofpath limits and possible overflows.
  3928. * util/ieee1275/ofpath.c (grub_util_info) [STANDALONE]: New function.
  3929. (OF_PATH_MAX): Removed.
  3930. (MAX_DISK_CAT): New const.
  3931. (find_obppath): Use allocated rather than preallocated buffer.
  3932. Return result. Argument of_path removed. All users updated.
  3933. Add missing fdstat.
  3934. (xrealpath): New function.
  3935. (block_device_get_sysfs_path_and_link): Remove sysfs argument.
  3936. Allocate rather than use preallocated buffer. All users updated.
  3937. (__of_path_common): Use allocated rather than preallocatecd buffer.
  3938. Return result. Argument of_path removed. All users updated.
  3939. (vendor_is_ATA): Read only needed part form the file.
  3940. (check_sas): Allocate depending on contents rather than fixed.
  3941. (main) [STANDALONE]: Handle NULL result.
  3942. 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
  3943. * grub-core/normal/completion.c (iterate_dev): Close the disk.
  3944. 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
  3945. Cryptodisk write support.
  3946. * grub-core/disk/cryptodisk.c (grub_crypto_pcbc_encrypt): New function.
  3947. (grub_cryptodisk_decrypt): Moved logic to ...
  3948. (grub_cryptodisk_endecrypt): ...this. New argument "encrypt".
  3949. (grub_cryptodisk_write): Implement.
  3950. * grub-core/kern/emu/hostdisk.c (nwrite): Rename to ...
  3951. (grub_util_fd_write): ... this. Make global.
  3952. * include/grub/emu/hostdisk.h (grub_util_fd_write): New proto.
  3953. 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
  3954. * include/grub/list.h (grub_list_remove): Don't crash if element is
  3955. removed twice.
  3956. 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
  3957. Rename ofconsole to console.
  3958. * grub-core/commands/terminal.c (handle_command): Handle ofconsole
  3959. as sysnonym to console.
  3960. * grub-core/term/ieee1275/ofconsole.c: Renamed to ..
  3961. * grub-core/term/ieee1275/console.c: ... this. All users updated.
  3962. Rename grub_ofconsole_ to grub_console_. All users updated
  3963. (grub_console_term_output): Rename "ofconsole" to "console".
  3964. * grub-core/term/terminfo.c (grub_cmd_terminfo): Handle "ofconsole"
  3965. as "console".
  3966. 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
  3967. * grub-core/loader/i386/pc/plan9.c (grub_cmd_plan9): Remove PXE
  3968. handling.
  3969. * include/grub/disk.h (grub_disk_dev_id): Remove obsolete
  3970. GRUB_DISK_DEVICE_UUID_ID, GRUB_DISK_DEVICE_PXE_ID and
  3971. GRUB_DISK_DEVICE_FILE_ID.
  3972. 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
  3973. * grub-core/kern/partition.c (grub_partition_get_name): Simplify logic
  3974. and improve performance.
  3975. 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
  3976. * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Fix
  3977. missing ieee1275/ prefix on whole disk.
  3978. 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
  3979. * include/grub/powerpc/ieee1275/util/biosdisk.h: Remove.
  3980. * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
  3981. 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
  3982. * grub-core/fs/cpio.c (handle_symlink): Fix a bug.
  3983. 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
  3984. Merge common RAID and LVM logic to an abstract diskfilter.
  3985. Add LDM support using the same framework.
  3986. * Makefile.util.def (libgrubkern): Add grub-core/disk/ldm.c,
  3987. grub-core/disk/diskfilter.c and grub-core/partmap/gpt.c.
  3988. (libgrubmods): Remove grub-core/disk/raid.c and
  3989. grub-core/partmap/gpt.c.
  3990. * grub-core/Makefile.core.def (ldm): New module.
  3991. (raid): Renamed to diskfilter. All users updated.
  3992. * grub-core/disk/raid.c: Moved to ...
  3993. * grub-core/disk/diskfilter.c: ... here.
  3994. * grub-core/disk/diskfilter.c: Rename grub_raid_ to grub_diskfilter_.
  3995. (lv_num): New var.
  3996. (find_array): Renamed to ...
  3997. (find_lv): ... this. Support multi-LV. Skip nameless LVs
  3998. (grub_is_array_readable): Renamed to ...
  3999. (grub_is_lv_readable): ... this. Support multinode hierarchy.
  4000. (insert_array): New argument id.
  4001. (is_node_readable): New function.
  4002. (scan_device): Rename to ...
  4003. (scan_disk): .. this. Restrict to one disk.
  4004. (scan_devices): New function.
  4005. (grub_diskfilter_iterate): Support multi-LV.
  4006. Skip invisible and nameless LVs.
  4007. (grub_diskfilter_memberlist): Support multi-LV.
  4008. (grub_diskfilter_read_node): New function.
  4009. (grub_raid_read): Most of logic moved to ...
  4010. (read_segment): ... here
  4011. (read_lv): New function.
  4012. (grub_diskfilter_get_vg_by_uuid): New function.
  4013. (grub_diskfilter_make_raid): Likewise.
  4014. * grub-core/disk/ldm.c: New file.
  4015. * grub-core/disk/lvm.c (vg_list): Removed.
  4016. (lv_count): Likewise.
  4017. (scan_depth): Likewise.
  4018. (is_lv_readable): Likewise.
  4019. (grub_lvm_getvalue): Advance pointer past the number.
  4020. (find_lv): Removed.
  4021. (do_lvm_scan): Refactored into ...
  4022. (grub_lvm_detect): ... this. Support raid.
  4023. (grub_lvm_iterate): Removed.
  4024. (grub_lvm_memberlist): Likewise.
  4025. (grub_lvm_open): Likewise.
  4026. (grub_lvm_close): Likewise.
  4027. (read_lv): Likewise.
  4028. (read_node): Likewise.
  4029. (is_node_readable): Likewise.
  4030. (is_lv_readable): Likewise.
  4031. (grub_lvm_read): Likewise.
  4032. (grub_lvm_write): Likewise.
  4033. (grub_lvm_dev): Use diskfilter
  4034. (GRUB_MOD_INIT): Likewise.
  4035. (GRUB_MOD_FINI): Likewise.
  4036. * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Use
  4037. new interface.
  4038. * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Likewise.
  4039. * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
  4040. * grub-core/disk/raid5_recover.c (grub_raid5_recover): Use
  4041. grub_diskfilter_read_node.
  4042. Fix a bug with xor.
  4043. * grub-core/disk/raid6_recover.c (grub_raid6_recover): Use
  4044. grub_diskfilter_read_node.
  4045. Support GRUB_RAID_LAYOUT_MUL_FROM_POS.
  4046. * grub-core/kern/disk.c (grub_disk_dev_list): Make global.
  4047. (grub_disk_dev_iterate): Move from here...
  4048. * include/grub/disk.h (grub_disk_dev_iterate): ... to here. Inlined.
  4049. * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
  4050. Make global.
  4051. (grub_hostdisk_find_partition_start): Likewise.
  4052. (grub_hostdisk_os_dev_to_grub_drive): New function.
  4053. (grub_util_biosdisk_get_osdev): Check that disk is biosdisk.
  4054. * grub-core/kern/emu/hostdisk.c (make_device_name): Move to ...
  4055. * util/getroot.c (make_device_name): ... here.
  4056. * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
  4057. Move to ...
  4058. * util/getroot.c (grub_util_get_dm_node_linear_info): ...here.
  4059. * grub-core/kern/emu/hostdisk.c
  4060. (convert_system_partition_to_system_disk): Move to ...
  4061. * util/getroot.c (convert_system_partition_to_system_disk): ...here.
  4062. * grub-core/kern/emu/hostdisk.c (device_is_wholedisk): Move to ...
  4063. * util/getroot.c (device_is_wholedisk): ... here.
  4064. * grub-core/kern/emu/hostdisk.c (find_system_device): Move to ...
  4065. * util/getroot.c (find_system_device): ... here.
  4066. * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_present):
  4067. Move to ...
  4068. * util/getroot.c (grub_util_biosdisk_is_present): ...here.
  4069. * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
  4070. Move to ...
  4071. * util/getroot.c (grub_util_biosdisk_get_grub_dev): ... here.
  4072. Handle LDM.
  4073. * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
  4074. Move to ...
  4075. * util/getroot.c (grub_util_biosdisk_is_floppy): ... here.
  4076. * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Made global.
  4077. * include/grub/disk.h (grub_disk_dev_id): Replaced RAID and LVM with
  4078. DISKFILTER.
  4079. * include/grub/raid.h: Renamed to ...
  4080. * include/grub/diskfilter.h: ... this.
  4081. * include/grub/diskfilter.h: Rename grub_raid_* to grub_diskfilter_*
  4082. (GRUB_RAID_LAYOUT_*): Make into array.
  4083. (GRUB_RAID_LAYOUT_MUL_FROM_POS): New value.
  4084. (grub_diskfilter_vg): New struct.
  4085. (grub_diskfilter_pv_id): Likewise.
  4086. (grub_raid_member): Removed.
  4087. (grub_raid_array): Likewise.
  4088. (grub_diskfilter_pv): New struct.
  4089. (grub_diskfilter_lv): Likewise.
  4090. (grub_diskfilter_segment): Likewise.
  4091. (grub_diskfilter_node): Likewise.
  4092. (grub_diskfilter_get_vg_by_uuid): New proto.
  4093. (grub_raid_register): Inline.
  4094. (grub_diskfilter_unregister): Likewise.
  4095. (grub_diskfilter_make_raid): New proto.
  4096. (grub_diskfilter_vg_register): Likewise.
  4097. (grub_diskfilter_read_node): Likewise.
  4098. (grub_diskfilter_get_pv_from_disk) [GRUB_UTIL]: Likewise.
  4099. * include/grub/emu/hostdisk.h (grub_util_get_ldm): New proto.
  4100. (grub_util_is_ldm): Likewise.
  4101. (grub_util_ldm_embed) [GRUB_UTIL]: Likewise.
  4102. (grub_hostdisk_find_partition_start): Likewise.
  4103. (grub_hostdisk_os_dev_to_grub_drive): Likewise.
  4104. * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_LDM):
  4105. New definition.
  4106. (grub_gpt_partition_map_iterate): New proto.
  4107. * include/grub/lvm.h (grub_lvm_vg): Removed.
  4108. (grub_lvm_pv): Likewise.
  4109. (grub_lvm_lv): Likewise.
  4110. (grub_lvm_segment): Likewise.
  4111. (grub_lvm_node): Likewise.
  4112. * util/getroot.c [...]
  4113. * util/grub-probe.c (probe_raid_level): Handle diskfilter.
  4114. (probe_abstraction): Likewise.
  4115. * util/grub-setup.c (setup): Remove must_embed. Support LDM.
  4116. (main): Remove dead logic.
  4117. 2012-01-28 Vladimir Serbinenko <phcoder@gmail.com>
  4118. Simplify root device discover and don't fail when trying to open
  4119. incorrect devices.
  4120. * grub-core/disk/efi/efidisk.c (get_diskname_from_path_real): New
  4121. function.
  4122. (get_diskname_from_path): Likewise.
  4123. (grub_efidisk_get_device_name): Use get_diskname_from_path instead
  4124. of iterating.
  4125. 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
  4126. * grub-core/Makefile.core.def (setpci): Enable on all PCI platforms.
  4127. 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
  4128. * grub-core/fs/zfs/zfs.c (nvlist_find_value): Check that we don't go
  4129. pastthe end.
  4130. 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
  4131. * util/grub-install.in: Add missing \.
  4132. Reported by: gentoofan
  4133. 2012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
  4134. * grub-core/fs/squash4.c (xz_decompress): Fix return value.
  4135. (direct_read): Use correct compressed size.
  4136. (grub_squash_read_data): Likewise.
  4137. 2012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
  4138. * docs/grub.texi (Platform limitations): New section.
  4139. (Platform-specific operations): Likewise.
  4140. * docs/grub-dev.texi (Porting): Likewise.
  4141. 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
  4142. IEEE1275 disk write support.
  4143. * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_write): Make buffer
  4144. const void *.
  4145. * include/grub/ieee1275/ieee1275.h (grub_ieee1275_write): Likewise.
  4146. * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_read): Move open
  4147. and seek loginc to ...
  4148. (grub_ofdisk_prepare): ... here.
  4149. (grub_ofdisk_write): Implement.
  4150. 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
  4151. ARC disk write support.
  4152. * grub-core/disk/arc/arcdisk.c (handle_writable): New var.
  4153. (reopen): New argument writable. All users updated.
  4154. Handle required access mode.
  4155. (grub_arcdisk_write): Implement.
  4156. * include/grub/arc/arc.h (grub_arc_file_access): New enum.
  4157. (grub_arc_firmware_vector): Make buffer to write a const buffer.
  4158. 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
  4159. * grub-core/fs/btrfs.c (grub_btrfs_device): New field size.
  4160. (read_sblock): Don't attempt to read superblocks outside the disk size.
  4161. 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
  4162. * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Use device size from
  4163. first superblock to find the second one when possible.
  4164. 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
  4165. * util/grub-install.in: Fix an ARC bug.
  4166. Print a warning if no platform-specific setup is available.
  4167. 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
  4168. Use static allocation rather than scratch pointer in reed_solomon.
  4169. It decreases its size significantly and avoids a variable in .text.
  4170. * grub-core/lib/reed_solomon.c (scratch): Removed.
  4171. (chosenstat): New const or static array.
  4172. (sigma): Likewise.
  4173. (errpot): Likewise.
  4174. (errpos): Likewise.
  4175. (sy): Likewise.
  4176. (mstat): Likewise.
  4177. (errvals): Likewise.
  4178. (eqstat): Likewise.
  4179. (pol_evaluate): Replace x with log_x argument. All users updated.
  4180. (syndroms): Removed.
  4181. (gauss_solve): Use statically allocated arrays.
  4182. (rs_recover): Likewise.
  4183. Calculate syndroms directly.
  4184. (decode_block): Use statically allocated arrays.
  4185. (grub_reed_solomon_add_redundancy) [TEST]: Fix -DTEST compilation.
  4186. (main) [TEST]: Allow -DTEST -DSTANDALONE.
  4187. 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
  4188. Eliminate fixed limit on reed solomon decoder length.
  4189. * grub-core/boot/i386/pc/lnxboot.S: Scan for multiboot signature
  4190. rather than hardcoding the address.
  4191. * grub-core/boot/i386/pc/startup_raw.S: Add new data field
  4192. no_reed_solomon_length.
  4193. Move gate_a20 to no-reed-solomon part.
  4194. Don't force a particular size of no reed-solomon part.
  4195. * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
  4196. Removed.
  4197. (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_LENGTH): New define.
  4198. * util/grub-setup.c (setup): Read no_rs_length from the image itself.
  4199. 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
  4200. * grub-core/commands/wildcard.c (match_files): Handle filenames
  4201. without explicit device.
  4202. (wildcard_expand): Don't add explicit device if not already present.
  4203. * tests/grub_script_echo1.in: Add a new expansion test.
  4204. 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
  4205. Replace single-linked with double-linked lists. It results in more
  4206. compact and more efficient code.
  4207. * grub-core/kern/list.c (grub_list_push): Moved from here ...
  4208. * include/grub/list.h (grub_list_push): ... to here. Set prev.
  4209. (grub_list_remove): Moved from here ...
  4210. * include/grub/list.h (grub_list_remove): ... here. Use and set prev.
  4211. (grub_prio_list_insert): Set prev.
  4212. * include/grub/list.h (grub_list): Add prev. All users updated.
  4213. 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
  4214. Handle newer autotools. Add some missing quotes while on it.
  4215. * Makefile.am (pkglib_DATA): Remove update-grub_lib.
  4216. (pkglib_DATA): Move grub-mkconfig_lib from here ...
  4217. (pkgdata_DATA): ... here.
  4218. * Makefile.util.def (update-grub_lib): Removed.
  4219. * conf/Makefile.common (pkglib_DATA): Removed.
  4220. (pkglib_SCRIPTS): Likewise.
  4221. (pkgdata_DATA): New variable.
  4222. * tests/util/grub-shell-tester.in: Replace pkglib with pkgdata where
  4223. needed.
  4224. Add missing quotes.
  4225. Remove unused variable while on it.
  4226. * tests/util/grub-shell.in: Likewise.
  4227. * util/grub-install.in: Likewise.
  4228. * util/grub-mkconfig.in: Likewise.
  4229. * util/grub-mknetdir.in: Likewise.
  4230. * util/grub-mkrescue.in: Likewise.
  4231. * util/grub-mkstandalone.in: Likewise.
  4232. * util/grub.d/00_header.in: Likewise.
  4233. * util/grub.d/10_hurd.in: Likewise.
  4234. * util/grub.d/10_illumos.in: Likewise.
  4235. * util/grub.d/10_kfreebsd.in: Likewise.
  4236. * util/grub.d/10_linux.in: Likewise.
  4237. * util/grub.d/10_netbsd.in: Likewise.
  4238. * util/grub.d/10_windows.in: Likewise.
  4239. * util/grub.d/20_linux_xen.in: Likewise.
  4240. * util/grub.d/30_os-prober.in: Likewise.
  4241. * util/update-grub_lib.in: Removed.
  4242. 2012-01-24 Seth Goldberg <seth.goldberg@oracle.com>
  4243. * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Relax checks as
  4244. a workaround for intel problem.
  4245. 2012-01-23 Paulo de Rezende Pinatti <ppinatti@linux.vnet.ibm.com>
  4246. 2012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
  4247. 2012-01-23 pfsmorigo
  4248. * util/grub-install.in: Support dd'in into PreP partition.
  4249. * util/grub-probe.c (probe): Support discovering partition type.
  4250. (main): Support -t msdos_parttype.
  4251. 2012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
  4252. * grub-core/normal/crypto.c (grub_crypto_autoload): Prevent
  4253. infinite recursion using counter.
  4254. * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_init): Defer s->crc32
  4255. init to skip it if the magic check fails.
  4256. (dec_stream_header): Init s->crc32.
  4257. 2012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
  4258. 2012-01-22 Zachary Bedell <pendorbound@gmail.com>
  4259. 2012-01-22 Richard Laager <rlaager@wiktel.com>
  4260. * grub-core/fs/zfs/zfs.c (uberblock_verify): New parameter size.
  4261. All users updated.
  4262. (find_bestub): Determine correct size.
  4263. (fill_vdev_info_real): Fill ashift. New argument. All users updated.
  4264. (scan_disk): Align the size down.
  4265. Call check pool before find_bestub to have ashift.
  4266. 2012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
  4267. * grub-core/lib/relocator.c (malloc_in_range): Remove couple of
  4268. dprintf in no-malloc zone.
  4269. 2012-01-22 Mario Limonciello <mario_limonciello@dell.com>
  4270. * configure.ac: Add back in test for limits.h.
  4271. 2012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
  4272. Support 4K-sector NTFS.
  4273. * include/grub/ntfs.h (GRUB_NTFS_MAX_MFT): Increase to 8.
  4274. (grub_ntfs_data): Remove blocksize.
  4275. * grub-core/fs/ntfs.c (fixup): Fix size comparison.
  4276. Remove data argument. All users updated.
  4277. 2012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
  4278. * grub-core/kern/mips/arc/init.c (grub_total_modules_size): Mark as
  4279. being in .text to avoid dprel references.
  4280. * include/grub/mips/loongson/kernel.h (grub_arch_machine): Likewise.
  4281. * include/grub/mips/loongson/memory.h (grub_arch_memsize): Likewise.
  4282. (grub_arch_highmemsize): Likewise.
  4283. * include/grub/mips/loongson/time.h (grub_arch_busclock): Likewise.
  4284. * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): Likewise.
  4285. * include/grub/mips/time.h (grub_arch_cpuclock): Likewise.
  4286. 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
  4287. Support powerpc with GCC that defines __PPC__ but not __powerpc__.
  4288. * config.h.in (__powerpc__) [__PPC__ && !__powerpc__]: New definition.
  4289. * grub-core/lib/setjmp.S: Treat __PPC__ as equivalent to __powerpc__.
  4290. 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
  4291. * include/grub/datetime.h (grub_get_datetime_cmos): Don't define in
  4292. GRUB_UTIL.
  4293. (grub_set_datetime_cmos): Likewise.
  4294. 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
  4295. Make XZ compression parameters dependent on target and not host CPU.
  4296. * configure.ac: Define GRUB_TARGET_CPU_XYZ series.
  4297. * grub-core/lib/xzembed/xz_config.h: Use GRUB_TARGET_CPU_XYZ.
  4298. 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
  4299. * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): Remove
  4300. set but not used variable.
  4301. 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
  4302. * grub-core/fs/reiserfs.c (grub_reiserfs_uuid): Reject 0-uuid as
  4303. created when no uuid support is compiled into mkfs.reiser.
  4304. 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
  4305. * grub-core/fs/hfs.c (macroman_to_utf8): Convert / to :.
  4306. (utf8_to_macroman): Do the opposite.
  4307. * grub-core/fs/hfsplus.c (grub_hfsplus_iterate_dir): Convert / to :.
  4308. 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
  4309. * configure.ac: Refise build qemu_mips w/o unifont.
  4310. 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
  4311. Eliminate grub_min/grub_max prone to overflow usage.
  4312. * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Eliminate grub_min.
  4313. (poll_nonroot_hub): Likewise.
  4314. * grub-core/fs/affs.c (grub_affs_iterate_dir): Likewise.
  4315. (grub_affs_label): Likewise.
  4316. * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Likewise.
  4317. * grub-core/fs/hfs.c (grub_hfs_dir): Likewise.
  4318. (grub_hfs_label): Likewise.
  4319. * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
  4320. * grub-core/fs/zfs/zfs.c (MIN): Remove.
  4321. (zap_leaf_array_equal): Use grub_size. Remove MIN.
  4322. (zap_leaf_array_get): Likewise.
  4323. (dnode_get_path): Likewise.
  4324. * grub-core/io/lzopio.c (grub_lzopio_read): Eliminate grub_min.
  4325. * grub-core/io/xzio.c (grub_xzio_read): Likewise.
  4326. * grub-core/script/execute.c (grub_script_break): Likewise.
  4327. * grub-core/script/lexer.c (grub_script_lexer_record): Eliminate
  4328. grub_max.
  4329. * grub-core/script/yylex.l (grub_lexer_yyrealloc): Likewise.
  4330. * include/grub/misc.h (grub_min): Removed.
  4331. (grub_max): Likewise.
  4332. 2012-01-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
  4333. * grub-core/fs/ext2.c (grub_ext2_iterate_dir): Ignore entries with
  4334. direct.inode = 0.
  4335. 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
  4336. * grub-core/lib/posix_wrap/wctype.h (CHARCLASS_NAME_MAX): New define.
  4337. 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
  4338. * include/grub/datetime.h (grub_datetime2unixtime): Fix offset.
  4339. 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
  4340. * grub-core/lib/posix_wrap/stdlib.h (MB_CUR_MAX): Moved from here ...
  4341. * grub-core/lib/posix_wrap/wchar.h (MB_CUR_MAX): ... here. Value fixed.
  4342. 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
  4343. * grub-core/fs/fshelp.c (grub_fshelp_find_file): Use grub_strcasecmp
  4344. rather than a hack for grub_strncasemap.
  4345. 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
  4346. Support multiple initrds
  4347. Note: part of this was accidently committed in r3739.
  4348. * grub-core/loader/i386/linux.c (grub_cmd_initrd): Support multiple
  4349. initrd.
  4350. * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
  4351. * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
  4352. * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
  4353. * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
  4354. * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
  4355. 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
  4356. * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Skip
  4357. disks with unknown size.
  4358. * grub-core/disk/raid.c (scan_devices): Allow disks with unknown sizes.
  4359. 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
  4360. Remove defines pertaining to arbitrary limits not affecting GRUB
  4361. anymore.
  4362. * grub-core/fs/ext2.c (EXT2_PATH_MAX): Removed.
  4363. (EXT2_MAX_SYMLINKCNT): Likewise.
  4364. * grub-core/fs/nilfs2.c (NILFS_BTREE_LEVEL_MAX): Likewise.
  4365. * grub-core/net/tftp.c (TFTP_MAX_PACKET): Likewise.
  4366. * include/grub/i386/pc/pxe.h (GRUB_PXE_MIN_BLKSIZE): Likewise.
  4367. (GRUB_PXE_MAX_BLKSIZE): Likewise.
  4368. * include/grub/normal.h (GRUB_MAX_CMDLINE): Likewise.
  4369. * include/grub/zfs/dnode.h (DN_MAX_INDBLKSHIFT): Likewise.
  4370. (DN_MAX_OBJECT_SHIFT): Likewise.
  4371. (DN_MAX_OFFSET_SHIFT): Likewise.
  4372. (DN_MAX_OBJECT): Likewise.
  4373. (DNODES_PER_LEVEL_SHIFT): Likewise.
  4374. * include/grub/zfs/spa.h (SPA_MAXBLOCKSHIFT): Likewise.
  4375. (SPA_MAXBLOCKSIZE): Likewise.
  4376. (SPA_BLOCKSIZES): Likewise.
  4377. * include/grub/zfs/zap_impl.h (MZAP_MAX_BLKSHIFT): Likewise.
  4378. (MZAP_MAX_BLKSZ): Likewise.
  4379. 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
  4380. * grub-core/fs/zfs/zfs.c (grub_zfs_read): Remove useless alloc and
  4381. handle NULL appropriately.
  4382. Remove MIN.
  4383. 2012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
  4384. Fix efiemu.
  4385. * grub-core/efiemu/runtime/efiemu.c: explicitly include right
  4386. cpu/types.h.
  4387. (efiemu_set_virtual_address_map): Remove UINT_TO_PTR.
  4388. * configure.ac: Fix efiemu check.
  4389. 2012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
  4390. * util/grub.d/30_os-prober.in: Fix occurence of grub-probe instead of
  4391. grub_probe.
  4392. Reported by: adamwill
  4393. 2012-01-12 Seth Goldberg <seth.goldberg@oracle.com>
  4394. * grub-core/lib/arg.c (grub_arg_parse): Fix NULL pointer dereference.
  4395. 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
  4396. Fix handling of wide characters in gfxterm.
  4397. * grub-core/term/gfxterm.c (grub_colored_char): Remove width and index.
  4398. (clear_char): Likewise.
  4399. (paint_char): Skip code == NULL chars.
  4400. (grub_gfxterm_putchar): Set code = NULL on "shadowed" positions.
  4401. 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
  4402. * grub-core/normal/charset.c: Move comment to right place.
  4403. 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
  4404. * grub-core/fs/affs.c (grub_affs_bblock): Revert flags.
  4405. (GRUB_AFFS_FLAG_FFS): Put back where it was.
  4406. (grub_affs_mount): Revert the correct version checking.
  4407. 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
  4408. * docs/grub.texi (Unicode): Mention several other unsupported features.
  4409. 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
  4410. * grub-core/fs/squash4.c (squash_mount): Mark endian conversion in
  4411. case statements as compile-time one.
  4412. (direct_read): Prevent spurious warnings.
  4413. (grub_squash_read_data): Likewise.
  4414. 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
  4415. Various squash4 fixes and LZO and XZ support.
  4416. * Makefile.util.def (libgrubmods.a): Add xzembed directory to cppflags.
  4417. Add xzembed source files.
  4418. * grub-core/Makefile.core.def (squash4): Add xzembed and minilzo flags.
  4419. * grub-core/fs/squash4.c (grub_squash_super): New field compression.
  4420. (grub_squash_inode): New subtype long_dir.
  4421. (SQUASH_TYPE_LONG_DIR): New inode type.
  4422. (COMPRESSION): New enum.
  4423. (XZBUFSIZ): New const.
  4424. (grub_squash_data): New fields blksz, decompress, xzdec, xzbuf.
  4425. (read_chunk): Use data->decompress.
  4426. (zlib_decompress): New function.
  4427. (lzo_decompress): Likewise.
  4428. (xz_decompress): Likewise.
  4429. (squash_mount): Set new data fields.
  4430. (grub_squash_iterate_dir): Handle long dir.
  4431. (squash_unmount): Free xzdec and xzbuf.
  4432. (grub_squash_open): Check ino type.
  4433. (direct_read): Stylistic fixes. Use data->decompress.
  4434. (grub_squash_read_data): Likewise.
  4435. * grub-core/io/gzio.c (grub_gzio): Remove disk_input.
  4436. (get_byte): Likewise.
  4437. (grub_zlib_disk_read): Removed.
  4438. * grub-core/lib/posix_wrap/sys/types.h (ssize_t): New type.
  4439. (GRUB_POSIX_BOOL_DEFINED): New define.
  4440. * grub-core/lib/posix_wrap/unistd.h: Include sys/types.h.
  4441. * grub-core/lib/xzembed/xz.h: Addmissing includes.
  4442. [!GRUB_POSIX_BOOL_DEFINED]: Define bool.
  4443. * include/grub/deflate.h (grub_zlib_disk_read): Removed.
  4444. 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
  4445. Don't override more informative errors.
  4446. * grub-core/commands/acpi.c (grub_cmd_acpi): Don't override errors.
  4447. * grub-core/font/font.c (open_section): Likewise.
  4448. * grub-core/loader/i386/bsd.c (grub_bsd_load_aout): New argument
  4449. filename. Don't override errors.
  4450. (grub_cmd_openbsd_ramdisk): Don't override errors.
  4451. * grub-core/loader/i386/linux.c (grub_cmd_linux): Likewise.
  4452. (grub_cmd_initrd): Likewise.
  4453. * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
  4454. (grub_cmd_initrd): Likewise.
  4455. * grub-core/loader/ia64/efi/linux.c (grub_load_elf64): Likewise.
  4456. (grub_cmd_linux): Likewise.
  4457. (grub_cmd_initrd): Likewise.
  4458. (grub_cmd_payload): Likewise.
  4459. * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
  4460. * grub-core/loader/multiboot.c (grub_cmd_multiboot): Likewise.
  4461. (grub_cmd_module): Likewise.
  4462. * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
  4463. * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
  4464. * grub-core/loader/xnu.c (grub_xnu_load_driver): Likewise.
  4465. (grub_cmd_xnu_mkext): Likewise.
  4466. (grub_cmd_xnu_ramdisk): Likewise.
  4467. (grub_xnu_check_os_bundle_required): Likewise.
  4468. (grub_xnu_load_kext_from_dir): Likewise.
  4469. (grub_cmd_xnu_kextdir): Likewise.
  4470. * grub-core/loader/xnu_resume.c (grub_xnu_resume): Likewise.
  4471. 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
  4472. * grub-core/fs/minix.c (grub_minix_mount) [MODE_MINIX3]: Treat 0xffff
  4473. as 1024 in block size field. Found on one of my test images.
  4474. Small optimisation while on it.
  4475. 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
  4476. * docs/grub.texi (Filesystems): Mention SFS as Latin1 filesystem.
  4477. * grub-core/fs/sfs.c (grub_sfs_mount): Fix a memory leak while on it.
  4478. (grub_sfs_iterate_dir): Convert Latin1 to UTF8. Stylistic and
  4479. performance fixes while on it.
  4480. (grub_sfs_close): Fix memory leak while on it.
  4481. (grub_sfs_label): Convert Latin1 to UTF-8.
  4482. 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
  4483. * grub-core/fs/hfs.c (grub_hfs_dir): Cap keylen to actually available
  4484. space to avoid overflows.
  4485. (grub_hfs_label): Convert from macroman to UTF-8.
  4486. 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
  4487. * grub-core/fs/affs.c (grub_affs_label): Interpret label as latin1.
  4488. 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
  4489. * grub-core/normal/menu.c (menu_init): Don't stop menu init at gfxterm.
  4490. 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
  4491. * unicode: Import Unicode 6.0 data.
  4492. 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
  4493. * grub-core/term/gfxterm.c (grub_gfxterm_putchar): Don't set values
  4494. outside of range.
  4495. 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
  4496. Avoid cutting in the middle of UTF-8 character.
  4497. * include/grub/charset.h (grub_getend): New function.
  4498. * grub-core/script/function.c (grub_script_function_find): Use
  4499. grub_getend.
  4500. * grub-core/normal/completion.c (add_completion): Likewise.
  4501. 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
  4502. * grub-core/normal/charset.c (grub_ucs4_to_utf8): Small stylistic fix.
  4503. (grub_bidi_line_logical_to_visual): Skip tags. They are deprecated.
  4504. * include/grub/unicode.h (GRUB_UNICODE_TAG_START): New enum value.
  4505. (GRUB_UNICODE_TAG_END): Likewise.
  4506. (GRUB_UNICODE_LAST_VALID): Likewise.
  4507. 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
  4508. * include/grub/unicode.h (grub_unicode_compact_range): Replace end with
  4509. len and make it smaller. All users updated.
  4510. * util/import_unicode.py: Put length and not end character.
  4511. Check length.
  4512. 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
  4513. Make better Unicode-compliant and unify some UTF-8 code pathes.
  4514. * grub-core/normal/charset.c (grub_utf8_to_utf16): Don't eat possibly
  4515. valid character.
  4516. (grub_is_valid_utf8): Use grub_utf8_process.
  4517. Check resulting code range.
  4518. (grub_utf8_to_ucs4): Use grub_utf8_process.
  4519. * include/grub/charset.h (grub_utf16_to_utf8): Don't eat up a possibly
  4520. valid character.
  4521. 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
  4522. * grub-core/io/bufio.c (grub_bufio_read): Fix handling of corner cases.
  4523. 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
  4524. * docs/grub.texi (Filesystems): Mention AFS.
  4525. 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
  4526. * docs/grub.texi (Filesystems): Clarify restrictions.
  4527. (Regexp): Mention non-Unicode regexp behaviour.
  4528. (Other): Mention non-Unicode matching behaviour.
  4529. 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
  4530. Make HFS implementation use MacRoman.
  4531. * grub-core/fs/hfs.c (MAX_UTF8_PER_MAC_ROMAN): New define.
  4532. (macroman): New const array.
  4533. (macroman_to_utf8): New function.
  4534. (utf8_to_macroman): Likewise.
  4535. (grub_hfs_find_dir): Use utf8_to_macroman.
  4536. (grub_hfs_dir): Use macroman_to_utf8.
  4537. Set case_insensitive.
  4538. 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
  4539. * docs/grub.texi (Filesystems): Add IEEE1275 full-path example.
  4540. 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
  4541. Integrate hints into autogeneration scripts.
  4542. * docs/grub.texi (Filesystems): Add a hostdisk example.
  4543. * Makefile.util.def (grub-mkdevicemap): Remove ofpath.
  4544. (grub-probe): Add ofpath.
  4545. * gentpl.py: Remove group nosparc64.
  4546. * grub-core/commands/search.c (cache_entry): New struct.
  4547. (cache): New var.
  4548. (FUNC_NAME): Use and save cache. Fix handling of trailing comma.
  4549. * grub-core/commands/search_wrap.c (options): Add platform-specific
  4550. hint options.
  4551. (grub_cmd_search): Handle platform-specific hints.
  4552. (GRUB_MOD_INIT): Declare grub_cmd_search as accept_dash.
  4553. * grub-core/kern/emu/hostdisk.c (map): New field device_map.
  4554. (grub_util_biosdisk_data): Likewise.
  4555. (grub_util_biosdisk_open): Set device_map.
  4556. (read_device_map): Handle "" as indication of no map.
  4557. Set device_map.
  4558. (find_system_device): Add hostdisk/ prefix for autogenerated entries.
  4559. (grub_util_biosdisk_get_compatibility_hint): New function.
  4560. * grub-core/normal/main.c (features): Add feature_platform_search_hint.
  4561. * include/grub/emu/hostdisk.h
  4562. (grub_util_biosdisk_get_compatibility_hint): New proto.
  4563. * util/grub-install.in: Don't call grub-mkdevicemap.
  4564. Add platform-specific hint to load.cfg.
  4565. * util/grub-mkconfig.in: Don't call grub-mkdevicemap.
  4566. * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
  4567. hints. Set root preliminary to compatibility hint, not to OS name.
  4568. * util/grub-probe.c (PRINT_*): Add hints.
  4569. (print): Make static.
  4570. (escape_of_path): New function.
  4571. (guess_bios_drive): Likewise.
  4572. (guess_efi_drive): Likewise.
  4573. (guess_baremetal_drive): Likewise.
  4574. (print_full_name): Likewise.
  4575. (probe): Handle hints.
  4576. (main): Likewise.
  4577. * util/ieee1275/devicemap.c: Removed.
  4578. * util/ieee1275/ofpath.c (find_obppath): Allow to fail. All users
  4579. updated.
  4580. (grub_util_devname_to_ofpath): Return NULL on failure.
  4581. * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Fix
  4582. resource leak.
  4583. * util/getroot.c (grub_util_pull_device): Fix memory leak.
  4584. * po/POTFILES.in: Regenerated.
  4585. Allow purely long options
  4586. * grub-core/lib/arg.c (SHORT_ARG_HELP): Removed.
  4587. (SHORT_ARG_USAGE): Likewise.
  4588. (grub_arg_show_help): Compare opt with help_options.
  4589. (parse_option): Receive opt as argument. If makes big simplificatons.
  4590. All users updated
  4591. 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
  4592. * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN):
  4593. Restructure to avoid warning.
  4594. 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
  4595. * util/grub-install.in: Account for possible escaped comma in device
  4596. name.
  4597. 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
  4598. * util/ieee1275/ofpath.c (of_path_of_ide): Fix address for secondary
  4599. channel.
  4600. 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
  4601. * grub-core/kern/ieee1275/openfw.c (grub_devalias_iterate): Fix
  4602. allocation and zero-setting.
  4603. (grub_ieee1275_get_devname): Check that alias is complete.
  4604. 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
  4605. * grub-core/kern/disk.c (grub_disk_read): Fix hook calling for
  4606. unaligned segments.
  4607. 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
  4608. * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Add ieee1275/
  4609. prefix.
  4610. (grub_ofdisk_open): Check and discard ieee1275 prefix.
  4611. * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
  4612. Add ieee1275 prefix.
  4613. 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
  4614. * docs/grub.texi (Filesystems): Update.
  4615. 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
  4616. Support odc, newc and bigendian cpio formats.
  4617. * Makefile.util.def (libgrubmods): Add odc.c, newc.c and cpio_be.c.
  4618. * grub-core/Makefile.core.def (newc): New module.
  4619. (odc): Likewise.
  4620. (cpio_be): Likewise.
  4621. * grub-core/fs/cpio.c (ALIGN_CPIO): New macro.
  4622. (MAGIC): Likewise.
  4623. (MAGIC2): Likewise.
  4624. (head) [MODE_ODC]: Adapt for the format.
  4625. (head) [MODE_NEWC]: Likewise.
  4626. (head) [!MODE_*]: Write fields of interest as arrays.
  4627. (MAGIC_USTAR): Removed.
  4628. (read_number) [MODE_NEWC]: Change to hex.
  4629. (read_number) [!MODE_*]: Parse binary arrays.
  4630. (grub_cpio_find_file): Factor out the code for better structure and
  4631. always use read_number.
  4632. (grub_cpio_mount): Use MAGIC and MAGIC2.
  4633. (grub_cpio_dir): Exit on first hook non-0 return.
  4634. (grub_cpio_fs) [MODE_ODC]: Set name to odc.
  4635. (grub_cpio_fs) [MODE_NEWC]: Set name to newc.
  4636. (GRUB_MOD_INIT) [MODE_ODC]: Set name to odc.
  4637. (GRUB_MOD_INIT) [MODE_NEWC]: Set name to newc.
  4638. (GRUB_MOD_FINI) [MODE_ODC]: Set name to odc.
  4639. (GRUB_MOD_FINI) [MODE_NEWC]: Set name to newc.
  4640. * grub-core/fs/newc.c: New file.
  4641. * grub-core/fs/odc.c: Likewise.
  4642. * grub-core/fs/cpio_be.c: Likewise.
  4643. 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
  4644. Fix handling of tar numbers occupying the whole field.
  4645. * grub-core/fs/cpio.c (read_number): New function.
  4646. (grub_cpio_find_file): Use read_number instead of strtoull.
  4647. 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
  4648. * grub-core/fs/cpio.c (grub_cpio_find_file): Fix handling of names
  4649. occupying the whole field size.
  4650. 2011-12-23 Lukas Anzinger <l.anzinger@gmail.com>
  4651. * util/grub-mkconfig_lib.in (version_test_gt): Fix variable names.
  4652. 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
  4653. * grub-core/net/net.c (grub_cmd_delroute): Add missing out condition.
  4654. 2011-12-23 Seth Goldberg <seth.goldberg@oracle.com>
  4655. * grub-core/Makefile.core.def (lzma_decompress): Add missing
  4656. TARGET_IMG_LDFLAGS.
  4657. 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
  4658. * util/getroot.c (ESCAPED_PATH_MAX): New define.
  4659. (mountinfo_entry): Increase the field size to take escaping into
  4660. account.
  4661. (find_root_device_from_libzfs): Add one byte to size of strings for
  4662. security.
  4663. 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
  4664. * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy): Add
  4665. an assert.
  4666. * util/grub-setup.c (setup): Likewise.
  4667. 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
  4668. * grub-core/boot/i386/pc/startup_raw.S: Add missing argument for
  4669. _LzmaDecodeA.
  4670. 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
  4671. * docs/grub.texi (Internationalisation): New section.
  4672. 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
  4673. * docs/grub.texi (Loopback booting): New section.
  4674. 2011-12-22 Keshav P R <the.ridikulus.rat@gmail.com>
  4675. * util/grub-mkstandalone.in: Fix minor typo errors.
  4676. 2011-12-20 Vladimir Serbinenko <phcoder@gmail.com>
  4677. IPv6, TCP, HTTP, ICMP and DNS support. Several cleanups and bugfixes.
  4678. * grub-core/Makefile.core.def (net): Add net/dns.c, net/tcp.c,
  4679. net/icmp.c and net/icmp6.c.
  4680. (http): New module.
  4681. (priority_queue): Likewise.
  4682. * grub-core/io/bufio.c: Rewritten.
  4683. * grub-core/lib/legacy_parse.c (legacy_command): New argument type
  4684. TYPE_WITH_CONFIGFILE_OPTION.
  4685. (legacy_commands): Add bootp and dhcp.
  4686. (is_option): Handle TYPE_WITH_CONFIGFILE_OPTION.
  4687. (grub_legacy_parse): Likewise.
  4688. * grub-core/lib/priority_queue.c: New file.
  4689. * grub-core/net/arp.c: Add missing license header.
  4690. (arp_find_entry): Removed.
  4691. (arp_find_entry): Likewise.
  4692. (grub_net_arp_resolve): Rename to ...
  4693. (grub_net_arp_send_request): ...this.
  4694. (grub_net_arp_receive): New card argument.
  4695. * grub-core/net/bootp.c (parse_dhcp_vendor): Clean up.
  4696. Set router and DNS server.
  4697. (grub_net_configure_by_dhcp_ack): Handle routing information.
  4698. (grub_cmd_bootp): Set checksum.
  4699. (grub_bootp_init): Remove net_dhcp.
  4700. * grub-core/net/dns.c: New file.
  4701. * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Wait for
  4702. completion.
  4703. (get_card_packet): Handle allocation.
  4704. (grub_efinet_findcards): Set mtu.
  4705. * grub-core/net/drivers/emu/emunet.c: Add missing license header.
  4706. (get_card_packet): Handle allocation.
  4707. (emucard): Set mtu.
  4708. * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Handle allocation
  4709. (GRUB_MOD_INIT): Set mtu.
  4710. * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnetcard_data): Remove
  4711. mtu.
  4712. (get_card_packet): Handle allocation.
  4713. (grub_ofnet_findcards): Set mtu.
  4714. * grub-core/net/ethernet.c (send_ethernet_packet): Add compile time
  4715. assert.
  4716. (grub_net_recv_ethernet_packet): Handle IPv6.
  4717. * grub-core/net/http.c: New file.
  4718. * grub-core/net/icmp.c: Likewise.
  4719. * grub-core/net/icmp6.c: Likewise.
  4720. * grub-core/net/ip.c (ip6addr): New type.
  4721. (ip6hdr): Likewise.
  4722. (reassemble): Likewise.
  4723. (cmp): New function.
  4724. (reassembles): New variable.
  4725. (grub_net_ip_chksum): Handle 0xffff sum and unaligned buffers.
  4726. (id): New variable.
  4727. (send_fragmented): New function.
  4728. (grub_net_send_ip_packet): Rename to ...
  4729. (grub_net_send_ip4_packet): ... this. Send fragmented if needed.
  4730. Handle non-UDP.
  4731. (grub_net_recv_ip_packets): Rename to ...
  4732. (handle_dgram): ... this. Check checksum. Handle non-UDP.
  4733. (free_rsm): New function.
  4734. (free_old_fragments): Likewise.
  4735. (grub_net_recv_ip4_packets): New function.
  4736. (grub_net_send_ip6_packet): Likewise.
  4737. (grub_net_send_ip_packet): Likewise.
  4738. (grub_net_recv_ip6_packets): Likewise.
  4739. (grub_net_recv_ip_packets): Likewise.
  4740. * grub-core/net/net.c (grub_net_link_layer_entry): New struct.
  4741. (LINK_LAYER_CACHE_SIZE): New const.
  4742. (link_layer_find_entry): New function.
  4743. (grub_net_link_layer_add_address): Likewise.
  4744. (grub_net_link_layer_resolve_check): Likewise.
  4745. (grub_net_link_layer_resolve): Likewise.
  4746. (grub_net_ipv6_get_slaac): Likewise.
  4747. (grub_net_ipv6_get_link_local): Likewise.
  4748. (grub_cmd_ipv6_autoconf): Likewise.
  4749. (parse_ip): Handle one number representation.
  4750. (parse_ip6): New functoion.
  4751. (match_net): Handle IPv6.
  4752. (grub_net_resolve_address): Handle IPv6 and DNS.
  4753. (grub_net_resolve_net_address): Handle IPv6.
  4754. (route_cmp): New function.
  4755. (grub_net_route_address): Find best route.
  4756. (grub_net_addr_to_str): Handle IPv6.
  4757. (grub_net_addr_cmp): New function.
  4758. (grub_net_add_addr): Register local route.
  4759. (print_net_address): Handle net address.
  4760. (grub_net_poll_cards): Retransmit TCP.
  4761. (grub_net_poll_cards_idle_real): Likewise.
  4762. (have_ahead): New function.
  4763. (grub_net_seek_real): Use underlying seek.
  4764. (GRUB_MOD_INIT): Register net_ipv6_autoconf and init dns.
  4765. * grub-core/net/tcp.c: New file.
  4766. * grub-core/net/tftp.c (tftp_data): Add priority_queue.
  4767. (cmp): New function.
  4768. (ack): Likewise.
  4769. (tftp_receive): Handle unordered input.
  4770. (destroy_pq): New function.
  4771. (tftp_close): Close pq.
  4772. * grub-core/net/udp.c: Put missing license header.
  4773. (grub_net_udp_socket): New function.
  4774. (udp_socket_register): Likewise.
  4775. (grub_net_udp_close): Likewise.
  4776. (grub_net_recv_udp_packet): Check checksum.
  4777. * include/grub/efi/api.h (grub_efi_simple_network): Add status.
  4778. * include/grub/misc.h (grub_memchr): New function.
  4779. * include/grub/net.h (GRUB_NET_*_SIZE): New enum.
  4780. (grub_net_card_driver): Return buf in recv.
  4781. (grub_net_slaac_mac_list): New struct.
  4782. (grub_network_level_protocol_id): Add ipv6.
  4783. (grub_net_network_level_addr): Likewise.
  4784. (grub_net_network_level_net_addr): Likewise.
  4785. (grub_net_app_protocol): Add seek.
  4786. (grub_net_socket): Removed.
  4787. (grub_net_sockets): Likewise.
  4788. (grub_net_socket_register): Likewise.
  4789. (grub_net_socket_unregister): Likewise.
  4790. (FOR_NET_SOCKETS): Likewise.
  4791. (grub_net_add_addr): Add const.
  4792. (GRUB_NET_BOOTP_*): New enum.
  4793. (grub_net_addr_cmp): New proto.
  4794. (GRUB_NET_MAX_STR_ADDR_LEN): Take IPV6 into account.
  4795. (GRUB_NET_MAX_STR_HWADDR_LEN): New define.
  4796. (grub_net_hwaddr_to_str): NEw proto.
  4797. (FOR_NET_NETWORK_LEVEL_INTERFACES): New macro.
  4798. (FOR_NET_NETWORK_LEVEL_INTERFACES_SAFE): Handle NULL.
  4799. (grub_dns_init): New proto.
  4800. (grub_dns_fini): Likewise.
  4801. (grub_net_tcp_retransmit): Likewise.
  4802. (grub_net_link_layer_add_address): Likewise.
  4803. (grub_net_link_layer_resolve_check): Likewise.
  4804. (grub_net_link_layer_resolve): Likewise.
  4805. (grub_net_dns_lookup): Likewise.
  4806. (grub_net_add_dns_server): Likewise.
  4807. (grub_net_remove_dns_server): Likewise.
  4808. (GRUB_NET_TRIES): New const.
  4809. (GRUB_NET_INTERVAL): Likewise.
  4810. * include/grub/net/arp.h: Mostly rewritten.
  4811. * include/grub/net/ethernet.h (grub_net_ethertype_t): New enum.
  4812. * include/grub/net/ip.h: Mostly rewritten.
  4813. * include/grub/net/netbuff.h: Indent.
  4814. * include/grub/net/tcp.h: New file.
  4815. * include/grub/net/udp.h: Mostly rewritten.
  4816. * include/grub/priority_queue.h: New file.
  4817. * include/grub/types.h (PRIdGRUB_SSIZE): New define.
  4818. (grub_swap_bytes64_compile_time): Likewise.
  4819. (grub_cpu_to_be16_compile_time): Likewise.
  4820. (grub_cpu_to_be32_compile_time): Likewise.
  4821. (grub_cpu_to_be64_compile_time): Likewise.
  4822. (grub_be_to_cpu64_compile_time): Likewise.
  4823. 2011-12-16 Vladimir Serbinenko <phcoder@gmail.com>
  4824. * grub-core/commands/i386/pc/drivemap.c (int13slot): Replace
  4825. UINT_TO_PTR with cast.
  4826. 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
  4827. * util/import_gcry.py: Skip _gcry_rmd160_mixblock and serpent_test. We
  4828. don't use them.
  4829. 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
  4830. * util/import_gcry.py: Don't add include camellia.h to camellia.c. It's
  4831. already there.
  4832. 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
  4833. * util/grub-mkimage.c (generate_image): Clean multiboot header to avoid
  4834. confusing ipxe.
  4835. 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
  4836. * grub-core/lib/libgcrypt/cipher/md4.c (transform) [WORDS_BIGENDIAN]:
  4837. Add missing const attribute.
  4838. * grub-core/lib/libgcrypt/cipher/md5.c (transform) [WORDS_BIGENDIAN]:
  4839. Likewise.
  4840. * grub-core/lib/libgcrypt/cipher/rmd160.c (transform) [WORDS_BIGENDIAN]:
  4841. Likewise.
  4842. 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
  4843. * grub-core/lib/libgcrypt/cipher/serpent.c (serpent_key_prepare): Fix
  4844. misaligned access.
  4845. (serpent_setkey): Likewise.
  4846. (serpent_encrypt_internal): Likewise.
  4847. (serpent_decrypt_internal): Likewise.
  4848. (serpent_encrypt): Don't put an alignment-increasing cast.
  4849. (serpent_decrypt): Likewise.
  4850. (serpent_test): Likewise.
  4851. 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
  4852. * grub-core/loader/multiboot.c (grub_cmd_module): Fix target address.
  4853. 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
  4854. Replace UINT_TO_PTR and PTR_TO_UINT with explicit grub_addr_t casts.
  4855. * include/grub/types.h (UINT_TO_PTR): Removed. All users switched to
  4856. grub_addr_t casts.
  4857. (PTR_TO_UINT64): Likewise.
  4858. (PTR_TO_UINT32): Likewise.
  4859. 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
  4860. * util/grub-mkimage.c (generate_image): Decrease the higher limit
  4861. because of stack.
  4862. * util/grub-setup.c (setup): Don't add redundancy past the higher load
  4863. limit.
  4864. 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
  4865. * grub-core/gfxmenu/gui_label.c (label_paint): Handle the case
  4866. text_width > available width a bit more gracefully.
  4867. 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
  4868. * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Fix
  4869. current address calculation.
  4870. 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
  4871. * grub-core/lib/reed_solomon.c (decode_block): Allocate on heap and not
  4872. stack.
  4873. (encode_block): Likewise.
  4874. 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
  4875. * grub-core/boot/i386/pc/startup_raw.S: Clear direction flag for
  4876. certainety.
  4877. 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
  4878. * grub-core/boot/i386/pc/startup_raw.S: Move realmode routines to
  4879. non-RS part to avoid RS messing with GDT.
  4880. * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
  4881. Increase to suit in realmode routines.
  4882. 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
  4883. * grub-core/kern/i386/realmode.S: Increase alignment.
  4884. * grub-core/boot/i386/pc/startup_raw.S: Likewise.
  4885. 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
  4886. * grub-core/lib/reed_solomon.c (init_powx): Set gf_powx_inv[0] just to
  4887. be deterministic.
  4888. (syndroms): Compute 0 syndrom.
  4889. (rs_recover): Use 0 syndrom.
  4890. 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
  4891. * include/grub/kernel.h (FOR_MODULES): Make it a bit faster.
  4892. 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
  4893. * include/grub/types.h (GRUB_PROPERLY_ALIGNED_ARRAY): Add missing
  4894. brackets.
  4895. 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
  4896. * grub-core/gfxmenu/widget-box.c (get_left_pad): Take corners into
  4897. account.
  4898. (get_top_pad): Likewise.
  4899. (get_right_pad): Likewise.
  4900. (get_bottom_pad): Likewise.
  4901. 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
  4902. * grub-core/gfxmenu/gui_list.c (draw_menu): Don't use assignment in if.
  4903. 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
  4904. * include/grub/efi/api.h (grub_efi_memory_descriptor): Add packed
  4905. attribute as the structure isn't guaranteed to be properly aligned.
  4906. (grub_efi_pci_device_path): Likewise.
  4907. (grub_efi_pccard_device_path): Likewise.
  4908. (grub_efi_memory_mapped_device_path): Likewise. Additionaly explicitly
  4909. specify the size of `memory_type'.
  4910. (grub_efi_vendor_device_path): Likewise.
  4911. (grub_efi_controller_device_path): Likewise.
  4912. (grub_efi_acpi_device_path): Likewise.
  4913. (grub_efi_expanded_acpi_device_path): Likewise.
  4914. (grub_efi_atapi_device_path): Likewise.
  4915. (grub_efi_scsi_device_path): Likewise.
  4916. (grub_efi_fibre_channel_device_path): Likewise.
  4917. (grub_efi_1394_device_path): Likewise.
  4918. (grub_efi_usb_device_path): Likewise.
  4919. (grub_efi_usb_class_device_path): Likewise.
  4920. (grub_efi_i2o_device_path): Likewise.
  4921. (grub_efi_mac_address_device_path): Likewise.
  4922. (grub_efi_ipv4_device_path): Likewise.
  4923. (grub_efi_ipv6_device_path): Likewise.
  4924. (grub_efi_infiniband_device_path): Likewise.
  4925. (grub_efi_uart_device_path): Likewise.
  4926. (grub_efi_vendor_messaging_device_path): Likewise.
  4927. (grub_efi_hard_drive_device_path): Likewise.
  4928. (grub_efi_cdrom_device_path): Likewise.
  4929. (grub_efi_vendor_media_device_path): Likewise.
  4930. (grub_efi_file_path_device_path): Likewise.
  4931. (grub_efi_protocol_device_path): Likewise.
  4932. (grub_efi_piwg_device_path): Likewise.
  4933. (grub_efi_bios_device_path): Likewise.
  4934. 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
  4935. * include/grub/charset.h (grub_utf16_to_utf8): Make src a const pointer.
  4936. (grub_ucs4_to_utf8_alloc): Likewise.
  4937. (grub_ucs4_to_utf8): Likewise.
  4938. * grub-core/normal/charset.c (grub_ucs4_to_utf8): Likewise.
  4939. (grub_ucs4_to_utf8_alloc): Likewise.
  4940. 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
  4941. AFFS never uses unicode.
  4942. * include/grub/charset.h (GRUB_MAX_UTF8_PER_LATIN1): New const.
  4943. (grub_latin1_to_utf8): New inline function.
  4944. * grub-core/fs/affs.c (grub_affs_iterate_dir): Convert latin1 to UTF8.
  4945. 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
  4946. * grub-core/fs/romfs.c (grub_romfs_mount): Fix pointer comparison
  4947. overflow.
  4948. 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
  4949. * grub-core/fs/squash4.c (grub_squash_inode): Fix field sizes.
  4950. (grub_squash_dirent_header): Likewise.
  4951. (read_chunk): Don't double swap.
  4952. (grub_squash_iterate_dir): Fix swap sizes.
  4953. 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
  4954. * grub-core/fs/jfs.c (grub_jfs_getent): Handle UTF16 endianness.
  4955. 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
  4956. * grub-core/fs/hfs.c (grub_hfs_find_node): Handle unaligned keys.
  4957. (grub_hfs_iterate_dir): Likewise.
  4958. 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
  4959. Fix video on platforms where unaligned access is forbidden.
  4960. Make several optimisations while on it.
  4961. * grub-core/video/fb/fbblit.c (grub_video_fbblit_replace_directN):
  4962. Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
  4963. (grub_video_fbblit_replace_32bit_1bit): Likewise.
  4964. (grub_video_fbblit_replace_24bit_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
  4965. Disable.
  4966. (grub_video_fbblit_replace_16bit_1bit):
  4967. Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
  4968. (grub_video_fbblit_replace_8bit_1bit): Likewise.
  4969. (grub_video_fbblit_replace_BGRX8888_RGBX8888): Likewise.
  4970. (grub_video_fbblit_replace_BGRX8888_RGB888): Likewise.
  4971. (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
  4972. (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
  4973. (grub_video_fbblit_replace_BGR888_RGB888): Likewise.
  4974. (grub_video_fbblit_replace_RGBX8888_RGB88): Likewise.
  4975. (grub_video_fbblit_replace_RGB888_RGBX888): Likewise.
  4976. (grub_video_fbblit_replace_RGB888_RGBX8888): Likewise.
  4977. (grub_video_fbblit_replace_index_RGBX8888): Likewise.
  4978. (grub_video_fbblit_replace_index_RGB888): Likewise.
  4979. (grub_video_fbblit_blend_BGRA8888_RGBA8888): Likewise.
  4980. (grub_video_fbblit_blend_BGR888_RGBA8888): Likewise.
  4981. (grub_video_fbblit_blend_RGBA8888_RGBA8888): Likewise.
  4982. (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
  4983. (grub_video_fbblit_blend_index_RGBA8888): Likewise.
  4984. (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
  4985. (grub_video_fbblit_blend_XXX888_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
  4986. Disable.
  4987. (grub_video_fbblit_blend_XXX565_1bit):
  4988. Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
  4989. * grub-core/video/fb/fbfill.c (grub_video_fbfill_direct32): Likewise.
  4990. * grub-core/video/fb/fbutil.c (grub_video_fb_get_video_ptr): Return
  4991. void *.
  4992. * grub-core/video/fb/video_fb.c (common_blitter)
  4993. [!GRUB_HAVE_UNALIGNED_ACCESS]: Skip disabled blitters.
  4994. (grub_video_fb_create_render_target_from_pointer)
  4995. [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
  4996. * include/grub/fbutil.h (grub_video_fb_get_video_ptr): Return void *.
  4997. * include/grub/i386/types.h (GRUB_HAVE_UNALIGNED_ACCESS): New
  4998. definition.
  4999. * include/grub/x86_64/types.h (GRUB_HAVE_UNALIGNED_ACCESS): Likewise.
  5000. 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
  5001. * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Support
  5002. HH22 and HM10 relocations.
  5003. 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
  5004. * grub-core/kern/misc.c (grub_vsnprintf_real): Fix fmt2 parsing.
  5005. 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
  5006. * grub-core/commands/videotest.c (grub_cmd_videotest): Check that
  5007. allocation succeeded.
  5008. 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
  5009. * grub-core/fs/iso9660.c (grub_iso9660_convert_string): Make first
  5010. argument a u8 pointer. All users updated.
  5011. Handle unaligned buffers.
  5012. 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
  5013. * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Force inlining of
  5014. add_part to workaround compiler bug.
  5015. 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
  5016. * include/grub/kernel.h (FOR_MODULES): Preserve alignment invariants.
  5017. 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
  5018. * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_elfsyms):
  5019. Reserve alignment invariants.
  5020. (grub_multiboot_load): Likewise.
  5021. (retrieve_video_parameters): Likewise.
  5022. (grub_multiboot_make_mbi): Likewise.
  5023. 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
  5024. * grub-core/loader/i386/xnu.c (grub_xnu_devprop_remove_property): Fix
  5025. incorrect pointer.
  5026. 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
  5027. * grub-core/disk/pata.c (grub_pata_pio_read): Handle unaligned buffer.
  5028. (grub_pata_pio_write): Likewise.
  5029. 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
  5030. Add noreturn attributes and remove unreachable code.
  5031. * grub-core/bus/cs5536.c (grub_cs5536_smbus_wait): Remove unreachable
  5032. code.
  5033. * grub-core/commands/halt.c (grub_cmd_halt): Remove unreachable
  5034. code. Mark as noreturn.
  5035. * grub-core/commands/minicmd.c (grub_mini_cmd_exit): Likewise.
  5036. * grub-core/commands/reboot.c (grub_cmd_reboot): Likewise.
  5037. * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Remove
  5038. unreachable code.
  5039. * grub-core/kern/main.c (grub_main): Mark as noreturn.
  5040. * grub-core/kern/rescue_reader.c (grub_rescue_run): Likewise.
  5041. * grub-core/lib/posix_wrap/stdlib.h (abort): Likewise.
  5042. * grub-core/normal/menu.c (run_menu): Remove unreachable code.
  5043. * include/grub/kernel.h (grub_main): Mark as noreturn.
  5044. * include/grub/reader.h (grub_rescue_run): Likewise.
  5045. 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
  5046. * include/grub/i386/qemu/memory.h (grub_machine_mmap_init): Remove
  5047. redundant declaration.
  5048. 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
  5049. * include/grub/net.h (grub_net_network_level_interfaces): Remove
  5050. redundant declaration.
  5051. (FOR_NET_NETWORK_LEVEL_INTERFACES): Move to appropriate place.
  5052. 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
  5053. * grub-core/commands/hdparm.c (le16_to_char): Make src and dest uint16 *
  5054. to ensure alignment.
  5055. (grub_hdparm_print_identify): Make argument uint16 * to ensure
  5056. alignment. Ensure tmp alignment.
  5057. (grub_cmd_hdparm): Ensure buf alignment.
  5058. * grub-core/disk/ata.c (grub_ata_strncpy): Make src and dest uint16 *
  5059. to ensure alignment.
  5060. (grub_ata_dumpinfo): Ensure text alignment.
  5061. (grub_atapi_identify): Preserve alignment invariant.
  5062. (grub_ata_identify): Likewise. Use grub_get_unaligned32 when necessary.
  5063. 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
  5064. * include/grub/emu/misc.h (xasprintf): Add missing format attribute.
  5065. * include/grub/mips/kernel.h (grub_halt): Remove redundant declaration.
  5066. * include/grub/mips/qemu_mips/kernel.h (grub_halt): Likewise.
  5067. * include/grub/misc.h (grub_reboot)
  5068. [GRUB_MACHINE_EMU || GRUB_MACHINE_QEMU_MIPS]: Export.
  5069. (grub_halt) [__mips__]: Likewise.
  5070. 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
  5071. * include/grub/efi/memory.h (grub_machine_mmap_iterate):
  5072. Remove redundant declaration.
  5073. (grub_mmap_get_post64): Likewise.
  5074. (grub_mmap_get_upper): Likewise.
  5075. (grub_mmap_get_lower): Likewise.
  5076. 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
  5077. * grub-core/partmap/dvh.c (grub_dvh_is_valid): Make argument
  5078. uint32_t * to ensure alignment.
  5079. (dvh_partition_map_iterate): Make `block' a union to ensure alignment.
  5080. 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
  5081. * grub-core/partmap/sunpc.c (grub_sun_is_valid): Make argument
  5082. uint16_t * to ensure alignment.
  5083. (sun_pc_partition_map_iterate): Make `block' a union to ensure
  5084. alignment.
  5085. 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
  5086. * grub-core/partmap/sun.c (grub_sun_is_valid): Make argument uint16_t *
  5087. to ensure alignment.
  5088. (sun_partition_map_iterate): Make `block' a union to ensure alignment.
  5089. 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
  5090. * grub-core/fs/ntfs.c (u16at): Make into inline function.
  5091. Handle unaligned pointers.
  5092. (u32at): Likewise.
  5093. (u64at): Likewise.
  5094. (fixup): Use byte access instead of v16at.
  5095. (find_attr): Fix imporper usage of v32at.
  5096. (read_data): Likewise.
  5097. (list_file): Handle byte-swapping and unaligned strings.
  5098. (grub_ntfs_label): Likewise.
  5099. 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
  5100. * grub-core/fs/udf.c (grub_udf_partmap): Add packed attribute
  5101. as it's not necessarily aligned.
  5102. 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
  5103. * grub-core/kern/mips/qemu_mips/init.c (grub_at_keyboard_init): Remove
  5104. redundant declaration.
  5105. (grub_serial_init): Likewise.
  5106. (grub_terminfo_init): Likewise.
  5107. 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
  5108. * grub-core/fs/zfs/zfs.c (DVA_OFFSET_TO_PHYS_SECTOR): Make into inline
  5109. function.
  5110. (ZAP_HASH_IDX): Likewise.
  5111. (ZAP_LEAF_HASH_SHIFT): Likewise.
  5112. (ZAP_LEAF_HASH_NUMENTRIES): Likewise.
  5113. (LEAF_HASH): Likewise.
  5114. (ZAP_LEAF_NUMCHUNKS): Likewise.
  5115. (ZAP_LEAF_CHUNK): Likewise. Changed pointer arithmetic to preserve
  5116. alignment invariants. Return pointer. All users updated.
  5117. (ZAP_LEAF_ENTRY): Make into inline function.
  5118. (NBBY): Removed.
  5119. (xor): LIkewise.
  5120. (xor_out): Use grub_crypto_xor.
  5121. (dnode_get_path): Use grub_get_unaligned.
  5122. (nvlist_find_value): Likewise.
  5123. (grub_zfs_nvlist_lookup_uint64): Likewise.
  5124. (grub_zfs_nvlist_lookup_string): Likewise.
  5125. (get_nvlist_size): Likewise.
  5126. (grub_zfs_open): Likewise.
  5127. (fill_fs_info): Likewise.
  5128. (grub_zfs_dir): Likewise.
  5129. * include/grub/zfs/zap_leaf.h (zap_leaf_phys): Adapt to preserve
  5130. alignment invariants.
  5131. * include/grub/zfs/zio.h (zio_eck_t): Mark as packed as it's not
  5132. necessarily aligned.
  5133. 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
  5134. * grub-core/net/netbuff.c (grub_netbuff_alloc): Ensure proper alignment.
  5135. 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
  5136. * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Change pointer
  5137. arithmetic to conserve alignment invariants.
  5138. 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
  5139. * include/grub/efiemu/efiemu.h (grub_efiemu_get_memory_map): Remove
  5140. redundant declaration.
  5141. (grub_efiemu_mm_obtain_request): Likewise.
  5142. (grub_efiemu_prepare): Likewise.
  5143. 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
  5144. * include/grub/list.h: Explicitly cast return of grub_bad_type_cast
  5145. to match types.
  5146. 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
  5147. * grub-core/fs/hfsplus.c (grub_hfsplus_btree_recoffset): Handle the
  5148. case of aunaligned recptr.
  5149. (grub_hfsplus_read_block): Declare extoverflow as key to ensure
  5150. alignment.
  5151. (grub_hfsplus_btree_search): Handle unaligned index.
  5152. 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
  5153. * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Use grub_get_unaligned16
  5154. to get freetag and skip.
  5155. 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
  5156. * grub-core/fs/nilfs2.c (grub_nilfs2_btree_node): Add zero-size keys
  5157. array.
  5158. (grub_nilfs2_btree_node_dkeys): Ensure return pointer alignment.
  5159. (grub_nilfs2_btree_lookup): Ensure buffer alignment.
  5160. 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
  5161. * grub-core/fs/romfs.c (grub_romfs_iterate_dir): Properly align
  5162. name for checksum and fix allocation algorithm.
  5163. 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
  5164. * include/grub/types.h (grub_properly_aligned_t): New type.
  5165. (GRUB_PROPERLY_ALIGNED_ARRAY): New macro.
  5166. (grub_get_unaligned16): Add explicit casts.
  5167. (grub_get_unaligned32): Likewise.
  5168. (grub_get_unaligned64): Likewise.
  5169. (grub_set_unaligned16): New function.
  5170. (grub_set_unaligned32): Likewise.
  5171. 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
  5172. * grub-core/normal/datetime.c (grub_weekday_names): Make const.
  5173. 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
  5174. * grub-core/fs/udf.c (read_string): Macroify GRUB_MAX_UTF8_PER_UTF16.
  5175. * grub-core/fs/jfs.c (grub_jfs_diropen): Likewise.
  5176. * grub-core/fs/fat.c (grub_fat_iterate_dir): Likewise.
  5177. 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
  5178. * grub-core/term/at_keyboard.c (set_scancodes): Fix preprocessor
  5179. conditionals.
  5180. 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
  5181. * grub-core/kern/emu/main.c (main): Add missing const qualifier.
  5182. * grub-core/loader/efi/appleloader.c (devdata): Likewise.
  5183. 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
  5184. Unify and improve RAID and crypto xor.
  5185. * grub-core/disk/raid.c (grub_raid_block_xor): Removed. All users
  5186. changed to grub_crypto_xor
  5187. * grub-core/lib/crypto.c (grub_crypto_xor): Moved from here ...
  5188. * include/grub/crypto.h (grub_crypto_xor): ... here. Inlined.
  5189. Use bigger types when possible.
  5190. 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
  5191. * grub-core/disk/raid.c (scan_devices): Fix condition.
  5192. 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
  5193. * grub-core/net/drivers/ieee1275/ofnet.c (bootp_response_properties):
  5194. Make name a const ptr.
  5195. 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
  5196. * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_finddevice): Make
  5197. first argument a const pointer.
  5198. * grub-core/kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
  5199. * include/grub/ieee1275/ieee1275.h (grub_ieee1275_finddevice): Update
  5200. proto.
  5201. (grub_children_iterate): Likewise.
  5202. (grub_machine_mmap_iterate): Remove redundant declaration.
  5203. 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
  5204. * grub-core/commands/acpi.c (grub_acpi_create_ebda) [!x86]: Disable.
  5205. (grub_cmd_acpi) [!x86]: Disable EBDA.
  5206. 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
  5207. Enable UTF8 in gnulib regexp.
  5208. * config.h.in (RE_ENABLE_I18N) [!GRUB_UTIL]: New define.
  5209. * grub-core/lib/posix_wrap/ctype.h (islower): Use grub_islower.
  5210. (isupper): Use grub_isupper.
  5211. (isascii): New inline function.
  5212. * grub-core/lib/posix_wrap/wchar.h: Replace dummy with real contents.
  5213. * grub-core/lib/posix_wrap/wctype.h: Likewise.
  5214. * grub-core/normal/charset.c (grub_utf8_process): New function.
  5215. (grub_utf8_to_utf16): Use grub_utf8_process.
  5216. (grub_encode_utf8_character): New function.
  5217. (grub_ucs4_to_utf8): Use grub_encode_utf8_character.
  5218. * include/grub/charset.h (grub_utf8_process): New declaration.
  5219. (grub_encode_utf8_character): Likewise.
  5220. * include/grub/misc.h (grub_islower): New inline function.
  5221. (grub_isupper): Likewise.
  5222. (grub_strchrsub): Moved down to fix the definitions.
  5223. 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
  5224. * grub-core/bus/usb/ohci.c (grub_ohci_check_transfer): Add an unsigned
  5225. specification.
  5226. 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
  5227. * include/grub/loader.h (grub_loader_register_preboot_hook):
  5228. Use struct preboot * and not void * for handle. All users updated.
  5229. (grub_loader_unregister_preboot_hook): Likewise.
  5230. 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
  5231. * include/grub/charset.h (GRUB_MAX_UTF8_PER_UTF16): New const.
  5232. * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Change to
  5233. UTF-16-BE. All users updated.
  5234. (grub_hfsplus_cmp_catkey): Fix unicode handling.
  5235. (grub_hfsplus_iterate_dir): Likewise.
  5236. (grub_hfsplus_label): Likewise.
  5237. 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
  5238. * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix compat condition.
  5239. 2011-11-30 Vladimir Serbinenko <phcoder@gmail.com>
  5240. Add missing const qualifiers.
  5241. * grub-core/commands/i386/pc/sendkey.c (keysym): Add missing const.
  5242. * grub-core/commands/lspci.c (grub_pci_classname): Likewise.
  5243. * grub-core/commands/menuentry.c (hotkey_aliases): Likewise.
  5244. * grub-core/disk/lvm.c (grub_lvm_getvalue): Likewise.
  5245. (grub_lvm_check_flag): Likewise.
  5246. * grub-core/efiemu/i386/coredetect.c
  5247. (grub_efiemu_get_default_core_name): Likewise
  5248. * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
  5249. * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Likewise.
  5250. * grub-core/fs/ntfs.c (fixup): Likewise.
  5251. * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Likewise.
  5252. * grub-core/fs/zfs/zfs.c (decomp_entry): Likewise.
  5253. (fzap_lookup): Likewise.
  5254. (zap_lookup): Likewise.
  5255. * grub-core/gnulib/regcomp.c (init_dfa): Likewise.
  5256. * grub-core/lib/legacy_parse.c (check_option): Likewise.
  5257. * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Likewise.
  5258. * grub-core/loader/i386/bsd.c (grub_bsd_add_meta): Likewise.
  5259. (grub_freebsd_add_meta_module): Likewise.
  5260. (grub_cmd_freebsd_module): Likewise.
  5261. * grub-core/loader/i386/xnu.c (tbl_alias): Likewise.
  5262. * grub-core/loader/xnu.c (grub_xnu_register_memory): Likewise.
  5263. (grub_xnu_writetree_get_size): Likewise.
  5264. (grub_xnu_writetree_toheap_real): Likewise.
  5265. (grub_xnu_find_key): Likewise.
  5266. (grub_xnu_create_key): Likewise.
  5267. (grub_xnu_create_value): Likewise.
  5268. (grub_xnu_register_memory): Likewise.
  5269. (grub_xnu_check_os_bundle_required): Likewise.
  5270. (grub_xnu_scan_dir_for_kexts): Likewise.
  5271. (grub_xnu_load_kext_from_dir): Likewise.
  5272. * grub-core/normal/color.c (color_list): Likewise.
  5273. * grub-core/normal/completion.c (current_word): Likewise.
  5274. * grub-core/normal/menu_entry.c (insert_string): Likewise.
  5275. * grub-core/term/serial.c (grub_serial_find): Likewise.
  5276. * grub-core/term/tparm.c (grub_terminfo_tparm): Likewise.
  5277. * include/grub/efiemu/efiemu.h (grub_efiemu_get_default_core_name):
  5278. Likewise.
  5279. * include/grub/i386/bsd.h (grub_bsd_add_meta): Likewise.
  5280. (grub_freebsd_add_meta_module): Likewise.
  5281. * include/grub/lib/arg.h (grub_arg_option): Likewise.
  5282. * include/grub/net.h (grub_net_card_driver): Likewise.
  5283. (grub_net_card): Likewise.
  5284. (grub_net_app_protocol): Likewise.
  5285. * include/grub/parttool.h (grub_parttool_argdesc): Likewise.
  5286. * include/grub/serial.h (grub_serial_find): Likewise.
  5287. * include/grub/tparm.h (grub_terminfo_tparm): Likewise.
  5288. * include/grub/xnu.h (grub_xnu_create_key): Likewise.
  5289. (grub_xnu_create_value): Likewise.
  5290. (grub_xnu_find_key): Likewise.
  5291. (grub_xnu_scan_dir_for_kexts): Likewise.
  5292. (grub_xnu_load_kext_from_dir): Likewise.
  5293. * include/grub/zfs/zio_checksum.h (zio_checksum_t): Moved from here ...
  5294. * grub-core/fs/zfs/zfs.c (zio_checksum_t): ...here.
  5295. * include/grub/zfs/zio_checksum.h (zio_checksum_info):
  5296. Moved from here ...
  5297. * grub-core/fs/zfs/zfs.c (zio_checksum_info): ... here. Added missing const.
  5298. 2011-11-28 Colin Watson <cjwatson@ubuntu.com>
  5299. * util/getroot.c (find_root_device_from_libzfs): Use xasprintf.
  5300. 2011-11-27 Vladimir Serbinenko <phcoder@gmail.com>
  5301. * grub-core/fs/zfs/zfs.c (recovery): Fix spelling.
  5302. (read_device): Fix size calculation.
  5303. 2011-11-25 Robert Millan <rmh@gnu.org>
  5304. * util/getroot.c [HAVE_LIMITS_H]: Include `<limits.h>'.
  5305. (find_root_device_from_libzfs): Add zpool output parser to be used
  5306. as fallback when libzfs isn't available.
  5307. 2011-11-25 Seth Goldberg <seth.goldberg@oracle.com>
  5308. * po/Makefile.in.in: Add missing escape-continuation.
  5309. 2011-11-25 Vladimir Serbinenko <phcoder@gmail.com>
  5310. * grub-core/fs/cpio.c (grub_cpio_dir): Handle subdirs correctly.
  5311. 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
  5312. * grub-core/kern/dl.c (grub_dl_load_segments): Fix alignment handling.
  5313. 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
  5314. * grub-core/kern/dl.c (grub_dl_unload): Fix freeing segments.
  5315. 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
  5316. * grub-core/kern/x86_64/efi/callwrap.S: Fix the comment.
  5317. 2011-11-14 Vladimir Serbinenko <phcoder@gmail.com>
  5318. * grub-core/lib/adler32.c: Add missing license specification.
  5319. * grub-core/lib/crc64.c: Likewise.
  5320. * grub-core/loader/i386/pc/plan9.c: Likewise.
  5321. * grub-core/partmap/plan.c: Likewise.
  5322. 2011-11-13 Lubomir Kundrak <lkundrak@redhat.com>
  5323. Add facility to debug GRUB with gdb under qemu.
  5324. * grub-core/gdb_grub.in: New file.
  5325. * grub-core/gmodule.pl.in: Likewise.
  5326. * grub-core/Makefile.core.def (gmodule.pl): New script.
  5327. (gdb_grub): Likewise.
  5328. 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
  5329. * util/grub-mount.c (argp_parser): Accept relative pathes.
  5330. * util/grub-fstest.c (argp_parser): Likewise.
  5331. 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
  5332. Plan9 support.
  5333. * Makefile.util.def (libgrubmods): Add
  5334. grub-core/partmap/plan.c.
  5335. * docs/grub.texi: Notice Plan9 support.
  5336. * grub-core/Makefile.core.def (plan9): New module.
  5337. (part_plan): Likewise.
  5338. * grub-core/loader/i386/pc/plan9.c: New file.
  5339. * grub-core/partmap/plan.c: Likewise.
  5340. * include/grub/msdos_partition.h (GRUB_PC_PARTITION_TYPE_PLAN9): New
  5341. define.
  5342. (GRUB_PC_PARTITION_TYPE_LINUX_SWAP): Likewise.
  5343. * include/grub/mm.h (grub_extend_alloc): New inline function.
  5344. 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
  5345. Make Reed-Solomon faster by using power of generator representation of
  5346. GF(256)*.
  5347. * grub-core/lib/reed_solomon.c (grub_uint16_t) [TEST]: Removed.
  5348. (gf_double_t): Likewise.
  5349. (gf_invert): Removed.
  5350. (gf_powx): New array.
  5351. (gf_powx_inv): Likewise.
  5352. (scratch): Move higher.
  5353. (gf_reduce): Removed.
  5354. (gf_mul): Use powx.
  5355. (gf_invert): Likewise.
  5356. (init_inverts): Replaced with ...
  5357. (init_powx): ...this. All users updated.
  5358. (pol_evaluate): Replace multiplications with additions.
  5359. (rs_encode): Likewise.
  5360. (gauss_eliminate): Call gf_invert.
  5361. (grub_reed_solomon_add_redundancy): Call init_powx.
  5362. (grub_reed_solomon_recover): Call init_powx unconditionally.
  5363. 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
  5364. * grub-core/partmap/gpt.c (gpt_partition_map_embed): Fix spelling.
  5365. 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
  5366. * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restore
  5367. disk->partiton for safety.
  5368. 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
  5369. * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
  5370. Fix a memory leak.
  5371. (grub_util_biosdisk_get_grub_dev): Add a useful debug info.
  5372. 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
  5373. * grub-core/kern/emu/hostdisk.c (find_system_device): Fix a memory leak.
  5374. 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
  5375. * include/grub/lvm.h (grub_lvm_pv): Correct start type.
  5376. 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
  5377. Fix spaces handling in proc/self/mountinfo.
  5378. * util/getroot.c (unescape): New function.
  5379. (grub_find_root_device_from_mountinfo): Use unescape.
  5380. 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
  5381. Support ZFS embedding.
  5382. * grub-core/fs/zfs/zfs.c (grub_zfs_embed): New function.
  5383. (grub_zfs_fs): Register grub_zfs_embed.
  5384. 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
  5385. Fix MIPS compilation.
  5386. * grub-core/boot/mips/startup_raw.S: Use GRUB_DECOMPRESSOR_*
  5387. * include/grub/offsets.h: Rename decompressor fields from
  5388. GRUB_KERNEL_* to GRUB_DECOMPRESSOR_*.
  5389. * util/grub-mkimage.c (image_targets): Use new names.
  5390. 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
  5391. Defer multiboot device parsing until we're in compressed part.
  5392. * grub-core/boot/i386/pc/lnxboot.S: Remove setting dos_part and
  5393. bsd_part. setdevice has fallen into disuse.
  5394. * grub-core/boot/i386/pc/startup_raw.S (dos_part): Removed.
  5395. (bsd_part): Likewise.
  5396. (boot_dev): New variable.
  5397. (multiboot_trampoline): Don't parse multiboot device.
  5398. Pass multiboot device in %edx.
  5399. * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Parse
  5400. grub_boot_device.
  5401. * grub-core/kern/i386/pc/init.c (grub_machine_get_bootlocation):
  5402. Likewise.
  5403. * grub-core/kern/i386/pc/startup.S: Save edx.
  5404. (grub_boot_drive): Removed.
  5405. (grub_install_dos_part): Likewise.
  5406. (grub_install_bsd_part): Likewise.
  5407. (grub_boot_device): New variable.
  5408. * include/grub/i386/pc/kernel.h (grub_install_dos_part): Removed.
  5409. (grub_install_bsd_part): Likewise.
  5410. (grub_boot_drive): Likewise.
  5411. (grub_boot_device): New variable.
  5412. * include/grub/offsets.h (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART):
  5413. Removed.
  5414. (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
  5415. (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Moved lower.
  5416. (GRUB_KERNEL_MACHINE_INSTALL_BSD_PART): Removed.
  5417. (GRUB_KERNEL_MACHINE_INSTALL_DOS_PART): Likewise.
  5418. * util/grub-install.in: Remove redundant condition.
  5419. 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
  5420. Fix bug introduced by previous commit.
  5421. * grub-core/boot/i386/pc/startup_raw.S: Compute RS start correctly.
  5422. 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
  5423. Use decompressors framework on i386-pc. It increases core size
  5424. by 46 bytes but improves compatibility and maintainability.
  5425. * grub-core/Makefile.core.def (lzma_decompress): New image.
  5426. (kernel): Add i386_pc_ldflags.
  5427. * grub-core/kern/i386/pc/startup.S: Move intial part to ..
  5428. * grub-core/boot/i386/pc/startup_raw.S: ... here. Pass pointers
  5429. to real_to_prot, prot_to_real and device info.
  5430. * include/grub/offsets.h: Renamed decompressor offsets.
  5431. * util/grub-mkimage.c (grub_compression_t): New cmpression lzma.
  5432. (image_target_desc): Remove raw_size and rename decompressor fields.
  5433. (compress_kernel): Handle lzma.
  5434. (generate_image): Handle decompressors on i386-pc.
  5435. 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
  5436. * configure.ac: Add -fno-asynchronous-unwind-tables.
  5437. 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
  5438. Move assembly code to C by using intwrap. It increases core size
  5439. by 88 bytes but improves compatibility and maintainability.
  5440. * grub-core/kern/i386/pc/startup.S (grub_console_putchar): Moved to ...
  5441. * grub-core/term/i386/pc/console.c (grub_console_putchar_real):
  5442. ... here. Translated to C.
  5443. * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Moved to ...
  5444. * grub-core/term/i386/pc/console.c (grub_console_getkey):
  5445. ... here. Translated to C.
  5446. * grub-core/kern/i386/pc/startup.S (grub_console_getxy): Moved to ...
  5447. * grub-core/term/i386/pc/console.c (grub_console_getxy):
  5448. ... here. Translated to C.
  5449. * grub-core/kern/i386/pc/startup.S (grub_console_gotoxy): Moved to ...
  5450. * grub-core/term/i386/pc/console.c (grub_console_gotoxy):
  5451. ... here. Translated to C.
  5452. * grub-core/kern/i386/pc/startup.S (grub_console_cls): Moved to ...
  5453. * grub-core/term/i386/pc/console.c (grub_console_cls):
  5454. ... here. Translated to C.
  5455. * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Moved to ..
  5456. * grub-core/term/i386/pc/console.c (grub_console_setcursor):
  5457. ... here. Translated to C.
  5458. * grub-core/kern/i386/pc/startup.S (grub_get_rtc): Moved to ..
  5459. * grub-core/kern/i386/pc/init.c (grub_get_rtc): ... here.
  5460. Translated to C.
  5461. * grub-core/term/i386/pc/console.c (int10_9): New function.
  5462. (grub_console_putchar): Likewise.
  5463. * include/grub/i386/pc/console.h: Removed the not anymore shared
  5464. functions.
  5465. 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
  5466. Move grub_chainloader_real_boot out of the kernel.
  5467. * grub-core/Makefile.am: Remove machine/loader.h.
  5468. * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
  5469. Removed.
  5470. * grub-core/lib/i386/relocator.c (grub_relocator16_esi): New extern
  5471. variable.
  5472. (grub_relocator16_keep_a20_enabled): Likewise.
  5473. (grub_relocator16_boot): Fill new variables.
  5474. * grub-core/lib/i386/relocator16.S: Add gate a20 handling.
  5475. * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_boot): Use
  5476. relocator.
  5477. (grub_chainloader_unload): Likewise.
  5478. (grub_chainloader_cmd): Likewise.
  5479. * include/grub/i386/pc/loader.h: Removed.
  5480. * include/grub/i386/relocator.h (grub_relocator16_state): Add a20
  5481. and esi. All initialisers updated.
  5482. 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
  5483. 2011-11-12 Colin Watson <cjwatson@ubuntu.com>
  5484. * Makefile.util.def (grub-mount): New util.
  5485. * .bzrignore: Add grub-mount.
  5486. * configure.ac: Check for fuse and enable grub-mount if available.
  5487. * docs/man/grub-mount.h2m: New file.
  5488. * util/grub-mount.c: Likewise.
  5489. 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
  5490. * grub-core/commands/efi/fixvideo.c: Gettextize.
  5491. * grub-core/commands/hashsum.c: Likewise.
  5492. * grub-core/commands/i386/cmostest.c: Likewise.
  5493. * grub-core/commands/i386/pc/drivemap.c: Likewise.
  5494. * grub-core/commands/i386/pc/lsapm.c: Likewise.
  5495. * grub-core/commands/i386/pc/sendkey.c: Likewise.
  5496. * grub-core/commands/lsmmap.c: Likewise.
  5497. * grub-core/commands/menuentry.c: Likewise.
  5498. * grub-core/commands/mips/loongson/lsspd.c: Likewise.
  5499. * grub-core/commands/setpci.c: Likewise.
  5500. * grub-core/loader/i386/bsd.c: Likewise.
  5501. * grub-core/loader/i386/linux.c: Likewise.
  5502. * util/getroot.c: Likewise.
  5503. * util/grub-editenv.c: Likewise.
  5504. * util/grub-fstest.c: Likewise.
  5505. * util/grub-mkfont.c: Likewise.
  5506. * util/grub-mkimage.c: Likewise.
  5507. * util/grub-mkpasswd-pbkdf2.c: Likewise.
  5508. * util/grub-pe2elf.c: Likewise.
  5509. * util/grub-probe.c: Likewise.
  5510. * util/grub-setup.c: Likewise.
  5511. * util/ieee1275/ofpath.c: Likewise.
  5512. * util/misc.c: Likewise.
  5513. * util/raid.c: Likewise.
  5514. 2011-11-11 Robert Millan <rmh@gnu.org>
  5515. * util/getroot.c (grub_util_get_geom_abstraction): Remove
  5516. __attribute__((unused)) from `os_dev', which *is* being used.
  5517. 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
  5518. * include/grub/dl.h (GRUB_ARCH_DL_TRAMP_SIZE) [__ia64__]: Add back
  5519. forgotten define.
  5520. (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Redefine in terms of
  5521. GRUB_IA64_DL_GOT_ALIGN.
  5522. (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Redefine in terms of
  5523. GRUB_IA64_DL_TRAMP_ALIGN.
  5524. 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
  5525. Replace grub_fatal with normal errors in i386 linux loader.
  5526. * grub-core/loader/i386/linux.c (find_efi_mmap_size): Return 0 on error.
  5527. (allocate_pages): Check find_efi_mmap_size return value.
  5528. (grub_e820_add_region): Return error.
  5529. (grub_linux_boot): Check mmap return value.
  5530. 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
  5531. * grub-core/commands/acpihalt.c: Gettextized.
  5532. * grub-core/commands/cacheinfo.c: Likewise.
  5533. * grub-core/commands/cmp.c: Likewise.
  5534. * grub-core/commands/efi/loadbios.c: Likewise.
  5535. * grub-core/commands/gptsync.c: Likewise.
  5536. * grub-core/commands/ieee1275/suspend.c: Likewise.
  5537. * grub-core/commands/legacycfg.c: Likewise.
  5538. * grub-core/commands/memrw.c: Likewise.
  5539. * grub-core/commands/minicmd.c: Likewise.
  5540. * grub-core/commands/parttool.c: Likewise.
  5541. * grub-core/commands/time.c: Likewise.
  5542. * grub-core/commands/videoinfo.c: Likewise.
  5543. * grub-core/disk/geli.c: Likewise.
  5544. * grub-core/disk/i386/pc/biosdisk.c: Likewise.
  5545. * grub-core/disk/luks.c: Likewise.
  5546. * grub-core/disk/lvm.c: Likewise.
  5547. * grub-core/font/font_cmd.c: Likewise.
  5548. * grub-core/fs/zfs/zfscrypt.c: Likewise.
  5549. * grub-core/fs/zfs/zfsinfo.c: Likewise.
  5550. * grub-core/gfxmenu/view.c: Likewise.
  5551. * grub-core/kern/emu/hostdisk.c: Likewise.
  5552. * grub-core/kern/emu/main.c: Likewise.
  5553. * grub-core/kern/emu/misc.c: Likewise.
  5554. * grub-core/kern/emu/mm.c: Likewise.
  5555. * grub-core/kern/mips/arc/init.c: Likewise.
  5556. * grub-core/kern/mips/loongson/init.c: Likewise.
  5557. * grub-core/kern/partition.c: Likewise.
  5558. * grub-core/lib/i386/halt.c: Likewise.
  5559. * grub-core/lib/mips/arc/reboot.c: Likewise.
  5560. * grub-core/lib/mips/loongson/reboot.c: Likewise.
  5561. * grub-core/loader/i386/pc/chainloader.c: Likewise.
  5562. * grub-core/loader/i386/xnu.c: Likewise.
  5563. * grub-core/loader/multiboot.c: Likewise.
  5564. * grub-core/net/bootp.c: Likewise.
  5565. * grub-core/net/net.c: Likewise.
  5566. * grub-core/normal/term.c: Likewise.
  5567. * grub-core/partmap/bsdlabel.c: Likewise.
  5568. * grub-core/parttool/msdospart.c: Likewise.
  5569. * grub-core/term/gfxterm.c: Likewise.
  5570. * grub-core/term/terminfo.c: Likewise.
  5571. * grub-core/video/i386/pc/vbe.c: Likewise.
  5572. * util/grub-menulst2cfg.c: Likewise.
  5573. * util/grub-mkdevicemap.c: Likewise.
  5574. * util/grub-mklayout.c: Likewise.
  5575. * util/grub-mkrelpath.c: Likewise.
  5576. * util/grub-script-check.c: Likewise.
  5577. * util/ieee1275/grub-ofpathname.c: Likewise.
  5578. * util/resolve.c: Likewise.
  5579. 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
  5580. Support %1$d syntax.
  5581. * tests/printf_unit_test.c: New file.
  5582. * Makefile.util.def (printf_test): New test.
  5583. * grub-core/kern/misc.c (grub_vsnprintf_real): Support %1$d syntax.
  5584. 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
  5585. * grub-core/hook/datehook.c (grub_read_hook_datetime): Small stylistic
  5586. fix.
  5587. 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
  5588. * grub-core/efiemu/mm.c (grub_efiemu_mmap_fill): Change printf into
  5589. dprintf.
  5590. * grub-core/font/font.c (grub_font_load): Likewise.
  5591. 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
  5592. * util/grub-macho2img.c: Add comment concerning gettext.
  5593. * grub-core/lib/legacy_parse.c: Likewise.
  5594. 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
  5595. * grub-core/kern/misc.c (grub_vprintf): Add missing va_end.
  5596. (grub_xvasprintf): Likewise.
  5597. 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
  5598. Add const keyword to grub_env_get and gettextize week days.
  5599. * grub-core/hook/datehook.c (grub_datetime_names): Make const.
  5600. (grub_read_hook_datetime): Return const char *.
  5601. * grub-core/kern/env.c (grub_env_get): Return const char *. All users
  5602. updated.
  5603. * grub-core/normal/datetime.c (grub_weekday_names): Make const.
  5604. Mark for gettext.
  5605. (grub_get_weekday_name): Return const char *. Call gettext.
  5606. * grub-core/script/argv.c (grub_script_argv_append): Receive const
  5607. char * and len as the argument. All users updated.
  5608. (grub_script_argv_split_append): Receive const char *.
  5609. * include/grub/datetime.h (grub_get_weekday_name): Update proto.
  5610. * include/grub/env.h (grub_env_get): Likewise.
  5611. (grub_env_read_hook_t): Return const char *.
  5612. * include/grub/script_sh.h (grub_script_argv_append): Update proto.
  5613. (grub_script_argv_split_append): Likewise.
  5614. 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
  5615. * grub-core/normal/main.c (grub_normal_execute): Remove leftover call.
  5616. 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
  5617. * grub-core/kern/misc.c (grub_strstr): Moved from here ...
  5618. * include/grub/misc.h (grub_strstr): ... here. Make static and inline.
  5619. 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
  5620. * include/grub/ieee1275/ieee1275.h (grub_ieee1275_set_property):
  5621. Fix prototype.
  5622. 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
  5623. Fix mips compilation.
  5624. * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec): Restrict hash_id to
  5625. normal decoder.
  5626. (hashes): Use in embed decoder as well (for sizes).
  5627. (dec_stream_header): Fix embed decompressor logic.
  5628. (dec_stream_footer): Likewise.
  5629. 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
  5630. * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Issue
  5631. an error and not a fatal on unrecognised relocation types.
  5632. 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
  5633. * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
  5634. Issue error rather than printf on unknown arguments.
  5635. 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
  5636. * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_set_property):
  5637. Make buf a const.
  5638. 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
  5639. * grub-core/fs/zfs/zfscrypt.c (GRUB_MOD_INIT), (GRUB_MOD_FINI):
  5640. Fix module name.
  5641. 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
  5642. * grub-core/fs/ntfs.c (grub_ntfs_read_symlink): Stylistic fix. Remove
  5643. leftover debug printf.
  5644. 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
  5645. * grub-core/fs/btrfs.c (grub_btrfs_embed): Spelling fix.
  5646. 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
  5647. * grub-core/efiemu/main.c (grub_efiemu_register_configuration_table):
  5648. A stylistic fix.
  5649. 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
  5650. * grub-core/commands/probe.c (grub_cmd_probe): Fix error message.
  5651. 2011-11-10 Shea Levy <slevy@tieronedesign.com>
  5652. Allow all modules to perform serial IO
  5653. * grub-core/term-serial.c (grub_serial_find): Remove static qualifier
  5654. * include/grub/serial.h (grub_serial_port_configure): New inline
  5655. function.
  5656. (grub_serial_port_fetch): Likewise.
  5657. (grub_serial_port_put): Likewise.
  5658. (grub_serial_port_fini): Likewise.
  5659. (grub_serial_find): New proto.
  5660. 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
  5661. Put symlink at the end of the node and fix a potential
  5662. memory corruption.
  5663. * grub-core/fs/iso9660.c (grub_fshelp_node): New field have_symlink.
  5664. Make symlink into an array.
  5665. (set_rockridge): Set have_symlink and alloc_dirents.
  5666. (grub_iso9660_read_symlink): Use new layout.
  5667. (grub_iso9660_iterate_dir): Fix memory corruption.
  5668. Use new layout.
  5669. (grub_iso9660_dir): Set have_symlink.
  5670. (grub_iso9660_open): Likewise.
  5671. 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
  5672. Remove local keyword.
  5673. * util/grub-mkconfig_lib.in (version_test_numeric): Remove local.
  5674. (version_test_gt): Likewise.
  5675. (version_find_latest): Likewise.
  5676. (gettext_printf): Likewise.
  5677. * util/grub.d/10_windows.in (get_os_name_from_boot_ini): Likewise.
  5678. 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
  5679. * grub-core/fs/zfs/zfs.c (zfs_mount): Fix spurious warning.
  5680. 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
  5681. Fix ZFS memory and resource leaks.
  5682. * grub-core/fs/zfs/zfs.c (fill_vdev_info_real): New paramter inserted.
  5683. All users updated.
  5684. Free type on exit.
  5685. (fill_vdev_info): New parameter inserted. All users updated.
  5686. (check_pool_label): Likewise.
  5687. (scan_disk): Likewise.
  5688. (scan_devices): Close non-inserted disks.
  5689. (fzap_iterate): Free l.
  5690. (unmount_device): Free children descripto memory.
  5691. 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
  5692. * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix grub_strncat
  5693. argument (access out of bounds).
  5694. 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
  5695. * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Fix RAID10 logic for
  5696. >= 6 drives.
  5697. 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
  5698. * include/grub/i386/netbsd_bootinfo.h (grub_netbsd_btinfo_bootwedge):
  5699. Fix declaration.
  5700. 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
  5701. Fix several memory leaks.
  5702. * grub-core/fs/btrfs.c (grub_btrfs_dir): Fix memory leak.
  5703. * grub-core/fs/cpio.c (grub_cpio_find_file): Likewise.
  5704. (grub_cpio_dir): Likewise.
  5705. * grub-core/fs/fat.c (grub_fat_label): Likewise.
  5706. * grub-core/fs/jfs.c (grub_jfs_label): Likewise.
  5707. * grub-core/fs/romfs.c (grub_romfs_close): Likewise.
  5708. (grub_romfs_label): Likewise.
  5709. * grub-core/fs/squash4.c (squash_mount): Use zalloc for safety.
  5710. (squash_unmount): New function.
  5711. (grub_squash_dir): Fix memory leak.
  5712. (grub_squash_open): Likewise.
  5713. (grub_squash_read): Likewise.
  5714. (grub_squash_mtime): Likewise.
  5715. * grub-core/fs/xfs.c (grub_xfs_open): Likewise.
  5716. * grub-core/fs/zfs/zfs.c (check_pool_label): Likewise.
  5717. * util/grub-fstest.c (fstest): Likewise.
  5718. 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
  5719. * include/grub/misc.h (grub_strncat): Fix the order of conditionals to
  5720. avoid accessing beyond the array.
  5721. 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
  5722. * configure.ac: Add missing -mXX to TARGET_CPPFLAGS.
  5723. 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
  5724. Several AFFS fixes.
  5725. * grub-core/fs/affs.c (grub_affs_bblock): Replace flags with version.
  5726. (GRUB_AFFS_FLAG_FFS): Removed.
  5727. (GRUB_AFFS_SYMLINK_SIZE): Likewise.
  5728. (GRUB_AFFS_FILETYPE_DIR): Make positive and unsigned.
  5729. (GRUB_AFFS_FILETYPE_DIR), (GRUB_AFFS_FILETYPE_REG): Fix a mix-up.
  5730. (grub_fshelp_node): Make block 32-bit.
  5731. Add block_cache and last_block_cache.
  5732. (grub_affs_read_block): Fill and use block cache.
  5733. (grub_affs_read_file): Removed.
  5734. (grub_affs_mount): Zero-fill node. Fix version check. Don't reread
  5735. boot block.
  5736. (grub_affs_read_symlink): Fix symlink size. Add a \0 at the end for
  5737. safety.
  5738. (grub_affs_iterate_dir): Use more appropriate types. Zero-fill allocated
  5739. space.
  5740. (grub_affs_close): Free block cache.
  5741. (grub_affs_read): Use grub_fshelp_read_file directly.
  5742. 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
  5743. * grub-core/fs/zfs/zfs.c (read_dva): Issue an error if read failed
  5744. with no error set.
  5745. 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
  5746. * grub-core/lib/LzmaEnc.c (LzmaEnc_CodeOneBlock): Remove set but not
  5747. used variable.
  5748. * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
  5749. Likewise.
  5750. 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
  5751. Fix potential problem with calling zfs_to_cpu and cpu_to_be in a row.
  5752. * grub-core/fs/zfs/zfscrypt.c (grub_zfs_decrypt_real): Use explicit
  5753. byteswap when needed.
  5754. 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
  5755. Fix FreeBSD compilation.
  5756. * grub-core/disk/geli.c (GRUB_MD_SHA256) [GRUB_UTIL]: Redefine in a way
  5757. to avoid circular dependency.
  5758. (GRUB_MD_SHA512) [GRUB_UTIL]: Likewise.
  5759. * util/getroot.c (grub_util_follow_gpart_up): Move from here...
  5760. * grub-core/kern/emu/hostdisk.c (+grub_util_follow_gpart_up): ... here.
  5761. 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
  5762. Fix ZFS crypto error types.
  5763. * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Fix return type.
  5764. (grub_gcm_decrypt): Likewise.
  5765. (grub_zfs_load_key_real): Fix error code type. Handle possible error
  5766. from PBKDF2.
  5767. 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
  5768. Illumos support.
  5769. * Makefile.util.def (10_illumos): New script.
  5770. * configure.ac: Set COND_HOST_ILLUMOS.
  5771. * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__sun__]:
  5772. Support Illumos calls.
  5773. (find_partition_start) [__sun__]: Likewise.
  5774. (convert_system_partition_to_system_disk) [__sun__]: Likewise.
  5775. (device_is_wholedisk) [__sun__]: Handle Illumos naming scheme.
  5776. (grub_util_biosdisk_get_grub_dev) [__sun__]: Handle Illumos.
  5777. * util/getroot.c (find_root_device_from_libzfs) [__sun__]: Return raw
  5778. device.
  5779. * util/grub-probe.c (probe) [__sun__]: Do character check.
  5780. * util/grub.d/10_illumos.in: New file.
  5781. 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
  5782. Support escaped commas in hostdisk.
  5783. * grub-core/kern/emu/hostdisk.c (unescape_cmp): New function.
  5784. (find_grub_drive): Use unescape_cmp.
  5785. (make_device_name): Escape commas.
  5786. 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
  5787. * util/grub.d/10_kfreebsd.in: Use ${grub_mkrelpath} not grub-mkrelpath.
  5788. 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
  5789. * grub-core/fs/zfs/zfs.c (zap_iterate): Remove set but not used
  5790. variable.
  5791. 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
  5792. Support trampoline jumps on powerpc.
  5793. * grub-core/kern/dl.c (grub_dl_load_segments) [__powerpc__]: Follow
  5794. __ia64__ path.
  5795. (grub_dl_load_segments): Set mod->sz.
  5796. (grub_dl_flush_cache): Flush whole space occupied by module, not just
  5797. segments.
  5798. * grub-core/kern/ia64/dl.c (nopm): Make const while on it.
  5799. (jump): Likewise.
  5800. * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): New
  5801. function.
  5802. (trampoline): New struct.
  5803. (trampoline_template): New const.
  5804. (grub_arch_dl_relocate_symbols): Create trampolines on overflow.
  5805. * include/grub/dl.h (grub_dl): Add sz element.
  5806. [__powerpc__]: Follow __ia64__.
  5807. (GRUB_ARCH_DL_TRAMP_ALIGN): Define on ppc.
  5808. (GRUB_ARCH_DL_GOT_ALIGN): Likewise.
  5809. (GRUB_ARCH_DL_TRAMP_SIZE): Likewise.
  5810. (grub_arch_dl_get_tramp_got_size) [__powerpc__]: New proto.
  5811. 2011-11-06 Vladimir Serbinenko <phcoder@gmail.com>
  5812. ZFS crypto support.
  5813. * Makefile.util.def (libgrubmods): Add grub-core/fs/zfs/zfscrypt.c.
  5814. * grub-core/Makefile.core.def (zfscrypt): New module.
  5815. * grub-core/fs/zfs/zfs.c (subvolume): New structure.
  5816. (grub_zfs_data): Replace mdn with subvol. Put case_insensitivity inside
  5817. it. All users updated.
  5818. (grub_zfs_decrypt): New var.
  5819. (grub_zfs_load_key): Likewise.
  5820. (zio_checksum_functions): Add SHA256+MAC.
  5821. (zio_checksum_verify): Handle incomplete comparison due to MAC.
  5822. (zio_read): Handle encrypted blocks.
  5823. (zap_verify): Remove incorrect check.
  5824. (fzap_iterate): Handle non-standard fzap.
  5825. (zap_iterate): Likewise.
  5826. (zap_iterate_u64): New function.
  5827. (dnode_get_fullpath): Load keys.
  5828. * grub-core/fs/zfs/zfscrypt.c: New file.
  5829. * grub-core/lib/crypto.c (grub_crypto_cipher_close): Removed.
  5830. (grub_crypto_ecb_encrypt): Make input const.
  5831. * include/grub/crypto.h (grub_crypto_cipher_close): Inline.
  5832. (grub_crypto_ecb_encrypt): Make input const.
  5833. (GRUB_CIPHER_AES): New macro.
  5834. * include/grub/zfs/dmu.h (dmu_object_type): Add DMU_OT_DSL_KEYCHAIN.
  5835. * include/grub/zfs/dsl_dir.h (dsl_dir_phys): Add keychain.
  5836. * include/grub/zfs/spa.h (grub_zfs_endian): Moved from here ...
  5837. * include/grub/zfs/zfs.h (grub_zfs_endian): ... here. Added GURB_ZFS_
  5838. prefix. All users updated.
  5839. (grub_zfs_add_key): New proto.
  5840. (grub_zfs_decrypt): Likewise.
  5841. (grub_zfs_load_key): Likewise.
  5842. * include/grub/zfs/zio.h (zio_checksum): Add SHA256+MAC.
  5843. * util/grub-fstest.c (options): Add -K option.
  5844. (argp_parser): Likewise.
  5845. 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
  5846. Support zle compression on ZFS.
  5847. * grub-core/fs/zfs/zfs.c (zle_decompress): New function.
  5848. (decomp_table): Add zle.
  5849. * include/grub/zfs/zio.h (zio_compress): Add zle.
  5850. 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
  5851. Support BtrFS embedding.
  5852. * grub-core/fs/btrfs.c (grub_btrfs_embed) [GRUB_UTIL]: New function.
  5853. (grub_btrfs_fs) [GRUB_UTIL]: Set embed.
  5854. * include/grub/fs.h (grub_fs) [GRUB_UTIL]: New field embed.
  5855. * util/grub-setup.c (setup): Use fs embedding if available.
  5856. Add additional sanity check.
  5857. 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
  5858. * util/grub-install.in: Fix condition for config_opt.
  5859. 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
  5860. Support third redundancy strip on raidz3.
  5861. * grub-core/fs/zfs/zfs.c (recovery): Add Gauss for general case.
  5862. Return error on singularity. All users updated.
  5863. (read_device): Don't stop on 3rd failure on raidz3.
  5864. 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
  5865. Support case-insensitive ZFS subvolumes.
  5866. * grub-core/fs/zfs/zfs.c (mzap_lookup): New parameter case_insensitive.
  5867. All users updated.
  5868. (zap_hash): Likewise.
  5869. (name_cmp): New function.
  5870. (zap_leaf_array_equal): New parameter case_insensitive.
  5871. All users updated.
  5872. (zap_leaf_lookup): Likewise.
  5873. (fzap_lookup): Likewise.
  5874. (zap_lookup): Likewise.
  5875. (dnode_get_path): New parameter case_insensitive. Retrieve case
  5876. sensitiviness of a volume. All users updated.
  5877. (dnode_get_fullpath): New parameter case_insensitive.
  5878. All users updated.
  5879. (grub_zfs_dir): Set info.case_insensitiveness.
  5880. 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
  5881. Support second redundancy strip on raidz(2,3).
  5882. * grub-core/fs/zfs/zfs.c (powx): New array.
  5883. (powx_inv): Likewise.
  5884. (poly): New const.
  5885. (xor_out): New function.
  5886. (gf_mul): Likewise.
  5887. (recovery): Likewise.
  5888. (read_device): Use second redundancy strip.
  5889. 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
  5890. Use a power of generator representation of GF(256) multiplication group
  5891. to save space time and complexity.
  5892. * grub-core/disk/raid6_recover.c (raid6_table1): Removed.
  5893. (raid6_table2): Likewise.
  5894. (powx): New array.
  5895. (powx_inv): Likewise.
  5896. (poly): New const.
  5897. (grub_raid_block_mul): Replace with ...
  5898. (grub_raid_block_mulx): ...this.
  5899. (grub_raid6_init_table): Rewritten.
  5900. (grub_raid6_recover): Use power of generator representation.
  5901. 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
  5902. * grub-core/disk/raid6_recover.c (grub_raid6_recover): Get start_sector
  5903. for the right device.
  5904. 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
  5905. * include/grub/kernel.h (grub_module_header): Make type into uint32 as
  5906. expected by grub-mkimage and it's more clear since there is no implicit
  5907. padding.
  5908. 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
  5909. * grub-core/disk/raid.c (scan_devices): Don't derference NULL on whole
  5910. disk.
  5911. * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
  5912. 2011-11-03 Philipp Matthias Hahn <pmhahn@debian.org>
  5913. * util/grub-mkrescue.in: Fix handling xorriso option.
  5914. 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
  5915. * grub-core/gettext/gettext.c (grub_gettext_init_ext): Exit if local is
  5916. NULL.
  5917. 2011-11-03 crocket <crockabiscuit@gmail.com>
  5918. * util/grub.d/10_linux.in: Add Slackware initrd naming.
  5919. 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
  5920. XZ CRC64 and SHA256 support.
  5921. * Makefile.util.def (libgrubmods): Add crc64.c.
  5922. * grub-core/Makefile.core.def (crc64): New module.
  5923. * grub-core/lib/crc64.c: New file.
  5924. * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_hash)
  5925. [!GRUB_EMBED_DECOMPRESSOR]: Rename crc32_context to hash_context.
  5926. Fix the type.
  5927. (MAX_HASH_SIZE): New define.
  5928. (xz_dec) [!GRUB_EMBED_DECOMPRESSOR]: Add generic hash fields.
  5929. (dec_block) [!GRUB_EMBED_DECOMPRESSOR]: Handle non-crc32 hashes.
  5930. (index_update) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
  5931. (dec_index) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
  5932. (crc32_validate) [!GRUB_EMBED_DECOMPRESSOR]: Rename to ...
  5933. (hash_validate) [!GRUB_EMBED_DECOMPRESSOR]: ... this.
  5934. Handle non-crc32 hashes.
  5935. (hashes) [!GRUB_EMBED_DECOMPRESSOR]: New variable.
  5936. (dec_stream_header): Handle non-crc32 hashes.
  5937. (dec_stream_footer): Likewise.
  5938. (dec_block_header): Likewise.
  5939. (dec_main): Likewise.
  5940. (xz_dec_init): Likewise.
  5941. (xz_dec_reset): Likewise.
  5942. (xz_dec_end): Likewise.
  5943. * util/import_gcry.py: Add CRC64 line.
  5944. 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
  5945. * grub-core/fs/ufs.c (grub_ufs_mtime) [MODE_UFS2]: Check mtime field
  5946. as well.
  5947. 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
  5948. Make reiserfs label retrieval similar to other *_label functions.
  5949. * grub-core/fs/reiserfs.c (grub_reiserfs_superblock): New field label.
  5950. (REISERFS_MAX_LABEL_LENGTH): Removed.
  5951. (REISERFS_LABEL_OFFSET): Likewise.
  5952. (grub_reiserfs_label): Rewritten.
  5953. 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
  5954. * grub-core/fs/nilfs2.c (grub_nilfs2_mtime): Use correct superblock
  5955. field.
  5956. 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
  5957. * grub-core/fs/zfs/zfs.c (read_device): Support raidz3.
  5958. 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
  5959. * grub-core/fs/zfs/zfs.c (read_device): Add ability to sustain a single
  5960. drive failure on both raidz and raidz2.
  5961. 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
  5962. Fix RAIDZ(2) for >= 5 devices.
  5963. * grub-core/fs/zfs/zfs.c (read_device): Fix length formula. Remove
  5964. asize argument. All users updated.
  5965. 2011-11-01 Vladimir Serbinenko <phcoder@gmail.com>
  5966. Fix RAIDZ(2).
  5967. * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member ashift.
  5968. (fill_vdev_info_real): Set ashift.
  5969. (read_device): Rewrite RAIDZ part based on reverse engineering.
  5970. 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
  5971. * grub-core/fs/btrfs.c (grub_btrfs_extent_read): Add sanity check and
  5972. don't report potentially unavialiable fields in debug output.
  5973. (find_path): Fix double-free and memory leak.
  5974. 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
  5975. Read label on UFS1.
  5976. * grub-core/fs/ufs.c (grub_ufs_label): Remove MODE_UFS2 condition.
  5977. (grub_ufs_fs): Always set .label.
  5978. 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
  5979. Use shifts in UFS.
  5980. * grub-core/fs/ufs.c (UFS_LOG_BLKSZ): New macro.
  5981. (grub_ufs_data): New field log2_blksz.
  5982. (grub_ufs_read_file): Use shifts.
  5983. (grub_ufs_mount): Check block size and logarithm it.
  5984. 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
  5985. * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Fix handling of
  5986. long symlinks.
  5987. 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
  5988. Handle symlinks and long names on tar and cpio.
  5989. * grub-core/fs/cpio.c (ATTR_TYPE): New definition.
  5990. (ATTR_FILE): Likewise.
  5991. (ATTR_DIR): Likewise.
  5992. (ATTR_LNK): Likewise.
  5993. (grub_cpio_data) [MODE_USTAR]: New fields linkname and linkname_alloc.
  5994. (grub_cpio_find_file): Fill mode, handle linkname field as well as
  5995. L and K entries.
  5996. (grub_cpio_mount): Zero-fill data.
  5997. (handle_symlink): New function.
  5998. (grub_cpio_dir): Handle symlinks.
  5999. (grub_cpio_open): Likewise.
  6000. (grub_cpio_close) [MODE_USTAR]: Free linkname.
  6001. 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
  6002. Fix iso9660 filename limitations and fix memory leaks.
  6003. * grub-core/fs/iso9660.c (set_rockridge): Free sua at the end.
  6004. (grub_iso9660_iterate_dir): Fix slash handling in symlinks.
  6005. 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
  6006. Fix JFS file name length limitations.
  6007. * grub-core/fs/jfs.c (grub_jfs_inode): Fix in-place symlink length.
  6008. (grub_jfs_diropen): Fix maximum filename length.
  6009. (grub_jfs_getent): Fix filename length.
  6010. (grub_jfs_lookup_symlink): Fix size checks.
  6011. 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
  6012. * grub-core/loader/mips/linux.c (loongson_machtypes): Fix fuloong type
  6013. string.
  6014. 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
  6015. Leverage BFS implementation to read AFS.
  6016. * Makefile.util.def (libgrubmods): Add afs.c.
  6017. * grub-core/Makefile.core.def (afs): New module
  6018. * grub-core/fs/afs.c: New file.
  6019. * grub-core/fs/bfs.c [MODE_AFS]: Adapt for AFS.
  6020. 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
  6021. * grub-core/fs/bfs.c: Macroify and add some necessary sanity checks.
  6022. 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
  6023. * grub-core/fs/bfs.c: Run indent.
  6024. 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
  6025. BFS implementation based on the specification.
  6026. * grub-core/fs/bfs.c: New file.
  6027. * Makefile.util.def (libgrubmods): Add bfs.c.
  6028. * grub-core/Makefile.core.def (bfs): New module.
  6029. 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
  6030. * util/grub-fstest.c (cmd_cp): Clarify error message.
  6031. (cmd_cmp): Likewise.
  6032. 2011-10-30 Yves Blusseau <blusseau@zetam.org>
  6033. * po/POTFILES.in: Regenerate because of the removal of afs, afs_be, befs
  6034. and befs_be.
  6035. 2011-10-29 Vladimir Serbinenko <phcoder@gmail.com>
  6036. Remove afs and befs because of copyright problem.
  6037. * grub-core/fs/afs.c: Removed.
  6038. * grub-core/fs/afs_be.c: Removed.
  6039. * grub-core/fs/befs.c: Removed.
  6040. * grub-core/fs/befs_be.c: Removed.
  6041. * Makefile.util.def (libgrubkern): Remove afs, afs_be, befs and befs_be.
  6042. * grub-core/Makefile.core.def (afs): Removed.
  6043. (afs_be): Likewise.
  6044. (befs): Likewise.
  6045. (befs_be): Likewise.
  6046. 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
  6047. Prefer rockridge over Joliet.
  6048. * grub-core/fs/iso9660.c (grub_iso9660_mount): Move rockridge detection
  6049. to ...
  6050. (set_rockridge): ... here.
  6051. (grub_iso9660_mount): Check rockridge on the primary label when
  6052. discovering. Ignore Joliet if Rockridge is present.
  6053. 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
  6054. Use shifts in nilfs2.
  6055. * grub-core/fs/nilfs2.c (LOG_INODE_SIZE): New definition.
  6056. (LOG_NILFS_DAT_ENTRY_SIZE): Likewise.
  6057. (grub_nilfs2_palloc_entries_per_group): Replace with ...
  6058. (grub_nilfs2_log_palloc_entries_per_group): ... this.
  6059. (grub_nilfs2_palloc_group): Use shifts and bitmasks.
  6060. (grub_nilfs2_entries_per_block): Replaced with ...
  6061. (grub_nilfs2_log_entries_per_block_log): ... this.
  6062. (grub_nilfs2_blocks_per_group): Replaced with ...
  6063. (grub_nilfs2_blocks_per_group_log): ... this.
  6064. (grub_nilfs2_blocks_per_desc_block): Replaced with ...
  6065. (grub_nilfs2_blocks_per_desc_block_log): ... this.
  6066. (grub_nilfs2_palloc_desc_block_offset): Replaced with ...
  6067. (grub_nilfs2_palloc_desc_block_offset_log): ... this.
  6068. (grub_nilfs2_palloc_entry_offset): Replaced ...
  6069. (grub_nilfs2_palloc_entry_offset_log): ... this. Use shifts.
  6070. (grub_nilfs2_dat_translate): Use shifts.
  6071. (grub_nilfs2_read_inode): Likewise.
  6072. (GRUB_MOD_INIT): Ensure that logs are correct.
  6073. 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
  6074. Use shifts in minix filesystem.
  6075. * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use log_block_size.
  6076. (GRUB_MINIX_ZONE2SECT): Likewise.
  6077. (grub_minix_data): Replace block_size with log_block_size.
  6078. (grub_minix_read_file): Use shifts.
  6079. (grub_minix_mount): Check block size and take a logarithm.
  6080. 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
  6081. Use shifts in squash4.
  6082. * grub-core/fs/squash4.c (grub_squash_data): New field log2_blksz.
  6083. (squash_mount): Check block size and take logarithm.
  6084. (direct_read): Use shifts.
  6085. 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
  6086. Correct befs block counting logic.
  6087. * grub-core/fs/afs.c (GRUB_AFS_BLOCKS_PER_DI_RUN): Replaced with...
  6088. (GRUB_AFS_LOG_BLOCKS_PER_DI_RUN): ... this.
  6089. (GRUB_AFS_BLOCKRUN_LOG_SIZE): New definition.
  6090. (grub_afs_read_inode): Use block_shift.
  6091. (RANGE_SHIFT): New definition.
  6092. (grub_afs_read_block): Account for RANGE_SHIFT, emit errors on
  6093. unexpected conditions, use shifts and appropriate types.
  6094. (GRUB_MOD_INIT): Check the value of GRUB_AFS_BLOCKRUN_LOG_SIZE.
  6095. 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
  6096. * grub-core/disk/raid.c (scan_devices): Check partition.
  6097. * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
  6098. 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
  6099. Support BFS (befs) UUID.
  6100. * grub-core/fs/afs.c (grub_afs_inode): Make small_data zero-size.
  6101. (grub_afs_small_data_element_header): New struct.
  6102. (grub_afs_read_inode): Read complete inode. Fix ino type while on it.
  6103. (grub_afs_read_attribute) [MODE_BFS]: New function.
  6104. (grub_afs_iterate_dir): Allocate for complete inode.
  6105. (grub_afs_mount): Likewise.
  6106. (grub_afs_uuid) [MODE_BFS]: New function.
  6107. (grub_afs_fs) [MODE_BFS]: Add .uuid.
  6108. 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
  6109. * grub-core/fs/zfs/zfs.c (read_device): Silence spurious warning.
  6110. (zfs_unmount): Fix memory leak.
  6111. 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
  6112. Support NTFS reparse points.
  6113. * grub-core/fs/ntfs.c (list_file): Set symlink type when appropriate.
  6114. (symlink_descriptor): New struct.
  6115. (grub_ntfs_read_symlink): New function.
  6116. (grub_ntfs_iterate_dir): Use grub_ntfs_read_symlink.
  6117. (grub_ntfs_open): Likewise.
  6118. 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
  6119. * include/grub/ntfs.h: Add GRUB_NTFS_ prefix. All users updated.
  6120. 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
  6121. fstest xnu_uuid subcommand.
  6122. * grub-core/commands/xnu_uuid.c (libgrubkrn): Add
  6123. grub-core/commands/xnu_uuid.c.
  6124. * util/grub-fstest.c (CMD_XNU_UUID): New enum value.
  6125. (fstest): Handle xnu_uuid.
  6126. (options): Document xnu_uuid.
  6127. (argp_parser): Parse xnu_uuid.
  6128. 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
  6129. * grub-core/commands/xnu_uuid.c (grub_cmd_xnu_uuid): Support
  6130. -l argument. Add newline at the end if printing.
  6131. (GRUB_MOD_INIT): Document -l.
  6132. 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
  6133. * grub-core/fs/nilfs2.c (grub_nilfs2_uuid): Add missing field length.
  6134. 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
  6135. ZFS multi-device and version 33 support.
  6136. * Makefile.util.def (libgrubkern): Add grub-core/fs/zfs/zfsinfo.c.
  6137. * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New struct.
  6138. (grub_zfs_data): Add multidev-ice-related fields.
  6139. (zio_checksum_verify): Zero-pad printed values. Print checksum name.
  6140. (dva_get_offset): Make dva const.
  6141. (zfs_fetch_nvlist): New function.
  6142. (fill_vdev_info_real): Likewise.
  6143. (fill_vdev_info): Likewise.
  6144. (check_pool_label): Likewise.
  6145. (scan_disk): Likewise.
  6146. (scan_devices): Likewise.
  6147. (read_device): Likewise.
  6148. (read_dva): Likewise.
  6149. (zio_read_gang): Use read_dva.
  6150. (zio_read_data): Likewise.
  6151. (zap_leaf_lookup): Add missing endian conversion.
  6152. (zap_verify): Add missing endian conversion. All users updated.
  6153. (fzap_lookup): Likewise.
  6154. (fzap_iterate): Likewise.
  6155. (dnode_get_path): Handle SA bonus.
  6156. (nvlist_find_value): Make input const. All users updated.
  6157. (unmount_device): New function.
  6158. (zfs_unmount): Use unmount_device.
  6159. (zfs_mount): Use scan_disk.
  6160. (zfs_mtime): New function.
  6161. (grub_zfs_open): Handle system attributes.
  6162. (fill_fs_info): Likewise.
  6163. (grub_zfs_dir): Likewise.
  6164. (grub_zfs_fs): Add mtime.
  6165. * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add missing return.
  6166. * include/grub/zfs/sa_impl.h (SA_TYPE_OFFSET): New definition.
  6167. (SA_MTIME_OFFSET): Likewise.
  6168. (SA_SYMLINK_OFFSET): Likewise.
  6169. * include/grub/zfs/zfs.h (SPA_VERSION): Increase to 33.
  6170. * util/grub-fstest.c (CMD_ZFSINFO): New enum value.
  6171. (fstest): Support zfsinfo.
  6172. (argp_parser): Likewise.
  6173. 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
  6174. * include/grub/datetime.h (grub_datetime2unixtime): Fix off-by-one
  6175. error.
  6176. 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
  6177. ZFS fixes.
  6178. * grub-core/fs/zfs/zfs.c (fzap_iterate): Fix handling of indexes
  6179. sharing the same block. Iterate over correct number of indices.
  6180. (dnode_get_path): Handle symlinks correctly.
  6181. 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
  6182. * grub-core/fs/jfs.c (grub_jfs_sblock): Fix offset to volname.
  6183. 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
  6184. Read label on HFS+.
  6185. * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey_id): New function.
  6186. (grub_hfsplus_btree_search): Fix types.
  6187. (grub_hfsplus_label): Implement.
  6188. 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
  6189. * grub-core/fs/ntfs.c (grub_ntfs_uuid): Fix a memory leak.
  6190. 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
  6191. * grub-core/fs/fat.c (grub_fat_uuid): Make uppercase to match Linux.
  6192. 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
  6193. Fix symlink handling on iso9660.
  6194. * grub-core/fs/iso9660.c (grub_fshelp_node): Remove dir_off. Add symlink
  6195. All users updated.
  6196. (grub_iso9660_susp_iterate): Accept zero-size iterate.
  6197. (grub_iso9660_read_symlink): Moved most of code ...
  6198. (grub_iso9660_iterate_dir): ... here. Fill node->symlink.
  6199. 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
  6200. * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
  6201. Use union to avoid breaking strict-aliasing rules.
  6202. 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
  6203. Support multi-extent iso files.
  6204. * grub-core/fs/iso9660.c (grub_iso9660_data): Remove first_sector.
  6205. Add node.
  6206. (grub_fshelp_node): Revamp. All users updated.
  6207. (FLAG_*): New enum.
  6208. (read_node): New function.
  6209. (grub_iso9660_susp_iterate): Use read_node. Receive a node as argument.
  6210. All users updated.
  6211. (grub_iso9660_mount): Don't attempt to read sua when there is none.
  6212. (get_node_size): New function.
  6213. (grub_iso9660_iterate_dir): Use read_node. Agglomerate multi-extent
  6214. entries.
  6215. Fix memory leak on . and ..
  6216. (grub_iso9660_read): Use read_node.
  6217. (grub_iso9660_close): Free node.
  6218. 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
  6219. Fix tar 4G limit and handle paths containing dot.
  6220. * grub-core/fs/cpio.c (grub_cpio_data): Use grub_off_t for offsets.
  6221. (canonicalize): New function.
  6222. (grub_cpio_find_file): Use canonicalize. Store offs in
  6223. grub_disk_addr_t.
  6224. (grub_cpio_dir): Use grub_disk_addr_t.
  6225. (grub_cpio_open): Likewise.
  6226. 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
  6227. Fix handling of uncompressed blocks on squashfs and break 4G limit.
  6228. * grub-core/fs/squash4.c (grub_squash_super): Add block_size. Remove
  6229. unused flags.
  6230. (grub_squash_inode): Add long_file and block_size.
  6231. (grub_squash_cache_inode): New struct.
  6232. (grub_squash_dirent): Make types into enum.
  6233. (SQUASH_TYPE_LONG_REGULAR): New type.
  6234. (grub_squash_frag_desc): Add field size.
  6235. (SQUASH_BLOCK_FLAGS): New enum.
  6236. (grub_squash_data): Use grub_squash_cache_inode.
  6237. (grub_fshelp_node): Make ino_chunk 64-bit.
  6238. (read_chunk): Minor argument change. All users updated.
  6239. (squash_mount): Use correct le_to_cpu.
  6240. (grub_squash_open): Handle LONG_REGULAR.
  6241. (direct_read): New function.
  6242. (grub_squash_read_data): Handle blocks correctly.
  6243. 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
  6244. * grub-core/kern/disk.c (grub_disk_read_small): Fix memory leak.
  6245. 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
  6246. * grub-core/fs/romfs.c (grub_romfs_open): Add missing return.
  6247. 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
  6248. Fix 2G limit on ZFS.
  6249. * grub-core/fs/zfs/zfs.c (zio_checksum_verify): Use more appropriate
  6250. types.
  6251. (uberblock_verify): Likewise.
  6252. (dmu_read): Likewise.
  6253. (grub_zfs_read): Likewise. Remove invalid cast.
  6254. 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
  6255. * grub-core/fs/jfs.c (grub_jfs_blkno): Use more appropriate types.
  6256. (grub_jfs_blkno): Fix incorrect shift.
  6257. (grub_jfs_read_file): Use more appropriate types.
  6258. 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
  6259. Support triple indirect on minix2 and minix3.
  6260. * grub-core/fs/minix.c (grub_minix_inode) [MODE_MINIX2 || MODE_MINIX3]:
  6261. Declare triple_indir_zone.
  6262. (grub_minix_get_file_block) [MODE_MINIX2 || MODE_MINIX3]: Handle triple
  6263. indirect.
  6264. 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
  6265. Minix FS fixes.
  6266. * grub-core/fs/minix.c (GRUB_MINIX_INODE_SIZE): Size is always 32-bit.
  6267. (grub_minix_inode) [!MODE_MINIX2 && !MODE_MINIX3]: Make size 32-bit.
  6268. Rename ctime to mtime. All users updated.
  6269. (grub_minix_get_file_block): Fix types and double indirect computations.
  6270. 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
  6271. * grub-core/fs/fat.c (grub_fat_label) [MODE_EXFAT]: Set *label to 0
  6272. if no label is found.
  6273. (grub_fat_iterate_dir): Fix file size type.
  6274. (grub_fat_iterate_dir): Likewise.
  6275. 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
  6276. * grub-core/lib/reed_solomon.c (gf_invert): Declare as const and
  6277. save some space.
  6278. * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
  6279. (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
  6280. 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
  6281. * util/import_gcry.py: Automatically fix camellia.c and camellia.h.
  6282. 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
  6283. * util/import_gcry.py: Accept space between # and include.
  6284. 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
  6285. * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/longjmp.S.
  6286. 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
  6287. Fine grainely disable warnings on lexer. Remove Wno-error on it.
  6288. * grub-core/Makefile.core.def (normal): Remove -Wno-error.
  6289. * grub-core/script/lexer.c: Declare yytext_ptr to avoid having
  6290. yylex_strncpy.
  6291. * grub-core/script/yylex.l: Add fine-grained #pragma.
  6292. 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
  6293. * grub-core/lib/posix_wrap/string.h (memcpy) [GRUB_UTIL]:
  6294. New inline function.
  6295. * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy) [GRUB_UTIL]:
  6296. Likewise.
  6297. (memset) [GRUB_UTIL]: Likewise.
  6298. (memcmp) [GRUB_UTIL]: Likewise.
  6299. 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
  6300. * include/grub/misc.h (grub_memcpy): Declare grub_memcpy with static
  6301. inline function rather than a define.
  6302. 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
  6303. * util/grub-setup.c: Add missing include.
  6304. 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
  6305. * util/ieee1275/grub-ofpathname.c: Add missing include.
  6306. 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
  6307. * grub-core/kern/i386/pc/startup.S (grub_exit): Add missing zeroing-out.
  6308. * grub-core/lib/i386/reboot_trampoline.S (grub_reboot_start):
  6309. Likewise.
  6310. 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
  6311. * grub-core/io/lzopio.c (test_header): Fix incorrect memcmp instead of
  6312. grub_memcmp usage.
  6313. 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
  6314. * util/grub-install.in: Add datarootdir as per automake manual
  6315. suggestion.
  6316. * util/grub-mknetdir.in: Likewise.
  6317. 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
  6318. * util/grub.d/10_hurd.in: Add datarootdir as per automake manual
  6319. suggestion.
  6320. * util/grub.d/10_kfreebsd.in: Likewise.
  6321. * util/grub.d/10_linux.in: Likewise.
  6322. * util/grub.d/10_netbsd.in: Likewise.
  6323. * util/grub.d/10_windows.in: Likewise.
  6324. * util/grub.d/20_linux_xen.in: Likewise.
  6325. 2011-10-20 Vladimir Serbinenko <phcoder@gmail.com>
  6326. Remove redundant grub_kernel_image_size.
  6327. * grub-core/kern/i386/coreboot/init.c (grub_machine_init): Use
  6328. _edata and _start.
  6329. * grub-core/kern/i386/coreboot/startup.S: Move multiboot header after
  6330. the small code. It moves it only by few bytes but simplifies the code.
  6331. * grub-core/kern/i386/pc/init.c (grub_machine_init): Use _edata and
  6332. _start.
  6333. * grub-core/kern/i386/pc/startup.S: Use _edata and _start.
  6334. (grub_kernel_image_size): Removed.
  6335. * grub-core/kern/i386/qemu/startup.S: Use _edata and _start.
  6336. (grub_kernel_image_size): Removed.
  6337. [APPLE_CC]: Remove apple compiler support. i386-qemu port can't be
  6338. compiled with Apple toolchain.
  6339. * grub-core/kern/sparc64/ieee1275/crt0.S: Remove leftover fields.
  6340. * include/grub/i386/pc/kernel.h (grub_kernel_image_size): Removed.
  6341. * include/grub/i386/qemu/kernel.h (grub_kernel_image_size): Removed.
  6342. (grub_total_module_size): Likewise.
  6343. * include/grub/offsets.h (GRUB_KERNEL_I386_PC_KERNEL_IMAGE_SIZE):
  6344. Removed.
  6345. (GRUB_KERNEL_I386_PC_COMPRESSED_SIZE): Put it lower.
  6346. (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART): Likewise.
  6347. (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
  6348. (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Likewise.
  6349. (GRUB_KERNEL_I386_QEMU_KERNEL_IMAGE_SIZE): Removed.
  6350. (GRUB_KERNEL_SPARC64_IEEE1275_KERNEL_IMAGE_SIZE): Likewise.
  6351. (GRUB_KERNEL_SPARC64_IEEE1275_COMPRESSED_SIZE): Likewise.
  6352. * include/grub/sparc64/ieee1275/kernel.h (grub_kernel_image_size):
  6353. Removed.
  6354. (grub_total_module_size): Removed.
  6355. * util/grub-mkimage.c (image_target_desc): Remove image_size.
  6356. (image_targets): Likewise.
  6357. Set .compressed_size to no field on sparc.
  6358. (generate_image): Remove kernel_image_size handling.
  6359. 2011-10-19 Szymon Janc <szymon@janc.net.pl>
  6360. * grub-core/bus/usb/uhci.c (grub_uhci_setup_transfer): Fix possible
  6361. NULL pointer dereference.
  6362. 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
  6363. Removed unused GRUB_BOOT_VERSION. Check for kernel version is better
  6364. done with a dedicated section.
  6365. * grub-core/boot/sparc64/ieee1275/boot.S: Remove GRUB_BOOT_VERSION.
  6366. Ensure the correct position of boot_path.
  6367. * grub-core/kern/i386/efi/startup.S: Remove GRUB_BOOT_VERSION.
  6368. * grub-core/kern/i386/pc/startup.S: Likewise. Ensure correct position of
  6369. other fields.
  6370. * grub-core/kern/x86_64/efi/startup.S: Remove GRUB_BOOT_VERSION.
  6371. * include/grub/boot.h: Removed. All references removed.
  6372. * include/grub/sparc64/ieee1275/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
  6373. Removed.
  6374. (GRUB_BOOT_MACHINE_BOOT_DEVPATH): Make it lower.
  6375. 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
  6376. * util/grub-install.in: Declare IEEE1275 as able to find out the disk
  6377. name.
  6378. 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
  6379. * grub-core/kern/main.c (grub_set_prefix_and_root): Init prefix.
  6380. 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
  6381. * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
  6382. Don't add the bogus brackets.
  6383. 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
  6384. ExFAT support.
  6385. * Makefile.util.def (libgrubmods.a): Add grub-core/fs/exfat.c.
  6386. * grub-core/Makefile.core.def (exfat): New module.
  6387. * grub-core/fs/exfat.c: New file.
  6388. * grub-core/fs/fat.c (GRUB_FAT_DIR_ENTRY_SIZE): Removed.
  6389. (GRUB_FAT_ATTR_*): Make into an enum.
  6390. (GRUB_FAT_ATTR_LONG_NAME) [MODE_EXFAT]: Removed.
  6391. (GRUB_FAT_ATTR_VALID) [MODE_EXFAT]: Remove GRUB_FAT_ATTR_VOLUME_ID.
  6392. (GRUB_FAT_ATTR_VOLUME_ID) [MODE_EXFAT]: Removed.
  6393. (GRUB_FAT_MAXFILE): Removed.
  6394. (grub_exfat_bpb) [MODE_EXFAT]: New struct.
  6395. (grub_current_fat_bpb_t): New type.
  6396. (grub_fat_dir_entry) [MODE_EXFAT]: New struct.
  6397. (grub_fat_dir_node) [MODE_EXFAT]: New struct.
  6398. (grub_fat_dir_node_t): New type.
  6399. (grub_fat_data) [MODE_EXFAT]: Remove root_sector and num_root_sectors.
  6400. (fat_log2) [MODE_EXFAT]: Removed.
  6401. (grub_fat_mount): Use grub_current_fat_bpb_t. Add some sanity checks.
  6402. (grub_fat_mount) [MODE_EXFAT]: Handle ExFAT.
  6403. (grub_fat_iterate_dir) [MODE_EXFAT]: New function.
  6404. (grub_fat_find_dir) [MODE_EXFAT]: Handle ExFAT.
  6405. (grub_fat_label) [MODE_EXFAT]: New function.
  6406. (grub_fat_fs) [MODE_EXFAT]: Set name to "exfat" and
  6407. reserved_first_sector to 0.
  6408. 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
  6409. Move grub_reboot out of the kernel.
  6410. * grub-core/Makefile.core.def (reboot): Add platform-specific files.
  6411. * grub-core/kern/efi/efi.c (grub_reboot): Moved to ...
  6412. * grub-core/lib/efi/reboot.c: ... here.
  6413. * grub-core/kern/i386/efi/startup.S: Remove including of realmode.S.
  6414. * grub-core/kern/i386/ieee1275/startup.S: Likewise.
  6415. * grub-core/kern/i386/pc/startup.S (grub_exit): Inline cold_reboot.
  6416. * grub-core/kern/i386/realmode.S (grub_reboot): Moved to...
  6417. * grub-core/lib/i386/reboot_trampoline.S: ... here.
  6418. * grub-core/kern/ieee1275/openfw.c (grub_reboot): Moved to...
  6419. * grub-core/lib/ieee1275/reboot.c: ... here.
  6420. * grub-core/kern/mips/arc/init.c (grub_reboot): Moved to...
  6421. * grub-core/lib/mips/arc/reboot.c: ... here.
  6422. * grub-core/kern/mips/loongson/init.c (grub_reboot): Moved to...
  6423. * grub-core/lib/mips/loongson/reboot.c: ...here.
  6424. * grub-core/kern/mips/qemu_mips/init.c (grub_reboot): Moved to...
  6425. * grub-core/lib/mips/qemu_mips/reboot.c: ... here.
  6426. * include/grub/emu/misc.h (grub_reboot): New function declaration.
  6427. * include/grub/i386/reboot.h: New file.
  6428. * include/grub/mips/loongson/ec.h: Fix includes.
  6429. * include/grub/mips/qemu_mips/kernel.h (grub_reboot): Removed.
  6430. * include/grub/misc.h (grub_reboot): Don't mark as kernel function.
  6431. * grub-core/lib/i386/reboot.c: New file.
  6432. 2011-10-18 Vladimir Serbinenko <phcoder@gmail.com>
  6433. Make grub_prefix into module to fix the arbitrary limit and save
  6434. some space.
  6435. * grub-core/kern/emu/main.c (grub_prefix): Removed.
  6436. * grub-core/kern/i386/coreboot/startup.S (grub_prefix): Likewise.
  6437. * grub-core/kern/i386/efi/startup.S (grub_prefix): Likewise.
  6438. * grub-core/kern/i386/ieee1275/startup.S (grub_prefix): Likewise.
  6439. * grub-core/kern/i386/pc/startup.S (grub_prefix): Likewise.
  6440. * grub-core/kern/i386/qemu/startup.S (grub_prefix): Likewise.
  6441. * grub-core/kern/ia64/efi/startup.S (grub_prefix): Likewise.
  6442. * grub-core/kern/mips/startup.S (grub_prefix): Likewise.
  6443. * grub-core/kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
  6444. * grub-core/kern/sparc64/ieee1275/crt0.S (grub_prefix): Likewise.
  6445. * grub-core/kern/x86_64/efi/startup.S (grub_prefix): Likewise.
  6446. * include/grub/ia64/efi/kernel.h: Removed.
  6447. * include/grub/kernel.h: New module type OBJ_TYPE_PREFIX.
  6448. (grub_prefix): Removed.
  6449. * include/grub/offsets.h (GRUB_KERNEL_I386_PC_PREFIX): Removed.
  6450. (GRUB_KERNEL_I386_PC_PREFIX_END): Likewise.
  6451. (GRUB_KERNEL_I386_QEMU_PREFIX): Likewise.
  6452. (GRUB_KERNEL_I386_QEMU_PREFIX_END): Likewise.
  6453. (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX): Likewise.
  6454. (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX_END): Likewise.
  6455. (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX): Likewise.
  6456. (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX_END): Likewise.
  6457. (GRUB_KERNEL_MIPS_LOONGSON_PREFIX): Likewise.
  6458. (GRUB_KERNEL_MIPS_LOONGSON_PREFIX_END): Likewise.
  6459. (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
  6460. (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
  6461. (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
  6462. (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
  6463. (GRUB_KERNEL_I386_EFI_PREFIX): Likewise.
  6464. (GRUB_KERNEL_I386_EFI_PREFIX_END): Likewise.
  6465. (GRUB_KERNEL_IA64_EFI_PREFIX): Likewise.
  6466. (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
  6467. (GRUB_KERNEL_X86_64_EFI_PREFIX): Likewise.
  6468. (GRUB_KERNEL_X86_64_EFI_PREFIX_END): Likewise.
  6469. (GRUB_KERNEL_I386_COREBOOT_PREFIX): Likewise.
  6470. (GRUB_KERNEL_I386_COREBOOT_PREFIX_END): Likewise.
  6471. (GRUB_KERNEL_I386_MULTIBOOT_PREFIX): Likewise.
  6472. (GRUB_KERNEL_I386_MULTIBOOT_PREFIX_END): Likewise.
  6473. (GRUB_KERNEL_I386_IEEE1275_PREFIX): Likewise.
  6474. (GRUB_KERNEL_I386_IEEE1275_PREFIX_END): Likewise.
  6475. (GRUB_KERNEL_MACHINE_PREFIX): Likewise.
  6476. (GRUB_KERNEL_MACHINE_PREFIX_END): Likewise.
  6477. * grub-core/kern/main.c (grub_set_prefix_and_root): Retrieve grub_prefix
  6478. from module.
  6479. * util/grub-mkimage.c (image_target_desc): Removed prefix and
  6480. prefix_end.
  6481. (image_targets): Likewise.
  6482. (generate_image): Put prefix as a module.
  6483. 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
  6484. Replace grub_module_iterate with FOR_MODULES.
  6485. * grub-core/disk/memdisk.c (GRUB_MOD_INIT): Switched to new interface.
  6486. * grub-core/kern/efi/efi.c (grub_arch_modules_addr): Renamed to...
  6487. (grub_efi_modules_addr): ...this.
  6488. * grub-core/kern/efi/init.c (grub_modbase): New variable.
  6489. (grub_efi_init): Set grub_modbase.
  6490. * grub-core/kern/emu/main.c (grub_arch_modules_addr): Removed.
  6491. (grub_modbase): New variable.
  6492. * grub-core/kern/i386/coreboot/init.c (grub_arch_modules_addr): Removed.
  6493. (grub_modbase): New variable.
  6494. (grub_machine_init): Set grub_modbase.
  6495. * grub-core/kern/i386/pc/init.c (grub_arch_modules_addr): Removed.
  6496. (grub_modbase): New variable.
  6497. (grub_machine_init): Set grub_modbase.
  6498. * grub-core/kern/ieee1275/init.c (grub_arch_modules_addr): Removed.
  6499. (grub_modbase): New variable.
  6500. (grub_machine_init): Set grub_modbase.
  6501. * grub-core/kern/main.c (grub_module_iterate): Remove.
  6502. (grub_modules_get_end): Use grub_modbase.
  6503. (grub_load_modules): Use FOR_MODULES.
  6504. (grub_load_config): Likewise.
  6505. * grub-core/kern/mips/arc/init.c (grub_arch_modules_addr): Removed.
  6506. (grub_modbase): New variable.
  6507. (grub_machine_init): Set grub_modbase.
  6508. * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): Removed.
  6509. (grub_modbase): New variable.
  6510. (grub_machine_init): Set grub_modbase.
  6511. * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr):
  6512. Removed.
  6513. (grub_modbase): New variable.
  6514. (grub_machine_init): Set grub_modbase.
  6515. * include/grub/efi/efi.h (grub_efi_modules_addr): New declaration.
  6516. * include/grub/kernel.h (grub_arch_modules_addr): Removed.
  6517. (grub_module_iterate): Likewise.
  6518. (grub_modbase): New variable declaration.
  6519. (FOR_MODULES): New macro.
  6520. 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
  6521. * configure.ac: Check for __ctzdi2 and __ctzsi2.
  6522. * include/grub/libgcc.h: Include __ctzdi2 and __ctzsi2 if present.
  6523. 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
  6524. Fix few obvious type discrepancies.
  6525. * grub-core/fs/affs.c (grub_affs_read_file): Use grub_off_t for offset.
  6526. * grub-core/fs/afs.c (grub_afs_read_file): Likewise.
  6527. * grub-core/fs/fshelp.c (grub_fshelp_find_file): Remove leftover
  6528. variable.
  6529. * grub-core/fs/hfs.c (grub_hfs_read_file): Use grub_off_t for offset
  6530. and connected types.
  6531. * grub-core/fs/nilfs2.c (grub_nilfs2_read_file): Use grub_off_t for
  6532. offset.
  6533. (grub_nilfs2_iterate_dir): Use grub_off_t for fpos.
  6534. * grub-core/fs/sfs.c (grub_sfs_read_file): Use grub_off_t for offset.
  6535. * grub-core/fs/ufs.c (grub_ufs_read_file): Use grub_off_t for offset
  6536. and connected types.
  6537. 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
  6538. Fix python 3.x incompatibilities.
  6539. * gentpl.py: Put brackets around print strings.
  6540. * util/import_gcry.py: Open explicitly as utf-8.
  6541. Use in instead of has_key.
  6542. 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
  6543. * grub-core/fs/xfs.c (grub_xfs_inode): New field fork_offset.
  6544. (GRUB_XFS_INO_AGBITS): Make into inline function.
  6545. (GRUB_XFS_INO_INOINAG): Likewise.
  6546. (GRUB_XFS_INO_AG): Likewise.
  6547. (GRUB_XFS_FSB_TO_BLOCK): Likewise.
  6548. (GRUB_XFS_EXTENT_OFFSET): Likewise.
  6549. (GRUB_XFS_EXTENT_BLOCK): Likewise.
  6550. (GRUB_XFS_EXTENT_SIZE): Likewise.
  6551. (GRUB_XFS_ROUND_TO_DIRENT): Likewise.
  6552. (GRUB_XFS_NEXT_DIRENT): Likewise.
  6553. (grub_xfs_read_block): Rewrite the btree parsing. Fixes invalid BMAP.
  6554. (grub_xfs_read_file): Fix offset type.
  6555. 2011-10-15 Robert Millan <rmh@gnu.org>
  6556. * util/getroot.c (grub_util_get_grub_dev): Fix OS selection #ifdefs.
  6557. 2011-10-15 Robert Millan <rmh@gnu.org>
  6558. Fix build problem on FreeBSD and GNU/kFreeBSD.
  6559. * util/getroot.c [__FreeBSD_kernel__]: Include `<sys/mount.h>'.
  6560. 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
  6561. Fix overflow with >2GiB file on HFS+. >4GiB wasn't tested.
  6562. * grub-core/fs/hfsplus.c (grub_hfsplus_btree): Use more appropriate
  6563. types.
  6564. (grub_hfsplus_btree_recoffset): Likewise.
  6565. (grub_hfsplus_btree_recptr): Likewise.
  6566. (grub_hfsplus_find_block): Likewise.
  6567. (grub_hfsplus_btree_search): Likewise.
  6568. (grub_hfsplus_read_block): Likewise.
  6569. (grub_hfsplus_read_file): Likewise.
  6570. (grub_hfsplus_mount): Likewise.
  6571. (grub_hfsplus_btree_iterate_node): Likewise.
  6572. (grub_hfsplus_btree_search): Likewise.
  6573. (grub_hfsplus_iterate_dir): Likewise.
  6574. (grub_hfsplus_read): A small code simplification.
  6575. 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
  6576. * grub-core/kern/emu/hostdisk.c
  6577. (convert_system_partition_to_system_disk): Don't assume that children
  6578. of mapper nodes are mapper nodes.
  6579. 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
  6580. * grub-core/lib/posix_wrap/ctype.h (isxdigit): Use grub_isxdigit.
  6581. * include/grub/misc.h (grub_isxdigit): New function.
  6582. * grub-core/video/colors.c (my_isxdigit): Removed. All users
  6583. switched to grub_isxdigit.
  6584. * grub-core/term/serial.c (grub_serial_find): Fix in case of port
  6585. number starting with a letter.
  6586. 2011-10-09 Robert Millan <rmh@gnu.org>
  6587. LVM support for FreeBSD and GNU/kFreeBSD.
  6588. * util/lvm.c (grub_util_lvm_isvolume): Enable on FreeBSD and
  6589. GNU/kFreeBSD.
  6590. (LVM_DEV_MAPPER_STRING): Move from here ...
  6591. * include/grub/util/lvm.h (LVM_DEV_MAPPER_STRING): ... to here.
  6592. * util/getroot.c: Include `<grub/util/lvm.h>'.
  6593. (grub_util_get_dev_abstraction): Enable
  6594. grub_util_biosdisk_is_present() on FreeBSD and GNU/kFreeBSD.
  6595. Check for LVM abstraction on FreeBSD and GNU/kFreeBSD.
  6596. (grub_util_get_grub_dev): Replace "/dev/mapper/" with
  6597. `LVM_DEV_MAPPER_STRING'. Enable LVM and mdRAID only on platforms that
  6598. support it.
  6599. * util/grub-setup.c (main): Check for LVM also on FreeBSD and
  6600. GNU/kFreeBSD.
  6601. * util/grub.d/10_kfreebsd.in: Load `geom_linux_lvm' kernel module
  6602. when LVM abstraction is required for ${GRUB_DEVICE}.
  6603. 2011-10-06 Szymon Janc <szymon@janc.net.pl>
  6604. Add support for LZO compression in GRUB:
  6605. - import of minilzo library,
  6606. - LZO decompression for btrfs,
  6607. - lzop files decompression.
  6608. * grub-core/io/lzopio.c: New file.
  6609. * grub-core/lib/adler32.c: Likewise.
  6610. * grub-core/lib/minilzo/lzoconf.h: Likewise.
  6611. * grub-core/lib/minilzo/lzodefs.h: Likewise.
  6612. * grub-core/lib/minilzo/minilzo.c: Likewise.
  6613. * grub-core/lib/minilzo/minilzo.h: Likewise.
  6614. * Makefile.util.def (libgrubmods.a): Add grub-core/io/lzopio.c,
  6615. grub-core/lib/adler32.c, grub-core/io/lzopio.c,
  6616. grub-core/lib/minilzo/minilzo.c to common.
  6617. * Makefile.util.def (libgrubmods.a): Add flags required by minilzo to
  6618. cflags in cppflags.
  6619. * grub-core/Makefile.core.def (btrfs): Likewise.
  6620. * grub-core/Makefile.core.def (lzopio): New module.
  6621. (adler32): Likewise.
  6622. * grub-core/fs/btrfs.c: Include minilzo.h.
  6623. (GRUB_BTRFS_COMPRESSION_LZO): New define.
  6624. (GRUB_BTRFS_LZO_BLOCK_SIZE): Likewise.
  6625. (GRUB_BTRFS_LZO_BLOCK_MAX_CSIZE): Likewise.
  6626. (grub_btrfs_lzo_decompress): New function.
  6627. (grub_btrfs_extent_read): Add support for LZO compression type.
  6628. * include/grub/types.h (GRUB_UCHAR_MAX): New define.
  6629. (GRUB_USHRT_MAX): Likewise.
  6630. (GRUB_UINT_MAX): Likewise.
  6631. * grub-core/lib/posix_wrap/limits.h (USHRT_MAX): Likewise.
  6632. (UINT_MAX): Likewise.
  6633. (CHAR_BIT): Likewise.
  6634. * grub-core/lib/posix_wrap/sys/types.h (ULONG_MAX): Moved to
  6635. grub-core/lib/posix_wrap/limits.h
  6636. (UCHAR_MAX): Likewise.
  6637. * include/grub/file.h (grub_file_filter_id): New compression filter
  6638. GRUB_FILE_FILTER_LZOPIO.
  6639. * include/grub/file.h (grub_file_filter_id): Set
  6640. GRUB_FILE_FILTER_LZOPIO as GRUB_FILE_FILTER_COMPRESSION_LAST.
  6641. * include/grub/types.h (grub_get_unaligned16): New function.
  6642. (grub_get_unaligned32): Likewise.
  6643. (grub_get_unaligned64): Likewise.
  6644. * util/import_gcry.py (cryptolist): Add adler32.
  6645. 2011-10-05 Vladimir Serbinenko <phcoder@gmail.com>
  6646. * grub-core/Makefile.core.def: Eliminate rarely used emu_condition. This
  6647. in perspective decreases the complexity of build system and fixes
  6648. compilation right now.
  6649. 2011-10-01 Ales Nesrsta <starous@volny.cz>
  6650. * grub-core/bus/usb/uhci.c: Changes made by Rock Cui - thanks!
  6651. (fixed problem related to using UHCI with coreboot).
  6652. 2011-08-25 BVK Chaitanya <bvk.groups@gmail.com>
  6653. * gentpl.py: Use Autogen macros so that the output template file
  6654. (Makefile.tpl) size is reduced.
  6655. 2011-09-29 Mads Kiilerich <mads@kiilerich.com>
  6656. * grub-core/Makefile.core.def (kernel): Add kern/i386/int.S to
  6657. extra_dist.
  6658. 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
  6659. * util/misc.c (grub_util_get_disk_size) [__MINGW32__]: Strip trailing
  6660. slashes on PHYSICALDRIVE%d paths when making Windows CreateFile calls.
  6661. 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
  6662. * grub-core/kern/emu/misc.c (canonicalize_file_name) [__MINGW32__]: Use
  6663. _fullpath.
  6664. 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
  6665. Remove extra declaration of sleep for mingw32.
  6666. * util/misc.c (sleep) [__MINGW32__]: Removed.
  6667. * include/grub/util/misc.h (sleep) [__MINGW32__]: Likewise.
  6668. 2011-09-28 Grégoire Sutre <gregoire.sutre@gmail.com>
  6669. * include/grub/bsdlabel.h (grub_partition_bsd_disk_label): Add fields
  6670. type and packname.
  6671. * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK):
  6672. Resurrected.
  6673. (NETBSD_BTINFO_BOOTWEDGE): New definition.
  6674. (grub_netbsd_btinfo_bootwedge): New struct.
  6675. * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
  6676. New function.
  6677. (grub_cmd_netbsd): Call grub_netbsd_add_boot_disk_and_wedge.
  6678. 2011-09-28 Thomas Haller <thomas.haller@fen-net.de>
  6679. * grub-core/loader/multiboot_elfxx.c (Elf_Shdr): Set according to
  6680. loader.
  6681. 2011-09-28 Andreas Born <futur.andy@googlemail.com>
  6682. Fix incorrect identifiers in bash-completion.
  6683. * util/bash-completion.d/grub-completion.bash.in
  6684. (_grub_mkpasswd-pbkdf2): Rename to ...
  6685. (_grub_mkpasswd_pbkdf2): ... this. All users updated.
  6686. (_grub_script-check): Rename to ...
  6687. (_grub_script_check): ... this. All users updated.
  6688. 2011-09-28 Vladimir Serbinenko <phcoder@gmail.com>
  6689. * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
  6690. Return 0 if disk isn't biosdisk.
  6691. 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
  6692. * Makefile.util.def (grub-mkrelpath): Add LIBUTIL for getrawpartition(3)
  6693. on NetBSD.
  6694. * Makefile.util.def (grub-fstest): Likewise.
  6695. 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
  6696. * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__NetBSD__]:
  6697. Get sector size from disk label.
  6698. 2011-09-05 Colin Watson <cjwatson@ubuntu.com>
  6699. * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Return 1 for
  6700. */README* as well as README*.
  6701. Reported by: Axel Beckert.
  6702. 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
  6703. * grub-core/kern/mips/loongson/init.c (grub_machine_init): Handle the
  6704. case of less than 256 MiB of RAM.
  6705. 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
  6706. * grub-core/commands/wildcard.c (make_regex): Handle @.
  6707. 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
  6708. * util/grub-install.in: Move cryptodisk logic to appropriate place.
  6709. 2011-08-21 Szymon Janc <szymon@janc.net.pl>
  6710. * acinclude.m4: Use AC_LANG_PROGRAM macro to generate source code for
  6711. AC_LANG_CONFTEST macros.
  6712. 2011-08-20 Szymon Janc <szymon@janc.net.pl>
  6713. Add grub-fstest option to uncompress data for commands.
  6714. * util/grub-fstest.c (uncompress): New var.
  6715. (options): New option -u.
  6716. 2011-08-20 Szymon Janc <szymon@janc.net.pl>
  6717. * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
  6718. GRUB_VIDEO_DRIVER_RADEON_FULOONG2E to switch case statement.
  6719. 2011-08-20 Szymon Janc <szymon@janc.net.pl>
  6720. * grub-core/io/gzio.c (grub_gzio_open): Always return original io if
  6721. file type was not recognized correctly (not gzip or corrupted).
  6722. 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
  6723. * grub-core/kern/mips/loongson/init.c (grub_reboot): Reboot Fuloong.
  6724. * include/grub/cs5536.h (GRUB_CS5536_MSR_DIVIL_RESET): New definition.
  6725. 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
  6726. * grub-core/Makefile.core.def (kernel): Add video/radeon_fuloong2e.c on
  6727. loongson.
  6728. * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
  6729. video_radeon_fuloong2e.
  6730. * grub-core/video/radeon_fuloong2e.c: New file.
  6731. * include/grub/video.h (grub_video_id_t): Add new ID
  6732. GRUB_VIDEO_DRIVER_RADEON_FULOONG2E.
  6733. 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
  6734. * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_COP0_PRID): New
  6735. define.
  6736. * grub-core/kern/mips/loongson/init.c (grub_machine_init): Check
  6737. that PRID matches the detected subplatform and reset the subplatform
  6738. if it doesn't.
  6739. 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
  6740. * grub-core/kern/misc.c (grub_vprintf): Fix a bug on malloc failure.
  6741. 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
  6742. Fix PCI iterating on functions >= 4.
  6743. * grub-core/bus/pci.c (grub_pci_iterate): Remove useless ghost skipping.
  6744. * include/grub/mips/loongson/pci.h (GRUB_LOONGSON_OHCI_GHOST_FUNCTION):
  6745. Removed.
  6746. (GRUB_LOONGSON_EHCI_GHOST_FUNCTION): Likewise.
  6747. (grub_pci_read): Fix bitmask.
  6748. (grub_pci_read_word): Likewise.
  6749. (grub_pci_read_byte): Likewise.
  6750. (grub_pci_write): Likewise.
  6751. (grub_pci_write_word): Likewise.
  6752. (grub_pci_write_byte): Likewise.
  6753. 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
  6754. * configure.ac: Don't impose march=loongson2f on loongson platform. (It
  6755. can still be specified in TARGET_CFLAGS)
  6756. 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
  6757. Rename Fuloong into Fuloong 2F. Add new ID for Fuloong2E.
  6758. * grub-core/Makefile.core.def (fwstart_fuloong): Rename fwstart_fuloong
  6759. into fwstart_fuloong2f. Use boot/mips/loongson/fuloong2f.S.
  6760. * grub-core/boot/mips/loongson/fuloong.S: Rename to ...
  6761. * grub-core/boot/mips/loongson/fuloong2f.S: ... this.
  6762. (FULOONG): Rename to ...
  6763. (FULOONG2F): ... this. All users updated.
  6764. * grub-core/boot/mips/startup_raw.S (machtype_fuloong_str): Rename to
  6765. (machtype_fuloong2f_str): ... this.
  6766. (machtype_fuloong2e_str): New string.
  6767. Check for machtype_fuloong2e_str.
  6768. * grub-core/loader/mips/linux.c (loongson_machtypes)
  6769. [GRUB_MACHINE_MIPS_LOONGSON]: Add GRUB_ARCH_MACHINE_FULOONG2E.
  6770. * grub-core/term/serial.c (loongson_defserial)
  6771. [GRUB_MACHINE_MIPS_LOONGSON]: New array.
  6772. (grub_serial_register) [GRUB_MACHINE_MIPS_LOONGSON]: Use
  6773. loongson_defserial.
  6774. * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_FULOONG):
  6775. Rename to ...
  6776. (GRUB_ARCH_MACHINE_FULOONG2F): ... this.
  6777. (GRUB_ARCH_MACHINE_FULOONG2E): New const.
  6778. * util/grub-mkimage.c (image_target_desc): Rename IMAGE_FULOONG_FLASH
  6779. to IMAGE_FULOONG2F_FLASH. All users updated.
  6780. (image_targets): Rename images.
  6781. * util/grub-mkstandalone.in: Accept fuloong2f and fuloong2e.
  6782. 2011-08-19 Szymon Janc <szymon@janc.net.pl>
  6783. Make enable of disk cache statistics code configurable.
  6784. * configure.ac: --enable-cache-stats added.
  6785. * config.h.in (DISK_CACHE_STATS): New define.
  6786. * grub-core/Makefile.core.def (cacheinfo): New command.
  6787. * include/grub/disk.h(grub_disk_cache_get_performance): New function.
  6788. * grub-core/commands/cacheinfo.c: New file.
  6789. * grub-core/commands/minicmd.c (grub_rescue_cmd_info): Updated and
  6790. moved to cacheinfo.c.
  6791. * grub-core/kern/disk.c: Use DISK_CACHE_STATS to disable disk cache
  6792. debug code.
  6793. * include/grub/disk.h: Likewise.
  6794. 2011-08-19 Szymon Janc <szymon@janc.net.pl>
  6795. * Makefile.am (AUTOMAKE_OPTIONS): = Added -Wno-portability flag.
  6796. * grub-core/Makefile.am: Likewise.
  6797. 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
  6798. * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_iterate): Skip with
  6799. non-zero pull.
  6800. 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
  6801. * grub-core/fs/jfs.c (grub_jfs_read_file): New parameter ino.
  6802. All users updated.
  6803. (grub_jfs_lookup_symlink): Use correct starting inode.
  6804. 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
  6805. * util/grub-setup.c (main): Add missing gcry initialisation.
  6806. 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
  6807. Don't accept text modes on EFI when booting Linux.
  6808. * grub-core/loader/i386/linux.c (ACCEPTS_PURE_TEXT): New define.
  6809. (grub_linux_boot) [!ACCEPTS_PURE_TEXT]: Restrict to graphics modes.
  6810. 2011-08-15 Mario Limonciello <mario_limonciello@dell.com>
  6811. 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
  6812. * util/grub-probe.c (probe): Canonicalise the path argument, fixing
  6813. use of "/path/.." as in grub-install for EFI as well as handling
  6814. symlinks correctly.
  6815. Fixes Debian bug #637768.
  6816. 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
  6817. * util/grub-probe.c: Remove duplicate #include.
  6818. 2011-08-10 Robert Millan <rmh@gnu.org>
  6819. Detect LSI MegaRAID SAS (`mfi') devices on GNU/kFreeBSD.
  6820. * util/deviceiter.c [__FreeBSD_kernel__] (get_mfi_disk_name): New
  6821. function.
  6822. [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for mfi
  6823. (/dev/mfid[0-9]+) devices using get_mfi_disk_name().
  6824. 2011-08-03 Robert Millan <rmh@gnu.org>
  6825. * include/grub/zfs/zap_leaf.h (typedef union zap_leaf_chunk): Mark
  6826. la_array as packed.
  6827. Reported by: Zachary Bedell
  6828. 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
  6829. * configure.ac: The Loongson port requires grub-mkfont due to its
  6830. use of -DUSE_ASCII_FAILBACK. Raise an error if it is not going to
  6831. be built.
  6832. 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
  6833. * util/grub-install.in: Don't source grub-mkconfig_lib until after
  6834. processing arguments (otherwise help2man fails when GRUB has not yet
  6835. been installed).
  6836. 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
  6837. New script grub-mkstandalone.
  6838. * Makefile.util.def (grub-mkstandalone): New script.
  6839. * docs/man/grub-mkstandalone.h2m: New file.
  6840. * util/grub-mkstandalone.in: Likewise.
  6841. 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
  6842. Support ATA disks with 4K sectors.
  6843. * include/grub/ata.h (grub_ata): New member log_sector_size.
  6844. * grub-core/disk/ata.c (grub_ata_dumpinfo): Show sector size.
  6845. (grub_ata_identify): Read sector size.
  6846. (grub_ata_readwrite): Use log_sector_size rather than hardcoded value.
  6847. 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
  6848. * util/grub-install.in: Don't use uhci outside of x86.
  6849. 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
  6850. * util/grub-mkrescue.in: Add missing quotes.
  6851. 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
  6852. * grub-core/normal/menu.c (grub_menu_execute_entry): Fix NULL
  6853. dereference.
  6854. 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
  6855. * grub-core/disk/pata.c (grub_pata_readwrite): Add missing wait.
  6856. 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
  6857. * include/grub/video.h: add missing EXPORT_FUND on
  6858. grub_video_edid_checksum and grub_video_edid_preferred_mode.
  6859. 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
  6860. * include/grub/mips/kernel.h: Fix define conflict.
  6861. 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
  6862. * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]: Flush
  6863. all four ways.
  6864. 2011-07-21 Colin Watson <cjwatson@ubuntu.com>
  6865. Preferred resolution detection for VBE.
  6866. * grub-core/video/video.c (grub_video_edid_checksum): New function.
  6867. (grub_video_edid_preferred_mode): Likewise. Try EDID followed by
  6868. the Flat Panel extension, in line with the X.org VESA driver.
  6869. * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_flat_panel_info):
  6870. New function.
  6871. (grub_vbe_bios_get_ddc_capabilities): Likewise.
  6872. (grub_vbe_bios_read_edid): Likewise.
  6873. (grub_vbe_get_preferred_mode): Likewise.
  6874. (grub_video_vbe_setup): When the mode is "auto", try to get the
  6875. preferred mode from VBE, and use the largest mode that is no larger
  6876. than the preferred mode (some BIOSes expose a preferred mode that is
  6877. not in their mode list!). If this fails, fall back to 640x480 as a
  6878. safe conservative choice.
  6879. (grub_video_vbe_get_edid): New function.
  6880. (grub_video_vbe_adapter): Add get_edid.
  6881. * include/grub/video.h (struct grub_vbe_edid_info): New structure.
  6882. (struct grub_video_adapter): Add get_edid.
  6883. (grub_video_edid_checksum): Add prototype.
  6884. (grub_video_edid_preferred_mode): Likewise.
  6885. * include/grub/i386/pc/vbe.h (struct grub_vbe_flat_panel_info): New
  6886. structure.
  6887. * grub-core/commands/videoinfo.c (print_edid): New function.
  6888. (grub_cmd_videoinfo): Print EDID if available.
  6889. * util/grub.d/00_header.in (GRUB_GFXMODE): Default to "auto". This
  6890. is more appropriate on a wider range of platforms than 640x480.
  6891. * docs/grub.texi (Simple configuration): Update GRUB_GFXMODE
  6892. documentation.
  6893. 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
  6894. * util/grub-install.in: Recognize ESP mounted at /boot/EFI.
  6895. 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
  6896. * po/POTFILES.in: Regenerate.
  6897. 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
  6898. * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix
  6899. incorrect memory usage.
  6900. 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
  6901. * util/grub-install.in: Source grub-mkconfig_lib.
  6902. 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
  6903. Remove getroot.c from core on emu platform.
  6904. * grub-core/Makefile.core.def (kernel): Remove kern/emu/getroot.c and
  6905. kern/emu/raid.c.
  6906. * grub-core/kern/emu/main.c (main): Don't try to guess root device. It's
  6907. useless.
  6908. * grub-core/kern/emu/misc.c (get_win32_path): Moved from here...
  6909. * util/getroot.c (get_win32_path): ... here.
  6910. * grub-core/kern/emu/misc.c (fini_libzfs): Moved from here...
  6911. * util/getroot.c (fini_libzfs): ... here.
  6912. * grub-core/kern/emu/misc.c (grub_get_libzfs_handle): Moved from here...
  6913. * util/getroot.c (grub_get_libzfs_handle): ... here.
  6914. * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir):
  6915. Moved from here...
  6916. * util/getroot.c (grub_find_zpool_from_dir): ... here.
  6917. * grub-core/kern/emu/misc.c
  6918. (grub_make_system_path_relative_to_its_root): Moved from here...
  6919. * util/getroot.c (grub_make_system_path_relative_to_its_root): ... here.
  6920. * grub-core/kern/emu/getroot.c: Moved from here ...
  6921. * util/getroot.c: ... here. All users updated.
  6922. * grub-core/kern/emu/raid.c: Moved from here ...
  6923. * util/raid.c: ... here. All users updated.
  6924. 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
  6925. * po/POTFILES.in: Regenerate.
  6926. 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
  6927. Fix compilation on GNU/Linux.
  6928. * grub-core/kern/emu/getroot.c (grub_util_pull_device) [!FreeBSD]:
  6929. Disable geli.
  6930. (grub_util_get_grub_dev) [!FreeBSD]: Likewise.
  6931. (grub_util_pull_device) [HAVE_DEVICE_MAPPER]: Fix const and func name.
  6932. * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Fix proto.
  6933. 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
  6934. 2011-07-07 Michael Gorven <michael@gorven.za.net>
  6935. 2011-07-07 Clemens Fruhwirth <clemens@endorphin.org>
  6936. LUKS and GELI support.
  6937. * Makefile.util.def (libgrubkern.a): Add grub-core/lib/crypto.c,
  6938. grub-core/disk/luks.c, grub-core/disk/geli.c,
  6939. grub-core/disk/cryptodisk.c, grub-core/disk/AFSplitter.c,
  6940. grub-core/lib/pbkdf2.c, grub-core/commands/extcmd.c,
  6941. grub-core/lib/arg.c.
  6942. (libgrubmods.a): Remove gcrypts cflags and cppflags.
  6943. Remove grub-core/commands/extcmd.c, grub-core/lib/arg.c,
  6944. grub-core/lib/crypto.c, grub-core/lib/libgcrypt-grub/cipher/sha512.c,
  6945. grub-core/lib/libgcrypt-grub/cipher/crc.c and grub-core/lib/pbkdf2.c.
  6946. (grub-bin2h): Add libgcry.a.
  6947. (grub-mkimage): Likewise.
  6948. (grub-mkrelpath): Likewise.
  6949. (grub-script-check): Likewise.
  6950. (grub-editenv): Likewise.
  6951. (grub-mkpasswd-pbkdf2): Likewise.
  6952. (grub-pe2elf): Likewise.
  6953. (grub-fstest): Likewise.
  6954. (grub-mkfont): Likewise.
  6955. (grub-mkdevicemap): Likewise.
  6956. (grub-probe): Likewise.
  6957. (grub-ofpath): Likewise.
  6958. (grub-mklayout): Likewise.
  6959. (example_unit_test): Likewise.
  6960. (grub-menulst2cfg): Likewise.
  6961. * autogen.sh (UTIL_DEFS): Add Makefile.utilgcry.def.
  6962. * grub-core/Makefile.core.def (cryptodisk): New module.
  6963. (luks): Likewise.
  6964. (geli): Likewise.
  6965. * grub-core/disk/AFSplitter.c: New file.
  6966. * grub-core/disk/cryptodisk.c: Likewise.
  6967. * grub-core/disk/geli.c: Likewise.
  6968. * grub-core/disk/luks.c: Likewise.
  6969. * grub-core/kern/emu/getroot.c (get_dm_uuid): New function based on
  6970. grub_util_is_lvm.
  6971. (grub_util_get_dm_abstraction): New function.
  6972. (grub_util_follow_gpart_up): Likewise.
  6973. (grub_util_get_geom_abstraction): Likewise.
  6974. (grub_util_get_dev_abstraction): Use new functions.
  6975. (grub_util_pull_device): Pull GELI and LUKS.
  6976. (grub_util_get_grub_dev): Handle LUKS and GELI.
  6977. * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): New function.
  6978. (grub_util_biosdisk_open): Use grub_util_get_fd_sectors.
  6979. (follow_geom_up): Removed.
  6980. (grub_util_fd_seek): New function.
  6981. (open_device): Use grub_util_fd_seek.
  6982. (nread): Rename to ..
  6983. (grub_util_fd_read): ... this. All users updated.
  6984. * grub-core/lib/crypto.c (grub_crypto_ecb_decrypt): A better prototype.
  6985. (grub_crypto_cbc_decrypt): Likewise.
  6986. (grub_crypto_hmac_write): Likewise.
  6987. (grub_crypto_hmac_buffer): Likewise.
  6988. (grub_password_get): Extend to util.
  6989. * include/grub/crypto.h (gcry_cipher_spec) [GRUB_UTIL]:
  6990. New member modname.
  6991. (gcry_md_spec) [GRUB_UTIL]: Likewise.
  6992. * include/grub/cryptodisk.h: New file.
  6993. * include/grub/disk.h (grub_disk_dev_id): Rename LUKS to CRYPTODISK.
  6994. * include/grub/emu/getroot.h (grub_dev_abstraction_types): Add
  6995. LUKS and GELI.
  6996. (grub_util_follow_gpart_up): New proto.
  6997. * include/grub/emu/hostdisk.h (grub_util_fd_seek): Likewise.
  6998. (grub_util_fd_read): Likewise.
  6999. (grub_cryptodisk_cheat_mount): Likewise.
  7000. (grub_util_cryptodisk_print_uuid): Likewise.
  7001. (grub_util_get_fd_sectors): Likewise.
  7002. * util/grub-fstest.c (mount_crypt): New var.
  7003. (fstest): Mount crypto if requested.
  7004. (options): New option -C.
  7005. (argp_parser): Parse -C.
  7006. (main): Init and fini gcry.
  7007. * util/grub-install.in: Support cryptodisk install.
  7008. * util/grub-mkconfig.in: Export GRUB_ENABLE_CRYPTODISK.
  7009. * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Support
  7010. cryptodisk.
  7011. (prepare_grub_to_access_device): Likewise.
  7012. * util/grub-mkpasswd-pbkdf2.c (main): Use grub_password_get.
  7013. * util/grub-probe.c (probe_partmap): Support cryptodisk UUID probe.
  7014. (probe_cryptodisk_uuid): New function.
  7015. (probe_abstraction): Likewise.
  7016. (probe): Use new functions.
  7017. * util/import_gcry.py: Create Makefile.utilgcry.def.
  7018. Add modname member.
  7019. 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
  7020. Lazy device scanning.
  7021. * Makefile.util.def (libgrubkern.a): Add grub-core/kern/emu/raid.c.
  7022. (grub-setup): Remove util/raid.c.
  7023. * grub-core/Makefile.core.def (kernel): Add kern/emu/raid.c on emu.
  7024. * grub-core/disk/lvm.c (scan_depth): New variable.
  7025. (grub_lvm_iterate): Rescan if necessary.
  7026. (find_lv): New function based on grub_lvm_open.
  7027. (grub_lvm_open): Use find_lv. Rescan on error.
  7028. (is_node_readable): New function.
  7029. (is_lv_readable): Likewise.
  7030. (grub_lvm_scan_device): Skip already found disks.
  7031. (do_lvm_scan): New function. Move grub_lvm_scan_device inside of it.
  7032. Stop if searched device is found and readable.
  7033. * grub-core/disk/raid.c (inscnt): New variable.
  7034. (scan_depth): Likewise.
  7035. (scan_devices): New function based on grub_raid_register. Abort if
  7036. looked for device is found.
  7037. (grub_raid_iterate): Rescan if needed.
  7038. (find_array): NEw function based on -grub_raid_open.
  7039. (grub_raid_open): Use find_array and rescan.
  7040. (insert_array): Set became_readable_at.
  7041. * grub-core/kern/disk.c (grub_disk_dev_iterate): Iterate though "pull.
  7042. * grub-core/kern/emu/getroot.c (grub_util_open_dm) [HAVE_DEVICE_MAPPER]:
  7043. New function.
  7044. (grub_util_is_lvm) [HAVE_DEVICE_MAPPER]: Use grub_util_open_dm.
  7045. (grub_util_pull_device): New function.
  7046. (grub_util_get_grub_dev): Call grub_util_pull_device.
  7047. * util/raid.c: Moved to ..
  7048. * grub-core/kern/emu/raid.c: ... here.
  7049. (grub_util_raid_getmembers): New parameter "bootable".
  7050. All users updated. Support 1.x.
  7051. * include/grub/ata.h (grub_ata_dev): Change iterate prototype.
  7052. All users updated.
  7053. * include/grub/disk.h (grub_disk_pull_t): New enum.
  7054. (grub_disk_dev): Change iterate prototype.
  7055. All users updated.
  7056. * include/grub/emu/getroot.h (grub_util_raid_getmembers) [__linux__]:
  7057. New proto.
  7058. * include/grub/emu/hostdisk.h (grub_util_pull_device): Likewise.
  7059. * include/grub/lvm.h (grub_lvm_lv): New members fullname and compatname.
  7060. * include/grub/raid.h (grub_raid_array): New member became_readable_at.
  7061. * include/grub/scsi.h (grub_scsi_dev): Change iterate prototype.
  7062. All users updated.
  7063. * include/grub/util/raid.h: Removed.
  7064. 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
  7065. * po/POTFILES.in: Regenerate.
  7066. 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
  7067. Unify sparc init with other ieee1275.
  7068. * grub-core/Makefile.core.def (kernel): Use kern/ieee1275/init.c
  7069. instead of kern/sparc64/ieee1275/init.c.
  7070. * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options)
  7071. [__sparc__]: Set GRUB_IEEE1275_FLAG_NO_PARTITION_0.
  7072. * grub-core/kern/ieee1275/init.c [__sparc__]: Include
  7073. grub/machine/kernel.h.
  7074. (grub_ieee1275_original_stack) [__sparc__]: New variable.
  7075. (grub_claim_heap) [__sparc__]: Use sparc version.
  7076. (grub_machine_init): Moved args parsing to
  7077. (grub_parse_cmdline): ...this.
  7078. * grub-core/kern/sparc64/ieee1275/init.c: Removed.
  7079. * include/grub/offsets.h (GRUB_KERNEL_SPARC64_IEEE1275_MOD_GAP):
  7080. New definition.
  7081. (GRUB_KERNEL_SPARC64_IEEE1275_MOD_ALIGN): Likewise.
  7082. Move BOOTP to separate file.
  7083. * grub-core/Makefile.core.def (net): Add net/bootp.c.
  7084. * grub-core/net/net.c: Move all BOOTP functions to
  7085. * grub-core/net/bootp.c: ... here.
  7086. Use frame interface on PXE.
  7087. * grub-core/Makefile.core.def (pxecmd): Removed.
  7088. (pxe): Use net/drivers/i386/pc/pxe.c rather than net/i386/pc/pxe.c.
  7089. * grub-core/commands/i386/pc/pxecmd.c: Removed.
  7090. * grub-core/i386/pc/pxe.c: Moved from here ...
  7091. * grub-core/net/i386/pc/pxe.c: ... here. Rewritten.
  7092. * grub-core/net/net.c (grub_net_open_real): Handle old pxe syntax.
  7093. * include/grub/i386/pc/pxe.h (grub_pxe_unload): Removed.
  7094. EFI network support.
  7095. * grub-core/Makefile.core.def (efinet): New module.
  7096. * grub-core/disk/efi/efidisk.c (compare_device_paths): Moved from
  7097. here...
  7098. * grub-core/kern/efi/efi.c (grub_efi_compare_device_paths): ... here.
  7099. All users updated.
  7100. * grub-core/kern/efi/init.c (grub_efi_net_config): New variable.
  7101. (grub_machine_get_bootlocation): Call grub_efi_net_config if needed.
  7102. * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_7): New function.
  7103. * grub-core/net/drivers/efi/efinet.c: New file.
  7104. * include/grub/efi/efi.h (grub_efi_compare_device_paths): New proto.
  7105. (grub_efi_net_config): New extern var.
  7106. Various cleanups and bugfixes.
  7107. * grub-core/disk/efi/efidisk.c (grub_efidisk_open): Fix off-by-one
  7108. error.
  7109. (grub_efidisk_get_device_name): Unify similar codepaths. Accept whole
  7110. disk declared as partition.
  7111. * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Fix memory
  7112. leak on failure.
  7113. * grub-core/kern/dl.c (grub_dl_load_file): Fix memory leak.
  7114. * grub-core/kern/mm.c (grub_debug_malloc): Don't use unsupported %zx.
  7115. (grub_debug_zalloc): Likewise.
  7116. (grub_debug_realloc): Likewise.
  7117. (grub_debug_memalign): Likewise.
  7118. * grub-core/net/arp.c (grub_net_arp_receive): IPv4 is 4-byte wide.
  7119. Check that target is IPv4.
  7120. * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnet_findcards): Use
  7121. local-mac-address as fallback.
  7122. * grub-core/net/ethernet.c (grub_net_recv_ethernet_packet): Prevent
  7123. memory leak.
  7124. * grub-core/net/ip.c (ipchksum): Rename to ...
  7125. (grub_net_ip_chksum): ... this. All users updated.
  7126. (grub_net_recv_ip_packets): Special handling for DHCP.
  7127. * util/grub-mkimage.c (generate_image): Zero-out aout header.
  7128. Unify prefix handling
  7129. * grub-core/kern/efi/init.c (grub_efi_set_prefix): Revamped into ...
  7130. (grub_machine_get_bootlocation): ... this.
  7131. * grub-core/kern/emu/main.c (grub_machine_set_prefix): Revamped into ...
  7132. (grub_machine_get_bootlocation): ... this.
  7133. (grub_prefix): New variable.
  7134. (prefix): Removed.
  7135. (root_dev): New variable.
  7136. (dir): Likewise.
  7137. (main): Use new variables.
  7138. * grub-core/kern/i386/coreboot/init.c (grub_machine_set_prefix):
  7139. Revamped into ...
  7140. (grub_machine_get_bootlocation): ... this.
  7141. * grub-core/kern/i386/efi/init.c (grub_machine_set_prefix): Removed.
  7142. * grub-core/kern/i386/pc/init.c (make_install_device): Revamped into ...
  7143. (grub_machine_get_bootlocation): ... this.
  7144. (grub_machine_set_prefix): Removed.
  7145. * grub-core/kern/ia64/efi/init.c (grub_machine_set_prefix): Removed.
  7146. * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix):
  7147. Revamped into ...
  7148. (grub_machine_get_bootlocation): ... this.
  7149. * grub-core/kern/main.c (grub_set_root_dev): Revamped into ...
  7150. (grub_set_prefix_and_root): ... this. All users updated.
  7151. * grub-core/kern/mips/init.c (grub_machine_set_prefix):
  7152. Revamped into ...
  7153. (grub_machine_get_bootlocation): ... this.
  7154. * include/grub/kernel.h (grub_machine_set_prefix): Removed.
  7155. (grub_machine_get_bootlocation): New proto.
  7156. * include/grub/i386/pc/kernel.h (grub_pc_net_config): New var.
  7157. Less intrusive and more reliable seek on network implementation.
  7158. * grub-core/kern/file.c (grub_file_net_seek): Removed.
  7159. (grub_file_seek): Don't call grub_file_net_seek.
  7160. * grub-core/net/net.c (grub_net_fs_read): Renamed to ...
  7161. (grub_net_fs_read_real): .. this.
  7162. (grub_net_seek_real): Use net->offset.
  7163. (grub_net_fs_read): Seek if necessary.
  7164. Unify IEEE1275 netwotk config with the other platforms.
  7165. * grub-core/kern/ieee1275/init.c (grub_ieee1275_net_config):
  7166. New variable.
  7167. (grub_machine_get_bootlocation): Support network.
  7168. * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
  7169. Support type and device parsing.
  7170. (grub_ieee1275_get_device_type): New function.
  7171. * grub-core/net/drivers/ieee1275/ofnet.c (grub_getbootp_real): Revamped
  7172. into ...
  7173. (grub_ieee1275_net_config_real): ... this.
  7174. (grub_ofnet_probecards): Removed.
  7175. * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove ofnet.h.
  7176. * include/grub/ieee1275/ofnet.h: Removed.
  7177. * include/grub/ieee1275/ieee1275.h (grub_ieee1275_net_config): NEw
  7178. extern var.
  7179. (grub_ieee1275_get_device_type): New function.
  7180. Unify network device closing across platforms and make more robust.
  7181. * grub-core/kern/ieee1275/init.c (grub_machine_fini): Don't call
  7182. grub_grubnet_fini.
  7183. * grub-core/net/ethernet.c (send_ethernet_packet): Open card if it isn't
  7184. already.
  7185. * grub-core/net/net.c (grub_net_network_level_interface_register):
  7186. Update num_ifaces.
  7187. (grub_net_card_unregister): Close all interfaces.
  7188. (receive_packets): Don't poll if no iterfaces are registered.
  7189. Open if necessary.
  7190. (grub_net_fini_hw): New function.
  7191. (grub_net_restore_hw): Likewise.
  7192. (fini_hnd): New variable.
  7193. (GRUB_MOD_INIT): Register preboot hook.
  7194. (GRUB_MOD_FINI): Run and unregister preboot hook.
  7195. Poll network cards when idle.
  7196. * grub-core/kern/term.c (grub_net_poll_cards_idle): New variable.
  7197. (grub_checkkey): Call grub_net_poll_cards_idle if it's not NULL.
  7198. * grub-core/net/net.c (receive_packets): Save last poll time.
  7199. (grub_net_poll_cards_idle_real): New function.
  7200. (GRUB_MOD_INIT): Register grub_net_poll_cards_idle.
  7201. (GRUB_MOD_FINI): Unregister grub_net_poll_cards_idle.
  7202. * include/grub/kernel.h (grub_poll_cards_idle): New extern variable.
  7203. Rename ofnet interfaces.
  7204. * grub-core/net/drivers/ieee1275/ofnet.c (find_alias): New function.
  7205. (grub_ofnet_findcards): Use ofnet_%s names.
  7206. * util/grub-mknetdir.in: Support for EFI and IEEE1275.
  7207. Cleanup socket opening.
  7208. * grub-core/net/net.c (grub_net_fs_open): Rewritten.
  7209. (grub_net_fs_close): Likewise.
  7210. (grub_net_fs_read_real): Use eof member.
  7211. * include/grub/net/udp.h (+grub_net_udp_open): New proto.
  7212. (+grub_net_udp_close): New inline function.
  7213. * include/grub/net/tftp.h: Moved to the top of ...
  7214. * grub-core/net/tftp.c: ... here.
  7215. * include/grub/net/ip.h: Moved mostly to the top of ...
  7216. * grub-core/net/ip.c: ... here.
  7217. * include/grub/net/ethernet.h: Moved mostly to the top of ...
  7218. * grub-core/net/ethernet.c: ... here.
  7219. * grub-core/kern/device.c (grub_device_close): Free device->net->server.
  7220. * grub-core/commands/probe.c (grub_cmd_probe): Use protocol name for
  7221. FS name.
  7222. * include/grub/net/ip.h (ipv4_ini): Removed.
  7223. (ipv4_fini): Likewise.
  7224. * include/grub/net/ip.h (grub_net_recv_ip_packets): New proto.
  7225. (grub_net_send_ip_packets): Likewise.
  7226. 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
  7227. * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init): Use new
  7228. grub_read_cmos prototype.
  7229. 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
  7230. VGA text support in qemu-mips
  7231. * grub-core/Makefile.core.def (kernel): Add term/i386/pc/vga_text.c,
  7232. term/i386/vga_common.c and kern/vga_init.c on qemu-mips.
  7233. * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init vga
  7234. text.
  7235. * grub-core/kern/i386/qemu/init.c: Renamed to ...
  7236. * grub-core/kern/vga_init.c: ... this.
  7237. * grub-core/kern/vga_init.c (VGA_ADDR) [__mips__]: Adjust.
  7238. (grub_qemu_init_cirrus) [__mips__]: Skip PCI and adjust the I/O base.
  7239. * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN) [__mips__]:
  7240. Adjust.
  7241. * include/grub/vga.h [GRUB_MACHINE_MIPS_QEMU_MIPS]: Declare
  7242. GRUB_MACHINE_PCI_IO_BASE.
  7243. 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
  7244. MIPS qemu flash support.
  7245. * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]: Check
  7246. magic.
  7247. * grub-core/kern/mips/qemu_mips/init.c (probe_mem): New function.
  7248. (grub_machine_init): Probe memory if its size isn't known.
  7249. * util/grub-mkimage.c (image_targets): Add flash targets.
  7250. (generate_image): Handle flash targets.
  7251. 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
  7252. MIPS qemu at_keyboard support.
  7253. * gentpl.py (videoinkernel): Add qemu-mips.
  7254. * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add necessary headers.
  7255. * grub-core/Makefile.core.def (kernel): Add at_keyboard and layout.
  7256. * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init new
  7257. modules.
  7258. * grub-core/term/at_keyboard.c (grub_keyboard_controller_init)
  7259. [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't consider original set.
  7260. * grub-core/term/serial.c (grub_serial_register)
  7261. [GRUB_MACHINE_MIPS_QEMU_MIPS]: Make com0 explicitly active.
  7262. 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
  7263. CMOS support on sparc.
  7264. * gentpl.py (cmos): Add powerpc and sparc.
  7265. * grub-core/Makefile.core.def (datetime): Add lib/ieee1275/cmos.c on
  7266. powerpc and sparc.
  7267. * grub-core/lib/cmos_datetime.c (grub_get_datetime)
  7268. [__powerpc__ || __sparc__]: Rename to grub_get_datetime_cmos.
  7269. (grub_set_datetime) [__powerpc__ || __sparc__]: Likewise to
  7270. grub_set_datetime_cmos.
  7271. * grub-core/lib/ieee1275/cmos.c: New file.
  7272. * grub-core/lib/ieee1275/datetime.c (no_ieee1275_rtc): New vaiable.
  7273. (find_rtc): Set no_ieee1275_rtc on error.
  7274. (grub_get_datetime): Call grub_get_datetime_cmos on error.
  7275. (grub_set_datetime): Call grub_set_datetime_cmos on error.
  7276. * include/grub/cmos.h (grub_cmos_read): Return grub_err_t since it may
  7277. fail. Move value to argument. All users updated
  7278. (grub_cmos_write): Likewise.
  7279. (grub_cmos_read) [__powerpc__ || __sparc__]: Rewritten.
  7280. (grub_cmos_write) [__powerpc__ || __sparc__]: Likewise.
  7281. * include/grub/datetime.h [__powerpc__ || __sparc__]: Declare
  7282. grub_get_datetime_cmos and grub_set_datetime_cmos.
  7283. 2011-07-02 Grégoire Sutre <gregoire.sutre@gmail.com>
  7284. * util/grub-mkconfig.in: Use @PACKAGE@ instead of hardcoded name when
  7285. sourcing grub-mkconfig_lib.
  7286. * util/update-grub_lib.in: Likewise.
  7287. * util/grub.d/00_header.in: Likewise.
  7288. * util/grub.d/10_hurd.in: Likewise.
  7289. * util/grub.d/10_kfreebsd.in: Likewise.
  7290. * util/grub.d/10_linux.in: Likewise.
  7291. * util/grub.d/10_netbsd.in: Likewise.
  7292. * util/grub.d/10_windows.in: Likewise.
  7293. * util/grub.d/20_linux_xen.in: Likewise.
  7294. * util/grub.d/30_os-prober.in: Likewise.
  7295. 2011-06-28 Colin Watson <cjwatson@ubuntu.com>
  7296. * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
  7297. default_bg_color rather than black.
  7298. (grub_gfxterm_fullscreen): Likewise.
  7299. (grub_gfxterm_background_color_cmd): Save new background color in
  7300. default_bg_color.
  7301. 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
  7302. * grub-core/Makefile.core.def (chain): Fix coreboot filename.
  7303. 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
  7304. * grub-core/disk/pata.c (grub_pata_initialize) [QEMU_MIPS]: Fix a
  7305. mismerge.
  7306. 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
  7307. Chainloading on coreboot support.
  7308. * grub-core/Makefile.core.def (chain): Add coreboot.
  7309. * grub-core/loader/i386/coreboot/chainloader.c: New file.
  7310. 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
  7311. * grub-core/loader/i386/bsd.c (grub_bsd_load): Handle relocator failure
  7312. if it happens.
  7313. 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
  7314. Implement time command.
  7315. * grub-core/Makefile.core.def (time): New module.
  7316. * grub-core/commands/time.c: New file.
  7317. * grub-core/script/parser.y: Remove "time" keyword.
  7318. * grub-core/script/yylex.l: Likewise.
  7319. 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
  7320. * include/grub/loader.h (grub_loader_unregister_preboot_hook): Export.
  7321. 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
  7322. * grub-core/lib/relocator.c (malloc_in_range): Fix a memory corruption
  7323. when handling leftovers.
  7324. 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
  7325. * util/ieee1275/grub-ofpathname.c (main): Handle --help and --version
  7326. so that help2man doesn't fail.
  7327. 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
  7328. * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer) Use right
  7329. type in pointers on sparc64.
  7330. (get_card_packet): Likewise.
  7331. 2011-06-27 Colin Watson <cjwatson@ubuntu.com>
  7332. * grub-core/commands/videoinfo.c (hook): Indicate current video mode
  7333. with `*'.
  7334. (grub_cmd_videoinfo): Fetch current video mode.
  7335. 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
  7336. * grub-core/disk/scsi.c (grub_scsi_read): Limit SCSI reads to 32K
  7337. because of underlying system restrictions.
  7338. 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
  7339. * util/grub-mkrescue.in: Rename "ata" to "pata" and add ahci when
  7340. necessary.
  7341. 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
  7342. Coreboot video support.
  7343. * grub-core/Makefile.core.def (vga): Extend to coreboot and multiboot.
  7344. (vbe): Likewise.
  7345. * grub-core/kern/i386/coreboot/startup.S: Include int.S.
  7346. * grub-core/kern/i386/pc/startup.S (grub_bios_interrupt): Moved from
  7347. here ...
  7348. * grub-core/kern/i386/int.S: ... here.
  7349. * grub-core/video/i386/pc/vbe.c: Updated includes.
  7350. * grub-core/video/i386/pc/vga.c: Likewise.
  7351. * include/grub/i386/coreboot/memory.h
  7352. (GRUB_MEMORY_MACHINE_SCRATCH_ADDR): New definition.
  7353. (GRUB_MEMORY_MACHINE_SCRATCH_SEG): Likewise.
  7354. (GRUB_MEMORY_MACHINE_SCRATCH_SIZE): Likewise.
  7355. * include/grub/i386/pc/int.h (GRUB_CPU_INT_FLAGS_DEFAULT) [!PCBIOS]:
  7356. Disable interrupts.
  7357. * include/grub/i386/pc/vga.h: Removed. All users updated.
  7358. 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
  7359. * grub-core/disk/ahci.c (grub_ahci_readwrite_real): Use proper
  7360. definitions for dprintf.
  7361. * grub-core/disk/pata.c (grub_pata_readwrite): Likewise.
  7362. 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
  7363. * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer): Fix
  7364. prototype.
  7365. (get_card_packet): Likewise.
  7366. 2011-06-26 Yves Blusseau <blusseau@zetam.org>
  7367. Display the path of the file when file is not found
  7368. * grub-core/fs/fat.c: Display the filename when file is not found.
  7369. * grub-core/fs/fshelp.c: Likewise.
  7370. * grub-core/fs/hfs.c: Likewise.
  7371. * grub-core/fs/jfs.c: Likewise.
  7372. * grub-core/fs/minix.c: Likewise.
  7373. * grub-core/fs/ufs.c: Likewise.
  7374. * grub-core/fs/btrfs.c: Likewise.
  7375. * grub-core/commands/i386/pc/play.c: Likewise.
  7376. 2011-06-26 Szymon Janc <szymon@janc.net.pl>
  7377. * grub-core/commands/cmp.c (grub_cmd_cmp): Remove unnecessary NULL
  7378. pointer checks before calling grub_free().
  7379. * grub-core/commands/wildcard.c (match_devices): Likewise.
  7380. * grub-core/commands/wildcard.c (match_files): Likewise.
  7381. * grub-core/fs/cpio.c (grub_cpio_dir): Likewise.
  7382. * grub-core/fs/cpio.c (grub_cpio_open): Likewise.
  7383. * grub-core/fs/udf.c (grub_udf_read_block): Likewise.
  7384. * grub-core/fs/xfs.c (grub_xfs_read_block): Likewise.
  7385. * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Likewise.
  7386. * grub-core/normal/cmdline.c (grub_cmdline_get): Likewise.
  7387. * grub-core/script/yylex.l (grub_lexer_unput): Likewise.
  7388. * grub-core/video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
  7389. * grub-core/video/readers/png.c (grub_png_output_byte): Likewise.
  7390. 2011-06-25 Patrick <p55@mailinator.com>
  7391. * grub-core/kern/main.c (grub_load_normal_mode): Correct the comment.
  7392. 2011-06-25 Vladimir Serbinenko <phcoder@gmail.com>
  7393. * grub-core/net/i386/pc/pxe.c (grub_pxe_recv): Fix declaration.
  7394. (grub_pxe_send): Likewise.
  7395. (GRUB_MOD_INIT): Fix types.
  7396. 2011-06-24 Szymon Janc <szymon@janc.net.pl>
  7397. * grub-core/io/xzio.c: Fix code style issues
  7398. 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
  7399. 2011-06-24 Manoel Rebelo Abranches <mrabran@gmail.com>
  7400. Network infrastructure.
  7401. The ARP protocol was made by Paulo Pinatti <ppinatti@br.ibm.com>
  7402. * include/grub/net/arp.h: New file.
  7403. * include/grub/net/device.h: Likewise.
  7404. * include/grub/net/ethernet.h: Likewise.
  7405. * include/grub/net/ip.h: Likewise.
  7406. * include/grub/net/netbuff.h: Likewise.
  7407. * include/grub/net/tftp.h: Likewise.
  7408. * include/grub/net/udp.h: Likewise.
  7409. * include/grub/ieee1275/ofnet.h: Likewise.
  7410. * include/grub/emu/export.h: Likewise.
  7411. * include/grub/net.h: Likewise.
  7412. * grub-core/net/arp.c: Likewise.
  7413. * grub-core/net/ethernet.c: Likewise.
  7414. * grub-core/net/ip.c: Likewise.
  7415. * grub-core/net/udp.c: Likewise.
  7416. * grub-core/net/tftp.c: Likewise.
  7417. * grub-core/net/netbuff.c: Likewise.
  7418. * grub-core/net/net.c: Likewise.
  7419. * grub-core/net/drivers/emu/emunet.c: Likewise.
  7420. * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
  7421. * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add net.h, ofnet.h and
  7422. export.h.
  7423. * grub-core/Makefile.core.def (net): New module.
  7424. (tftp): Likewise.
  7425. (ofnet): Likewise.
  7426. (emunet): Likewise.
  7427. * grub-core/commands/ls.c (grub_ls_list_devices) [!GRUB_UTIL]: List
  7428. network protocols.
  7429. * grub-core/kern/device.c (grub_net_open) : New variable.
  7430. (grub_device_open): Handle network device.
  7431. (grub_device_close): Likewise.
  7432. * grub-core/kern/file.c (grub_file_net_seek) : New variable.
  7433. (grub_grubnet_fini): Likewise.
  7434. (grub_file_seek): Seek in network device.
  7435. * grub-core/kern/fs.c (grub_fs_probe): Handle network devices.
  7436. * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix): Handle
  7437. network root.
  7438. (grub_machine_fini): Call grub_grubnet_fini.
  7439. * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Handle
  7440. network.
  7441. (grub_ieee1275_get_aliasdevname): New function.
  7442. * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
  7443. Add unofficial Solaris network info.
  7444. (grub_multiboot_make_mbi): Likewise.
  7445. * grub-core/fs/i386/pc/pxe.c: Moved from here ...
  7446. * grub-core/net/i386/pc/pxe.c: ...here. Adapted for new design.
  7447. * include/grub/device.h (grub_fs): Removed.
  7448. * include/grub/err.h (grub_err_t): Add network-related values.
  7449. * include/grub/i386/pc/pxe.h: Removed bootp parts.
  7450. * include/grub/ieee1275/ieee1275.h (grub_ofnetcard_data): New struct.
  7451. (grub_ieee1275_get_aliasdevname): New proto.
  7452. * include/grub/net.h: Rewritten.
  7453. 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
  7454. * grub-core/disk/raid.c (insert_array): Ensure uniqueness of readable
  7455. names.
  7456. 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
  7457. * grub-core/commands/wildcard.c (match_files): Add a useful dprintf.
  7458. (wildcard_expand): Don't stop on nonregexp parts after regexp ones since
  7459. it truncates the output.
  7460. Reported by: Ximin Luo.
  7461. 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
  7462. * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Skip . and ..
  7463. 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
  7464. * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
  7465. partmap before abstraction.
  7466. 2011-06-24 Alexander Kurtz <kurtz.alex@googlemail.com>
  7467. * util/grub-mkconfig_lib.in: Add missing quotes.
  7468. 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
  7469. * grub-core/kern/emu/getroot.c (grub_guess_root_device): Revert to
  7470. old method if mountinfo would return /dev/root and /dev/root doesn't
  7471. exist.
  7472. 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
  7473. ZFS zlib support
  7474. * grub-core/fs/zfs/zfs.c (zlib_decompress): New function.
  7475. (decomp_table): Add zlib entries.
  7476. (zio_read): USe 8 bits for compression function rather than 3.
  7477. * include/grub/zfs/zio.h (zio_compress): Add zlib values.
  7478. 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
  7479. * grub-core/disk/ahci.c: Add missing license statements.
  7480. * grub-core/fs/romfs.c: Likewise.
  7481. * grub-core/lib/ia64/setjmp.S: Likewise.
  7482. * grub-core/loader/i386/pc/freedos.c: Likewise.
  7483. * grub-core/loader/ia64/efi/linux.c: Likewise.
  7484. * grub-core/video/colors.c: Likewise.
  7485. * include/grub/dl.h (GRUB_MOD_DEP): New macro.
  7486. 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
  7487. AHCI support.
  7488. * grub-core/Makefile.core.def (ata_pthru): Removed.
  7489. (ahci): New module.
  7490. (pata): Likewise.
  7491. * grub-core/bus/usb/ohci.c (GRUB_MOD_FINI): Unregister preboot hook
  7492. on unload.
  7493. * grub-core/commands/hdparm.c (grub_hdparm_do_ata_cmd): Use ATA
  7494. readwrite.
  7495. (grub_hdparm_do_check_powermode_cmd): Likewise.
  7496. (grub_hdparm_do_smart_cmd): Likewise.
  7497. (grub_hdparm_set_val_cmd): Likewise.
  7498. (grub_cmd_hdparm): Likewise. Check thta we have an ATA device.
  7499. * grub-core/disk/ahci.c: New file.
  7500. * grub-core/disk/ata.c: Factor out the low-level part into ...
  7501. * grub-core/disk/pata.c: ... here.
  7502. * grub-core/disk/ata_pthru.c: Contents moved to ...
  7503. * grub-core/disk/pata.c: ... here.
  7504. * grub-core/disk/scsi.c (grub_scsi_names): New array.
  7505. (grub_scsi_iterate): Use grub_scsi_names.
  7506. (grub_scsi_open): Likewise.
  7507. * grub-core/kern/disk.c (grub_disk_ata_pass_through): Removed.
  7508. * include/grub/ata.h (grub_ata_commands): Add DMA commands.
  7509. (grub_ata_regs_t): New struct.
  7510. (grub_disk_ata_pass_through_parms): Likewise.
  7511. (grub_ata_device): Renamed to ...
  7512. (grub_ata): ... this.
  7513. (grub_ata_dev): New struct.
  7514. Removed all low-level inline functions.
  7515. * include/grub/scsi.h: Add PATA and AHCI subsystems.
  7516. (grub_scsi_dev): Removed 'name' and 'id'. Added 'id' parameter to
  7517. iterate hooks and open. All users updated.
  7518. * util/grub-install.in: Handle AHCI disk module.
  7519. 2011-06-23 Szymon Janc <szymon@janc.net.pl>
  7520. Add support for DRI and RSTn markers in JPEG files.
  7521. * grub-core/video/readers/jpeg.c (JPEG_MARKER_DRI): New define.
  7522. (JPEG_MARKER_RST0): Likewise.
  7523. (JPEG_MARKER_RST1): Likewise.
  7524. (JPEG_MARKER_RST2): Likewise.
  7525. (JPEG_MARKER_RST3): Likewise.
  7526. (JPEG_MARKER_RST4): Likewise.
  7527. (JPEG_MARKER_RST5): Likewise.
  7528. (JPEG_MARKER_RST6): Likewise.
  7529. (JPEG_MARKER_RST7): Likewise.
  7530. (grub_jpeg_data): New fields dri, r1, bitmap_ptr.
  7531. (grub_jpeg_decode_dri): New function.
  7532. (grub_jpeg_decode_sos): Move image data related part into
  7533. grub_jpeg_decode_data function.
  7534. (grub_jpeg_decode_data): New function.
  7535. (grub_jpeg_reset): New function.
  7536. (grub_jpeg_decode_jpeg): Handle new markers.
  7537. 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
  7538. * util/ieee1275/ofpath.c (check_sas): Close fd.
  7539. (main): Free of_path.
  7540. Reported by: David Volgyes <dvolgyes>.
  7541. 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
  7542. * util/grub-mkpasswd-pbkdf2.c (main): Don't double-close.
  7543. Reported by: David Volgyes <dvolgyes>.
  7544. 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
  7545. * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Close
  7546. file after stat.
  7547. Reported by: David Volgyes <dvolgyes>.
  7548. 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
  7549. * util/raid.c (grub_util_raid_getmembers): Close fd before returning.
  7550. Reported by: David Volgyes <dvolgyes>.
  7551. 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
  7552. * grub-core/lib/reed_solomon.c (rs_recover) [STANDALONE]:
  7553. Prevent memory leak.
  7554. 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
  7555. * grub-core/lib/reed_solomon.c (rs_recover): Prevent memory leak.
  7556. (main): Close file.
  7557. Reported by: David Volgyes <dvolgyes>.
  7558. 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
  7559. * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devprop): Don't attempt
  7560. to continue if allocation is failed.
  7561. Reported by: David Volgyes <dvolgyes>.
  7562. 2011-06-23 David Volgyes <dvolgyes>
  7563. * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Avoid NULL-pointer
  7564. dereference.
  7565. 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
  7566. Fix spurious warning.
  7567. * grub-core/partmap/acorn.c (grub_acorn_boot_block): Make a union.
  7568. (acorn_partition_map_find): Use .bin member.
  7569. 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
  7570. * grub-core/kern/emu/getroot.c (grub_guess_root_device): Don't accept
  7571. /dev/root as a valid device.
  7572. 2011-06-23 Jim Meyering <meyering@redhat.com>
  7573. Avoid NULL deref in grub_device_open.
  7574. * grub-core/kern/device.c (grub_device_open): Don't dereference
  7575. a NULL pointer upon failed grub_env_get.
  7576. 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
  7577. Support non-512B sectors and agglomerate reads.
  7578. * Makefile.util.def (libgrubmods.a): Add grub-core/commands/testload.c.
  7579. * grub-core/disk/efi/efidisk.c (grub_efidisk_data): Remove disk_io.
  7580. (disk_io_guid): Removed.
  7581. (make_devices): Locate solely by BlockIO.
  7582. (grub_efidisk_open): Fill log_sector_size and total_sectors.
  7583. (grub_efidisk_read): Use read_blocks.
  7584. (grub_efidisk_write): Use write_blocks.
  7585. * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Fill
  7586. log_sector_size.
  7587. (get_safe_sectors): Handle non-512B sectors.
  7588. (grub_biosdisk_read): Remove special CDROM handling. Handle non-512B
  7589. sectors.
  7590. (grub_biosdisk_write): Handle non-512B sectors.
  7591. * grub-core/disk/scsi.c (grub_scsi_open): Fill log_sector_size.
  7592. (grub_scsi_read): Remove special non-512B block handling (now handled
  7593. one level up).
  7594. * grub-core/kern/disk.c (grub_disk_open): Fill default log_sector_size
  7595. and do sanity checks.
  7596. (grub_disk_adjust_range): Handle non-512B sectors.
  7597. (transform_sector): New function.
  7598. (grub_disk_read_small): Likewise.
  7599. (grub_disk_read): Rewritten.
  7600. (grub_disk_write): Handle non-512B sectors.
  7601. * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Fill
  7602. log_sector_size.
  7603. (open_device): Use log_sector_size.
  7604. (grub_util_biosdisk_read): Likewise.
  7605. (grub_util_biosdisk_write): Likewise.
  7606. * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Handle
  7607. non-512B sectors.
  7608. (pc_partition_map_embed): Likewise.
  7609. * include/grub/disk.h (grub_disk): New field log_sector_size.
  7610. (GRUB_DISK_CACHE_SIZE): Redefined from GRUB_DISK_CACHE_BITS.
  7611. (GRUB_DISK_CACHE_BITS): Increased to 6.
  7612. * util/grub-fstest.c (fstest): New command testload.
  7613. (argp_parser): Likewise.
  7614. 2011-06-16 Robert Millan <rmh@gnu.org>
  7615. Detect `ataraid' devices on GNU/kFreeBSD. Fix for ATA devices using
  7616. `ata' driver on kernel of FreeBSD 9.
  7617. * util/deviceiter.c [__FreeBSD_kernel__] (get_ada_disk_name)
  7618. (get_ataraid_disk_name): New functions.
  7619. [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for ataraid
  7620. (/dev/ar[0-9]+) and ada (/dev/ada[0-9]+) devices using
  7621. get_ataraid_disk_name() and get_ada_disk_name().
  7622. 2011-06-13 Colin Watson <cjwatson@ubuntu.com>
  7623. * docs/man/grub-mklayout.h2m (DESCRIPTION): Add a reference to the
  7624. input format.
  7625. 2011-05-29 Colin Watson <cjwatson@ubuntu.com>
  7626. * docs/grub.texi (Obtaining and Building GRUB): Substitute
  7627. `ftp.gnu.org' for `alpha.gnu.org'.
  7628. 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
  7629. * grub-core/kern/emu/hostdisk.c (linux_find_partition): Handle
  7630. partitions under /dev/disk/by-id/.
  7631. 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
  7632. * grub-core/kern/emu/hostdisk.c (linux_find_partition): Give up
  7633. after ten consecutive open failures. Scanning all the way up to
  7634. 10000 is excessive and can cause serious performance problems in
  7635. some configurations.
  7636. Fixes Ubuntu bug #787461.
  7637. 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
  7638. * grub-core/disk/arc/arcdisk.c (reopen): Close old handle before
  7639. opening new one.
  7640. 2011-05-21 Colin Watson <cjwatson@ubuntu.com>
  7641. 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
  7642. Don't stat devices unless we have to.
  7643. * grub-core/kern/emu/getroot.c (grub_find_device): Recognize
  7644. dir == /dev/mapper.
  7645. (grub_guess_root_device): Use already known os_dev if possible.
  7646. * grub-core/kern/emu/hostdisk.c
  7647. (convert_system_partition_to_system_disk): Scan only in /dev/mapper
  7648. if device is known to be a dm one.
  7649. 2011-05-20 Colin Watson <cjwatson@ubuntu.com>
  7650. * util/grub-mkconfig.in: Export GRUB_CMDLINE_LINUX_XEN_REPLACE and
  7651. GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT.
  7652. Reported by: Pawel Tecza.
  7653. 2011-05-19 Vladimir Serbinenko <phcoder@gmail.com>
  7654. * grub-core/Makefile.core.def (lsacpi): Fix ia64 mismerge.
  7655. (lsefisystab): Likewise.
  7656. (lssal): Likewise.
  7657. (lsefimmap): Likewise.
  7658. (hdparm): Enable on qemu-mips.
  7659. (setjmp): Add ia64 nodist.
  7660. (serial): Simplify tags.
  7661. 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
  7662. * Makefile.util.def (grub-ofpathname): Install manual page.
  7663. 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
  7664. * grub-core/fs/squash4.c: Add missing GRUB_MOD_LICENSE.
  7665. 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
  7666. * .bzrignore: Add grub-core/modinfo.sh and a number of test files.
  7667. 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
  7668. * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Downgrade a printf
  7669. into dprintf.
  7670. 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
  7671. Use full 64-bit division.
  7672. * grub-core/kern/misc.c (grub_divmod64_full): Renamed to ...
  7673. (grub_divmod64): ... this.
  7674. * include/grub/misc.h (grub_divmod64): Removed. All users switch to full
  7675. version.
  7676. 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
  7677. * util/grub-mkrescue.in: Use portable `.' rather than non-portable
  7678. `source'.
  7679. 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
  7680. * grub-core/genmod.sh.in: Use 'set -e' rather than '#! /bin/sh -e',
  7681. to avoid accidents when debugging with 'sh -x'.
  7682. * grub-core/gensyminfo.sh.in: Likewise.
  7683. * tests/example_scripted_test.in: Likewise.
  7684. * tests/grub_cmd_regexp.in: Likewise.
  7685. * tests/grub_script_blanklines.in: Likewise.
  7686. * tests/grub_script_dollar.in: Likewise.
  7687. * tests/grub_script_expansion.in: Likewise.
  7688. * tests/grub_script_final_semicolon.in: Likewise.
  7689. * tests/partmap_test.in: Likewise.
  7690. * tests/util/grub-shell-tester.in: Likewise.
  7691. * tests/util/grub-shell.in: Likewise.
  7692. 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
  7693. Move gfxmenu color handling to video, so that gfxterm can use it
  7694. too.
  7695. * grub-core/gfxmenu/named_colors.c: Move to ...
  7696. * grub-core/video/colors.c: ... here. Rename
  7697. grub_gui_get_named_color to grub_video_get_named_color.
  7698. * grub-core/gfxmenu/gui_string_util.c (my_isxdigit): Move to ...
  7699. * grub-core/video/colors.c (my_isxdigit): ... here.
  7700. * grub-core/gfxmenu/gui_string_util.c (parse_hex_color_component):
  7701. Move to ...
  7702. * grub-core/video/colors.c (parse_hex_color_component): ... here.
  7703. * grub-core/gfxmenu/gui_string_util.c (grub_gui_parse_color): Move
  7704. to ...
  7705. * grub-core/video/colors.c (grub_video_parse_color): ... here.
  7706. * include/grub/gui.h (grub_gui_color_t): Move to ...
  7707. * include/grub/video.h (grub_video_rgba_color_t): ... here.
  7708. * include/grub/gui.h (grub_gui_color_rgb): Move to ...
  7709. * include/grub/video.h (grub_video_rgba_color_rgb): ... here.
  7710. * include/grub/gui.h (grub_gui_map_color): Move to ...
  7711. * include/grub/video.h (grub_video_map_rgba_color): ... here.
  7712. * include/grub/gui_string_util.h (grub_gui_get_named_color): Move
  7713. to ...
  7714. * include/grub/video.h (grub_video_get_named_color): ... here.
  7715. * include/grub/gui_string_util.h (grub_gui_parse_color): Move to ...
  7716. * include/grub/video.h (grub_video_parse_color): ... here.
  7717. * grub-core/Makefile.core.def (kernel) [videoinkernel]: Add
  7718. video/colors.c.
  7719. (gfxmenu): Remove gfxmenu/named_colors.c.
  7720. (video) [videomodules]: Add video/colors.c.
  7721. Add a background_color command.
  7722. * grub-core/term/gfxterm.c (grub_gfxterm_background_color_cmd): New
  7723. function.
  7724. (GRUB_MOD_INIT): Register background_color command.
  7725. (GRUB_MOD_FINI): Unregister background_color command.
  7726. (redraw_screen_rect): Allow blend/replace of text layer to be
  7727. controlled independently from whether there is a background bitmap.
  7728. (grub_gfxterm_background_image_cmd): Change blend_text_bg when
  7729. changing bitmap.
  7730. 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
  7731. Patch BPB in ntldr and chainloader --bpb.
  7732. * grub-core/fs/fat.c: Include grub/fat.h.
  7733. (grub_fat_bpb): Moved to ...
  7734. * include/grub/fat.h (grub_fat_bpb): ... here. New file.
  7735. * grub-core/loader/i386/pc/chainloader.c: Include grub/fat.h and
  7736. grub/ntfs.h.
  7737. * include/grub/i386/pc/chainloader.h (grub_chainloader_flags_t):
  7738. Moved from here...
  7739. * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_flags_t): ...
  7740. here.
  7741. * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_patch_bpb):
  7742. New function.
  7743. (grub_chainloader_cmd): Patch BPB if --bpb is given.
  7744. (GRUB_MOD_INIT): Show --bpb.
  7745. * grub-core/loader/i386/pc/ntldr.c (grub_cmd_ntldr): Patch BPB.
  7746. * grub-core/normal/main.c (features): New variable.
  7747. (GRUB_MOD_INIT): Set feature_* variables.
  7748. * include/grub/i386/pc/chainloader.h (grub_chainloader_patch_bpb): New
  7749. proto.
  7750. * include/grub/ntfs.h (grub_ntfs_bpb): New field bios_drive.
  7751. 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
  7752. * grub-core/Makefile.core.def (ieee1275_fb): Use enable=powerpc_ieee1275
  7753. for cleanness.
  7754. 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
  7755. FreeDOS direct loading support.
  7756. * docs/grub.texi (Supported OS): Add FreeDOS.
  7757. * grub-core/Makefile.core.def (freedos): New module.
  7758. * grub-core/lib/i386/relocator.c (grub_relocator16_ebx): New extern
  7759. variable.
  7760. (grub_relocator16_boot): Handle %ebx.
  7761. * grub-core/lib/i386/relocator16.S: Likewise.
  7762. * grub-core/loader/i386/pc/freedos.c: New file.
  7763. 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
  7764. Long Linux command line support.
  7765. * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
  7766. (maximal_cmdline_size): New variable.
  7767. (allocate_pages): Use maximal_cmdline_size.
  7768. (grub_cmd_linux): Set and use maximal_cmdline_size.
  7769. * grub-core/loader/i386/pc/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
  7770. (allocate_pages): Use maximal_cmdline_size.
  7771. (grub_cmd_linux): Set and use maximal_cmdline_size.
  7772. * include/grub/i386/linux.h (GRUB_LINUX_SETUP_MOVE_SIZE): Removed.
  7773. (linux_kernel_header): Add fields kernel_alignment, relocatable, pad
  7774. and cmdline_size.
  7775. 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
  7776. 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
  7777. Improve devmapper support
  7778. * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Removed.
  7779. (grub_util_is_lvm): New function.
  7780. (grub_util_get_dev_abstraction): Assume dmraid if not lvm rather
  7781. than lvm if not dmraid.
  7782. Handle mapped md nodes.
  7783. * grub-core/kern/emu/hostdisk.c (device_is_mapped): Rename to ...
  7784. (grub_util_device_is_mapped): ... this. Make always available. All users
  7785. updated.
  7786. (grub_util_get_dm_node_linear_info) [HAVE_DEVICE_MAPPER]: New function.
  7787. (convert_system_partition_to_system_disk): Handle lvm, mpath and
  7788. dmraid nodes.
  7789. * include/grub/emu/misc.h (grub_util_device_is_mapped): New proto.
  7790. 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
  7791. Unify grub-mkrescue (except powerpc) and grrub-mknetdir across platforms
  7792. * grub-core/Makefile.am (platform_DATA): Add modinfo.sh.
  7793. * grub-core/modinfo.sh.in: New file.
  7794. * grub-core/Makefile.core.def (modinfo.sh): New script.
  7795. * util/grub-mknetdir.in: Use modinfo.sh.
  7796. * util/grub-mkrescue.in: Likewise.
  7797. 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
  7798. * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
  7799. Fix potential usage of Elf32 instead of Elf64 when compiling on
  7800. 32-bit architecture. Add endianness macros while on it.
  7801. 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
  7802. Use mipsel- rather than mips- in directories involving mipsel ports to
  7803. allow both endiannesses coexist.
  7804. * configure.ac: proparate target_cpu=mipsel rather than resetting to
  7805. mips. All conditions adjusted.
  7806. * tests/util/grub-shell-tester.in: Remove gratuitious target_cpu
  7807. variable.
  7808. * util/grub-install.in: Adjust conditions to take renaming into account.
  7809. * util/grub-mkimage.c (image_targets): Likewise. New target
  7810. mips-qemu_mips-elf for bigendian mips.
  7811. 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
  7812. Avoid unnecessary copying on MIPS.
  7813. * grub-core/boot/decompressor/none.c (grub_decompress_core): Exit
  7814. early if src == dest.
  7815. * util/grub-mkimage.c (generate_image): Arange for src == dest if
  7816. compression is none.
  7817. 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
  7818. Reduce memory footprint on SGI by putting modules before the kernel
  7819. as opposed to after.
  7820. * grub-core/Makefile.core.def (kernel): Increase linking address.
  7821. (none_decompress): Likewise.
  7822. (xz_decompress): Likewise.
  7823. * grub-core/boot/mips/startup_raw.S: Use prewritten uncompression
  7824. address.
  7825. * grub-core/kern/mips/arc/init.c (grub_machine_init): Handle memory
  7826. layout change.
  7827. (grub_arch_modules_addr): New function.
  7828. * grub-core/kern/mips/init.c (grub_arch_modules_addr): Moved from here...
  7829. * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): .. here
  7830. * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr): ... and
  7831. here.
  7832. * grub-core/kern/mips/startup.S (total_size): Rename to ...
  7833. (grub_total_modules_size): ... this. Make global.
  7834. [GRUB_MACHINE_ARC]: Don't attempt to move modules out of the bss.
  7835. * include/grub/offsets.h (GRUB_KERNEL_MIPS_LOONGSON_UNCOMPRESSED_ADDR):
  7836. New definition.
  7837. (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_ADDR): Likewise.
  7838. (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_ADDR): Likewise.
  7839. (GRUB_KERNEL_MACHINE_UNCOMPRESSED_ADDR): Likewise.
  7840. (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): Increased.
  7841. * util/grub-mkimage.c (image_target_desc): New flag
  7842. PLATFORM_FLAGS_MODULES_BEFORE_KERNEL.
  7843. (image_targets): Set PLATFORM_FLAGS_MODULES_BEFORE_KERNEL on mips-arc.
  7844. (generate_image): Handle images with modules before kernel.
  7845. 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
  7846. Prevent potential loss of memory map by overwrite on qemu-mips.
  7847. * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]:
  7848. Save ram size in $s4.
  7849. * grub-core/kern/mips/qemu_mips/init.c (RAMSIZE): Removed.
  7850. All users changed to grub_arch_memsize.
  7851. * grub-core/kern/mips/startup.S (grub_arch_machine): Restrict to
  7852. Loongson.
  7853. [GRUB_MACHINE_MIPS_QEMU_MIPS]: Save grub_arch_memsize.
  7854. * grub-core/loader/mips/linux.c (grub_linux_boot): Pass memory size.
  7855. * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): New
  7856. external variable.
  7857. 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
  7858. * .bzrignore: Remove grub-dumpbios.
  7859. 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
  7860. * util/grub.d/20_linux_xen.in: Honour GRUB_CMDLINE_LINUX_XEN_REPLACE
  7861. and GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT, which replace
  7862. GRUB_CMDLINE_LINUX and GRUB_CMDLINE_LINUX_DEFAULT (complementing the
  7863. existing options which append).
  7864. * docs/grub.texi (Simple configuration): Document new options.
  7865. Reported by: Ian Jackson. Fixes Debian bug #617538.
  7866. 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
  7867. * util/grub-fstest.c (cmd_cat): New function.
  7868. (fstest): Handle CMD_CAT.
  7869. (options): Add cat.
  7870. (argp_parser): Handle cat.
  7871. 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
  7872. * Makefile.util.def (grub-bin2h): Don't install.
  7873. * docs/man/grub-bin2h.h2m: Remove.
  7874. 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
  7875. * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Move to the right
  7876. place.
  7877. 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
  7878. Reenable qemu-mips port.
  7879. * configure.ac: Handle --target=qemu-mips and --target=qemu_mips.
  7880. Fix small arc bug while on it.
  7881. * gentpl.py: Handle qemu_mips.
  7882. * grub-core/Makefile.am: Likewise.
  7883. * grub-core/Makefile.core.def: Likewise.
  7884. * grub-core/disk/ata.c [GRUB_MACHINE_MIPS_QEMU_MIPS]: Remove
  7885. inappropriate includes.
  7886. (grub_ata_pciinit) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Removed.
  7887. (grub_ata_initialize): [GRUB_MACHINE_MIPS_QEMU_MIPS]: Rewritten.
  7888. * grub-core/kern/main.c (grub_modules_get_end)
  7889. [GRUB_MACHINE_MIPS_QEMU_MIPS]: Enable.
  7890. * grub-core/kern/mips/qemu-mips: Moved to ..
  7891. * grub-core/kern/mips/qemu_mips: ... this.
  7892. * grub-core/kern/mips/qemu_mips/init.c (grub_get_rtc): Removed.
  7893. (grub_machine_init): Call terminfo_init and serial_init.
  7894. * grub-core/kern/mips/startup.S: Change MIPS_LOONGSON to MACHINE.
  7895. * grub-core/loader/mips/linux.c (params) [GRUB_MACHINE_MIPS_QEMU_MIPS]:
  7896. New variable.
  7897. (grub_linux_boot) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle the qemu-mips
  7898. parameter passing.
  7899. (grub_linux_unload) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Free params.
  7900. (grub_cmd_linux) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle params.
  7901. (grub_cmd_initrd) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
  7902. * include/grub/mips/qemu_mips/cmos.h: New file.
  7903. * include/grub/mips/qemu-mips/kernel.h: Don't include cpu/kernel.h.
  7904. * include/grub/mips/qemu-mips/memory.h (grub_machine_mmap_iterate):
  7905. Removed.
  7906. * include/grub/mips/qemu-mips/serial.h (GRUB_MACHINE_SERIAL_PORTS):
  7907. Use correct mips-style address.
  7908. * include/grub/mips/qemu-mips/time.h: Include cpu/time.h.
  7909. (GRUB_TICKS_PER_SECOND): Removed.
  7910. (grub_get_rtc): Likewise.
  7911. (grub_cpu_idle): Likewise.
  7912. * include/grub/offsets.h (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ADDR):
  7913. New definition.
  7914. (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ALIGN): Likewise.
  7915. (GRUB_KERNEL_MIPS_QEMU_MIPS_COMPRESSED_SIZE): Likewise.
  7916. (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_SIZE): Likewise.
  7917. (GRUB_KERNEL_MIPS_QEMU_MIPS_TOTAL_MODULE_SIZE): Likewise.
  7918. (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
  7919. (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
  7920. (GRUB_KERNEL_MIPS_QEMU_MIPS_MOD_ALIGN): Likewise.
  7921. * util/grub-mkimage.c (image_targets): Add mipsel-qemu_mips-elf.
  7922. 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
  7923. SGI ARCS port.
  7924. * Makefile.util.def (libgrubmods.a): Add dvh.c.
  7925. * conf/Makefile.common (CCASFLAGS_PLATFORM): Add -mips3 on all mips
  7926. platforms.
  7927. * configure.ac: New target mips-arc.
  7928. * gentpl.py: Likewise.
  7929. * grub-core/Makefile.am: Likewise.
  7930. * grub-core/Makefile.core.def: Likewise.
  7931. (xz_decompress): Remove -D GRUB_MACHINE_LINK_ADDR.
  7932. (none_decompress): Likewise.
  7933. (lsdev): New module.
  7934. (datetime): Use lib/arc/datetime.c on ARC.
  7935. (part_dvh): New module.
  7936. * grub-core/commands/arc/lsdev.c: New file.
  7937. * grub-core/disk/arc/arcdisk.c: Likewise.
  7938. * grub-core/kern/mips/arc/init.c: Likewise.
  7939. * grub-core/kern/mips/cache_flush.S: Don't flush non 4-byte
  7940. aligned addresses.
  7941. * grub-core/kern/mips/dl.c (grub_arch_dl_check_header): Fix bigendian
  7942. support.
  7943. (grub_arch_dl_relocate_symbols): Likewise.
  7944. * grub-core/kern/mips/loongson/init.c (grub_get_rtc): Moved from here...
  7945. * grub-core/kern/mips/init.c (grub_get_rtc): ... here.
  7946. * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Have on all
  7947. platforms.
  7948. * grub-core/lib/arc/datetime.c: New file.
  7949. * grub-core/loader/mips/linux.c: Always include time.h. Don't include
  7950. pci.h on non-loongson.
  7951. (envp_off) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove.
  7952. (grub_linux_boot): Set unused registers to 0.
  7953. (grub_cmd_linux) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove envp.
  7954. * grub-core/mmap/mips/loongson/uppermem.c: Moved from here ...
  7955. * grub-core/mmap/mips/uppermem.c: ...here.
  7956. * grub-core/partmap/dvh.c: New file.
  7957. * grub-core/term/arc/console.c: Likewise.
  7958. * grub-core/term/terminfo.c (ANSI_C0_STR): New const.
  7959. (grub_terminfo_set_current): Add terminal "arc".
  7960. (grub_terminfo_readkey): Support ARC sequences.
  7961. * include/grub/arc/arc.h: New file.
  7962. * include/grub/arc/console.h: Likewise.
  7963. * include/grub/disk.h (grub_disk_dev_id): Add
  7964. GRUB_DISK_DEVICE_ARCDISK_ID.
  7965. * include/grub/mips/arc/kernel.h: New file.
  7966. * include/grub/mips/arc/memory.h: Likewise.
  7967. * include/grub/mips/arc/time.h: Likewise.
  7968. * include/grub/mips/loongson/kernel.h (grub_halt): Moved from here ...
  7969. * include/grub/mips/kernel.h (grub_halt): ... here.
  7970. * include/grub/mips/loongson.h (GRUB_CPU_REGISTER_WRAP): Moved from
  7971. here...
  7972. * include/grub/mips/mips.h (GRUB_CPU_REGISTER_WRAP): ... here.
  7973. (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): Moved from here ...
  7974. * include/grub/mips/mips.h (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): .. here
  7975. * include/grub/mips/loongson/kernel.h (grub_reboot): Removed redundant
  7976. proto.
  7977. * include/grub/mips/loongson/memory.h (GRUB_ARCH_LOWMEMVSTART): Moved
  7978. from here ...
  7979. * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMVSTART): ... here.
  7980. (GRUB_ARCH_LOWMEMPSTART): Moved from here ...
  7981. * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMPSTART): ... here.
  7982. (GRUB_ARCH_LOWMEMMAXSIZE): Moved from here ...
  7983. * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMMAXSIZE): ... here.
  7984. (GRUB_ARCH_HIGHMEMPSTART): Moved from here ...
  7985. * include/grub/mips/memory.h (GRUB_ARCH_HIGHMEMPSTART): ... here.
  7986. (grub_phys_addr_t): Moved from here ...
  7987. * include/grub/mips/memory.h (grub_phys_addr_t): ... here.
  7988. (grub_vtop): Moved from here ...
  7989. * include/grub/mips/memory.h (grub_vtop): ... here.
  7990. (grub_map_memory): Moved from here ...
  7991. * include/grub/mips/memory.h (grub_map_memory): ... here.
  7992. (grub_unmap_memory): Moved from here ...
  7993. * include/grub/mips/memory.h (grub_unmap_memory): ... here.
  7994. (grub_machine_mmap_iterate): Moved from here ...
  7995. * include/grub/mips/memory.h (grub_machine_mmap_iterate): ... here.
  7996. (grub_mmap_get_lower): Moved from here ...
  7997. * include/grub/mips/memory.h (grub_mmap_get_lower): ... here.
  7998. (grub_mmap_get_upper): Moved from here ...
  7999. * include/grub/mips/memory.h (grub_mmap_get_upper): ... here.
  8000. * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
  8001. here ...
  8002. * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
  8003. * include/grub/mips/loongson/time.h (grub_get_rtc): Moved from
  8004. here ...
  8005. * include/grub/mips/time.h (grub_get_rtc): ... here.
  8006. * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
  8007. here ...
  8008. * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
  8009. * include/grub/mips/loongson/time.h (grub_cpu_idle): Moved from
  8010. here ...
  8011. * include/grub/mips/time.h (grub_cpu_idle): ... here.
  8012. * include/grub/offsets.h (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): New
  8013. definition.
  8014. (GRUB_KERNEL_MIPS_ARC_LINK_ALIGN): Likewise.
  8015. (GRUB_KERNEL_MIPS_ARC_COMPRESSED_SIZE): Likewise.
  8016. (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_SIZE): Likewise.
  8017. (GRUB_KERNEL_MIPS_ARC_TOTAL_MODULE_SIZE): Likewise.
  8018. (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
  8019. (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
  8020. (GRUB_KERNEL_MIPS_ARC_MOD_ALIGN): Likewise.
  8021. (GRUB_MACHINE_LINK_ADDR): Likewise.
  8022. * include/grub/terminfo.h (GRUB_TERMINFO_READKEY_MAX_LEN): Increased
  8023. to 6.
  8024. * util/grub-install.in: Run dvhtool on ARC.
  8025. * util/grub-mkimage.c (image_targets): Add mips-arc.
  8026. (generate_image): Handle ECOFF output for mips-arc.
  8027. 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
  8028. * grub-core/bus/pci.c (grub_memalign_dma32): Always allocate in 64-byte
  8029. blocks.
  8030. 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
  8031. * grub-core/bus/usb/usbhub.c (attach_root_port): Wait 10ms
  8032. after enabling port.
  8033. 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
  8034. Skip incorrect USB devices.
  8035. * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Fail if
  8036. configcnt == 0.
  8037. * include/grub/usb.h (grub_usb_err_t): New enum value
  8038. GRUB_USB_ERR_BADDEVICE.
  8039. 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
  8040. Fuloong video init support.
  8041. * include/grub/vga.h (grub_vga_write_arx): inb monochrome address as
  8042. well.
  8043. (grub_vga_read_arx): New function.
  8044. * grub-core/video/sis315pro.c (GRUB_SIS315PRO_MMIO_SPACE): New
  8045. definition.
  8046. (framebuffer): New members io, mmioptr and mmiobase.
  8047. (read_sis_cmd): New function.
  8048. (write_sis_cmd): Likewise.
  8049. (grub_video_sis315pro_setup): Do the initialisation. Use 640x480
  8050. rather than 640x400.
  8051. * grub-core/video/sis315_init.c: New file.
  8052. 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
  8053. * grub-core/bus/cs5536.c: Don't include grub/machine/kernel.h on
  8054. non-loongson.
  8055. * grub-core/kern/mips/dl.c (grub_arch_dl_init_linker): Fix argument
  8056. to grub_dl_register_symbol.
  8057. 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
  8058. Fix compilation errors.
  8059. * grub-core/term/ns8250.c (serial_get_divisor): Declare 'port' as
  8060. potentially unused.
  8061. * grub-core/loader/i386/linux.c (grub_linux_setup_video):
  8062. Handle GRUB_VIDEO_DRIVER_SIS315PRO.
  8063. * grub-core/bus/cs5536.c (grub_cs5536_init_geode): Restrict DIVIL init
  8064. to loongson machines.
  8065. 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
  8066. Several FS mtime support.
  8067. * grub-core/fs/affs.c (grub_affs_time): New struct.
  8068. (grub_affs_file): New field mtime.
  8069. (grub_fshelp_node): Changed 'block' and 'parent' to more appropriate
  8070. type. Removed 'size'. New field 'di'. All users updated.
  8071. (grub_affs_mount): Simplify checsum checking.
  8072. (grub_affs_iterate_dir): New helper grub_affs_create_node.
  8073. (grub_affs_dir): Handle mtime.
  8074. * grub-core/fs/cpio.c (grub_cpio_find_file): Handle mtime.
  8075. (grub_cpio_dir): Likewise.
  8076. * grub-core/fs/hfs.c (grub_hfs_dirrec): New fields 'ctime' and 'mtime'.
  8077. (grub_hfs_filerec): New field mtime.
  8078. (grub_hfs_dir): Handle mtime.
  8079. (grub_hfs_mtime): New function.
  8080. (grub_hfs_fs): Register grub_hfs_mtime.
  8081. * grub-core/fs/iso9660.c (grub_iso9660_date2): New struct.
  8082. (grub_iso9660_dir): New field mtime.
  8083. (grub_fshelp_node): New field dirent.
  8084. (iso9660_to_unixtime): New function.
  8085. (iso9660_to_unixtime2): Likewise.
  8086. (grub_iso9660_read_symlink): Use node->dirent.
  8087. (grub_iso9660_iterate_dir): Likewise.
  8088. (grub_iso9660_dir): Set mtime.
  8089. (grub_iso9660_mtime): New function.
  8090. (grub_iso9660_fs): Register grub_iso9660_mtime.
  8091. * grub-core/fs/jfs.c (grub_jfs_time): New struct.
  8092. (grub_jfs_inode): New fields atime, ctime and mtime.
  8093. (grub_jfs_dir): Set mtime.
  8094. * grub-core/fs/minix.c (grub_minix_dir): Likewise.
  8095. * grub-core/fs/ntfs.c (list_file): Set mtime.
  8096. (grub_ntfs_dir): Likewise.
  8097. * grub-core/fs/reiserfs.c (grub_fshelp_node): New field 'mtime'.
  8098. (grub_reiserfs_iterate_dir): Set mtime.
  8099. (grub_reiserfs_dir): Likewise.
  8100. * grub-core/fs/sfs.c (grub_sfs_obj): New field mtime.
  8101. (grub_fshelp_node): Likewise.
  8102. (grub_sfs_iterate_dir): Set mtime.
  8103. (grub_sfs_dir): Likewise.
  8104. * grub-core/fs/udf.c (grub_udf_dir): Set mtime.
  8105. * grub-core/fs/xfs.c (grub_xfs_time): New struct.
  8106. (grub_xfs_inode): New fields atime, mtime, ctime.
  8107. (grub_xfs_dir): Set mtime.
  8108. * include/grub/datetime.h (grub_datetime2unixtime): New function.
  8109. * include/grub/hfs.h (grub_hfs_sblock): New fields ctime and mtime.
  8110. * include/grub/ntfs.h (grub_fshelp_node): New field mtime.
  8111. Support UDF symlinks.
  8112. * grub-core/fs/udf.c (grub_udf_iterate_dir): Handle symlinks.
  8113. (grub_ufs_read_symlink): New function. All users updated.
  8114. Check amiga partmap checksum.
  8115. * grub-core/partmap/amiga.c (grub_amiga_rdsk): Pad to 128 bytes.
  8116. (grub_amiga_partition): Likewise.
  8117. (amiga_partition_map_checksum): New function.
  8118. (amiga_partition_map_iterate): Check checksum.
  8119. 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
  8120. ROMFS support.
  8121. * Makefile.util.def (libgrubmods.a): Add romfs.
  8122. * grub-core/Makefile.core.def (romfs): New module.
  8123. * grub-core/fs/romfs.c: New file.
  8124. 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
  8125. Squashfs v4 support.
  8126. * Makefile.util.def (libgrubmods.a): Add squash4.
  8127. * grub-core/Makefile.core.def (squash4): New module.
  8128. * grub-core/fs/squash4.c: New file.
  8129. * grub-core/io/gzio.c (grub_gzio): New members disk_input_off,
  8130. disk_input_start, disk_input.
  8131. (get_byte): Handle disk_input.
  8132. (grub_zlib_disk_read): New function.
  8133. * include/grub/deflate.h (grub_zlib_disk_read): New proto.
  8134. 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
  8135. 2011-05-15 Feiran Zheng <famcool@gmail.com>
  8136. * Makefile.util.def (libgrubmods.a): Add minix3.
  8137. * grub-core/Makefile.core.def (minix3): New module.
  8138. * grub-core/fs/minix.c (GRUB_MINIX_MAGIC) [MODE_MINIX3]: New value.
  8139. (GRUB_MINIX_BSIZE): Removed.
  8140. (GRUB_MINIX_INODE_DIR_BLOCKS): New definition. All users updated.
  8141. (grub_minix_ino_t): New type.
  8142. (grub_minix_le_to_cpu_ino): New macro.
  8143. (GRUB_MINIX_ZONE2SECT): New definition. All users updated.
  8144. (grub_minix_sblock) [MODE_MINIX3]: Change for minix3.
  8145. (grub_minix_data): New field block_size.
  8146. (grub_minix_read_file): Handle 64-bit correctly.
  8147. * grub-core/fs/minix3.c: New file.
  8148. 2011-05-15 Tristan Gingold <gingold@free.fr>
  8149. 2011-05-15 Robert Millan <rmh.grub@aybabtu.com>
  8150. 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
  8151. IA64 support.
  8152. * Makefile.util.def (libgrubmods.a): Add grub-core/kern/ia64/dl_helper.c
  8153. * configure.ac: Add ia64-efi target.
  8154. Probe for __ia64_trampoline, __udivsi3, __umoddi3, __udivdi3,
  8155. __divsi3, __modsi3, __umodsi3, __moddi3 and __divdi3 symbols.
  8156. * gentpl.py: Add ia64_efi platform.
  8157. Rename x86_efi to efi and Add ia64-efi. All users updated.
  8158. * grub-core/Makefile.am: Set KERNEL_HEADER_FILES for ia64-efi.
  8159. * grub-core/Makefile.core.def (kernel.img): Add compile flags for ia64.
  8160. Remove kern/generic/rtc_get_time_ms.c on EFI.
  8161. Add kern/ia64/efi/startup.S, kern/ia64/efi/init.c, kern/ia64/dl.c,
  8162. kern/ia64/dl_helper.c on ia64-efi.
  8163. Add kern/emu/cache.c on emu.
  8164. (linux): Use on loader/ia64/efi/linux.c on ia64.
  8165. * grub-core/gensymlist.sh (grub_register_exported_symbols): Check
  8166. whether symbol is a function.
  8167. * grub-core/kern/dl.c [GRUB_MACHINE_EMU]: Include sys/mman.h.
  8168. (grub_symbol): New field 'isfunc'.
  8169. (grub_dl_resolve_symbol): Return whole symbol rather than just address.
  8170. (grub_dl_register_symbol): New argument 'isfunc'. All users updated.
  8171. (grub_dl_load_segments): Place all sections into the same region.
  8172. [__ia64__]: Create trampolines and got.
  8173. [GRUB_MACHINE_EMU]: Call mprotect.
  8174. (grub_dl_resolve_symbols): Resolve symbol type as well.
  8175. [__ia64__]: Create function descriptors.
  8176. * grub-core/kern/efi/efi.c (grub_get_rtc): Renamed to ...
  8177. (grub_rtc_get_time_ms): ... this. Expressions simplified.
  8178. (grub_get_rtc): New function.
  8179. * grub-core/kern/emu/cache.c [__ia64__]: New file.
  8180. * grub-core/kern/emu/cache.S: Renamed to ...
  8181. * grub-core/kern/emu/cache_s.S: ... this.
  8182. [__ia64__]: Add a nop.
  8183. * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size)
  8184. [__ia64__]: New function.
  8185. * grub-core/kern/emu/lite.c [__ia64__]: Include ../ia64/dl.c.
  8186. * grub-core/kern/ia64/dl.c: New file.
  8187. * grub-core/kern/ia64/dl_helper.c: Likewise.
  8188. * grub-core/kern/ia64/efi/init.c: New file.
  8189. * grub-core/kern/ia64/efi/startup.S: Likewise.
  8190. * grub-core/lib/efi/halt.c [__ia64__]: Don't try acpi.
  8191. * grub-core/lib/ia64/longjmp.S: New file (from glibc).
  8192. * grub-core/lib/ia64/setjmp.S: Likewise (from glibc).
  8193. * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/setjmp.S.
  8194. * grub-core/loader/ia64/efi/linux.c: New file.
  8195. * include/grub/dl.h (GRUB_MOD_NAME): Redefined using C rather than asm.
  8196. (GRUB_MOD_DEP): Likewise.
  8197. (grub_dl) [__ia64__]: New fields got and tramp.
  8198. (grub_dl): New field 'base'.
  8199. (grub_dl_register_symbol): New argument isfunc. All users updated.
  8200. (GRUB_IA64_DL_TRAMP_ALIGN): New definition.
  8201. (GRUB_IA64_DL_TRAMP_SIZE): Likewise.
  8202. (GRUB_IA64_DL_GOT_ALIGN): Likewise.
  8203. (grub_ia64_dl_get_tramp_got_size): New proto.
  8204. (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Likewise
  8205. (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Likewise
  8206. (grub_arch_dl_get_tramp_got_size) [__ia64__]: Likewise
  8207. * include/grub/efi/api.h: Skip call wrappers on ia64.
  8208. * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_IA64): New definition.
  8209. * include/grub/efi/time.h (GRUB_TICKS_PER_SECOND): Change to 1000.
  8210. * include/grub/elf.h (ELF_ST_INFO): New definition.
  8211. * include/grub/ia64/efi/kernel.h: New file.
  8212. * include/grub/ia64/efi/memory.h: Likewise.
  8213. * include/grub/ia64/efi/time.h: Likewise.
  8214. * include/grub/ia64/kernel.h: Likewise.
  8215. * include/grub/ia64/setjmp.h: Likewise (from glibc).
  8216. * include/grub/ia64/time.h: New file.
  8217. * include/grub/ia64/types.h: Likewise.
  8218. * include/grub/libgcc.h (__udivsi3, __umodsi3, __umoddi3, __udivdi3,
  8219. __moddi3, __divdi3, __divsi3, __modsi3, __ia64_trampoline):
  8220. New protos.
  8221. * include/grub/offsets.h (GRUB_KERNEL_IA64_EFI_PREFIX): New definition.
  8222. (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
  8223. * include/grub/types.h (PRIxGRUB_ADDR): Likewise.
  8224. * util/grub-mkimage.c (image_target_desc): New field pe_target.
  8225. All users updated.
  8226. (EFI64_HEADER_SIZE): New definition. All users updated.
  8227. (image_targets): Add ia64-efi.
  8228. * util/grub-mkimagexx.c (relocate_symbols): New arguments jumpers and
  8229. jumpers_addr. All users updated.
  8230. Create function descriptors.
  8231. (count_funcs): New function.
  8232. (unaligned_uint32): New struct.
  8233. (MASK20): New definition.
  8234. (MASK19): Likewise.
  8235. (MASKF21): Likewise.
  8236. (add_value_to_slot_20b): New function.
  8237. (add_value_to_slot_21_real): Likewise.
  8238. (add_value_to_slot_21): Likewise.
  8239. (ia64_kernel_trampoline): New struct.
  8240. (nopm): New variable.
  8241. (jump): Likewise.
  8242. (make_trampoline): New function.
  8243. (relocate_addresses): Handle ia64.
  8244. (make_reloc_section): Likewise.
  8245. (load_image): Likewise.
  8246. 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
  8247. * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Silence spurious
  8248. warning. Move variables before code while on it.
  8249. 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
  8250. Fuloong support.
  8251. * configure.ac: Rename yeeloong platform to loongson. All users updated.
  8252. * grub-core/Makefile.core.def (fwstart_fuloong): New image.
  8253. * grub-core/boot/mips/loongson/fuloong.S: New file.
  8254. * grub-core/boot/mips/loongson/fwstart.S: Wait for CS5536 to come up.
  8255. Explicitly init CS5536.
  8256. [FULOONG]: Don't use serial until CS5536 is available.
  8257. Set GPIO based on dumps.
  8258. (serial_hw_init) [FULOONG]: Handle CS5536 parts.
  8259. [FULOONG]: Handle GPIO and memory controller differences.
  8260. Parse machine type in $a2.
  8261. * grub-core/boot/mips/startup_raw.S: Determine and save the
  8262. architecture.
  8263. * grub-core/bus/cs5536.c (gpiodump): Move to fwstart.S.
  8264. (grub_cs5536_init_geode): Remove gpio part. Conditionalise DIVIL
  8265. init on architecture type.
  8266. * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
  8267. SIS315E. Don't init at_keyboard on fuloong.
  8268. (grub_halt): Support Fuloong.
  8269. * grub-core/kern/mips/startup.S [LOONGSON]: Save $s7.
  8270. * grub-core/loader/mips/linux.c (LOONGSON_MACHTYPE): Removed.
  8271. (loongson_machtypes): New array.
  8272. (grub_cmd_linux) [GRUB_MACHINE_MIPS_LOONGSON]: Pass the right machine
  8273. type.
  8274. * grub-core/term/ns8250.c (serial_get_divisor): New parameter port and
  8275. config. All users updated. Handle CS5536 serial.
  8276. * grub-core/term/serial.c (grub_serial_register): Conditionalise
  8277. default port on machine type. Register serial as inactive.
  8278. * grub-core/video/sis315pro.c: New file.
  8279. * include/grub/cs5536.h (GRUB_CS5536_MSR_MAILBOX_CONFIG_ENABLED): New
  8280. definition.
  8281. (GRUB_CS5536_MSR_MAILBOX_CONFIG): Likewise.
  8282. (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART1_COM1): Likewise.
  8283. (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART2_COM3): Likewise.
  8284. (GRUB_CS5536_MSR_DIVIL_UART1_CONF): Likewise.
  8285. (GRUB_CS5536_MSR_DIVIL_UART2_CONF): Likewise.
  8286. * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_SHUTDOWN_GPIO): Rename
  8287. to ...
  8288. (GRUB_CPU_YEELOONG_SHUTDOWN_GPIO): ... this.
  8289. * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_YEELOONG): New
  8290. definition.
  8291. (GRUB_ARCH_MACHINE_FULOONG): Likewise.
  8292. (grub_arch_machine): New extern var.
  8293. * include/grub/mips/loongson/serial.h
  8294. (GRUB_MACHINE_SERIAL_DIVISOR_115200): Renamed to ...
  8295. (GRUB_MACHINE_SERIAL_PORT0_DIVISOR_115200): ... this.
  8296. (GRUB_MACHINE_SERIAL_PORT): Renamed to ...
  8297. (GRUB_MACHINE_SERIAL_PORT0): ... this.
  8298. (GRUB_MACHINE_SERIAL_PORT2_DIVISOR_115200): New definition.
  8299. (GRUB_MACHINE_SERIAL_PORT1): Likewise.
  8300. (GRUB_MACHINE_SERIAL_PORT2): Likewise.
  8301. (GRUB_MACHINE_SERIAL_PORTS): Include ports 1 and 2.
  8302. * include/grub/term.h (grub_term_register_input_inactive): New inline
  8303. function.
  8304. (grub_term_register_output_inactive): Likewise.
  8305. * include/grub/video.h (grub_video_driver_id): New value
  8306. GRUB_VIDEO_DRIVER_SIS315PRO.
  8307. * util/grub-mkimage.c (image_target_desc): Rename name to dirname.
  8308. New field "names". All users updated.
  8309. New field value IMAGE_FULOONG_FLASH.
  8310. (generate_image): USe separate fwstart hashes for yeeloong and fuloong.
  8311. 2011-05-14 Jordan Uggla <jordan.uggla@gmail.com>
  8312. * docs/grub.texi (Invoking grub-install): Fix additional outdated claims
  8313. and add some clarification.
  8314. 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
  8315. * util/grub.d/10_linux.in: Autoload gzio since it's needed on some
  8316. platforms if kernel is compressed.
  8317. 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
  8318. * grub-core/kern/mm.c (grub_memalign): Disable auto-unloadding of
  8319. unused modules since currently referrence counter isn't reliable and
  8320. there isn't much memory to recover there anyway.
  8321. 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
  8322. * grub-core/kern/dl.c (grub_dl_load_file): Decrease ref counter
  8323. rather than resetting it to allow modules to reference themselves
  8324. in init.
  8325. 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
  8326. * grub-core/kern/dl.c (grub_dl_unload): Don't decrease reference
  8327. counter on dependencies since grub_dl_unref already handles this.
  8328. 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
  8329. * grub-core/font/font_cmd.c (loadfont_command): Set grub_errno
  8330. on error if not already done.
  8331. 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
  8332. Fix few potential memory misusage.
  8333. * grub-core/font/font.c (load_font_index): Don't free char_index to
  8334. avoid double free.
  8335. (grub_font_load): Zero-fill font at alloc for safety.
  8336. Close file on error.
  8337. (free_font): Free bmp_idx.
  8338. 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
  8339. * docs/grub.texi (Installation): Fix several outdated claims.
  8340. 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
  8341. Handle module_license on windows.
  8342. * util/grub-pe2elf.c (MODLICENSE_SECTION): New definition. All following
  8343. sections shifted.
  8344. (insert_string): Make argument const char * instead of char *.
  8345. (write_section_data): Handle long section names.
  8346. Handle module_license.
  8347. 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
  8348. * grub-core/commands/menuentry.c (grub_cmd_menuentry): Correctly
  8349. handle class-free menuentries.
  8350. (grub_normal_add_menu_entry): Add a check to be sure.
  8351. 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
  8352. * grub-core/term/at_keyboard.c (set1_e0_mapping): Fix swap between
  8353. PgUp and PgDown.
  8354. 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
  8355. * configure.ac: Bump version to 1.99.
  8356. 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
  8357. Give ATA device a bit more time on first try in order to allow disks
  8358. to spin up.
  8359. * grub-core/disk/ata.c (grub_atapi_identify): Use GRUB_ATA_TOUT_DEV_INIT
  8360. if dev->present is 1. Reset dev->present on failure.
  8361. (grub_ata_device_initialize): Set dev->present to 1.
  8362. * include/grub/ata.h (GRUB_ATA_TOUT_DEV_INIT): New value.
  8363. (grub_ata_device): New member 'present'.
  8364. 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
  8365. * util/grub-mkimage.c (generate_image): Update hash.
  8366. 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
  8367. Flush caches on DMA memory.
  8368. * grub-core/kern/mips/cache.S (grub_arch_sync_dma_caches): New function.
  8369. * grub-core/bus/pci.c (grub_memalign_dma32): Flush caches.
  8370. (grub_dma_free): Likewise.
  8371. * include/grub/cache.h (grub_arch_sync_dma_caches): New declaration.
  8372. 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
  8373. * grub-core/boot/mips/yeeloong/fwstart.S: Add explicit set mips3
  8374. to avoid asm treating ld and sd as macros.
  8375. 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
  8376. * grub-core/boot/mips/startup_raw.S: Flush cache after loading
  8377. decompressor.
  8378. 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
  8379. * grub-core/boot/mips/startup_raw.S: Use jalr rather than bal to call
  8380. grub_decompress_core since later would fail if grub_decompress_core
  8381. is too far.
  8382. 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
  8383. * grub-core/kern/mips/dl.c (grub_arch_dl_relocate_symbols): Handle
  8384. R_MIPS_JALR since it's used by newer compiler.
  8385. 2011-05-10 Vladimir Serbinenko <phcoder@gmail.com>
  8386. * util/grub.d/10_linux.in: Correctly handle the Linux in root.
  8387. 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
  8388. * grub-core/loader/efi/chainloader.c (grub_chainloader_unload): Set
  8389. file_path to 0 for surety.
  8390. (grub_chainloader_boot): Set exit_data to NULL.
  8391. Unset the loader once done.
  8392. (grub_cmd_chainloader): Fix confusing error message if file is empty.
  8393. 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
  8394. * grub-core/term/at_keyboard.c (fetch_key): Make a printf on
  8395. unknown key into a dprintf.
  8396. 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
  8397. * grub-core/kern/emu/hostdisk.c (linux_find_partition): Don't abort
  8398. on first non-existant partition.
  8399. 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
  8400. * grub-core/kern/emu/hostdisk.c (open_device): Set data->fd to -1 if
  8401. openning fails.
  8402. Reported by: Mark Korenberg.
  8403. 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
  8404. * grub-core/kern/emu/hostdisk.c (linux_find_partition): Prevent possible
  8405. overflow.
  8406. 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
  8407. * util/grub-mkimage.c (main): Explicitely flush and sync the output
  8408. before closing to ensure that it will be readable by grub-setup.
  8409. 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
  8410. * grub-core/loader/efi/appleloader.c (MAKE_PIWG_PATH): New macro.
  8411. (devpath_1): Use MAKE_PIWG_PATH.
  8412. (devpath_2): Likewise.
  8413. (devpath_3): Likewise.
  8414. (devpath_4): Likewise.
  8415. (devpath_5): Likewise.
  8416. (devpath_6): Likewise.
  8417. The appleldr.mod was checked that to be binary identical to previous
  8418. version.
  8419. 2011-05-05 Zach <mikezackles>
  8420. Support 2010 Macbooks.
  8421. * grub-core/loader/efi/appleloader.c (devpath_6): New variable.
  8422. (devs): Add devpath_6.
  8423. 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
  8424. * util/grub-mkpasswd-pbkdf2.c (main): Use /dev/urandom and not
  8425. /dev/random. /dev/urandom is good enough for our purposes (salting).
  8426. 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
  8427. * util/grub-mkrescue.in (process_input_dir): Include efiemu??.o.
  8428. 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
  8429. * grub-core/lib/legacy_parse.c (grub_legacy_parse): Correctly handle
  8430. hexadecimal.
  8431. 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
  8432. * grub-core/efiemu/main.c (grub_efiemu_load_file): Return grub_errno
  8433. and not 0 on failure.
  8434. 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
  8435. * grub-core/fs/i386/pc/pxe.c (grub_pxefs_dir): Return
  8436. GRUB_ERR_BAD_FS rather than GRUB_ERR_IO if the disk is not a pxe
  8437. disk; otherwise grub_fs_probe will not fall back to the next
  8438. filesystem.
  8439. (grub_pxefs_open): Likewise, for consistency.
  8440. Reported and tested by: Ezekiel Grave.
  8441. 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
  8442. * tests/partmap_test.in: Don't hardcode path to parted.
  8443. Reported by: Peter Hjalmarsson. Fixes Savannah bug #33150.
  8444. 2011-05-01 Colin Watson <cjwatson@ubuntu.com>
  8445. * docs/grub.texi (GRUB only offers a rescue shell): Suggest the use
  8446. of `ls' to find out which devices are available.
  8447. 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
  8448. * grub-core/loader/i386/linux.c (grub_linux_boot): Supply target rather
  8449. than source address for efi mmap buffer.
  8450. 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
  8451. * grub-core/partmap/amiga.c (amiga_partition_map_iterate): Fix a
  8452. wrong action on non-detecting the magic.
  8453. 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
  8454. * grub-core/gnulib/regex.c: Remove GRUB_MOD_LICENSE since it's
  8455. already supplied by another part of the module (fixes compilation on
  8456. FreeBSD).
  8457. 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
  8458. * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Make mdraid UUID
  8459. match the one used by mdadm.
  8460. 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
  8461. * po/README: Add instructions for creating po/LINGUAS.
  8462. 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
  8463. Add "SEE ALSO" sections to most man pages. Fixes Debian bug
  8464. #551428.
  8465. * docs/man/grub-editenv.h2m (SEE ALSO): New section.
  8466. * docs/man/grub-emu.h2m (SEE ALSO): Likewise.
  8467. * docs/man/grub-fstest.h2m (SEE ALSO): Likewise.
  8468. * docs/man/grub-install.h2m (SEE ALSO): Likewise.
  8469. * docs/man/grub-macho2img.h2m (SEE ALSO): Likewise.
  8470. * docs/man/grub-menulst2cfg.h2m (SEE ALSO): Likewise.
  8471. * docs/man/grub-mkconfig.h2m (SEE ALSO): Likewise.
  8472. * docs/man/grub-mkdevicemap.h2m (SEE ALSO): Likewise.
  8473. * docs/man/grub-mkfont.h2m (SEE ALSO): Likewise.
  8474. * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
  8475. * docs/man/grub-mklayout.h2m (SEE ALSO): Likewise.
  8476. * docs/man/grub-mknetdir.h2m (SEE ALSO): Likewise.
  8477. * docs/man/grub-mkpasswd-pbkdf2.h2m (SEE ALSO): Likewise.
  8478. * docs/man/grub-mkrelpath.h2m (SEE ALSO): Likewise.
  8479. * docs/man/grub-mkrescue.h2m (SEE ALSO): Likewise.
  8480. * docs/man/grub-ofpathname.h2m (SEE ALSO): Likewise.
  8481. * docs/man/grub-pe2elf.h2m (SEE ALSO): Likewise.
  8482. * docs/man/grub-probe.h2m (SEE ALSO): Likewise.
  8483. * docs/man/grub-reboot.h2m (SEE ALSO): Likewise.
  8484. * docs/man/grub-script-check.h2m (SEE ALSO): Likewise.
  8485. * docs/man/grub-set-default.h2m (SEE ALSO): Likewise.
  8486. * docs/man/grub-setup.h2m (SEE ALSO): Likewise.
  8487. 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
  8488. * grub-core/kern/emu/getroot.c
  8489. (grub_find_root_device_from_mountinfo): Remove non-virtual-device
  8490. test that was incorrectly reintroduced in r3214.
  8491. Reported by: Ian Dall. Fixes Savannah bug #33133.
  8492. 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
  8493. Fix stack pointer handling in 16-bit relocator.
  8494. * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move
  8495. grub_relocator16_sp to %esp rather than %ss, and zero-extend it.
  8496. Fixes Ubuntu bug #683904.
  8497. 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
  8498. * configure.ac: Bump version to 1.99~rc2.
  8499. 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
  8500. * include/grub/dl.h [ASM_FILE]: Adapt for assembly.
  8501. * grub-core/lib/i386/setjmp.S: Add missing GRUB_MOD_LICENSE.
  8502. * grub-core/lib/x86_64/setjmp.S: Likewise.
  8503. * grub-core/lib/mips/setjmp.S: Likewise.
  8504. * grub-core/lib/powerpc/setjmp.S: Likewise.
  8505. * grub-core/lib/sparc64/setjmp.S: Likewise.
  8506. 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
  8507. * grub-core/lib/efi/datetime.c: Add missing GRUB_MOD_LICENSE.
  8508. * grub-core/lib/efi/datetime.c: Likewise.
  8509. 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
  8510. * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_flush):
  8511. New function.
  8512. (grub_util_biosdisk_close): Use grub_util_biosdisk_flush.
  8513. * include/grub/emu/hostdisk.h (grub_util_biosdisk_flush): New proto.
  8514. * util/grub-setup.c (setup): Use grub_util_biosdisk_flush.
  8515. 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
  8516. * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Preserve previous
  8517. bitmap.
  8518. (grub_gfxterm_term_init): Likewise.
  8519. 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
  8520. Take into account the decorations the computing menu entry width.
  8521. * grub-core/gfxmenu/widget-box.c (get_border_width): New function.
  8522. (grub_gfxmenu_create_box): Register get_border_width.
  8523. * grub-core/gfxmenu/gui_list.c (draw_menu): Use get_border_width
  8524. if available.
  8525. * include/grub/gfxwidgets.h (grub_gfxmenu_box): New member
  8526. get_border_width.
  8527. 2011-04-18 Endres Puschner <code@e7p.de>
  8528. * grub-core/gfxmenu/icon_manager.c (grub_gfxmenu_icon_manager_get_icon):
  8529. Don't skip first class.
  8530. 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
  8531. * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Support huge
  8532. chunks.
  8533. * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_BUG.
  8534. 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
  8535. Complete 64-bit division support.
  8536. * grub-core/kern/misc.c (grub_divmod64): Rename to ...
  8537. (grub_divmod64_full): ... this. Support 64-bit divisor and reminder.
  8538. * include/grub/misc.h (grub_divmod64): Rename to ...
  8539. (grub_divmod64_full): ... this.
  8540. (grub_divmod64): New inline function.
  8541. 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
  8542. * util/grub-mkimage.c (generate_image): Add forgotten comma.
  8543. 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
  8544. * util/grub-mkimage.c (generate_image): Update fwstart.img hash after
  8545. performing the necessary test.
  8546. 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
  8547. * Makefile.am (multiboot.elf): Add -Wl,--build-id=none.
  8548. (kfreebsd.elf): Likewise.
  8549. (pc-chainloader.elf): Likewise.
  8550. (ntldr.elf): Likewise.
  8551. 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
  8552. Identify RAID by its UUID rather than (guessed) name.
  8553. * grub-core/disk/raid.c (ascii2hex): New function.
  8554. (grub_raid_open): Accept mduuid/%s specification.
  8555. * grub-core/kern/emu/getroot.c (get_mdadm_name): Revamped into ...
  8556. (get_mdadm_uuid): ... this.
  8557. (grub_util_get_grub_dev): Use mduuid/%s if UUID is available.
  8558. 2011-04-16 Vladimir Serbinenko <phcoder@gmail.com>
  8559. * grub-core/gfxmenu/gui_image.c (rescale_image): Don't attempt to scale
  8560. to negative size.
  8561. 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
  8562. * util/grub.d/10_linux.in: Add rootflags=subvol=<name> if / is on a
  8563. btrfs subvolume.
  8564. * util/grub.d/20_linux_xen.in: Likewise.
  8565. 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
  8566. Rewrite /proc/self/mountinfo handling to cope with bind-mounts and
  8567. move-mounts appearing out of order. Fixes Ubuntu bug #738345.
  8568. * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
  8569. Build a list of relevant visible mounts using the mnt_id and
  8570. parent_mnt_id fields, and then scan that list at the end.
  8571. 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
  8572. * docs/grub.texi (normal): New section.
  8573. (normal_exit): New section.
  8574. (Embedded configuration): Add reference to normal.
  8575. (GRUB only offers a rescue shell): Likewise.
  8576. * docs/grub-dev.texi (Error Handling): Fix typo.
  8577. 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
  8578. * NEWS: Drop obsolete entry about probe-only btrfs support.
  8579. 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
  8580. * util/import_gcry.py: Fix typo.
  8581. 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
  8582. * NEWS: Add btrfs support.
  8583. 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
  8584. 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
  8585. BtrFS support. Written by me (Vladimir) with important bugfixes and
  8586. even more important testing by Colin.
  8587. * Makefile.util.def (libgrubmods.a): Add crc.c and gzio.c
  8588. * grub-core/Makefile.core.def (btrfs): Add crc.c.
  8589. * grub-core/fs/btrfs.c: Stub replaced with real implementation.
  8590. * grub-core/io/gzio.c (grub_gzio): New fields mem_input_size,
  8591. mem_input_off and mem_input. All users updated to accept in-RAM input.
  8592. (gzio_seek): New function.
  8593. (test_zlib_header): Likewise.
  8594. (grub_gzio_read): Likewise.
  8595. (grub_zlib_decompress): Likewise.
  8596. * grub-core/kern/emu/getroot.c (grub_find_root_device_from_mountinfo):
  8597. Accept partial and non-virtual mounts.
  8598. (grub_guess_root_device): Do rescanning after device_from_mountinfo to
  8599. avoid receiving /dev/dm-X as device.
  8600. * grub-core/kern/emu/misc.c (grub_make_system_path_relative_to_its_root):
  8601. Handle bind and partial mounts.
  8602. * grub-core/lib/crc.c: New file.
  8603. * include/grub/deflate.h: Likewise.
  8604. * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo): New
  8605. proto.
  8606. * include/grub/lib/crc.h: New file.
  8607. 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
  8608. Implement automatic module license checking according to new GNU
  8609. guidelines.
  8610. * grub-core/kern/dl.c (grub_dl_check_license): New function.
  8611. (grub_dl_load_core): Use grub_dl_check_license.
  8612. * include/grub/dl.h (GRUB_MOD_SECTION): New macro.
  8613. (GRUB_MOD_LICENSE): Likewise.
  8614. (GRUB_MOD_DUAL_LICENSE): Likewise.
  8615. All modules updated.
  8616. 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
  8617. * grub-core/fs/btrfs.c (grub_btrfs_fs) [GRUB_UTIL]: Set
  8618. reserved_first_sector to 1. btrfs reserves plenty of space for boot
  8619. loaders.
  8620. Reported by: Gene Cumm. Fixes Ubuntu bug #757446.
  8621. 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
  8622. * util/grub-fstest.c (cmd_cmp): Check that sizes match.
  8623. 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
  8624. * util/grub-fstest.c (read_file): Report GRUB error if file opening
  8625. failed.
  8626. 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
  8627. * grub-core/kern/file.c (grub_file_open): Don't take into account the
  8628. parenthesis in the middle of the filename.
  8629. 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
  8630. * grub-core/loader/mips/linux.c (grub_cmd_initrd): Use correct limits
  8631. rather than trying to put initrd way too high.
  8632. Reported by: Ryan Lortie <desrt@desrt.ca>
  8633. 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
  8634. * grub-core/boot/mips/yeeloong/fwstart.S (no_cs5536): Put back
  8635. improperly removed string.
  8636. 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
  8637. * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_data): New member
  8638. is_disk.
  8639. (grub_util_biosdisk_open): Don't apply ioctl on non-disk devices.
  8640. (open_device) Likewise.
  8641. (grub_util_biosdisk_close): Likewise.
  8642. Reported by: Mark Korenberg.
  8643. 2011-04-10 Alexander Kurtz <kurtz.alex@googlemail.com>
  8644. * util/grub-mkconfig_lib.in: Add missing quotes.
  8645. 2011-04-10 Colin Watson <cjwatson@ubuntu.com>
  8646. * grub-core/gnulib/argp-parse.c (__argp_input): Don't crash if pstate
  8647. is NULL.
  8648. 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
  8649. Dynamically count the number of lines for the lower banner.
  8650. * grub-core/normal/menu_entry.c (per_term_screen): New member
  8651. num_entries.
  8652. (print_down): Use num_entries.
  8653. (update_screen): Likewise.
  8654. (grub_menu_entry_run): Set num_entries.
  8655. * grub-core/normal/menu_text.c (menu_viewer_data): New member
  8656. num_entries.
  8657. (grub_print_message_indented): Move real part to ...
  8658. (grub_print_message_indented_real): ... here. Additional argument
  8659. dry_run.
  8660. (draw_border): Additional argument num_entries.
  8661. (print_message): Additional argument dry_run.
  8662. (print_entries): Receive menu viewer data.
  8663. (grub_menu_init_page): New argment num_entries.
  8664. (menu_text_set_chosen_entry): Use num_entries.
  8665. (grub_menu_try_text): Likewise.
  8666. * grub-core/normal/term.c (print_ucs4_terminal): New argument dry_run.
  8667. All users updated.
  8668. (grub_ucs4_count_lines): New function.
  8669. * include/grub/term.h (grub_term_cursor_x): Moved from here ..
  8670. * grub-core/normal/menu_text.c (grub_term_cursor_x): ... to here.
  8671. * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): Removed.
  8672. (grub_term_border_height): Likewise.
  8673. (grub_term_num_entries): Likewise.
  8674. 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
  8675. * grub-core/boot/mips/yeeloong/fwstart.S: Fix address to error message.
  8676. Remove now unused string.
  8677. 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
  8678. * docs/grub-dev.texi (Finding your way around): Update for 1.99
  8679. build system.
  8680. (Getting started): GRUB is developed in Bazaar now, not Subversion.
  8681. (Comment): Fix typo.
  8682. (Getting started): General copy-editing.
  8683. (Typical Development Experience): Likewise.
  8684. (Error Handling): Likewise.
  8685. (Video API): Likewise.
  8686. 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
  8687. * docs/grub-dev.texi: Replace MoinMoin syntax with Texinfo syntax
  8688. throughout.
  8689. 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
  8690. * util/grub-mkimage.c (main): Handle special naming of yeeloong
  8691. directory.
  8692. 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
  8693. * docs/grub-dev.texi: Fix spelling of "developer" throughout.
  8694. * grub-core/fs/i386/pc/pxe.c (parse_dhcp_vendor): Fix spelling of
  8695. "development".
  8696. 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
  8697. * grub-core/normal/menu_entry.c (run): Use grub_memcpy rather than
  8698. grub_strcpy since the lines aren't necessarily 0-terminated.
  8699. 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
  8700. * grub-core/lib/legacy_parse.c (legacy_commands): Find doesn't set
  8701. root on legacy.
  8702. 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
  8703. * grub-core/commands/probe.c (options): Argument to set isn't optional.
  8704. (GRUB_MOD_INIT): DEVICE isn't optional.
  8705. 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
  8706. * grub-core/normal/term.c (print_ucs4_terminal): Don't try to put the
  8707. word on new line if it's too long anyway. Fixes a hang.
  8708. 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
  8709. * include/grub/util/raid.h (grub_util_raid_getmembers): Make argument
  8710. const.
  8711. * util/grub-setup.c (main): Reuse md device name if available.
  8712. * util/raid.c (grub_util_raid_getmembers): Receive device name and
  8713. not GRUB name as argument.
  8714. Based on patch by: Florian Wagner <fwagner>.
  8715. 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
  8716. * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
  8717. Place mbi on low memory for better compatibility.
  8718. 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
  8719. * include/grub/efiemu/efiemu.h: Use grub_memory_hook_t type.
  8720. 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
  8721. 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
  8722. * autogen.sh: Ensure that collate and ctype locale is C.
  8723. * conf/Makefile.common: Likewise.
  8724. 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
  8725. * grub-core/normal/menu.c: Add missing include.
  8726. 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
  8727. * grub-core/disk/raid.c [GRUB_UTIL]: Add missing include.
  8728. 2011-04-08 Martin Zuther <mzuther@mzuther.de>
  8729. * util/grub-mkconfig.in: Ignore emacsen backup.
  8730. 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
  8731. * grub-core/kern/emu/hostdisk.c (open_device): Sync on close and not
  8732. on open.
  8733. (grub_util_biosdisk_close): Likewise.
  8734. 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
  8735. * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Add missing
  8736. const attribute and use grub_isdigit.
  8737. 2011-04-06 Andrey <dev_null@ukr.net>
  8738. * grub-core/video/fb/video_fb.c (grub_video_fb_setup): Silence older
  8739. gcc warning.
  8740. 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
  8741. * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Add few
  8742. useful grub_dprintf's.
  8743. 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
  8744. * include/grub/fs.h (grub_dirhook_info): Use unsigned for 1-bit fields.
  8745. 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
  8746. * util/grub.d/00_header.in: Don't use LANG unless unifont is available.
  8747. 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
  8748. Output errors if theme loading failed.
  8749. * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Move the call to
  8750. grub_gfxterm_fullscreen on error paths to ...
  8751. * grub-core/normal/menu.c (menu_init): ...here. Wait after showing
  8752. theme loading error.
  8753. 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
  8754. * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Let a bit more
  8755. space for older compilers.
  8756. (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
  8757. 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
  8758. * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Detect spares
  8759. and report them as not RAID members since they are useless for GRUB.
  8760. * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
  8761. 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
  8762. Increase LVM implementation robustness in order not to crash on
  8763. configurations like pvmove. Previously code assumed that in some places
  8764. only lvs or only pvs are used whereas it seems that they are used
  8765. interchangeably.
  8766. * grub-core/disk/lvm.c (read_node): New function.
  8767. (read_lv): Use read_node.
  8768. (grub_lvm_scan_device): Use only first mirror on pvmove'd lvs.
  8769. Match volumes only at the end when all lvs are found. Take both
  8770. pvs (first) and lvs (second) into account.
  8771. * include/grub/lvm.h (grub_lvm_segment): Merge fields stripe_* and
  8772. mirror_* into node_*. All users updated.
  8773. (grub_lvm_stripe): Merge this ...
  8774. (grub_lvm_mirror): ... and this ...
  8775. (grub_lvm_node): ... into this. All users updated.
  8776. 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
  8777. * grub-core/disk/lvm.c (grub_lvm_scan_device): Print errors on the end
  8778. of function to allow further scanning for LVMs.
  8779. 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
  8780. * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_read): Don't close
  8781. on failed seek as it breaks open fd reusage.
  8782. 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
  8783. * util/grub-install.in: Add a recommendation to use --recheck before
  8784. reporting bugs.
  8785. 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
  8786. * docs/grub.texi (Vendor power-on buttons): Explain how the numbers
  8787. are obtained.
  8788. 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
  8789. GRUB developper manual based on existing Internals section and
  8790. contributions by the various authors with active copyright assignment.
  8791. * docs/Makefile.am (info_TEXINFOS): Add grub-dev.texi.
  8792. * docs/font_char_metrics.png: New file.
  8793. * docs/font_char_metrics.txt: Likewise.
  8794. * docs/grub-dev.texi: Likewise.
  8795. * docs/grub.texi (Internals): Move from here ...
  8796. * docs/grub-dev.texi: ... here.
  8797. 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
  8798. Store the loopback device as data on loopback grub_disk structures,
  8799. rather than the file it points to. This fixes use of freed memory
  8800. if an existing loopback device is replaced.
  8801. * grub-core/disk/loopback.c (grub_loopback_open): Store dev in
  8802. disk->data, not dev->file.
  8803. (grub_loopback_read): Adjust file assignment to match.
  8804. Fixes Ubuntu bug #742967.
  8805. 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
  8806. * grub-core/disk/loopback.c (grub_cmd_loopback): Fix a memory leak
  8807. when replacing an existing device.
  8808. 2011-04-01 Vladimir Serbinenko <phcoder@gmail.com>
  8809. Fix incorrect types in jfs.c. This enables >2TiB disks and fixes some
  8810. memory corruptions.
  8811. * grub-core/fs/jfs.c (struct grub_jfs_diropen): Interpret bytes as
  8812. unsigned.
  8813. (grub_jfs_lookup_symlink): Make ino a grub_uint32_t rather than int.
  8814. (grub_jfs_blkno): Use 64-bit quantities for block sectors.
  8815. (grub_jfs_read_inode): Likewise.
  8816. (grub_jfs_opendir): Likewise. Remove now useless casts.
  8817. (grub_jfs_getent): Likewise.
  8818. Make ino a grub_uint32_t rather than int.
  8819. (grub_jfs_mount): Ensure that blksize and log2_blksize are consistent.
  8820. (grub_jfs_read_file): Use 64-bit quantities when necessary. Replace
  8821. division and module with bit operations.
  8822. (grub_jfs_find_file): Make ino a grub_uint32_t.
  8823. (grub_jfs_lookup_symlink): Likewise. Use 64-bit quantities
  8824. 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
  8825. * grub-core/normal/menu_entry.c (run): Quieten uninitialised
  8826. warning. (This was in fact always initialised before use, but GCC
  8827. wasn't smart enough to prove that.)
  8828. * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
  8829. 2011-03-31 Vladimir Serbinenko <phcoder@gmail.com>
  8830. * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_0): Preserve 16-byte
  8831. stack alignment.
  8832. (efi_wrap_1): Likewise.
  8833. (efi_wrap_2): Likewise.
  8834. (efi_wrap_3): Likewise.
  8835. (efi_wrap_4): Likewise.
  8836. (efi_wrap_5): Likewise.
  8837. (efi_wrap_6): Likewise.
  8838. (efi_wrap_10): Likewise.
  8839. Based on information by: Red Hat/Peter Jones.
  8840. 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
  8841. * grub-core/mmap/efi/mmap.c (grub_mmap_unregister): Remove
  8842. set-but-not-used variable.
  8843. 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
  8844. * docs/grub.texi (Simple configuration): Be more explicit about
  8845. GRUB_DEFAULT, and add an example.
  8846. Reported by: Leslie Rhorer.
  8847. 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
  8848. * docs/grub.texi (Commands): Link to "GRUB only offers a rescue
  8849. shell".
  8850. 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
  8851. * util/grub.d/10_linux.in: Add gentoo-specific config filename.
  8852. * util/grub.d/20_linux_xen.in: Likewise.
  8853. 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
  8854. * util/grub.d/10_linux.in: Try alternative config filenames where
  8855. we parse config file.
  8856. * util/grub.d/20_linux_xen.in: Likewise.
  8857. 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
  8858. * util/grub.d/10_linux.in: Add gentoo-specific Linux and initrd names.
  8859. * util/grub.d/20_linux_xen.in: Likewise.
  8860. 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
  8861. * grub-core/disk/raid.c (insert_array): Add few potentially
  8862. useful grub_util_info.
  8863. (grub_raid_register): Likewise.
  8864. 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
  8865. * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev) [__linux__]:
  8866. Preserve partition number in mdadm code path.
  8867. 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
  8868. * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Add
  8869. few potentially useful grub_util_info.
  8870. 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
  8871. * grub-core/disk/lvm.c (grub_lvm_scan_device): Remove spurious \n.
  8872. 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
  8873. * docs/grub.texi (default): Use @example rather than nested
  8874. itemized lists to avoid breaking gendocs.
  8875. 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
  8876. * docs/grub.texi (Future): Update.
  8877. 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
  8878. * docs/grub.texi (Environment): New chapter.
  8879. (Changes from GRUB Legacy): Link to "Environment block" section for
  8880. details of limitations.
  8881. (Simple configuration): Likewise. Link to documentation of gfxmode
  8882. and gfxpayload variables from GRUB_GFXMODE and GRUB_GFXPAYLOAD
  8883. respectively.
  8884. (Shell-like scripting): Note that normal variables are stored in the
  8885. environment.
  8886. (gettext): Link to documentation of lang and locale_dir.
  8887. (list_env): New section.
  8888. (load_env): New section.
  8889. (save_env): New section.
  8890. (Reporting bugs): Fix typo.
  8891. 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
  8892. * docs/grub.texi: Correctly use "terminal_input" and not "terminal" in
  8893. the example.
  8894. 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
  8895. * grub-core/term/at_keyboard.c (set_scancodes)
  8896. [!GRUB_MACHINE_MIPS_YEELOONG && !GRUB_MACHINE_QEMU]: Use scancode set 1.
  8897. 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
  8898. * docs/grub.texi (Menu-specific commands): Remove some semantics
  8899. that were true in GRUB Legacy but not in GRUB 2.
  8900. (submenu): New section.
  8901. (false): New section.
  8902. (read): New section.
  8903. (true): New section.
  8904. 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
  8905. * docs/grub.texi (Changes from GRUB Legacy): Minor proofreading.
  8906. 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
  8907. * docs/grub.texi (Simple configuration): Explain some of the
  8908. current limitations of grub-mkconfig.
  8909. Reported by: Leslie Rhorer.
  8910. 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
  8911. Old macs search for boot.efi rather than for bootia32.efi.
  8912. * util/grub-install.in: Copy bootia32.efi to boot.efi.
  8913. * util/grub-mkrescue.in: Likewise.
  8914. Suggested by: Peter Jones.
  8915. 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
  8916. * util/grub.d/20_linux_xen.in: Accept old-style xen kernels.
  8917. 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
  8918. * include/grub/lvm.h (grub_lvm_lv): New field 'visible'.
  8919. (grub_lvm_segment): New fields 'type', 'mirror_count' and 'mirrors'.
  8920. (grub_lvm_mirror): New struct.
  8921. * grub-core/disk/lvm.c (grub_lvm_checkvalue): Commented out.
  8922. (grub_lvm_iterate): Iterate only visible volumes.
  8923. (grub_lvm_read): Factor out to ..
  8924. (read_lv): ... this. Support mirrors.
  8925. (grub_lvm_read): New wrapper function.
  8926. (grub_lvm_scan_device): Parse mirrors. Skip everything that isn't
  8927. stripped or mirrored.
  8928. 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
  8929. * util/grub.d/10_linux.in: Skip vmlinux-* on x86 platforms.
  8930. 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
  8931. * docs/grub.texi (loopback): New section.
  8932. 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
  8933. * grub-core/disk/loopback.c (GRUB_MOD_INIT): Stop documenting
  8934. removed -p option.
  8935. 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
  8936. * docs/grub.texi (BIOS installation): New section, partly based on
  8937. previous text in other sections.
  8938. (Installing GRUB using grub-install): Replace BIOS discussion with a
  8939. cross-reference.
  8940. (Images): Likewise.
  8941. 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
  8942. * grub-core/kern/emu/hostdisk.c (find_partition_start)
  8943. [HAVE_DIOCGDINFO]: Add safety checks.
  8944. 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
  8945. * util/grub.d/10_kfreebsd.in: Allow ufs.ko to be missing as it's
  8946. per default compiled in kernel and prior to 8.0 isn't shipped at all.
  8947. 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
  8948. * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): If
  8949. real_sb->size is zero (e.g. RAID-0), get the disk size from
  8950. real_sb->data_size instead.
  8951. Fixes Ubuntu bug #743136.
  8952. 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
  8953. * grub-core/normal/misc.c (grub_normal_print_device_info): Use correct
  8954. printf clauses for printing size and start.
  8955. 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
  8956. * grub-core/fs/ext2.c (grub_ext2_read_inode): Fix an overflow.
  8957. Reported and tested by: Timothy Nikkel.
  8958. 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
  8959. * grub-core/term/gfxterm.c (dirty_region_add): Move core part to ...
  8960. (dirty_region_add_real): ... this.
  8961. (dirty_region_add): Don't discard margin refresh when performing
  8962. scheduled repaint.
  8963. 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
  8964. * grub-core/lib/relocator.c (allocate_regstart)
  8965. [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Avoid grub_dprintf since not all
  8966. terminals are capabple of malloc-free operation.
  8967. (allocate_inreg) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
  8968. (malloc_in_range) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
  8969. 2011-03-29 Mario Limonciello <Mario_Limonciello@Dell.com>
  8970. * util/grub-setup.c: Copy the partition table zone if floppy support
  8971. is disabled, even if no partition table is found.
  8972. Otherwise, the BIOS on Dell Latitude E series laptops will freeze
  8973. during POST if an invalid partition table is contained in the PBR
  8974. of the active partition when GRUB is installed to a partition.
  8975. 2011-03-28 Colin Watson <cjwatson@debian.org>
  8976. * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Remove stale
  8977. comment.
  8978. 2011-03-28 Colin Watson <cjwatson@debian.org>
  8979. * grub-core/disk/raid.c (grub_raid_register): Adjust debug message
  8980. to be specific about what kind of RAID device we're scanning for.
  8981. 2011-03-26 Seth Goldberg <seth.goldberg@oracle.com>
  8982. * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): Don't
  8983. return freed string.
  8984. 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
  8985. * grub-core/fs/iso9660.c (grub_iso9660_label): Rtrim the label.
  8986. 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
  8987. Use libgeom on FreeBSD to detect partitions.
  8988. * Makefile.util.def (grub-mkimage): Add LIBGEOM to ldadd.
  8989. (grub-mkrelpath): Likewise.
  8990. (grub-script-check): Likewise.
  8991. (grub-editenv): Likewise.
  8992. (grub-mkpasswd-pbkdf2): Likewise.
  8993. (grub-fstest): Likewise.
  8994. (grub-mkfont): Likewise.
  8995. (grub-mkdevicemap): Likewise.
  8996. (grub-probe): Likewise.
  8997. (grub-setup): Likewise.
  8998. (grub-ofpathname): Likewise.
  8999. (grub-mklayout): Likewise.
  9000. (example_unit_test): Likewise.
  9001. (grub-menulst2cfg): Likewise.
  9002. * grub-core/Makefile.core.def (grub-emu): Likewise.
  9003. (grub-emu-lite): Likewise.
  9004. * configure.ac: Check for -lgeom on FreeBSD and set LIBGEOM.
  9005. * grub-core/kern/emu/hostdisk.c [FreeBSD]: Include libgeom.h. Don't
  9006. define HAVE_DIOCGDINFO.
  9007. (follow_geom_up) [FreeBSD]: New function.
  9008. (find_partition_start) [FreeBSD]: Rewritten using follow_geom_up.
  9009. (convert_system_partition_to_system_disk) [FreeBSD]: Likewise.
  9010. (grub_util_biosdisk_get_grub_dev) [FreeBSD]: Use FreeBSD path
  9011. unconditionally of HAVE_DIOCGDINFO.
  9012. 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
  9013. Fix FreeBSD compilation problem.
  9014. * grub-core/kern/emu/hostdisk.c (MAJOR) [FreeBSD]: New definition.
  9015. (FLOPPY_MAJOR) [FreeBSD]: Likewise.
  9016. 2011-03-24 Colin Watson <cjwatson@ubuntu.com>
  9017. * grub-core/video/fb/video_fb.c (grub_video_fb_get_info_and_fini):
  9018. Switch back to page zero before loading a kernel, since some kernel
  9019. drivers expect that.
  9020. Thanks to: Felix Kuehling.
  9021. 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
  9022. * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_addr)
  9023. [DEBUG_RELOCATOR]: Reuse grub_mm_check.
  9024. (grub_relocator_alloc_chunk_align) [DEBUG_RELOCATOR]: Likewise.
  9025. 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
  9026. * include/grub/mm.h (GRUB_MM_CHECK): Rename to ...
  9027. (grub_mm_check): ... this. MAke a function-like macro and use GRUB_FILE.
  9028. 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
  9029. * grub-core/lib/relocator.c (allocate_inreg): Avoid dprintf unless
  9030. DEBUG_RELOCATOR is defined since gfxterm can't cope with output when
  9031. malloc is disabled.
  9032. 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
  9033. * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Account
  9034. for modules headers when counting the needed allocation size.
  9035. 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
  9036. * grub-core/term/gfxterm.c (calculate_normal_character_width): Return 8
  9037. if no ASCII character is found to prevent crash.
  9038. 2011-03-23 Alexander Kurtz <kurtz.alex@googlemail.com>
  9039. * grub-core/video/bitmap.c (match_extension): Ignore case.
  9040. 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
  9041. * grub-core/normal/menu_entry.c (init_line): Fix off-by-one error.
  9042. 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
  9043. * grub-core/script/parser.y: Declare "time" as valid argument.
  9044. 2011-03-23 Peter Jones <pjones@redhat.com>
  9045. Fix incorrect assert failure reporting.
  9046. * grub-core/tests/example_functional_test.c (example_test): Add
  9047. a failure comment.
  9048. * grub-core/tests/lib/test.c (add_failure): Renamed to ...
  9049. (failure_start): ...this. Check that malloc succeeded.
  9050. Don't call xvasprintf. Return failure struct.
  9051. (failure_append_vtext): New function.
  9052. (failure_append_text): Likewise.
  9053. (add_failure): Likewise.
  9054. (grub_test_assert_helper): Likewise.
  9055. * include/grub/test.h (grub_test_assert_helper): New declaration.
  9056. (grub_test_assert): Macro rewritten.
  9057. 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
  9058. * grub-core/normal/main.c (GRUB_MOD_INIT): Export pager variable.
  9059. 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
  9060. * grub-core/lib/i386/pc/biosnum.c: Add missing include.
  9061. 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
  9062. * grub-core/disk/usbms.c (grub_usbms_reset): Transform USB-style error
  9063. into GRUB-style one.
  9064. 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
  9065. * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Return usb-style
  9066. error and not grub_errno.
  9067. * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
  9068. 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
  9069. * grub-core/bus/usb/uhci.c (grub_uhci_detect_dev): Return
  9070. GRUB_USB_SPEED_NONE in case of failure and not the error code.
  9071. 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
  9072. * grub-core/efiemu/i386/pc/cfgtables.c
  9073. (grub_machine_efiemu_init_tables): Make declaration a prototype.
  9074. * grub-core/loader/xnu.c (grub_xnu_lock): Likewise.
  9075. (grub_xnu_unlock): Likewise.
  9076. * grub-core/normal/cmdline.c (grub_cmdline_get/cl_set_pos_all): Likewise.
  9077. 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
  9078. * grub-core/bus/usb/usb.c (attach_hooks): Make static.
  9079. * grub-core/bus/usb/usbhub.c (hubs): Likewise.
  9080. * grub-core/commands/hashsum.c (aliases): Likewise.
  9081. * grub-core/commands/setpci.c (pci_registers): Likewise.
  9082. * grub-core/disk/usbms.c (attach_hook): Likewise.
  9083. * grub-core/fs/zfs/zfs.c (decomp_table): Likewise.
  9084. (zio_checksum_table): Likewise.
  9085. * grub-core/gettext/gettext.c (grub_gettext_msg_list): Likewise.
  9086. * grub-core/gfxmenu/gfxmenu.c (cached_view): Likewise.
  9087. * grub-core/lib/legacy_parse.c (legacy_commands): Likewise.
  9088. * grub-core/lib/relocator.c (leftovers): Likewise.
  9089. (extra_blocks): Likewise.
  9090. * grub-core/loader/i386/bsd.c (relocator): Likewise.
  9091. * grub-core/loader/i386/multiboot_mbi.c (modules): Likewise.
  9092. (modules_last): Likewise.
  9093. * grub-core/loader/i386/xnu.c (table_aliases): Likewise.
  9094. (devices): Likewise.
  9095. * grub-core/loader/multiboot_mbi2.c (modules): Likewise.
  9096. (modules_last): Likewise.
  9097. * grub-core/normal/auth.c (users): Likewise.
  9098. * grub-core/normal/context.c (initial_menu): Likewise.
  9099. (current_menu): Likewise.
  9100. * grub-core/normal/crypto.c (crypto_specs): Likewise.
  9101. * grub-core/term/serial.c (grub_serial_ports): Likewise.
  9102. (grub_serial_terminfo_input_template): Likewise.
  9103. (grub_serial_terminfo_output_template): Likewise.
  9104. (grub_serial_terminfo_input): Likewise.
  9105. (grub_serial_terminfo_output): Likewise.
  9106. (registered): Likewise.
  9107. * grub-core/term/usb_keyboard.c (attach_hook): Likewise.
  9108. 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
  9109. * grub-core/video/bochs.c (grub_video_bochs_setup): Use
  9110. grub_video_mode_type_t.
  9111. * grub-core/video/cirrus.c (grub_video_cirrus_setup): Likewise.
  9112. * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Likewise.
  9113. * grub-core/video/i386/pc/vga.c (grub_video_vga_setup): Likewise.
  9114. 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
  9115. * util/grub-install.in: Correct the x86-64 name as x86_64.
  9116. 2011-03-11 Colin Watson <cjwatson@ubuntu.com>
  9117. * grub-core/boot/i386/pc/lnxboot.S (real_code_2): Ensure that the
  9118. initial chunk read from the kernel always includes GRUB's multiboot
  9119. header, which is now outside the first sector.
  9120. 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
  9121. * grub-core/loader/i386/linux.c (find_efi_mmap_size): Page-align
  9122. cached mmap_size, so that this works correctly when called multiple
  9123. times.
  9124. Reported by: Daniel Kahn Gillmor. Should fix Debian bug #616638.
  9125. 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
  9126. * docs/grub.texi (Simple configuration): Tidy up formatting.
  9127. 2011-03-07 Szymon Janc <szymon@janc.net.pl>
  9128. * grub-core/fs/zfs/zfs.c (zap_leaf_lookup):
  9129. Set-but-not-used variable removed.
  9130. 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
  9131. Workaround yet another IEEE1275 bug.
  9132. * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
  9133. GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS.
  9134. * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate): Ignore
  9135. adress_cells and size:cells if GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS
  9136. is set.
  9137. * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
  9138. GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS on powermacs.
  9139. 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
  9140. * grub-core/partmap/msdos.c (pc_partition_map_embed): Fix off by one
  9141. error.
  9142. 2011-02-11 Colin Watson <cjwatson@ubuntu.com>
  9143. * util/grub.d/20_linux_xen.in: Bail out early if linux_list is
  9144. empty, since in that case we can only generate either nothing or a
  9145. syntactically invalid configuration file.
  9146. Reported by: Michal Suchanek. Fixes Debian bug #612898.
  9147. 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
  9148. * docs/grub.texi (Kernel): Add reference to grub-mkrescue.
  9149. (Making a GRUB bootable CD-ROM): Likewise.
  9150. (Invoking grub-mkrescue): New section.
  9151. Reported by: Yann Dirson. Fixes Debian bug #612585.
  9152. 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
  9153. * util/grub-install.in: Remove unnecessary brackets from tr
  9154. arguments.
  9155. * util/grub.d/10_hurd.in: Likewise.
  9156. * util/grub.d/10_kfreebsd.in: Likewise.
  9157. * util/grub.d/10_linux.in: Likewise.
  9158. * util/grub.d/20_linux_xen.in: Likewise.
  9159. Reported by: Jamie Heilman. Fixes Debian bug #612564.
  9160. 2011-02-08 Colin Watson <cjwatson@ubuntu.com>
  9161. * include/grub/file.h (not_easly_seekable): Rename to ...
  9162. (not_easily_seekable): ... this. Update all users.
  9163. 2011-01-28 Colin Watson <cjwatson@ubuntu.com>
  9164. * docs/grub.texi (Making a GRUB bootable CD-ROM): Update to describe
  9165. grub-mkrescue.
  9166. 2011-01-24 Vladimir Serbinenko <phcoder@gmail.com>
  9167. * util/grub-mkimage.c (generate_image): Refuse to create the images
  9168. bigger than the actual flash (512K) in Loongson machines. 512K is also
  9169. the biggest chip supported by them.
  9170. 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
  9171. * grub-core/kern/emu/getroot.c: Include config-util.h explicitly.
  9172. 2011-01-22 Anthony DeRobertis <anthony@derobert.net>
  9173. * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Check
  9174. super_offset field.
  9175. 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
  9176. * util/grub-install.in: Ignore install device on platforms
  9177. where it doesn't make sense. Always use UUIDs except on pc, efi and
  9178. sparc64.
  9179. Reported by: Daniel Kahn Gillmor.
  9180. 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
  9181. * grub-core/bus/bonito.c (write_bases): Fix direction of the shift.
  9182. 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
  9183. * grub-core/partmap/bsdlabel.c: Include grub/emu/misc.h and not grub/util/misc.h.
  9184. (iterate_real): Don't rely on partition being non-NULL.
  9185. 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
  9186. * grub-core/script/argv.c (round_up_exp): unsigned is 32-bit on all
  9187. supported platforms. Put a compile time assert for this rather than
  9188. generate a warning with 32-bit shift.
  9189. 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
  9190. * grub-core/disk/scsi.c (grub_scsi_read): Fix binary and check and make
  9191. logical expression more readable.
  9192. 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
  9193. * grub-core/disk/raid.c (insert_array): Ensure uniqueness of p->number
  9194. even if some elements have a name.
  9195. Reported by: Alexander GQ Gerasiov.
  9196. 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
  9197. * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Consider a
  9198. path unreadable if `grub-probe -t abstraction' fails, for example if
  9199. memberlist fails on an LVM volume group.
  9200. Reported by: Darius Jahandarie.
  9201. 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
  9202. * docs/grub.texi (Simple configuration): Document
  9203. GRUB_PRELOAD_MODULES.
  9204. 2011-01-17 Colin Watson <cjwatson@ubuntu.com>
  9205. * .bzrignore: Remove nonexistent grub-pbkdf2.
  9206. 2011-01-16 Vladimir Serbinenko <phcoder@gmail.com>
  9207. * configure.ac: Bump version to 1.99~rc1.
  9208. 2011-01-15 Vladimir Serbinenko <phcoder@gmail.com>
  9209. * util/grub-mkimage.c (generate_image): Check fwstart.img checksum
  9210. for safety.
  9211. 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
  9212. * grub-core/kern/mips/yeeloong/init.c (grub_machine_init): Init boot
  9213. module.
  9214. 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
  9215. * grub-core/Makefile.core.def (fwstart): Add lost LDFLAGS.
  9216. 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
  9217. * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Quote bootpath and
  9218. diskdevid.
  9219. 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
  9220. Fix compilation on cygwin.
  9221. * conf/Makefile.common (STRIPFLAGS_KERNEL): Add -F elf32-i386 and
  9222. -R .drectve on cygwin.
  9223. * conf/i386-pc-cygwin-img-ld.sc: Merge rdata and pdata into data.
  9224. * configure.ac: Use $(top_builddir) in TARGET_OBJ2ELF.
  9225. (COND_CYGWIN): New condition.
  9226. * grub-core/Makefile.am (%.mod): Set TARGET_OBJ2ELF.
  9227. * grub-core/genmod.sh.in: Use ${TARGET_OBJ2ELF} and
  9228. not @TARGET_OBJ2ELF@.
  9229. * util/grub-pe2elf.c (write_symbol_table): Use pe_symtab->type and not
  9230. type to determine whether aux is to be used.
  9231. 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
  9232. * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Use the
  9233. realpath'ed device string.
  9234. Handle floppy (somewhat).
  9235. Issue error in unknown case rather than garbage.
  9236. Reported by: Axel Beckert.
  9237. 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
  9238. * util/grub.d/00_header.in (load_video): Handle the case when no video
  9239. drivers available.
  9240. Thanks to: Axel Beckert.
  9241. 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
  9242. * util/grub-mkfont.c (write_font_pf2): Use appropriate type for data
  9243. variable. Fixes problem on big endian platforms.
  9244. 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
  9245. * grub-core/Makefile.core.def (ieee1275_fb): Disable on sparc.
  9246. It doesn't work well there.
  9247. 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
  9248. * grub-core/normal/context.c (grub_env_context_close): Silence spurious
  9249. warning.
  9250. * grub-core/normal/menu.c (grub_menu_execute_entry): Likewise.
  9251. * grub-core/partmap/msdos.c (pc_partition_map_embed): Use unsigned
  9252. counter.
  9253. 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
  9254. Use alias->path rather than buggy "canon".
  9255. * grub-core/disk/ieee1275/ofdisk.c (ofdisk_hash_add_real): New function.
  9256. (ofdisk_hash_add): New argument curcan. All users updated.
  9257. 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
  9258. * configure.ac: Fall back to `true' if `makeinfo' does not exist.
  9259. 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
  9260. * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32): Apply
  9261. loadmask before doing any calculations. Use correct type for offset.
  9262. (grub_linux_load64): Likewise.
  9263. 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
  9264. * util/grub-mklayout.c (console_grub_equivalences_shift): Terminate
  9265. with NULL.
  9266. (console_grub_equivalences_unshift): Likewise.
  9267. Reported by: Daniel Dehennin.
  9268. 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
  9269. * grub-core/fs/i386/pc/pxe.c (set_mac_env): Export variable.
  9270. (set_env_limn_ro): Likewise.
  9271. (GRUB_MOD_INIT): Likewise.
  9272. * grub-core/hook/datehook.c (GRUB_MOD_INIT): Likewise. Change to
  9273. ARRAY_SIZE while on it.
  9274. (GRUB_MOD_FINI): Change to ARRAY_SIZE.
  9275. * grub-core/normal/context.c (grub_env_export): Move from here ...
  9276. * grub-core/kern/env.c (grub_env_export): ... here.
  9277. * grub-core/normal/context.c (grub_cmd_export): Skip exporting root and
  9278. prefix.
  9279. * grub-core/kern/main.c (grub_main): Export root and prefix.
  9280. * include/grub/env.h (grub_env_export): Export.
  9281. Reported by: Seth Goldberg.
  9282. 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
  9283. * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
  9284. Take into account space used by ELF sections and multiboot palette.
  9285. Reported by: Grégoire Sutre.
  9286. 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
  9287. * BUGS: New file.
  9288. 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
  9289. Pass more appropriate video id to Linux.
  9290. * grub-core/loader/i386/linux.c (grub_linux_setup_video): Use
  9291. grub_video_get_driver_id and variable gfxpayloadforcelfb to
  9292. fill have_vga.
  9293. (grub_linux_boot): Rely on grub_linux_setup_video to fill have_vga and
  9294. shift params->lfb_size.
  9295. * include/grub/i386/linux.h: Make an enume out of have_vga values.
  9296. 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
  9297. * util/grub-menulst2cfg.c: Add missing include of misc.h.
  9298. 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
  9299. * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Use comma as
  9300. separator and pass bootpath/devid even if only one of them is available.
  9301. Reported by: Seth Goldberg.
  9302. 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
  9303. Don't use post-4G memory on EFI even if 64-bit since some non-compliant
  9304. implementations bug on them.
  9305. * grub-core/kern/efi/mm.c (grub_efi_allocate_pages): Skip post-4G
  9306. memory.
  9307. (filter_memory_map): Likewise.
  9308. 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
  9309. * util/grub-kbdcomp.in: Add missing prefix and exec_prefix variables.
  9310. Reported by: nebuchadnezzar.
  9311. 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
  9312. * util/grub-kbdcomp.in: Add missing transform and bindir variables.
  9313. Reported by: nebuchadnezzar.
  9314. 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
  9315. Submenu default support.
  9316. * grub-core/normal/menu.c (grub_menu_execute_entry): New parameter
  9317. auto_boot. All users updated.
  9318. Declared static.
  9319. Handle chosen and default with submenus.
  9320. (grub_menu_execute_with_fallback): Declared static.
  9321. Don't notify failure if autobooted. Upper level does it.
  9322. (menuentry_eq): New function.
  9323. (get_entry_number): Use menuentry_eq.
  9324. (show_menu): New parameter "autobooted". All users updated.
  9325. (grub_show_menu): Likewise.
  9326. * include/grub/normal.h (grub_show_menu): Likewise.
  9327. * include/grub/menu.h (grub_menu_execute_entry): Removed.
  9328. (grub_menu_execute_with_fallback): Likewise.
  9329. 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
  9330. * util/grub-mklayout.c (usage): Update help text.
  9331. 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
  9332. * grub-core/commands/legacycfg.c (legacy_file): Trim the line.
  9333. 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
  9334. * util/grub-menulst2cfg.c (main): Trim the line.
  9335. 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
  9336. * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): Removed.
  9337. (grub_machine_init): Don't check amount of low memory as reportedly
  9338. INT 12h can be broken and if low memory is too low we wouldn't have
  9339. gotten into grub_machine_init anyway.
  9340. 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
  9341. * grub-core/kern/i386/pc/mmap.c (grub_get_conv_memsize): New function.
  9342. (grub_machine_mmap_iterate): Take low memory into account
  9343. 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
  9344. * grub-core/fs/btrfs.c (grub_btrfs_mount): Transform out of range into
  9345. badfs.
  9346. Reported by: TiCPU.
  9347. 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
  9348. * grub-core/disk/raid.c (insert_array): Display RAID name in duplicate
  9349. members errors.
  9350. 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
  9351. * util/grub.d/10_netbsd.in (netbsd_load_fs_module): New function.
  9352. (netbsd_entry): Use netbsd_load_fs_module() to load filesystem module.
  9353. 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
  9354. * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Handle
  9355. openbsd and netbsd types being in part_bsd module.
  9356. 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
  9357. * config.h.in (_LARGEFILE_SOURCE): Add missing define.
  9358. (_FILE_OFFSET_BITS): Likewise.
  9359. Reported by: Seth Goldberg.
  9360. 2011-01-08 Grégoire Sutre <gregoire.sutre@gmail.com>
  9361. * configure.ac: Check for libdevmapper header.
  9362. 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
  9363. * grub-core/fs/zfs/zfs.c (dmu_read): Use void * for some pointers to
  9364. avoid aliasing.
  9365. (fzap_lookup): Likewise.
  9366. (dnode_get): Likewise.
  9367. (make_mdn): Likewise.
  9368. (zfs_mount): Likewise.
  9369. (fzap_iterate): Use temporary pointer to avoid aliasing.
  9370. (grub_zfs_read): Likewise.
  9371. * grub-core/loader/i386/xnu.c (grub_xnu_boot): Likewise.
  9372. * grub-core/loader/xnu.c (grub_cmd_xnu_kernel): Use void * for some
  9373. pointers to avoid aliasing.
  9374. (grub_cmd_xnu_kernel64): Likewise.
  9375. (grub_xnu_load_driver): Likewise.
  9376. 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
  9377. * grub-core/commands/terminal.c (grub_cmd_terminal_input): Silence
  9378. aliasing warning.
  9379. (grub_cmd_terminal_output): Likewise.
  9380. Reported and tested by: Grégoire Sutre.
  9381. 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
  9382. * grub-core/term/at_keyboard.c (grub_keyboard_getkey): Silence spurious
  9383. warning.
  9384. Reported and tested by: Grégoire Sutre.
  9385. 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
  9386. * configure.ac: Do CPU substitution even if it's specified explicitly.
  9387. Reported and tested by: Alain Greppin.
  9388. 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
  9389. * grub-core/Makefile.am (rs_decoder.S): Force compilation with -Os.
  9390. Reported and tested by: Alain Greppin.
  9391. 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
  9392. Satisfy some bison versions need for inttypes.h.
  9393. * grub-core/lib/posix_wrap/inttypes.h: New file.
  9394. * grub-core/lib/posix_wrap/sys/types.h (int8_t): New type.
  9395. (int16_t): Likewise.
  9396. (int32_t): Likewise.
  9397. (int64_t): Likewise.
  9398. Reported and tested by: Alain Greppin.
  9399. 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
  9400. * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta):
  9401. Silence spurious warning.
  9402. Reported and tested by: Alain Greppin.
  9403. 2011-01-07 Szymon Janc <szymon@janc.net.pl>
  9404. * docs/grub.texi (Support automatic decompression): Update with xz
  9405. decompression support.
  9406. 2011-01-07 Szymon Janc <szymon@janc.net.pl>
  9407. Improve loaders' kernel command line handling.
  9408. * grub-core/lib/cmdline.c: New file.
  9409. * include/grub/lib/cmdline.h: Likewise.
  9410. * grub-core/loader/i386/linux.c (grub_cmd_linux): Use
  9411. grub_create_loader_cmdline to create kernel command line.
  9412. * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
  9413. * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Likewise.
  9414. * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_linux): Likewise.
  9415. * grub-core/Makefile.core.def (linux16): Add lib/cmdline.c on i386_pc.
  9416. (linux): Add lib/cmdline.c on common.
  9417. 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
  9418. * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Take into account that
  9419. inopos might be unaligned.
  9420. 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
  9421. * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
  9422. endian transformations.
  9423. * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
  9424. Based on report by: Doug Nazar.
  9425. 2011-01-07 Doug Nazar <nazard.michi@gmail.com>
  9426. * grub-core/disk/raid5_recover.c (grub_raid5_recover): Add missing
  9427. array->members[i].start_sector.
  9428. * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
  9429. 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
  9430. * util/grub-setup.c (setup): Handle NetBSD and OpenBSD disklabels.
  9431. Reported and tested by: Grégoire Sutre.
  9432. 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
  9433. * tests/util/grub-shell.in: Set serial terminfo type to `dumb', to
  9434. avoid causing test failures by clearing the screen.
  9435. 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
  9436. * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
  9437. Fix prefix check to handle the case where dir ends with a slash
  9438. (most significantly, "/" itself).
  9439. Reported by: Michael Vogt.
  9440. 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
  9441. Run terminfo_cls on initing terminfo output to clear the screen and
  9442. move the cursor to (0,0).
  9443. * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_init_output):
  9444. Call grub_terminfo_output_init.
  9445. * grub-core/term/serial.c (grub_serial_term_output): Set .init.
  9446. * grub-core/term/terminfo.c (grub_terminfo_output_init): New function.
  9447. * include/grub/terminfo.h (grub_terminfo_output_init): New declaration.
  9448. 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
  9449. * util/grub-install.in: Determine ofpathname, nvsetenv and efibootmgr
  9450. only when needed.
  9451. 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
  9452. * grub-core/term/terminfo.c (grub_terminfo_readkey): Handle keys with
  9453. CTRL.
  9454. 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
  9455. The E820 type 5 is BADRAM, not EXEC_CODE.
  9456. * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
  9457. (GRUB_E820_BADRAM): New define.
  9458. * grub-core/loader/i386/linux.c (grub_linux_boot): Translate code
  9459. into reserved. Propagate BADRAM.
  9460. * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
  9461. (GRUB_E820_BADRAM): New define.
  9462. 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
  9463. * grub-core/lib/efi/relocator.c (grub_relocator_firmware_fill_events):
  9464. Ignore the memory post-4G.
  9465. (grub_relocator_firmware_alloc_region): Additional debug statement.
  9466. 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
  9467. * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Check md/%s
  9468. names.
  9469. Reported by: David Pravec.
  9470. 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
  9471. * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Workaround buggy
  9472. BIOSes.
  9473. 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
  9474. * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy):
  9475. Prevent overflow.
  9476. (grub_reed_solomon_recover): Likewise.
  9477. 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
  9478. * grub-core/lib/reed_solomon.c (main) [TEST]: Reactivate normal test.
  9479. 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
  9480. * grub-core/lib/reed_solomon.c (scratch) [! STANDALONE]: Remove leftover
  9481. variable.
  9482. 2011-01-04 Colin Watson <cjwatson@ubuntu.com>
  9483. * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Fix typo in
  9484. descriptions of extract_legacy_entries_source and
  9485. extract_legacy_entries_configfile.
  9486. Reported by: Seung Soo, Ha.
  9487. 2011-01-03 Colin Watson <cjwatson@ubuntu.com>
  9488. * grub-core/bus/pci.c (grub_pci_iterate): Skip remaining functions
  9489. on devices that do not implement function 0.
  9490. 2011-01-03 Dave Vasilevsky <dave@vasilevsky.ca>
  9491. * grub-core/fs/hfsplus.c: Make parent unsigned.
  9492. (grub_hfsplus_cmp_catkey): Don't compare using subtraction, it
  9493. overflows.
  9494. (grub_hfsplus_cmp_extkey): Likewise
  9495. 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
  9496. * util/grub-install.in: Correctly use bootloader_id and not
  9497. GRUB_DISTRIBUTOR on efibootmgr line.
  9498. 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
  9499. * util/grub-mkfont.c (main): Report errors in FT_New_Face.
  9500. 2010-12-31 Ian Campbell <ijc@hellion.org.uk>
  9501. * util/grub.d/20_linux_xen.in (linux_entry): Correctly capitalize
  9502. Xen and reorder menu item wording to make it clearer that this entry
  9503. will launch Xen. Print separate messages when loading Xen and
  9504. Linux.
  9505. 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
  9506. * grub-core/partmap/amiga.c (GRUB_AMIGA_PART_MAGIC): New define.
  9507. (amiga_partition_map_iterate): Check "PART" magic to avoid a very long
  9508. loop in case of incorrect amiga partmap.
  9509. 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
  9510. * grub-core/partmap/amiga.c (GRUB_AMIGA_RDSK_MAGIC): New define.
  9511. (amiga_partition_map_iterate): Use grub_memcmp instead of grub_strcmp.
  9512. Reported by:EHeM.
  9513. 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
  9514. * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Silence
  9515. spurious warning.
  9516. Reported by: crocket
  9517. 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
  9518. * grub-core/loader/xnu.c (grub_cmd_xnu_kernel) [! GRUB_MACHINE_EFI]:
  9519. Preload EFIemu.
  9520. (grub_cmd_xnu_kernel64) [! GRUB_MACHINE_EFI]: Likewise.
  9521. 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
  9522. * grub-core/loader/xnu.c (grub_cmd_xnu_kext): Abort if no kernel
  9523. is loaded
  9524. (grub_cmd_xnu_kextdir): Likewise.
  9525. (grub_cmd_xnu_splash): Likewise.
  9526. 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
  9527. Avoid using Reed-Solomon with 0 redundancy.
  9528. * grub-core/kern/i386/pc/startup.S: Remove 0-data check.
  9529. * grub-core/lib/reed_solomon.c (decode_block): Do not proceed on 0 data
  9530. or 0 redundancy.
  9531. (grub_reed_solomon_add_redundancy): Do not proceed with 0 redundancy.
  9532. (grub_reed_solomon_recover): Likewise.
  9533. 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
  9534. Don't use disk subsystem in freebsd_boot.
  9535. * grub-core/loader/i386/bsd.c (freebsd_bootdev): New variable.
  9536. (freebsd_biosdev): Likewise.
  9537. (grub_freebsd_boot): Use freebsd_bootdev and freebsd_biosdev.
  9538. (grub_cmd_freebsd): Set freebsd_bootdev and freebsd_biosdev.
  9539. 2010-12-26 Vladimir Serbinenko <phcoder@gmail.com>
  9540. Handling of files of unknown size is currently limited. They can't be
  9541. used e.g. for initrd or modules. Moreover gzip handling of not
  9542. easily seekable files is buggy. Disable unknown file size for now. May
  9543. be inefficient but works.
  9544. * grub-core/io/gzio.c (test_header): Always retrieve the file size.
  9545. * grub-core/io/xzio.c (grub_xzio_open): Likewise.
  9546. 2010-12-25 Mirko Parthey <mirko.parthey@informatik.tu-chemnitz.de>
  9547. * grub-core/boot/i386/pc/boot.S: Fix %es:%bx pointing to nowhere on
  9548. floppy probe.
  9549. 2010-12-25 Jeroen Dekkers <jeroen@dekkers.ch>
  9550. * grub-core/disk/raid.c (insert_array): Don't add spurious members.
  9551. 2010-12-25 Shea Levy <shlevy>
  9552. * grub-core/genmod.sh.in: Use @OBJCOPY@ rather than objcopy.
  9553. 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
  9554. * util/grub.d/30_os-prober.in: Don't emit drivemap directive for
  9555. Windows Server 2008.
  9556. Reported by: Devin Giddings.
  9557. 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
  9558. * grub-core/commands/acpihalt.c (grub_acpi_halt): Sleep for 1.5 before
  9559. writing an error message because of async power management.
  9560. * grub-core/kern/mips/yeeloong/init.c (grub_halt): Likewise.
  9561. (grub_reboot): Likewise.
  9562. 2010-12-23 Jordan Uggla <jordan.uggla@gmail.com>
  9563. * tests/util/grub-shell.in: Suppress "ACPI shutdown failed" error to
  9564. keep unit tests from failing when they shouldn't.
  9565. 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
  9566. * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): The
  9567. previous patch increased the size of the RS code by 20 bytes (at
  9568. least with gcc-4.4), so increase this by 20 bytes to match.
  9569. (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
  9570. 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
  9571. * grub-core/lib/reed_solomon.c (gauss_solve): Fix size of standalone
  9572. scratch area. Make sure to initialise chosen in standalone mode as
  9573. well as non-standalone.
  9574. Reported by: Robert Hooker and Andy Whitcroft.
  9575. Tested by: Andy Whitcroft.
  9576. 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
  9577. * grub-core/commands/echo.c (grub_cmd_echo): Make UTF-8-clean by
  9578. constructing a new unescaped string and passing it to grub_xputs in
  9579. one go, rather than passing characters to grub_printf one at a time.
  9580. 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
  9581. * grub-core/fs/udf.c (read_string): Pacify GCC warning by
  9582. initialising utf16.
  9583. 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
  9584. * util/grub-mkconfig_lib.in (gettext_quoted): Add clarifying
  9585. comment. Add an extra layer of quotation, requiring the output of
  9586. this function to be used in a printf format string.
  9587. (gettext_printf): New function.
  9588. * util/grub.d/10_hurd.in: Use gettext_printf where appropriate.
  9589. Extract translatable strings from here-documents and use a temporary
  9590. variable instead, so that xgettext can find them.
  9591. * util/grub.d/10_kfreebsd.in: Likewise.
  9592. * util/grub.d/10_linux.in: Likewise.
  9593. * util/grub.d/20_linux_xen.in: Likewise.
  9594. * po/grub.d.sed: New file.
  9595. * po/Makefile.in.in ($(DOMAIN).pot-update): Extract gettext_printf
  9596. arguments. Set c-format flags on all strings extracted from
  9597. util/grub.d/ (xgettext refuses to include these itself for strings
  9598. it extracted from a shell file, but these really are c-format).
  9599. 2010-12-20 Vladimir Serbinenko <phcoder@gmail.com>
  9600. * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_add_module):
  9601. Avoid next pointing to nowhere.
  9602. 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
  9603. * grub-core/fs/affs.c (grub_affs_mount): Read data->bblock.rootblock
  9604. rather than assuming than rootblock is exactly in the middle.
  9605. (grub_affs_label): Likewise.
  9606. 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
  9607. * grub-core/fs/affs.c (grub_affs_fs) [GRUB_UTIL]: Explicitly set
  9608. reserved_first_sector to 0.
  9609. * grub-core/fs/cpio.c (grub_cpio_fs) [GRUB_UTIL]: Likewise.
  9610. * grub-core/fs/sfs.c (grub_sfs_fs) [GRUB_UTIL]: Likewise.
  9611. * grub-core/fs/xfs.c (grub_xfs_fs) [GRUB_UTIL]: Likewise.
  9612. 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
  9613. Fix handling of UTF-16 UDF labels.
  9614. * grub-core/fs/udf.c (grub_udf_iterate_dir): Move string-parsing part
  9615. (read_string): .. here.
  9616. (grub_udf_label): Use read_string.
  9617. 2010-12-19 BVK Chaitanya <bvk.groups@gmail.com>
  9618. * grub-core/normal/menu_entry.c (run): Execute commands from menu
  9619. editor under argument scope.
  9620. Reported by: Jordan Uggla
  9621. 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
  9622. * util/grub-mkfont.c (main): Handle errors from FT_Set_Pixel_Sizes.
  9623. 2010-12-18 Colin Watson <cjwatson@ubuntu.com>
  9624. * grub-core/normal/term.c (print_more): Make \r or \n scroll one
  9625. line, and other keys scroll an entire page (previous handling was
  9626. for \r and \n to scroll a page and other keys to scroll two lines).
  9627. 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
  9628. * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
  9629. Set ptrdest to correct get_physical_target_address rather than
  9630. incorrect get_virtual_current_address.
  9631. 2010-12-18 kashyap garimella <garimella.kashyap@gmail.com>
  9632. * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_load): Use
  9633. correct cat to grub_uint8_t * rather than grub_uint32_t *.
  9634. 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
  9635. * .bzrignore: Ignore grub-core/rs_decoder.S.
  9636. 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
  9637. * grub-core/gettext/gettext.c (grub_gettext_init_ext): Factor out
  9638. .mo/.mo.gz opening sequence to ...
  9639. (grub_mofile_open_lang): ... here.
  9640. (grub_gettext_init_ext): If opening ll_CC fails, try ll.
  9641. * util/grub.d/00_header.in (grub_lang): Include country part of
  9642. locale.
  9643. Reported by: Mario Limonciello.
  9644. 2010-12-09 Robert Millan <rmh@gnu.org>
  9645. * NEWS: Document addition of ZFS support.
  9646. 2010-12-04 Colin Watson <cjwatson@ubuntu.com>
  9647. * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Use `>> 1'
  9648. rather than `/ 2', as the latter requires -Wa,--divide which would
  9649. require bumping our minimum binutils version.
  9650. 2010-12-03 BVK Chaitanya <bvk.groups@gmail.com>
  9651. * util/grub-script-check.c (main): Print script line number on
  9652. error.
  9653. 2010-12-01 Robert Millan <rmh@gnu.org>
  9654. * grub-core/fs/zfs/zfs.c: New file.
  9655. * grub-core/fs/zfs/zfs_fletcher.c: Likewise.
  9656. * grub-core/fs/zfs/zfs_lzjb.c: Likewise.
  9657. * grub-core/fs/zfs/zfs_sha256.c: Likewise.
  9658. * grub-core/fs/zfs/zfsinfo.c: Likewise.
  9659. * include/grub/zfs/dmu.h: Likewise.
  9660. * include/grub/zfs/dmu_objset.h: Likewise.
  9661. * include/grub/zfs/dnode.h: Likewise.
  9662. * include/grub/zfs/dsl_dataset.h: Likewise.
  9663. * include/grub/zfs/dsl_dir.h: Likewise.
  9664. * include/grub/zfs/sa_impl.h: Likewise.
  9665. * include/grub/zfs/spa.h: Likewise.
  9666. * include/grub/zfs/uberblock_impl.h: Likewise.
  9667. * include/grub/zfs/vdev_impl.h: Likewise.
  9668. * include/grub/zfs/zap_impl.h: Likewise.
  9669. * include/grub/zfs/zap_leaf.h: Likewise.
  9670. * include/grub/zfs/zfs.h: Likewise.
  9671. * include/grub/zfs/zfs_acl.h: Likewise.
  9672. * include/grub/zfs/zfs_znode.h: Likewise.
  9673. * include/grub/zfs/zil.h: Likewise.
  9674. * include/grub/zfs/zio.h: Likewise.
  9675. * include/grub/zfs/zio_checksum.h: Likewise.
  9676. * Makefile.util.def: Build ZFS into libgrubmods.
  9677. * grub-core/Makefile.core.def: Build zfs.mod.
  9678. 2010-11-30 Szymon Janc <szymon@janc.net.pl>
  9679. * grub-core/commands/regexp.c (grub_cmd_regexp): Remove unused
  9680. variable.
  9681. * grub-core/commands/wildcard.c (match_files): Likewise.
  9682. 2010-11-30 Robert Millan <rmh@gnu.org>
  9683. * grub-core/loader/i386/bsd.c
  9684. (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module_elf): Check
  9685. whether kernel is loaded using grub_loader_is_loaded(), rather
  9686. than `kernel_type', which may still be `KERNEL_TYPE_NONE' under
  9687. certain error conditions.
  9688. 2010-11-30 Robert Millan <rmh@gnu.org>
  9689. * grub-core/commands/echo.c: Include `<grub/term.h>'.
  9690. (grub_cmd_echo): Call grub_refresh() after printing a message.
  9691. 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
  9692. Avoid using tricks for initialising endian variables.
  9693. * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot):
  9694. Make const.
  9695. (GRUB_MOD_INIT): Don't byte-swap.
  9696. * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
  9697. Use grub_cpu_to_le16_compile_time and grub_cpu_to_le32_compile_time.
  9698. * include/grub/types.h (grub_swap_bytes16_compile_time): New macro.
  9699. (grub_swap_bytes32_compile_time): Likewise.
  9700. (grub_cpu_to_le32_compile_time): Likewise.
  9701. (grub_cpu_to_le16_compile_time): Likewise.
  9702. 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
  9703. * util/grub-setup.c (setup): Stop recommending --force. People who
  9704. understand the dangers of blocklists are able to find this option
  9705. anyway and the ones who don't shouldn't use it anyway.
  9706. 2010-11-26 Robert Millan <rmh@gnu.org>
  9707. * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN): Beautify.
  9708. Update all users.
  9709. 2010-11-26 Colin Watson <cjwatson@ubuntu.com>
  9710. Fix LVM-on-RAID probing.
  9711. * util/grub-probe.c (probe): Remember which disk was detected as
  9712. RAID (perhaps an LVM physical volume). Use that disk's raidname
  9713. rather than that of the top-level disk.
  9714. 2010-11-25 BVK Chaitanya <bvk.groups@gmail.com>
  9715. Fix cmdline argument quotes for setparams command of menuentry
  9716. definitions.
  9717. * grub-core/commands/menuentry.c (setparams_prefix): Use single
  9718. quotes for arguments.
  9719. * grub-core/lib/legacy_parse.c (grub_legacy_escape): Use
  9720. grub_strchrsub function instead.
  9721. * include/grub/misc.h (grub_strchrsub): New function.
  9722. 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
  9723. * util/deviceiter.c (grub_util_iterate_devices): Save a bit of
  9724. effort by skipping "." and ".." entries up-front.
  9725. Suggested by: Michael Lazarev.
  9726. 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
  9727. * grub-core/Makefile.core.def (xz_decompress): Move -lgcc from
  9728. ldflags to ldadd, to fix link line ordering.
  9729. (none_decompress): Likewise.
  9730. 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
  9731. * grub-core/Makefile.core.def (kernel): Add kern/emu/cache.S for emu
  9732. platforms.
  9733. (grub-emu-lite): Remove kern/emu/cache.S.
  9734. 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
  9735. * util/deviceiter.c (compare_devices): If the by-id link for a
  9736. device couldn't be resolved, fall back to sorting by the by-id link
  9737. rather than segfaulting.
  9738. Reported and tested by: Daniel Mierswa.
  9739. 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
  9740. * Makefile.util.def (grub-menulst2cfg): List libraries in ldadd, not
  9741. ldflags, to fix link line ordering.
  9742. 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
  9743. * grub-core/Makefile.am (gentrigtables): Put -lm after $<; some
  9744. linkers are picky about this.
  9745. 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
  9746. * grub-core/Makefile.am (command.lst): Adjust sed expression
  9747. ordering so that extended and priority commands aren't treated as
  9748. ordinary commands.
  9749. 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
  9750. * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
  9751. Remove byte-swapping function calls, which are not valid in
  9752. structure initialisers.
  9753. * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot): Make
  9754. non-const.
  9755. (GRUB_MOD_INIT): Byte-swap data1, data2, and data3 fields of
  9756. grub_gpt_partition_type_bios_boot.
  9757. 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
  9758. Fix test program build on GNU/kFreeBSD.
  9759. * Makefile.util.def (example_unit_test): Add `$(LIBZFS)
  9760. $(LIBNVPAIR)' library dependencies.
  9761. 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
  9762. * util/grub-install.in: Fix parsing of --grub-mkrelpath= option.
  9763. 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
  9764. * util/grub-install.in: Remove excessive quoting that broke
  9765. installations to RAID devices.
  9766. 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
  9767. * grub-core/loader/i386/linux.c (grub_cmd_linux): Pass correctly the
  9768. bootloader version instead of 0.
  9769. 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
  9770. * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix spurious
  9771. warning.
  9772. 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
  9773. * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Don't try to
  9774. retrieve the metadat sector if size isn't known.
  9775. * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
  9776. 2010-11-18 Robert Millan <rmh@gnu.org>
  9777. * grub-core/fs/btrfs.c (grub_btrfs_mount): Replace grub_strncmp()
  9778. with grub_memcmp().
  9779. 2010-11-18 Vladimir Serbinenko <phcoder@gmail.com>
  9780. * grub-core/normal/menu_entry.c (print_up): Fix displacement of up
  9781. arrow.
  9782. Reported by: Jordan Uggla.
  9783. 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
  9784. Make better UTF compliant.
  9785. * grub-core/normal/charset.c (grub_utf8_to_utf16): Handle 6- and 7-byte
  9786. sequences as incorrect.
  9787. (grub_is_valid_utf8): Likewise.
  9788. (grub_utf8_to_ucs4): Likewise.
  9789. (grub_ucs4_to_utf8): Handle codepoints outside of BMP.
  9790. (grub_ucs4_to_utf8_alloc): Likewise.
  9791. * include/grub/charset.h (grub_utf16_to_utf8): Likewise.
  9792. 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
  9793. Make legacy_source behave like source.
  9794. * grub-core/commands/legacycfg.c (legacy_file): Don't call
  9795. grub_show_menu.
  9796. (grub_cmd_legacy_source): Call grub_show_menu if needed.
  9797. 2010-11-16 Colin Watson <cjwatson@debian.org>
  9798. * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-unused-parameter.
  9799. (-Wunused implies -Wunused-parameter, but not vice versa).
  9800. 2010-11-16 Colin Watson <cjwatson@ubuntu.com>
  9801. * configure.ac: Make error messages less confusing by testing for
  9802. -Wtrampolines rather than -Wno-trampolines (since -Wno-* is always
  9803. accepted, but produces a diagnostic if something else is wrong).
  9804. 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
  9805. * grub-core/term/at_keyboard.c (grub_keyboard_controller_read)
  9806. [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: ifdef-ed out
  9807. (now unused).
  9808. (grub_keyboard_controller_init)
  9809. [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: Don't attempt to
  9810. read the initial state since controller isn't inited yet.
  9811. 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
  9812. * grub-core/lib/relocator.c (malloc_in_range): Take into account that
  9813. allocate_regbeg may need to create new chunk header.
  9814. 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
  9815. Fix quoting in legacy parser.
  9816. * grub-core/lib/legacy_parse.c (grub_legacy_escape): Correctly handle
  9817. single quotes.
  9818. (grub_legacy_parse): Likewise.
  9819. Reported by: Jordan Uggla.
  9820. Tested by: Jordan Uggla.
  9821. 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
  9822. Don't add -lgcc on i386 and x86_64.
  9823. * configure.ac (LIBS): Don't add -lgcc on i386 and x86_64.
  9824. * conf/Makefile.common (LDADD_KERNEL): Likewise.
  9825. * grub-core/Makefile.core.def (kernel): Use LDADD_KERNEL.
  9826. 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
  9827. * configure.ac: Add -Wno-trampolines when supported.
  9828. 2010-11-14 Modestas Vainius <modax@debian.org>
  9829. * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Recognise ddf1_
  9830. fakeraid.
  9831. 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
  9832. Add generic logical block size support for UDF.
  9833. * grub-core/fs/udf.c (GRUB_UDF_LOG2_BLKSIZE): Removed.
  9834. (GRUB_UDF_BLKSZ): Removed.
  9835. (struct grub_udf_data): New field "lbshift" to hold the logical block
  9836. size of the file system in log2 format. All users updated.
  9837. (sblocklist): Change type to unsigned.
  9838. (grub_udf_mount): Change type of "sblklist" to unsigned.
  9839. Move AVDP search before VRS recognition, because the latter requires
  9840. knowledge of the logical block size, which is detected during the
  9841. former.
  9842. Detect and validate logical block size during AVDP search, adding
  9843. support for block sizes 512, 1024 and 4096.
  9844. Make VRS recognition independent of block size.
  9845. 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
  9846. Properly handle deleted files on UDF.
  9847. * grub-core/fs/udf.c (grub_udf_iterate_dir): Skip directory entries
  9848. whose "characteristics" field has the bit GRUB_UDF_FID_CHAR_DELETED
  9849. set.
  9850. 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
  9851. Support reading files larger than 2 GiB.
  9852. * grub-core/fs/udf.c (grub_udf_iterate_dir): Change type of variable
  9853. "offset" to grub_off_t.
  9854. (grub_udf_read_file): Likewise for parameter "pos".
  9855. 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
  9856. * docs/grub.texi (Changes from GRUB Legacy): Note when save_env is
  9857. unavailable.
  9858. (Simple configuration): Refer to Changes from GRUB Legacy about
  9859. save_env availability.
  9860. 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
  9861. * util/grub-install.in: Ignore empty partition table detection
  9862. instead of trying to include part_ module.
  9863. 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
  9864. * grub-core/disk/lvm.c (GRUB_MOD_FINI): Reset the vg_list. Fixes
  9865. LVM on RAID support.
  9866. 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
  9867. Properly define WORDS_BIGENDIAN in wrapped environments.
  9868. * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN): New
  9869. definition.
  9870. * grub-core/lib/posix_wrap/sys/types.h (WORDS_BIGENDIAN): Likewise.
  9871. Reported by: Manoel Rebelo Abranches.
  9872. Tested by: Manoel Rebelo Abranches.
  9873. 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
  9874. * util/grub-mkconfig.in: Fix quoting.
  9875. 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
  9876. Support big ext2 files.
  9877. * grub-core/fs/ext2.c (grub_ext2_inode): Rename dir_acl to size_high.
  9878. (grub_ext2_read_block): Support triple indirect blocks.
  9879. (grub_ext2_read_file): Use 64-bit types and read size_high.
  9880. (grub_ext2_open): Read size_high.
  9881. Reported by: Ximin Luo.
  9882. Tested by: Manoel Rebelo Abranches.
  9883. 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
  9884. * util/grub-install.in: Handle filenames containing spaces.
  9885. Reported by: Jordan Uggla.
  9886. Tested by: Jordan Uggla.
  9887. 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
  9888. * util/grub-mkconfig.in (grub_script_check): New variable.
  9889. Use grub_script_check instead of grub-script-check.
  9890. Reported by: Barry Jackson.
  9891. 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
  9892. * docs/grub.texi (menu): Correct the order.
  9893. Reported by: D. Hugh Redelmeier.
  9894. 2010-11-12 Vladimir Serbinenko <phcoder@gmail.com>
  9895. * grub-core/kern/i386/pc/startup.S (multiboot_trampoline): Add missing
  9896. jump.
  9897. 2010-11-08 Manoel Rebelo Abranches <mrabran@br.ibm.com>
  9898. * include/grub/elfload.h (grub_elf32_size): New parameter.
  9899. All users updated.
  9900. Return maximum segments alignment.
  9901. (grub_elf64_size): Likewise.
  9902. * kern/elf.c (grub_elf32_size): New parameter. All users updated.
  9903. Return maximum segments alignment.
  9904. (grub_elf64_size): Likewise.
  9905. * grub-core/loader/powerpc/ieee1275/linux.c:
  9906. (grub_linux_claimmap_iterate): New function. Uses the
  9907. "available" property in the "memory" node for memory allocation
  9908. for kernel in the PowerPC loader.
  9909. (grub_linux_load32): Correctly find linux entry point offset.
  9910. (grub_linux_load64): Likewise.
  9911. 2010-11-07 Robert Millan <rmh@gnu.org>
  9912. On mips-yeeloong, build with -march=loongson2f when this flag is
  9913. available (GCC >= 4.4).
  9914. * conf/Makefile.common [COND_mips_yeeloong] (CFLAGS_PLATFORM): Remove
  9915. `-march=mips3'.
  9916. * configure.ac: For mips-yeeloong, add -march=loongson2f if available,
  9917. or otherwise add -march=mips3.
  9918. 2010-11-07 BVK Chaitanya <bvk.groups@gmail.com>
  9919. Suppress shell expansion on echo '*' and echo "*" like cases.
  9920. Reported by: Jordan Uggla.
  9921. * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
  9922. string arguments before shell expansion.
  9923. * tests/grub_cmd_echo.in: New testcases.
  9924. 2010-11-07 Robert Millan <rmh@gnu.org>
  9925. * conf/mips-qemu-mips.rmk: Remove stale file from previous
  9926. transition.
  9927. 2010-11-07 Vladimir Serbinenko <phcoder@gmail.com>
  9928. * grub-core/kern/emu/hostdisk.c
  9929. (convert_system_partition_to_system_disk): Handle devices like "sdaa1".
  9930. 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
  9931. * include/grub/emu/misc.h: Don't include grub/util/libzfs.h.
  9932. * include/grub/emu/misc.h (grub_get_libzfs_handle): Move from here ...
  9933. * include/grub/util/libzfs.h (grub_get_libzfs_handle): ... here.
  9934. 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
  9935. * grub-core/fs/ntfs.c (grub_ntfs_uuid): Make uppercase.
  9936. 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
  9937. * util/grub-install.in: Replace useless recomendation to pass
  9938. --modules with a recomendation to report a bug.
  9939. 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
  9940. Properly register serial terminfo.
  9941. Reported by: Jordan Uggla
  9942. * grub-core/term/serial.c (grub_serial_terminfo_input_template): New
  9943. const.
  9944. (grub_serial_terminfo_output_template): Likewise.
  9945. (grub_cmd_serial): Register "serial" with terminfo.
  9946. (GRUB_MOD_INIT(serial)): Fill grub_serial_terminfo_input and
  9947. grub_serial_terminfo_output.
  9948. 2010-11-05 Robert Millan <rmh@gnu.org>
  9949. * util/grub-mkconfig.in: Remove gfxterm.mod probe (no longer
  9950. needed).
  9951. 2010-11-05 Robert Millan <rmh@gnu.org>
  9952. On Yeeloong, pass machine type information to Linux.
  9953. * grub-core/loader/mips/linux.c [GRUB_MACHINE_MIPS_YEELOONG]
  9954. (LOONGSON_MACHTYPE): New macro, set to
  9955. "machtype=lemote-yeeloong-2f-8.9inches".
  9956. [LOONGSON_MACHTYPE] (grub_cmd_linux): Pass LOONGSON_MACHTYPE as
  9957. additional argument to Linux.
  9958. 2010-11-04 Robert Millan <rmh@gnu.org>
  9959. * util/deviceiter.c (grub_util_iterate_devices): Increase SCSI
  9960. limit to 48 (to cope with Sun Fire X4500), and IDE limit to 96
  9961. (its SATA disks are detected as slaveless IDE master drives on
  9962. kFreeBSD).
  9963. Reported by Carsten Aulbert.
  9964. 2010-11-02 Colin Watson <cjwatson@ubuntu.com>
  9965. * util/bin2h.c (main): Fix spelling error in generated output.
  9966. 2010-11-01 Grégoire Sutre <gregoire.sutre@gmail.com>
  9967. * grub-core/partmap/bsdlabel.c (iterate_real): Fix an integer overflow.
  9968. 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
  9969. * grub-core/loader/i386/linux.c (grub_cmd_linux): Autoload vbe.mod if
  9970. vga= option is supplied.
  9971. 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
  9972. * util/grub.d/10_hurd.in: Don't call savedefault on recovery entries.
  9973. * util/grub.d/10_kfreebsd.in: Likewise.
  9974. * util/grub.d/10_linux.in: Likewise.
  9975. * util/grub.d/20_linux_xen.in: Likewise.
  9976. 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
  9977. * grub-core/lib/arg.c (grub_arg_parse): Avoid interpreting direct
  9978. argument as an argument to no-argument option.
  9979. 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
  9980. * util/grub.d/10_linux.in: Add missing load_video with explicit
  9981. GRUB_GFXPAYLOAD_LINUX.
  9982. 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
  9983. * Makefile.am (libgrub.pp): Propagate the libgrub.a split.
  9984. 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
  9985. * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Do not put
  9986. elements with invlid index.
  9987. * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
  9988. * grub-core/disk/raid.c (insert_array): Automatically reallocate
  9989. members.
  9990. * include/grub/raid.h (grub_raid_member): New struct.
  9991. (grub_raid_array): Transform devices and start_sector into usage of
  9992. grub_raid_member. All users updated
  9993. (allocated_devs): New member.
  9994. 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
  9995. * docs/man/grub-set-default.h2m: Clarify that only saved default entry
  9996. is modified
  9997. 2010-10-29 BVK Chaitanya <bvk.groups@gmail.com>
  9998. NetBSD build fix for getline function conflict from gnulib.
  9999. * Makefile.util.def (libgrubkern.a): New library for grub kernel
  10000. components that depend on gnulib headers.
  10001. (libgrubmods.a): Renamed from earlier libgrub.a.
  10002. * conf/Makefile.common: Remove gnulib from *_LIBRARY flags.
  10003. 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
  10004. * util/grub-setup.c (setup): Refuse to do a cross-disk embeddingless
  10005. install rather than creating a broken install.
  10006. 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
  10007. * util/grub-setup.c (argp): Remove misleading example of installing to
  10008. a partition.
  10009. 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
  10010. * util/grub-setup.c (setup): Clarify the error message.
  10011. 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
  10012. * include/grub/types.h (grub_target_off_t): Removed no longer used type.
  10013. 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
  10014. * grub-core/kern/emu/misc.c
  10015. (grub_make_system_path_relative_to_its_root)
  10016. [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Fix mountpoint return on ZFS.
  10017. 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
  10018. * grub-core/kern/emu/misc.c
  10019. (grub_make_system_path_relative_to_its_root): Revert r2882.
  10020. 2010-10-22 Vladimir Serbinenko <phcoder@gmail.com>
  10021. * grub-core/lib/relocator.c (grub_relocator_subchunk): Remove now
  10022. useless field head. All users updated.
  10023. (free_subchunk): Correct handling of IN_REGION subchunk.
  10024. 2010-10-22 Colin Watson <cjwatson@ubuntu.com>
  10025. * docs/grub.texi (Installing GRUB using grub-install): Proofread.
  10026. (Supported kernels): Likewise.
  10027. 2010-10-18 Grégoire Sutre <gregoire.sutre@gmail.com>
  10028. Make mktemp invocations portable.
  10029. * grub-core/genmod.sh.in: Use mktemp with an explicit template, and
  10030. exit if mktemp fails.
  10031. * tests/grub_script_blockarg.in: Likewise.
  10032. * tests/partmap_test.in: Likewise.
  10033. * tests/util/grub-shell-tester.in: Likewise.
  10034. * tests/util/grub-shell.in: Likewise.
  10035. * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
  10036. * Makefile.am: Likewise, and chain shell commands with `&&'
  10037. instead of ';'.
  10038. * util/grub-mkrescue.in: Use the same explicit template as above, and
  10039. exit if mktemp fails.
  10040. 2010-10-18 BVK Chaitanya <bvk.groups@gmail.com>
  10041. * util/grub.d/10_linux.in: Fix built-in initramfs image mode for
  10042. Linux kernel, reported by Dennis Schridde.
  10043. 2010-10-17 Szymon Janc <szymon@janc.net.pl>
  10044. * grub-core/normal/auth.c (grub_auth_check_authentication):
  10045. Set-but-not-used variable removed.
  10046. 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
  10047. * docs/grub.texi (GNU/Linux): Document APM unavailability with
  10048. 32-bit linux protocol.
  10049. 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
  10050. * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Check
  10051. cursor shape for sanity.
  10052. 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
  10053. * docs/grub.texi (Installation): Document buggy BIOS install.
  10054. 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
  10055. * docs/grub.texi (Installation): Indent.
  10056. 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
  10057. * util/grub-setup.c (setup): New parameter allow_floppy.
  10058. (arguments): New member allow_floppy.
  10059. (argp_parser): Handle --allow-floppy.
  10060. (main): Pass allow_floppy.
  10061. * util/grub-install.in: New option --allow-floppy passed though to
  10062. grub-setup.
  10063. 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
  10064. * util/grub-install.in: Handle partitionless disks.
  10065. 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
  10066. * util/grub-setup.c (setup): Don't clean blocklists before readability
  10067. verfification.
  10068. 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
  10069. * docs/grub.texi (Installation): Document embedding zone. Remove
  10070. obsolete grub-install example.
  10071. 2010-10-16 Szymon Janc <szymon@janc.net.pl>
  10072. * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
  10073. Set-but-not-used variable ifdef'ed.
  10074. * grub-core/lib/legacy_parse.c (grub_legacy_parse): Likewise.
  10075. * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Set-but-not-used
  10076. variable removed.
  10077. * grub-core/disk/lvm.c (grub_lvm_scan_device): Likewise.
  10078. * grub-core/fs/jfs.c (grub_jfs_find_file): Likewise.
  10079. * grub-core/fs/minix.c (grub_minix_dir): Likewise.
  10080. * grub-core/fs/sfs.c (grub_sfs_read_extent): Likewise.
  10081. * grub-core/fs/ufs.c (grub_ufs_dir): Likewise.
  10082. * grub-core/gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
  10083. * grub-core/gfxmenu/view.c (redraw_menu_visit): Likewise.
  10084. * grub-core/gfxmenu/widget-box.c (draw): Likewise.
  10085. * grub-core/lib/relocator.c (malloc_in_range): Likewise.
  10086. * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta): Likewise.
  10087. * grub-core/loader/i386/bsd_pagetable.c (fill_bsd64_pagetable):
  10088. Likewise.
  10089. 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
  10090. * grub-core/commands/acpihalt.c (skip_ext_op): Skip index field op.
  10091. * include/grub/acpi.h (GRUB_ACPI_EXTOPCODE_INDEX_FIELD_OP): New
  10092. enum value.
  10093. 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
  10094. * grub-core/commands/acpihalt.c (get_sleep_type): Accept \_S5_ as
  10095. synonym to _S5_. Needed for some DSDTs.
  10096. 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
  10097. Userspace ACPI parser debugging.
  10098. * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Include userspace
  10099. headers and add relevant defines. Don't include standard headers.
  10100. (main) [GRUB_DSDT_TEST]: New function.
  10101. * include/grub/acpi.h [GRUB_DSDT_TEST]: Don't include standard headers.
  10102. Don't declare functions.
  10103. 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
  10104. Remove dead grub_efi_mm_fini.
  10105. * grub-core/kern/efi/mm.c (allocated_page): Removed.
  10106. (ALLOCATED_PAGES_SIZE): Likewise.
  10107. (MAX_ALLOCATED_PAGES): Likewise.
  10108. (allocated_pages): Likewise.
  10109. (grub_efi_allocate_pages): Don't record allocated pages.
  10110. (grub_efi_free_pages): Likewise.
  10111. (grub_efi_mm_init): Likewise.
  10112. (grub_efi_mm_fini): Removed.
  10113. 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
  10114. * grub-core/kern/efi/mm.c (BYTES_TO_PAGES): Round up instead of down.
  10115. (grub_efi_mm_init): Take into account the memory map size increase.
  10116. 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
  10117. * grub-core/term/ns8250.c (do_real_config): Set port->broken to 0.
  10118. (serial_hw_put): Wait based on real time rather than port reads. Don't
  10119. roken ports.
  10120. * include/grub/serial.h (grub_serial_port): New field broken.
  10121. 2010-10-16 Robert Millan <rmh@gnu.org>
  10122. * grub-core/kern/emu/misc.c
  10123. (grub_make_system_path_relative_to_its_root): Fix premature return
  10124. when processing non-root ZFS filesystems.
  10125. Reported by Sergio Talens-Oliag.
  10126. 2010-10-15 Robert Millan <rmh@gnu.org>
  10127. * util/grub.d/10_linux.in (list): Expand "vmlinu[zx]" instances to
  10128. guarantee compressed ones are processed first.
  10129. 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
  10130. * grub-core/efiemu/main.c (grub_efiemu_prepare): Handle errors from
  10131. grub_efiemu_autocore.
  10132. 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
  10133. * grub-core/kern/i386/pc/startup.S (bypass_table): Use 0x1b explicitly
  10134. rather than 0x1b.
  10135. (grub_console_getkey): Use correct jae opcode rather than ja.
  10136. 2010-10-12 Robert Millan <rmh@gnu.org>
  10137. * util/grub-mkconfig.in: Merge `GRUB_DISABLE_LINUX_RECOVERY' and
  10138. `GRUB_DISABLE_NETBSD_RECOVERY' into a single `GRUB_DISABLE_RECOVERY'
  10139. variable. All references updated.
  10140. * util/grub.d/10_kfreebsd.in: Support recovery boot entries.
  10141. 2010-10-08 Vladimir Serbinenko <phcoder@gmail.com>
  10142. Correctly distinguish mdraid flavours.
  10143. * grub-core/disk/raid.c (grub_raid_getname) [GRUB_UTIL]: New function.
  10144. (insert_array): New argument raid.
  10145. * include/grub/disk.h (grub_disk_dev) [GRUB_UTIL]: New member raidname.
  10146. * include/grub/raid.h (grub_raid_array) [GRUB_UTIL]: New member driver.
  10147. * util/grub-probe.c (probe): PRint raidname instead of plainly "mdraid".
  10148. 2010-10-09 Vladimir Serbinenko <phcoder@gmail.com>
  10149. * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Fix incorrect
  10150. handling of special keys.
  10151. 2010-10-02 Aleš Nesrsta <starous@volny.cz>
  10152. * include/grub/scsi.h (grub_make_scsi_id): Fix incorrect usgae of
  10153. GRUB_SCSI_ID_BUS_SHIFT instead of GRUB_SCSI_ID_LUN_SHIFT.
  10154. 2010-10-02 Aleš Nesrsta <starous@volny.cz>
  10155. * grub-core/bus/usb/ohci.c (GRUB_OHCI_TDS): Increase.
  10156. * grub-core/bus/usb/uhci.c (N_TD): New definition. All previous implicit
  10157. users updated.
  10158. * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_setup_readwrite):
  10159. Use right endpoint when querying descriptor.
  10160. 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
  10161. Clear out 0x80 color bit on EFI.
  10162. Tested by: decoder
  10163. Reported by: decoder and meta tech.
  10164. * grub-core/term/efi/console.c (grub_console_standard_color): Removed.
  10165. (grub_console_setcolorstate): Clear out 0x80 bit.
  10166. Use GRUB_TERM_DEFAULT_STANDARD_COLOR.
  10167. (grub_console_output): Use GRUB_TERM_DEFAULT_NORMAL_COLOR.
  10168. Use GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR.
  10169. 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
  10170. * grub-core/loader/i386/linux.c (DEFAULT_VIDEO_MODE) [GRUB_MACHINE_EFI]:
  10171. Set to "auto".
  10172. 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
  10173. * grub-core/gettext/gettext.c (grub_gettext_init_ext): Avoid using
  10174. mo_file after freeing.
  10175. 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
  10176. * grub-core/normal/term.c (read_terminal_list): Free in a right order.
  10177. 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
  10178. * grub-core/script/execute.c (grub_script_execute_sourcecode): Set
  10179. flags.
  10180. 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
  10181. * util/grub-setup.c (main) [GRUB_MACHINE_IEEE1275]: Propagate argp
  10182. usage.
  10183. 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
  10184. Put terminfo into core on ieee1275 and yeeloong (needed for console).
  10185. * gentpl.py: New groups terminfoinkernel and terminfomodule.
  10186. * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include extcmd.h, arg.h
  10187. and terminfo.h when needed.
  10188. * grub-core/Makefile.core.def (kernel): Include term/terminfo.c,
  10189. term/tparm.c, commands/extcmd.c, lib/arg.c on terminfokernel.
  10190. (terminfo): Enable only on terminfokernel.
  10191. (extcmd): Likewise.
  10192. * include/grub/extcmd.h: Add missing EXPORT_FUNC.
  10193. * include/grub/lib/arg.h: Likewise.
  10194. * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Fix
  10195. incorrect usage of ->.
  10196. 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
  10197. * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi]
  10198. [GRUB_MACHINE_EFI && __i386__]: Fix typo.
  10199. 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
  10200. Fix coreboot compilation.
  10201. * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
  10202. Take VBE info into account even if only text is supported.
  10203. (fill_vbe_info): Take into account the case when only VGA text
  10204. is supported.
  10205. * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): Set to zero
  10206. on coreboot, multiboot and qemu.
  10207. 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
  10208. * grub-core/lib/relocator.c (malloc_in_range): Trim too verbose
  10209. debug messages.
  10210. (grub_relocator_prepare_relocs): Set movers_chunk.srcv.
  10211. 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
  10212. * grub-core/loader/i386/bsd.c (grub_cmd_netbsd): Provide default serial
  10213. parameters.
  10214. 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
  10215. * grub-core/lib/arg.c (grub_arg_parse): Fix treating of all commands as
  10216. if they were BSD-style.
  10217. 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
  10218. * grub-core/boot/i386/pc/lnxboot.S: Replace
  10219. GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE with
  10220. GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART.
  10221. 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
  10222. Write embedding zone using Reed-Solomon.
  10223. * Makefile.util.def (grub-setup): Add grub-core/lib/reed_solomon.c.
  10224. * grub-core/Makefile.am (rs_decoder.S): New target.
  10225. (kern/i386/pc/startup.S): Depend on rs_decoder.S.
  10226. * grub-core/kern/i386/pc/startup.S (reed_solomon_redundancy): New field.
  10227. (multiboot): Move to RS part.
  10228. (post_reed_solomon): New label.
  10229. (grub_boot_drive): Move to non-RS part since it's modified in memory
  10230. on boot.
  10231. Include rs_decoder.S.
  10232. * grub-core/lib/reed_solomon.c: New file.
  10233. * include/grub/offsets.h (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY):
  10234. New definition.
  10235. (GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE): Removed.
  10236. (GRUB_KERNEL_I386_PC_RAW_SIZE): Updated.
  10237. (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): New definition.
  10238. * include/grub/partition.h (grub_partition_map): Change prototype of
  10239. embed to allow returning additional sectors.
  10240. * include/grub/reed_solomon.h: New file.
  10241. * util/grub-setup.c (setup): Handle Reed-Solomon.
  10242. 2010-09-28 Colin Watson <cjwatson@ubuntu.com>
  10243. * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
  10244. i386 and x86-64 definedness tests.
  10245. 2010-09-27 Yves Blusseau <blusseau@zetam.org>
  10246. Fix generation of kernel_syms.lst
  10247. * grub-core/Makefile.am (kernel_syms.lst): Fix value and position of
  10248. ASM_PREFIX
  10249. 2010-09-26 Robert Millan <rmh@gnu.org>
  10250. Support degraded ZFS arrays in "grub-probe -t device" resolution.
  10251. * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): When
  10252. the pool is an array of devices, iterate through it and return the
  10253. first device that passes a stat() test (instead of blindly returning
  10254. the first one).
  10255. 2010-09-26 Robert Millan <rmh@gnu.org>
  10256. Build fixes for GNU/kFreeBSD.
  10257. * Makefile.util.def: Add `$(LIBZFS) $(LIBNVPAIR)' library dependencies
  10258. to programs that require ZFS conversion.
  10259. * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Support
  10260. kernels that don't have FLOPPY_MAJOR.
  10261. 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
  10262. * grub-core/kern/emu/full.c (grub_emu_post_init): Fix typo.
  10263. 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
  10264. Fix grub-emu build.
  10265. * grub-core/kern/emu/main.c: Remove #include <getopt.h>.
  10266. * grub-core/kern/emu/full.c: Split grub_mdraid_{init,fini} into
  10267. mdraid09 and mdraid1x.
  10268. 2010-09-24 Colin Watson <cjwatson@ubuntu.com>
  10269. Re-enable grub-extras.
  10270. * autogen.sh: Create symlinks to ${GRUB_CONTRIB} if necessary to
  10271. avoid confusing Automake. Run autogen only twice, once for the top
  10272. level and once for grub-core. Add Makefile.util.def and
  10273. Makefile.core.def from extra modules to the appropriate autogen
  10274. invocations. If Makefile.common exists in an extra module, include
  10275. it in both Makefile.util.am and grub-core/Makefile.core.am;
  10276. similarly, include any Makefile.util.common file in Makefile.util.am
  10277. and any Makefile.core.common file in grub-core/Makefile.core.am.
  10278. * conf/Makefile.common ($(top_srcdir)/grub-core/Makefile.core.am):
  10279. Depend on $(top_srcdir)/grub-core/Makefile.gcry.def.
  10280. ($(top_srcdir)/grub-core/Makefile.gcry.def): Remove.
  10281. * grub-core/Makefile.am: Remove inclusion of Makefile.gcry.am.
  10282. * gentpl.py (gvar_add): Turn GVARS into a set.
  10283. (global_variable_initializers): Sort global variables on output.
  10284. (vars_init): New function.
  10285. (first_time): Likewise.
  10286. (library): Ensure that non-global variable initialisations are
  10287. emitted before the first time we emit code for a library block.
  10288. Append to variables rather than setting them. Only emit
  10289. noinst_LIBRARIES, BUILT_SOURCES, and CLEANFILES the first time for
  10290. each conditional path.
  10291. (program): installdir() emits an Autogen macro, so must be passed to
  10292. var_add rather than gvar_add.
  10293. (data): Likewise.
  10294. (script): Likewise.
  10295. (rules): New function, centralising handling for different target
  10296. types. Set up Guile association lists for first_time and vars_init,
  10297. and send most output to a diversion so that variable initialisations
  10298. can be emitted first.
  10299. (module_rules): Use new rules function.
  10300. (kernel_rules): Likewise.
  10301. (image_rules): Likewise.
  10302. (library_rules): Likewise.
  10303. (program_rules): Likewise.
  10304. (script_rules): Likewise.
  10305. (data_rules): Likewise.
  10306. * configure.ac: Add AC_PROG_LN_S, for the benefit of ntldr-img.
  10307. * .bzrignore: Add contrib and grub-core/contrib. Remove
  10308. grub-core/Makefile.gcry.am.
  10309. 2010-09-24 Yves Blusseau <blusseau@zetam.org>
  10310. * grub-core/lib/LzFind.c: Add missing include.
  10311. * grub-core/lib/LzmaEnc.c: Likewise.
  10312. * grub-core/script/lexer.c: Likewise.
  10313. * grub-core/script/yylex.l: Likewise.
  10314. * util/grub-macho2img.c: Likewise.
  10315. * util/grub-menulst2cfg.c: Likewise.
  10316. * util/grub-mklayout.c: Likewise.
  10317. * util/grub-mkpasswd-pbkdf2.c
  10318. * util/grub-mkrelpath.c: Likewise.
  10319. * util/resolve.c: Likewise.
  10320. 2010-09-24 BVK Chaitanya <bvk.groups@gmail.com>
  10321. * Makefile.util.def (example_unit_test): Add
  10322. grub-core/gnulib/libgnu.a.
  10323. 2010-09-23 Grégoire Sutre <gregoire.sutre@gmail.com>
  10324. * grub-core/commands/acpihalt.c (get_sleep_type): Initialize prev.
  10325. 2010-09-23 Vladimir Serbinenko <phcoder@gmail.com>
  10326. Support xz compression on yeeloong.
  10327. * Makefile.util.def (grub-mkimage): Add $(LIBLZMA).
  10328. * configure.ac: Check for LZMA.
  10329. * grub-core/Makefile.core.def (xz_decompress): New target.
  10330. (none_decompress): Likewise.
  10331. * grub-core/boot/decompressor/minilib.c: New file.
  10332. * grub-core/boot/decompressor/none.c: Likewise.
  10333. * grub-core/boot/decompressor/xz.c: Likewise.
  10334. * grub-core/kern/mips/cache.S: Change to noreorder nomacro.
  10335. * grub-core/kern/mips/cache_flush.S: Likewise.
  10336. * grub-core/kern/i386/pc/lzma_decode.S: Remove dead code.
  10337. * grub-core/kern/mips/startup.S: Move first stage to ...
  10338. * grub-core/boot/mips/startup_raw.S: ...here. Change to noreorder
  10339. nomacro.
  10340. * grub-core/kern/mips/startup.S: Change to noreorder nomacro.
  10341. * grub-core/lib/mips/relocator_asm.S: Change to noreorder nomacro.
  10342. * grub-core/lib/xzembed/xz_dec_bcj.c [GRUB_EMBED_DECOMPRESSOR]:
  10343. Allocate statically.
  10344. * grub-core/lib/xzembed/xz_dec_lzma2.c [GRUB_EMBED_DECOMPRESSOR]:
  10345. Allocate statically or use scratch. Don't check CRC32.
  10346. * grub-core/lib/xzembed/xz_dec_stream.c [GRUB_EMBED_DECOMPRESSOR]:
  10347. Allocate statically. Don't check CRC32.
  10348. * include/grub/decompressor.h: New file.
  10349. * include/grub/offsets.h (GRUB_KERNEL_MIPS_YEELOONG_RAW_SIZE):
  10350. Removed.
  10351. (GRUB_KERNEL_MIPS_YEELOONG_UNCOMPRESSED_SIZE): New field.
  10352. (GRUB_KERNEL_MIPS_YEELOONG_TOTAL_MODULE_SIZE): Adjusted.
  10353. (GRUB_KERNEL_MIPS_YEELOONG_PREFIX): Likewise.
  10354. (GRUB_KERNEL_MIPS_YEELOONG_PREFIX_END): Likewise.
  10355. (GRUB_KERNEL_MACHINE_UNCOMPRESSED_SIZE): New define.
  10356. * util/grub-mkimage.c (grub_compression_t): New type.
  10357. (PLATFORM_FLAGS_DECOMPRESSORS): New flag.
  10358. (image_target_desc): New field default_compression.
  10359. (image_targets): Adjust yeeloong targets.
  10360. (compress_kernel_xz) [HAVE_LIBLZMA]: New function.
  10361. (compress_kernel): New parameter comp.
  10362. (generate_image): Likewise. Handle new compression case.
  10363. (options): New option --compression
  10364. (help): Likewise.
  10365. (main): Handle new option.
  10366. 2010-09-22 Grégoire Sutre <gregoire.sutre@gmail.com>
  10367. * grub-core/kern/emu/hostdisk.c [__NetBSD__]: Define FLOPPY_MAJOR.
  10368. 2010-09-22 Colin Watson <cjwatson@ubuntu.com>
  10369. * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
  10370. typo in __i386__ conditional.
  10371. 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
  10372. * grub-core/loader/multiboot_mbi2.c (GRUB_MACHINE_EFI): Add missing
  10373. include.
  10374. 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
  10375. Implement EFI and ACPI multiboot2 extensions.
  10376. * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare
  10377. new tags as supported.
  10378. (acpiv2_size): New function.
  10379. (grub_multiboot_get_mbi_size): Take new tags into account.
  10380. (grub_multiboot_make_mbi): Add new tags.
  10381. * include/grub/multiboot.h (GRUB_MACHINE_HAS_ACPI): New definition.
  10382. 2010-09-21 Aleš Nesrsta <starous@volny.cz>
  10383. * grub-core/bus/usb/serial/common.c (grub_usbserial_attach):
  10384. Added missing configuration of USB device.
  10385. 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
  10386. * grub-core/normal/menu_entry.c (run): Make sure we always return
  10387. a value.
  10388. 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
  10389. * grub-core/commands/efi/lsefimmap.c (grub_cmd_lsefimmap):
  10390. NumberOfPages is UINT64 according to the UEFI specification, not
  10391. UINTN. Fix printf format.
  10392. 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
  10393. * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Change type of
  10394. `err' to grub_usb_err_t.
  10395. Reported and tested by: KESHAV P.R.
  10396. 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
  10397. * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Make
  10398. tpart non-const, so that we can assign to it. (Since this is a
  10399. typedef, the constness refers to the pointer rather than what it
  10400. points to.)
  10401. 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
  10402. * conf/Makefile.common (CPPFLAGS_GNULIB): Add
  10403. $(top_srcdir)/grub-core/gnulib as well as
  10404. $(top_builddir)/grub-core/gnulib.
  10405. Reported by: KESHAV P.R.
  10406. 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
  10407. * util/grub-install.in: Fix the bootloader ID option to be
  10408. consistently --bootloader-id, not --bootloader_id.
  10409. Reported by: KESHAV P.R.
  10410. 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
  10411. * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Make "Compute or
  10412. check hash checksum." consistently translatable.
  10413. 2010-09-21 Yves Blusseau <blusseau@zetam.org>
  10414. * conf/Makefile.common (CPPFLAGS_GNULIB): Replace $(top_srcdir) with
  10415. $(top_builddir).
  10416. 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
  10417. * grub-core/commands/hashsum.c (aliases): Add sha1sum alias.
  10418. (GRUB_MOD_INIT): Register sha1sum command.
  10419. (GRUB_MOD_FINI): Unregister sha1sum command.
  10420. 2010-09-21 Yves Blusseau <blusseau@zetam.org>
  10421. Keep boot and grub directory names in sync with utils scripts
  10422. * configure.ac: Define GRUB_BOOT_DIR_NAME and GRUB_DIR_NAME macros.
  10423. * config.h.in: Add previous macros.
  10424. * include/grub/emu/misc.h (DEFAULT_DIRECTORY): Use previous macros.
  10425. * util/grub-install.in: Use $bootdir and $grubdir variables.
  10426. 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
  10427. * grub-core/kern/emu/hostdisk.c (find_system_device): Only try to
  10428. convert partition names to disk names if the new `convert' parameter
  10429. is set.
  10430. (grub_util_biosdisk_get_grub_dev): If opening the disk device
  10431. returns GRUB_ERR_UNKNOWN_DEVICE, treat the partition device as a
  10432. disk in its own right. This can happen with Xen disk images.
  10433. 2010-09-21 Yves Blusseau <blusseau@zetam.org>
  10434. * util/grub-editenv.c: Update strings to avoid warnings when generating
  10435. grub.pot file.
  10436. * util/grub-setup.c: Likewise.
  10437. 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
  10438. * configure.ac: Change version to 1.99~beta0.
  10439. 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
  10440. * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
  10441. Add BADRAM.
  10442. * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap):
  10443. Likewise.
  10444. * include/multiboot.h: Resynced with specification.
  10445. * include/multiboot2.h: Likewise.
  10446. 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
  10447. Fix po directory handling.
  10448. * configure.ac: Create po/Makefile.in rather than po/Makefile.
  10449. * grub-core/gnulib/Makefile.am: Import gettext module.
  10450. * m4/gnulib-cache.m4: Likewise.
  10451. * m4/gnulib-comp.m4: Likewise.
  10452. * m4/gettext.m4: New file, from gnulib.
  10453. * m4/glibc2.m4: Likewise.
  10454. * m4/iconv.m4: Likewise.
  10455. * m4/intdiv0.m4: Likewise.
  10456. * m4/intl.m4: Likewise.
  10457. * m4/intldir.m4: Likewise.
  10458. * m4/intlmacosx.m4: Likewise.
  10459. * m4/intmax.m4: Likewise.
  10460. * m4/inttypes-pri.m4: Likewise.
  10461. * m4/lcmessage.m4: Likewise.
  10462. * m4/lib-ld.m4: Likewise.
  10463. * m4/lib-link.m4: Likewise.
  10464. * m4/lib-prefix.m4: Likewise.
  10465. * m4/lock.m4: Likewise.
  10466. * m4/nls.m4: Likewise.
  10467. * m4/po.m4: Likewise.
  10468. * m4/printf-posix.m4: Likewise.
  10469. * m4/progtest.m4: Likewise.
  10470. * m4/threadlib.m4: Likewise.
  10471. * m4/uintmax_t.m4: Likewise.
  10472. * m4/visibility.m4: Likewise.
  10473. * po/Makefile.am: Remove.
  10474. * po/Makefile.in.in: New file, from gettext.
  10475. ($(DOMAIN).pot-update): Support POTFILES-shell.
  10476. * po/Makevars: New file.
  10477. * po/POTFILES-shell: Rename to ...
  10478. * po/POTFILES-shell.in: ... this. Update.
  10479. * po/POTFILES: Rename to ...
  10480. * po/POTFILES.in: ... this. Update.
  10481. * po/Rules-quot: New file, from gettext.
  10482. * po/boldquot.sed: Likewise.
  10483. * po/en@boldquot.header: Likewise.
  10484. * po/en@quot.header: Likewise.
  10485. * po/insert-header.sin: Likewise.
  10486. * po/quot.sed: Likewise.
  10487. * po/remove-potcdate.sin: Likewise.
  10488. 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
  10489. * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Use UUID when possible.
  10490. 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
  10491. * util/grub.d/20_linux_xen.in: Use submenus.
  10492. 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
  10493. Support submenus.
  10494. * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): New
  10495. parameter submenu. All users updated.
  10496. * grub-core/normal/main.c (free_menu): Rename to ...
  10497. (grub_normal_free_menu): ... this. Made global.
  10498. * grub-core/normal/menu.c (grub_menu_execute_entry): Open new context
  10499. if requested.
  10500. * grub-core/normal/menu_entry.c (screen): New field submenu.
  10501. (make_screen): Set submenu.
  10502. (run): Open new context if requested.
  10503. * include/grub/menu.h (grub_menu_entry): New field submenu.
  10504. * include/grub/normal.h (grub_normal_free_menu): New proto.
  10505. 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
  10506. Menu entries extractor.
  10507. * grub-core/commands/configfile.c (grub_cmd_source): Implement extractor
  10508. variants.
  10509. (GRUB_MOD_INIT): Register new variants.
  10510. (GRUB_MOD_FINI): Unregister new variants.
  10511. * grub-core/commands/legacycfg.c (grub_cmd_legacy_configfile): Merge
  10512. into grub_cmd_legacy_source.
  10513. (grub_cmd_legacy_source): Implement extractor variants.
  10514. (GRUB_MOD_INIT): Register new variants.
  10515. (GRUB_MOD_FINI): Unregister new variants.
  10516. * grub-core/commands/menuentry.c (grub_menu_init): Declare menuentry
  10517. as an extractor.
  10518. * grub-core/commands/search_wrap.c (GRUB_MOD_INIT): Declare
  10519. search as an extractor.
  10520. * grub-core/commands/test.c (GRUB_MOD_INIT): Declare
  10521. test as an extractor.
  10522. * grub-core/kern/corecmd.c (grub_register_core_commands): Declare set
  10523. as an extractor.
  10524. * grub-core/normal/context.c (grub_env_context_open): Reorganised.
  10525. (grub_env_new_context): New function.
  10526. (grub_env_context_open): Likewise.
  10527. (grub_env_extractor_open): Likewise.
  10528. (grub_env_extractor_close): Likewise.
  10529. * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
  10530. grub_extractor_level.
  10531. * include/grub/command.h (GRUB_COMMAND_FLAG_EXTRACTOR): New flag.
  10532. * include/grub/env.h (grub_env_extractor_open): New proto.
  10533. (grub_env_extractor_close): Likewise.
  10534. * include/grub/normal.h (grub_extractor_level): New external variable.
  10535. 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
  10536. Make cutmem accept a region specification.
  10537. Suggested by: Samuel Thibault
  10538. * grub-core/mmap/mmap.c (parsemem): New function.
  10539. (grub_cmd_cutmem): Handle new arguments.
  10540. 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
  10541. New command cutmem.
  10542. * grub-core/mmap/mmap.c (grub_cmd_cutmem): New function.
  10543. (GRUB_MOD_INIT): Register new command.
  10544. (GRUB_MOD_FINI): Unregister new command.
  10545. 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
  10546. Support some annoying BSD and Minix subpartitions.
  10547. * Makefile.util.def (libgrub.a): Add grub-core/partmap/bsdlabel.c.
  10548. * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
  10549. Properly handle concatenation.
  10550. * grub-core/kern/device.c (grub_device_iterate): Likewise.
  10551. * grub-core/normal/completion.c (iterate_partition): Likewise.
  10552. * grub-core/kern/disk.c (grub_disk_open): Make disk->name not
  10553. contain partition. All users updated.
  10554. * grub-core/partmap/bsdlabel.c (grub_netbsdlabel_partition_map): New
  10555. struct.
  10556. (grub_openbsdlabel_partition_map): Likewise.
  10557. (bsdlabel_partition_map_iterate): Rename to ..
  10558. (iterate_real): ... this. New arguments sector, freebsd and pmap.
  10559. (bsdlabel_partition_map_iterate): New function.
  10560. (netopenbsdlabel_partition_map_iterate): Likewise.
  10561. (netbsdlabel_partition_map_iterate): Likewise.
  10562. (openbsdlabel_partition_map_iterate): Likewise.
  10563. (GRUB_MOD_INIT): Register new partmaps.
  10564. (GRUB_MOD_FINI): Unregister new partmaps.
  10565. * grub-core/partmap/msdos.c (pc_partition_map_iterate): Rename to ...
  10566. (grub_partition_msdos_iterate): ... this. All users updated.
  10567. Don't support embedding other than in a minix partition.
  10568. * include/grub/msdos_partition.h (grub_partition_msdos_iterate): New
  10569. proto.
  10570. * include/grub/partition.h (grub_partition): New field msdostype.
  10571. * util/grub-install.in: Handle openbsd and netbsd types being in
  10572. part_bsd module.
  10573. 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
  10574. Split mdraid.mod into mdraid09.mod and mdraid1x.mod.
  10575. * Makefile.util.def (libgrub.a): Add grub-core/disk/mdraid1x_linux.c.
  10576. * grub-core/Makefile.core.def (mdraid): Renamed to ...
  10577. (mdraid09): ... this.
  10578. (mdraid1x): New module.
  10579. * grub-core/disk/mdraid_linux.c: Move 1.x parts ...
  10580. * grub-core/disk/mdraid1x_linux.c: ...here. All users updated.
  10581. 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
  10582. * grub-core/kern/emu/misc.c (asprintf): Use vsnprintf instead of
  10583. vsprintf.
  10584. 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
  10585. * grub-core/commands/efi/lsefimmap.c: Correct header.
  10586. * NEWS: Update.
  10587. 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
  10588. * util/grub-editenv.c (argp_parser): Don't pass translated strings
  10589. as printf format strings; the translations might contain '%' which
  10590. could cause a crash.
  10591. (main): Likewise.
  10592. * util/grub-fstest.c (argp_parser): Likewise.
  10593. * util/grub-setup.c (argp_parser): Likewise.
  10594. (main): Likewise.
  10595. 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
  10596. Use argp in grub-fstest.
  10597. * util/grub-fstest.c: Don't include getopt.h.
  10598. Include argp.h.
  10599. (root): New variable.
  10600. (args_count): Likewise.
  10601. (nparm): Likewise.
  10602. (num_disks): Likewise.
  10603. (images): Likewise.
  10604. (cmd): Likewise.
  10605. (debug_str): Likewise.
  10606. (args): Likewise.
  10607. (options): Transformed to argp.
  10608. (usage): Removed.
  10609. (main): Split argument parsing into ...
  10610. (argp_parser): ... this. Changed to argp format.
  10611. (argp): New variable.
  10612. (main): Use argp_parse.
  10613. 2010-09-20 Tristan Gingold <gingold@free.fr>
  10614. 2010-09-20 Robert Millan <rmh.grub@aybabtu.com>
  10615. 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
  10616. * grub-core/commands/efi/lsefimmap.c: New file.
  10617. * grub-core/Makefile.core.def (lsefimmap): New module.
  10618. * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): New definition.
  10619. 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
  10620. Pause the execution (10s max) if any errors are displayed so the user
  10621. has a chance to see them.
  10622. * grub-core/kern/err.c (grub_err_printed_errors): New variable.
  10623. (grub_print_error): Increment grub_err_printed_errors.
  10624. * grub-core/normal/menu.c (grub_menu_execute_entry): Pause the
  10625. execution if any errors were displayed.
  10626. (show_menu): Remove old code for pause.
  10627. * grub-core/normal/menu_entry.c (run): Likewise.
  10628. * grub-core/normal/term.c (grub_normal_char_counter): Removed. All
  10629. users updated.
  10630. (grub_normal_get_char_counter): Likewise.
  10631. * include/grub/err.h (grub_err_printed_errors): New external variable.
  10632. * include/grub/normal.h (grub_normal_get_char_counter): Removed.
  10633. 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
  10634. Support multiboot VBE info.
  10635. * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
  10636. Take VBE info into account.
  10637. (fill_vbe_info) [GRUB_MACHINE_HAS_VBE]: New function.
  10638. (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
  10639. Call fill_vbe_info when appropriate.
  10640. (grub_multiboot_make_mbi): Account for the size occupied by VBE info.
  10641. * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare tags
  10642. as supported.
  10643. (grub_multiboot_get_mbi_size): Take new tags into account.
  10644. (fill_vbe_tag) [GRUB_MACHINE_HAS_VBE]: New function.
  10645. (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
  10646. Call fill_vbe_tag when appropriate.
  10647. (grub_multiboot_make_mbi): Properly align tags.
  10648. * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_pm_interface): New
  10649. function.
  10650. * include/grub/i386/pc/vbe.h (grub_vbe_bios_get_pm_interface): New
  10651. proto.
  10652. * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): New definition.
  10653. 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
  10654. Suport manual terminal geometry specification.
  10655. * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions):
  10656. Save state in grub_ofconsole_terminfo_output.
  10657. (grub_ofconsole_term): Use grub_terminfo_getwh.
  10658. (grub_ofconsole_getwh): Removed.
  10659. * grub-core/term/serial.c (grub_serial_getwh): Removed.
  10660. (grub_serial_term): Use grub_terminfo_getwh.
  10661. * grub-core/term/terminfo.c (grub_terminfo_getwh): New function.
  10662. (options): New struct.
  10663. (OPTION_*): New enum.
  10664. (grub_cmd_terminfo): Transform into extcmd and handle new parameters.
  10665. * include/grub/terminfo.h (grub_terminfo_output_state): New fields
  10666. width and height.
  10667. (grub_terminfo_getwh): New proto.
  10668. * grub-core/lib/legacy_parse.c (grub_legacy_parse): Handle --lines.
  10669. 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
  10670. Handle legacy "terminal" command.
  10671. * grub-core/lib/legacy_parse.c (legacy_command): New flags FLAG_TITLE
  10672. and FLAG_TERMINAL.
  10673. (legacy_commands): Add terminal and title.
  10674. (grub_legacy_parse): Handle terminal. Simplify title handling.
  10675. 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
  10676. * grub-core/lib/arg.c (grub_arg_show_help): Correctly handle
  10677. parameters overflow.
  10678. 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
  10679. * .bzrignore: Add grub-core/gnulib/sys, widthspec.bin, and
  10680. widthspec.h.
  10681. * docs/grub.texi (Shell-like scripting): Document `!'.
  10682. (Network): Simplify using new i386-pc-pxe format. Mention
  10683. grub-mknetdir.
  10684. * NEWS: Update.
  10685. 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
  10686. * Makefile.am (SUBDIRS): Restore "."; it's important to force
  10687. ordering, so that e.g. ascii.h is built before grub-core/font/font.c
  10688. when needed.
  10689. 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
  10690. * grub-core/commands/efi/lsefisystab.c: Correct header.
  10691. * grub-core/commands/efi/lssal.c: Likewise.
  10692. * grub-core/commands/testload.c: Likewise.
  10693. 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
  10694. * util/grub-mkrescue.in: Add explicit root argument to --set to
  10695. prevent the UUID being interpreted as an argument to --set (matches
  10696. previous change to prepare_grub_to_access_device).
  10697. 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
  10698. * kern/emu/hostdisk.c: Include <sys/ioctl.h> and <sys/disklabel.h>
  10699. on FreeBSD. Define HAVE_DIOCGDINFO on NetBSD and FreeBSD to reduce
  10700. the verbosity of later #ifs.
  10701. (find_partition_start): Define this function on FreeBSD too.
  10702. (device_is_wholedisk) [__FreeBSD__ || __FreeBSD_kernel__]: New
  10703. function.
  10704. (grub_util_biosdisk_get_grub_dev): Use partition-start-sector logic
  10705. on FreeBSD.
  10706. 2010-09-20 Yves Blusseau <blusseau@zetam.org>
  10707. * util/grub-editenv.c: Use argp instead of getopt.
  10708. 2010-09-20 Yves Blusseau <blusseau@zetam.org>
  10709. * util/grub-setup.c: Use argp instead of getopt.
  10710. 2010-09-20 Yves Blusseau <blusseau@zetam.org>
  10711. Use gnulib-tool to create gnulib source files.
  10712. * Add gnulib files generated by gnulib-tool in build-aux, m4 and
  10713. grub-core/gnulib directories
  10714. * .bzignore: Add **/.deps and autogenerated gnulib files
  10715. * configure.ac: Assign auxiliary directory to build-aux, add invocation
  10716. of gnulib macros, add grub-core/gnulib/Makefile
  10717. * Makefile.am: Add gnulib directory in SUBDIRS (removing unnecessary .),
  10718. include m4 directory to aclocal.
  10719. * Makefile.util.def: Remove direct compilation of gnulib source files
  10720. and use the new grub-core/gnulib/libgnu.a.
  10721. * build-aux/config.rpath: move config.rpath from top directory to
  10722. build-aux
  10723. * conf/Makefile.common: Remove the macro _GL_UNUSED already defined
  10724. in gnulib headers
  10725. * conf/Makefile.extra-dist: Add m4/gnulib-cache.m4
  10726. * grub-core/Makefile.core.def: Remove unnecessary extra_dist
  10727. * grub-core/lib/posix_wrap/localcharset.h (locale_charset): Update
  10728. header.
  10729. * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Return static
  10730. string.
  10731. 2010-09-20 Yves Blusseau <blusseau@zetam.org>
  10732. * .bzrignore: Add grub-kbdcomp, grub-menulst2cfg, *.marker,
  10733. grub-core/genmod.sh and grub-core/gensyminfo.sh
  10734. 2010-09-20 BVK Chaitanya <bvk.groups@gmail.com>
  10735. Add a test for echo command options.
  10736. * tests/grub_cmd_echo.in: New test.
  10737. * Makefile.util.def: Rules for new test.
  10738. 2010-09-20 Szymon Janc <szymon@janc.net.pl>
  10739. Remove crc.mod and move crc command to hashsum.mod.
  10740. Remove lib/crc.c - users updated to use gcrypt implementation.
  10741. * grub-core/commands/crc.c: Removed.
  10742. * grub-core/Makefile.core.def (crc): Module removed.
  10743. * grub-core/commands/hashsum.c (aliases[]): Add crc alias.
  10744. * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Register crc command.
  10745. * grub-core/commands/hashsum.c (GRUB_MOD_FINI): Unregister crc command.
  10746. * grub-core/lib/crc.c: Removed.
  10747. * include/grub/lib/crc.h: Removed.
  10748. * Makefile.util.def (crc): Remove lib/crc.c
  10749. * grub-core/Makefile.core.def (libgrub.a): Remove grub-core/lib/crc.c.
  10750. * util/grub-fstest.c (cmd_crd): Use libgcrypt crc implementation.
  10751. * Makefile.util.def (libgrub.a): Add grub-core/lib/libgcrypt-grub/cipher/crc.c.
  10752. * Makefile.util.def (grub-fstest): Add CFLAGS_GCRY to cflags.
  10753. * Makefile.util.def (grub-fstest): Add CPPFLAGS_GCRY to cppflags.
  10754. * grub-core/efiemu/prepare.c (grub_efiemu_crc): Use libgcrypt crc implementation.
  10755. 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
  10756. * grub-core/boot/i386/pc/boot.S: Ignore %dl if it's not in a sane range.
  10757. 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
  10758. Split config.h for util and core.
  10759. * acinclude.m4 (HAVE_ASM_USCORE): Transformed into a variable.
  10760. (ADDR32): Likewise.
  10761. (DATA32): Likewise.
  10762. (BSS_START_SYMBOL): Likewise.
  10763. (END_SYMBOL): Likewise.
  10764. (NEED_ENABLE_EXECUTE_STACK): Likewise. All users updated.
  10765. (grub_I386_ASM_ABSOLUTE_WITHOUT_ASTERISK): Removed.
  10766. * config.h.in: New file.
  10767. * configure.ac: Use config-util.h as config define file.
  10768. Rename MACHINE into GRUB_MACHINE. All users updated.
  10769. (NEED_REGISTER_FRAME_INFO): Transformed into a variable. All users
  10770. updated.
  10771. (NESTED_FUNC_ATTR): Likewise.
  10772. Substitue new variables.
  10773. (COND_HAVE_ASM_USCORE): New conditional.
  10774. * grub-core/Makefile.am (ASM_PREFIX): New variable.
  10775. (kernel_syms.lst): Use ASM_PREFIX.
  10776. * grub-core/kern/emu/console.c: Include config-util.h.
  10777. * grub-core/kern/emu/misc.c: Likewise.
  10778. * grub-core/kern/emu/mm.c: Likewise.
  10779. * include/grub/emu/misc.h: Likewise.
  10780. * include/grub/libgcc.h: Likewise.
  10781. 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
  10782. * grub-core/term/efi/console.c (efi_codes): Fix GRUB_TERM_KEY_*
  10783. constants usage.
  10784. * grub-core/kern/emu/console.c (grub_ncurses_getkey):
  10785. Fix GRUB_TERM_KEY_* constants usage.
  10786. * grub-core/kern/emu/misc.c (asprintf): Fix vasprintf usage.
  10787. 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
  10788. * grub-core/bus/usb/ohci.c (grub_ohci_cancel_transfer): Use %p to
  10789. print pointer.
  10790. * grub-core/bus/usb/uhci.c: Remove empty define.
  10791. (grub_uhci_check_transfer): Add missing cast.
  10792. * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Use %p to
  10793. print pointer.
  10794. * grub-core/term/usb_keyboard.c (grub_usb_keyboard_getkey): Use
  10795. PRIuGRUB_SIZE.
  10796. * include/grub/types.h (PRIuGRUB_SIZE): New definition.
  10797. 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
  10798. * grub-core/Makefile.core.def (legacycfg): Add
  10799. lib/i386/pc/vesa_modes_table.c on emu.
  10800. 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
  10801. Reduce number of temporary files generated by build system.
  10802. * grub-core/gencmdlist.sh: Removed.
  10803. * grub-core/genfslist.sh: Removed.
  10804. * grub-core/genhandlerlist.sh: Removed.
  10805. * grub-core/genmodsrc.sh: Removed.
  10806. * grub-core/genpartmaplist.sh: Removed.
  10807. * grub-core/genparttoollist.sh: Removed.
  10808. * grub-core/gentermiinallist.sh: Removed.
  10809. * grub-core/genvideolist.sh: Removed.
  10810. * grub-core/genmod.sh.in: New file.
  10811. * grub-core/gensyminfo.sh.in: New file.
  10812. * conf/Makefile.common (CPPFLAGS_*_LIST): New marker flags.
  10813. * conf/Makefile.extra-dist: Update with new files.
  10814. * gentpl.py: Remove rules related to unnecessary temporary files.
  10815. * grub-core/Makefile.am (syminfo.lst): New replacement for def-*
  10816. and und-* files.
  10817. * grub-core/Makefile.core.def: New rules for gensyminfo.sh and
  10818. genmod.sh scripts.
  10819. * grub-core/bus/usb/uhci.c: Remove empty #define.
  10820. * grub-core/genmoddep.awk: Updated with new syminfo format.
  10821. * util/bash-completion.d/Makefile.am: Add config.log to
  10822. CLEANFILES.
  10823. 2010-09-19 Yves Blusseau <blusseau@zetam.org>
  10824. * Makefile.util.def: Add forgotten $(LIBINTL) library.
  10825. 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
  10826. * util/grub-mkconfig.in: Check the config script for syntax errors
  10827. before saving.
  10828. 2010-09-19 Colin Watson <cjwatson@ubuntu.com>
  10829. 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
  10830. * Makefile.util.def (grub-install): Use util/grub-install.in on all
  10831. platforms.
  10832. * util/grub-install.in: Add EFI and IEEE1275 support.
  10833. * util/i386/efi/grub-install.in: Removed.
  10834. * util/ieee1275/grub-install.in: Likewise.
  10835. 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
  10836. * grub-core/commands/i386/cmostest.c (+parse_args): New function.
  10837. (grub_cmd_cmosclean): Likewise.
  10838. (GRUB_MOD_INIT): Register command cmosclean.
  10839. * util/grub-mkconfig.in: Export GRUB_BUTTON_CMOS_CLEAN.
  10840. * util/grub.d/00_header.in: Handle GRUB_BUTTON_CMOS_CLEAN.
  10841. 2010-09-18 Carles Pina i Estany <carles@pina.cat>
  10842. 2010-09-18 Aleš Nesrsta <starous@volny.cz>
  10843. 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
  10844. Add keyboard layouts support.
  10845. * Makefile.util.def (grub-mklayout): New file.
  10846. (grub-kbdcomp): New script.
  10847. * grub-core/Makefile.am (KERNEL_HEADER_FILES) [COND_mips_yeeloong]:
  10848. Add keyboard_layouts.h.
  10849. * grub-core/Makefile.core.def (kernel): Add commands/keylayouts.c and
  10850. commands/boot.c on yeeloong.
  10851. (keylayouts): New module.
  10852. * grub-core/bus/usb/ohci.c
  10853. * grub-core/bus/usb/uhci.c
  10854. * grub-core/bus/usb/usbhub.c (rescan): New variable.
  10855. (grub_usb_add_hub): Poll interrupt pipe for device handling.
  10856. (attach_root_port): Likewise.
  10857. (poll_nonroot_hub): Likewise.
  10858. (grub_usb_poll_devices): Likewise.
  10859. (detach_device): Close transfer.
  10860. * grub-core/bus/usb/usbtrans.c (grub_usb_execute_and_wait_transfer): New
  10861. function.
  10862. (grub_usb_bulk_setup_readwrite): Likewise.
  10863. (grub_usb_bulk_finish_readwrite): Likewise.
  10864. * grub-core/commands/keylayouts.c: New file.
  10865. * grub-core/commands/keystatus.c (grub_getkeystatus): New function.
  10866. * grub-core/commands/menuentry.c (hotkey_aliases): All several new
  10867. aliases.
  10868. * grub-core/term/at_keyboard.c: Restructured to use keylayouts and
  10869. support scancode 2.
  10870. * grub-core/term/usb_keyboard.c: Restructured to use keylayouts.
  10871. * include/grub/keyboard_layouts.h: New file.
  10872. * util/grub-mklayout.c: New file.
  10873. * util/grub-kbdcomp.in: Likewise.
  10874. 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
  10875. Unify memory types.
  10876. * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include memory.h.
  10877. * grub-core/commands/lsmmap.c (grub_cmd_lsmmap): Output user-readable
  10878. types.
  10879. * grub-core/kern/i386/multiboot_mmap.c (grub_lower_mem): Removed.
  10880. (grub_upper_mem): Likewise.
  10881. * grub-core/kern/ieee1275/init.c (grub_upper_mem): Likewise.
  10882. * include/grub/memory.h (grub_memory_type_t): New enum.
  10883. All users updated.
  10884. 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
  10885. * grub-core/Makefile.core.def (lsapm): New module.
  10886. * grub-core/commands/i386/pc/lsapm.c: New file.
  10887. * grub-core/loader/i386/multiboot_mbi.c (make_mbi) [GRUB_MACHINE_PCBIOS]: Pass APM info.
  10888. * grub-core/loader/multiboot_mbi2.c (make_mbi) [GRUB_MACHINE_PCBIOS]:
  10889. Likewise.
  10890. * include/grub/i386/pc/apm.h: New file.
  10891. * include/multiboot.h (multiboot_apm_info): New struct.
  10892. 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
  10893. GRUB-legacy configuration file support.
  10894. * Makefile.util.def (grub-menulst2cfg): New util.
  10895. * docs/man/grub-menulst2cfg.h2m: New file.
  10896. * grub-core/Makefile.core.def (legacycfg): New module.
  10897. * grub-core/commands/legacycfg.c: New file.
  10898. * grub-core/commands/menuentry.c (append_menu_entry): Rename to ...
  10899. (grub_normal_add_menu_entry): ... this.
  10900. * grub-core/commands/password.c (grub_cmd_password): Split main part to ...
  10901. (grub_normal_set_password): ...this.
  10902. * grub-core/commands/videoinfo.c (grub_cmd_videoinfo): Support MODE.
  10903. * grub-core/loader/i386/linux.c (linux_vesafb_res): Move to ..,
  10904. * grub-core/lib/i386/pc/vesa_modes_table.c: ... here.
  10905. * grub-core/lib/legacy_parse.c: New file.
  10906. * grub-core/normal/auth.c (grub_cmd_authenticate): New command.
  10907. * include/grub/i386/pc/vesa_modes_table.h: New file.
  10908. * include/grub/legacy_parse.h: Likewise.
  10909. * include/grub/normal.h (grub_normal_add_menu_entry): New proto.
  10910. * util/grub-menulst2cfg.c: New file.
  10911. 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
  10912. * grub-core/kern/emu/hostdisk.c
  10913. (convert_system_partition_to_system_disk): Initialise node.
  10914. 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
  10915. * grub-core/kern/emu/hostdisk.c
  10916. (convert_system_partition_to_system_disk): Fix devmapper memory pool
  10917. leak.
  10918. Reported and based on patch by: Modestas Vainius.
  10919. 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
  10920. Fix DM-RAID probing with recent versions of device-mapper udev
  10921. rules.
  10922. * grub-core/kern/emu/hostdisk.c (read_device_map): Don't
  10923. canonicalise device paths under /dev/mapper/.
  10924. (convert_system_partition_to_system_disk): Compare the
  10925. uncanonicalised path to /dev/mapper/ rather than the canonicalised
  10926. path, since device nodes under /dev/mapper/ are often symlinks.
  10927. 2010-09-17 Yves Blusseau <blusseau@zetam.org>
  10928. * .bzrignore: *.d removed (old rule), add *.image and symlist.h.
  10929. 2010-09-16 Yves Blusseau <blusseau@zetam.org>
  10930. * configure.ac: Avoid some annoying error messages if freetype-config
  10931. program is not found.
  10932. 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
  10933. Support RAID on virtio devices, and others.
  10934. * grub-core/kern/emu/getroot.c [__MINGW32__] (find_root_device):
  10935. Rename to ...
  10936. [__MINGW32__] (grub_find_device): ... this.
  10937. [! __MINGW32__ && ! __CYGWIN__] (find_root_device): Rename to ...
  10938. [! __MINGW32__ && ! __CYGWIN__] (grub_find_device): ... this. Use a
  10939. reasonable default if dir is NULL.
  10940. [! __MINGW32__ && __CYGWIN__] (find_cygwin_root_device): Rename to
  10941. ...
  10942. [! __MINGW32__ && __CYGWIN__] (grub_find_device): ... this.
  10943. (grub_guess_root_device): Update callers.
  10944. * include/grub/emu/getroot.h (grub_find_device): Add prototype.
  10945. * util/raid.c (grub_util_getdiskname): Remove.
  10946. (grub_util_raid_getmembers): Use grub_find_device rather than
  10947. grub_util_getdiskname.
  10948. 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
  10949. * docs/grub.texi (serial): Remove obsolete comment about GRUB
  10950. needing to be compiled with serial support.
  10951. (ls): Indicate that multiple files are accepted.
  10952. * grub-core/commands/ls.c (GRUB_MOD_INIT): Update help text to
  10953. indicate that multiple files are accepted.
  10954. 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
  10955. * .bzrignore: Add *.1, *.8, grub-shell, grub-shell-tester,
  10956. libgrub_a_init.c, and util/bash-completion.d/grub.
  10957. 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
  10958. * util/grub-setup.c (setup): Fix incorrect container semantics.
  10959. 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
  10960. * grub-core/commands/parttool.c (grub_cmd_parttool): Fix a variable
  10961. misusage.
  10962. Reported by: J. Nick Terry
  10963. 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
  10964. Move embedding routines to partmap sources files.
  10965. * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot)
  10966. [GRUB_UTIL]: New variable.
  10967. (gpt_partition_map_iterate): Set part.parent.
  10968. (gpt_partition_map_embed) [GRUB_UTIL]: New function.
  10969. (grub_gpt_partition_map) [GRUB_UTIL]: Set .embed.
  10970. * grub-core/partmap/msdos.c (pc_partition_map_embed) [GRUB_UTIL]:
  10971. New function.
  10972. (grub_msdos_partition_map) [GRUB_UTIL]: Set .embed.
  10973. * include/grub/partition.h (grub_embed_type_t) [GRUB_UTIL]: New type.
  10974. (grub_partition_map) [GRUB_UTIL]: New field embed.
  10975. * util/grub-setup.c (grub_gpt_partition_type_bios_boot): Removed.
  10976. (setup): Use ->embed.
  10977. 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
  10978. * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): New
  10979. function.
  10980. * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_floppy): New proto.
  10981. * util/grub-setup.c (setup): Use grub_util_biosdisk_is_floppy.
  10982. 2010-09-15 Yves Blusseau <blusseau@zetam.org>
  10983. Add function to get completions from usage.
  10984. * util/bash-completion.d/grub-completion.bash.in: Add function to get
  10985. completions from usage. Use LC_ALL=C to get options properly.
  10986. 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
  10987. * grub-core/gnulib/basename-lgpl.c: Imported.
  10988. * grub-core/gnulib/basename.c: Likewise.
  10989. * grub-core/gnulib/dirname-lgpl.c: Likewise.
  10990. * grub-core/gnulib/dirname.c: Likewise.
  10991. * grub-core/gnulib/dirname.h: Likewise.
  10992. * grub-core/gnulib/stripslash.c: Likewise.
  10993. 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
  10994. * grub-core/gnulib/error.c: Resynced.
  10995. * grub-core/gnulib/getopt.c: Likewise.
  10996. * grub-core/gnulib/getopt_int.h: Likewise.
  10997. * grub-core/gnulib/regex.h: Likewise.
  10998. * grub-core/gnulib/regex_internal.c: Likewise.
  10999. * grub-core/gnulib/regex_internal.h: Likewise.
  11000. 2010-09-15 Szymon Janc <szymon@janc.net.pl>
  11001. * grub-core/lib/xzembed/xz_dec_stream.c (dec_main): Fix index and block
  11002. CRC calculations and validity checks.
  11003. * grub-core/lib/xzembed/xz_dec_stream.c (dec_index): Fix index CRC
  11004. calculations.
  11005. 2010-09-15 Szymon Janc <szymon@janc.net.pl>
  11006. * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_end): Fix memory leak.
  11007. 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
  11008. Fix incorrect echo options handling.
  11009. Reported by: Yves Blusseau.
  11010. * include/grub/command.h (grub_command_flags_t): New flags
  11011. GRUB_COMMAND_ACCEPT_DASH and GRUB_COMMAND_OPTIONS_AT_START.
  11012. * grub-core/lib/arg.c (grub_arg_parse): Handle new flags.
  11013. * grub-core/commands/echo.c (GRUB_MOD_INIT): Use new flags.
  11014. 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
  11015. * include/grub/command.h (GRUB_COMMAND_FLAG_CMDLINE): Removed. All
  11016. users updated.
  11017. (GRUB_COMMAND_FLAG_MENU): Likewise.
  11018. (GRUB_COMMAND_FLAG_BOTH): Likewise.
  11019. (GRUB_COMMAND_FLAG_TITLE): Removed.
  11020. (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
  11021. (GRUB_COMMAND_FLAG_EXTCMD): Moved into enum.
  11022. (GRUB_COMMAND_FLAG_DYNCMD): Likewise.
  11023. (GRUB_COMMAND_FLAG_BLOCKS): Likewise.
  11024. (grub_command_flags_t): New enum. All users updated.
  11025. 2010-09-14 Seth Goldberg <seth.goldberg@oracle.com>
  11026. Fix solaris compilation.
  11027. * grub-core/Makefile.core.def (kernel): Include gnulib/error.c on emu.
  11028. (grub-emu): Add LIBZFS and LIBNVPAIR to ldadd.
  11029. (grub-emu-list): Likewise.
  11030. 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
  11031. Remove deprecated root command.
  11032. * grub-core/commands/minicmd.c (grub_mini_cmd_root): Removed. All users
  11033. updated.
  11034. 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
  11035. * util/i386/pc/grub-setup.c: Merge this ...
  11036. * util/sparc64/ieee1275/grub-setup.c: ... and this ...
  11037. * util/grub-setup.c: ... into this.
  11038. * include/grub/sparc64/ieee1275/boot.h (grub_boot_blocklist) [ASM_FILE]:
  11039. New struct.
  11040. 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
  11041. * grub-core/fs/ext2.c (grub_ext2_open): Use return error value when
  11042. possible.
  11043. 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
  11044. * grub-core/partmap/sun.c (sun_partition_map_iterate): Don't needlesly
  11045. allocate p.
  11046. 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
  11047. * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
  11048. explicit root argument to set to prevent UUID to be interpreted as
  11049. argument to set.
  11050. 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
  11051. * grub-core/kern/sparc64/ieee1275/crt0.S: Align stack.
  11052. 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
  11053. Don't export grub_gate_a20.
  11054. * grub-core/kern/i386/pc/init.c: Remove leftovers.
  11055. * grub-core/kern/i386/pc/startup.S (FUNCTION(grub_gate_a20)): Rename
  11056. to ...
  11057. (grub_gate_a20): ... this. All users updated.
  11058. * include/grub/i386/pc/init.h: Removed. All users updated.
  11059. 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
  11060. Create euro.pf2 which supports most European languages.
  11061. * Makefile.am (grubdata_DATA): Add euro.pf2.
  11062. (euro.pf2): New target.
  11063. (CLEANFILES): Add euro.pf2.
  11064. 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
  11065. * configure.ac: Disable emu-usb by default to prevent inadvertent
  11066. device takeover.
  11067. 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
  11068. Disable usbserial on grub-emu since our libusb code isn't good enough
  11069. yet.
  11070. * grub-core/Makefile.core.def (usbserial_common): Disable on emu.
  11071. (usbserial_pl2303): Likewise.
  11072. (usbserial_ftdi): Likewise.
  11073. 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
  11074. * include/grub/disk.h (grub_disk): Remove has_partitions.
  11075. All users updated.
  11076. * disk/loopback.c (grub_loopback): Remove has_partitions.
  11077. All users updated.
  11078. (options): Remove partitions. All users updated.
  11079. * util/grub-fstest.c (fstest): Don't pass "-p" to loopback.
  11080. * util/i386/pc/grub-setup.c (setup): copy partition table only when
  11081. actual partition table is found.
  11082. 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
  11083. Remove readability checks (too many false negatives).
  11084. * util/grub-install.in: Remove readability checks.
  11085. * util/grub-mkconfig.in: Likewise.
  11086. * util/grub.d/10_hurd.in: Likewise.
  11087. * util/grub.d/10_kfreebsd.in: Likewise.
  11088. * util/grub.d/10_linux.in: Likewise.
  11089. * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Revert to old
  11090. way.
  11091. 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
  11092. Enable acpi shutdown on all ACPI platforms.
  11093. * grub-core/Makefile.core.def (halt): Inlude commands/acpihalt.c
  11094. on coreboo, multiboot and EFI.
  11095. * grub-core/commands/acpihalt.c (get_sleep_type): Add missing casts.
  11096. (grub_acpi_halt): Likewise.
  11097. * grub-core/commands/i386/pc/halt.c (grub_halt): Call grub_acpi_halt.
  11098. (grub_cmd_halt): Don't call grub_acpi_halt directly.
  11099. * grub-core/lib/efi/halt.c (grub_halt): Call grub_acpi_halt.
  11100. * grub-core/lib/i386/halt.c (grub_halt)
  11101. [GRUB_MACHINE_COREBOOT || GRUB_MACHINE_MULTIBOOT]: Likewise.
  11102. 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
  11103. * grub-core/commands/iorw.c (grub_cmd_read): Declare buf in smallest
  11104. context.
  11105. 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
  11106. * grub-core/video/efi_gop.c: Fix over-80-chars line.
  11107. * grub-core/video/efi_uga.c: Likewise.
  11108. 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
  11109. Filter devaliases and never open same device twice.
  11110. * grub-core/disk/ieee1275/ofdisk.c (last_devpath): New variable.
  11111. (last_ihandle): Likewise.
  11112. (ofdisk_hash_ent): New member shortest.
  11113. (ofdisk_hash_add): Add canonical path too.
  11114. (scan): New function.
  11115. (grub_ofdisk_iterate): Iterate over hashed entries.
  11116. (compute_dev_path): Don't add :0.
  11117. (grub_ofdisk_open): Don't really open the disk.
  11118. (grub_ofdisk_close): Avoid closing unrelated disk.
  11119. (grub_ofdisk_read): Implement reopen logic.
  11120. * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_canonicalise_devname):
  11121. New function.
  11122. * include/grub/ieee1275/ieee1275.h (grub_ieee1275_canonicalise_devname):
  11123. New proto.
  11124. 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
  11125. Fix sparc64.
  11126. * configure.ac (GRUB_KERNEL_MACHINE_LINK_ADDR): Removed.
  11127. * grub-core/Makefile.core.def (kernel): Make ldflags just use the
  11128. right address. Add sparc64_ieee1275_ldflags.
  11129. * grub-core/loader/sparc64/ieee1275/linux.c: Remove leftover include.
  11130. * util/grub-mkimagexx.c (locate_sections): Correct grub_host_to_target32
  11131. to grub_host_to_target_addr
  11132. (load_image): Likewise.
  11133. 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
  11134. * grub-core/normal/completion.c (complete_file): Handle device
  11135. containing slash.
  11136. Fix based on patch by Doug Nazar.
  11137. 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
  11138. grub-mknetdir script.
  11139. * Makefile.util.def (grub-mknetdir): New module.
  11140. * tests/util/grub-shell.in: Support boot=net
  11141. * util/grub-mknetdir.in: New file.
  11142. 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
  11143. videoinfo on non-vbe.
  11144. * grub-core/Makefile.core.def (vbeinfo): Removed.
  11145. (vbetest): Removed.
  11146. (videoinfo): New module.
  11147. * grub-core/commands/i386/pc/vbeinfo.c: Removed.
  11148. * grub-core/commands/i386/pc/vbetest.c: Removed.
  11149. * grub-core/commands/videoinfo.c: New file.
  11150. * grub-core/commands/videotest.c (grub_cmd_videotest): Support mode
  11151. specification.
  11152. (grub_cmd_videotest) [GRUB_MACHINE_PCBIOS]: Load vbe.mod when invoked
  11153. as vbetest.
  11154. (GRUB_MOD_INIT) [GRUB_MACHINE_PCBIOS]: New command vbetest.
  11155. (GRUB_MOD_FINI) [GRUB_MACHINE_PCBIOS]: Unregister vbetest.
  11156. * grub-core/video/efi_gop.c (grub_video_gop_fill_mode_info): Fill
  11157. mode_number. New parameter mode. All users updated.
  11158. (grub_video_gop_iterate): New function.
  11159. (grub_video_efi_gop): New member iterate.
  11160. * grub-core/video/i386/pc/vbe.c (framebuffer): Removed leftover fields.
  11161. (grub_vbe_set_video_mode): Remove setting useless fields.
  11162. (vbe2videoinfo): New function.
  11163. (grub_video_vbe_iterate): Likewise.
  11164. (grub_video_vbe_setup): Use vbe2videoinfo.
  11165. (grub_video_vbe_print_adapter_specific_info): New function.
  11166. (grub_video_vbe_adapter): New fields iterate and
  11167. print_adapter_specific_info.
  11168. * include/grub/video.h (GRUB_VIDEO_MODE_*): Transform into enum.
  11169. All users updated.
  11170. (grub_video_mode_info): New field mode_number.
  11171. (grub_video_adapter): New fields iterate and
  11172. print_adapter_specific_info.
  11173. 2010-09-13 Tristan Gingold <gingold@free.fr>
  11174. 2010-09-13 Robert Millan <rmh.grub@aybabtu.com>
  11175. 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
  11176. * grub-core/commands/efi/lsefisystab.c: New file.
  11177. * grub-core/commands/efi/lssal.c: Likewise.
  11178. * grub-core/Makefile.core.def (lsacpi): New module.
  11179. (lsefisystab): Likewise.
  11180. * include/grub/efi/api.h (GRUB_EFI_SAL_TABLE_GUID): New definition.
  11181. (GRUB_EFI_HCDP_TABLE_GUID): Likewise.
  11182. (grub_efi_sal_system_table): New struct.
  11183. (grub_efi_sal_system_table_entrypoint_descriptor): Likewise.
  11184. (grub_efi_sal_system_table_memory_descriptor): Likewise.
  11185. (grub_efi_sal_system_table_platform_features): Likewise.
  11186. (grub_efi_sal_system_table_translation_register_descriptor): Likewise.
  11187. (grub_efi_sal_system_table_purge_translation_coherence): Likewise.
  11188. (grub_efi_sal_system_table_ap_wakeup): Likewise.
  11189. * include/grub/types.h (PRIuGRUB_UINT64_T): New definition.
  11190. 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
  11191. Support explicit user claim that a device is BIOS-visible.
  11192. * grub-core/kern/emu/getroot.c (grub_util_get_dev_abstraction):
  11193. Return GRUB_DEV_ABSTRACTION_NONE if device is in device.map.
  11194. * grub-core/kern/emu/hostdisk.c
  11195. (convert_system_partition_to_system_disk): Support mdX.
  11196. (find_system_device): New parameter add. All users updated.
  11197. (grub_util_biosdisk_is_present): New function.
  11198. * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_present): New
  11199. proto.
  11200. 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
  11201. Search hints support.
  11202. * commands/search.c (FUNC_NAME): New arguments hints and nhints.
  11203. All users updated.
  11204. 2010-09-13 Yves Blusseau <blusseau@zetam.org>
  11205. Bash completion script for util commands
  11206. * Makefile.am: Add util/bash-completion.d directory
  11207. * configure.ac: Likewise.
  11208. * util/bash-completion.d/Makefile.am: New file.
  11209. * util/bash-completion.d/grub-completion.bash.in: Likewise.
  11210. 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
  11211. * grub-core/normal/term.c (put_glyphs_terminal): Correct sign.
  11212. (print_backlog): set backlog_ucs4 and backlog_glyphs.
  11213. Reported by: Yves Blusseau.
  11214. 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
  11215. * grub-core/normal/misc.c (grub_normal_print_device_info): Show
  11216. partition size and offset.
  11217. 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
  11218. * grub-core/commands/wildcard.c (make_regex): Escape brackets.
  11219. 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
  11220. * grub-core/commands/ls.c (grub_cmd_ls): Accept multiple files.
  11221. 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
  11222. * grub-core/kern/misc.c (grub_vprintf): Use va_copy when necessary.
  11223. (grub_xvasprintf): Likewise.
  11224. 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
  11225. * grub-core/kern/emu/main.c (main): Call hostfs_init only after init_all.
  11226. 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
  11227. * grub-core/commands/menuentry.c (append_menu_entry): Don't rely on
  11228. args ending with NULL.
  11229. 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
  11230. * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_reset): Preserve context
  11231. pointer.
  11232. 2010-09-11 Szymon Janc <szymon@janc.net.pl>
  11233. * grub-core/commands/lsacpi.c (grub_cmd_lsacpi): Fix prototype.
  11234. 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
  11235. Shutdown using ACPI.
  11236. * grub-core/Makefile.core.def (halt): Add commands/acpihalt.c on i386-pc.
  11237. * grub-core/commands/acpihalt.c: New file.
  11238. * grub-core/commands/i386/pc/halt.c (grub_cmd_halt): Call grub_acpi_halt.
  11239. * include/grub/acpi.h (grub_acpi_fadt): New member pm1a.
  11240. (grub_acpi_halt): New proto.
  11241. (GRUB_ACPI_SLP_EN): New const.
  11242. (GRUB_ACPI_SLP_TYP_OFFSET): Likewise.
  11243. (GRUB_ACPI_OPCODE_*): New enum.
  11244. (GRUB_ACPI_EXTOPCODE_*): Likewise.
  11245. 2010-09-11 Tristan Gingold <gingold@free.fr>
  11246. 2010-09-11 Robert Millan <rmh.grub@aybabtu.com>
  11247. 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
  11248. * commands/lsacpi.c: New file.
  11249. * grub-core/Makefile.core.def (lsacpi): New module.
  11250. * include/grub/acpi.h (GRUB_ACPI_FADT_SIGNATURE): New definition.
  11251. (GRUB_ACPI_MADT_SIGNATURE): Likewise.
  11252. (grub_acpi_madt_entry_header): New struct.
  11253. (grub_acpi_madt): Likewise.
  11254. (grub_acpi_madt_entry_interrupt_override): Likewise.
  11255. (grub_acpi_madt_entry_sapic): Likewise.
  11256. (grub_acpi_madt_entry_lsapic): Likewise.
  11257. (grub_acpi_madt_entry_platform_int_source): Likewise.
  11258. * include/grub/types.h (PRIxGRUB_UINT32_T): New definition.
  11259. (PRIuGRUB_UINT32_T): Likewise.
  11260. (PRIxGRUB_UINT64_T): Likewise.
  11261. 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
  11262. Implement loading palette on ieee1275_fb.
  11263. * grub-core/video/ieee1275.c (stdout_ihandle): New variable.
  11264. (have_setcolors): Likewise.
  11265. (grub_video_ieee1275_init): Fill stdout_ihandle and have_setcolors.
  11266. (grub_video_ieee1275_setup): Use grub_video_ieee1275_set_palette.
  11267. (grub_video_ieee1275_set_palette): Implement.
  11268. 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
  11269. 2010-09-11 Colin Watson <cjwatson@ubuntu.com>
  11270. * util/grub-install.in (grub_partition): New variable.
  11271. Set prefix_drive on EFI and PC to (,$grub_partition) as last resort.
  11272. * util/i386/pc/grub-setup.c (setup): Don't touch prefix.
  11273. Fixes a bug reported by Yves Blusseau.
  11274. 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
  11275. Fix emu on mipsel.
  11276. * conf/Makefile.common (CFLAGS_PLATFORM): Add -mflush-func
  11277. =grub_cpu_flush_cache on all mips and not only yeeloong.
  11278. * configure.ac (COND_mips): New conditional.
  11279. * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add libgcc on all
  11280. platforms.
  11281. * grub-core/kern/emu/cache.S (__mips__): Use _flush_cache.
  11282. * grub-core/kern/emu/full.c (grub_arch_dl_init_linker)
  11283. [GRUB_LINKER_HAVE_INIT]: New function.
  11284. (grub_emu_post_init): Likewise.
  11285. * grub-core/kern/emu/lite.c (grub_emu_post_init): Likewise.
  11286. * grub-core/kern/emu/main.c: Use grub_emu_post_init.
  11287. * include/grub/cache.h (_mips): Include mips/cache.h.
  11288. * include/grub/disk.h [GRUB_UTIL || GRUB_MACHINE_EMU]: Add missing
  11289. LVM and RAID prototypes.
  11290. * include/grub/emu/misc.h (grub_emu_post_init): New proto.
  11291. * include/grub/mips/time.h (grub_cpu_idle) [GRUB_MACHINE_EMU]: New
  11292. function.
  11293. 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
  11294. * util/grub-install.in: Don't try to verify core.img until after
  11295. running grub-mkimage to create it.
  11296. 2010-09-10 Robert Millan <rmh@gnu.org>
  11297. * util/grub.d/10_hurd.in: Add misc readability checks.
  11298. * util/grub.d/10_kfreebsd.in: Likewise.
  11299. * util/grub.d/10_linux.in: Likewise.
  11300. 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
  11301. * util/grub-install.in: ${imgext} won't be defined here until the
  11302. install branch is merged. For the meantime, only verify core.img on
  11303. i386-pc and sparc64-ieee1275 platforms.
  11304. 2010-09-10 Robert Millan <rmh@gnu.org>
  11305. Solaris support in grub_find_zpool_from_dir(). Thanks
  11306. Seth Goldberg for referring to getextmntent() facility.
  11307. * configure.ac: Check for getextmntent(), `sys/mnttab.h' and
  11308. `sys/mkdev.h'.
  11309. * grub-core/kern/emu/misc.c [HAVE_SYS_MNTTAB_H]: Include
  11310. `<sys/mnttab.h>'.
  11311. [HAVE_SYS_MKDEV_H]: Include `<sys/mkdev.h>'.
  11312. [HAVE_GETEXTMNTENT] (grub_find_zpool_from_dir): Add getextmntent()
  11313. method for finding zpool name.
  11314. 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
  11315. grub-fstest needs the host and hostfs modules while other utilities
  11316. actively require those modules to be absent, so grub-fstest needs
  11317. its own initialisation and finalisation code.
  11318. * Makefile.am (grub_fstest.pp): New target.
  11319. (grub_fstest_init.lst): Likewise.
  11320. (grub_fstest_init.c): Likewise.
  11321. * Makefile.util.def (grub-fstest): Add grub_fstest_init.c.
  11322. 2010-09-10 Robert Millan <rmh@gnu.org>
  11323. * configure.ac: Check for `struct statfs.f_fstypename' and
  11324. `struct statfs.f_mntfromname'.
  11325. * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir): Conditionalize
  11326. kFreeBSD-specific code.
  11327. 2010-09-10 Robert Millan <rmh@gnu.org>
  11328. * util/grub.d/10_kfreebsd.in: Fix ${kfreebsd_device} initialization
  11329. on ZFS. Now non-main filesystems are supported as / too.
  11330. 2010-09-09 Colin Watson <cjwatson@ubuntu.com>
  11331. * Makefile.util.def (libgrub.a): Move grub-core/kern/emu/hostfs.c
  11332. and grub-core/disk/host.c to ...
  11333. (grub-fstest): ... here. Having the host disk implementation
  11334. present confuses grub-probe and other utility programs.
  11335. * util/grub-mkconfig.in: Only verify readability of grub.cfg.new
  11336. when writing to a file, not when writing to stdout.
  11337. 2010-09-09 BVK Chaitanya <bvk.groups@gmail.com>
  11338. * tests/partmap_test.in: New test for partitions.
  11339. * Makefile.util.def: Rules for new test.
  11340. 2010-09-09 Robert Millan <rmh@gnu.org>
  11341. * util/grub-probe.c (probe): Fix a pair of unhandled error
  11342. conditions.
  11343. 2010-09-09 Robert Millan <rmh@gnu.org>
  11344. Basic Btrfs support (detection and UUID).
  11345. * grub-core/fs/btrfs.c: New file.
  11346. * Makefile.util.def (library): Register btrfs.c.
  11347. * grub-core/Makefile.core.def: Likewise.
  11348. 2010-09-08 Robert Millan <rmh@gnu.org>
  11349. * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Improve
  11350. with (optional) parameters to specify device and relative path.
  11351. * util/grub-install.in: Use is_path_readable_by_grub() to
  11352. verify readability of a few critical files.
  11353. * util/grub-mkconfig.in: Use is_path_readable_by_grub() to
  11354. verify readability of grub.cfg.new.
  11355. 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
  11356. Split minix.mod into minix.mod and minix2.mod.
  11357. * Makefile.util.def (libgrub.a): Add grub-core/fs/minix2.c.
  11358. * grub-core/Makefile.core.def (minix2): New module.
  11359. * grub-core/fs/minix.c: Use definitions instead of runtime version
  11360. checking.
  11361. * grub-core/fs/minix2.c: New file.
  11362. 2010-09-08 Yves Blusseau <blusseau@zetam.org>
  11363. Add new --boot-directory option to replace --root-directory
  11364. * util/grub-install.in: Add new --boot-directory option
  11365. * util/grub-reboot.in: Likewise.
  11366. * util/grub-set-default.in: Likewise.
  11367. 2010-09-08 Yves Blusseau <blusseau@zetam.org>
  11368. * util/grub-mkconfig.in: Use new variable.
  11369. 2010-09-08 Yves Blusseau <blusseau@zetam.org>
  11370. * configure.ac: Define some useful variables.
  11371. 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
  11372. * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
  11373. GRUB_IEEE1275_FLAG_HAS_CURSORONOFF when appropriate.
  11374. * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_setcursor):
  11375. Use terminfo and don't use cursor-on/cursor-off unless it's known
  11376. to work.
  11377. * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New element
  11378. GRUB_IEEE1275_FLAG_HAS_CURSORONOFF.
  11379. 2010-09-08 Colin Watson <cjwatson@ubuntu.com>
  11380. * grub-core/kern/efi/init.c (grub_efi_set_prefix): If the prefix
  11381. starts with "(,", fill the drive containing the loaded image in
  11382. between those two characters, but expect that a full partition
  11383. specification including partition map names will follow.
  11384. 2010-09-08 Robert Millan <rmh@gnu.org>
  11385. * configure.ac: Remove `--enable-grub-fstest' option.
  11386. * Makefile.util.def (grub-fstest): Remove COND_GRUB_FSTEST condition.
  11387. * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Use
  11388. `grub-fstest' instead of `grub-probe' for readability verification.
  11389. * util/grub-probe.c (probe): Remove readability verification kludge.
  11390. 2010-09-08 Robert Millan <rmh@gnu.org>
  11391. * util/grub-mkconfig.in: Pass `--device ${GRUB_DEVICE}' when
  11392. initializing `GRUB_FS'.
  11393. 2010-09-08 BVK Chaitanya <bvk.groups@gmail.com>
  11394. Not command (!) support to GRUB script.
  11395. * tests/grub_script_not.in: New test.
  11396. * Makefile.util.def: Rules for new test.
  11397. * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
  11398. ! command as a special case.
  11399. * grub-core/script/yylex.l (GRUB_PARSER_TOKEN_NOT): Removed.
  11400. 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
  11401. * grub-core/commands/wildcard.c (wildcard_expand): Fix wrong
  11402. grub_free.
  11403. 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
  11404. * docs/grub.texi (Shell-like scripting): Fix @dots to @dots{}.
  11405. 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
  11406. * docs/grub.texi (Shell-like scripting): Documentation for break,
  11407. continue, shift and return commands.
  11408. 2010-09-06 Vladimir Serbinenko <phcoder@gmail.com>
  11409. Rename CD-ROM to cd on BIOS.
  11410. * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_drive): Recognise
  11411. "cd".
  11412. (grub_biosdisk_call_hook): Call with "cd" instead of arbitrary hdX.
  11413. 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
  11414. * grub-core/kern/emu/main.c (main): Reinit LVM and RAID.
  11415. * util/grub-probe.c (main): Likewise.
  11416. * util/i386/pc/grub-setup.c (main): Likewise.
  11417. * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
  11418. Reported and debugged by: alexxy
  11419. 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
  11420. * grub-core/disk/lvm.c (grub_lvm_scan_device) [GRUB_UTIL]: Output more
  11421. diagnostic info.
  11422. 2010-09-05 Jo Shields <directhex@apebox.org>
  11423. * util/grub.d/30_os-prober.in: Add missing classes.
  11424. 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
  11425. * docs/grub.texi (Theme file format): Document new position format.
  11426. 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
  11427. * docs/grub.texi (Theme file format): Replace Box_slice_names.png with
  11428. a table. Use @code instead of @verbatim.
  11429. 2010-09-05 Colin D Bennett <colin@gibibit.com>
  11430. Gfxmenu documentation.
  11431. * docs/grub.texi (Theme file format): New chapter.
  11432. 2010-09-05 Szymon Janc <szymon@janc.net.pl>
  11433. * grub-core/Makefile.core.def (xzio): New module.
  11434. * grub-core/io/xzio.c: New file.
  11435. * grub-core/lib/xzembed/xz.h: New file (from xembed).
  11436. * grub-core/lib/xzembed/xz_config.h: Likewise.
  11437. * grub-core/lib/xzembed/xz_dec_bcj.c: Likewise.
  11438. * grub-core/lib/xzembed/xz_dec_lzma2.c: Likewise.
  11439. * grub-core/lib/xzembed/xz_dec_stream.c: Likewise.
  11440. * grub-core/lib/xzembed/xz_lzma2.h: Likewise.
  11441. * grub-core/lib/xzembed/xz_private.h: Likewise.
  11442. * grub-core/lib/xzembed/xz_stream.h: Likewise.
  11443. * include/grub/file.h (grub_file_filter_id): New compression filter
  11444. GRUB_FILE_FILTER_XZIO.
  11445. 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
  11446. * include/grub/file.h (GRUB_FILE_SIZE_UNKNOWN): New definition.
  11447. * grub-core/disk/loopback.c (grub_loopback_open): Handle unknown file
  11448. size.
  11449. 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
  11450. * include/grub/err.h (grub_err_t): Replace GRUB_ERR_BAD_GZIP_DATA with
  11451. GRUB_ERR_BAD_COMPRESSED_DATA. All users updated.
  11452. 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
  11453. Uncompressed checksum support.
  11454. * grub-core/commands/hashsum.c (options): Add option --uncompress.
  11455. (check_list): New parameter uncompress.
  11456. (grub_cmd_hashsum): Handle --uncompress.
  11457. 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
  11458. Reintroduce testload.
  11459. * grub-core/commands/minicmd.c (grub_rescue_cmd_testload) [0]: Moved
  11460. from here ...
  11461. * grub-core/commands/testload.c (grub_cmd_testload): ... here.
  11462. (GRUB_MOD_INIT): New function.
  11463. (GRUB_MOD_FINI): Likewise.
  11464. * grub-core/Makefile.core.def (testload): New module.
  11465. 2010-09-05 Szymon Janc <szymon@janc.net.pl>
  11466. * grub-core/lib/posix_wrap/sys/types.h (bool): Transform into an enum.
  11467. (uint8_t): New type.
  11468. (uint16_t): Likewise.
  11469. (uint32_t): Likewise.
  11470. (uint64_t): Likewise.
  11471. 2010-09-05 Szymon Janc <szymon@janc.net.pl>
  11472. * include/grub/crypto.h (GRUB_MD_CRC32): New definition.
  11473. 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
  11474. * grub-core/io/gzio.c (grub_gzio_open): Removed "transparent" parameter.
  11475. Made static.
  11476. (grub_gzfile_open): Removed. All users updated.
  11477. (GRUB_MOD_INIT): New function.
  11478. (GRUB_MOD_FINI): Likewise.
  11479. * grub-core/kern/file.c (grub_file_filters_all): New variable.
  11480. (grub_file_filters_enabled): Likewise.
  11481. (grub_file_open): Handle filters.
  11482. * grub-core/loader/i386/bsd.c (GRUB_MOD_INIT): Load gzio.
  11483. * grub-core/normal/main.c (GRUB_MOD_INIT): Likewise.
  11484. * include/grub/file.h (grub_file_filter_id_t): New type.
  11485. (grub_file_filter_t): Likewise.
  11486. (grub_file_filters_all): New extern variable.
  11487. (grub_file_filters_enabled): Likewise.
  11488. (grub_file_filter_register): New inline function.
  11489. (grub_file_filter_unregister): Likewise.
  11490. (grub_file_filter_disable): Likewise.
  11491. (grub_file_filter_disable_compression): Likewise.
  11492. * include/grub/gzio.h: Removed.
  11493. 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
  11494. Filename expansion support for wildcards in GRUB script.
  11495. * tests/grub_script_expansion.in: New test.
  11496. * Makefile.util.def: Rule for new test.
  11497. * grub-core/commands/wildcard.c: New file, implements filename
  11498. expansion support for GRUB script.
  11499. * grub-core/Makefile.core.def: Rule update for regexp.mod.
  11500. * grub-core/script/argv.c: Cosmetic changes.
  11501. * grub-core/script/execute.c (grub_script_arglist_to_argv):
  11502. Refactored to perform wildcard expansion on arguments.
  11503. * include/grub/script_sh.h (grub_script_wildcard_translator): New
  11504. struct.
  11505. * tests/util/grub-shell.in: Fix quoting for read input.
  11506. 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
  11507. Support for updating environment variables with matched substrings
  11508. of regexp.
  11509. * tests/grub_cmd_regexp.in: New test.
  11510. * Makefile.util.def: Rule for new test.
  11511. * grub-core/commands/regexp.c: New option -s to update environment
  11512. variables with regexp matches.
  11513. 2010-09-04 Szymon Janc <szymon@janc.net.pl>
  11514. * include/grub/file.h (grub_file): New member not_easly_seekable.
  11515. (grub_file_seekable): New inline function.
  11516. * grub-core/io/gzio.c (test_header): Don't test end magic if file isn't
  11517. easily seekable.
  11518. (grub_gzio_open): Set not_easly_seekable.
  11519. * grub-core/fs/i386/pc/pxe.c (grub_pxefs_open): Set not_easily_seekable.
  11520. * grub-core/io/bufio.c (grub_bufio_open): Propagate not_easily_seekable.
  11521. 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
  11522. Support for options to appear multiple times on cmdline.
  11523. * include/grub/lib/arg.h (grub_arg_list_alloc): New prototype.
  11524. * grub-core/commands/extcmd.c: Support for repeatable option.
  11525. * grub-core/lib/arg.c (grub_arg_list_alloc): New function for
  11526. repeatable option support.
  11527. Refactor menuentry into a regular command.
  11528. * grub-core/commands/menuentry.c: New file, menuentry command
  11529. implementation.
  11530. * grub-core/Makefile.core.def: Rule update for normal.mod.
  11531. * grub-core/normal/main.c: Moved menuentry creation to
  11532. grub-core/commands/menuentry.c.
  11533. * grub-core/normal/menu.c (grub_menu_execute_entry): Removed.
  11534. (grub_menu_execute_entry_real): Removed.
  11535. * grub-core/script/execute.c (grub_script_execute_sourcecode): New
  11536. function.
  11537. (grub_script_execute_menuentry): Removed.
  11538. * grub-core/script/parser.y (menuentry): Removed.
  11539. * grub-core/script/script.c (grub_script_create_cmdmenu): Removed.
  11540. * grub-core/script/yylex.l (menuentry): Removed.
  11541. * include/grub/menu.h (grub_menu_init): New prototype.
  11542. (grub_menu_fini): New prototype.
  11543. * include/grub/normal.h (grub_normal_add_menu_entry): Removed.
  11544. * include/grub/script_sh.h (grub_script_cmd_menuentry): Removed.
  11545. (grub_script_execute_sourcecode): New prototype.
  11546. 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
  11547. "return" command for GRUB script functions.
  11548. * tests/grub_script_return.in: New test.
  11549. * Makefile.util.def: Rules for new test.
  11550. * grub-core/script/execute.c (grub_script_return): New function.
  11551. * grub-core/script/main.c: Register/unregister return commaond.
  11552. * include/grub/script_sh.h (grub_script_return): New prototype.
  11553. 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
  11554. "setparams" command to update positional parameters.
  11555. * tests/grub_script_setparams.in: New test.
  11556. * Makefile.util.def: Rules for new test.
  11557. * grub-core/script/argv.c (grub_script_argv_make): New function.
  11558. * grub-core/script/execute.c (replace_scope): New function.
  11559. (grub_script_setparams): New function.
  11560. * grub-core/script/lexer.c: Remove unused variables.
  11561. * grub-core/script/main.c: Register/unregister setparams command.
  11562. * include/grub/script_sh.h (grub_script_argv_make): New prototype.
  11563. (grub_script_setparams): New prototype.
  11564. 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
  11565. * grub-core/normal/completion.c (grub_normal_do_completion): Fix
  11566. grub_free order.
  11567. 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
  11568. Support for passing block of commands as an argument to extcmds.
  11569. * Makefile.util.def: Rules for new test.
  11570. * tests/grub_script_blockarg.in: New test.
  11571. * grub-core/tests/test_blockarg.c: New file, block argument
  11572. command used in the test.
  11573. * include/grub/extcmd.h (grub_extcmd_context): New struct.
  11574. (grub_register_extcmd_prio): New function prototype.
  11575. (grub_extcmd_dispatcher): New function prototype.
  11576. * include/grub/command.h (GRUB_COMMAND_FLAG_BLOCKS): New command
  11577. type.
  11578. * include/grub/script_sh.h (struct grub_script): New members
  11579. `children', `next_siblings' and `refcnt' for block arguments and
  11580. reference counting.
  11581. (GRUB_SCRIPT_ARG_TYPE_BLOCK): New argument type.
  11582. (grub_script_arg): New member `script' for block argument.
  11583. (grub_script_argv): New member `script' for block argument.
  11584. (grub_parser_param): New member `scripts' for block argument.
  11585. (grub_script_mem_free): New extern function prototype.
  11586. (grub_script_ref): New function prototype.
  11587. (grub_script_unref): New function prototype.
  11588. * grub-core/normal/dyncmd.c (grub_dyncmd_dispatcher): Moved to
  11589. extcmd form to support block arguments.
  11590. * grub-core/script/argv.c: Block arguments support.
  11591. * grub-core/script/execute.c: Likewise.
  11592. * grub-core/script/lexer.c: Likewise.
  11593. * grub-core/script/main.c: Likewise.
  11594. * grub-core/script/script.c: Likewise.
  11595. * grub-core/script/parser.y: Likewise. New `block' and `block0'
  11596. non-terminals.
  11597. * grub-core/commands/acpi.c: Update extcmd implementations with
  11598. grub_extcmd_context_t.
  11599. * grub-core/commands/cat.c: Likewise.
  11600. * grub-core/commands/echo.c: Likewise.
  11601. * grub-core/commands/extcmd.c: Likewise.
  11602. * grub-core/commands/hashsum.c: Likewise.
  11603. * grub-core/commands/hdparm.c: Likewise.
  11604. * grub-core/commands/help.c: Likewise.
  11605. * grub-core/commands/hexdump.c: Likewise.
  11606. * grub-core/commands/i386/cpuid.c: Likewise.
  11607. * grub-core/commands/i386/pc/drivemap.c: Likewise.
  11608. * grub-core/commands/i386/pc/halt.c: Likewise.
  11609. * grub-core/commands/i386/pc/sendkey.c: Likewise.
  11610. * grub-core/commands/iorw.c: Likewise.
  11611. * grub-core/commands/keystatus.c: Likewise.
  11612. * grub-core/commands/loadenv.c: Likewise.
  11613. * grub-core/commands/ls.c: Likewise.
  11614. * grub-core/commands/lspci.c: Likewise.
  11615. * grub-core/commands/memrw.c: Likewise.
  11616. * grub-core/commands/probe.c: Likewise.
  11617. * grub-core/commands/search_wrap.c: Likewise.
  11618. * grub-core/commands/setpci.c: Likewise.
  11619. * grub-core/commands/sleep.c: Likewise.
  11620. * grub-core/disk/loopback.c: Likewise.
  11621. * grub-core/hello/hello.c: Likewise.
  11622. * grub-core/loader/i386/bsd.c: Likewise.
  11623. * grub-core/loader/xnu.c: Likewise.
  11624. * grub-core/term/gfxterm.c: Likewise.
  11625. * grub-core/term/serial.c: Likewise.
  11626. * grub-core/tests/lib/functional_test.c: Likewise.
  11627. 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
  11628. Multi-line quoted strings support.
  11629. * grub-core/script/lexer.c (append_newline): Removed.
  11630. (grub_script_lexer_yywrap): Refactored.
  11631. (grub_script_lexer_init): Refactored.
  11632. * grub-core/script/yylex.l (yywrap): New function.
  11633. (grub_lexer_resplit): New function.
  11634. (grub_lexer_unput): New function.
  11635. * include/grub/script_sh.h (grub_lexer_param): New members, unput
  11636. and resplit.
  11637. * tests/grub_script_echo1.in: Added few more testcases.
  11638. 2010-09-04 Vladimir Serbinenko <phcoder@gmail.com>
  11639. * grub-core/kern/misc.c: Don't add abort alias in utils.
  11640. Reported by: echoline.
  11641. 2010-09-03 BVK Chaitanya <bvk.groups@gmail.com>
  11642. Add missing files into "make dist" tarball for other platforms.
  11643. * gentpl.py (script): Use dist_noinst_DATA instead of EXTRA_DIST.
  11644. * conf/Makefile.common (dist_noinst_DATA): New variable.
  11645. * conf/Makefile.extra-dist: Added missing make dist files.
  11646. * grub-core/Makefile.core.def: Likewise.
  11647. 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
  11648. Compress grub_prefix.
  11649. * grub-core/boot/i386/pc/lnxboot.S: Use
  11650. GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE.
  11651. * grub-core/kern/i386/pc/startup.S: Move grub_prefix to compressed part.
  11652. * include/grub/offsets.h: Rename GRUB_MACHINE_DATA_END to
  11653. GRUB_MACHINE_PREFIX_END. All users updated.
  11654. (GRUB_KERNEL_I386_PC_PREFIX): Set to GRUB_KERNEL_I386_PC_RAW_SIZE.
  11655. (GRUB_KERNEL_I386_PC_PREFIX_END): Set to GRUB_KERNEL_I386_PC_PREFIX
  11656. + 0x40.
  11657. (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
  11658. * util/grub-mkimage.c (image_target_desc): Change data_end to
  11659. prefix_end. All users updated.
  11660. 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
  11661. * grub-core/loader/i386/bsd.c (grub_freebsd_boot): Set %ebp to sane
  11662. value.
  11663. (grub_openbsd_boot): Likewise.
  11664. (grub_netbsd_boot): Likewise.
  11665. * grub-core/loader/i386/xnu.c (grub_xnu_boot_resume): Likewise.
  11666. (grub_xnu_boot): Likewise.
  11667. 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
  11668. * configure.ac: Clean LIBS variable after tests.
  11669. 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
  11670. * INSTALL: Document that libdevmapper needs to be 1.02.34 or later.
  11671. 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
  11672. * configure.ac: Check for dm_log_with_errno_init in libdevmapper and
  11673. echo if libdevmapper will be used.
  11674. 2010-09-02 Ian Turner <Ian.Turner@deshaw.com>
  11675. * grub-core/fs/i386/pc/pxe.c (grub_pxefs_read): Keep the blocksize
  11676. constant for the same file.
  11677. 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
  11678. * grub-core/kern/i386/multiboot_mmap.c: Remove leftover include.
  11679. 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
  11680. * .bzrignore: Add *.pp, **/.dirstamp, grub-core/*.module, and
  11681. grub-core/*.pp.
  11682. 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
  11683. Zero %ebp and %edi when entering Linux's 32-bit entry point, as
  11684. required by the boot protocol.
  11685. * include/grub/i386/relocator.h (struct grub_relocator32_state): Add
  11686. ebp and edi members.
  11687. * grub-core/lib/i386/relocator.c (grub_relocator_boot): Handle
  11688. state.ebp and state.edi.
  11689. * grub-core/lib/i386/relocator32.S (grub_relocator32_start): Set
  11690. %ebp and %edi according to grub_relocator32_ebp and
  11691. grub_relocator32_edi respectively.
  11692. * grub-core/loader/i386/linux.c (grub_linux_boot): Zero state.ebp
  11693. and state.edi.
  11694. 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
  11695. Add i386-pc-pxe image target.
  11696. * util/grub-mkimage.c (image_target_desc): New enum value
  11697. IMAGE_I386_PC_PXE.
  11698. (image_targets): New target i386-pc-pxe.
  11699. (generate_image): Handle i386-pc-pxe image.
  11700. 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
  11701. Fix grub_pxe_scan.
  11702. * grub-core/fs/i386/pc/pxe.c (grub_pxe_pxenv): Put correct type bangpxe.
  11703. (grub_pxe_scan): Fix types and pxe_rm_entry computation.
  11704. All users updated.
  11705. * include/grub/i386/pc/pxe.h (grub_pxe_bangpxe): New struct.
  11706. (grub_pxe_pxenv): Correct type.
  11707. 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
  11708. * NEWS: Document most of the important changes since 1.98.
  11709. 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
  11710. * util/grub-mkrescue.in (usage): Tidy up usage output (and hence
  11711. generated manual page) a little.
  11712. 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
  11713. * docs/grub.texi: Add myself as an author.
  11714. 2010-09-01 Vladimir Serbinenko <phcoder@gmail.com>
  11715. * Makefile.util.def (libgrub.a): Add missing sunpc.
  11716. Reported by: Seth Goldberg.
  11717. 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
  11718. Interrupt wrapping and code simplifications.
  11719. * Makefile.util.def (grub-mkrescue): Use x86 tg instead of
  11720. x86_noieee1275 which are functionaly equivalent in this case.
  11721. (grub-install): Make source on each platform explicit. Enable on
  11722. all noemu.
  11723. * gentpl.py (x86_efi_pc): Removed group.
  11724. (x86_noefi): Likewise.
  11725. (i386_noefi): Likewise.
  11726. (x86_noieee1275): Likewise.
  11727. (i386_noieee1275): Likewise.
  11728. (i386_noefi_noieee1275): Likewise.
  11729. (i386_pc_qemu_coreboot): Likewise.
  11730. (i386_coreboot_multiboot): Likewise.
  11731. (i386_pc_coreboot_multiboot_qemu): Likewise.
  11732. (x86_noefi_mips): Likewise.
  11733. (noieee1275): Likewise.
  11734. (ieee1275_mips): Likewise.
  11735. (noemu_noieee1275): Likewise.
  11736. (cmos): New group.
  11737. (usb): Likewise.
  11738. (videoinkernel): Likewise.
  11739. (videomodules): Likewise.
  11740. * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove
  11741. include/grub/elf.h, include/grub/elfload.h, include/grub/net.h,
  11742. include/grub/reader.h, include/grub/symbol.h, include/grub/types.h,
  11743. include/grub/loader.h, include/grub/msdos_partition.h,
  11744. include/grub/machine/biosdisk.h, include/grub/machine/boot.h,
  11745. include/grub/machine/console.h, include/grub/machine/vga.h,
  11746. include/grub/machine/vbe.h, include/grub/machine/init.h,
  11747. include/grub/machine/kernel.h, include/grub/cpu/time.h,
  11748. include/grub/cpu/types.h, include/grub/gzio.h and include/grub/menu.h
  11749. (KERNEL_HEADER_FILES) [i386-pc]: Add include/grub/machine/int.h.
  11750. (KERNEL_HEADER_FILES) [i386-ieee1275]: Add include/grub/i386/pit.h
  11751. * grub-core/Makefile.core.def (kernel): Explicit the source for
  11752. startup. Explicit the platforms using kern/generic/rtc_get_time_ms.c.
  11753. Split ieee1275_mips. Remove kern/i386/halt.c. Remove kern/i386/misc.S.
  11754. Enable kern/i386/pit.c on all x86. Remove kern/i386/ieee1275/init.c.
  11755. Use videoinkernel tag.
  11756. (usb): Enable on all usb.
  11757. (usbserial_common): Likewise.
  11758. (usbserial_pl2303): Likewise.
  11759. (usbserial_ftdi): Likewise.
  11760. (uhci): Enable on all x86.
  11761. (ohci): Enable on all pci.
  11762. (cmostest): Enable on all CMOS.
  11763. (acpi): Include commands/acpi.c on all platforms.
  11764. (halt): Add relevant lib/*/halt.c.
  11765. (hdparm): Enable on all pci.
  11766. (lspci): Likewise.
  11767. (usbtest): Enable on all usb.
  11768. (ata): Enable on all pci.
  11769. (ata_pthru): Likewise.
  11770. (usbms): Enable on all usb.
  11771. (usb_keyboard): Likewise.
  11772. (font): Use tag videomodules.
  11773. (bufio): Likewise.
  11774. (datetime): Use tag cmos. Enable on all noemu.
  11775. (mmap): Use tags common and x86.
  11776. (gfxterm): Use tag videomodules.
  11777. (bitmap): Likewise.
  11778. (bitmap_scale): Likewise.
  11779. (video_fb): Likewise.
  11780. (video): Likewise.
  11781. * grub-core/bus/usb/ohci.c (grub_ohci_td): Make link_td a pointer and
  11782. adjust padding accordingly. All users updated.
  11783. (grub_ohci_transaction): Fix bad format specification.
  11784. (GRUB_MOD_INIT): Add asserts for struct size.
  11785. * grub-core/bus/usb/uhci.c (grub_uhci_pci_iter): Add explicit casts.
  11786. (grub_alloc_td): Likewise.
  11787. (grub_free_queue): Likewise.
  11788. (grub_uhci_transfer): Likewise.
  11789. (grub_uhci_transaction): Fix bad format specification.
  11790. * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
  11791. (grub_usb_bulk_readwrite): Likewise.
  11792. * grub-core/kern/i386/misc.S (grub_stop): Moved from here ...
  11793. * grub-core/commands/i386/pc/halt.c (stop): ...here. Transformed into C.
  11794. Made static.
  11795. * grub-core/lib/i386/halt.c (stop): ... and here. Transformed into C.
  11796. Made static.
  11797. * grub-core/kern/i386/pc/startup.S (grub_halt): Moved from here ...
  11798. * grub-core/commands/i386/pc/halt.c (grub_halt): ...here.
  11799. Transformed into C.
  11800. * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_int13_extensions):
  11801. Moved from here ...
  11802. * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_int13_extensions):
  11803. ... here. Transformed into C. Made static.
  11804. * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_standard):
  11805. Moved from here ...
  11806. * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_standard):
  11807. ... here. Transformed into C. Made static.
  11808. * grub-core/kern/i386/pc/startup.S
  11809. (grub_biosdisk_check_int13_extensions): Moved from here ...
  11810. * grub-core/disk/i386/pc/biosdisk.c
  11811. (grub_biosdisk_check_int13_extensions): ... here. Transformed into C.
  11812. Made static.
  11813. * grub-core/kern/i386/pc/startup.S
  11814. (grub_biosdisk_get_cdinfo_int13_extensions): Moved from here ...
  11815. * grub-core/disk/i386/pc/biosdisk.c
  11816. (grub_biosdisk_get_cdinfo_int13_extensions): ... here.
  11817. Transformed into C. Made static.
  11818. * grub-core/kern/i386/pc/startup.S
  11819. (grub_biosdisk_get_diskinfo_int13_extensions): Moved from here ...
  11820. * grub-core/disk/i386/pc/biosdisk.c
  11821. (grub_biosdisk_get_diskinfo_int13_extensions): ... here.
  11822. Transformed into C. Made static.
  11823. * grub-core/kern/i386/pc/startup.S
  11824. (grub_biosdisk_get_diskinfo_standard): Moved from here ...
  11825. * grub-core/disk/i386/pc/biosdisk.c
  11826. (grub_biosdisk_get_diskinfo_standard): ... here.
  11827. Transformed into C. Made static.
  11828. * grub-core/kern/i386/pc/startup.S
  11829. (grub_biosdisk_get_num_floppies): Moved from here ...
  11830. * grub-core/disk/i386/pc/biosdisk.c
  11831. (grub_biosdisk_get_num_floppies): ... here.
  11832. Transformed into C. Made static.
  11833. * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_diskinfo_real):
  11834. New function.
  11835. * grub-core/kern/i386/pc/startup.S (grub_pxe_scan): Moved from here ...
  11836. * grub-core/fs/i386/pc/pxe.c (grub_pxe_scan): ... here.
  11837. Transformed into C. Made static.
  11838. * grub-core/kern/i386/pc/startup.S (grub_rm_entry): Moved from here ...
  11839. * grub-core/fs/i386/pc/pxe.c (grub_rm_entry): ... here.
  11840. Transformed into C. Made static.
  11841. * grub-core/kern/i386/ieee1275/init.c: Removed.
  11842. * grub-core/kern/i386/misc.S: Likewise.
  11843. * grub-core/kern/i386/pc/startup.S (grub_get_memsize):
  11844. Splitted from here ...
  11845. * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): ... here.
  11846. Transformed into C. Made static. All users updated.
  11847. * grub-core/kern/i386/pc/mmap.c (grub_get_ext_memsize): ... and here.
  11848. Transformed into C. Made static. All users updated.
  11849. * grub-core/kern/i386/pc/startup.S (grub_get_eisa_mmap):
  11850. Moved from here...
  11851. * grub-core/kern/i386/pc/mmap.c (grub_get_eisa_mmap): ... here.
  11852. Transformed into C. Made static. All users updated.
  11853. * grub-core/kern/i386/pc/startup.S (grub_get_mmap_entry):
  11854. Moved from here...
  11855. * grub-core/kern/i386/pc/mmap.c (grub_get_mmap_entry): ... here.
  11856. Transformed into C. Made static. All users updated.
  11857. * grub-core/kern/i386/pc/startup.S (grub_stop_floppy):
  11858. Removed (replaced by C version).
  11859. * grub-core/kern/i386/pc/startup.S (grub_vga_set_mode):
  11860. Moved from here...
  11861. * grub-core/video/i386/pc/vga.c (grub_vga_set_mode): ...here.
  11862. Transformed into C. Made static.
  11863. * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_controller_info):
  11864. Moved from here...
  11865. * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_controller_info):
  11866. ... here. Transformed into C.
  11867. * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode_info):
  11868. Moved from here...
  11869. * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode_info):
  11870. ... here. Transformed into C.
  11871. * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_mode):
  11872. Moved from here...
  11873. * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_mode):
  11874. ... here. Transformed into C. Made static.
  11875. * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode):
  11876. Moved from here...
  11877. * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode):
  11878. ... here. Transformed into C.
  11879. * grub-core/kern/i386/pc/startup.S
  11880. (grub_vbe_bios_getset_dac_palette_width):Moved from here...
  11881. * grub-core/video/i386/pc/vbe.c
  11882. (grub_vbe_bios_getset_dac_palette_width):... here. Transformed into C.
  11883. * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_memory_window):
  11884. Moved from here...
  11885. * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_memory_window):
  11886. ... here. Transformed into C.
  11887. * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_memory_window):
  11888. Moved from here...
  11889. * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_memory_window):
  11890. ... here. Transformed into C.
  11891. * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_scanline_length):
  11892. Moved from here...
  11893. * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_scanline_length):
  11894. ... here. Transformed into C.
  11895. * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_scanline_length):
  11896. Moved from here...
  11897. * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_scanline_length):
  11898. ... here. Transformed into C.
  11899. * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_display_start):
  11900. Moved from here...
  11901. * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_display_start):
  11902. ... here. Transformed into C. Made static.
  11903. * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_display_start):
  11904. Moved from here...
  11905. * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_display_start):
  11906. ... here. Transformed into C. Made static.
  11907. * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_palette_data):
  11908. Moved from here...
  11909. * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_palette_data):
  11910. ... here. Transformed into C. Made static.
  11911. * grub-core/kern/i386/pc/startup.S (grub_pxe_call): Receive
  11912. pxe_rm_entry as third argument.
  11913. (grub_bios_interrupt): New function.
  11914. * grub-core/kern/i386/qemu/mmap.c: Remove useless include.
  11915. * grub-core/kern/i386/qemu/startup.S (codestart): Do cli;hlt instead
  11916. of calling grub_stop.
  11917. * grub-core/kern/efi/efi.c (grub_halt): Moved from here ...
  11918. * grub-core/lib/efi/halt.c (grub_halt): ...here.
  11919. * grub-core/kern/emu/main.c (grub_halt): Moved from here ...
  11920. * grub-core/lib/emu/halt.c (grub_halt): ... here.
  11921. * grub-core/lib/i386/halt.c: Moved from here ...
  11922. * grub-core/lib/i386/halt.c: ... here.
  11923. * grub-core/kern/ieee1275/openfw.c (grub_halt): Moved from here ...
  11924. * grub-core/lib/ieee1275/halt.c (grub_halt): ... here.
  11925. * grub-core/loader/i386/pc/linux.c (grub_linux16_boot): Call
  11926. grub_stop_floppy.
  11927. * grub-core/loader/i386/xnu.c (guessfsb) [IEEE1275]: Enable.
  11928. * include/grub/i386/coreboot/init.h: Removed.
  11929. * include/grub/i386/multiboot/init.h: Likewise.
  11930. * include/grub/i386/pc/biosdisk.h: Removed all function prototypes.
  11931. * include/grub/i386/pc/init.h: Likewise except grub_gate_a20.
  11932. * include/grub/i386/pc/int.h: New file.
  11933. * include/grub/i386/pc/pxe.h (GRUB_PXE_SIGNATURE): New definition.
  11934. (grub_pxe_scan): Removed.
  11935. (grub_pxe_call): Update prototype.
  11936. * include/grub/i386/pc/vbe.h: Removed EXPORT_FUNC and useless
  11937. prototypes.
  11938. * include/grub/i386/pc/vga.h (grub_vga_set_mode): Removed.
  11939. * include/grub/i386/qemu/init.h: Removed.
  11940. * include/grub/mips/yeeloong/kernel.h (grub_reboot): Add missing
  11941. noreturn.
  11942. (grub_halt): Likewise.
  11943. * include/grub/misc.h (grub_halt): Removed EXPORT_FUNC.
  11944. (grub_reboot): Likewise.
  11945. * grub-core/kern/i386/coreboot/init.c (grub_stop_floppy): Moved from here...
  11946. * include/grub/i386/floppy.h (grub_stop_floppy): ...here. Inlined.
  11947. * grub-core/kern/i386/pc/startup.S (grub_hard_stop): Removed.
  11948. 2010-08-30 Robert Millan <rmh@gnu.org>
  11949. * NEWS: Document addition of ZFS support in `grub-install' and
  11950. `grub-mkconfig'.
  11951. 2010-08-30 BVK Chaitanya <bvk.groups@gmail.com>
  11952. * conf/Makefile.common (CPPFLAGS_DEFAULT): Remove leading / from
  11953. dprintf output.
  11954. 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
  11955. Remove leftover embedding of font objects.
  11956. * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
  11957. * util/grub-install.in (font): Removed.
  11958. * util/grub-mkimage.c (generate_image): Remove font support. All users
  11959. updated.
  11960. 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
  11961. Remove leftover embedding of font objects.
  11962. * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
  11963. * util/grub-install.in (font): Removed.
  11964. * util/grub-mkimage.c (generate_image): Remove font support. All users
  11965. updated.
  11966. 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
  11967. * docs/grub.texi (Network): Fix reference to pxe_blksize.
  11968. Reported by: Ian Turner
  11969. 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
  11970. * grub-core/normal/menu.c (grub_wait_after_message): Add a 10 second
  11971. timeout to avoid indefinite boot stalling.
  11972. 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
  11973. * grub-core/normal/color.c (grub_env_write_color_normal): Fix a warning.
  11974. (grub_env_write_color_highlight): Likewise.
  11975. 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
  11976. * grub-core/normal/term.c (print_more): Return to normal and not
  11977. to standard state after printing "---MORE---".
  11978. 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
  11979. * grub-core/term/i386/vga_common.c (grub_console_setcolorstate):
  11980. Mask out the bit 0x80 since it has other meaning that specifiing color.
  11981. 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
  11982. New relocator. Allows for more kernel support and more straightforward
  11983. loader writing.
  11984. * Makefile.am (BOOTTARGET): New variable.
  11985. (QEMU32): Likewise.
  11986. (linux.init.x86_64): New target.
  11987. (linux.init.i386): Likewise.
  11988. (multiboot.elf): Likewise.
  11989. (kfreebsd.elf): Likewise.
  11990. (kfreebsd.aout): Likewise.
  11991. (pc-chainloader.elf): Likewise.
  11992. (pc-chainloader.bin): Likewise.
  11993. (ntldr.elf): Likewise.
  11994. (ntldr.bin): Likewise.
  11995. (multiboot2.elf): Likewise.
  11996. (kfreebsd.init.x86_64): Likewise.
  11997. (kfreebsd.init.i386): Likewise.
  11998. (knetbsd.init.i386): Likewise.
  11999. (kopenbsd.init.i386): Likewise.
  12000. (knetbsd.init.x86_64): Likewise.
  12001. (kopenbsd.init.x86_64): Likewise.
  12002. (linux-initramfs.i386): Likewise.
  12003. (linux-initramfs.x86_64): Likewise.
  12004. (kfreebsd-mfsroot.i386.img): Likewise.
  12005. (knetbsd.image.i386): Likewise.
  12006. (kopenbsd.image.i386): Likewise.
  12007. (kopenbsd.image.x86_64): Likewise.
  12008. (knetbsd.miniroot-image.i386.img): Likewise.
  12009. (kfreebsd-mfsroot.x86_64.img): Likewise.
  12010. (knetbsd.image.x86_64): Likewise.
  12011. (knetbsd.miniroot-image.x86_64.img): Likewise.
  12012. (kfreebsd-mfsroot.i386.gz): Likewise.
  12013. (bootcheck-kfreebsd-i386): Likewise.
  12014. (kfreebsd-mfsroot.x86_64.gz): Likewise.
  12015. (bootcheck-kfreebsd-x86_64): Likewise.
  12016. (knetbsd.miniroot-image.i386.gz): Likewise.
  12017. (bootcheck-knetbsd-i386): Likewise.
  12018. (bootcheck-kopenbsd-i386): Likewise.
  12019. (bootcheck-kopenbsd-x86_64): Likewise.
  12020. (knetbsd.miniroot-image.x86_64.gz): Likewise.
  12021. (bootcheck-knetbsd-x86_64): Likewise.
  12022. (bootcheck-linux-i386): Likewise.
  12023. (bootcheck-linux-x86_64): Likewise.
  12024. (bootcheck-linux16-i386): Likewise.
  12025. (bootcheck-linux16-x86_64): Likewise.
  12026. (bootcheck-multiboot): Likewise.
  12027. (bootcheck-multiboot2): Likewise.
  12028. (bootcheck-kfreebsd-aout): Likewise.
  12029. (bootcheck-pc-chainloader): Likewise.
  12030. (bootcheck-ntldr): Likewise.
  12031. (CLEANFILES): Add new targets.
  12032. (BOOTCHECKS): New variable.
  12033. (.PHONY): Add bootchecks.
  12034. (SUCCESSFUL_BOOT_STRING): New variable.
  12035. (BOOTCHECK_TIMEOUT): Likewise.
  12036. (bootcheck): New target
  12037. * Makefile.util.def (grub-mkrescue): Enable on i386-multiboot.
  12038. * configure.ac: Correct efiemu excuse.
  12039. * docs/grub.texi (Supported kernels): New chapter.
  12040. * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add
  12041. include/grub/mm_private.h. Simplify inclusion of
  12042. include/grub/boot.h, include/grub/loader.h
  12043. and include/grub/msdos_partition.h
  12044. (KERNEL_HEADER_FILES) [i386_coreboot]:
  12045. Remove include/grub/machine/loader.h. Add include/grub/i386/pit.h.
  12046. (KERNEL_HEADER_FILES) [i386_multiboot]: Likewise.
  12047. (KERNEL_HEADER_FILES) [i386_qemu]: Likewise.
  12048. (KERNEL_HEADER_FILES) [i386_ieee1275]: Remove
  12049. include/grub/machine/loader.h.
  12050. (KERNEL_HEADER_FILES) [x86_64-efi]: Likewise.
  12051. * grub-core/Makefile.core.def (kernel): Remove kern/i386/loader.S from
  12052. extra_dist.
  12053. (pci.mod): Enable on i386-multiboot.
  12054. (acpi.mod): Enable on i386-multiboot and i386-coreboot.
  12055. (efiemu.mod): Enable on i386-coreboot, i386-ieee1275, i386-multiboot and
  12056. i386-qemu.
  12057. (relocator.mod): Rewritten.
  12058. (aout.mod): Enable on all x86.
  12059. (bsd.mod): Likewise.
  12060. (ntldr.mod): New module.
  12061. (linux.mod): Use loader/i386/linux.c on all x86.
  12062. (xnu.mod): Enable on all x86.
  12063. (vga_text.mod): disable on EFI and QEMU.
  12064. * grub-core/efiemu/i386/coredetect.c: Remove useless include.
  12065. * grub-core/efiemu/i386/pc/cfgtables.c: Likewise.
  12066. * grub-core/efiemu/loadcore.c: Likewise.
  12067. * grub-core/efiemu/main.c: Likewise.
  12068. (grub_efiemu_exit_boot_services): Removed.
  12069. (grub_efiemu_finish_boot_services): Likewise.
  12070. * grub-core/efiemu/mm.c (grub_efiemu_finish_boot_services): New
  12071. function.
  12072. * grub-core/efiemu/i386/nocfgtables.c: New file.
  12073. * grub-core/kern/dl.c (grub_dl_unload_all): Removed.
  12074. * grub-core/kern/efi/efi.c (grub_efi_exit_boot_services): Removed.
  12075. (grub_efi_finish_boot_services): Moved from here ...
  12076. * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services): ...here.
  12077. Fille finish memory map and related data.
  12078. (finish_mmap_buf): New variable.
  12079. (grub_efi_uintn_t finish_mmap_size): Likewise.
  12080. (grub_efi_uintn_t finish_key): Likewise.
  12081. (grub_efi_uintn_t finish_desc_size): Likewise.
  12082. (grub_efi_uint32_t finish_desc_version): Likewise.
  12083. (grub_efi_is_finished): Likewise.
  12084. (grub_efi_get_memory_map): Use saved memory map if EFI is already
  12085. finished.
  12086. * grub-core/kern/elf.c (grub_elf32_phdr_iterate): Make global.
  12087. (grub_elf64_phdr_iterate): Likewise.
  12088. * grub-core/kern/i386/coreboot/init.c (grub_os_area_addr): Removed.
  12089. (grub_os_area_size): Likewise.
  12090. (grub_machine_init): Don't reserve os area.
  12091. * grub-core/kern/i386/coreboot/startup.S: Don't include loader.S.
  12092. * grub-core/kern/i386/ieee1275/startup.S: Likewise.
  12093. * grub-core/kern/i386/loader.S: Removed.
  12094. * grub-core/kern/i386/pc/init.c (grub_os_area_addr): Removed.
  12095. (grub_os_area_size): Likewise.
  12096. (grub_machine_init): Don't reserve os area.
  12097. * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
  12098. Don't call grub_dl_unload_all.
  12099. Don't include loader.S.
  12100. * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
  12101. Declare the memory after _end as available.
  12102. * grub-core/kern/mm.c (GRUB_MM_FREE_MAGIC): Moved from here...
  12103. * include/grub/mm_private.h (GRUB_MM_FREE_MAGIC): ... here.
  12104. (GRUB_MM_ALLOC_MAGIC): Moved from here...
  12105. * include/grub/mm_private.h (GRUB_MM_ALLOC_MAGIC): ... here.
  12106. * grub-core/kern/mm.c (grub_mm_header): Moved from here...
  12107. * include/grub/mm_private.h (grub_mm_header): ... here.
  12108. * grub-core/kern/mm.c (GRUB_MM_ALIGN): Moved from here...
  12109. * include/grub/mm_private.h (GRUB_MM_ALIGN): ... here.
  12110. * grub-core/kern/mm.c (grub_mm_region): Moved from here ...
  12111. (grub_mm_region): ..here. Removed addr. Added pre_size.
  12112. All users updated.
  12113. * grub-core/kern/mm.c (base): Renamed to ...
  12114. (grub_mm_base): ... this. Made global.
  12115. (grub_real_malloc): Alloc from end of region.
  12116. (grub_memalign): Don't attempt to malloc if grub_mm_base is NULL.
  12117. * grub-core/kern/powerpc/cache.S (grub_arch_sync_caches): Move to ...
  12118. * grub-core/kern/powerpc/cache_flush.S: ... here.
  12119. * grub-core/lib/efi/relocator.c: New file.
  12120. * grub-core/lib/i386/relocator.c: Rewritten.
  12121. * grub-core/lib/i386/relocator16.S: New file.
  12122. * grub-core/lib/i386/relocator32.S: Likewise.
  12123. * grub-core/lib/i386/relocator64.S: Likewise.
  12124. * grub-core/lib/i386/relocator_asm.S: Rewritten.
  12125. * grub-core/lib/i386/relocator_common.S: New file.
  12126. * grub-core/lib/ieee1275/relocator.c: Likewise.
  12127. * grub-core/lib/mips/relocator.c: Rewritten.
  12128. * grub-core/lib/mips/relocator_asm.S: Renamed variables and minor
  12129. stylistic adjustments.
  12130. * grub-core/lib/powerpc/relocator.c: New file.
  12131. * grub-core/lib/powerpc/relocator_asm.S: Likewise.
  12132. * grub-core/lib/relocator.c: Rewritten.
  12133. * grub-core/lib/x86_64/relocator_asm.S: New file.
  12134. * grub-core/loader/aout.c (grub_aout_load): Make load_addr a void *.
  12135. * grub-core/loader/i386/bsd.c (NETBSD_DEFAULT_VIDEO_MODE): New const.
  12136. (bsd_tag): New struct.
  12137. (tags): New variable.
  12138. (tags_last): Likewise.
  12139. (netbsd_module): New struct.
  12140. (netbsd_mods): New variable.
  12141. (netbsd_mods_last): Likewise.
  12142. (openbsd_opts): New parameter "serial".
  12143. (OPENBSD_SERIAL_ARG): New definition.
  12144. (netbsd_opts): New parameter "serial".
  12145. (NETBSD_SERIAL_ARG): New definition.
  12146. (grub_freebsd_add_meta): Reorganised into ...
  12147. (grub_bsd_add_meta): ...this. All users updated.
  12148. (grub_freebsd_add_mmap): Reorganised into ...
  12149. (generate_e820_mmap): ...this...
  12150. (grub_bsd_add_mmap): ...and this. All users updated.
  12151. (grub_freebsd_list_modules): Use tags.
  12152. (grub_netbsd_add_meta_module): New function.
  12153. (grub_netbsd_list_modules): Likewise.
  12154. (grub_freebsd_boot): Use relocator and finish EFI.
  12155. (grub_openbsd_boot): Likewise.
  12156. (grub_netbsd_setup_video): New function.
  12157. (grub_netbsd_add_modules): Likewise.
  12158. (grub_netbsd_boot): Use grub_netbsd_add_modules, relocator, netbsd_tags
  12159. and finish EFI.
  12160. (grub_bsd_unload): Unload tags.
  12161. (grub_bsd_load_aout): Use relocator.
  12162. (grub_bsd_elf32_size_hook): New function.
  12163. (grub_bsd_elf32_hook): Use relocator.
  12164. (grub_bsd_elf64_size_hook): New function.
  12165. (grub_bsd_elf64_hook): Use relocator.
  12166. (grub_bsd_load_elf): Use relocator and call grub_openbsd_find_ramdisk.
  12167. (grub_bsd_load): Zero-out openbsd_ramdisk.
  12168. (grub_bsd_load): Use relocator.
  12169. (grub_cmd_openbsd): Support serial.
  12170. (grub_cmd_netbsd): Support modules.
  12171. (grub_cmd_freebsd_module): Use relocator.
  12172. (grub_netbsd_module_load): New function.
  12173. (grub_cmd_netbsd_module): Likewise.
  12174. (grub_cmd_openbsd_ramdisk): Likewise.
  12175. (GRUB_MOD_INIT): Register knetbsd_module, knetbsd_module_elf and
  12176. kopenbsd_ramdisk.
  12177. (GRUB_MOD_FINI): Unregister new commands.
  12178. * grub-core/loader/i386/bsdXX.c (load): Remove useless checks.
  12179. (grub_freebsd_load_elfmodule_obj): Use relocator.
  12180. (grub_freebsd_load_elfmodule): Likewise.
  12181. (grub_freebsd_load_elf_meta): Likewise.
  12182. (grub_netbsd_load_elf_meta): New function.
  12183. (grub_openbsd_find_ramdisk): Likewise.
  12184. * grub-core/loader/i386/bsd_helper.S: Removed.
  12185. * grub-core/loader/i386/bsd_pagetable.c: Support relocator.
  12186. * grub-core/loader/i386/bsd_trampoline.S: Removed.
  12187. * grub-core/loader/i386/efi/linux.c: Likewise.
  12188. * grub-core/loader/i386/ieee1275/linux.c: Likewise.
  12189. * grub-core/loader/i386/linux.c (HAS_VGA_TEXT): New const.
  12190. (DEFAULT_VIDEO_MODE): Likewise.
  12191. (real_mode_target): New variable.
  12192. (prot_mode_target): Likewise.
  12193. (initrd_mem_target): Likewise.
  12194. (relocator): Likewise.
  12195. (efi_mmap_buf): Likewise.
  12196. (efi_mmap_size): Likewise.
  12197. (find_efi_mmap_size): Moved from grub-core/loader/i386/efi/linux.c.
  12198. (free_pages): Use relocator.
  12199. (allocate_pages): Account for efi_mmap and use relocator. Return error.
  12200. (grub_linux_setup_video): Return error.
  12201. (grub_linux_trampoline_start): Removed.
  12202. (grub_linux_trampoline_end): Likewise.
  12203. (grub_linux_boot): Use relocator and DEFAULT_VIDEO_MODE. Pass console
  12204. andd video parameters depending on firmware.
  12205. [GRUB_MACHINE_IEEE1275]: Pass OFW parameters.
  12206. [GRUB_MACHINE_EFI]: Pass EFI parameters.
  12207. (grub_cmd_linux) [GRUB_MACHINE_EFI]: Likewise.
  12208. (grub_cmd_initrd): Use relocator.
  12209. * grub-core/loader/i386/linux_trampoline.S: Removed.
  12210. * grub-core/loader/i386/multiboot_mbi.c (elf_sec_num): New variable.
  12211. (elf_sec_entsize): Likewise.
  12212. (elf_sec_shstrndx): Likewise.
  12213. (elf_sections): Likewise.
  12214. (grub_multiboot_load): Use relocator.
  12215. (grub_multiboot_get_mbi_size): Account for sections.
  12216. (grub_multiboot_make_mbi): Use relocator and support sections.
  12217. (grub_multiboot_add_elfsyms): New function.
  12218. (grub_multiboot_free_mbi): Free sections.
  12219. * grub-core/loader/i386/pc/linux.c (relocator): New variable.
  12220. (grub_linux_real_target): Likewise.
  12221. (grub_linux_real_chunk): Likewise.
  12222. (grub_linux16_prot_size): Likewise.
  12223. (grub_linux16_boot): Use relocator.
  12224. (grub_linux_unload): Unload relocator.
  12225. (grub_cmd_linux): Use relocator.
  12226. (grub_cmd_initrd): Likewise.
  12227. * grub-core/loader/i386/pc/ntldr.c: New file.
  12228. * grub-core/loader/i386/xnu.c (guessfsb) [GRUB_MACHINE_IEEE1275]:
  12229. Don't try to guess CPU frequency.
  12230. (grub_xnu_set_video): Stretch bitmap.
  12231. (grub_xnu_boot): Use relocator.
  12232. * grub-core/loader/mips/linux.c (grub_linux_boot): Use relocator.
  12233. (grub_linux_unload): Free relocator.
  12234. (grub_linux_load32): Use relocator.
  12235. (grub_linux_load64): Likewise.
  12236. (grub_cmd_initrd): Likewise.
  12237. * grub-core/loader/multiboot.c (grub_multiboot_boot): Use relocator.
  12238. (grub_multiboot_unload): Unload relocator.
  12239. (grub_cmd_multiboot): Use relocator.
  12240. (grub_cmd_module): Likewise.
  12241. * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elfXX):
  12242. Use relocator and support sections.
  12243. * grub-core/loader/multiboot_mbi2.c(elf_sec_num): New variable.
  12244. (elf_sec_entsize): Likewise.
  12245. (elf_sec_shstrndx): Likewise.
  12246. (elf_sections): Likewise.
  12247. (grub_multiboot_load): Use relocator.
  12248. (grub_multiboot_get_mbi_size): Account for sections.
  12249. (grub_multiboot_make_mbi): Use relocator and support sections.
  12250. (grub_multiboot_add_elfsyms): New function.
  12251. * grub-core/loader/powerpc/ieee1275/linux.c: Remove useless include.
  12252. * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
  12253. * grub-core/loader/xnu.c (grub_xnu_heap_malloc): Use relocator.
  12254. Prototype changed. All users updated.
  12255. (grub_xnu_align_heap): Simplified.
  12256. (grub_xnu_writetree_toheap): Likewise.
  12257. (grub_xnu_unload): Unload relocator.
  12258. (grub_cmd_xnu_kernel): Use relocator.
  12259. (grub_cmd_xnu_kernel64): Likewise.
  12260. (grub_xnu_register_memory): Simplified.
  12261. * grub-core/loader/xnu_resume.c (grub_xnu_resume): Use relocator.
  12262. * grub-core/term/efi/console.c (grub_console_putchar): Abort if
  12263. EFI is finished.
  12264. (grub_console_checkkey): Likewise.
  12265. (grub_console_getkey): Likewise.
  12266. (grub_console_getwh): Likewise.
  12267. (grub_console_getxy): Likewise.
  12268. (grub_console_gotoxy): Likewise.
  12269. (grub_console_cls): Likewise.
  12270. (grub_console_setcolorstate): Likewise.
  12271. (grub_console_setcursor): Likewise.
  12272. * grub-core/term/ns8250.c (grub_ns8250_hw_get_port): New function.
  12273. * grub-core/tests/boot/kbsd.init-i386.S: New file.
  12274. * grub-core/tests/boot/kbsd.init-x86_64.S: Likewise.
  12275. * grub-core/tests/boot/kbsd.spec.txt: Likewise.
  12276. * grub-core/tests/boot/kernel-8086.S: Likewise.
  12277. * grub-core/tests/boot/kernel-i386.S: Likewise.
  12278. * grub-core/tests/boot/kfreebsd-aout.cfg: Likewise.
  12279. * grub-core/tests/boot/kfreebsd.cfg: Likewise.
  12280. * grub-core/tests/boot/kfreebsd.init-i386.S: Likewise.
  12281. * grub-core/tests/boot/kfreebsd.init-x86_64.S: Likewise.
  12282. * grub-core/tests/boot/knetbsd.cfg: Likewise.
  12283. * grub-core/tests/boot/kopenbsd.cfg: Likewise.
  12284. * grub-core/tests/boot/kopenbsdlabel.txt: Likewise.
  12285. * grub-core/tests/boot/linux.cfg: Likewise.
  12286. * grub-core/tests/boot/linux.init-i386.S: Likewise.
  12287. * grub-core/tests/boot/linux.init-x86_64.S: Likewise.
  12288. * grub-core/tests/boot/linux16.cfg: Likewise.
  12289. * grub-core/tests/boot/multiboot.cfg: Likewise.
  12290. * grub-core/tests/boot/multiboot2.cfg: Likewise.
  12291. * grub-core/tests/boot/ntldr.cfg: Likewise.
  12292. * grub-core/tests/boot/pc-chainloader.cfg: Likewise.
  12293. * include/grub/aout.h (grub_aout_load): Make load_addr a void *.
  12294. * include/grub/autoefi.h (grub_autoefi_finish_boot_services):
  12295. New definition.
  12296. * include/grub/dl.h (grub_dl_unload_all): Removed.
  12297. * include/grub/efi/efi.h (grub_efi_exit_boot_services): Likewise.
  12298. (grub_efi_finish_boot_services): Change prototype.
  12299. (grub_efi_is_finished): New variable.
  12300. * include/grub/efiemu/efiemu.h (grub_efiemu_finish_boot_services):
  12301. Changed prototype.
  12302. (grub_efiemu_finish_boot_services): Removed.
  12303. (grub_machine_efiemu_init_tables): New prototype.
  12304. * include/grub/elfload.h (grub_elf32_phdr_iterate): Likewise.
  12305. (grub_elf64_phdr_iterate): Likewise.
  12306. * include/grub/i386/bsd.h: Include relocator.h.
  12307. (freebsd_tag_header): New struct.
  12308. (grub_openbsd_bios_mmap): Removed.
  12309. (grub_unix_real_boot): Removed.
  12310. (grub_freebsd_load_elfmodule32): Changed prototype.
  12311. (grub_freebsd_load_elfmodule_obj64): Likewise.
  12312. (grub_freebsd_load_elf_meta32): Likewise.
  12313. (grub_freebsd_load_elf_meta64): Likewise.
  12314. (grub_freebsd_add_meta): Removed.
  12315. (grub_netbsd_load_elf_meta32): New prototype.
  12316. (grub_netbsd_load_elf_meta64): Likewise.
  12317. (grub_bsd_add_meta): Likewise.
  12318. (grub_openbsd_ramdisk_descriptor): New struct.
  12319. (grub_openbsd_find_ramdisk32): New prototype.
  12320. (grub_openbsd_find_ramdisk64): Likewise.
  12321. * include/grub/i386/coreboot/loader.h: Removed.
  12322. * include/grub/i386/efi/loader.h: Likewise.
  12323. * include/grub/i386/ieee1275/loader.h: Likewise.
  12324. * include/grub/i386/linux.h (linux_kernel_header): Change void *
  12325. to grub_uint32_t.
  12326. * include/grub/i386/loader.h: Removed.
  12327. * include/grub/i386/memory.h (GRUB_MEMORY_CPU_CR4_PAE_ON): Correct the
  12328. value.
  12329. (GRUB_MEMORY_CPU_CR4_PSE_ON): New definition.
  12330. (grub_phys_addr_t): New type.
  12331. (grub_vtop): New inline function.
  12332. (grub_map_memory): Likewise.
  12333. (grub_unmap_memory): Likewise.
  12334. * include/grub/i386/multiboot/loader.h: Removed.
  12335. * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK): Removed.
  12336. (NETBSD_BTINFO_CONSOLE): New definition.
  12337. (NETBSD_BTINFO_SYMTAB): Likewise.
  12338. (NETBSD_BTINFO_MODULES): Likewise.
  12339. (NETBSD_BTINFO_FRAMEBUF): Likewise.
  12340. (grub_netbsd_bootinfo): New struct.
  12341. (grub_netbsd_btinfo_common): Use explicit bitsize.
  12342. (grub_netbsd_btinfo_mmap_entry): Removed.
  12343. (GRUB_NETBSD_MAX_BOOTPATH_LEN): New definition.
  12344. (grub_netbsd_btinfo_bootdisk): New struct.
  12345. (grub_netbsd_btinfo_symtab): Likewise.
  12346. (grub_netbsd_btinfo_serial): Likewise.
  12347. (grub_netbsd_btinfo_modules): Likewise.
  12348. (grub_netbsd_btinfo_framebuf): Likewise.
  12349. (GRUB_NETBSD_MAX_ROOTDEVICE_LEN): New definition.
  12350. * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_CONSOLE):
  12351. Likewise.
  12352. (grub_openbsd_bootargs): Use explicit bitsize.
  12353. (grub_openbsd_bootarg_console): New struct.
  12354. (GRUB_OPENBSD_COM_MAJOR): New definition.
  12355. (GRUB_OPENBSD_VGA_MAJOR): Likewise.
  12356. * include/grub/i386/pc/efiemu.h: Removed.
  12357. * include/grub/i386/pc/loader.h: Don't include cpu/loader.h.
  12358. * include/grub/i386/qemu/loader.h: Removed.
  12359. * include/grub/i386/relocator.h: Rewritten.
  12360. * include/grub/i386/xnu.h (grub_xnu_heap_will_be_at): Removed.
  12361. * include/grub/mips/memory.h: New file.
  12362. * include/grub/mips/multiboot.h: Rewritten.
  12363. * include/grub/mips/relocator.h: Rewritten.
  12364. * include/grub/mips/yeeloong/memory.h (grub_phys_addr_t): New type.
  12365. (grub_vtop): New function.
  12366. (grub_map_memory): Likewise.
  12367. (grub_unmap_memory): Likewise.
  12368. * include/grub/misc.h (ALIGN_DOWN): New definition.
  12369. * include/grub/mm.h (grub_mm_check_real): New proto.
  12370. (GRUB_MM_CHECK): New definition.
  12371. * include/grub/mm_private.h: New file.
  12372. * include/grub/multiboot.h (grub_multiboot_relocator): New variable.
  12373. (grub_multiboot_get_mbi_size): Removed.
  12374. (grub_multiboot_make_mbi): Change prottype.
  12375. (grub_multiboot_set_accepts_video): New proto.
  12376. (grub_multiboot_add_elfsyms): Likewise.
  12377. (grub_multiboot_payload_eip): New variable.
  12378. * include/grub/ns8250.h (grub_ns8250_hw_get_port) [!ASM_FILE]:
  12379. New prototype.
  12380. * include/grub/offsets.h (GRUB_KERNEL_I386_MULTIBOOT_PREFIX):
  12381. New definition.
  12382. (GRUB_KERNEL_I386_MULTIBOOT_DATA_END): Likewise.
  12383. (GRUB_KERNEL_I386_MULTIBOOT_MOD_ALIGN): Likewise.
  12384. * include/grub/powerpc/ieee1275/loader.h: Removed.
  12385. * include/grub/powerpc/memory.h: New file.
  12386. * include/grub/powerpc/relocator.h: Likewise.
  12387. * include/grub/relocator.h: Likewise.
  12388. * include/grub/relocator_private.h: Likewise.
  12389. * include/grub/sparc64/ieee1275/loader.h: Removed.
  12390. * include/grub/x86_64/memory.h: New file.
  12391. * include/grub/xnu.h (grub_xnu_writetree_toheap): Changed prototype.
  12392. (grub_xnu_heap_malloc): Likewise.
  12393. (grub_xnu_heap_real_start): Removed.
  12394. (grub_xnu_heap_start): Likewise.
  12395. (grub_xnu_relocator): New variable.
  12396. (grub_xnu_heap_target_start): Likewise.
  12397. * tests/util/grub-shell.in: Support non-pc.
  12398. * util/grub-mkimage.c (image_targets): Fix multiboot target.
  12399. 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
  12400. * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Avoid deadloop
  12401. on malloc error.
  12402. (grub_bidi_logical_to_visual): Check that malloc succeded.
  12403. * grub-core/normal/term.c (grub_puts_terminal): Fix fallback to dumb
  12404. puts.
  12405. (grub_xputs_normal): Likewise.
  12406. 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
  12407. * grub-core/Makefile.core.def (kernel): Add kern/mips/cache_flush.S to
  12408. extra_dist.
  12409. 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
  12410. * grub-core/efiemu/runtime/efiemu.sh: Removed.
  12411. 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
  12412. * Makefile.util.def (grub-ofpathname): Add missing ldadd.
  12413. 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
  12414. * grub-core/kern/misc.c (grub_real_dprintf): Always refresh after
  12415. dprintf.
  12416. 2010-08-29 BVK Chaitanya <bvk.groups@gmail.com>
  12417. * Makefile.util.def: Use ldadd instead of ldflags for libraries.
  12418. 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
  12419. * grub-core/normal/term.c (print_more): Fix a memory leak.
  12420. (grub_puts_terminal): Revert to dumb puts if memory allocation fails.
  12421. (grub_xputs_normal): Likewise.
  12422. 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
  12423. * grub-core/script/lexer.c (grub_script_lexer_init): Don't look before
  12424. the begining of the string
  12425. 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
  12426. * grub-core/script/script.c (grub_script_parse): Free parsed on
  12427. failure.
  12428. 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
  12429. * grub-core/normal/completion.c (grub_normal_do_completion): Free argv
  12430. on failure.
  12431. 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
  12432. * grub-core/normal/cmdline.c (grub_cmdline_get): Free cl_terms on
  12433. return.
  12434. 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
  12435. * grub-core/term/gfxterm.c (grub_gfxterm_term_fini): Free the text buffer.
  12436. (scroll_up): Fix a memory leak.
  12437. 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
  12438. * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Handle grub_disk_read
  12439. errors.
  12440. 2010-08-27 Vladimir Serbinenko <phcoder@gmail.com>
  12441. Handle USB pendrives exposed as floppies.
  12442. * grub-core/boot/i386/pc/boot.S: Check LBA even on what appears to be
  12443. floppy.
  12444. * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
  12445. Check for partitions on all devices.
  12446. 2010-08-25 Vladimir Serbinenko <phcoder@gmail.com>
  12447. * grub-core/term/ieee1275/ofconsole.c (put): Correct prototype.
  12448. (readkey): Likewise.
  12449. 2010-08-25 BVK Chaitanya <bvk.groups@gmail.com>
  12450. Multiple variable names support to "export" command.
  12451. * normal/context.c (grub_cmd_export): "export" command supports
  12452. multiple variable names.
  12453. 2010-08-23 Samuel Thibault <samuel.thibault@ens-lyon.org>
  12454. * util/grub.d/30_os-prober.in: Fix conversion from grub-probe
  12455. --target=drive output to Mach device name.
  12456. 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
  12457. New Automake based build system for GRUB.
  12458. * ABOUT-NLS: New file.
  12459. * Makefile.am: New file. GRUB host utils' rules that doesn't fit
  12460. in Makefile.util.def file.
  12461. * Makefile.util.def: New file. Autogen build definitions file for
  12462. GRUB host utils.
  12463. * conf/Makefile.common: New file. Common variables for GRUB host
  12464. utils and target modules.
  12465. * conf/Makefile.extra-dist: New file. Extra files for make dist.
  12466. * docs/Makefile.am: New file. Automake file for docs.
  12467. * gentpl.py: New file. Python script to generate Autogen
  12468. template.
  12469. * grub-core/Makefile.am: New file. GRUB target modules' rules
  12470. that doesn't fit in Makefile.core.def file.
  12471. * grub-core/Makefile.core.def: New file. Autogen build
  12472. definitions file for GRUB target modules.
  12473. * grub-core/lib/setjmp.S: New file. Wrapper for target_cpu
  12474. specific setjmp.S file.
  12475. * po/Makefile.am: New file.
  12476. * .bzrignore: New ignores.
  12477. * INSTALL: New requirements, without Ruby.
  12478. * acinclude.m4: Use TARGET_IMG_BASE_LDOPT variable instead.
  12479. * autogen.sh: Updated to invoke autogen as necessary.
  12480. * configure.ac: Separate *FLAGS with HOST_ and TARGET_ prefixes,
  12481. and defines for Automake conditionals.
  12482. * geninit.sh: Refactoring.
  12483. * include/grub/dl.h: Allow build rules to define GRUB_MOD_* if
  12484. necessary.
  12485. * include/grub/emu/getroot.h (grub_make_system_path_relative_to_its_root):
  12486. New prototype.
  12487. * include/grub/test.h: Fix functional test modules' naming.
  12488. * grub-core/tests/example_functional_test.c: Fix test module name.
  12489. * util/misc.c: Hosted versions' of grub functions for libgrub.a
  12490. * tests/lib/unit_test.c: Remove hosted versions of grub functions.
  12491. * util/grub-editenv.c: Likewise.
  12492. * util/grub-fstest.c: Likewise.
  12493. * util/grub-mkdevicemap.c: Likewise.
  12494. * util/grub-mkfont.c: Likewise.
  12495. * util/grub-mkimage.c: Likewise.
  12496. * util/grub-mkpasswd-pbkdf2.c: Likewise.
  12497. * util/grub-probe.c: Likewise.
  12498. * util/grub-script-check.c: Likewise.
  12499. * util/i386/pc/grub-setup.c: Likewise.
  12500. * util/sparc64/ieee1275/grub-setup.c: Likewise.
  12501. * tests/util/grub-shell.in: Fix override directory path.
  12502. * util/grub-mkrescue.in: Replace @pkglib_DATA@ with files.
  12503. * util/import_gcry.py: Create Makefile.gcry.def file instead.
  12504. * util/lvm.c: Update #includes.
  12505. * util/raid.c: Likewise.
  12506. * util/resolve.c: Likewise.
  12507. * grub-core/bus/emu/pci.c: Likewise.
  12508. * grub-core/lib/posix_wrap/stdlib.h: Likewise.
  12509. * grub-core/lib/posix_wrap/string.h: Likewise.
  12510. * grub-core/kern/emu/main.c: Likewise.
  12511. * grub-core/gensymlist.sh: New file. Script for generating kernel
  12512. symbols file.
  12513. * grub-core/genmoddep.awk: Support new kernel_syms.lst format.
  12514. * grub-core/gentrigtables.c: Fix unused variable warnings.
  12515. * Makefile.in: Removed.
  12516. * conf/any-emu.rmk: Removed.
  12517. * conf/common.rmk: Removed.
  12518. * conf/i386-coreboot.rmk: Removed.
  12519. * conf/i386-efi.rmk: Removed.
  12520. * conf/i386-ieee1275.rmk: Removed.
  12521. * conf/i386-multiboot.rmk: Removed.
  12522. * conf/i386-pc.rmk: Removed.
  12523. * conf/i386-qemu.rmk: Removed.
  12524. * conf/i386.rmk: Removed.
  12525. * conf/mips-yeeloong.rmk: Removed.
  12526. * conf/mips.rmk: Removed.
  12527. * conf/powerpc-ieee1275.rmk: Removed.
  12528. * conf/sparc64-ieee1275.rmk: Removed.
  12529. * conf/tests.rmk: Removed.
  12530. * conf/x86-efi.rmk: Removed.
  12531. * conf/x86_64-efi.rmk: Removed.
  12532. * gendistlist.sh: Removed.
  12533. * geninitheader.sh: Removed.
  12534. * genkernsyms.sh.in: Removed.
  12535. * genmk.rb: Removed.
  12536. * gensymlist.sh.in: Removed.
  12537. * mkinstalldirs: Removed.
  12538. * boot: Moved ...
  12539. * grub-core/boot: ... to here.
  12540. * bus: Moved ...
  12541. * grub-core/bus: ... to here.
  12542. * commands: Moved ...
  12543. * grub-core/commands: ... to here.
  12544. * disk: Moved ...
  12545. * grub-core/disk: ... to here.
  12546. * efiemu: Moved ...
  12547. * grub-core/efiemu: ... to here.
  12548. * font: Moved ...
  12549. * grub-core/font: ... to here.
  12550. * fs: Moved ...
  12551. * grub-core/fs: ... to here.
  12552. * gencmdlist.sh: Moved ...
  12553. * grub-core/gencmdlist.sh: ... to here.
  12554. * genemuinit.sh: Moved ...
  12555. * grub-core/genemuinit.sh: ... to here.
  12556. * genemuinitheader.sh: Moved ...
  12557. * grub-core/genemuinitheader.sh: ... to here.
  12558. * genfslist.sh: Moved ...
  12559. * grub-core/genfslist.sh: ... to here.
  12560. * genhandlerlist.sh: Moved ...
  12561. * grub-core/genhandlerlist.sh: ... to here.
  12562. * genmoddep.awk: Moved ...
  12563. * grub-core/genmoddep.awk: ... to here.
  12564. * genmodsrc.sh: Moved ...
  12565. * grub-core/genmodsrc.sh: ... to here.
  12566. * genpartmaplist.sh: Moved ...
  12567. * grub-core/genpartmaplist.sh: ... to here.
  12568. * genparttoollist.sh: Moved ...
  12569. * grub-core/genparttoollist.sh: ... to here.
  12570. * genterminallist.sh: Moved ...
  12571. * grub-core/genterminallist.sh: ... to here.
  12572. * gentrigtables.c: Moved ...
  12573. * grub-core/gentrigtables.c: ... to here.
  12574. * genvideolist.sh: Moved ...
  12575. * grub-core/genvideolist.sh: ... to here.
  12576. * gettext: Moved ...
  12577. * grub-core/gettext: ... to here.
  12578. * gfxmenu: Moved ...
  12579. * grub-core/gfxmenu: ... to here.
  12580. * gnulib: Moved ...
  12581. * grub-core/gnulib: ... to here.
  12582. * hello: Moved ...
  12583. * grub-core/hello: ... to here.
  12584. * hook: Moved ...
  12585. * grub-core/hook: ... to here.
  12586. * io: Moved ...
  12587. * grub-core/io: ... to here.
  12588. * kern: Moved ...
  12589. * grub-core/kern: ... to here.
  12590. * lib: Moved ...
  12591. * grub-core/lib: ... to here.
  12592. * loader: Moved ...
  12593. * grub-core/loader: ... to here.
  12594. * mmap: Moved ...
  12595. * grub-core/mmap: ... to here.
  12596. * normal: Moved ...
  12597. * grub-core/normal: ... to here.
  12598. * partmap: Moved ...
  12599. * grub-core/partmap: ... to here.
  12600. * parttool: Moved ...
  12601. * grub-core/parttool: ... to here.
  12602. * script: Moved ...
  12603. * grub-core/script: ... to here.
  12604. * term: Moved ...
  12605. * grub-core/term: ... to here
  12606. * tests/example_functional_test.c: Moved ...
  12607. * grub-core/tests/example_functional_test.c: ... to here.
  12608. * tests/lib/functional_test.c: Moved ...
  12609. * grub-core/tests/lib/functional_test.c: ... to here.
  12610. * tests/lib/test.c: Moved ...
  12611. * grub-core/tests/lib/test.c: ... to here.
  12612. * video: Moved ...
  12613. * grub-core/video: ... to here.
  12614. 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
  12615. Replace --enable-grub-emu-modules with grub-emu-lite.
  12616. * kern/emu/cache.S: New file. Wrapper for $target_cpu specific
  12617. cache.S.
  12618. * include/grub/emu/misc.h (grub_emu_init): New prototype.
  12619. * kern/emu/full.c: New file. For grub-emu specific initialization.
  12620. * kern/emu/lite.c: New file. For grub-emu-lite initialization.
  12621. * kern/emu/main.c: Call initialization function grub_emu_init.
  12622. * Makefile.in: Include grub-emu-lite in install.
  12623. * commands/parttool.c: Use grub_no_autoload to differentiate
  12624. between grub-emu and grub-emu-lite.
  12625. * include/grub/misc.h: New variable grub_no_autoload.
  12626. * conf/any-emu.rmk: New rules for grub-emu-lite.
  12627. * configure.ac: Remove --enable-grub-emu-modules.
  12628. * genmk.rb: Cleanup unnecessary rules.
  12629. * include/grub/dl.h: Remove GRUB_NO_MODULES macro.
  12630. * normal/main.c: Don't load list files on grub-emu-lite.
  12631. * util/misc.c (grub_arch_sync_caches): Removed.
  12632. 2010-08-23 Colin Watson <cjwatson@ubuntu.com>
  12633. * kern/mips/startup.S (grub_prefix): Update comment to refer to
  12634. grub-mkimage rather than grub-mkelfimage.
  12635. * kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
  12636. 2010-08-22 Vladimir Serbinenko <phcoder@gmail.com>
  12637. * term/at_keyboard.c (grub_at_keyboard_getkey_noblock): Don't discard
  12638. a key after CapsLock or NumLock. It's just a qemu bug.
  12639. 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
  12640. * include/grub/usb.h (grub_usb_device): Add 'data' field back. It's
  12641. needed by libusb wrapper.
  12642. 2010-08-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
  12643. * docs/grub.texi (GNU/Hurd): Document booting GNU/Hurd.
  12644. 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
  12645. * loader/multiboot.c (grub_cmd_module): Don't unzip module if
  12646. --nounzip is passed.
  12647. 2010-08-20 Vladimir Serbinenko <phcoder@gmail.com>
  12648. USB hotunplugging and USB serial support.
  12649. * bus/usb/ohci.c (grub_ohci_transfer): Fill *actual and respect timeout.
  12650. * bus/usb/uhci.c (grub_free_queue): Compute *actual.
  12651. (grub_uhci_transfer): Respect timeout and set *actual.
  12652. * bus/usb/usb.c (grub_usb_device_initialize): Correctly skip fields of
  12653. non-standard length.
  12654. (grub_usb_device_attach): Autoload modules.
  12655. (GRUB_MOD_INIT): Set grub_term_poll_usb.
  12656. (GRUB_MOD_FINI): Unset grub_term_poll_usb.
  12657. * bus/usb/usbhub.c (grub_usb_hub): Replace speed with devices. All
  12658. users updated.
  12659. (grub_usb_add_hub): Fill nports and children.
  12660. (attach_root_port): Receive hub instead of controller.
  12661. All users updated. Fill hub->devices.
  12662. (grub_usb_root_hub): Allocate hub->devices.
  12663. (detach_device): New function.
  12664. (poll_nonroot_hub): Fill children and detach devices.
  12665. * bus/usb/usbtrans.c (grub_usb_bulk_readwrite): Accept timeout and
  12666. actual arguments. All users updated.
  12667. (grub_usb_bulk_read_extended): New function.
  12668. * bus/usb/serial/common.c: New file.
  12669. * bus/usb/serial/ftdi.c: Likewise.
  12670. * bus/usb/serial/pl2303.c: Likewise.
  12671. * commands/terminal.c (handle_command): Support wildcard.
  12672. * commands/usbtest.c: Output "Unknown" instead of empty string.
  12673. * conf/any-emu.rmk (pkglib_MODULES): Add usbserial_common.mod.
  12674. (usbserial_common_mod_SOURCES): New variable.
  12675. (usbserial_common_mod_CFLAGS): Likewise.
  12676. (usbserial_common_mod_LDFLAGS): Likewise.
  12677. (pkglib_MODULES): Add usbserial_pl2303.mod.
  12678. (usbserial_pl2303_mod_SOURCES): New variable.
  12679. (usbserial_pl2303_mod_CFLAGS): Likewise.
  12680. (usbserial_pl2303_mod_LDFLAGS): Likewise.
  12681. (pkglib_MODULES): Add usbserial_ftdi.mod.
  12682. (usbserial_ftdi_mod_SOURCES): New variable.
  12683. (usbserial_ftdi_mod_CFLAGS): Likewise.
  12684. (usbserial_ftdi_mod_LDFLAGS): Likewise.
  12685. (pkglib_MODULES): Add serial.mod.
  12686. (serial_mod_SOURCES): New variable.
  12687. (serial_mod_CFLAGS): Likewise.
  12688. (serial_mod_LDFLAGS): Likewise.
  12689. * conf/i386-pc.rmk: Likewise.
  12690. * conf/mips-yeeloong.rmk: Likewise.
  12691. * conf/i386.rmk (serial_mod_SOURCES): Add term/ns8250.c.
  12692. * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
  12693. * disk/usbms.c (first_available_slot): New variable.
  12694. (grub_usbms_attach): Don't reuse free slots due to potential cache
  12695. problems.
  12696. * include/grub/serial.h: Moved to ..
  12697. * include/grub/ns8250.h: ...this.
  12698. * include/grub/serial.h: New file.
  12699. * include/grub/term.h (grub_term_poll_usb): New variable.
  12700. * include/grub/terminfo.h (grub_terminfo_input_state): Pass term to
  12701. readkey. All users updated.
  12702. (grub_terminfo_output_state): Pass term to put.
  12703. * include/grub/usb.h (GRUB_USB_REQTYPE): New enum.
  12704. (grub_usb_controller_dev): Add timeout and actual arguments to
  12705. transfer. All users updated.
  12706. (grub_usb_interface): New field detach_data.
  12707. (grub_usb_device): New fields children and nports.
  12708. (grub_usb_ep_type_t): New type.
  12709. (grub_usb_get_ep_type): New function.
  12710. (grub_usb_bulk_read_extended): Likewise.
  12711. * include/grub/usbdesc.h (grub_usb_desc): New type.
  12712. * include/grub/usbserial.h: New file.
  12713. * include/grub/usbtrans.h (grub_usb_transaction): New field preceding.
  12714. * kern/term.c (grub_term_poll_usb): New variable.
  12715. (grub_getkey): Call grub_term_poll_usb if set.
  12716. (grub_checkkey): Likewise.
  12717. (grub_getkeystatus): Likewise.
  12718. * term/serial.c: Moved controller-specific parts to ...
  12719. * term/ns8250.c: ... here.
  12720. * term/serial.c: Mostly rewritten.
  12721. * term/usb_keyboard.c: Reorganised to use GET_REPORT only on attaching
  12722. according to spec.
  12723. 2010-08-20 Robert Millan <rmh@gnu.org>
  12724. Make kFreeBSD code more generic to support ext2fs as root, ufs as
  12725. a separate module and maybe other interesting combinations.
  12726. * util/grub.d/10_kfreebsd.in (load_kfreebsd_module): New function.
  12727. (kfreebsd_entry): Use load_kfreebsd_module() to load modules.
  12728. (kfreebsd_entry): Add generic filesystem module load routine.
  12729. Map GRUB `ext2' to kFreeBSD `ext2fs'.
  12730. 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
  12731. * commands/i386/pc/sendkey.c (keysym_table): Rename "numlock" to
  12732. "numcenter" (I misunderstood the purpose of this entry).
  12733. * docs/grub.texi (sendkey): Likewise.
  12734. 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
  12735. * commands/i386/pc/sendkey.c (options): Remove "keep" from all
  12736. status flag options; simply omitting the option is equivalent and
  12737. simpler. Rename "wait" to "pause". Rename "sysreq" to "sysrq".
  12738. (keysym_table): Rename "num5numlock" to "numlock".
  12739. (grub_cmd_sendkey): Reinitialise `andmask' and `ormask', so that we
  12740. can uniformly say that only the last of multiple `sendkey'
  12741. invocations has any effect.
  12742. * docs/grub.texi (sendkey): New section.
  12743. 2010-08-19 Colin Watson <cjwatson@ubuntu.com>
  12744. * commands/i386/pc/sendkey.c (options): Fix three typos.
  12745. 2010-08-19 Vladimir Serbinenko <phcoder@gmail.com>
  12746. Implement sendkey support.
  12747. * commands/i386/pc/sendkey.c: New file.
  12748. * conf/i386-pc.rmk (pkglib_MODULES): Add sendkey.mod.
  12749. (sendkey_mod_SOURCES): New variable.
  12750. (sendkey_mod_CFLAGS): Likewise.
  12751. (sendkey_mod_LDFLAGS): Likewise.
  12752. 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
  12753. * configure.ac: Move AM_INIT_AUTOMAKE after AC_CANONICAL_TARGET to
  12754. fix warnings from Autoconf.
  12755. 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
  12756. * acinclude.m4 (grub_ASM_USCORE): Use a more accurate grep pattern,
  12757. to avoid false positives with some assemblers that output things
  12758. like "someprefix_func" as part of their output.
  12759. 2010-08-15 Robert Millan <rmh@gnu.org>
  12760. * kern/emu/misc.c (grub_get_libzfs_handle): Handle libzfs_init()
  12761. errors.
  12762. * kern/emu/getroot.c (find_root_device_from_libzfs): Handle
  12763. grub_get_libzfs_handle() errors.
  12764. 2010-08-14 Robert Millan <rmh@gnu.org>
  12765. * kern/emu/misc.c (grub_find_zpool_from_dir): Abort function if
  12766. filesystem is not ZFS.
  12767. 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
  12768. Fix for misspelled color names defaulting to black/black (bug
  12769. reported by Doug Nazar)
  12770. * include/grub/normal.h (grub_parse_color_name_pair): Add return
  12771. status to prototype.
  12772. * normal/color.c (grub_parse_color_name_pair): Return failure
  12773. status.
  12774. (grub_env_write_color_normal): Ignore bad color names.
  12775. (grub_env_write_color_highlight): Likewise.
  12776. * normal/main.c (GRUB_MOD_INIT): Set default color names.
  12777. 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
  12778. "shift" command support to GRUB script.
  12779. * include/grub/script_sh.h (grub_script_shift): New prototype.
  12780. * script/execute.c (grub_script_shift): New function.
  12781. * script/main.c (grub_script_init): Register shift command.
  12782. (grub_script_fini): Unregister shift command.
  12783. * util/grub-script-check.c (grub_script_cmd_shift): New function.
  12784. * tests/grub_script_shift.in: New testcase.
  12785. * conf/tests.rmk: Rules for new testcase.
  12786. 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
  12787. "continue" command support to GRUB script.
  12788. * script/execute.c (grub_script_execute_cmdwhile): Continue support.
  12789. (grub_script_break): Continue support.
  12790. * script/main.c (grub_script_init): Register continue command.
  12791. (grub_script_fini): Unregister continue command.
  12792. * tests/grub_script_continue.in: New testcase.
  12793. * conf/tests.rmk: Rules for new testcase.
  12794. 2010-08-12 BVK Chaitanya <bvk@dbook>
  12795. "break" command support to GRUB script.
  12796. * conf/common.rmk: Rule updates to grub-script-check.
  12797. * include/grub/misc.h (grub_min): New function.
  12798. * include/grub/script_sh.h (grub_script_init): New prototype.
  12799. (grub_script_fini): New prototype.
  12800. (grub_script_break): New prototype.
  12801. * script/main.c (grub_script_init): New function.
  12802. (grub_script_fini): New function.
  12803. * script/execute.c (grub_script_break): New function.
  12804. * normal/main.c: Calls to grub_script_{init,fini}.
  12805. * util/grub-script-check.c (grub_script_break): New function.
  12806. * tests/grub_script_break.in: New testcase.
  12807. * conf/tests.rmk: Rules for new test case.
  12808. 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
  12809. Function parameters support to GRUB script.
  12810. * script/yylex.l (VARIABLE): Regular expression update.
  12811. * script/function.c (grub_script_function_call): Moved ...
  12812. * script/execute.c (grub_script_function_call): ... to here.
  12813. (grub_script_execute_arglist_to_argv): Removed.
  12814. (grub_script_arglist_to_argv): New function.
  12815. * script/argv.c: New file.
  12816. (grub_script_argv_free): New function.
  12817. (grub_script_argv_next): Likewise.
  12818. (grub_script_argv_append): Likewise.
  12819. (grub_script_argv_split_append): Likewise.
  12820. * include/grub/script_sh.h (grub_script_argv): New struct.
  12821. (grub_script_argv_free): New function.
  12822. (grub_script_argv_next): Likewise.
  12823. (grub_script_argv_append): Likewise.
  12824. (grub_script_argv_split_append): Likewise.
  12825. * conf/common.rmk (normal.mod): New source script/argv.c.
  12826. * tests/grub_script_echo1.in: More tests.
  12827. * tests/grub_script_vars1.in: Likewise.
  12828. * tests/grub_script_functions.in: New test case.
  12829. * conf/tests.rmk: Rules for new testcase.
  12830. 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
  12831. Remove grub_script_cmdblock struct.
  12832. * include/grub/script_sh.h: Remove grub_script_cmdblock.
  12833. * script/parser.y: Likewise.
  12834. * script/execute.c: Rename cmdblock suffix to cmdlist.
  12835. * script/script.c: Likewise.
  12836. * util/grub-script-check.c: Likewise.
  12837. 2010-08-11 Yves Blusseau <blusseau@zetam.org>
  12838. * .bzrignore: add grub-macho2img
  12839. 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
  12840. * kern/i386/qemu/init.c (grub_qemu_init_cirrus): Fix compilation error.
  12841. 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
  12842. Remove the dump of sm712 initialisation sequence.
  12843. * include/grub/pci.h (GRUB_PCI_CLASS_SUBCLASS_VGA): New const.
  12844. * include/grub/vga.h (GRUB_VGA_IO_ARX_READ): New register.
  12845. (GRUB_VGA_IO_MISC_WRITE): Likewise.
  12846. (GRUB_VGA_CR_*): Added many registers.
  12847. (GRUB_VGA_SR_*): Likewise.
  12848. (GRUB_VGA_GR_*): Likewise.
  12849. (grub_vga_write_arx): New function.
  12850. (grub_video_hw_config): New struct.
  12851. (grub_vga_set_geometry): New function.
  12852. * kern/i386/qemu/init.c (load_palette): Use grub_vga_write_arx and
  12853. GRUB_PCI_CLASS_SUBCLASS_VGA.
  12854. * video/cirrus.c (grub_video_cirrus_setup): Use grub_vga_set_geometry.
  12855. * video/sm712.c (grub_sm712_write_reg): New function
  12856. (grub_sm712_read_reg): Likewise.
  12857. (grub_sm712_sr_write): Likewise.
  12858. (grub_sm712_gr_write): Likewise.
  12859. (grub_sm712_cr_write): Likewise.
  12860. (grub_sm712_write_arx): Likewise.
  12861. (grub_sm712_cr_shadow_write): Likewise.
  12862. (grub_sm712_write_dda_lookup): Likewise.
  12863. (grub_video_sm712_setup): Initialise the video rather then
  12864. blindly replay the dump.
  12865. (main) [TEST]: Add a routine to be able to compile as standalone for
  12866. tests.
  12867. * video/sm712_init.c (sm712_init): Removed.
  12868. (sm712_sr_seq1): New array.
  12869. (sm712_sr_seq2): Likewise.
  12870. 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
  12871. * include/grub/vga.h: Add missing grub/pci.h include.
  12872. 2010-08-10 Yves Blusseau <blusseau@zetam.org>
  12873. * util/grub-macho2img.c (main): fix typo
  12874. 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
  12875. * include/grub/vga.h (grub_vga_gr_write): Add GRUB_MACHINE_PCI_IO_BASE.
  12876. (grub_vga_gr_read): Likewise.
  12877. (grub_vga_cr_write): Likewise.
  12878. (grub_vga_cr_read): Likewise.
  12879. (grub_vga_sr_write): Likewise.
  12880. (grub_vga_sr_read): Likewise.
  12881. (grub_vga_palette_read): Likewise.
  12882. (grub_vga_palette_write): Likewise.
  12883. * video/sm712.c (GRUB_SM712_REG_BASE): New definition.
  12884. (grub_sm712_sr_read): New function.
  12885. (grub_video_sm712_setup): Use grub_vga_sr_write and grub_sm712_sr_read.
  12886. * video/sm712_init.c (sm712_init): Substract GRUB_MACHINE_PCI_IO_BASE.
  12887. 2010-08-09 Robert Millan <rmh@gnu.org>
  12888. * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Filter
  12889. out unused variables on non-ZFS build.
  12890. 2010-08-08 Robert Millan <rmh@gnu.org>
  12891. Fix path generation for sub-filesystems in ZFS.
  12892. * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Add
  12893. missing slash.
  12894. 2010-08-08 Robert Millan <rmh@gnu.org>
  12895. * util/grub-fstest.c (read_file, cmd_cmp): Improve error message.
  12896. 2010-08-08 Robert Millan <rmh@gnu.org>
  12897. * util/grub.d/10_kfreebsd.in: When files required for ZFS do not
  12898. exist, issue a proper error message (rely on `ls' for translated
  12899. strings).
  12900. 2010-08-08 Robert Millan <rmh@gnu.org>
  12901. Fix grub-probe invocation.
  12902. * util/grub.d/10_kfreebsd.in: s/label/fs_label/g.
  12903. 2010-08-04 Robert Millan <rmh@gnu.org>
  12904. * configure.ac: Remove checks for getfsstat() and getmntany().
  12905. Add checks for `<sys/param.h>' and `<sys/mount.h>'.
  12906. * kern/emu/misc.c [HAVE_GETMNTANY]: Remove `<sys/mnttab.h>'.
  12907. [HAVE_SYS_PARAM_H]: Include `<sys/param.h>'.
  12908. [HAVE_SYS_MOUNT_H]: Include `<sys/mount.h>'.
  12909. [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_mount_point_from_dir): Remove
  12910. function.
  12911. (grub_find_zpool_from_dir): Use statfs() instead of indirect matching
  12912. via find_mount_point_from_dir() and getfsstat() / getmntany().
  12913. 2010-08-04 Robert Millan <rmh@gnu.org>
  12914. * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
  12915. (grub_find_zpool_from_mount_point): Merge into ...
  12916. (grub_find_zpool_from_dir): ... this.
  12917. * kern/emu/misc.c: Likewise.
  12918. * kern/emu/misc.c
  12919. (grub_make_system_path_relative_to_its_root): Replace
  12920. grub_find_mount_point_from_dir() / grub_find_zpool_from_mount_point()
  12921. with grub_find_zpool_from_dir().
  12922. * kern/emu/getroot.c (find_root_device_from_libzfs): Likewise.
  12923. 2010-08-04 Robert Millan <rmh@gnu.org>
  12924. Support OpenSolaris in ZFS device resolution.
  12925. * configure.ac: Check for getmntany().
  12926. * kern/emu/misc.c [HAVE_GETMNTANY]: Include `<sys/mnttab.h>'.
  12927. [HAVE_GETMNTANY] (grub_find_zpool_from_mount_point): Add OpenSolaris
  12928. support.
  12929. 2010-08-03 Robert Millan <rmh@gnu.org>
  12930. Fix grub-emu build.
  12931. * include/grub/util/misc.h: Move `<grub/util/libzfs.h>' to ...
  12932. * include/grub/emu/misc.h: ... here.
  12933. * include/grub/util/misc.h (grub_get_libzfs_handle): Move function ...
  12934. * include/grub/emu/misc.h (grub_get_libzfs_handle): ... here.
  12935. * util/misc.c: Remove `<grub/util/libzfs.h>'.
  12936. [HAVE_LIBZFS] (libzfs_handle, fini_libzfs)
  12937. (grub_get_libzfs_handle): Move to ...
  12938. * kern/emu/misc.c [HAVE_LIBZFS] (__libzfs_handle, fini_libzfs)
  12939. (grub_get_libzfs_handle): ... here.
  12940. 2010-08-03 BVK Chaitanya <bvk.groups@gmail.com>
  12941. * script/execute.c (grub_script_execute_cmdline): Check for NULL
  12942. as command name case.
  12943. 2010-08-02 Colin Watson <cjwatson@ubuntu.com>
  12944. * disk/raid.c (insert_array): Select unique numbers for named arrays
  12945. as well, for use as keys in the disk cache.
  12946. 2010-08-01 Robert Millan <rmh@gnu.org>
  12947. * util/grub.d/10_kfreebsd.in: Initialize ${kfreebsd_device} as the
  12948. kFreeBSD device name, except on ZFS where the filesystem label is
  12949. used.
  12950. (kfreebsd_entry): On ZFS root, load `opensolaris.ko', `zfs.ko' and
  12951. `/boot/zfs/zpool.cache'.
  12952. Set mountfrom kernel variable using ${kfreebsd_device}.
  12953. 2010-08-01 Robert Millan <rmh@gnu.org>
  12954. Make it even harder to use uninitialized `libzfs_handle' (and
  12955. make the interface a bit simpler).
  12956. * include/grub/util/misc.h (grub_util_init_libzfs)
  12957. (libzfs_handle): Remove.
  12958. (grub_get_libzfs_handle): New prototype.
  12959. * util/misc.c [HAVE_LIBZFS] (libzfs_handle): Add `static'
  12960. attribute.
  12961. (grub_util_init_libzfs): Remove.
  12962. (grub_get_libzfs_handle): New function.
  12963. * kern/emu/getroot.c (find_root_device_from_libzfs): Use
  12964. grub_get_libzfs_handle() to obtain a libzfs handle instead of
  12965. accessing `libzfs_handle' directly.
  12966. 2010-08-01 Robert Millan <rmh@gnu.org>
  12967. * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
  12968. (grub_find_zpool_from_mount_point): New function prototypes.
  12969. * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
  12970. * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
  12971. * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
  12972. * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
  12973. `static' attribute.
  12974. * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
  12975. finding zpool from mount point into ...
  12976. * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
  12977. * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
  12978. requested path is part of a ZFS pool, use
  12979. grub_find_zpool_from_mount_point() to detect its filesystem name,
  12980. and generate a path with `/fsname@path' syntax.
  12981. 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
  12982. * include/grub/util/libzfs.h (libzfs_init): Set argument list to
  12983. (void) rather than () so that this is a proper prototype.
  12984. 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
  12985. * lib/arg.c (grub_arg_show_help): Add the necessary spacing.
  12986. 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
  12987. * kern/emu/getroot.c (find_mount_point_from_dir): Compile only if
  12988. [HAVE_LIBZFS && HAVE_LIBNVPAIR]
  12989. 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
  12990. * util/grub-mkrescue.in: Remove ${efi_dir} after building efi.img.
  12991. 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
  12992. * script/yylex.l (NAME): Remove [:digit:], redundant with [:alnum:].
  12993. 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
  12994. * docs/grub.texi (Simple configuration): Document GRUB_CMDLINE_XEN
  12995. and GRUB_CMDLINE_XEN_DEFAULT. Recommend setting
  12996. GRUB_GFXPAYLOAD_LINUX=text rather than unsetting it in order to
  12997. disable gfxpayload.
  12998. (Shell-like scripting): Add real content.
  12999. (Serial terminal): Suggest `terminal_input serial; terminal_output
  13000. serial' rather than putting the two commands on separate lines,
  13001. since console input will be inoperative after the first command.
  13002. (menuentry): Document --class, --users, and --hotkey options.
  13003. (terminfo): Describe what `visually-ordered UTF-8' means (thanks,
  13004. Vladimir Serbinenko).
  13005. 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
  13006. 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
  13007. * kern/misc.c (grub_memset): Optimise to reduce cache stalls.
  13008. 2010-08-01 Robert Millan <rmh@gnu.org>
  13009. * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
  13010. (grub_find_zpool_from_mount_point): New function prototypes.
  13011. * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
  13012. * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
  13013. * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
  13014. * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
  13015. `static' attribute.
  13016. * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
  13017. finding zpool from mount point into ...
  13018. * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
  13019. * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
  13020. requested path is part of a ZFS pool, use
  13021. grub_find_zpool_from_mount_point() to detect its filesystem name,
  13022. and generate a path with `/fsname@path' syntax.
  13023. 2010-08-01 Robert Millan <rmh@gnu.org>
  13024. Prevent accidental use of uninitialized libzfs_handle.
  13025. * util/grub-probe.c (main): Move grub_util_init_libzfs() call to ...
  13026. * kern/emu/getroot.c (find_root_device_from_libzfs): ... here.
  13027. * util/misc.c (grub_util_init_libzfs): Make this function idempotent.
  13028. 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
  13029. * util/grub.d/20_linux_xen.in: Don't use UUID for LVM root (matching
  13030. util/grub.d/10_linux.in). Fixes Debian bug #591093.
  13031. 2010-08-01 Robert Millan <rmh@gnu.org>
  13032. * kern/emu/getroot.c: Include `<grub/util/misc.h>'.
  13033. 2010-07-31 Robert Millan <rmh@gnu.org>
  13034. * util/grub.d/10_kfreebsd.in: Make module handling more generic.
  13035. 2010-07-31 Robert Millan <rmh@gnu.org>
  13036. * kern/emu/misc.c: Add missing license header.
  13037. 2010-07-31 Robert Millan <rmh@gnu.org>
  13038. * configure.ac: Check for `libzfs.h' and `libnvpair.h'.
  13039. * include/grub/util/libnvpair.h: Include `<config.h>'.
  13040. [HAVE_LIBNVPAIR_H]: Include `<libnvpair.h>' instead of
  13041. declaring libnvpair prototypes ourselves.
  13042. * include/grub/util/libzfs.h: Include `<config.h>'.
  13043. [HAVE_LIBZFS_H]: Include `<libzfs.h>' instead of
  13044. declaring libzfs prototypes ourselves.
  13045. (libzfs_handle): Moved to ...
  13046. * include/grub/util/misc.h (libzfs_handle): ... here.
  13047. Include `<grub/util/libzfs.h>'.
  13048. 2010-07-30 Robert Millan <rmh@gnu.org>
  13049. * include/grub/emu/misc.h: Add missing license header.
  13050. 2010-07-30 Robert Millan <rmh@gnu.org>
  13051. Enable `grub-probe -t device' resolution on ZFS.
  13052. * configure.ac: Check for getfsstat(), libzfs and libnvpair.
  13053. * include/grub/util/libnvpair.h: New file.
  13054. * include/grub/util/libzfs.h: New file.
  13055. * kern/emu/getroot.c: Include `<assert.h>' and `<error.h>'.
  13056. [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Include `<grub/util/libzfs.h>' and
  13057. `<grub/util/libnvpair.h>'.
  13058. [HAVE_GETFSSTAT]: Include `<sys/mount.h>'.
  13059. (find_mount_point_from_dir): New static function.
  13060. [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_root_device_from_libzfs): New
  13061. function.
  13062. [HAVE_LIBZFS && HAVE_LIBNVPAIR] (grub_guess_root_device): Use
  13063. find_root_device_from_libzfs() before ressorting to find_root_device().
  13064. * include/grub/util/misc.h (grub_util_init_libzfs): New function
  13065. prototype.
  13066. * util/misc.c: Include `<grub/util/libzfs.h>'.
  13067. (grub_util_init_libzfs): New function.
  13068. [HAVE_LIBZFS] (libzfs_handle): New global variable.
  13069. [HAVE_LIBZFS] (fini_libzfs): New static function.
  13070. (grub_util_init_libzfs): New function.
  13071. * util/grub-probe.c (main): Call grub_util_init_libzfs().
  13072. 2010-07-30 Robert Millan <rmh@gnu.org>
  13073. * include/grub/emu/misc.h (grub_make_system_path_relative_to_its_root)
  13074. (xmalloc, xrealloc, xstrdup, xasprintf): Add
  13075. `warn_unused_result' attribute.
  13076. * include/grub/misc.h (grub_strdup, grub_strndup, grub_strlen)
  13077. (grub_xasprintf, grub_xvasprintf): Likewise.
  13078. * include/grub/emu/misc.h (xasprintf): Remove duplicate prototype.
  13079. 2010-07-29 Robert Millan <rmh@gnu.org>
  13080. * util/grub-probe.c (PRINT_FS_LABEL): New enum value.
  13081. (probe): Handle `PRINT_FS_LABEL'.
  13082. (main): Handle `-t fs_label'.
  13083. 2010-07-29 Robert Millan <rmh@gnu.org>
  13084. * configure.ac: Remove grub-mkisofs checks.
  13085. 2010-07-28 Vladimir Serbinenko <phcoder@gmail.com>
  13086. * util/ieee1275/grub-install.in: Don't use empty grub_device.
  13087. Reported by: Lennart Sorensen.
  13088. 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
  13089. * util/grub.d/00_header.in: Remove compatibility with terminal.mod
  13090. prior to terminal_input/terminal_output separation. It's been over 1.5
  13091. years and those versions weren't widely deployed.
  13092. 2010-07-22 Colin Watson <cjwatson@ubuntu.com>
  13093. * disk/raid.c (insert_array): Don't count named arrays when looking
  13094. for unused array numbers.
  13095. Reported and tested by: Michael Guntsche.
  13096. 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
  13097. * bus/usb/emu/usb.c (grub_usb_poll_devices): Add a dummy
  13098. implementation of this so that grub-emu links again, with a note
  13099. that this should support hotplugging in the future.
  13100. 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
  13101. * kern/emu/getroot.c (grub_util_get_grub_dev): Use xasprintf.
  13102. 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
  13103. * disk/loopback.c (grub_cmd_loopback): Don't leak a grub_file_t
  13104. handle on failure.
  13105. (grub_loopback_close): Remove empty function.
  13106. (grub_loopback_dev): Remove close method.
  13107. 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
  13108. Disable EFI cursor when the EFI console becomes inactive.
  13109. * term/efi/console.c (grub_efi_console_init): New function.
  13110. (grub_efi_console_fini): New function.
  13111. (grub_console_term_output): Register init and fini methods.
  13112. 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
  13113. * tests/util/grub-shell-tester.in: Remove bashism and declare as
  13114. sh script.
  13115. 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
  13116. * disk/loopback.c (grub_loopback): Replace filename with file.
  13117. (delete_loopback): Handle new semantics.
  13118. (grub_cmd_loopback): Likewise.
  13119. (grub_loopback_iterate): Likewise.
  13120. (grub_loopback_close): Likewise.
  13121. 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
  13122. * util/i386/efi/grub-install.in: Revert to platform-specific behaviour
  13123. with -p "".
  13124. Reported by: Tito Keitel.
  13125. 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
  13126. * docs/grub.texi (Naming convention): Document new naming convention.
  13127. 2010-07-20 Vadim Solomin <vadic052@gmail.com>
  13128. 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
  13129. Generate device.map in something closer to the old ordering.
  13130. * util/deviceiter.c (struct device): New declaration.
  13131. (compare_file_names): Rename to ...
  13132. (compare_devices): ... this. Sort by kernel name in preference to
  13133. the stable by-id name, but keep the latter as a fallback comparison.
  13134. Update header comment.
  13135. (grub_util_iterate_devices) [__linux__]: Construct and sort an array
  13136. of `struct device' rather than of plain file names.
  13137. 2010-07-20 Thomas Frauendorfer <Thomas.Frauendorfer@googlemail.com>
  13138. * lib/i386/relocator_asm.S [! __x86_64__]: Don't try to disable amd64
  13139. on i386.
  13140. 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
  13141. * commands/acpi.c (setup_common_tables): Use sizeof instead of
  13142. hardcoding size.
  13143. (setv1table): Likewise.
  13144. 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
  13145. * disk/raid.c (insert_array): Use md/%s to name mdadm 1.x devices,
  13146. removing the homehost if present.
  13147. * kern/emu/getroot.c (get_mdadm_name) [__linux__]: New function.
  13148. (grub_util_get_grub_dev): Use md/%s to name mdadm 1.x devices,
  13149. removing the homehost if present.
  13150. (grub_util_get_grub_dev) [__linux__]: Get the array name from mdadm
  13151. if possible.
  13152. * util/i386/pc/grub-setup.c (main): Handle md/* devices.
  13153. * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Add start_sector
  13154. parameter. Set its pointer target to 0.
  13155. * disk/mdraid_linux.c (grub_mdraid_detect): Add start_sector
  13156. parameter. Set its pointer target to 0 for 0.9 metadata, or to the
  13157. `data_offset' value from the superblock for 1.x metadata.
  13158. * disk/raid.c (grub_raid_read): Offset reads by the start sector of
  13159. data on the device.
  13160. (insert_array): Record the start sector of data on the device.
  13161. (grub_raid_register): Pass start_sector parameters to
  13162. grub_raid_list->detect and insert_array.
  13163. * include/grub/raid.h (struct grub_raid_array): Add start_sector
  13164. member.
  13165. (struct grub_raid): Add start_sector parameter to `detect'.
  13166. * disk/mdraid_linux.c (struct grub_raid_super_1x): Remove
  13167. __attribute__ ((packed)), leaving a comment.
  13168. (grub_mdraid_detect): Split out 0.9 and 1.x detection to ...
  13169. (grub_mdraid_detect_09): ... here and ...
  13170. (grub_mdraid_detect_1x): ... here.
  13171. 2010-07-20 Peter Henn <peter.henn@web.de>
  13172. * disk/mdraid_linux.c (grub_mdraid_detect): Fix calculation of 1.x
  13173. chunk size and disk size, which are already given as sector counts
  13174. as distinct from the 0.90 units. Fetch the correct device number
  13175. from the role table instead of using the table index.
  13176. 2010-07-20 Felix Zielcke <fzielcke@z-51.de>
  13177. * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Set array->name to NULL.
  13178. * disk/mdraid_linux.c (grub_raid_super_1x): New structure.
  13179. (WriteMostly1): New macro.
  13180. Set array->name to NULL for metadata format 0.90. Add support for
  13181. metadata 1.x. Fix some comments.
  13182. * disk/raid.c (): Add support for name based RAID arrays. Fix a
  13183. few comments.
  13184. * util/getroot.c (grub_util_get_grub_dev): Add support for
  13185. /dev/md/name style devices.
  13186. 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
  13187. * .bzrignore: Ignore 20_linux_xen.
  13188. 2010-07-17 Colin Watson <cjwatson@ubuntu.com>
  13189. * util/import_unicode.py: Remove unnecessary imports.
  13190. 2010-07-17 Aleš Nesrsta <starous@volny.cz>
  13191. Hotplugging and USB hub support.
  13192. * bus/usb/ohci.c (grub_ohci_td): Add convenience fields.
  13193. (grub_ohci): Likewise.
  13194. (GRUB_OHCI_REG_CONTROL_BULK_ENABLE): New definition.
  13195. (GRUB_OHCI_REG_CONTROL_CONTROL_ENABLE): Likewise.
  13196. (GRUB_OHCI_RESET_CONNECT_CHANGE): Likewise.
  13197. (GRUB_OHCI_CTRL_EDS): Likewise.
  13198. (GRUB_OHCI_BULK_EDS): Likewise.
  13199. (GRUB_OHCI_TDS): Likewise.
  13200. (GRUB_OHCI_ED_ADDR_MASK): Likewise.
  13201. (grub_ohci_ed_phys2virt): New function.
  13202. (grub_ohci_virt_to_phys): Likewise.
  13203. (grub_ohci_td_phys2virt): Likewise.
  13204. (grub_ohci_td_virt2phys): Likewise.
  13205. (grub_ohci_pci_iter): Allocate memory and don't wait for stable
  13206. attachment.
  13207. (grub_ohci_find_ed): New function.
  13208. (grub_ohci_alloc_td): Likewise.
  13209. (grub_ohci_free_td): Likewise.
  13210. (grub_ohci_free_tds): Likewise.
  13211. (grub_ohci_transfer): Use previously allocated memory.
  13212. (grub_ohci_portstatus): Reset status changed bit.
  13213. (grub_ohci_detect_dev): Supply status changed.
  13214. (grub_ohci_fini_hw): Free memory.
  13215. (grub_ohci_restore_hw): Reallocate memory.
  13216. * bus/usb/uhci.c (grub_uhci_portstatus): Don't reset on disable.
  13217. Reset status change.
  13218. (grub_uhci_detect_dev): Supply status_change.
  13219. * bus/usb/usb.c (attach_hooks): New var.
  13220. (grub_usb_device_attach): New function.
  13221. (grub_usb_register_attach_hook_class): Likewise.
  13222. (grub_usb_unregister_attach_hook_class): Likewise.
  13223. * bus/usb/usbhub.c (grub_usb_hub_add_dev): Handle errors correctly.
  13224. (grub_usb_add_hub): Reset connection changed bit.
  13225. (attach_root_port): New function.
  13226. (grub_usb_root_hub): Likewise.
  13227. (poll_nonroot_hub): Likewise.
  13228. (grub_usb_poll_devices): Likewise.
  13229. * commands/usbtest.c (grub_cmd_usbtest): Poll devices before listing.
  13230. * disk/usbms.c (grub_usbms_open): Use device hooks.
  13231. (grub_usbms_iterate) :Poll devices.
  13232. (grub_usbms_finddevs): Split into ...
  13233. (grub_usbms_attach): ... this ...
  13234. (grub_usbms_attach): ... and this.
  13235. * include/grub/usb.h (grub_usb_controller_dev): Supply status_changed
  13236. in detect_dev.
  13237. (grub_usb_interface): New fields attached and detach_hook.
  13238. (grub_usb_attach_hook_class): New type.
  13239. (grub_usb_attach_desc): New struct.
  13240. (grub_usb_register_attach_hook_class): New function.
  13241. (grub_usb_unregister_attach_hook_class): Likewise.
  13242. (grub_usb_poll_devices): Likewise.
  13243. (grub_usb_device_attach): Likewise.
  13244. * include/grub/usbtrans.h (GRUB_USB_HUB_FEATURE_C_CONNECTED): New const.
  13245. (GRUB_USB_HUB_STATUS_C_CONNECTED): Likewise.
  13246. 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
  13247. * include/grub/bsdlabel.h (GRUB_PC_PARTITION_BSD_LABEL_WHOLE_DISK_PARTITION): New definition.
  13248. * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Use FreeBSD
  13249. delta determination style. Works with most NetBSD partitions too.
  13250. 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
  13251. * kern/partition.c [GRUB_UTIL]: Add missing util/misc.h inclusion.
  13252. * partmap/bsdlabel.c [GRUB_UTIL]: Likewise.
  13253. 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
  13254. * disk/scsi.c (grub_scsi_open): Fix incorrect pointer dereference.
  13255. 2010-07-14 Anton Blanchard <anton@samba.org>
  13256. * loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Do not reject
  13257. ET_DYN files.
  13258. 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
  13259. * Makefile.in: Use the substituted @USE_NLS@ instead of ENABLE_NLS.
  13260. 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
  13261. * kern/partition.c (grub_partition_check_containment): New function to
  13262. check that a partition is physically contained in a parent. Since
  13263. offsets are relative (and non-negative), this reduces to checking that
  13264. the partition ends before its parent.
  13265. (grub_partition_map_probe): Discard out-of-range sub-partitions.
  13266. (grub_partition_iterate): Likewise.
  13267. * include/grub/partition.h (grub_partition_map): Slightly more detailed
  13268. comments.
  13269. * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Discard
  13270. partitions that start before their parent, and add debug printfs.
  13271. 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
  13272. * Makefile.in (.SUFFIX): Spell correctly, as ...
  13273. (.SUFFIXES): ... this. Fixes bug where `make foo' (where foo is a
  13274. bare module name without `.mod', e.g. `test') tried to invoke a
  13275. Modula-2 compiler.
  13276. 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
  13277. * README: Point to the Info manual.
  13278. 2010-07-13 Jiro SEKIBA <jir@unicus.jp>
  13279. * fs/nilfs2.c: fix macro NILFS_2ND_SUPER_BLOCK to calculate
  13280. 2nd superblock position from partition size.
  13281. 2010-07-10 Colin Watson <cjwatson@ubuntu.com>
  13282. * Makefile.in (MAINTAINER_CLEANFILES): Remove
  13283. unicode/UnicodeData.txt, unicode/BidiMirroring.txt, and
  13284. unicode/ArabicShaping.txt again; these are inputs to autogen.sh, not
  13285. outputs.
  13286. 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
  13287. Restructure SCSI .id handling.
  13288. Reported and tested by: Aleš Nesrsta.
  13289. * disk/ata.c (grub_atapi_close): Removed. All users updated.
  13290. (grub_atapi_dev): Changed .name to "ata". New field .id.
  13291. * disk/usbms.c (grub_usbms_close): Removed. All users updated.
  13292. (grub_usbms_dev): New field .id.
  13293. * disk/scsi.c (grub_scsi_iterate): Generate name.
  13294. (grub_scsi_open): Parse name.
  13295. * include/grub/scsi.h (grub_make_scsi_id): New function.
  13296. (grub_scsi_dev): Change iterate and open to number instead of naming
  13297. busses. All users updated.
  13298. (grub_scsi): Remove name. Add .bus.
  13299. 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
  13300. * commands/help.c (grub_cmd_help): Fix a typo.
  13301. 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
  13302. * normal/term.c (put_glyphs_terminal): Fix state->num_lines counting.
  13303. Reported and tested by: Colin Watson.
  13304. 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
  13305. * util/grub-mkrescue.in: Don't use tar GNU-ism since it's not necessary
  13306. in this context.
  13307. 2010-07-07 Vladimir Serbinenko <phcoder@gmail.com>
  13308. * tests/util/grub-shell.in: Remove bashisms and declare as sh script.
  13309. 2010-07-07 Colin Watson <cjwatson@ubuntu.com>
  13310. * term/gfxterm.c (grub_gfxterm_background_image_cmd): Fix
  13311. indentation.
  13312. 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
  13313. * conf/common.rmk (grub_probe_SOURCES): Add disk/raid5_recover.c
  13314. and disk/raid6_recover.c.
  13315. * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
  13316. * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
  13317. 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
  13318. * term/gfxterm.c (repaint_schedulded): Rename to ...
  13319. (repaint_scheduled): ... this. Update all callers.
  13320. (repaint_was_schedulded): Rename to ...
  13321. (repaint_was_scheduled): ... this. Update all callers.
  13322. 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
  13323. * util/deviceiter.c (grub_util_iterate_devices): Skip MD devices,
  13324. which we expect to be handled by upper layers.
  13325. 2010-07-06 BVK Chaitanya <bvk.groups@gmail.com>
  13326. * bus/usb/usbhub.c: #include time.h header.
  13327. 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
  13328. * fs/reiserfs.c (grub_reiserfs_iterate_dir): Zero out first byte of
  13329. entry_name also for entries without stat blocks (e.g. ".."); fixes
  13330. corruption of the first entry in a directory.
  13331. 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
  13332. * util/grub.d/00_header.in: Process GRUB_THEME and GRUB_BACKGROUND
  13333. after setting gfxterm as the active terminal. GRUB_BACKGROUND
  13334. doesn't work otherwise.
  13335. 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
  13336. * docs/grub.texi (Features): Update list of supported file systems.
  13337. (GNU/Linux): Update for GRUB 2.
  13338. (Serial terminal): Remove mention of --disable-serial, which was a
  13339. GRUB Legacy configure option. Update instructions to use
  13340. `terminal_input' and `terminal_output' rather than `terminal'.
  13341. (Vendor power-on keys): Copy-edit. Add cross-references to `Simple
  13342. configuration' and `Installing GRUB using grub-install'.
  13343. (Menu entry editor): Update for GRUB 2.
  13344. (terminfo): Add vt100-color, ieee1275, and dumb terminal types.
  13345. Document new -a, -u, and -v options.
  13346. (initrd): New section.
  13347. (initrd16): New section.
  13348. (linux): New section.
  13349. (linux16): New section.
  13350. (search): The `var' argument to `--set' is optional.
  13351. (GRUB only offers a rescue shell): Go into a little more detail on
  13352. drive ordering.
  13353. 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
  13354. * Makefile.in: Set LINGUAS to empty if ENABLE_NLS is undefined.
  13355. 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
  13356. * Makefile.in (MAINTAINER_CLEANFILES): Add unicode/UnicodeData.txt,
  13357. unicode/BidiMirroring.txt, unicode/ArabicShaping.txt, and unidata.c.
  13358. 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
  13359. * util/i386/pc/grub-setup.c (setup): Rename prefix to
  13360. install_prefix, in line with install_dos_part and install_bsd_part.
  13361. Add new prefix variable, which is copied to install_prefix after
  13362. comparing core.img in memory with the one read from disk in the
  13363. no-embedding case, and use that rather than overwriting
  13364. install_prefix immediately when installing to a partition.
  13365. Fixes Debian bug #586621; based on patches by Matt Kraai and M. Vefa
  13366. Bicakci.
  13367. 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
  13368. * configure.ac: Avoid == in test command, it's not portable.
  13369. * util/grub.d/30_os-prober.in: Likewise.
  13370. 2010-07-04 Colin Watson <cjwatson@ubuntu.com>
  13371. * kern/emu/getroot.c [__GNU__]: Include <sys/mman.h> for munmap.
  13372. 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
  13373. * util/i386/pc/grub-setup.c (setup): Do not embed when there are
  13374. multiple (top-level) partmaps.
  13375. 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
  13376. * util/i386/efi/grub-install.in: Don't use empty grub_device.
  13377. Reported by: Tino Keitel.
  13378. 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
  13379. Bidi and diacritics support.
  13380. * Makefile.in (widthspec.bin): New target.
  13381. (widthspec.h): Likewise.
  13382. (TARGET_CFLAGS): Add -DHAVE_UNIFONT_WIDTHSPEC=1 if font was available.
  13383. * autogen.sh: Generate unidata.c.
  13384. * commands/cat.c (grub_cmd_cat): Don't use grub_putchar.
  13385. * commands/ls.c (grub_ls_list_devices): Likewise.
  13386. (grub_ls_list_files): Likewise.
  13387. * commands/minicmd.c (grub_mini_cmd_cat): Likewise.
  13388. (grub_mini_cmd_lsmod): Likewise.
  13389. * commands/read.c: Likewise.
  13390. * kern/corecmd.c (grub_core_cmd_ls): Likewise.
  13391. * kern/rescue_reader.c (grub_rescue_read_line): Likewise.
  13392. * lib/arg.c (grub_arg_show_help): Likewise.
  13393. * lib/crypto.c (grub_password_get): Likewise.
  13394. * normal/auth.c (grub_username_get): Likewise.
  13395. * normal/misc.c (grub_normal_print_device_info): Likewise.
  13396. * commands/help.c (grub_cmd_help): Use grub_unicode_aglomerate_comb.
  13397. * conf/common.rmk (grub_mkfont_SOURCES): Add unidata.c.
  13398. (gfxmenu_mod_SOURCES): Add gfxmenu/font.c.
  13399. (normal/charset.c_DEPENDENCIES): New variable.
  13400. (normal_mod_SOURCES): Add normal/charset.c and unidata.c.
  13401. (pkglib_MODULES): Remove charset.mod.
  13402. (charset_mod_SOURCES): Removed.
  13403. (charset_mod_CFLAGS): Likewise.
  13404. (charset_mod_LDFLAGS): Likewise.
  13405. (pkglib_MODULES) [ieee1275]: Remove terminfo.mod.
  13406. * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Add term/terminfo.c
  13407. and term/tparm.c.
  13408. * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
  13409. * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
  13410. (kernel_img_HEADERS): Add terminfo.h.
  13411. * font/font.c (ascii_glyph_lookup): Return NULL on failure.
  13412. Fill ->font. Reverse ascii bitmaps.
  13413. (grub_font_get_xheight): New function.
  13414. * font/font.c (grub_font_get_string_width): Moved from here ...
  13415. * gfxmenu/font.c (grub_font_get_string_width): ... here.
  13416. * font/font.c (grub_font_draw_string): Moved from here ...
  13417. * gfxmenu/font.c (grub_font_draw_string): ... here.
  13418. * font/font.c (grub_font_dup_glyph): New function.
  13419. (grub_font_blit_glyph): Likewise.
  13420. (grub_font_blit_glyph_mirror): Likewise.
  13421. (blit_comb): Likewise.
  13422. (grub_font_construct_dry_run): Likewise.
  13423. (grub_font_get_constructed_device_width): Likewise.
  13424. (grub_font_construct_glyph): Likewise.
  13425. * include/grub/charset.h (grub_ucs4_to_utf8): New proto.
  13426. * include/grub/misc.h (grub_utf8_to_ucs4): Moved from here ...
  13427. * include/grub/charset.h (grub_utf8_to_ucs4): ... here.
  13428. * include/grub/font.h (GRUB_FONT_CODE_CHAR_MASK): New constant.
  13429. (GRUB_FONT_CODE_RIGHT_JOINED): Likewise.
  13430. (GRUB_FONT_CODE_LEFT_JOINED): Likewise.
  13431. (grub_font_get_xheight): New proto.
  13432. (grub_font_get_constructed_device_width): Likewise.
  13433. (grub_font_construct_glyph): Likewise.
  13434. * include/grub/font.h (grub_font_get_string_width): Moved from here ...
  13435. * include/grub/gfxmenu_view.h (grub_font_get_string_width): ... here.
  13436. * include/grub/font.h (grub_font_draw_string): Moved from here ...
  13437. * include/grub/gfxmenu_view.h (grub_font_draw_string): ... here.
  13438. * include/grub/i386/vga_common.h (grub_console_putchar): Moved from here..
  13439. * include/grub/i386/pc/console.h (grub_console_putchar): ... here.
  13440. * include/grub/i386/vga_common.h (grub_console_real_putchar): Removed.
  13441. (grub_console_getcharwidth): Likewise.
  13442. * include/grub/misc.h (grub_xputs): New proto.
  13443. (grub_puts): Inlined.
  13444. * include/grub/normal.h (grub_print_ucs4): Add margin specification.
  13445. (grub_normal_get_line_counter): Removed.
  13446. (grub_install_newline_hook): Likewise.
  13447. (grub_normal_get_char_counter): New proto.
  13448. (grub_normal_reset_more): Likewise.
  13449. (grub_xputs_normal): Likewise.
  13450. * include/grub/powerpc/ieee1275/console.h: Removed.
  13451. * include/grub/sparc64/ieee1275/console.h: Likewise.
  13452. * include/grub/term.h (GRUB_TERM_CODE_TYPE_MASK): New definition.
  13453. (GRUB_TERM_CODE_TYPE_ASCII): Likewise.
  13454. (GRUB_TERM_CODE_TYPE_CP437): Likewise.
  13455. (GRUB_TERM_CODE_TYPE_UTF8_LOGICAL): Likewise.
  13456. (GRUB_TERM_CODE_TYPE_UTF8_VISUAL): Likewise.
  13457. (GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS): Likewise.
  13458. (grub_term_input): Pass reference to self. All users updated.
  13459. (grub_term_output): Pass grub_unicode_glyph to putchar and getcharwidth.
  13460. Pass reference to self. New fields normal_color, highlight_color and
  13461. data. All users updated.
  13462. (grub_putchar): Removed.
  13463. (grub_putcode): Remove EXPORT_FUNC since it's not in kernel anymore.
  13464. (grub_unicode_estimate_width): New function.
  13465. (grub_term_getcharwidth): Add defaults.
  13466. (GRUB_TERM_DEFAULT_NORMAL_COLOR): New definition.
  13467. (GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR): Likewise.
  13468. (GRUB_TERM_DEFAULT_STANDARD_COLOR): Likewise.
  13469. (grub_cls): Remove EXPORT_FUNC.
  13470. (grub_setcolorstate): Inline.
  13471. (grub_newline_hook): Removed.
  13472. * include/grub/terminfo.h: Rewritten. All users updated.
  13473. * include/grub/unicode.h: New file.
  13474. * include/grub/video.h (grub_video_signed_rect): New type.
  13475. * kern/emu/console.c (grub_console_highlight_color): Removed.
  13476. (grub_console_normal_color): Likewise.
  13477. (grub_console_standard_color): Made static.
  13478. (grub_ncurses_putchar): Remove mapping.
  13479. (grub_ncurses_getcharwidth): Removed.
  13480. (grub_ncurses_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
  13481. (grub_ncurses_setcolor): Removed.
  13482. (grub_ncurses_getcolor): Likewise.
  13483. * kern/i386/pc/startup.S (grub_console_real_putchar): Renamed to ...
  13484. (grub_console_putchar): ... this.
  13485. (grub_console_putchar): Handle argument difference.
  13486. * kern/ieee1275/init.c (grub_machine_init): Split console_init into
  13487. console_init_early and console_init_lately.
  13488. * kern/sparc64/ieee1275/init.c (grub_machine_init): Likewise.
  13489. * kern/misc.c (grub_puts): Removed.
  13490. (grub_vprintf): Store UTF-8 string instead of outputting it directly.
  13491. (grub_vsnprintf_real): Remove str = NULL support.
  13492. * kern/misc.c (grub_utf8_to_ucs4): Move from here ...
  13493. * normal/charset.c (grub_utf8_to_ucs4): ... here.
  13494. * kern/term.c (grub_putcode): Renamed to ...
  13495. (grub_putcode_dumb): ... this. Pass grub_unicode_glyph instead of code.
  13496. (grub_putchar): Removed.
  13497. (grub_xputs_dumb): New function.
  13498. (grub_xputs): New variable.
  13499. * lib/charset.c: Move from here ...
  13500. * normal/charset.c: ... to here.
  13501. (grub_ucs4_to_utf8): New function.
  13502. (grub_ucs4_to_utf8_alloc): Use grub_ucs4_to_utf8.
  13503. (join_types): New variable.
  13504. (unpack_join): New function.
  13505. (bidi_types): New variable.
  13506. (unpack_bidi): New function.
  13507. (get_bidi_type): Likewise.
  13508. (get_join_type): Likewise.
  13509. (is_mirrored): Likewise.
  13510. (grub_unicode_get_comb_type): Likewise.
  13511. (grub_unicode_estimate_width) [HAVE_UNIFONT_WIDTHSPEC]: Likewise.
  13512. (is_type_after): Likewise.
  13513. (grub_unicode_aglomerate_comb): Likewise.
  13514. (bidi_line_wrap): Likewise.
  13515. (grub_bidi_line_logical_to_visual): Likewise.
  13516. (grub_bidi_logical_to_visual): Likewise.
  13517. (grub_unicode_mirror_code): Likewise.
  13518. (grub_unicode_shape_code): Likewise.
  13519. * normal/cmdline.c (grub_cmdline_get): Reset more counter.
  13520. Don't use grub_putchar.
  13521. * normal/main.c (grub_normal_init_page): Use grub_putcode.
  13522. (grub_normal_reader_init): Likewise.
  13523. (grub_xputs_saved): New variable.
  13524. (GRUB_MOD_INIT): Set grub_xputs.
  13525. (GRUB_MOD_FINI): Restore grub_xputs.
  13526. * normal/menu.c (grub_wait_after_message): Don't use grub_putchar.
  13527. (menu_init): Avoid printing gfxmenu error.
  13528. (show_menu): Use grub_normal_get_char_counter.
  13529. * normal/menu_entry.c (update_screen): Fix out-of-array.
  13530. (complete): Avoid NULL dereferencing.
  13531. * grub_menu_entry_run (grub_menu_entry_run): Don't use putchar.
  13532. * normal/menu_text.c (print_spaces): Removed.
  13533. (grub_print_ucs4): Likewise.
  13534. (grub_print_message_indented): Use grub_print_ucs4.
  13535. (print_message): Use grub_putcode.
  13536. (print_entry): Hanlde diacritics.
  13537. * normal/term.c (term_state): New type.
  13538. (grub_more_lines): Removed.
  13539. (term_states): New variable.
  13540. (grub_normal_line_counter): Renamed to ..
  13541. (grub_normal_char_counter): ...this. All users updated.
  13542. (grub_normal_get_line_counter): Renamed to ...
  13543. (grub_normal_get_char_counter): ... this.
  13544. (grub_normal_reset_more): New function.
  13545. (process_newline): Removed.
  13546. (print_more): New function.
  13547. (grub_install_newline_hook): Removed.
  13548. (map_code): New function.
  13549. (grub_puts_terminal): Use grub_print_ucs4.
  13550. (putglyph): New function.
  13551. (putcode_real): Likewise.
  13552. (grub_putcode): Use putcode_real.
  13553. (get_maxwidth): New function.
  13554. (get_startwidth): Likewise.
  13555. (print_ucs4_terminal): Likewise.
  13556. (find_term_state): Likewise.
  13557. (put_glyphs_terminal): Likewise.
  13558. (print_backlog): Likewise.
  13559. (print_ucs4_real): Likewise.
  13560. (grub_print_ucs4): Likewise.
  13561. (grub_xputs_normal): Likewise.
  13562. * term/efi/console.c (grub_console_putchar): Output diacritics.
  13563. (grub_console_getcharwidth): Removed.
  13564. (grub_console_term_output): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
  13565. * term/gfxterm.c (clear_char): Free chars.
  13566. (scroll_up): Avoid leaking memory.
  13567. (grub_gfxterm_putchar): Support diacritics.
  13568. (grub_video_term): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
  13569. * term/i386/pc/console.c (grub_console_term_output): Declare as
  13570. GRUB_TERM_CODE_TYPE_VGA.
  13571. * term/i386/pc/vga.c (grub_vga_term): Declare as
  13572. GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS.
  13573. * term/i386/pc/vga_text.c (grub_vga_text_term): Declare as
  13574. GRUB_TERM_CODE_TYPE_VGA.
  13575. * term/i386/vga_common.c (map_char): Removed.
  13576. (grub_console_putchar): Likewise.
  13577. (grub_console_getcharwidth): Likewise.
  13578. * term/ieee1275/ofconsole.c: Simplify using terminfo.
  13579. (colors): Reordered to match terminfo.
  13580. (grub_ofconsole_normal_color): Removed.
  13581. (grub_ofconsole_writeesc): Likewise.
  13582. (grub_ofconsole_highlight_color): Likewise.
  13583. (grub_ofconsole_getcharwidth): Likewise.
  13584. (grub_ofconsole_setcolorstate): Likewise.
  13585. (grub_ofconsole_setcolor): Likewise.
  13586. (grub_ofconsole_getcolor): Likewise.
  13587. (grub_ofconsole_readkey): Renamed to ...
  13588. (readkey): ... this. Remove escape sequence handling. Return -1 on no
  13589. key.
  13590. (grub_ofconsole_checkkey): Removed.
  13591. (grub_ofconsole_getkey): Likewise.
  13592. (grub_ofconsole_getxy): Likewise.
  13593. (grub_ofconsole_gotoxy): Likewise.
  13594. (grub_ofconsole_cls): Likewise.
  13595. (grub_ofconsole_refresh): Likewise.
  13596. (grub_ofconsole_terminfo_input): New struct.
  13597. (grub_ofconsole_terminfo_output): Likewise.
  13598. (grub_ofconsole_term_input): Use terminfo.
  13599. (grub_ofconsole_term_output): Likewise.
  13600. (grub_console_init): Split into ...
  13601. (grub_console_init_early): ...this and ...
  13602. (grub_console_init_lately): ...this. Use terminfo.
  13603. (grub_ofconsole_putchar): Renamed to ...
  13604. (put): ... this. Remove mapping.
  13605. (grub_ofconsole_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
  13606. * term/serial.c: Simplify using terminfo.
  13607. (xpos): Removed.
  13608. (ypos): Likewise.
  13609. (keep_track): Likewise.
  13610. (registered): Likewise.
  13611. (input_buf): Likewise.
  13612. (npending): Likewise.
  13613. (serial_translate_key_sequence): Likewise.
  13614. (fill_input_buf): Likewise.
  13615. (grub_serial_checkkey): Likewise.
  13616. (grub_serial_getkey): Likewise.
  13617. (grub_serial_getxy): Likewise.
  13618. (grub_serial_gotoxy): Likewise.
  13619. (grub_serial_putchar): Likewise.
  13620. (grub_serial_cls): Likewise.
  13621. (grub_serial_setcolorstate): Likewise.
  13622. (grub_serial_setcursor): Likewise.
  13623. (serial_hw_init): Use serial_hw_fetch.
  13624. (grub_serial_terminfo_input): New variable.
  13625. (grub_serial_terminfo_output): Likewise.
  13626. (grub_serial_term_input): Use terminfo.
  13627. (grub_serial_term_output): Likewise.
  13628. * term/terminfo.c (putstr): Use put.
  13629. (grub_terminfo_all_free): New function
  13630. (grub_terminfo_set_current): New types vt100-color, ieee1275 and dumb.
  13631. (grub_terminfo_output_register): New function.
  13632. (grub_terminfo_output_unregister): Likewise.
  13633. (grub_terminfo_getxy): Likewise.
  13634. (grub_terminfo_readkey): Likewise.
  13635. (grub_terminfo_checkkey): Likewise.
  13636. (grub_terminfo_getkey): Likewise.
  13637. (grub_terminfo_input_init): Likewise.
  13638. (print_terminfo): Likewise.
  13639. (grub_cmd_terminfo): Handle encoding.
  13640. (grub_terminfo_gotoxy): Track position.
  13641. (grub_terminfo_cls): Likewise.
  13642. (grub_terminfo_putchar): Likewise.
  13643. (grub_terminfo_setcolorstate): Handle colors
  13644. (grub_terminfo_cursor_on): This ...
  13645. (grub_terminfo_cursor_off): ... and this merged into ...
  13646. (grub_terminfo_setcursor): ... this.
  13647. * term/tparm.c (grub_terminfo_tparm): Avoid NULL dereferencing.
  13648. * unicode/ArabicShaping.txt: New file (imported from Unicode).
  13649. * unicode/BidiMirroring.txt: Likewise.
  13650. * unicode/UnicodeData.txt: Likewise.
  13651. * unicode/COPYING: Likewise.
  13652. * util/grub-editenv.c (grub_putchar): Removed.
  13653. (grub_xputs_real): New function.
  13654. (grub_xputs): New variable.
  13655. * util/grub-fstest.c (grub_putchar): Removed.
  13656. (grub_xputs_real): New function.
  13657. (grub_xputs): New variable.
  13658. * util/grub-mkdevicemap.c (grub_putchar): Removed.
  13659. (grub_xputs_real): New function.
  13660. (grub_xputs): New variable.
  13661. * util/grub-probe.c (grub_putchar): Removed.
  13662. (grub_xputs_real): New function.
  13663. (grub_xputs): New variable.
  13664. * util/grub-script-check.c (grub_putchar): Removed.
  13665. (grub_xputs_real): New function.
  13666. (grub_xputs): New variable.
  13667. * util/i386/pc/grub-setup.c (grub_putchar): Removed.
  13668. (grub_xputs_real): New function.
  13669. (grub_xputs): New variable.
  13670. * util/import_unicode.py: New file.
  13671. * util/grub-mkfont.c (ft_errmsgs): New array.
  13672. (grub_glyph_info): Make bitmap a pointer.
  13673. (file_formats): New type WIDTH_SPEC.
  13674. (grub_font_info): New members glyphs_unsorted, glyphs_sorted, num_glyphs.
  13675. (options): Add width-spec.
  13676. (help): Likewise.
  13677. (add_char): Renamed to ...
  13678. (add_glyph): ... this.
  13679. (add_glyph): Use index. Show freetype errors. Cut blank space at borders.
  13680. (glyph_replace): New type.
  13681. (subst_rightjoin), (subst_leftjoin), (subst_medijoin): New variables.
  13682. (add_char): New function.
  13683. (add_subst): Likewise.
  13684. (process_cursive): Likewise.
  13685. (add_font): Handle GSUB.
  13686. (write_font_width_spec): New function.
  13687. (main): Sort glyphs.
  13688. * commands/minicmd.c (grub_mini_cmd_clear): Moved from here ...
  13689. * normal/main.c (grub_mini_cmd_clear): ..here. All users updated.
  13690. * kern/term.c (grub_cls): Moved from here...
  13691. * normal/term.c (grub_cls): ... here.
  13692. 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
  13693. * include/grub/types.h: Define the C99-style PRIxGRUB_SIZE macro,
  13694. suitable for using within the format argument of printf when
  13695. converting grub_size_t.
  13696. * disk/usbms.c (grub_usbms_transfer): Use PRIxGRUB_SIZE rather than
  13697. "x" to convert grub_size_t arguments.
  13698. 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
  13699. * gfxmenu/gui_list.c (draw_menu): Use viewport to simplify code and fix
  13700. too long captions.
  13701. (list_get_minimal_size): Take selection box into account.
  13702. 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
  13703. * font/font.c (grub_font_get_glyph_with_fallback): Avoid dereferencing
  13704. NULL font.
  13705. 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
  13706. * util/deviceiter.c (grub_util_iterate_devices): Skip device-mapper
  13707. devices when iterating over /dev/disk/by-id; they will be handled
  13708. later if appropriate, which they aren't always (e.g. LVM).
  13709. 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
  13710. * include/grub/misc.h (grub_reboot): Declare as noreturn.
  13711. * kern/efi/efi.c (grub_reboot): Don't return, even if reset_system
  13712. fails.
  13713. (grub_halt): Likewise.
  13714. * kern/ieee1275/openfw.c (grub_reboot): Don't return, even if
  13715. reset-all fails.
  13716. (grub_halt): Don't return, even if all of shut-down, power-off, and
  13717. poweroff fail.
  13718. 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
  13719. * kern/efi/init.c (grub_efi_init): set_watchdog_timer takes four
  13720. arguments, not three.
  13721. 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
  13722. * util/grub-mkconfig_lib.in (uses_abstraction): New function.
  13723. * util/grub.d/10_linux.in: Use it to check for LVM, so that
  13724. LVM-on-RAID is handled correctly.
  13725. 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
  13726. * docs/grub.texi (Changes from GRUB Legacy): New section.
  13727. (Future): Fix typo.
  13728. 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
  13729. * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Sometimes
  13730. grub.d/README accidentally ends up executable for one reason or
  13731. another. Ignore it.
  13732. 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
  13733. * partmap/gpt.c (MAX_SECTOR_LOG): New definition.
  13734. (gpt_partition_map_iterate): Support non-512B sectors.
  13735. 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
  13736. * kern/efi/init.c (grub_efi_init): Disable watchdog.
  13737. Tested by: Seth Goldberg.
  13738. 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
  13739. * loader/multiboot.c (grub_multiboot_boot) [GRUB_USE_MULTIBOOT2]:
  13740. Properly align mbi.
  13741. Reported by: Seth Goldberg.
  13742. 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
  13743. * util/grub-mkrescue.in: Avoid module duplication.
  13744. 2010-07-01 Sean Finney <seanius@seanius.net>
  13745. * util/grub.d/10_linux.in: Don't use UUID for LVM root.
  13746. 2010-07-01 Sean Finney <seanius@seanius.net>
  13747. * disk/lvm.c (grub_lvm_scan_device): Skip snapshots.
  13748. 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
  13749. * disk/lvm.c (grub_lvm_checkvalue): New function.
  13750. (grub_lvm_check_flag): Likewise.
  13751. 2010-07-01 Robert Millan <rmh@gnu.org>
  13752. * kern/emu/hostdisk.c (convert_system_partition_to_system_disk):
  13753. Support 'p' as partition separator on kernel of FreeBSD (used
  13754. with GPT labels).
  13755. (grub_util_biosdisk_get_grub_dev): Likewise.
  13756. 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
  13757. Yeeloong firmware port.
  13758. * boot/mips/yeeloong/fwstart.S: New file.
  13759. * bus/cs5536.c (gpiodump): New const.
  13760. (set_io_space): New function.
  13761. (set_iod): Likewise.
  13762. (set_p2d): Likewise.
  13763. (grub_cs5536_init_geode): Likewise.
  13764. * commands/mips/yeeloong/lsspd.c: New file.
  13765. * conf/mips-qemu-mips.rmk (pkglib_MODULES): Add serial.mod.
  13766. (serial_mod_SOURCES): New variable.
  13767. (serial_mod_CFLAGS): Likewise.
  13768. (serial_mod_LDFLAGS): Likewise.
  13769. * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Add term/serial.c,
  13770. term/terminfo.c and term/tparm.c.
  13771. (pkglib_IMAGES): Add fwstart.img.
  13772. (fwstart_img_SOURCES): New variable.
  13773. (fwstart_img_CFLAGS): Likewise.
  13774. (fwstart_img_ASFLAGS): Likewise.
  13775. (fwstart_img_LDFLAGS): Likewise.
  13776. (fwstart_img_FORMAT): Likewise.
  13777. (pkglib_MODULES): Add lsspd.mod.
  13778. (lsspd_mod_SOURCES): New variable.
  13779. (lsspd_mod_CFLAGS): Likewise.
  13780. (lsspd_mod_LDFLAGS): Likewise.
  13781. (pkglib_MODULES): Add halt.mod.
  13782. (halt_mod_SOURCES): New variable.
  13783. (halt_mod_CFLAGS): Likewise.
  13784. (halt_mod_LDFLAGS): Likewise.
  13785. * conf/mips.rmk (pkglib_MODULES): Remove serial.mod.
  13786. (serial_mod_SOURCES): Removed.
  13787. (serial_mod_CFLAGS): Likewise.
  13788. (serial_mod_LDFLAGS): Likewise.
  13789. * disk/ata.c (check_device): New function.
  13790. (grub_ata_device_initialize): Use check_device.
  13791. (grub_ata_iterate): Recheck devices.
  13792. (grub_ata_open): Likewise.
  13793. (grub_atapi_iterate): Likewise.
  13794. (grub_atapi_open): Likewise.
  13795. * include/grub/ata.h (GRUB_ATA_CH0_PORT1): New macro.
  13796. (GRUB_ATA_CH1_PORT1): Likewise.
  13797. (GRUB_ATA_CH0_PORT2): Likewise.
  13798. (GRUB_ATA_CH1_PORT2): Likewise.
  13799. * include/grub/mips/loongson.h: New file.
  13800. * include/grub/mips/yeeloong/ec.h: Likewise.
  13801. * include/grub/mips/yeeloong/serial.h (GRUB_MACHINE_SERIAL_PORT): New definition.
  13802. (GRUB_MACHINE_SERIAL_DIVISOR_115200): Likewise.
  13803. (GRUB_MACHINE_SERIAL_PORTS) [ASM_FILE]: Remove.
  13804. * include/grub/misc.h (grub_halt): Declare as noreturn.
  13805. * include/grub/serial.h (UART_ENABLE_FIFO): Renamed to ...
  13806. (UART_ENABLE_FIFO_TRIGGER14): ... this. All users updated.
  13807. (UART_ENABLE_FIFO_TRIGGER1): New definition.
  13808. (UART_ENABLE_DTRRTS): Likewise.
  13809. (UART_ENABLE_MODEM): Removed.
  13810. (UART_ENABLE_OUT2): New const.
  13811. * include/grub/term.h (grub_term_register_input_active): New function.
  13812. (grub_term_register_output_active): Likewise.
  13813. * kern/mips/startup.S [GRUB_MACHINE_MIPS_YEELOONG]: Handle 0xffffffff
  13814. argument.
  13815. * kern/mips/yeeloong/init.c (grub_get_rtc): Macroify.
  13816. (init_pci): New function.
  13817. (grub_machine_init): Execute platform init when firmware. Init serial.
  13818. (grub_halt): Implement.
  13819. (grub_exit): Likewise.
  13820. (grub_reboot): Likewise.
  13821. * term/serial.c (serial_hw_init): Update macros.
  13822. [GRUB_MACHINE_MIPS_YEELOONG]: Init on startup.
  13823. * util/grub-mkimage.c (image_target_desc): New id IMAGE_YEELOONG_FLASH.
  13824. (image_targets): New target mipsel-yeeloong-flash.
  13825. (generate_image): Support IMAGE_YEELOONG_FLASH.
  13826. * video/sm712.c (GRUB_SM712_TOTAL_MEMORY_SPACE): New definition.
  13827. (grub_video_sm712_setup): Init card.
  13828. (grub_video_sm712_set_palette): Removed.
  13829. * video/sm712_init.c: New file.
  13830. 2010-06-30 Colin Watson <cjwatson@ubuntu.com>
  13831. * Makefile.in (install-local): Temporarily prepend $(builddir) to
  13832. PATH when running help2man and then run it on the unadorned
  13833. executable names, rather than passing $(builddir)/* paths to
  13834. help2man. This avoids the build directory ending up in generated
  13835. manual pages.
  13836. 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
  13837. * util/grub-mkconfig.in: Use 'set -e' rather than '#! /bin/sh -e',
  13838. to avoid accidents when debugging with 'sh -x'.
  13839. * util/grub-mkrescue.in: Likewise.
  13840. * util/grub.d/00_header.in: Likewise.
  13841. * util/grub.d/10_hurd.in: Likewise.
  13842. * util/grub.d/10_kfreebsd.in: Likewise.
  13843. * util/grub.d/10_linux.in: Likewise.
  13844. * util/grub.d/10_netbsd.in: Likewise.
  13845. * util/grub.d/10_windows.in: Likewise.
  13846. * util/grub.d/20_linux_xen.in: Likewise.
  13847. * util/grub.d/30_os-prober.in: Likewise.
  13848. * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
  13849. 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
  13850. * commands/cat.c (grub_cmd_cat): Fix buffer overrun if '\r' is the
  13851. last character in the buffer.
  13852. Reported by: Vladimir Serbinenko.
  13853. 2010-06-29 Robert Millan <rmh@gnu.org>
  13854. * docs/grub.texi (Simple configuration): Document ${GRUB_BADRAM}.
  13855. (Command-line and menu entry commands): Document `badram' command.
  13856. 2010-06-28 Robert Millan <rmh@gnu.org>
  13857. * util/grub-mkconfig.in: Export `GRUB_BADRAM' variable.
  13858. * util/grub.d/00_header.in: When `GRUB_BADRAM' is set, issue badram
  13859. command using ${GRUB_BADRAM} as parameter.
  13860. 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
  13861. * docs/grub.texi (Device map): New section.
  13862. (Themes): New section (stub).
  13863. * Makefile.in (docs/grub.info): The info documentation now builds
  13864. without errors. Make sure it stays that way.
  13865. 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
  13866. Use normal parser for menu entries.
  13867. Reported by: Thomas Frauendorfer
  13868. * include/grub/parser.h (grub_parser_execute): Don't export.
  13869. * normal/menu.c (grub_menu_execute_entry_real): New function.
  13870. (grub_menu_execute_entry): Use grub_menu_execute_entry_real.
  13871. 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
  13872. * docs/grub.texi (Embedded configuration): New section (replacing
  13873. old "Preset Menu" stub).
  13874. (Images): New section.
  13875. (configfile): Note that any menu entries defined in `file' are shown
  13876. immediately.
  13877. 2010-06-28 Josh Triplett <josh@joshtriplett.org>
  13878. * mmap/i386/pc/mmap_helper.S: Set CF on return.
  13879. 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
  13880. * util/grub-install.in: Add --debug-image= option.
  13881. 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
  13882. Change grub-mkdevicemap to emit /dev/disk/by-id/ names where
  13883. possible on Linux.
  13884. * util/deviceiter.c (check_device): Rename to ...
  13885. (check_device_readable_unique): ... this. Update all callers.
  13886. Maintain and check a list of which devices (by canonicalized name)
  13887. have already been seen.
  13888. (clear_seen_devices): New function.
  13889. (compare_file_names) [__linux__]: New function.
  13890. (grub_util_iterate_devices): Clear the list of seen devices on exit
  13891. and (just in case) on entry.
  13892. (grub_util_iterate_devices) [__linux__]: Iterate over non-partition
  13893. devices in /dev/disk/by-id/, in sorted order. Remove DM-RAID
  13894. seen-devices list, superseded by general code in check_device.
  13895. 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
  13896. * commands/cat.c (options): New variable.
  13897. (grub_cmd_cat): Parse options. If the --dos option is given, print
  13898. DOS-style "\r\n" line endings as simple newlines (Debian bug
  13899. #586358).
  13900. (GRUB_MOD_INIT): Use extcmd.
  13901. (GRUB_MOD_FINI): Likewise.
  13902. * docs/grub.texi (cat): Document --dos.
  13903. 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
  13904. XEN with Linux grub-mkconfig support.
  13905. * conf/common.rmk (grub-mkconfig_SCRIPTS) [linux]: Add 20_linux_xen.
  13906. * util/grub-mkconfig.in: Export GRUB_CMDLINE_XEN and
  13907. GRUB_CMDLINE_XEN_DEFAULT.
  13908. * util/grub.d/20_linux_xen.in: New file.
  13909. 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
  13910. Initialise VGA video on qemu ourselves.
  13911. * boot/i386/qemu/boot.S: Don't call 0xc000.
  13912. * conf/i386-qemu.rmk (kern/i386/qemu/init.c_DEPENDENCIES): New variable.
  13913. (kernel_img_SOURCES): Add kern/i386/qemu/init.c and bus/pci.c.
  13914. (kernel_img_HEADERS): Add pci.h.
  13915. * conf/i386.rmk (pkglib_MODULES) [qemu]: Remove pci.mod.
  13916. * configure.ac: Force unifont on qemu and yeeloong.
  13917. * include/grub/i386/qemu/kernel.h (grub_qemu_init_cirrus): New proto.
  13918. (grub_vga_palette_write): Use correct register.
  13919. * kern/i386/coreboot/init.c (grub_machine_init) [GRUB_MACHINE_QEMU]:
  13920. Call grub_qemu_init_cirrus.
  13921. * kern/i386/qemu/init.c: New file.
  13922. * term/i386/pc/vga_text.c (inc_y): Never read outside the screen.
  13923. * commands/videotest.c (grub_cmd_videotest): Handle double buffering.
  13924. 2010-06-26 Pavel Roskin <proski@gnu.org>
  13925. * util/grub.d/10_linux.in: Add support for initrd images on Fedora
  13926. 13.
  13927. 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
  13928. * docs/grub.texi (Simple configuration): Explain that
  13929. GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY must be
  13930. set to `true' to disable their respective recovery entries, not
  13931. merely set.
  13932. 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
  13933. Make the `source' command slightly faster.
  13934. * normal/main.c (grub_normal_execute): Don't re-read list files when
  13935. nested.
  13936. 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
  13937. * loader/i386/multiboot_mbi.c (retrieve_video_parameters): Set red
  13938. field position and mask size to red fields from mode_info, not
  13939. green.
  13940. * loader/multiboot_mbi2.c (retrieve_video_parameters): Likewise.
  13941. Remove redundant tag->common.framebuffer_type assignment.
  13942. Reported by: Seth Goldberg.
  13943. 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
  13944. Sync up other versions of the Linux loader with Robert Millan's
  13945. change of 2010-01-09, "Make loader output a bit more user-friendly".
  13946. * loader/i386/efi/linux.c (grub_linux_boot): Move debug info to
  13947. grub_dprintf().
  13948. (grub_cmd_linux): Likewise.
  13949. (grub_cmd_initrd): Likewise.
  13950. * loader/i386/ieee1275/linux.c (grub_cmd_linux): Likewise.
  13951. * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
  13952. 2010-06-21 Colin Watson <cjwatson@ubuntu.com>
  13953. * kern/efi/mm.c (grub_efi_mm_init): Handle systems with memory maps
  13954. larger than MEMORY_MAP_SIZE.
  13955. 2010-06-21 BVK Chaitanya <bvk.groups@gmail.com>
  13956. Fix parallel build.
  13957. * conf/common.rmk: Add grub_script.tab.h as a grub-script-check
  13958. dependency.
  13959. * script/parser.y: #include grub_script.tab.h header.
  13960. 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
  13961. Support >3GiB and <16MiB RAM in i386-qemu.
  13962. * kern/i386/qemu/mmap.c (QEMU_CMOS_MEMSIZE2_HIGH): New const.
  13963. (QEMU_CMOS_MEMSIZE2_LOW): Likewise.
  13964. (grub_lower_mem): Removed.
  13965. (grub_upper_mem): Likewise.
  13966. (mem_size): Made static.
  13967. (above_4g): New variable.
  13968. (grub_machine_mmap_init): Detect small mem_size and above_4g.
  13969. (grub_machine_mmap_iterate): Order in ascending order and add above_4g
  13970. support.
  13971. 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
  13972. Cirrus 5446 and Bochs video cards support.
  13973. * conf/i386.rmk (pkglib_MODULES): Add video_cirrus.mod and
  13974. video_bochs.mod
  13975. (video_cirrus_mod_SOURCES): New variable.
  13976. (video_cirrus_mod_CFLAGS): Likewise.
  13977. (video_cirrus_mod_LDFLAGS): Likewise.
  13978. (video_bochs_mod_SOURCES): Likewise.
  13979. (video_bochs_mod_CFLAGS): Likewise.
  13980. (video_bochs_mod_LDFLAGS): Likewise.
  13981. * include/grub/vga.h: New file.
  13982. * include/grub/video_fb.h (grub_video_fb_doublebuf_blit_init): Removed.
  13983. (grub_video_fb_set_page_t): New type.
  13984. (grub_video_fb_setup): New prototype.
  13985. (grub_video_fb_swap_buffers): Likewise.
  13986. (grub_video_fb_get_info_and_fini): Likewise.
  13987. * term/i386/pc/vga_text.c (CRTC_ADDR_PORT): Moved to include/grub/vga.h.
  13988. (CRTC_DATA_PORT): Likewise.
  13989. (CRTC_CURSOR): Likewise.
  13990. (CRTC_CURSOR_ADDR_HIGH): Likewise.
  13991. (CRTC_CURSOR_ADDR_LOW): Likewise.
  13992. (CRTC_CURSOR_DISABLE): Likewise.
  13993. (update_cursor): Use grub_vga_cr_write.
  13994. (grub_vga_text_setcursor): Likewise.
  13995. * video/bochs.c: New file.
  13996. * video/fb/video_fb.c (render_target): Moved into framebuffer variable.
  13997. (palette): Likewise.
  13998. (palette_size): Likewise.
  13999. (framebuffer): New variable.
  14000. (grub_video_fb_init): Use 'framebuffer'.
  14001. (grub_video_fb_fini): Likewise.
  14002. (grub_video_fb_get_info): Likewise.
  14003. (grub_video_fb_get_palette): Likewise.
  14004. (grub_video_fb_set_palette): Likewise.
  14005. (grub_video_fb_set_viewport): Likewise.
  14006. (grub_video_fb_get_viewport): Likewise.
  14007. (grub_video_fb_map_color): Likewise.
  14008. (grub_video_fb_map_rgb): Likewise.
  14009. (grub_video_fb_map_rgba): Likewise.
  14010. (grub_video_fb_unmap_color): Likewise.
  14011. (grub_video_fb_unmap_color_int): Likewise.
  14012. (grub_video_fb_fill_rect): Likewise.
  14013. (grub_video_fb_blit_bitmap): Likewise.
  14014. (grub_video_fb_blit_render_target): Likewise.
  14015. (grub_video_fb_scroll): Likewise.
  14016. (grub_video_fb_create_render_target): Likewise.
  14017. (grub_video_fb_doublebuf_blit_init): Likewise.
  14018. (grub_video_fb_set_active_render_target): Handle doublebuffering.
  14019. (doublebuf_pageflipping_update_screen): New function.
  14020. (doublebuf_pageflipping_init): Likewise.
  14021. (grub_video_fb_setup): Likewise.
  14022. (grub_video_fb_swap_buffers): Likewise.
  14023. (grub_video_fb_get_info_and_fini): Likewise.
  14024. * video/i386/pc/vbe.c (framebuffer): Remove all doublebuffering fields.
  14025. All users updated.
  14026. (doublebuf_pageflipping_commit): Restructured into ...
  14027. (doublebuf_pageflipping_set_page): ... this.
  14028. (doublebuf_pageflipping_update_screen): Removed.
  14029. (doublebuf_pageflipping_init): Likewise.
  14030. (double_buffering_init): Likewise.
  14031. (grub_video_vbe_setup): Use grub_video_fb_setup.
  14032. (grub_video_vbe_swap_buffers): Removed.
  14033. (grub_video_vbe_set_active_render_target): Likewise.
  14034. (grub_video_vbe_get_active_render_target): Likewise.
  14035. (grub_video_vbe_get_info_and_fini): Use grub_video_fb_get_info_and_fini.
  14036. (grub_video_vbe_adapter): Use grub_video_fb_swap_buffers,
  14037. grub_video_fb_set_active_render_target and
  14038. grub_video_fb_get_active_render_target.
  14039. * video/i386/pc/vga.c (SEQUENCER_ADDR_PORT): Move to include/grub/vga.h.
  14040. (SEQUENCER_DATA_PORT): Likewise.
  14041. (MAP_MASK_REGISTER): Likewise.
  14042. (CRTC_ADDR_PORT): Likewise.
  14043. (CRTC_DATA_PORT): Likewise.
  14044. (START_ADDR_HIGH_REGISTER): Likewise.
  14045. (START_ADDR_LOW_REGISTER): Likewise.
  14046. (GRAPHICS_ADDR_PORT): Likewise.
  14047. (GRAPHICS_DATA_PORT): Likewise.
  14048. (READ_MAP_REGISTER): Likewise.
  14049. (INPUT_STATUS1_REGISTER): Likewise.
  14050. (INPUT_STATUS1_VERTR_BIT): Likewise.
  14051. (get_map_mask): Use grub_vga_sr_read.
  14052. (set_map_mask): Use grub_vga_sr_write.
  14053. (set_read_map): Use grub_vga_gr_write.
  14054. (set_start_address): Use grub_vga_cr_write.
  14055. * video/sm712.c (framebuffer): Remove leftover fields.
  14056. 2010-06-20 Colin Watson <cjwatson@ubuntu.com>
  14057. * util/grub-mkconfig.in: Capitalise and export GRUB_PREFIX. Stop
  14058. setting GRUB_VIDEO_BACKEND. Make it available as a user override
  14059. instead. Replace the gfxterm backend check with a check that
  14060. ${GRUB_PREFIX}/video.lst is non-empty.
  14061. * util/grub.d/00_header.in: Use GRUB_PREFIX rather than computing it
  14062. again.
  14063. (load_video): New generated function. Call it before loading
  14064. gfxterm rather than loading ${GRUB_VIDEO_BACKEND}.
  14065. * util/grub.d/10_linux.in (linux_entry): Call load_video.
  14066. * util/grub.d/30_os-prober.in (osx_entry): Likewise.
  14067. * docs/grub.texi (Simple configuration): Document
  14068. GRUB_VIDEO_BACKEND.
  14069. 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
  14070. Use video functions in linux and xnu loaders.
  14071. * conf/i386-pc.rmk (xnu_mod_SOURCES): Remove loader/i386/pc/xnu.c.
  14072. * conf/x86-efi.rmk (xnu_mod_SOURCES): Remove loader/i386/efi/xnu.c.
  14073. * include/grub/i386/xnu.h (grub_xnu_set_video): Removed.
  14074. * loader/i386/efi/linux.c (grub_linux_setup_video): Copied from
  14075. loader/i386/pc/linux.c.
  14076. (grub_linux_boot): Resynced with loader/i386/pc/linux.c.
  14077. (find_line_len): Removed.
  14078. (find_framebuf): Likewise.
  14079. (grub_cmd_linux): Declare grub_linux_boot as possibly returning.
  14080. * loader/i386/efi/xnu.c: Removed.
  14081. * loader/i386/pc/xnu.c: Moved from here...
  14082. * loader/i386/xnu.c: ...here.
  14083. Enable priorities in video drivers.
  14084. * include/grub/video.h (grub_video_adapter_prio_t): New type.
  14085. (grub_video_adapter): New field prio.
  14086. (grub_video_register): Respect prio when inserting.
  14087. * video/efi_gop.c (grub_video_gop_adapter): Add prio.
  14088. * video/efi_uga.c (grub_video_uga_adapter): Likewise.
  14089. * video/emu/sdl.c (grub_video_sdl_adapter): Likewise.
  14090. * video/i386/pc/vbe.c (grub_video_vbe_adapter): Likewise.
  14091. * video/i386/pc/vga.c (grub_video_vga_adapter): Likewise.
  14092. * video/ieee1275.c (grub_video_ieee1275_adapter): Likewise.
  14093. * video/sm712.c (grub_video_sm712_adapter): Likewise.
  14094. Fix SDL driver ID.
  14095. * include/grub/video.h (grub_video_driver_id_t): New value
  14096. GRUB_VIDEO_DRIVER_SDL.
  14097. * video/emu/sdl.c (grub_video_sdl_adapter): Add id.
  14098. 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
  14099. * util/i386/pc/grub-setup.c (usage): Pass an extra `program_name'
  14100. argument to printf.
  14101. * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
  14102. 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
  14103. * util/i386/pc/grub-setup.c (usage): Fix syntax error.
  14104. * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
  14105. 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
  14106. * util/i386/pc/grub-setup.c (usage): Warn against running grub-setup
  14107. directly, and recommend grub-install instead.
  14108. * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
  14109. 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
  14110. Fix i386-pc prefix handling with nested partitions (Debian bug
  14111. #585068). Note that the case where the core image is booted using
  14112. multiboot and relocated from its original location still requires
  14113. more work.
  14114. * kern/i386/pc/init.c (make_install_device): If the prefix starts
  14115. with "(,", fill the boot drive in between those two characters, but
  14116. expect that a full partition specification including partition map
  14117. names will follow.
  14118. * util/i386/pc/grub-setup.c (setup): Unless an explicit prefix was
  14119. specified, write a prefix without the drive name but including a
  14120. full partition specification.
  14121. 2010-06-16 Colin Watson <cjwatson@ubuntu.com>
  14122. * util/grub-mkconfig.in: Ignore non-option arguments, for
  14123. compatibility with older versions (before 2010-06-12) which did the
  14124. same. In particular, this makes it easier to ship an update-grub
  14125. wrapper which is compatible with that used with GRUB Legacy (Debian
  14126. bug #586056).
  14127. 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
  14128. * Makefile.in (install-local): Use $$file.h2m instead of $$dest.h2m
  14129. for manual page generation.
  14130. 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
  14131. * po/POTFILES: Remove leftover commands/handler.c.
  14132. 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
  14133. * util/grub-mkconfig.in: Remove vestige of old argument parsing that
  14134. left this script non-functional.
  14135. 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
  14136. * docs/man/grub-emu.h2m: New file.
  14137. 2010-06-13 Colin Watson <cjwatson@ubuntu.com>
  14138. * docs/grub.texi (Commands): Document reduced command set in rescue
  14139. mode.
  14140. (cpuid): New section.
  14141. 2010-06-13 Grégoire Sutre <gregoire.sutre@gmail.com>
  14142. * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Use the
  14143. new partition naming style.
  14144. * util/grub-install.in: Adapt sed subtitutions in grub-probe calls.
  14145. 2010-06-12 BVK Chaitanya <bvk.groups@gmail.com>
  14146. Add "-o grub.iso" like cmdline options support.
  14147. * util/grub-install.in: Improve cmdline option parsing.
  14148. * util/grub-mkconfig.in: Likewise.
  14149. * util/grub-mkrescue.in: Likewise.
  14150. * util/grub-reboot.in: Likewise.
  14151. * util/grub-set-default.in: Likewise.
  14152. * util/i386/efi/grub-install.in: Likewise.
  14153. * util/ieee1275/grub-install.in: Likewise.
  14154. * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
  14155. 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
  14156. * .bzrignore: Ignore 41_custom.
  14157. 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
  14158. * util/grub-mkrescue.in: Pass unrecognized options to xorriso.
  14159. 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
  14160. Avoid false positives in fs.lst, partmap.lst, and video.lst due to
  14161. prototype declarations.
  14162. * genmk.rb (PModule::rule): Define GRUB_LST_GENERATOR when
  14163. generating fs, partmap, and video lists.
  14164. * include/grub/fs.h (grub_fs_register): Omit prototype if
  14165. GRUB_LST_GENERATOR is defined.
  14166. * include/grub/partition.h (grub_partition_map_register): Likewise.
  14167. * include/grub/video.h (grub_video_register): Likewise.
  14168. 2010-06-12 Javier Martín <lordhabbit@gmail.com>
  14169. * include/grub/types.h: Check for GRUB_CPU_SIZEOF_LONG when appropriate.
  14170. 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
  14171. * util/grub-mkrescue.in: Support --xorriso argument.
  14172. 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
  14173. * util/grub-mkrescue.in: Use -graft-points instead of -pathspecs.
  14174. Suggested by: Thomas Schmitt.
  14175. 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
  14176. * util/grub-mkrescue.in: Add --sort-weight arguments to xorriso.
  14177. Suggested by: Thomas Schmitt.
  14178. 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
  14179. custom.cfg support.
  14180. * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
  14181. * util/grub.d/41_custom.in: New file.
  14182. 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
  14183. * util/grub-mkrescue.in (make_image): Remove sh module, which has
  14184. been merged back into normal.
  14185. 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
  14186. * include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ...
  14187. (GRUB_EFI_UGA_BLT_MAX): ... this (typo fix).
  14188. 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
  14189. * Makefile.in (install-local): Include $(srcdir)/docs/man/$$dest.h2m
  14190. when generating manual pages.
  14191. * docs/man/grub-bin2h.h2m: New file.
  14192. * docs/man/grub-editenv.h2m: New file.
  14193. * docs/man/grub-fstest.h2m: New file.
  14194. * docs/man/grub-install.h2m: New file.
  14195. * docs/man/grub-macho2img.h2m: New file.
  14196. * docs/man/grub-mkconfig.h2m: New file.
  14197. * docs/man/grub-mkdevicemap.h2m: New file.
  14198. * docs/man/grub-mkfont.h2m: New file.
  14199. * docs/man/grub-mkimage.h2m: New file.
  14200. * docs/man/grub-mkpasswd-pbkdf2.h2m: New file.
  14201. * docs/man/grub-mkrelpath.h2m: New file.
  14202. * docs/man/grub-mkrescue.h2m: New file.
  14203. * docs/man/grub-ofpathname.h2m: New file.
  14204. * docs/man/grub-pe2elf.h2m: New file.
  14205. * docs/man/grub-probe.h2m: New file.
  14206. * docs/man/grub-reboot.h2m: New file.
  14207. * docs/man/grub-script-check.h2m: New file.
  14208. * docs/man/grub-set-default.h2m: New file.
  14209. * docs/man/grub-setup.h2m: New file.
  14210. 2010-06-10 Vladimir Serbinenko <phcoder@gmail.com>
  14211. Use FOR_* macros instead of *_iterate whenever possible.
  14212. * commands/handler.c: Removed.
  14213. * commands/help.c (grub_cmd_help): Use FOR_COMMANDS.
  14214. * commands/minicmd.c (grub_mini_cmd_lsmod): Use FOR_DL_MODULES.
  14215. * conf/any-emu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
  14216. * conf/common.rmk (script/lexer.c_DEPENDENCIES): Add grub_script.yy.h.
  14217. (grub_probe_SOURCES): Remove kern/parser.c.
  14218. (util/grub-script-check.c_DEPENDENCIES): Removed.
  14219. (grub_script_check_SOURCES): Remove kern/handler.c, kern/parser.c
  14220. and grub_script_check_init.c.
  14221. (grub_script_check_init.lst): Removed.
  14222. (grub_script_check_init.h): Likewise.
  14223. (grub_script_check_init.c): Likewise.
  14224. (pkglib_MODULES): Remove handler.mod and sh.mod.
  14225. (handler_mod_SOURCES): Removed.
  14226. (handler_mod_CFLAGS): Likewise.
  14227. (handler_mod_LDFLAGS): Likewise.
  14228. (normal_mod_SOURCES): Remove normal/handler.c.
  14229. Add script/main.c, script/script.c, script/execute.c,
  14230. script/function.c, script/lexer.c, grub_script.tab.c
  14231. and grub_script.yy.c.
  14232. * conf/i386-coreboot.rmk (kernel_img_SOURCES): Remove kern/handler.c.
  14233. * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
  14234. * conf/i386-pc.rmk (kernel_img_SOURCES): Likewise.
  14235. (grub_setup_SOURCES): Remove kern/parser.c.
  14236. * conf/i386-qemu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
  14237. * conf/mips-qemu-mips.rmk (kernel_img_SOURCES): Likewise.
  14238. * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
  14239. * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Likewise.
  14240. * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
  14241. (grub_setup_SOURCES): Remove kern/parser.c.
  14242. * conf/x86-efi.rmk (kernel_img_SOURCES): Remove kern/handler.c.
  14243. * gettext/gettext.c (grub_gettext_delete_list): Don't use grub_list_pop.
  14244. * include/grub/command.h (grub_command_iterate): Removed.
  14245. (FOR_COMMANDS): New macro.
  14246. * include/grub/dl.h (grub_dl): New member next.
  14247. (grub_dl_iterate): Removed.
  14248. (grub_dl_head): New variable declaration.
  14249. (FOR_DL_MODULES): New macro.
  14250. * include/grub/fs.h: Include list.h.
  14251. (grub_fs): Make next first element.
  14252. (grub_fs_list): New variable declaration.
  14253. (grub_fs_register): Make inline.
  14254. (grub_fs_unregister): Likewise.
  14255. (grub_fs_iterate): Removed.
  14256. (FOR_FILESYSTEMS): New macro.
  14257. * include/grub/handler.h: Removed.
  14258. * include/grub/list.h (grub_list_hook_t): Removed.
  14259. (grub_list_test_t): Likewise.
  14260. (grub_list_pop): Likewise.
  14261. (grub_list_iterate): Likewise.
  14262. (grub_list_insert): Likewise.
  14263. (FOR_LIST_ELEMENTS): New macro.
  14264. * include/grub/parser.h (grub_parser_class): Removed.
  14265. (grub_parser_register): Likewise.
  14266. (grub_parser_unregister): Likewise.
  14267. (grub_parser_get_current): Likewise.
  14268. (grub_parser_set_current): Likewise.
  14269. (grub_register_rescue_parser): Likewise.
  14270. (grub_rescue_parse_line): New function.
  14271. * include/grub/partition.h (FOR_PARTITION_MAPS): Use FOR_LIST_ELEMENTS.
  14272. * include/grub/script_sh.h (grub_script_function_list): New variable
  14273. declaration.
  14274. (FOR_SCRIPT_FUNCTIONS): New macro.
  14275. (grub_script_function_iterate): Removed.
  14276. (grub_normal_parse_line): New prototype.
  14277. * include/grub/term.h (FOR_ACTIVE_TERM_INPUTS): Use FOR_LIST_ELEMENTS.
  14278. (FOR_DISABLED_TERM_INPUTS): Likewise.
  14279. (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
  14280. (FOR_DISABLED_TERM_OUTPUTS): Likewise.
  14281. * include/grub/video.h (grub_video_adapter): Move 'next' to first
  14282. element.
  14283. (grub_video_register): Inline.
  14284. (grub_video_unregister): Likewise.
  14285. (grub_video_adapter_list): New variable declaration.
  14286. (grub_video_iterate): Removed.
  14287. (FOR_VIDEO_ADAPTERS): New macro.
  14288. * kern/dl.c (grub_dl_list): Removed. All users updated.
  14289. (grub_dl_iterate): Removed.
  14290. * kern/fs.c (grub_fs_list): Make global.
  14291. (grub_fs_register): Removed.
  14292. (grub_fs_unregister): Likewise.
  14293. (grub_fs_iterate): Likewise.
  14294. * kern/handler.c: Removed.
  14295. * kern/list.c (grub_list_pop): Removed.
  14296. (grub_list_iterate): Likewise.
  14297. (grub_list_insert): Likewise.
  14298. (grub_named_list_find): Use FOR_LIST_ELEMENTS.
  14299. (grub_prio_list_insert): Don't use grub_list_insert.
  14300. * kern/main.c (grub_register_rescue_parser): Don't call
  14301. grub_register_rescue_parser.
  14302. * kern/parser.c (grub_parser_class): Removed.
  14303. (grub_parser_execute): Use grub_rescue_parse_line.
  14304. * kern/rescue_parser.c (grub_rescue_parse_line): Make global.
  14305. (grub_rescue_parser): Removed.
  14306. (grub_register_rescue_parser): Likewise.
  14307. * kern/rescue_reader.c (grub_rescue_run): Use grub_rescue_parse_line.
  14308. * normal/auth.c (is_authenticated): Use FOR_LIST_ELEMENTS.
  14309. (grub_auth_check_authentication): Likewise.
  14310. * normal/completion.c (iterate_command): Removed.
  14311. (grub_normal_do_completion): Use FOR_COMMANDS.
  14312. * normal/handler.c: Removed.
  14313. * normal/main.c (read_config_file): Remove parser changing.
  14314. (grub_normal_execute): Don't call read_handler_list.
  14315. (grub_normal_read_line_real): Statically allocate prompt.
  14316. (grub_cmdline_run): Use grub_normal_parse_line.
  14317. (GRUB_MOD_FINI): Don't call free_handler_list.
  14318. * normal/menu_entry.c (run): Likewise.
  14319. * script/function.c (grub_script_function_list): Make global.
  14320. (grub_script_function_iterate): Removed.
  14321. * script/main.c (grub_normal_parse_line): Make global.
  14322. (grub_sh_parser): Removed.
  14323. (GRUB_MOD_INIT): Likewise.
  14324. (GRUB_MOD_FINI): Likewise.
  14325. * tests/lib/functional_test.c (grub_functional_test): Use
  14326. FOR_LIST_ELEMENTS.
  14327. * tests/lib/test.c (free_failures): Don't use grub_list_pop.
  14328. (grub_test_run): Use FOR_LIST_ELEMENTS.
  14329. * tests/lib/unit_test.c (main): Likewise.
  14330. * util/deviceiter.c (grub_util_iterate_devices): Don't use
  14331. grub_list_pop.
  14332. * util/grub-fstest.c (grub_term_input_class): Removed.
  14333. (grub_term_output_class): Likewise.
  14334. * util/grub-probe.c: Likewise.
  14335. * util/i386/pc/grub-setup.c: Likewise.
  14336. * util/sparc64/ieee1275/grub-setup.c: Likewise.
  14337. * util/grub-script-check.c (main): Don't call grub_init_all and
  14338. grub_fini_all.
  14339. * video/video.c (grub_video_adapter_list): Make global.
  14340. (grub_video_register): Removed.
  14341. (grub_video_unregister): Likewise.
  14342. (grub_video_iterate): Likewise.
  14343. 2010-06-09 Vladimir Serbinenko <phcoder@gmail.com>
  14344. * docs/grub.texi (Vendor power-on button): Add Asus EeePC 1005PE as
  14345. reported by Henrique Ferreiro.
  14346. 2010-06-09 Robert Millan <rmh@gnu.org>
  14347. * util/grub.d/10_linux.in: Prefer compressed images over non-compressed
  14348. ones, when both are available.
  14349. 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
  14350. Make --version uniform and avoid hard-coded program name.
  14351. * util/grub-mkimage.c (main): Use `program_name' instead of
  14352. hard-coded string.
  14353. * util/i386/pc/grub-setup.c (main): Likewise.
  14354. * util/sparc64/ieee1275/grub-setup.c (parse_options): Likewise.
  14355. * util/grub-install.in: Save the basename of $0 in $self, and use the
  14356. latter in informational messages. Use the same format for --version
  14357. as the binary programs.
  14358. * util/grub-mkconfig.in: Likewise.
  14359. * util/grub-mkrescue.in: Likewise.
  14360. * util/grub-reboot.in: Likewise.
  14361. * util/grub-set-default.in: Likewise.
  14362. * util/i386/efi/grub-install.in: Likewise.
  14363. * util/ieee1275/grub-install.in: Likewise.
  14364. * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
  14365. 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
  14366. * util/i386/pc/grub-setup.c (setup): Use absolute offsets for start of
  14367. embedding area. Use <= instead of == when checking for non-emptiness.
  14368. 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
  14369. * configure.ac: Add `.' to the directories searched for unifont.
  14370. 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
  14371. * .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and
  14372. grub_script.yy.h.
  14373. 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
  14374. * docs/grub.texi (History): Expand to cover GRUB 2.
  14375. (Serial terminal): Refer to `terminal_input' and `terminal_output'
  14376. commands, not `terminal'.
  14377. (serial): Likewise.
  14378. (terminal_input): New section.
  14379. (terminal_output): New section.
  14380. (uppermem): New section (stub).
  14381. (Obtaining and Building GRUB): Refer to Bazaar, not Subversion.
  14382. 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
  14383. * docs/grub.texi (Security): Menu entries are unrestricted by
  14384. default, not restricted to superusers as I had previously thought.
  14385. Reword to account for this.
  14386. 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
  14387. * kern/emu/misc.c (device_mapper_null_log): New function.
  14388. (grub_device_mapper_supported): New function.
  14389. * include/grub/emu/misc.h (grub_device_mapper_supported): Add
  14390. prototype.
  14391. * kern/emu/hostdisk.c (find_partition_start): Check whether
  14392. device-mapper is supported before trying to use it.
  14393. * util/deviceiter.c (grub_util_iterate_devices): Likewise.
  14394. 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
  14395. * docs/grub.texi (Naming convention): Use GRUB 2 syntax.
  14396. (File name syntax): Likewise.
  14397. (help): --all is no longer supported in GRUB 2. Be more precise
  14398. about pattern matching.
  14399. 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
  14400. * normal/completion.c (grub_normal_do_completion): When completing
  14401. arguments to "set" and the current word contains an equals sign,
  14402. skip to after the equals sign before starting completion.
  14403. 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
  14404. * fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.
  14405. 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
  14406. * docs/grub.texi (Network): New section.
  14407. (Device syntax): The network device is called `(pxe)' in GRUB 2, not
  14408. `(nd)' as in GRUB Legacy.
  14409. (pxe_unload): New section.
  14410. 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
  14411. * docs/grub.texi (Troubleshooting): `echo' is not usually available
  14412. in the rescue shell, so recommend using `set' instead. Thanks,
  14413. Jordan Uggla.
  14414. 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
  14415. * docs/grub.texi (Filesystem): Refer to `search' instead of `find'.
  14416. (password): New section.
  14417. (password_pbkdf2): New section.
  14418. (search): New section.
  14419. (Security): New section.
  14420. (Troubleshooting): New section, currently very incomplete.
  14421. (Invoking grub-mkpasswd-pbkdf2): New section.
  14422. (Internals): New section, currently very incomplete.
  14423. 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
  14424. * util/grub.d/00_header.in: Add some more quoting (of
  14425. "${prev_saved_entry}" and "${boot_once}") needed to make savedefault
  14426. work again.
  14427. Reported by: Mario 'BitKoenig' Holbe (Debian bug #584812).
  14428. 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
  14429. * util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable
  14430. to `count', fixing variable shadowing that broke the -c option.
  14431. 2010-06-05 Colin Watson <cjwatson@ubuntu.com>
  14432. * util/grub.d/00_header.in: Quote values assigned to `saved_entry',
  14433. in case they contain spaces.
  14434. 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
  14435. * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Prepend
  14436. "part_" to partmap module names, in line with grub-install.
  14437. Reported by: Jindřich Makovička (Debian bug #584426).
  14438. 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
  14439. * util/grub-mkimage.c: Make target-related error messages slightly
  14440. more helpful; -O talks about "format". Explicitly point to the use
  14441. of -O if no target is specified.
  14442. Reported by: Didier Raboud (Debian bug #584415).
  14443. 2010-06-03 Colin Watson <cjwatson@ubuntu.com>
  14444. * INSTALL: Document several build requirements for optional features
  14445. (libdevmapper, ncurses, libusb, SDL, FreeType, GNU Unifont).
  14446. 2010-06-02 Grégoire Sutre <gregoire.sutre@gmail.com>
  14447. * kern/emu/hostdisk.c (convert_system_partition_to_system_disk)
  14448. [__NetBSD__]: Handle all device names matching /dev/r[a-z]+[0-9][a-z].
  14449. (find_partition_start) [__NetBSD__]: Correct error messages for NetBSD.
  14450. 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
  14451. * docs/grub.texi (Simple configuration): Fix copy-and-paste typo.
  14452. Thanks to Jordan Uggla for spotting this.
  14453. 2010-06-02 Aleš Nesrsta <starous@volny.cz>
  14454. Finally make USB usable.
  14455. * bus/usb/ohci.c (grub_ohci_reg_t): Add missing values.
  14456. (GRUB_OHCI_RHUB_PORT_POWER_MASK): New macro.
  14457. (GRUB_OHCI_RHUB_PORT_ALL_POWERED): Likewise.
  14458. (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_MASK): Likewise.
  14459. (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_SHIFT): Likewise.
  14460. (GRUB_OHCI_REG_FRAME_INTERVAL_FI_SHIFT): Likewise.
  14461. (GRUB_OHCI_FSMPS): Likewise.
  14462. (GRUB_OHCI_PERIODIC_START): Likewise.
  14463. (GRUB_OHCI_FRAME_INTERVAL): Likewise.
  14464. (GRUB_OHCI_SET_PORT_ENABLE): Likewise.
  14465. (GRUB_OHCI_CLEAR_PORT_ENABLE): Likewise.
  14466. (GRUB_OHCI_SET_PORT_RESET): Likewise.
  14467. (GRUB_OHCI_SET_PORT_RESET_STATUS_CHANGE): Likewise.
  14468. * bus/usb/ohci.c (grub_ohci_pci_iter): Various important fixups.
  14469. (grub_ohci_transaction): Likewise.
  14470. (grub_ohci_transfer): Improve condition detection algorithms.
  14471. Handle toggle property. Program the transactions correctly.
  14472. Improve error handling. Various important fixups.
  14473. (grub_ohci_portstatus): Put register writes in right order.
  14474. * bus/usb/uhci.c (grub_free_queue): Compute last_trans.
  14475. (grub_uhci_transfer): Don't show "failed" message on success.
  14476. * bus/usb/usb.c (grub_usb_set_configuration): Zero-fill whole "toggle"
  14477. array.
  14478. (grub_usb_device_initialize): Read first 8 bytes of descriptor to
  14479. determine its size.
  14480. * bus/usb/usbtrans.c (grub_usb_control_msg): Use descdev.maxsize0 even
  14481. before initialization is completed. Use IN direction for empty
  14482. transfers. Use last_trans and compute toggle.
  14483. * include/grub/usbtrans.h (grub_usb_transfer): New field last_trans.
  14484. (GRUB_USB_FEATURE_ENDP_HALT): Correct the value.
  14485. (GRUB_USB_FEATURE_DEV_REMOTE_WU): Likewise.
  14486. (GRUB_USB_FEATURE_TEST_MODE): Likewise.
  14487. * include/grub/usb.h (grub_usb_err_t): New value GRUB_USB_ERR_UNRECOVERABLE.
  14488. (grub_usb_device): Increase toggle to 256.
  14489. (grub_usbms_subclass_t): New values GRUB_USBMS_SUBCLASS_RBC,
  14490. GRUB_USBMS_SUBCLASS_MMC2, GRUB_USBMS_SUBCLASS_UFI and
  14491. GRUB_USBMS_SUBCLASS_SFF8070.
  14492. * include/grub/scsicmd.h (grub_scsi_test_unit_ready): New structure.
  14493. (grub_scsi_inquiry): New member page and alloc_length.
  14494. (grub_scsi_request_sense): New structure.
  14495. (grub_scsi_request_sense_data): Likewise.
  14496. (grub_scsi_read_capacity): New fields logical_block_addr, PMI and
  14497. control.
  14498. * disk/scsi.c (grub_scsi_request_sense): New function.
  14499. (grub_scsi_test_unit_ready): Likewise.
  14500. (grub_scsi_inquiry): Fill new fields.
  14501. (grub_scsi_read_capacity): Likewise.
  14502. (grub_scsi_read10): Add request sense at the end.
  14503. (grub_scsi_read12): Likewise.
  14504. (grub_scsi_write10): Likewise.
  14505. (grub_scsi_write12): Likewise.
  14506. (grub_scsi_open): Add Test Unit Ready.
  14507. * disk/usbms.c (grub_usbms_finddevs): Check configcnt.
  14508. Support additional subclasses. Con't clear halt yet. Activate the
  14509. proper config. Calculate LUNs correctly.
  14510. (grub_usbms_transfer): Various important fixups.
  14511. 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
  14512. * bus/pci.c (grub_pci_iterate) [GRUB_MACHINE_MIPS_YEELOONG]: Skip ghosts.
  14513. * bus/usb/ohci.c (grub_ohci_portstatus): Handle R/WC correctly.
  14514. (grub_ohci_fini_hw): New function.
  14515. (grub_ohci_restore_hw): Likewise.
  14516. (GRUB_MOD_INIT(ohci)): Register preboot hook.
  14517. (GRUB_MOD_FINI(ohci)): Shutdown OHCI.
  14518. * term/usb_keyboard.c: Remove include of grub/machine/console.h.
  14519. 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
  14520. Dedicated DMA allocations.
  14521. * bus/pci.c (grub_memalign_dma32): New function
  14522. (grub_dma_free): Likewise.
  14523. (grub_dma_get_virt): Likewise.
  14524. (grub_dma_get_phys): Likewise.
  14525. * bus/usb/ohci.c (grub_ohci): New members hcca_addr and hcca_chunk.
  14526. (grub_ohci_pci_iter): Use dma32_alloc.
  14527. (grub_ohci_transfer): Likewise.
  14528. * bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
  14529. (grub_usb_bulk_readwrite): Likewise.
  14530. * include/grub/pci.h: Add declarations.
  14531. 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
  14532. CS5536 support.
  14533. * bus/cs5536.c: New file.
  14534. * bus/usb/ohci.c (grub_ohci_pci_iter): Check for CS5536.
  14535. * conf/i386.rmk (pkglib_MODULES): Add cs5536.mod.
  14536. (cs5536_mod_SOURCES): New variable.
  14537. (cs5536_mod_CFLAGS): Likewise.
  14538. (cs5536_mod_LDFLAGS): Likewise.
  14539. * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add cs5536.h and
  14540. machine/pci.h.
  14541. (kernel_img_SOURCES): Add bus/cs5536.c.
  14542. (pkglib_MODULES): Add usb.mod, usbtest.mod, ohci.mod, usbms.mod and
  14543. usb_keyboard.mod.
  14544. (usb_mod_SOURCES): New variable.
  14545. (usb_mod_CFLAGS): New variable.
  14546. (usb_mod_LDFLAGS): New variable.
  14547. (usbtest_mod_SOURCES): New variable.
  14548. (usbtest_mod_CFLAGS): New variable.
  14549. (usbtest_mod_LDFLAGS): New variable.
  14550. (ohci_mod_SOURCES): New variable.
  14551. (ohci_mod_CFLAGS): New variable.
  14552. (ohci_mod_LDFLAGS): New variable.
  14553. (usbms_mod_SOURCES): New variable.
  14554. (usbms_mod_CFLAGS): New variable.
  14555. (usbms_mod_LDFLAGS): New variable.
  14556. (usb_keyboard_mod_SOURCES): New variable.
  14557. (usb_keyboard_mod_CFLAGS): New variable.
  14558. (usb_keyboard_mod_LDFLAGS): New variable.
  14559. * include/grub/smbus.h: New file.
  14560. * include/grub/cs5536.h: New file.
  14561. 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
  14562. * util/grub.d/00_header.in: Add safety check to make sure that
  14563. ${locale_dir} exists before trying to probe it.
  14564. 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
  14565. * docs/grub.texi (SCO UnixWare): Remove, at Vladimir's request and
  14566. per the GNU Coding Standards; this is now too obscure to be worth
  14567. documenting.
  14568. (QNX): Likewise.
  14569. (chainloader): Remove cross-reference to `SCO UnixWare'.
  14570. 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
  14571. * docs/grub.texi (Chain-loading): New section.
  14572. (DOS/Windows): New section, borrowed from GRUB Legacy with details
  14573. adjusted for GRUB 2.
  14574. (SCO UnixWare): Likewise.
  14575. (QNX): Likewise.
  14576. (chainloader): Add reference to `Block list syntax'.
  14577. (drivemap): New section.
  14578. (parttool): New section.
  14579. 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
  14580. * docs/grub.texi (GNU GRUB manual): Remove reference to `Invoking
  14581. the grub shell'.
  14582. (Installation): Add reference to `Making a GRUB bootable CD-ROM'.
  14583. (Installing GRUB using grub-install): Remove reference to the grub
  14584. shell; mention `grub-mkimage' and `grub-setup' instead.
  14585. (Invoking grub-install): Likewise.
  14586. (Interface): Add reference to `Menu entry editor'.
  14587. (serial): Remove `--device' option.
  14588. 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
  14589. * docs/grub.texi (Configuration): New section, documenting
  14590. configuration file generation using grub-mkconfig. I've left a slot
  14591. for documenting the full shell scripting format but have not yet
  14592. started on writing that up.
  14593. (Invoking grub-mkconfig): New section.
  14594. 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
  14595. * docs/grub.texi (direntry): Remove grub-terminfo reference.
  14596. (GNU GRUB manual): Likewise.
  14597. (General commands): Update description of `terminfo' for GRUB 2.
  14598. 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
  14599. * commands/gptsync.c (grub_cmd_gptsync): Fix typos.
  14600. (GRUB_MOD_INIT): Fix capitalisation.
  14601. * docs/grub.texi (Command-line and menu entry commands): Document
  14602. gettext and gptsync commands.
  14603. 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
  14604. * conf/any-emu.rmk (kernel_img_SOURCES) [!x86]: Include
  14605. kern/$(target_cpu)/cache.S even if TARGET_NO_MODULES = yes.
  14606. 2010-06-01 Colin Watson <cjwatson@ubuntu.com>
  14607. Add btrfs probing support, currently only in the single-device case.
  14608. * kern/emu/getroot.c (find_root_device_from_mountinfo): New
  14609. function.
  14610. (grub_guess_root_device): Call find_root_device_from_mountinfo
  14611. before looking in /dev.
  14612. 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
  14613. * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use
  14614. GRUB_DISK_SIZE_UNKNOWN.
  14615. * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Likewise.
  14616. 2010-05-31 Jiro SEKIBA <jir@unicus.jp>
  14617. * include/grub/disk.h (GRUB_DISK_SIZE_UNKNOWN): New macro.
  14618. * fs/nilfs.c: Support 2nd super block in case 1st one is accidently
  14619. corrupted or not synced properly.
  14620. 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
  14621. * normal/main.c (grub_normal_add_menu_entry): Avoid going out of args.
  14622. Reported by: Seth Goldberg.
  14623. 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
  14624. * loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix incorrect
  14625. addition of dest.
  14626. Reported by: Seth Goldberg.
  14627. 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
  14628. * commands/setpci.c (grub_setpci_iter): Fix an incorrect function check.
  14629. Reported by: Seth Goldberg.
  14630. 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
  14631. * loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check
  14632. 64-bit address as signed on MIPS.
  14633. 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
  14634. * configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not
  14635. to the empty string.
  14636. 2010-05-28 BVK Chaitanya <bvk.groups@gmail.com>
  14637. Fix grub-emu issues on NetBSD, with gcc 4.1.3.
  14638. * conf/any-emu.rmk: Remove unnecessary COMMON_CFLAGS.
  14639. * include/grub/emu/misc.h (canonicalize_file_name): New Prototype.
  14640. * kern/misc.c (__enable_execute_stack): Disable on
  14641. GRUB_MACHINE_EMU.
  14642. 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
  14643. Make grub-probe work with symbolic links under /dev/mapper as well
  14644. as with real block devices. The Linux world seems to be (at best)
  14645. in transition here, and GRUB shouldn't get caught in the middle.
  14646. * kern/emu/getroot.c (find_root_device): Follow symbolic links under
  14647. /dev/mapper.
  14648. 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
  14649. * util/grub-script-check.c (main): Ensure defined behaviour on empty
  14650. input files (in which case exit zero).
  14651. 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
  14652. * kern/emu/misc.c (canonicalize_file_name): realpath can still
  14653. return NULL for various reasons even if it has a maximum-length
  14654. buffer: for example, there might be a symlink loop, or the path
  14655. might exceed PATH_MAX. If this happens, return NULL.
  14656. 2010-05-27 Robert Millan <rmh@gnu.org>
  14657. * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Insert
  14658. partmap module to handle cross-partmap setups.
  14659. Reported by Orestes Mas. Gràcies!
  14660. 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
  14661. * util/grub-mkrescue.in: Initialise override_dir rather than
  14662. assuming that it's unset or empty in the environment.
  14663. 2010-05-26 Grégoire Sutre <gregoire.sutre@gmail.com>
  14664. * kern/emu/hostdisk.c (find_partition_start) [__NetBSD__]: Renamed
  14665. variable index into p_index to suppress a warning with -Wshadow.
  14666. 2010-05-25 BVK Chaitanya <bvk.groups@gmail.com>
  14667. * INSTALL: Added flex >= 2.5.35 requirement.
  14668. 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
  14669. * commands/usbtest.c (grub_usb_get_string): Properly support UTF-16.
  14670. 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
  14671. cmostest support.
  14672. * commands/i386/cmostest.c: New file.
  14673. * conf/i386-coreboot.rmk (pkglib_MODULES): Add cmostest.mod.
  14674. (cmostest_mod_SOURCES): New variable.
  14675. (cmostest_mod_CFLAGS): Likewise.
  14676. (cmostest_mod_LDFLAGS): Likewise.
  14677. * conf/i386-pc.rmk: Likewise.
  14678. * docs/grub.texi (Vendor power-on keys): New section.
  14679. * util/grub-mkconfig.in: export GRUB_DEFAULT_BUTTON,
  14680. GRUB_HIDDEN_TIMEOUT_BUTTON, GRUB_TIMEOUT_BUTTON
  14681. and GRUB_BUTTON_CMOS_ADDRESS.
  14682. * util/grub.d/00_header.in: Handle powering-on by separate button.
  14683. 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
  14684. * gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding.
  14685. Removed drawing_scrollbar argument. All users updated
  14686. Fixes #29792.
  14687. Reported by Jo Shields
  14688. 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
  14689. * gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current
  14690. buffer since gfxterm handles double repaint.
  14691. 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
  14692. * gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers.
  14693. * term/gfxterm.c (real_scroll): Likewise.
  14694. 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
  14695. * kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry
  14696. before calling BIOS.
  14697. 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
  14698. * include/grub/i18n.h: Always enable grub_gettext.
  14699. 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
  14700. * kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old
  14701. partition naming style.
  14702. 2010-05-21 Colin Watson <cjwatson@ubuntu.com>
  14703. * util/grub-mkconfig.in: Fix handling of -o so that it works when
  14704. not the first option.
  14705. 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
  14706. * util/grub-mkrelpath.c (usage): Remove excess apostrophe.
  14707. 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
  14708. * util/misc.c: Move inclusion of <limits.h> to ...
  14709. * kern/emu/misc.c: ... here. Needed for canonicalize_file_name.
  14710. 2010-05-20 Grégoire Sutre <gregoire.sutre@gmail.com>
  14711. * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev) [__NetBSD__]:
  14712. Fix merge error in NetBSD code.
  14713. (find_partition_start) [__NetBSD__]: Likewise.
  14714. 2010-05-19 BVK Chaitanya <bvk.groups@gmail.com>
  14715. Fix grub-mkrescue usage unit testing.
  14716. * tests/util/grub-shell.in: Use --grub-mkimage with grub-mkrescue.
  14717. 2010-05-18 Christian Franke <franke@computer.org>
  14718. * util/grub.d/10_windows.in: Use path names instead of
  14719. drive letters to prevent warning from Cygwin 1.7.
  14720. Add drivemap command to menuentry if needed.
  14721. 2010-05-18 Justus Winter <4winter@informatik.uni-hamburg.de>
  14722. * util/grub.d/10_hurd.in: Include all gnumach* kernels, not only
  14723. gnumach and gnumach.gz.
  14724. 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
  14725. * include/grub/i18n.h (gettext): Inline instead of using #define.
  14726. (grub_gettext): Likewise.
  14727. (_): Likewise.
  14728. 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
  14729. * Makefile.in (CPPFLAGS): Replace -DGRUB_LIBDIR with
  14730. -DGRUB_PKGLIBROOTDIR= and prepend @PACKAGE_TARNAME@. All users updated.
  14731. * util/grub-mkimage.c (image_targets): Add i386-multiboot.
  14732. (main): Add a slash after pkglibdirroot.
  14733. 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
  14734. * util/grub-install.in: Add missing "in" keyword.
  14735. 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
  14736. * util/grub-mkrescue.in: Remove -O i386-pc duplication.
  14737. Reported by: Seth Goldberg.
  14738. 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
  14739. * po/POTFILES: Rename util/grub-mkrawimage.c to util/grub-mkimage.c.
  14740. 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
  14741. * configure.ac: Check for Linux device-mapper support.
  14742. * util/hostdisk.c (device_is_mapped): New function.
  14743. (find_partition_start): New function, partly broken out from
  14744. linux_find_partition and grub_util_biosdisk_get_grub_dev but with
  14745. device-mapper support added.
  14746. (linux_find_partition): Use find_partition_start.
  14747. (convert_system_partition_to_system_disk): Add `st' argument.
  14748. Support Linux /dev/mapper/* devices if device-mapper support is
  14749. available; only DM-RAID devices are understood at present.
  14750. (find_system_device): Add `st' argument. Pass it to
  14751. convert_system_partition_to_system_disk.
  14752. (grub_util_biosdisk_get_grub_dev): Pass stat result to
  14753. find_system_device and convert_system_partition_to_system_disk. Use
  14754. find_partition_start.
  14755. * conf/common.rmk (grub_mkdevicemap_SOURCES): Add kern/env.c,
  14756. kern/err.c, kern/list.c, kern/misc.c, and kern/emu/mm.c.
  14757. * util/deviceiter.c [__linux__]: Define MINOR.
  14758. (grub_util_iterate_devices): Add support for DM-RAID disk devices.
  14759. * util/mkdevicemap.c (grub_putchar): New function.
  14760. (grub_getkey): New function.
  14761. (grub_refresh): New function.
  14762. (main): Set debug=all if -v -v is used.
  14763. 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
  14764. Fix build with non-GNU libcs.
  14765. * util/misc.c (canonicalize_file_name): Move to ...
  14766. * kern/emu/misc.c (canonicalize_file_name): ... here. Needed by
  14767. grub_make_system_path_relative_to_its_root.
  14768. 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
  14769. * util/grub-mkrescue.in: Sync up with grub-install in terms of how
  14770. we handle finding grub-mkimage. Default to finding grub-mkimage in
  14771. ${bindir} with program_transform_name applied, and provide a
  14772. --grub-mkimage option to override this.
  14773. 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
  14774. Remove grub-mkisofs.
  14775. * conf/common.rmk (bin_UTILITIES): Remove grub-mkisofs.
  14776. (grub_mkisofs_SOURCES): Removed.
  14777. (grub_mkisofs_CFLAGS): Removed.
  14778. * util/mkisofs/defaults.h: Removed.
  14779. * util/mkisofs/eltorito.c: Likewise.
  14780. * util/mkisofs/exclude.h: Likewise.
  14781. * util/mkisofs/hash.c: Likewise.
  14782. * util/mkisofs/include/: Likewise.
  14783. * util/mkisofs/include/fctldefs.h: Likewise.
  14784. * util/mkisofs/include/mconfig.h: Likewise.
  14785. * util/mkisofs/include/prototyp.h: Likewise.
  14786. * util/mkisofs/include/statdefs.h: Likewise.
  14787. * util/mkisofs/iso9660.h: Likewise.
  14788. * util/mkisofs/joliet.c: Likewise.
  14789. * util/mkisofs/match.c: Likewise.
  14790. * util/mkisofs/match.h: Likewise.
  14791. * util/mkisofs/mkisofs.c: Likewise.
  14792. * util/mkisofs/mkisofs.h: Likewise.
  14793. * util/mkisofs/msdos_partition.h: Likewise.
  14794. * util/mkisofs/multi.c: Likewise.
  14795. * util/mkisofs/name.c: Likewise.
  14796. * util/mkisofs/rock.c: Likewise.
  14797. * util/mkisofs/tree.c: Likewise.
  14798. * util/mkisofs/write.c: Likewise.
  14799. 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
  14800. Unify grub-mkimage accross platforms.
  14801. * Makefile.in (CPPFLAGS): Set GRUB_LIBDIR to $(libdir).
  14802. * conf/common.rmk (bin_UTILITIES): Removed grub-mkelfimage.
  14803. (grub_mkelfimage_SOURCES): Removed.
  14804. (util/elf/grub-mkimage.c_DEPENDENCIES): Renamed to ..
  14805. (util/grub-mkimage.c_DEPENDENCIES): .. this.
  14806. (bin_UTILITIES): Add grub-mkimage.
  14807. (grub_mkimage_SOURCES): New variable.
  14808. (kernel_img_HEADERS): Remove machine/kernel.h.
  14809. * conf/i386-pc.rmk (pkglib_IMAGES): Remove kernel.img.
  14810. (pkglib_PROGRAMS): Add kernel.img.
  14811. (kernel_img_HEADERS): Add machine/kernel.h.
  14812. (kernel_img_FORMAT): Removed.
  14813. (bin_UTILITIES): Remove grub-mkimage.
  14814. (grub_mkimage_SOURCES): Removed.
  14815. (grub_mkimage_CFLAGS): Likewise.
  14816. (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
  14817. * conf/i386-qemu.rmk (pkglib_IMAGES): Remove kernel.img.
  14818. (pkglib_PROGRAMS): Add kernel.img.
  14819. (bin_UTILITIES): Remove grub-mkimage.
  14820. (grub_mkimage_SOURCES): Removed.
  14821. (grub_mkimage_CFLAGS): Likewise.
  14822. (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
  14823. * conf/mips-qemu-mips.rmk (pkglib_IMAGES): Remove kernel.img.
  14824. (pkglib_PROGRAMS): Add kernel.img.
  14825. * conf/mips-yeeloong.rmk (pkglib_IMAGES): Remove kernel.img.
  14826. (pkglib_PROGRAMS): Add kernel.img.
  14827. * conf/mips.rmk (bin_UTILITIES): Remove grub-mkimage.
  14828. (grub_mkimage_SOURCES): Removed.
  14829. (grub_mkimage_CFLAGS): Likewise.
  14830. (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
  14831. * conf/sparc64-ieee1275.rmk (pkglib_IMAGES): Remove kernel.img.
  14832. (pkglib_PROGRAMS): Add kernel.img.
  14833. (bin_UTILITIES): Remove grub-mkimage.
  14834. (grub_mkimage_SOURCES): Removed.
  14835. (grub_mkimage_CFLAGS): Likewise.
  14836. (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
  14837. * conf/x86-efi.rmk (bin_UTILITIES): Remove grub-mkimage.
  14838. (grub_mkimage_SOURCES): Removed.
  14839. (grub_mkimage_CFLAGS): Likewise.
  14840. (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
  14841. * configure.ac (machine_CFLAGS): Add "-DMACHINE".
  14842. * include/grub/efi/pe32.h (grub_pe32_optional_header): Split into ...
  14843. (grub_pe32_optional_header): ... this.
  14844. (grub_pe64_optional_header): ... and this. All users updated.
  14845. (GRUB_PE32_PE32_MAGIC): Split into ..
  14846. (GRUB_PE32_PE32_MAGIC): .. this.
  14847. (GRUB_PE32_PE64_MAGIC): .. and this.
  14848. (GRUB_PE32_SIGNATURE_SIZE): New definition.
  14849. * include/grub/elf.h (PT_GNU_STACK): New definition.
  14850. * include/grub/i386/coreboot/kernel.h: Merged into include/grub/offsets.h. All users updated.
  14851. * include/grub/i386/efi/kernel.h: Likewise.
  14852. * include/grub/i386/kernel.h: Likewise.
  14853. * include/grub/i386/pc/kernel.h: Likewise.
  14854. * include/grub/i386/qemu/boot.h: Likewise.
  14855. * include/grub/mips/kernel.h: Likewise.
  14856. * include/grub/mips/qemu-mips/kernel.h: Likewise.
  14857. * include/grub/powerpc/ieee1275/kernel.h: Likewise.
  14858. * include/grub/powerpc/kernel.h: Likewise.
  14859. * include/grub/sparc64/ieee1275/boot.h: Likewise.
  14860. * include/grub/sparc64/ieee1275/kernel.h: Likewise.
  14861. * include/grub/sparc64/kernel.h: Likewise.
  14862. * include/grub/x86_64/efi/kernel.h: Likewise.
  14863. * include/grub/x86_64/kernel.h: Likewise.
  14864. * include/grub/offsets.h: New file.
  14865. * include/grub/kernel.h (grub_module_info): Split into ...
  14866. (grub_module_info32): ... this.
  14867. (grub_module_info64): ... and this.
  14868. * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_KERNEL_SEG): Moved from here ...
  14869. * include/grub/offsets.h (GRUB_BOOT_I386_PC_KERNEL_SEG): ... here.
  14870. (grub_boot_blocklist): Moved from here ...
  14871. * include/grub/offsets.h (grub_pc_bios_boot_blocklist): ... here.
  14872. * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): Moved from here.
  14873. * include/grub/offsets.h (GRUB_MEMORY_I386_PC_UPPER): .. here.
  14874. * include/grub/types.h (grub_target_to_host16): Removed.
  14875. (grub_target_to_host32): Likewise.
  14876. (grub_target_to_host64): Likewise.
  14877. (grub_host_to_target16): Likewise.
  14878. (grub_host_to_target32): Likewise.
  14879. (grub_host_to_target64): Likewise.
  14880. (grub_host_to_target_addr): Likewise.
  14881. Support grub-mkrescue for efi, coreboot and qemu.
  14882. * conf/x86-efi.rmk (bin_SCRIPTS): Add grub-mkrescue.
  14883. * kern/efi/init.c (grub_efi_set_prefix): Handle baked in prefix.
  14884. * util/elf/grub-mkimage.c: Merged into util/grub-mkimage.c.
  14885. * util/grub-mkrawimage.c: Moved from here ...
  14886. * util/grub-mkimage.c: ... here. All users updated.
  14887. (ALIGN_ADDR): Use image_target.
  14888. (TARGET_NO_FIELD): New const.
  14889. (image_target_desc): New type.
  14890. (image_targets): New array.
  14891. (grub_target_to_host64): Use image_target.
  14892. (grub_target_to_host32): Likewise.
  14893. (grub_target_to_host16): Likewise.
  14894. (grub_host_to_target64): Likewise.
  14895. (grub_host_to_target32): Likewise.
  14896. (grub_host_to_target16): Likewise.
  14897. (grub_host_to_target_addr): Likewise.
  14898. (generate_image): Handle multiimage.
  14899. (main): Require -O parameter. All users updated.
  14900. * util/grub-mkimagexx.c: New file. Based on util/grub-mkrawimage.c and
  14901. util/efi/grub-mkimage.c
  14902. * util/grub-mkrescue.in: Handle coreboot, efi and qemu.
  14903. New option --rom-directory.
  14904. Use xorriso.
  14905. * util/i386/efi/grub-mkimage.c: Removed.
  14906. * util/i386/pc/grub-setup.c (grub_target_to_host16): New definition.
  14907. (grub_target_to_host32): Likewise.
  14908. (grub_target_to_host64): Likewise.
  14909. (grub_host_to_target16): Likewise.
  14910. (grub_host_to_target32): Likewise.
  14911. (grub_host_to_target64): Likewise.
  14912. * util/sparc64/ieee1275/grub-setup.c (grub_target_to_host16): New definition.
  14913. (grub_target_to_host32): Likewise.
  14914. (grub_target_to_host64): Likewise.
  14915. (grub_host_to_target16): Likewise.
  14916. (grub_host_to_target32): Likewise.
  14917. (grub_host_to_target64): Likewise.
  14918. 2010-05-17 BVK Chaitanya <bvk.groups@gmail.com>
  14919. Source tree is reorganized for emu build.
  14920. * include/grub/util/console.h: Move from here...
  14921. * include/grub/emu/console.h: ...to here.
  14922. * include/grub/util/getroot.h: Move from here...
  14923. * include/grub/emu/getroot.h: ...to here.
  14924. * include/grub/util/hostdisk.h: Move from here...
  14925. * include/grub/emu/hostdisk.h: ...to here.
  14926. * util/console.c: Move from here...
  14927. * kern/emu/console.c: ...to here.
  14928. * util/getroot.c: Move from here...
  14929. * kern/emu/getroot.c: ...to here.
  14930. * util/grub-emu.c: Move from here...
  14931. * kern/emu/main.c: ...to here.
  14932. * util/hostdisk.c: Move from here...
  14933. * kern/emu/hostdisk.c: ...to here.
  14934. * util/hostfs.c: Move from here...
  14935. * kern/emu/hostfs.c: ...to here.
  14936. * util/mm.c: Move from here...
  14937. * kern/emu/mm.c: ...to here.
  14938. * util/pci.c: Move from here...
  14939. * bus/emu/pci.c: ...to here.
  14940. * util/sdl.c: Move from here...
  14941. * video/emu/sdl.c: ...to here.
  14942. * util/time.c: Move from here...
  14943. * kern/emu/time.c: ...to here.
  14944. * util/usb.c: Move from here...
  14945. * bus/usb/emu/usb.c: ...to here.
  14946. * include/grub/emu/misc.h: New header for grub-emu functions.
  14947. * kern/emu/misc.c: grub-emu functions separated from util/misc.c
  14948. * conf/any-emu.rmk: Rule updates for above renames.
  14949. * conf/common.rmk: Likewise.
  14950. * conf/i386-pc.rmk: Likewise.
  14951. * conf/i386-qemu.rmk: Likewise.
  14952. * conf/mips.rmk: Likewise.
  14953. * conf/sparc64-ieee1275.rmk: Likewise.
  14954. * conf/x86-efi.rmk: Likewise.
  14955. * disk/lvm.h: #include updates for above renames.
  14956. * util/grub-mkrelpath.c: Likewise.
  14957. * util/grub-probe.c: Likewise.
  14958. * util/i386/pc/grub-setup.c: Likewise.
  14959. * util/sparc64/ieee1275/grub-setup.c: Likewise.
  14960. * kern/emu/console.c: Likewise.
  14961. * kern/emu/getroot.c: Likewise.
  14962. * kern/emu/hostdisk.c: Likewise.
  14963. * kern/emu/main.c: Likewise. (was grub-emu.c earlier)
  14964. * include/grub/dl.h: Remove grub_dl_{ref,unref}.
  14965. * include/grub/util/misc.h: Move grub-emu functions to emu/misc.h.
  14966. * kern/dl.c: Handle null mod in grub_dl_{ref,unref}.
  14967. * util/misc.c: Remove grub-emu functions.
  14968. 2010-05-13 Vladimir Serbinenko <phcoder@gmail.com>
  14969. Fix gfxmenu crash.
  14970. Reported by: Thorsten Grützmacher.
  14971. * gfxmenu/gui_circular_progress.c (circprog_destroy): Unregister
  14972. timeout hook.
  14973. (circprog_set_property): Register and unregister timeout hook.
  14974. * gfxmenu/gui_label.c (grub_gui_label): New fields template and value.
  14975. (label_destroy): Free template. and unregister hook.
  14976. (label_set_state): New function.
  14977. (label_set_property): Handle templates and hooks.
  14978. * gfxmenu/gui_progress_bar.c (progress_bar_destroy): Unregister
  14979. timeout hook.
  14980. (progress_bar_set_property): Register and unregister timeout hook.
  14981. * gfxmenu/view.c (TIMEOUT_COMPONENT_ID): Move from here ...
  14982. * include/grub/gui.h (GRUB_GFXMENU_TIMEOUT_COMPONENT_ID): ...to here
  14983. * gfxmenu/view.c (grub_gfxmenu_timeout_notifications): New variable.
  14984. (update_timeout_visit): Removed.
  14985. (update_timeouts): New function.
  14986. (redraw_timeouts): Likewise.
  14987. (grub_gfxmenu_print_timeout): Use update_timeouts and redraw_timeouts.
  14988. (grub_gfxmenu_clear_timeout): Likewise.
  14989. * include/grub/gui.h (grub_gfxmenu_set_state_t): New type.
  14990. (grub_gfxmenu_timeout_notify): Likewise.
  14991. (grub_gfxmenu_timeout_notifications): New external variable.
  14992. (grub_gfxmenu_timeout_register): New function.
  14993. (grub_gfxmenu_timeout_unregister): Likewise.
  14994. 2010-05-09 Vladimir Serbinenko <phcoder@gmail.com>
  14995. Transform (broken) vga terminal into (working) vga video driver.
  14996. * conf/i386-pc.rmk (vga_mod_SOURCES): Change term/i386/pc/vga.c to
  14997. video/i386/pc/vga.c.
  14998. * include/grub/video.h (grub_video_driver_id):
  14999. Add GRUB_VIDEO_DRIVER_VGA.
  15000. * term/i386/pc/vga.c: Renamed to ...
  15001. * video/i386/pc/vga.c: ...this
  15002. (DEBUG_VGA): Removed.
  15003. (CHAR_WIDTH): Likewise.
  15004. (CHAR_HEIGHT): Likewise.
  15005. (TEXT_WIDTH): Likewise.
  15006. (TEXT_HEIGHT): Likewise.
  15007. (DEFAULT_FG_COLOR): Likewise.
  15008. (DEFAULT_BG_COLOR): Likewise.
  15009. (colored_char): Likewise.
  15010. (xpos): Likewise.
  15011. (ypos): Likewise.
  15012. (cursor_state): Likewise.
  15013. (fg_color): Likewise.
  15014. (bg_color): Likewise.
  15015. (text_buf): Likewise.
  15016. (page): Likewise.
  15017. (font): Likewise.
  15018. (framebuffer): New variable.
  15019. (set_read_map): Disabled.
  15020. (setup): New variable.
  15021. (is_target): Likewise.
  15022. (grub_vga_mod_init): Likewise.
  15023. (grub_vga_mod_fini): Likewise.
  15024. (check_vga_mem): Likewise.
  15025. (write_char): Likewise.
  15026. (write_cursor): Likewise.
  15027. (scroll_up): Likewise.
  15028. (grub_vga_putchar): Likewise.
  15029. (grub_vga_getcharwidth): Likewise.
  15030. (grub_vga_getwh): Likewise.
  15031. (grub_vga_getxy): Likewise.
  15032. (grub_vga_gotoxy): Likewise.
  15033. (grub_vga_cls): Likewise.
  15034. (grub_vga_setcolorstate): Likewise.
  15035. (grub_vga_setcursor): Likewise.
  15036. (grub_video_vga_init): New function.
  15037. (grub_video_vga_setup): Likewise.
  15038. (grub_video_vga_fini): Likewise.
  15039. (update_target): Likewise.
  15040. (grub_video_vga_blit_bitmap): Likewise.
  15041. (grub_video_vga_blit_render_target): Likewise.
  15042. (grub_video_vga_set_active_render_target): Likewise.
  15043. (grub_video_vga_get_active_render_target): Likewise.
  15044. (grub_video_vga_swap_buffers): Likewise.
  15045. (grub_video_vga_set_palette): Likewise.
  15046. (grub_video_vga_get_info_and_fini): Likewise.
  15047. (grub_vga_term): Removed.
  15048. (grub_video_vga_adapter): New variable.
  15049. (GRUB_MOD_INIT): Register a video driver instead of terminal.
  15050. (GRUB_MOD_FINI): Unrefister a video driver instead of terminal.
  15051. 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
  15052. * video/readers/jpeg.c: Indented.
  15053. 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
  15054. Various jpeg cleanups.
  15055. * video/readers/jpeg.c (grub_jpeg_get_huff_code): Use ARRAY_SIZE.
  15056. (grub_jpeg_decode_quan_table): Use sizeof.
  15057. (grub_jpeg_decode_du): Use ARRAY_SIZE.
  15058. 2010-05-05 Peter Hurley <No e-mail available> (tiny change)
  15059. * video/readers/jpeg.c (grub_jpeg_decode_huff_table): Loop over all
  15060. tables. Ignore non-last ac bit.
  15061. (grub_jpeg_decode_quan_table): Likewise.
  15062. 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
  15063. * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
  15064. GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM.
  15065. * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
  15066. GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM on qemu.
  15067. * kern/ieee1275/init.c (grub_claim_heap): Don0t allocate below
  15068. 1.5MiB if GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM is set.
  15069. 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
  15070. * term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
  15071. error.
  15072. 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
  15073. * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.
  15074. 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
  15075. * commands/parttool.c (grub_cmd_parttool): Fix #if !GRUB_NO_MODULES
  15076. condition.
  15077. 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
  15078. * kern/mm.c (grub_real_malloc): Put magic and size assignment in common
  15079. part.
  15080. 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
  15081. * kern/mm.c (grub_mm_init_region): Check for region size after aligning
  15082. pointers.
  15083. 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
  15084. * kern/mm.c (grub_real_malloc): Fix size calculation when extra == 0.
  15085. 2010-05-01 Christian Franke <franke@computer.org>
  15086. * util/grub-mkconfig_lib.in (make_system_path_relative_to_its_root):
  15087. Remove broken Cygwin path conversion.
  15088. * util/misc.c: [__CYGWIN__] Add include and define.
  15089. [__CYGWIN__] (get_win32_path): Copy function from getroot.c, modify
  15090. for Cygwin 1.7.
  15091. (make_system_path_relative_to_its_root): Simplify loop, replace early
  15092. return by break.
  15093. [__CYGWIN__] Add conversion to win32 path.
  15094. Include "/" case in trailing slash removal.
  15095. 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
  15096. * kern/main.c (grub_load_config): Fix copy-pasted comment.
  15097. Reported by: Seth Goldberg
  15098. 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
  15099. * commands/help.c (grub_cmd_help): Fix a typo.
  15100. Reported by: Seth Goldberg
  15101. 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
  15102. * commands/hashsum.c (GRUB_MOD_INIT): Remove duplication of command
  15103. name and add N_.
  15104. * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Likewise.
  15105. * commands/iorw.c (GRUB_MOD_INIT): Likewise.
  15106. * commands/password_pbkdf2.c (GRUB_MOD_INIT): Likewise.
  15107. * commands/regexp.c (GRUB_MOD_INIT): Likewise.
  15108. * commands/setpci.c (GRUB_MOD_INIT): Likewise.
  15109. * commands/terminal.c (GRUB_MOD_INIT): Likewise.
  15110. * efiemu/main.c (GRUB_MOD_INIT): Likewise.
  15111. * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
  15112. * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
  15113. * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
  15114. * normal/context.c (GRUB_MOD_INIT): Likewise.
  15115. * normal/main.c (GRUB_MOD_INIT): Likewise.
  15116. * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
  15117. * term/serial.c (GRUB_MOD_INIT): Likewise.
  15118. * term/terminfo.c (GRUB_MOD_INIT): Likewise.
  15119. 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
  15120. * kern/mm.c (grub_real_malloc): Satisfy alignment requirement when
  15121. extra == 0.
  15122. 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
  15123. * commands/iorw.c: New file.
  15124. * conf/i386.rmk (pkglib_MODULES): Add iorw.mod.
  15125. (iorw_mod_SOURCES): New variable.
  15126. (iorw_mod_CFLAGS): Likewise.
  15127. (iorw_mod_LDFLAGS): Likewise.
  15128. 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
  15129. Hotkey support
  15130. * include/grub/menu.h (grub_menu_entry): New field 'hotkey'.
  15131. * normal/main.c (hotkey_aliases): New variable.
  15132. (grub_normal_add_menu_entry): Parse "--hotkey".
  15133. * normal/menu_text.c (run_menu): Handle hotkeys.
  15134. 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
  15135. * kern/i386/coreboot/init.c (grub_machine_init): Call
  15136. grub_machine_mmap_init on qemu.
  15137. 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
  15138. * boot/i386/qemu/boot.S: Add a missing .code16.
  15139. 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
  15140. Use LBIO on coreboot.
  15141. * conf/i386-coreboot.rmk (kernel_img_SOURCES): Change
  15142. kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c.
  15143. * include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK):
  15144. New declaration.
  15145. * kern/i386/coreboot/init.c (grub_machine_init): Don't call
  15146. grub_machine_mmap_init on coreboot.
  15147. * kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle
  15148. GRUB_LINUXBIOS_MEMBER_LINK.
  15149. (grub_machine_mmap_iterate): Fix declaration.
  15150. * kern/i386/coreboot/startup.S: Don't save mbi location on coreboot.
  15151. 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
  15152. Split coreboot and multiboot ports.
  15153. * conf/i386-multiboot.rmk: New file.
  15154. * configure.ac: Add multiboot port.
  15155. * include/grub/i386/multiboot/boot.h: New file.
  15156. * include/grub/i386/multiboot/console.h: Likewise.
  15157. * include/grub/i386/multiboot/init.h: Likewise.
  15158. * include/grub/i386/multiboot/kernel.h: Likewise.
  15159. * include/grub/i386/multiboot/loader.h: Likewise.
  15160. * include/grub/i386/multiboot/memory.h: Likewise.
  15161. * include/grub/i386/multiboot/serial.h: Likewise.
  15162. * include/grub/i386/multiboot/time.h: Likewise.
  15163. * include/grub/multiboot.h: Add GRUB_MACHINE_MULTIBOOT to ifdef.
  15164. * loader/multiboot.c: Likewise.
  15165. * loader/multiboot_mbi2.c: Likewise.
  15166. * util/grub-mkrescue.in: Generate multiboot rescue.
  15167. 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
  15168. * kern/parser.c (grub_parser_execute): Cope with read-only config.
  15169. 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
  15170. Merge handling of input and output terminals. Fix a hang.
  15171. * commands/terminal.c (abstract_terminal): New struct.
  15172. (handle_command): New function. Based on grub_cmd_terminal_input.
  15173. (grub_cmd_terminal_input): Use handle_command.
  15174. (grub_cmd_terminal_output): Use handle_command.
  15175. 2010-05-01 BVK Chaitanya <bvk.groups@gmail.com>
  15176. Fix comment handling.
  15177. * tests/grub_script_comments.in: New testcase.
  15178. * conf/tests.rmk: Rules for new testcase.
  15179. * script/yylex.l: Updated flex rules.
  15180. 2010-04-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
  15181. * docs/grub.texi (play): Document that zero pitches produce rests.
  15182. * commands/i386/pc/play.c (grub_cmd_play): Call 'grub_file_open' only
  15183. if argc is 1.
  15184. 2010-04-27 Vladimir Serbinenko <phcoder@gmail.com>
  15185. * conf/x86-efi.rmk (linux_mod_SOURCES): Write explicitly to avoid
  15186. autogen issues.
  15187. 2010-04-26 Christian Franke <franke@computer.org>
  15188. * include/grub/util/getroot.h (grub_get_prefix): Remove prototype.
  15189. * util/getroot.c [__CYGWIN__] (get_win32_path): Remove function.
  15190. (grub_get_prefix): Remove function.
  15191. * util/grub-emu.c (main): Replace grub_get_prefix () call by
  15192. make_system_path_relative_to_its_root ().
  15193. * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
  15194. 2010-04-24 Christian Franke <franke@computer.org>
  15195. * Makefile.in (TARGET_LDFLAGS): Add -static-libgcc.
  15196. (kernel_img_LDFLAGS): Remove -static-libgcc.
  15197. 2010-04-24 Christian Franke <franke@computer.org>
  15198. * configure.ac: Do not CHECK_BSS_START_SYMBOL
  15199. and CHECK_END_SYMBOL if grub-emu is built.
  15200. Unset TARGET_OBJ2ELF if grub-emu is built
  15201. without module support.
  15202. 2010-04-24 Jiro SEKIBA <jir@unicus.jp>
  15203. Nilfs2 support.
  15204. * conf/common.rmk (grub_probe_SOURCES): Add fs/nilfs2.c.
  15205. (grub_fstest_SOURCES): Likewise.
  15206. (pkglib_MODULES): Add nilfs2.mod.
  15207. (nilfs2_mod_SOURCES): New variable.
  15208. (nilfs2_mod_CFLAGS): Likewise.
  15209. (nilfs2_mod_LDFLAGS): Likewise.
  15210. * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
  15211. * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
  15212. * fs/nilfs2.c: New file.
  15213. 2010-04-21 Vladimir Serbinenko <phcoder@gmail.com>
  15214. * configure.ac: Refuse to compile for x86_64-efi is mcmodel=large
  15215. is not supported.
  15216. 2010-04-19 Grégoire Sutre <gregoire.sutre@gmail.com>
  15217. Add grub-mkconfig support for NetBSD.
  15218. * util/grub.d/10_netbsd.in: grub-mkconfig helper script for NetBSD.
  15219. * util/grub-mkconfig.in: export new NetBSD specific variables.
  15220. * po/POTFILES-shell: added 10_netbsd.in.
  15221. * util/grub-mkconfig_lib.in: check for gettext binary, default to echo.
  15222. 2010-04-19 BVK Chaitanya <bvk.groups@gmail.com>
  15223. Fix emu build with grub-emu-pci and grub-emu-modules.
  15224. * include/grub/util/misc.h: Export grub_util_{info,error,warn}
  15225. functions.
  15226. * include/grub/libpciaccess.h: New file.
  15227. * conf/any-emu.rmk: Update kernel headers for emu build.
  15228. 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
  15229. * fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.
  15230. 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
  15231. * fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames.
  15232. 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
  15233. * boot/sparc64/ieee1275/boot.S: Various size-reducing changes.
  15234. Retrieve chosen/bootpath if bootpath isn't hardcoded.
  15235. * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add
  15236. util/ieee1275/ofpath.c.
  15237. * util/sparc64/ieee1275/grub-ofpathname.c: Renamed to ...
  15238. * util/ieee1275/grub-ofpathname.c: ... this. All users updated
  15239. * include/grub/sparc64/ieee1275/boot.h
  15240. (GRUB_BOOT_MACHINE_KERNEL_SECTOR): Renamed to ...
  15241. (GRUB_BOOT_MACHINE_KERNEL_BYTE): ...this. Moved 8 bytes lower.
  15242. * util/hostdisk.c (grub_util_biosdisk_get_osdev): New function.
  15243. * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Make argument
  15244. const char *.
  15245. * util/sparc64/ieee1275/grub-setup.c (compute_dest_ofpath): Removed.
  15246. (setup): Use KERNEL_BYTE instead of KERNEL_SECTOR.
  15247. Use grub_util_devname_to_ofpath. Zero-fill boot_devpath on same disk
  15248. install.
  15249. 2010-04-18 Grégoire Sutre <gregoire.sutre@gmail.com>
  15250. * util/grub-mkconfig.in: Corrected two == equality tests.
  15251. Set grub_prefix as in grub-install for NetBSD and OpenBSD.
  15252. * configure.ac: All definitions and uses of TARGET_IMG_LDFLAGS_AC now
  15253. expect a number appended to it.
  15254. * acinclude.m4 (grub_PROG_OBJCOPY_ABSOLUTE): ${TARGET_IMG_LDFLAGS_AC}
  15255. expects a number appended to it.
  15256. 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
  15257. * po/POTFILES: Renamed multiboot_loader.c to multiboot.c
  15258. 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
  15259. * util/hostdisk.c (make_device_name): Change to new partition naming.
  15260. 2010-04-17 Vladimir Serbinenko <phcoder@gmail.com>
  15261. * disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0.
  15262. 2010-04-17 Christian Franke <franke@computer.org>
  15263. * Makefile.in: Add missing localedir setting.
  15264. 2010-04-14 Colin Watson <cjwatson@ubuntu.com>
  15265. Restore TEXTDOMAINDIR correction from r1889, lost apparently by
  15266. mistake in r2156. Noticed by Anthony Fok.
  15267. * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased
  15268. @localedir@.
  15269. * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
  15270. 2010-04-14 BVK Chaitanya <bvk.groups@gmail.com>
  15271. Fix a spurious, uninitialized variable warning.
  15272. * loader/i386/bsdXX.c (grub_freebsd_load_elfmodule_obj):
  15273. Initialize variable, shdr.
  15274. (grub_freebsd_load_elfmodule): Likewise.
  15275. (grub_freebsd_load_elf_meta): Likewise.
  15276. 2010-04-13 BVK Chaitanya <bvk.groups@gmail.com>
  15277. Fix for escaped dollar in double quoted strings.
  15278. * script/yylex.l: Updated flex rules.
  15279. * conf/tests.rmk: Rule for new testcase.
  15280. * tests/grub_script_dollar.in: New testcase.
  15281. 2010-04-13 Carles Pina i Estany <carles@pina.cat>
  15282. 2010-04-13 Colin Watson <cjwatson@ubuntu.com>
  15283. Enclose all translated strings in grub.cfg in single quotes, and
  15284. escape them appropriately (Ubuntu bug #552921).
  15285. * util/grub-mkconfig_lib.in (gettext_quoted): New function.
  15286. * util/grub.d/10_hurd.in: Use it.
  15287. * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
  15288. * util/grub.d/10_linux.in (linux_entry): Likewise.
  15289. 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
  15290. Fix cygwin compilation.
  15291. * configure.ac: Define NEED_REGISTER_FRAME_INFO.
  15292. * include/grub/misc.h (__register_frame_info)
  15293. [NEED_REGISTER_FRAME_INFO && !UTIL]: New export.
  15294. (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
  15295. * kern/misc.c (__register_frame_info)
  15296. [NEED_REGISTER_FRAME_INFO && !UTIL]: New empty function.
  15297. (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
  15298. 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
  15299. * configure.ac: Respect grub_cv_asm_uscore when defining dummy symbols.
  15300. 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
  15301. Unify libgcc processing.
  15302. * Makefile.in (kernel_img_LDFLAGS): New variable.
  15303. * conf/common.rmk (kernel_img_HEADERS): Add libgcc.h.
  15304. * conf/i386-coreboot.rmk (kernel_img_LDFLAGS): Append instead of
  15305. overwriting.
  15306. * conf/i386-ieee1275.rmk (kernel_img_LDFLAGS): Likewise.
  15307. * conf/i386-pc.rmk (kernel_img_LDFLAGS): Likewise.
  15308. * conf/i386-qemu.rmk (kernel_img_LDFLAGS): Likewise.
  15309. * conf/x86-efi.rmk (kernel_img_LDFLAGS): Likewise.
  15310. * conf/mips-qemu-mips.rmk (kernel_img_LDFLAGS): Append instead of
  15311. overwriting. Remove -lgcc and -static-libgcc
  15312. * conf/mips-yeeloong.rmk (kernel_img_LDFLAGS): Likewise.
  15313. * conf/mips.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
  15314. * conf/powerpc-ieee1275.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
  15315. (kernel_img_LDFLAGS): Append instead of overwriting.
  15316. Remove -lgcc and -static-libgcc
  15317. * conf/sparc64-ieee1275.rmk: Likewise.
  15318. * include/grub/powerpc/libgcc.h: Move to ...
  15319. * include/grub/libgcc.h: .. this.
  15320. * include/grub/libgcc.h: Don't export most of the function on x86.
  15321. (__bswapsi2): New export.
  15322. (__bswapdi2): Likewise.
  15323. * include/grub/mips/libgcc.h: Removed.
  15324. * include/grub/sparc64/libgcc.h: Likewise.
  15325. 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
  15326. * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Remove
  15327. disk_info_msg (conflicts with gettexting into languages with cases).
  15328. 2010-04-10 Grégoire Sutre <gregoire.sutre@gmail.com>
  15329. Add grub-probe support for NetBSD.
  15330. * util/getroot.c (find_root_device): Convert block device to
  15331. character device on NetBSD.
  15332. * util/probe.c (probe): Require character device on NetBSD.
  15333. * util/hostdisk.c: NetBSD specific headers.
  15334. (configure_device_driver): new function to tune device driver
  15335. parameters (currently only for NetBSD floppy driver).
  15336. (grub_util_biosdisk_open): NetBSD specific code (get disk size
  15337. via disklabel ioctl).
  15338. (open_device): call configure_device_driver on NetBSD.
  15339. (convert_system_partition_to_system_disk): NetBSD specific code.
  15340. (device_is_wholedisk): Likewise.
  15341. (grub_util_biosdisk_get_grub_dev): Likewise.
  15342. (make_device_name): Fixed a typo in bsd_part_str.
  15343. * configure.ac: check for opendisk() and getrawpartition() on
  15344. NetBSD and set LIBUTIL.
  15345. * Makefile.in: add LIBUTIL to LIBS.
  15346. 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
  15347. Documentation fix.
  15348. * util/grub-script-check.c: Better help message.
  15349. 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
  15350. Fix FreeBSD build.
  15351. * configure.ac: Flex version check.
  15352. * conf/common.rmk: Add -Wno-error to sh.mod.
  15353. * script/yylex.l: Remove all #pragma.
  15354. 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
  15355. * include/grub/util/misc.h (canonicalise_file_name): Add missing
  15356. prototype.
  15357. Reported by: Seth Goldberg.
  15358. 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
  15359. * loader/multiboot.c (GRUB_MOD_INIT) [GRUB_USE_MULTIBOOT2]:
  15360. Rename "module" to "module2".
  15361. Reported by: Seth Goldberg.
  15362. 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
  15363. * include/grub/efi/memory.h (grub_machine_mmap_iterate): Remove
  15364. EXPORT_FUNC.
  15365. Reported by: Seth Goldberg.
  15366. 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
  15367. * lib/posix_wrap/locale.h: Add missing file.
  15368. Reported by: Seth Goldberg.
  15369. 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
  15370. grub-emu module load support.
  15371. * Makefile.in (TARGET_NO_MODULES): New variable. All users of
  15372. NO_DYNAMIC_MODULES switched to this.
  15373. (TARGET_CFLAGS): Add -DGRUB_TARGET_NO_MODULES=1 if applicable.
  15374. (CFLAGS): Likewise.
  15375. * conf/any-emu.rmk: Generate symlist.
  15376. (kernel_img_HEADERS): Add util/datetime.h.
  15377. (kernel_img_HEADERS) [sdl]: Add sdl.h.
  15378. (kernel_img_HEADERS) [libusb]: Add libusb.h.
  15379. (kernel_img_SOURCES) [TARGET_NO_MODULES = no && !x86]: Add
  15380. kern/$(target_cpu)/cache.S.
  15381. * configure.ac (grub-emu-modules): New option.
  15382. * genmk.rb: Handle multiple source lists.
  15383. * include/grub/sdl.h: New file.
  15384. * include/grub/libusb.h: Likewise.
  15385. * util/grub-emu.c (main): Hanle (host) root.
  15386. * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Error with
  15387. GRUB_ERR_UNKNOWN_DEVICE.
  15388. * util/misc.c: Move mm functions to ...
  15389. * util/mm.c: ... here. All users updated.
  15390. 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
  15391. * Makefile.in (RMKFILES): Search in srcdir and not current directory.
  15392. (MAINTAINER_CLEANFILES): Don't add $(srcdir) to MKFILES. Add few
  15393. missing files.
  15394. (maintainer-clean): Remove libgcrypt-grub.
  15395. 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
  15396. * term/efi/console.c (grub_console_checkkey): Macroify key contants.
  15397. 2010-04-09 EFI Coder <eficoder@hotmail.com>
  15398. * normal/menu_text.c (print_message): Clean up the message and show
  15399. the Fn information when on EFI
  15400. * term/efi/console.c (grub_console_checkkey): Add F4 support.
  15401. 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
  15402. * normal/autofs.c (read_fs_list): New parameter 'prefix'.
  15403. All users updated.
  15404. * normal/crypto.c (read_crypto_list): Likewise.
  15405. * normal/dyncmd.c (read_command_list): Likewise.
  15406. * normal/term.c (read_terminal_list): Likewise.
  15407. * normal/main.c (read_lists): Use explicit prefix.
  15408. (read_lists_hook): Use read_lists.
  15409. (grub_normal_execute): Likewise.
  15410. 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
  15411. * util/grub-mkrescue.in: Fix incorrect path in coreboot part.
  15412. Reported by: Thomas Schmitt.
  15413. Add -no-emul-boot to grub-mkisofs parameters.
  15414. 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
  15415. * font/font.c: Indented.
  15416. 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
  15417. Elif support to GRUB script (by Deepak Vankadaru).
  15418. * tests/grub_script_if.in: New testcase.
  15419. * conf/tests.rmk: Rule for new testcase.
  15420. * script/parser.y: Grammar rules for elif.
  15421. 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
  15422. While and until loops support to GRUB script.
  15423. * include/grub/script_sh.h (grub_script_cmdwhile): New struct.
  15424. (grub_script_create_cmdwhile): New function prototype.
  15425. (grub_script_execute_cmdwhile): New function prototype.
  15426. * script/execute.c (grub_script_execute_cmdwhile): New function.
  15427. * script/parser.y (command): New commands.
  15428. (whilecmd): New grammar rule.
  15429. (untilcmd): New grammar rule.
  15430. * script/script.c (grub_script_create_cmdwhile): New function.
  15431. * util/grub-script-check.c (grub_script_execute_cmdwhile): New
  15432. function.
  15433. * tests/grub_script_while1.in: New testcase.
  15434. * conf/tests.rmk: Rule for new testcase.
  15435. 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
  15436. * util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg
  15437. as *.jpg.
  15438. 2010-04-09 Mario Vazquez <mariovazq@gmail.com>
  15439. GRUB_BACKGROUND support.
  15440. * util/grub-mkconfig.in: Export GRUB_BACKGROUND.
  15441. * util/grub.d/00_header.in: Parse GRUB_BACKGROUND.
  15442. 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
  15443. Load fonts and modules for gfxmenu in grub-mkconfig.
  15444. Idea by: Mario Vazquez
  15445. * util/grub.d/00_header.in: Load pf2 and image modules.
  15446. 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
  15447. grub-mkconfig multiple terminal support.
  15448. * util/grub-mkconfig.in: Handle multiple terminals correctly.
  15449. * util/grub.d/00_header.in: Likewise.
  15450. 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
  15451. * Makefile.in: Specify files explicitly instead of using $< and $@ since
  15452. we use cd $(srcdir).
  15453. 2010-04-08 Colin Watson <cjwatson@ubuntu.com>
  15454. * util/grub.d/10_linux.in: Only use the first word of
  15455. GRUB_DISTRIBUTOR for --class, to avoid problems if somebody puts
  15456. spaces in GRUB_DISTRIBUTOR.
  15457. * util/grub.d/10_kfreebsd.in: Likewise.
  15458. * util/grub.d/10_hurd.in: Likewise.
  15459. 2010-04-06 BVK Chaitanya <bvk.groups@gmail.com>
  15460. Fix unit testing framework for Qemu 0.12.
  15461. * tests/util/grub-shell.in: Remove -serial stdio option.
  15462. 2010-04-06 Vladimir Serbinenko <phcoder@gmail.com>
  15463. POSIX header file wrappers.
  15464. * lib/posix_wrap/assert.h: New file. Wrapper for its POSIX
  15465. equivalents.
  15466. * lib/posix_wrap/ctype.h: Likewise.
  15467. * lib/posix_wrap/errno.h: Likewise.
  15468. * lib/posix_wrap/langinfo.h: Likewise.
  15469. * lib/posix_wrap/limits.h: Likewise.
  15470. * lib/posix_wrap/localcharset.h: Likewise.
  15471. * lib/posix_wrap/stdint.h: Likewise.
  15472. * lib/posix_wrap/stdio.h: Likewise.
  15473. * lib/posix_wrap/stdlib.h: Likewise.
  15474. * lib/posix_wrap/string.h: Likewise.
  15475. * lib/posix_wrap/sys/types.h: Likewise.
  15476. * lib/posix_wrap/unistd.h: Likewise.
  15477. * lib/posix_wrap/wchar.h: Likewise.
  15478. * lib/posix_wrap/wctype.h: Likewise.
  15479. * conf/common.rmk (grub_script.yy.c): Remove #include elimination.
  15480. (grub_script.yy.h): Likewise.
  15481. * script/yylex.l: Remove POSIX emulation #defines.
  15482. * Makefile.in (POSIX_CFLAGS): New variable.
  15483. (GNULIB_UTIL_CFLAGS): Likewise.
  15484. Regexp support.
  15485. * conf/common.rmk (pkglib_MODULES): Add regexp.mod.
  15486. (regexp_mod_SOURCES): New variable.
  15487. (regexp_mod_CFLAGS): Likewise.
  15488. (regexp_mod_LDFLAGS): Likewise.
  15489. * commands/regexp.c: New file.
  15490. * gnulib/regcomp.c: New file. Imported from gnulib.
  15491. * gnulib/regex.c: Likewise.
  15492. * gnulib/regex_internal.c: Likewise.
  15493. * gnulib/regex_internal.h: Likewise.
  15494. * gnulib/regexec.c: Likewise.
  15495. * gnulib/regex.h: Likewise.
  15496. 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
  15497. * loader/i386/multiboot_mbi.c (grub_multiboot_load): Correctly report
  15498. unsupported video mode types.
  15499. 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
  15500. * kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).
  15501. 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
  15502. * include/grub/i386/pc/init.h (grub_get_mmap_entry): Don't export.
  15503. * conf/i386-pc.rmk (kernel_img_HEADERS): Remove machine/init.h.
  15504. 2010-04-04 Vladimir Serbinenko <phcoder@gmail.com>
  15505. Remove unused grub_vga_get_font.
  15506. * kern/i386/pc/startup.S (grub_vga_get_font): Removed.
  15507. * include/grub/i386/pc/vga.h (grub_vga_get_font): Likewise.
  15508. 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
  15509. * kern/misc.c: Disable the __enable_execute_stack hack for utilities.
  15510. * include/grub/misc.h: Likewise.
  15511. 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
  15512. * util/grub-install.in: Add `|| exit 1' to all grub-probe calls
  15513. for which failure is fatal.
  15514. 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
  15515. * util/grub-install.in: Use mkdir -p to create grub directory.
  15516. * util/i386/efi/grub-install.in: Likewise.
  15517. * util/ieee1275/grub-install.in: Likewise.
  15518. 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
  15519. * Makefile.in (LEX): new variable.
  15520. 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
  15521. * util/i386/efi/grub-dumpdevtree: replaced the non-portable `==' by
  15522. `=' and added double quotes on operands of this equality test.
  15523. 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
  15524. * Makefile.in (uninstall): Remove a leftover debug echo.
  15525. Reported by: Grégoire Sutre
  15526. 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
  15527. MIPS multiboot2 support.
  15528. * conf/mips.rmk (pkglib_MODULES): Add multiboot2.mod.
  15529. (multiboot2_mod_SOURCES): New variable.
  15530. (multiboot2_mod_CFLAGS): Likewise.
  15531. (multiboot2_mod_LDFLAGS): Likewise.
  15532. (multiboot2_mod_ASFLAGS): Likewise.
  15533. * include/grub/i386/multiboot.h (MULTIBOOT_INITIAL_STATE): New
  15534. definition.
  15535. (MULTIBOOT_ENTRY_REGISTER): Likewise.
  15536. (MULTIBOOT_MBI_REGISTER): Likewise.
  15537. (MULTIBOOT_ARCHITECTURE_CURRENT): Likewise.
  15538. (MULTIBOOT_ELF32_MACHINE): Likewise.
  15539. (MULTIBOOT_ELF64_MACHINE): Likewise.
  15540. * include/grub/mips/multiboot.h: New file.
  15541. * include/grub/video.h (grub_video_driver_id): New type
  15542. GRUB_VIDEO_DRIVER_SM712.
  15543. (grub_video_get_info_and_fini): Export.
  15544. (grub_video_get_palette): Likewise.
  15545. (grub_video_get_driver_id): Likewise.
  15546. * include/multiboot2.h: Resynced with spec.
  15547. * loader/i386/multiboot.c: Moved from here ...
  15548. * loader/multiboot.c: ... here. All users updated.
  15549. (grub_multiboot_boot): Use platform-specific macros.
  15550. * loader/i386/multiboot_elfxx.c: Moved from here ...
  15551. * loader/multiboot_elfxx.c: ... here. All users updated.
  15552. (E_MACHINE): Use MULTIBOOT_ELF32_MACHINE and MULTIBOOT_ELF64_MACHINE.
  15553. * loader/i386/multiboot_mbi2.c (grub_multiboot_load): Check arcitecture.
  15554. * video/sm712.c (grub_video_sm712_adapter): Add missing id field.
  15555. 2010-04-02 Vladimir Serbinenko <phcoder@gmail.com>
  15556. Import gnulib argp module.
  15557. * gnulib/argp-ba.c: New file.
  15558. * gnulib/argp-eexst.c: Likewise.
  15559. * gnulib/argp-fmtstream.c: Likewise.
  15560. * gnulib/argp-fmtstream.h: Likewise.
  15561. * gnulib/argp-fs-xinl.c: Likewise.
  15562. * gnulib/argp-help.c: Likewise.
  15563. * gnulib/argp-namefrob.h: Likewise.
  15564. * gnulib/argp-parse.c: Likewise.
  15565. * gnulib/argp-pin.c: Likewise.
  15566. * gnulib/argp-pv.c: Likewise.
  15567. * gnulib/argp-pvh.c: Likewise.
  15568. * gnulib/argp-version-etc.c: Likewise.
  15569. * gnulib/argp-version-etc.h: Likewise.
  15570. * gnulib/argp-xinl.c: Likewise.
  15571. * gnulib/argp.h: Likewise.
  15572. 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
  15573. * kern/device.c (grub_device_iterate): Clear errors after failed
  15574. opening device.
  15575. 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
  15576. * kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if
  15577. returned by firmware.
  15578. 2010-03-30 Vladimir Serbinenko <phcoder@gmail.com>
  15579. * loader/i386/multiboot_mbi2.c (retrieve_video_parameters): Fix
  15580. compilation on coreboot and qemu
  15581. 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
  15582. * include/multiboot2.h: Resync with spec.
  15583. 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
  15584. Multiboot2 tag support
  15585. * conf/i386.rmk (multiboot2_mod_SOURCES): Replace
  15586. loader/i386/multiboot_mbi.c with loader/i386/multiboot_mbi2.c.
  15587. Remove loader/multiboot_loader.c.
  15588. * include/grub/i386/multiboot.h (grub_multiboot_real_boot): Removed.
  15589. (grub_multiboot2_real_boot): Likewise.
  15590. * include/grub/multiboot.h (grub_multiboot_set_accepts_video): Removed.
  15591. (grub_get_multiboot_mmap_count): New proto.
  15592. (grub_fill_multiboot_mmap): Likewise.
  15593. (grub_multiboot_set_video_mode): Likewise.
  15594. (grub_multiboot_set_console): Likewise.
  15595. (grub_multiboot_load): Likewise.
  15596. (grub_multiboot_load_elf): Likewise.
  15597. (GRUB_MULTIBOOT_CONSOLE_EGA_TEXT): New definition.
  15598. (GRUB_MULTIBOOT_CONSOLE_FRAMEBUFFER): Likewise.
  15599. * include/multiboot.h: Resynced with specification.
  15600. * include/multiboot2.h: Resynced with specification.
  15601. * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): Moved from here...
  15602. * loader/i386/multiboot.c (DEFAULT_VIDEO_MODE): ... here.
  15603. * loader/i386/multiboot_mbi.c (HAS_VGA_TEXT): Moved from here ..
  15604. * include/grub/multiboot.h (GRUB_MACHINE_HAS_VGA_TEXT): ... here. All
  15605. users updated.
  15606. * loader/i386/multiboot_mbi.c (accepts_video): Moved from here...
  15607. * loader/i386/multiboot.c (accepts_video): ... here. All users updated.
  15608. * loader/i386/multiboot_mbi.c (grub_multiboot_set_accepts_video):
  15609. Removed.
  15610. * loader/i386/multiboot_mbi.c (grub_get_multiboot_mmap_len):
  15611. Moved from here...
  15612. * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): ... here.
  15613. * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
  15614. Moved from here...
  15615. * loader/i386/multiboot.c (grub_fill_multiboot_mmap): ... here.
  15616. * loader/i386/multiboot_mbi.c (set_video_mode): Moved from here...
  15617. * loader/i386/multiboot.c (grub_multiboot_set_video_mode): ... here.
  15618. All users updated.
  15619. * loader/i386/multiboot_mbi2.c: New file.
  15620. 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
  15621. Resync with gnulib.
  15622. * Makefile.in (GNULIB_CFLAGS): New variable.
  15623. * conf/common.rmk (grub_mkisofs_CFLAGS): Add GNULIB_CFLAGS.
  15624. (grub_script_check_CFLAGS): New variable.
  15625. * gnulib/alloca.h: Resync with gnulib.
  15626. * gnulib/error.c: Likewise.
  15627. * gnulib/error.h: Likewise.
  15628. * gnulib/fnmatch.c: Likewise.
  15629. * gnulib/fnmatch_loop.c: Likewise.
  15630. * gnulib/getdelim.c: Likewise.
  15631. * gnulib/getline.c: Likewise.
  15632. * gnulib/getopt.c: Likewise.
  15633. * gnulib/getopt1.c: Likewise.
  15634. * gnulib/getopt_int.h: Likewise.
  15635. * gnulib/gettext.h: Likewise.
  15636. * gnulib/progname.c: Likewise.
  15637. * gnulib/progname.h: Likewise.
  15638. 2010-03-27 Grégoire Sutre <gregoire.sutre@gmail.com>
  15639. Fix a build failure (-Wundef -Werror) when ENABLE_NLS is not defined,
  15640. which is the case with --disabled-nls.
  15641. * include/grub/i18n.h: Use (defined(ENABLE_NLS)
  15642. && ENABLE_NLS) instead of ENABLE_NLS in all #if preprocessor macros.
  15643. * util/misc.c: Likewise.
  15644. * util/mkisofs/mkisofs.c: Likewise.
  15645. * util/mkisofs/mkisofs.h: Likewise.
  15646. 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
  15647. Simplify Apple CC support.
  15648. * commands/i386/pc/drivemap_int13h.S: Use LOCAL when possible.
  15649. Add 0 byte at the end not to have a symbol with empty target.
  15650. * mmap/i386/pc/mmap_helper.S: Likewise.
  15651. * genmk.rb: Ignore errors 2030 and 2050.
  15652. * kern/i386/pc/startup.S: Use LOCAL when possible.
  15653. 2010-03-26 BVK Chaitanya <bvk.groups@gmail.com>
  15654. Testcase and the fix for final semicolon on cmdline.
  15655. * tests/grub_script_final_semicolon.in: New testcase.
  15656. * conf/tests.rmk: Rules for the new testcase.
  15657. * script/parser.y: Grammar fix.
  15658. 2010-03-26 BVK Chaitanya <bvk@localhost>
  15659. Blank lines testcase for GRUB script.
  15660. * tests/grub_script_blanklines.in: New testcase.
  15661. * conf/tests.rmk: Rules for the new testcase.
  15662. 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
  15663. Don't use __FILE__.
  15664. * genmk.rb: Add -DGRUB_FILE to all C targets.
  15665. * fs/reiserfs.c: Replace __FILE__ with GRUB_FILE.
  15666. * include/grub/list.h: Likewise.
  15667. * include/grub/misc.h: Likewise.
  15668. * include/grub/mm.h: Likewise.
  15669. * include/grub/test.h: Likewise.
  15670. * kern/mm.c: Likewise.
  15671. * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
  15672. 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
  15673. Sunpc partitions support.
  15674. * conf/common.rmk (grub_probe_SOURCES): Add partmap/sunpc.c.
  15675. (grub_fstest_SOURCES): Likewise.
  15676. (pkglib_MODULES): Add part_sunpc.mod.
  15677. (part_sunpc_mod_SOURCES): New variable.
  15678. (part_sunpc_mod_CFLAGS): Likewise.
  15679. (part_sunpc_mod_LDFLAGS): Likewise.
  15680. * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/sunpc.c.
  15681. * partmap/sunpc.c: New file.
  15682. 2010-03-26 BVK Chaitanya <bvk@localhost>
  15683. For loop support to GRUB script.
  15684. * include/grub/script_sh.h (grub_script_cmdfor): New struct.
  15685. (grub_script_create_cmdfor): New function prototype.
  15686. (grub_script_execute_cmdfor): New function prototype.
  15687. * script/execute.c (grub_script_execute_cmdfor): New function.
  15688. * script/parser.y (command): New for command.
  15689. (forcmd): New grammar rule.
  15690. * script/script.c (grub_script_create_cmdfor): New function.
  15691. * util/grub-script-check.c (grub_script_execute_cmdfor): New
  15692. function.
  15693. * tests/grub_script_for1.in: New testcase.
  15694. * conf/tests.rmk: Rules for new testcase.
  15695. 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
  15696. Nested partitions
  15697. * commands/blocklist.c (grub_cmd_blocklist): Don't check whether
  15698. 'partition' is NULL, grub_partition_get_start already does that.
  15699. * commands/loadenv.c (check_blocklists): Likewise.
  15700. (write_blocklists): Likewise.
  15701. * conf/common.rmk (grub_probe_SOURCES): Add partmap/bsdlabel.c.
  15702. (grub_fstest_SOURCES): Likewise.
  15703. (pkglib_MODULES): Add part_bsd.mod.
  15704. (part_bsd_mod_SOURCES): New variable.
  15705. (part_bsd_mod_CFLAGS): Likewise.
  15706. (part_bsd_mod_LDFLAGS): Likewise.
  15707. * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/bsdlabel.c.
  15708. (grub_emu_SOURCES): Likewise.
  15709. * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
  15710. * include/grub/bsdlabel.h: New file.
  15711. * include/grub/partition.h (grub_partition_map): Remove 'probe' and
  15712. 'get_name'.
  15713. (grub_partition): Add 'parent' and 'number'. Remove 'data'.
  15714. (grub_partition_map_list): New variable.
  15715. (grub_partition_map_register): Inline.
  15716. (grub_partition_map_unregister): Likewise.
  15717. (FOR_PARTITION_MAPS): New macro.
  15718. (grub_partition_map_iterate): Removed.
  15719. (grub_partition_get_start): Handle nested partitions.
  15720. * include/grub/msdos_partition.h: Remove bsd-related entries.
  15721. (grub_pc_partition): Remove.
  15722. * kern/disk.c (grub_disk_close): Free partition data.
  15723. (grub_disk_adjust_range): Handle nested partitions.
  15724. * kern/partition.c (grub_partition_map_probe): New function.
  15725. (grub_partition_probe): Parse name to number, handle subpartitions.
  15726. (get_partmap): New function.
  15727. (grub_partition_iterate): Handle subpartitions.
  15728. (grub_partition_get_name): Likewise.
  15729. * loader/i386/pc/bsd.c (grub_bsd_get_device): Likewise.
  15730. * loader/i386/multiboot.c (grub_multiboot_get_bootdev): Likewise.
  15731. * loader/i386/pc/chainloader.c (grub_chainloader_cmd): Likewise.
  15732. * partmap/acorn.c (acorn_partition_map_iterate): Don't force raw access.
  15733. Set 'number'.
  15734. (acorn_partition_map_probe): Remove.
  15735. (acorn_partition_map_get_name): Likewise.
  15736. * partmap/amiga.c (amiga_partition_map_iterate): Don't force raw access.
  15737. Set 'number'.
  15738. Set 'index' to 0 since there can be only one partition entry per sector.
  15739. (amiga_partition_map_probe): Remove.
  15740. (amiga_partition_map_get_name): Likewise.
  15741. * partmap/apple.c (apple_partition_map_iterate): Don't force raw access.
  15742. Set 'number'.
  15743. Set 'offset' and 'index' to real positions of partitions.
  15744. (apple_partition_map_probe): Remove.
  15745. (apple_partition_map_get_name): Likewise.
  15746. * partmap/bsdlabel.c: New file.
  15747. * partmap/gpt.c (gpt_partition_map_iterate): Don't force raw access.
  15748. Set 'number'.
  15749. Allocate 'data' so it can be correctly freed.
  15750. Set 'index' to offset inside sector.
  15751. (gpt_partition_map_probe): Remove.
  15752. (gpt_partition_map_get_name): Likewise.
  15753. * partmap/msdos.c (grub_partition_parse): Remove.
  15754. (pc_partition_map_iterate): Don't force raw access.
  15755. Set 'number'.
  15756. Make 'ext_offset' a local variable.
  15757. (pc_partition_map_probe): Remove.
  15758. (pc_partition_map_get_name): Remove.
  15759. * partmap/sun.c (sun_partition_map_iterate): Don't force raw access.
  15760. Set 'number'.
  15761. (sun_partition_map_probe): Remove.
  15762. (sun_partition_map_get_name): Likewise.
  15763. * parttool/msdospart.c (grub_pcpart_boot): Handle nested partitions.
  15764. (grub_pcpart_type): Likewise.
  15765. * util/hostdisk.c (open_device): Handle new numbering scheme.
  15766. (grub_util_biosdisk_get_grub_dev): Handle nested partitions.
  15767. * util/i386/pc/grub-setup.c (setup): Handle new numbering scheme.
  15768. * util/grub-probe.c (probe_partmap): Handle nested paritions.
  15769. * util/grub-install.in: Insert all subpartition modules.
  15770. * util/ieee1275/grub-install.in: Likewise.
  15771. 2010-03-24 Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
  15772. * kern/dl.c (grub_dl_resolve_symbols): Improve error message
  15773. grammar.
  15774. 2010-03-24 Colin Watson <cjwatson@ubuntu.com>
  15775. * .bzrignore: Add grub-bin2h, grub-reboot, and grub-set-default.
  15776. 2010-03-21 Colin Watson <cjwatson@ubuntu.com>
  15777. * util/grub-install.in: Copy .mo files from @datadir@/locale, to
  15778. match where 'make install' puts them.
  15779. * util/i386/efi/grub-install.in: Likewise.
  15780. 2010-03-19 Colin Watson <cjwatson@ubuntu.com>
  15781. * .bzrignore: Add gentrigtables, grub-script-check,
  15782. grub_script_check_init.c, grub_script_check_init.h, and
  15783. trigtables.c.
  15784. 2010-03-18 Vladimir Serbinenko <phcoder@gmail.com>
  15785. * kern/parser.c: Indented.
  15786. 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
  15787. * term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken).
  15788. 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
  15789. * video/fb/fbblit.c (grub_video_fbblit_blend_XXXA8888_1bit): Handle
  15790. alpha_mask_size == 0 case.
  15791. 2010-03-14 BVK Chaitanya <bvk.groups@gmail.com>
  15792. GRUB shell lexer and parser improvements.
  15793. * conf/any-emu.rmk: Build rule updates.
  15794. * conf/common.rmk: Likewise.
  15795. * conf/i386-coreboot.rmk: Likewise.
  15796. * conf/i386-efi.rmk: Likewise.
  15797. * conf/i386-ieee1275.rmk: Likewise.
  15798. * conf/i386-pc.rmk: Likewise.
  15799. * conf/powerpc-ieee1275.rmk: Likewise.
  15800. * conf/x86_64-efi.rmk: Likewise.
  15801. * configure.ac: Configure check for flex.
  15802. * include/grub/script_sh.h (grub_script_arg_type_t): More argument
  15803. types.
  15804. (grub_lexer_param): Struct member updates.
  15805. (grub_parser_param): Likewise.
  15806. (GRUB_LEXER_TOKEN_MAX): Maximum token size.
  15807. (GRUB_LEXER_RECORD_INCREMENT): Memory increments' size.
  15808. (grub_script_lexer_init): Prototype update.
  15809. (grub_script_lexer_record_start): Likewise.
  15810. (grub_script_lexer_record_stop): Likewise.
  15811. (grub_script_lexer_yywrap): New function prototype.
  15812. (grub_script_lexer_fini): Likewise.
  15813. (grub_script_execute_argument_to_string): Removed by...
  15814. (grub_script_execute_argument_to_argv): ...better version.
  15815. * script/execute.c (ROUND_UPTO): New macro.
  15816. (grub_script_execute_cmdline): Out of memory fixes.
  15817. (grub_script_execute_menuentry): Likewise.
  15818. (grub_script_execute_argument_to_string): Removed. Update all
  15819. users by...
  15820. (grub_script_execute_argument_to_argv): ...better version.
  15821. * script/function.c (grub_script_function_create): Use
  15822. grub_script_execute_argument_to_argv instead of
  15823. grub_script_execute_argument_to_string.
  15824. * script/lexer.c (check_varstate): Removed.
  15825. (check_textstate): Removed.
  15826. (grub_script_lexer_record_start): Likewise.
  15827. (grub_script_lexer_record_stop): Likewise.
  15828. (recordchar): Replaced with...
  15829. (grub_script_lexer_record): ...new function.
  15830. (nextchar): Removed.
  15831. (grub_script_lexer_init): Rewritten.
  15832. (grub_script_yylex): Rewritten.
  15833. (append_newline): New function.
  15834. (grub_script_lexer_yywrap): New function.
  15835. (grub_script_lexer_fini): New function.
  15836. (grub_script_yyerror): Sets error flag.
  15837. * script/yylex.l: New file.
  15838. (grub_lexer_yyfree): Wrapper for flex yyffre.
  15839. (grub_lexer_yyalloc): Likewise.
  15840. (grub_lexer_yyrealloc): Likewise.
  15841. * script/parser.y: Refactored.
  15842. * script/script.c (grub_script_arg_add): Out of memory fixes.
  15843. (grub_script_add_arglist): Likewise.
  15844. (grub_script_create_cmdline): Likewise.
  15845. (grub_script_create_cmdmenu): Likewise.
  15846. (grub_script_add_cmd): Likewise.
  15847. (grub_script_parse): Use grub_script_lexer_fini to deallocated.
  15848. * util/grub-script-check.c (grub_script_execute_menuentry): Remove
  15849. unnecessary code.
  15850. * tests/grub_script_echo1.in: New testcase.
  15851. * tests/grub_script_vars1.in: New testcase.
  15852. * tests/grub_script_echo_keywords.in: New testcase.
  15853. 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
  15854. Remove some redundancy in build system.
  15855. * Makefile.in (TARGET_CFLAGS): Add -ffreestanding.
  15856. (TARGET_ASFLAGS): Add -nostdinc -fno-builtin.
  15857. (TARGET_LDFLAGS): Add -nostdlib.
  15858. (TARGET_IMG_LDFLAGS): Likewise.
  15859. * commands/lsmmap.c (grub_cmd_lsmmap) [GRUB_MACHINE_EMU]: Don't do
  15860. anything since mmap isn't available.
  15861. * conf/any-emu.rmk (kernel_img_SOURCES): Remove commands/boot.c.
  15862. Add util/time.c.
  15863. (pkglib_MODULES): Remove reboot.mod.
  15864. (reboot_mod_SOURCES): Removed.
  15865. (reboot_mod_CFLAGS): Likewise.
  15866. (reboot_mod_LDFLAGS): Likewise.
  15867. * conf/common.rmk (script/lexer.c_DEPENDENCIES): New variable.
  15868. (MOSTLYCLEANFILES): Add symlist.c kernel_syms.lst.
  15869. (DEFSYMFILES): Add kernel_syms.lst.
  15870. (kernel_img_HEADERS): Add common headers.
  15871. (symlist.c): New target.
  15872. (kernel_syms.lst): Likewise.
  15873. (pkglib_MODULES): Add memdisk.mod.
  15874. (memdisk_mod_SOURCES): New variable.
  15875. (memdisk_mod_CFLAGS): Likewise.
  15876. (memdisk_mod_LDFLAGS): Likewise.
  15877. (pkglib_MODULES): Add reboot.mod.
  15878. (reboot_mod_SOURCES): New variable.
  15879. (reboot_mod_CFLAGS): Likewise.
  15880. (reboot_mod_LDFLAGS): Likewise.
  15881. (pkglib_MODULES): Add date.mod.
  15882. (date_mod_SOURCES): New variable.
  15883. (date_mod_CFLAGS): Likewise.
  15884. (date_mod_LDFLAGS): Likewise.
  15885. (pkglib_MODULES): Add datehook.mod.
  15886. (datehook_mod_SOURCES): New variable.
  15887. (datehook_mod_CFLAGS): Likewise.
  15888. (datehook_mod_LDFLAGS): Likewise.
  15889. (pkglib_MODULES): Add lsmmap.mod.
  15890. (lsmmap_mod_SOURCES): New variable.
  15891. (lsmmap_mod_CFLAGS): Likewise.
  15892. (lsmmap_mod_LDFLAGS): Likewise.
  15893. (pkglib_MODULES): Add boot.mod.
  15894. (boot_mod_SOURCES): New variable.
  15895. (boot_mod_CFLAGS): Likewise.
  15896. (boot_mod_LDFLAGS): Likewise.
  15897. * conf/i386-coreboot.rmk: Removed redundant parts.
  15898. * conf/i386-ieee1275.rmk: Likewise.
  15899. * conf/i386-pc.rmk: Likewise.
  15900. * conf/mips-yeeloong.rmk: Likewise.
  15901. * conf/mips.rmk: Likewise.
  15902. * conf/powerpc-ieee1275.rmk: Likewise.
  15903. * conf/sparc64-ieee1275.rmk: Likewise.
  15904. * conf/x86_64-efi.rmk: Likewise.
  15905. * conf/i386-coreboot.rmk: Moved qemu parts ..
  15906. * conf/i386-qemu.rmk: ... here
  15907. * conf/i386-efi.rmk: Moved common parts to...
  15908. * conf/x86-efi.rmk: ... here.
  15909. * conf/i386.rmk: Added modules common to all x86 variants.
  15910. * configure.ac: Add -m32/-m64 to TARGET_ASFLAGS.
  15911. * disk/memdisk.c: Remove grub/machine/kernel.h.
  15912. * gensymlist.sh.in: Include symbol.h.
  15913. * hook/datehook.c: Correct module name.
  15914. * include/grub/datetime.h (grub_get_datetime) [GRUB_MACHINE_EMU]: Export.
  15915. (grub_set_datetime) [GRUB_MACHINE_EMU]: Likewise.
  15916. * include/grub/i386/efi/serial.h: New file.
  15917. * include/grub/x86_64/efi/serial.h: Likewise.
  15918. * util/time.c: Likewise.
  15919. * video/ieee1275.c (grub_video_ieee1275_setup): Handle 64-bit void *.
  15920. 2010-03-14 Colin King <colin.king@ubuntu.com>
  15921. 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
  15922. Shrink the pre-partition-table part of boot.img by eight bytes.
  15923. * boot/i386/pc/boot.S (ERR): New macro.
  15924. (chs_mode): Use ERR.
  15925. (geometry_error): Likewise.
  15926. (hd_probe_error): Remove. This is only used once, so we wrwite
  15927. it inline instead.
  15928. (read_error): Instead of printing read_error_string, just set up
  15929. %si and fall through to ...
  15930. (error_message): ... this new function, also used by ERR.
  15931. 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
  15932. Speed up consecutive hostdisk operations on the same device.
  15933. * util/hostdisk.c (struct grub_util_biosdisk_data): New structure.
  15934. (grub_util_biosdisk_open): Initialise disk->data.
  15935. (struct linux_partition_cache): New structure.
  15936. (linux_find_partition): Cache partition start positions; these are
  15937. expensive to compute on every read and write.
  15938. (open_device): Cache open file descriptor in disk->data, so that we
  15939. don't have to reopen it and flush the buffer cache for consecutive
  15940. operations on the same device.
  15941. (grub_util_biosdisk_close): New function.
  15942. (grub_util_biosdisk_dev): Set `close' member.
  15943. * conf/common.rmk (grub_probe_SOURCES): Add kern/list.c.
  15944. * conf/i386-efi.rmk (grub_setup_SOURCES): Likewise.
  15945. * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
  15946. * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
  15947. * conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise.
  15948. 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
  15949. Compile parts of grub-emu as modules.
  15950. * Makefile.in (TARGET_CPPFLAGS) [emu]: Remove -nostdinc -isystem.
  15951. (pkglib_DATA) [emu]: Remove moddep.lst command.lst fs.lst
  15952. partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst.
  15953. (all-local): Add $(GRUB_EMU).
  15954. (install-local): Install $(GRUB_EMU).
  15955. (uninstall): Uninstall $(GRUB_EMU).
  15956. * commands/parttool.c: Replace GRUB_UTIL with GRUB_NO_MODULES.
  15957. * kern/dl.c: Likewise.
  15958. * commands/sleep.c: Not include machine/time.h.
  15959. * conf/any-emu.rmk (COMMON_LDFLAGS): New variable.
  15960. (COMMON_CFLAGS): Likewise.
  15961. (sbin_UTILITIES): Remove grub-emu.
  15962. (grub_emu_SOURCES): Removed.
  15963. (kernel_img_RELOCATABLE): New variable.
  15964. (pkglib_PROGRAMS): Add kernel.img.
  15965. (kernel_img_SOURCES): New variable
  15966. (kernel_img_CFLAGS): Likewise.
  15967. (kernel_img_LDFLAGS): Likewise.
  15968. (TARGET_NO_STRIP): Likewise.
  15969. (TARGET_NO_DYNAMIC_MODULES): Likewise.
  15970. (pkglib_MODULES): Add progname.mod, hostfs.mod, host.mod, reboot.mod,
  15971. halt.mod, cpuid.mod, usb.mod, sdl.mod and pci.mod.
  15972. (grub-emu): New target.
  15973. (GRUB_EMU): New variable.
  15974. * configure.ac: Whitelist -emu as possible x86_64 architecture.
  15975. * efiemu/main.c: Replace GRUB_UTIL with GRUB_MACHINE_EMU.
  15976. * loader/xnu.c: Likewise.
  15977. * include/grub/pci.h: Likewise.
  15978. * genemuinit.sh: New file.
  15979. * genemuinitheader.sh: Likewise.
  15980. * genmk.rb: Don't strip if TARGET_NO_STRIP is yes.
  15981. Support TARGET_NO_DYNAMIC_MODULES.
  15982. * include/grub/dl.h (GRUB_NO_MODULES): New variable.
  15983. * commands/search.c: Fix GRUB_MOD_INIT and GRUB_MOD_FINI arguments.
  15984. * disk/loopback.c: Likewise.
  15985. * font/font_cmd.c: Likewise.
  15986. * partmap/acorn.c: Likewise.
  15987. * partmap/amiga.c: Likewise.
  15988. * partmap/apple.c: Likewise.
  15989. * partmap/gpt.c: Likewise.
  15990. * partmap/msdos.c: Likewise.
  15991. * partmap/sun.c: Likewise.
  15992. * parttool/msdospart.c: Likewise.
  15993. * term/gfxterm.c: Likewise.
  15994. * video/bitmap.c: Likewise.
  15995. * video/readers/jpeg.c: Likewise.
  15996. * video/readers/png.c: Likewise.
  15997. * video/readers/tga.c: Likewise.
  15998. * video/video.c: Likewise.
  15999. * util/grub-emu.c (read_command_list): Removed.
  16000. (main): Don't call util_init_nls.
  16001. * util/misc.c (grub_err_printf) [!GRUB_UTIL]: Removed.
  16002. (grub_util_init_nls) [!GRUB_UTIL]: Likewise.
  16003. 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
  16004. * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add datetime.mod,
  16005. date.mod, datehook.mod.
  16006. (datetime_mod_SOURCES): New variable.
  16007. (datetime_mod_CFLAGS): Likewise.
  16008. (datetime_mod_LDFLAGS): Likewise.
  16009. (date_mod_SOURCES): Likewise.
  16010. (date_mod_CFLAGS): Likewise.
  16011. (date_mod_LDFLAGS): Likewise.
  16012. (datehook_mod_SOURCES): Likewise.
  16013. (datehook_mod_CFLAGS): Likewise.
  16014. (datehook_mod_LDFLAGS): Likewise.
  16015. * conf/sparc64-ieee1275.rmk: Likewise.
  16016. * lib/ieee1275/datetime.c: New file.
  16017. 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
  16018. * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add ieee1275_fb.mod.
  16019. (ieee1275_fb_mod_SOURCES): New variable.
  16020. (ieee1275_fb_mod_CFLAGS): Likewise.
  16021. (ieee1275_fb_mod_LDFLAGS): Likewise.
  16022. * include/grub/ieee1275/ieee1275.h (grub_ieee1275_devices_iterate):
  16023. New proto.
  16024. * kern/ieee1275/init.c (HEAP_MAX_SIZE): Increased.
  16025. (HEAP_MAX_ADDR): Likewise.
  16026. * kern/ieee1275/openfw.c (grub_children_iterate): Don't skip empty
  16027. type.
  16028. Correct stop condition.
  16029. (grub_ieee1275_devices_iterate): New function.
  16030. * video/ieee1275.c: New file.
  16031. 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
  16032. Merge sparc grub-mkimage into generic grub-mkimage and a.out support.
  16033. * boot/sparc64/ieee1275/boot.S (boot_continue): Use SCRATCH_PAD_BOOT
  16034. as scratch.
  16035. * boot/sparc64/ieee1275/diskboot.S (after_info_block): Use
  16036. SCRATCH_PAD_DISKBOOT as scratch.
  16037. (bootit): Pass Openfirmware pointer in %o4.
  16038. * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link at 0x4400 instead
  16039. of 0x200000.
  16040. (grub_mkimage_SOURCES): Replace util/sparc64/ieee1275/grub-mkimage.c
  16041. with util/grub-mkrawimage.c.
  16042. * configure.ac: Handle GRUB_MACHINE_SPARC64 and GRUB_MACHINE_MIPS.
  16043. * include/grub/aout.h (AOUT_MID_SUN): New definition.
  16044. (grub_aout_get_type) [GRUB_UTIL]: Removed.
  16045. (grub_aout_load) [GRUB_UTIL]: Likewise.
  16046. * include/grub/kernel.h (grub_modules_get_end): New proto.
  16047. * include/grub/sparc64/ieee1275/boot.h (SCRATCH_PAD): Removed.
  16048. (SCRATCH_PAD_BOOT): New definition.
  16049. (SCRATCH_PAD_DISKBOOT): Likewise.
  16050. (GRUB_BOOT_MACHINE_IMAGE_ADDRESS): Set to 0x4400.
  16051. * include/grub/sparc64/ieee1275/ieee1275.h
  16052. (grub_ieee1275_original_stack): New variable
  16053. * include/grub/sparc64/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
  16054. New definition
  16055. (GRUB_KERNEL_MACHINE_STACK_SIZE): Likewise.
  16056. (GRUB_PLATFORM_IMAGE_FORMATS): Likewise.
  16057. (GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT): Likewise.
  16058. (GRUB_PLATFORM_IMAGE_DEFAULT): Likewise.
  16059. (GRUB_PLATFORM_IMAGE_RAW): Likewise.
  16060. (GRUB_PLATFORM_IMAGE_AOUT): Likewise.
  16061. (grub_platform_image_format_t): New type.
  16062. * kern/mips/yeeloong/init.c (grub_modules_get_end): Move from here ...
  16063. * kern/main.c (grub_modules_get_end)
  16064. [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_SPARC64]: ... here.
  16065. * kern/sparc64/ieee1275/crt0.S: Store firmware entry point in %o0.
  16066. (codestart): Switch stacks.
  16067. * kern/sparc64/ieee1275/init.c (grub_ieee1275_original_stack): New
  16068. variable.
  16069. (grub_heap_init): Use grub_modules_get_end.
  16070. * loader/sparc64/ieee1275/linux.c (grub_linux_boot): Restore original
  16071. stack.
  16072. * util/grub-mkrawimage.c (generate_image): Support sparc64.
  16073. (main): Likewise.
  16074. * util/sparc64/ieee1275/grub-mkimage.c: Removed.
  16075. 2010-03-14 Thorsten Glaser <tg@mirbsd.org>
  16076. * util/grub-mkrescue.in: Base ISO UUID on UTC.
  16077. 2010-03-08 Matt Kraai <kraai@ftbfs.org>
  16078. * util/i386/pc/grub-setup.c (setup): Fix a grammatical error (Debian
  16079. bug #559005).
  16080. 2010-03-07 Vladimir Serbinenko <phcoder@gmail.com>
  16081. * genmoddep.awk: Output all missing symbols and not only first.
  16082. 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
  16083. * NEWS: Put the date of 1.98 release.
  16084. 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
  16085. * configure.ac: Update CPPFLAGS and not CFLAGS when checking for
  16086. ft2build.h.
  16087. 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
  16088. * normal/cmdline.c (grub_cmdline_get): Fix gabled line after
  16089. completition in the middle of string.
  16090. 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
  16091. * util/grub-mkrescue.in: Use mktemp with explicit template.
  16092. 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
  16093. * loader/i386/bsd.c (grub_bsd_get_device): Fix a memory leak.
  16094. 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
  16095. * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Free the
  16096. right pointer.
  16097. 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
  16098. Fix FreeBSD compilation.
  16099. * Makefile.in (TARGET_CPPFLAGS): Remove -nostdinc -isystem.
  16100. * configure.ac: Add -nostdinc -isystem to TARGET_CPPFLAGS if it works.
  16101. 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
  16102. * util/import_gcry.py: Add autogenerated files to MAINTAINER_CLEANFILES.
  16103. 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
  16104. * gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
  16105. 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
  16106. * disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
  16107. 2010-03-04 Robert Millan <rmh.grub@aybabtu.com>
  16108. Support relative image path in theme file.
  16109. * gfxmenu/gui_image.c (grub_gui_image): New member theme_dir.
  16110. (image_set_property): Handle theme_dir and relative path.
  16111. 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
  16112. * configure.ac: Alias amd64 to x86_64.
  16113. 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
  16114. * NEWS: mention multiboot on EFI.
  16115. 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
  16116. * kern/main.c (grub_load_modules): Handle errors from init functions of
  16117. embeded modules.
  16118. 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
  16119. * normal/autofs.c (autoload_fs_module): Handle errors.
  16120. 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
  16121. Disable linux.mod on qemu-mips since it's not functional and leads
  16122. to compilation failure.
  16123. * conf/mips.rmk (pkglib_MODULES): Remove linux.mod.
  16124. * conf/mips-yeeloong.rmk (pkglib_MODULES): Add linux.mod.
  16125. * conf/mips.rmk (linux_mod_SOURCES): Move from here ...
  16126. * conf/mips-yeeloong.rmk (linux_mod_SOURCES): ... here
  16127. * conf/mips.rmk (linux_mod_CFLAGS): Move from here ...
  16128. * conf/mips-yeeloong.rmk (linux_mod_CFLAGS): ... here
  16129. * conf/mips.rmk (linux_mod_ASFLAGS): Move from here ...
  16130. * conf/mips-yeeloong.rmk (linux_mod_ASFLAGS): ... here
  16131. * conf/mips.rmk (linux_mod_LDFLAGS): Move from here ...
  16132. * conf/mips-yeeloong.rmk (linux_mod_LDFLAGS): ... here
  16133. Reported by: BVK Chaitanya
  16134. 2010-03-04 Jordan Uggla <jordan.uggla@gmail.com>
  16135. * INSTALL: Add gettext as a dependency and add qemu to a new section
  16136. "Prerequisites for make-check".
  16137. 2010-03-04 Christian Franke <franke@computer.org>
  16138. * util/grub-pe2elf.c: Add missing include "progname.h".
  16139. 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
  16140. * normal/crypto.c (read_crypto_list): Fix a typo.
  16141. Reported by: Seth Goldberg.
  16142. 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
  16143. * Makefile.in (DISTCLEANFILES): Add stamp-h1.
  16144. Reported by: Seth Goldberg.
  16145. 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
  16146. * Makefile.in (CLEANFILES) [FONT_SOURCE && grub_mkfont]: Add
  16147. ascii.bitmaps.
  16148. 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
  16149. * genmk.rb: Remove terminal*.lst in make clean.
  16150. Reported by: Seth Goldberg.
  16151. 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
  16152. * util/i386/efi/grub-install.in: Copy gettext files.
  16153. 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
  16154. * fs/ext2.c (grub_ext2_read_block): Fix an integer overflow.
  16155. 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
  16156. Wait for user entry basing on presence of output rather than on errors.
  16157. * include/grub/normal.h (grub_normal_get_line_counter): New proto.
  16158. (grub_install_newline_hook): Likewise.
  16159. * normal/main.c (GRUB_MOD_INIT): Call grub_install_newline_hook.
  16160. * normal/menu.c (show_menu): Check line_counter to determine presence
  16161. of output.
  16162. * normal/term.c (grub_normal_line_counter): New variable.
  16163. (grub_normal_get_line_counter): New function.
  16164. (grub_install_newline_hook): Likewise.
  16165. 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
  16166. * commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.
  16167. 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
  16168. * configure.ac: Update version to 1.98.
  16169. 2010-02-26 Vladimir Serbinenko <phcoder@gmail.com>
  16170. * util/grub.d/10_linux.in (linux_entry): Don't default to
  16171. gfxpayload=keep if Linux doesn't support video handover.
  16172. 2010-02-25 Vladimir Serbinenko <phcoder@gmail.com>
  16173. Don't compile video modules on yeeloong since video subsystem is part
  16174. of kernel.
  16175. * conf/common.rmk (pkglib_MODULES) [yeeloong]: Remove video.mod,
  16176. video_fb.mod, bitmap.mod, font.mod, gfxterm.mod and bufio.mod
  16177. * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add bitmap.h,
  16178. video.h, gfxterm.h, font.h, bitmap_scale.h and bufio.h.
  16179. * conf/mips.rmk (kernel_img_HEADERS): Add values instead of overwriting.
  16180. * include/grub/bitmap.h: Add EXPORT_FUNC and EXPORT_VAR.
  16181. * include/grub/bitmap_scale.h: Likewise.
  16182. * include/grub/bufio.h: Likewise.
  16183. * include/grub/font.h: Likewise.
  16184. * include/grub/gfxterm.h: Likewise.
  16185. * include/grub/video.h: Likewise.
  16186. * include/grub/vbe.h: Don't include video_fb.h.
  16187. * video/i386/pc/vbe.c: Include video_fb.h.
  16188. * commands/i386/pc/vbetest.c: Include video.h.
  16189. 2010-02-25 Jordan Uggla <jordan.uggla@gmail.com>
  16190. * util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable.
  16191. * util/grub-mkconfig_lib.in (save_default_entry): Only save a new
  16192. default entry if GRUB_SAVEDEFAULT=true. This allows using
  16193. GRUB_DEFAULT=saved on its own to let grub-reboot work, without
  16194. saving a new default on every boot.
  16195. 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
  16196. * normal/crypto.c (read_crypto_list): Fix a memory leak.
  16197. * normal/term.c (read_terminal_list): Likewise.
  16198. * normal/main.c (grub_normal_init_page): Likewise.
  16199. (grub_normal_read_line_real): Likewise.
  16200. 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
  16201. * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Fix a
  16202. memory leak.
  16203. Reported by: Seth Goldberg.
  16204. 2010-02-24 Joey Korkames <joey+lists@kidfixit.com>
  16205. * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Remove
  16206. duplicate declaration of `start'.
  16207. 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
  16208. * fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet
  16209. filename.
  16210. Reported by: Georgy Buranov
  16211. 2010-02-20 Carles Pina i Estany <carles@pina.cat>
  16212. * util/grub-mkrawimage.c (usage): Change string formatting to
  16213. improve gettext.
  16214. 2010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com>
  16215. * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
  16216. backspace keys.
  16217. 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
  16218. * video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
  16219. Reported by: Michael Suchanek.
  16220. 2010-02-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
  16221. * util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
  16222. * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.
  16223. 2010-02-16 Vladimir Serbinenko <phcoder@gmail.com>
  16224. Remove any reference to non-free fonts.
  16225. * commands/videotest.c (grub_cmd_videotest): Use unifont by default.
  16226. * docs/gfxmenu-theme-example.txt: Removed. It's both outdated and
  16227. uses non-free components.
  16228. * font/font.c (grub_font_get_name): Remove example name.
  16229. * gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default.
  16230. * gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
  16231. * gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise.
  16232. * gfxmenu/view.c (grub_gfxmenu_view_new): Likewise.
  16233. 2010-02-16 Georgy Buranov <gburanov@gmail.com>
  16234. * disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo.
  16235. 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
  16236. * term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]:
  16237. Double divisor.
  16238. (serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced
  16239. features.
  16240. (GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200.
  16241. 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
  16242. * gensymlist.sh.in: Use TARGET_CC instead of CC.
  16243. 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
  16244. * commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
  16245. * docs/grub.texi (Command-line and menu entry commands): Document play
  16246. command.
  16247. 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
  16248. * commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
  16249. parse arguments as inline tempo and notes. Move code for playing notes
  16250. to...
  16251. (play): ... new function.
  16252. 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
  16253. * commands/i386/pc/play.c (T_REST, T_FINE, struct note, beep_on): Use
  16254. grub_uint16_t instead of short.
  16255. (grub_cmd_play): Use grub_uint32_t instead of int, convert data from
  16256. disk from little endian to cpu endianness.
  16257. 2010-02-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
  16258. * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 *
  16259. GRUB_TICKS_PER_SECOND instead of 120.
  16260. 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
  16261. * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible
  16262. escape sequence after \e.
  16263. 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
  16264. * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output
  16265. non-ASCII characters.
  16266. 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
  16267. * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
  16268. set root in single quotes to prevent \, from being unescaped.
  16269. 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
  16270. Prevent unknown commands from stopping menuentry execution.
  16271. * script/execute.c (grub_script_execute_cmdline): Print error after
  16272. unknown command.
  16273. 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
  16274. * fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo.
  16275. Reported by: Pavel Pisa.
  16276. 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
  16277. * io/gzio.c (grub_gzio_open): Use grub_zalloc.
  16278. 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
  16279. Merge grub_ieee1275_map_physical into grub_map and rename to
  16280. grub_ieee1275_map
  16281. * include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto.
  16282. * include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical):
  16283. Remove.
  16284. * kern/ieee1275/openfw.c (grub_map): Rename to ...
  16285. (grub_ieee1275_map): ... this. All users updated. Add phys_lo when
  16286. necessary.
  16287. * kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove.
  16288. 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
  16289. * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before
  16290. opening and not after.
  16291. 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
  16292. * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Macroify
  16293. constants.
  16294. 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
  16295. * loader/sparc64/ieee1275/linux.c (align_addr): Remove.
  16296. (alloc_phys): Use ALIGN_UP instead of align_addr.
  16297. 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
  16298. * loader/sparc64/ieee1275/linux.c (alloc_phys): Correct bounds checking.
  16299. 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
  16300. * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.
  16301. 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
  16302. * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively
  16303. verbose dprintf.
  16304. 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
  16305. Fix over-4GiB seek on sparc64.
  16306. * include/grub/ieee1275/ieee1275.h (grub_ieee1275_seek):
  16307. Replace pos_i and pos_lo with pos. All users updated.
  16308. * include/grub/powerpc/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
  16309. New constant.
  16310. * include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
  16311. Likewise.
  16312. * kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi
  16313. and pos_lo.
  16314. 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
  16315. * util/grub-mkrawimage.c (main): Call set_program_name.
  16316. 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
  16317. Properly align 64-bit targets.
  16318. * util/grub-mkrawimage.c (ALIGN_ADDR): New macro.
  16319. (generate_image): Use ALIGN_ADDR.
  16320. 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
  16321. Properly create cross-endian images.
  16322. * include/grub/types.h (grub_host_to_target_addr): New macro
  16323. * util/grub-mkrawimage.c (generate_image): Add missing host_to_target.
  16324. 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
  16325. * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.
  16326. 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
  16327. Pass SIMPLE framebuffer size in bytes and not 64K blocks.
  16328. * loader/i386/efi/linux.c (grub_linux_setup_video): Don't divide by 64K.
  16329. * loader/i386/linux.c (grub_linux_setup_video): Likewise.
  16330. (grub_linux_boot): Divide by 64K when on VESA.
  16331. 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
  16332. Support GRUB_GFXPAYLOAD_LINUX.
  16333. * util/grub-mkconfig.in: Export GRUB_GFXPAYLOAD_LINUX.
  16334. * util/grub.d/10_linux.in (linux_entry): Handle GRUB_GFXPAYLOAD_LINUX.
  16335. 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
  16336. * script/execute.c (grub_script_execute_cmdline): Use grub_print_error
  16337. to show messages instead of discarding them.
  16338. Process errors after executing command and not before. Keep old method
  16339. too as precaution.
  16340. 2010-02-09 Vladimir Serbinenko <phcoder@gmail.com>
  16341. * configure.ac: Check for ft2build.h.
  16342. 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
  16343. * kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff".
  16344. 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
  16345. * genkernsyms.sh.in: Use TARGET_CC.
  16346. 2010-02-07 Colin Watson <cjwatson@ubuntu.com>
  16347. * NEWS: Update.
  16348. 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
  16349. * include/grub/multiboot2.h: Remove leftover file.
  16350. * include/grub/normal.h [GRUB_UTIL]: Remove leftover declarations.
  16351. * include/grub/partition.h [GRUB_UTIL]: Likewise.
  16352. 2010-02-07 Yves Blusseau <blusseau@zetam.org>
  16353. * gnulib/getdelim.c: add missing header (type ssize_t must be defined).
  16354. 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
  16355. Fix warnings in grub-emu when compiling with maximum warning options.
  16356. * util/grub-emu.c (ENABLE_RELOCATABLE): New definition.
  16357. (grub_arch_modules_addr): Return 0 and not NULL.
  16358. * util/misc.c (ENABLE_RELOCATABLE): New definition.
  16359. (xstrdup): Use newstr instead of dup.
  16360. * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance
  16361. of disk to dsk to avoid shadowing.
  16362. (find_free_slot): Fix prototype.
  16363. * util/getroot.c (grub_util_is_dmraid): Make static.
  16364. * include/grub/time.h (grub_get_rtc) [GRUB_MACHINE_EMU || GRUB_UTIL]:
  16365. Add missing prototype.
  16366. * util/sdl.c (grub_video_sdl_set_viewport): Remove.
  16367. 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
  16368. * loader/i386/linux.c (grub_linux_setup_video): Handle error
  16369. appropriately.
  16370. 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
  16371. * fs/reiserfs.c (grub_reiserfs_read): Use #if 0 instead of commenting
  16372. code out.
  16373. 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
  16374. * include/grub/cache.h (grub_arch_sync_caches) [i386 || x86_64]: Inline.
  16375. * kern/i386/coreboot/init.c (grub_arch_sync_caches): Remove.
  16376. * kern/i386/efi/init.c (grub_arch_sync_caches): Likewise.
  16377. * kern/i386/ieee1275/init.c (grub_arch_sync_caches): Likewise.
  16378. * kern/i386/pc/init.c (grub_arch_sync_caches): Likewise.
  16379. * util/misc.c (grub_arch_sync_caches) [i386 || x86_64]: Likewise.
  16380. 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
  16381. * include/grub/err.h (grub_err_printf): Don't export.
  16382. 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
  16383. * include/grub/dl.h (grub_dl_register_symbol): Don't export.
  16384. 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
  16385. * include/grub/i18n.h (grub_gettext_dummy): Removed.
  16386. * kern/misc.c (grub_gettext_dummy): Make static.
  16387. 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
  16388. * kern/misc.c (grub_utf8_to_ucs4): Don't eat valid characters preceeded
  16389. by non-valid ones.
  16390. * kern/term.c (grub_putchar): Likewise.
  16391. 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
  16392. * partmap/sun.c (sun_partition_map_iterate): Restructure flow to fix
  16393. buggy hook call and memory leak.
  16394. 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
  16395. * commands/ls.c (grub_ls_list_files): Free pathname on exit.
  16396. 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
  16397. * fs/fat.c (grub_fat_iterate_dir): Free unibuf at exit.
  16398. 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
  16399. * loader/i386/pc/xnu.c (grub_xnu_set_video): Add const qualifier to
  16400. modevar.
  16401. Return grub_errno on allocation error.
  16402. 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
  16403. * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Correct error handling.
  16404. 2010-02-06 Yves Blusseau <blusseau@zetam.org>
  16405. * conf/common.rmk (grub_script_check_SOURCES): add missing dependencies.
  16406. (grub_mkpasswd_pbkdf2_SOURCES): Likewise.
  16407. 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
  16408. * fs/i386/pc/pxe.c (grub_pxefs_dir): Return with failure on
  16409. non-pxe disk.
  16410. (grub_pxefs_open): Likewise.
  16411. 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
  16412. * util/grub.d/10_hurd.in: Add --class information to menuentries.
  16413. * util/grub.d/10_kfreebsd.in: Likewise.
  16414. * util/grub.d/10_linux.in: Likewise.
  16415. 2010-02-06 Colin D Bennett <colin@gibibit.com>
  16416. * conf/common.rmk (pkglib_MODULES): Add gfxmenu.mod.
  16417. (gfxmenu_mod_SOURCES): New variable.
  16418. (gfxmenu_mod_CFLAGS): Likewise.
  16419. (gfxmenu_mod_LDFLAGS): Likewise.
  16420. * include/grub/term.h (grub_term_set_current_output): Declare
  16421. argument as const.
  16422. * docs/gfxmenu-theme-example.txt: New file.
  16423. * gfxmenu/gfxmenu.c: Likewise.
  16424. * gfxmenu/gui_box.c: Likewise.
  16425. * gfxmenu/gui_canvas.c: Likewise.
  16426. * gfxmenu/gui_circular_progress.c: Likewise.
  16427. * gfxmenu/gui_image.c: Likewise.
  16428. * gfxmenu/gui_label.c: Likewise.
  16429. * gfxmenu/gui_list.c: Likewise.
  16430. * gfxmenu/gui_progress_bar.c: Likewise.
  16431. * gfxmenu/gui_string_util.c: Likewise.
  16432. * gfxmenu/gui_util.c: Likewise.
  16433. * gfxmenu/icon_manager.c: Likewise.
  16434. * gfxmenu/model.c: Likewise.
  16435. * gfxmenu/named_colors.c: Likewise.
  16436. * gfxmenu/theme_loader.c: Likewise.
  16437. * gfxmenu/view.c: Likewise.
  16438. * gfxmenu/widget-box.c: Likewise.
  16439. * include/grub/gfxmenu_model.h: Likewise.
  16440. * include/grub/gfxmenu_view.h: Likewise.
  16441. * include/grub/gfxwidgets.h: Likewise.
  16442. * include/grub/gui.h: Likewise.
  16443. * include/grub/gui_string_util.h: Likewise.
  16444. * include/grub/icon_manager.h: Likewise.
  16445. 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
  16446. Agglomerate scrolling in gfxterm.
  16447. * term/gfxterm.c (grub_virtual_screen): New member 'total_screen'.
  16448. (grub_virtual_screen_setup): Initialise 'total_screen'.
  16449. (write_char): Split to ...
  16450. (paint_char): ... this ...
  16451. (write_char): ... and this.
  16452. (paint_char): Handle delayed scrolling.
  16453. (draw_cursor): Likewise.
  16454. (scroll_up): Split to ...
  16455. (real_scroll): ... this ...
  16456. (scroll_up): ... and this.
  16457. (real_scroll): Handle multi-line scroll and draw below-the-bottom
  16458. characters.
  16459. (grub_gfxterm_refresh): Call real_scroll.
  16460. 2010-02-06 Colin D Bennett <colin@gibibit.com>
  16461. * include/grub/misc.h (grub_iscntrl): New inline function.
  16462. (grub_isalnum): Likewise.
  16463. (grub_strtol): Likewise.
  16464. 2010-02-06 Colin D Bennett <colin@gibibit.com>
  16465. * normal/menu_text.c (get_entry_number): Move from here ...
  16466. * normal/menu.c (get_entry_number): ... moved here.
  16467. * include/grub/menu.h (grub_menu_get_default_entry_index):
  16468. New prototype.
  16469. * normal/menu.c (grub_menu_get_default_entry_index): New function.
  16470. * normal/menu_text.c (run_menu): Use grub_menu_get_default_entry_index.
  16471. * include/grub/menu_viewer.h (grub_menu_viewer_init): New prototype.
  16472. (grub_menu_viewer_should_return): Likewise.
  16473. * normal/main.c (GRUB_MOD_INIT (normal)): Call grub_menu_viewer_init.
  16474. * normal/menu_text.c (run_menu): Enable menu switching.
  16475. * normal/menu_viewer.c (should_return): New variable.
  16476. (menu_viewer_changed): Likewise.
  16477. (grub_menu_viewer_show_menu): Handle menu viewer changes.
  16478. (grub_menu_viewer_should_return): New function.
  16479. (menuviewer_write_hook): Likewise.
  16480. (grub_menu_viewer_init): Likewise.
  16481. 2010-02-06 Colin D Bennet <colin@gibibit.com>
  16482. 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
  16483. Support for gfxterm in a window.
  16484. * include/grub/gfxterm.h: New file.
  16485. * include/grub/video.h (struct grub_video_rect): New declaration.
  16486. (grub_video_rect_t): Likewise.
  16487. * term/gfxterm.c (struct grub_gfxterm_window): New type.
  16488. (refcount): New variable.
  16489. (render_target): Likewise.
  16490. (window): Likewise.
  16491. (repaint_callback): Likewise.
  16492. (grub_virtual_screen_setup): Use 'render_target'.
  16493. (init_window): New function.
  16494. (grub_gfxterm_init_window): Likewise.
  16495. (grub_gfxterm_init): Check reference counter.
  16496. Use init_window.
  16497. (destroy_window): New function.
  16498. (grub_gfxterm_destroy_window): Likewise.
  16499. (grub_gfxterm_fini): Check reference counter.
  16500. Use destroy_window.
  16501. (redraw_screen_rect): Restore viewport.
  16502. Use 'render_target' and 'window'.
  16503. Call 'repaint_callback'.
  16504. (write_char): Use 'render_target'.
  16505. (draw_cursor): Likewise.
  16506. (scroll_up): Restore viewport.
  16507. Use 'render_target' and 'window'.
  16508. Call 'repaint_callback'.
  16509. (grub_gfxterm_cls): Likewise.
  16510. (grub_gfxterm_refresh): Use 'window'.
  16511. (grub_gfxterm_set_repaint_callback): New function.
  16512. (grub_gfxterm_background_image_cmd): Use 'window'.
  16513. (grub_gfxterm_get_term): New function.
  16514. (GRUB_MOD_INIT(term_gfxterm)): Set 'refcount' to 0.
  16515. 2010-02-06 Colin D Bennett <colin@gibibit.com>
  16516. Bitmap scaling support.
  16517. * conf/common.rmk (pkglib_MODULES): Add bitmap_scale.mod.
  16518. (bitmap_scale_mod_SOURCES): New variable.
  16519. (bitmap_scale_mod_CFLAGS): Likewise.
  16520. (bitmap_scale_mod_LDFLAGS): Likewise.
  16521. * include/grub/bitmap_scale.h: New file.
  16522. * term/gfxterm.c (BACKGROUND_CMD_ARGINDEX_MODE): New definiton.
  16523. (background_image_cmd_options): New variable.
  16524. (grub_gfxterm_background_image_cmd): Support bitmap stretching.
  16525. (cmd): Rename and change type to ...
  16526. (background_image_cmd_handle): ... this. All users updated.
  16527. (GRUB_MOD_INIT(term_gfxterm)): Make background_image extended command.
  16528. * video/bitmap_scale.c: New file.
  16529. 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
  16530. SDL support.
  16531. * Makefile.in (LIBSDL): New variable.
  16532. (enable_grub_emu_sdl): Likewise.
  16533. * conf/i386-pc.rmk (grub_emu_SOURCES): Add video files.
  16534. (grub_emu_SOURCES) [enable_grub_emu_sdl]: Add util/sdl.c.
  16535. (grub_emu_LDFLAGS) [enable_grub_emu_sdl]: Add $(LIBSDL).
  16536. * configure.ac: Detect SDL availability and add --enable-grub-emu-sdl
  16537. * util/sdl.c: New file.
  16538. 2010-02-06 Colin D Bennett <colin@gibibit.com>
  16539. 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
  16540. Double buffering support.
  16541. * commands/i386/pc/videotest.c (grub_cmd_videotest): Swap doublebuffers.
  16542. * include/grub/video.h: Update comment.
  16543. * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
  16544. New type.
  16545. (grub_video_fb_doublebuf_blit_init): New prototype.
  16546. * term/gfxterm.c (scroll_up): Support double buffering.
  16547. (grub_gfxterm_refresh): Likewise.
  16548. * video/fb/video_fb.c (doublebuf_blit_update_screen): New function.
  16549. (grub_video_fb_doublebuf_blit_init): Likewise.
  16550. * video/i386/pc/vbe.c (framebuffer): Remove 'render_target'. Add
  16551. 'front_target', 'back_target', 'offscreen_buffer', 'page_size',
  16552. 'displayed_page', 'render_page' and 'update_screen'.
  16553. (grub_video_vbe_fini): Free offscreen buffer.
  16554. (doublebuf_pageflipping_commit): New function.
  16555. (doublebuf_pageflipping_update_screen): Likewise.
  16556. (doublebuf_pageflipping_init): Likewise.
  16557. (double_buffering_init): Likewise.
  16558. (grub_video_vbe_setup): Enable doublebuffering.
  16559. (grub_video_vbe_swap_buffers): Implement.
  16560. (grub_video_vbe_set_active_render_target): Handle double buffering.
  16561. (grub_video_vbe_get_active_render_target): Likewise.
  16562. (grub_video_vbe_get_info_and_fini): Likewise. Free offscreen_buffer.
  16563. (grub_video_vbe_adapter): Use grub_video_vbe_get_active_render_target.
  16564. (grub_video_vbe_enable_double_buffering): Likewise.
  16565. (grub_video_vbe_swap_buffers): Use update_screen.
  16566. (grub_video_set_mode): Use double buffering.
  16567. 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
  16568. * maintainance/gentrigtables.py: Remove.
  16569. * lib/trig.c: Likewise.
  16570. * gentrigtables.c: New file. C rewrite of gentrigtables.py.
  16571. * conf/common.rmk (trig_mod_SOURCES): Replace `lib/trig.c' with
  16572. `trigtables.c'.
  16573. (trigtables.c): New rule.
  16574. (gentrigtables): Likewise.
  16575. (DISTCLEANFILES): Add `trigtables.c' and `gentrigtables'.
  16576. 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
  16577. * maintainance/gentrigtables.py: Avoid duplicate hardcoding of
  16578. integer constants.
  16579. 2010-02-06 Colin D Bennet <colin@gibibit.com>
  16580. Trigonometry support.
  16581. * include/grub/trig.h: New file.
  16582. * lib/trig.c: Likewise.
  16583. * maintainance/gentrigtables.py: Likewise.
  16584. * conf/common.rmk (pkglib_MODULES): Add trig.mod.
  16585. (trig_mod_SOURCES): New variable.
  16586. (trig_mod_CFLAGS): Likewise.
  16587. (trig_mod_LDFLAGS): Likewise.
  16588. 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
  16589. * kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Support whole
  16590. disk devices.
  16591. 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
  16592. * kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
  16593. error.
  16594. 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
  16595. * util/hostdisk.c (open_device): Don't use partition device when reading
  16596. before the partition.
  16597. (grub_util_biosdisk_read): Don't read from partition and before the
  16598. partition in single operation.
  16599. (grub_util_biosdisk_write): Don't write to partition and before the
  16600. partition in single operation.
  16601. 2010-02-03 Torsten Landschoff <torsten@debian.org>
  16602. * kern/disk.c (grub_disk_read): Fix offset computation when reading
  16603. last sectors.
  16604. 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
  16605. * disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned
  16606. CDROM reads.
  16607. (grub_biosdisk_write): Refuse to write to CDROM.
  16608. 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
  16609. * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
  16610. 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
  16611. * font/font.c (find_glyph): Check that bmp_idx is available before
  16612. using it.
  16613. (grub_font_get_string_width): Never call grub_font_get_glyph_internal
  16614. with (font == NULL).
  16615. 2010-01-28 Christian Schmitt <chris@ilovelinux.de>
  16616. * util/ieee1275/grub-install.in: Fix nvsetenv arguments.
  16617. 2010-01-28 BVK Chaitanya <bvk.groups@gmail.com>
  16618. * include/grub/script_sh.h (sourcecode): Add const qualifier.
  16619. * util/grub-script-check.c (getline): Fix empty lines case.
  16620. 2010-01-28 Robert Millan <rmh.grub@aybabtu.com>
  16621. * Makefile.in (check): Exit with fail status when one of the tests
  16622. fails.
  16623. * tests/example_functional_test.c (example_test): Fix reversed assert.
  16624. * tests/example_unit_test.c (example_test): Likewise.
  16625. 2010-01-28 Colin Watson <cjwatson@ubuntu.com>
  16626. * util/grub.d/10_linux.in: This script does not use any of the
  16627. contents of gettext.sh, only the external command `gettext', so stop
  16628. sourcing it. (Moreover, gettext.sh isn't necessarily installed in
  16629. the same prefix as GRUB.)
  16630. * util/grub.d/10_kfreebsd.in: Likewise.
  16631. 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
  16632. * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle
  16633. of the line.
  16634. 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
  16635. * kern/disk.c (grub_disk_read): Fix offset computation when reading
  16636. last sectors.
  16637. 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
  16638. * commands/hashsum.c (hash_file): Avoid possible stack overflow by
  16639. having a 4KiB and not 32KiB buffer size.
  16640. 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
  16641. * util/hostfs.c: Include `<errno.h>'.
  16642. (grub_hostfs_read): Handle errors from fseeko() and fread().
  16643. 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
  16644. * kern/disk.c (grub_disk_read): Fix bug that would cause infinite
  16645. loop when using read hooks on files whose size isn't sector-aligned.
  16646. 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
  16647. Remove unused parameter.
  16648. * fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter.
  16649. (grub_iso9660_open): Remove initialization of `data->length'.
  16650. 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
  16651. * util/grub-fstest.c (fstest): Rewrite allocation, fixing a few
  16652. memleak conditions.
  16653. 2010-01-27 Carles Pina i Estany <carles@pina.cat>
  16654. * util/lvm.c: New macro LVM_DEV_MAPPER_STRING.
  16655. (grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING.
  16656. 2010-01-26 Carles Pina i Estany <carles@pina.cat>
  16657. * util/bin2h.c (usage): Fix warning (space after backslash).
  16658. 2010-01-26 Carles Pina i Estany <carles@pina.cat>
  16659. * font/font.c: Include `grub/fontformat.h.
  16660. Remove font file format constants.
  16661. (grub_font_load): Use the new macros.
  16662. * include/grub/fontformat.h: New file.
  16663. * util/grub-mkfont.c: Include `grub/fontformat.c'.
  16664. (write_font_pf2): Use the new macros.
  16665. 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
  16666. * util/bin2h.c (usage): Make --help actually explain what `grub-bin2h'
  16667. does.
  16668. 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
  16669. * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro.
  16670. * boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'.
  16671. (_start): Macroify `0x7F'.
  16672. * kern/i386/pc/init.c: Include `<grub/machine/boot.h>'.
  16673. (make_install_device): Use "(pxe)" as fallback prefix when booting
  16674. via PXE.
  16675. 2010-01-26 Vladimir Serbinenko <phcoder@gmail.com>
  16676. * configure.ac: Reset LIBS after check for libgcc symbols.
  16677. 2010-01-25 Colin Watson <cjwatson@ubuntu.com>
  16678. * util/hostdisk.c (open_device): Add trailing newline to debug
  16679. message.
  16680. 2010-01-25 Grégoire Sutre <gregoire.sutre@gmail.com>
  16681. * configure.ac: Check for `limits.h'.
  16682. * util/misc.c: Include `<limits.h>' (for PATH_MAX).
  16683. 2010-01-24 Robert Millan <rmh.grub@aybabtu.com>
  16684. * loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't
  16685. capitalize error strings.
  16686. 2010-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
  16687. * util/grub.d/10_hurd.in: Add a recovery mode.
  16688. 2010-01-23 Vladimir Serbinenko <phcoder@gmail.com>
  16689. * configure.ac: Check for libgcc symbols with -nostdlib.
  16690. 2010-01-23 BVK Chaitanya <bvk.groups@gmail.com>
  16691. * acinclude.m4: Quote underquoted AC_DEFUN parameters.
  16692. 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
  16693. * term/ieee1275/ofconsole.c (grub_ofconsole_setcolorstate): Allocate on
  16694. stack since heap may be unavailable at that point.
  16695. (grub_ofconsole_gotoxy): Likewise.
  16696. 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
  16697. * configure.ac: Check for _restgpr_14_x.
  16698. * include/grub/powerpc/libgcc.h [HAVE__RESTGPR_14_X]: Add _restgpr_*_x
  16699. and _savegpr_* prototypes.
  16700. 2010-01-22 Robert Millan <rmh.grub@aybabtu.com>
  16701. Use generic grub_reboot() for i386-efi.
  16702. * kern/efi/efi.c [__i386__] (grub_reboot): Remove.
  16703. * kern/i386/efi/startup.S: Include `"../realmode.S"'.
  16704. * kern/i386/realmode.S: Include `<grub/i386/pc/memory.h>'.
  16705. 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
  16706. * kern/ieee1275/init.c (grub_machine_set_prefix): Don't check for
  16707. presence of "prefix" variable as it breaks when normal.mod is
  16708. embedded.
  16709. 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
  16710. * term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on
  16711. stack since heap is unavailable at that point.
  16712. 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
  16713. * include/grub/i386/bsd.h (FREEBSD_N_BIOS_GEOM): Removed.
  16714. (grub_freebsd_bootinfo): Rewritten.
  16715. * loader/i386/bsd.c (grub_freebsd_boot): Use new grub_freebsd_bootinfo.
  16716. 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
  16717. * util/misc.c (make_system_path_relative_to_its_root): Fix typo.
  16718. 2010-01-21 Robert Millan <rmh.grub@aybabtu.com>
  16719. * po/POTFILES: Remove mkisofs-related files. They have their own TLP
  16720. domain now.
  16721. 2010-01-20 Felix Zielcke <fzielcke@z-51.de>
  16722. * util/misc.c (make_system_path_relative_to_its_root): Change the work
  16723. around for handling "/" to the correct fix. Fix a memory leak. Use
  16724. xstrdup instead of strdup.
  16725. 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
  16726. * conf/mips.rmk (kernel_img_HEADERS): Add env_private.h
  16727. 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
  16728. Optimise glyph lookup by Basic Multilingual Plane lookup array.
  16729. * font/font.c (struct grub_font): New member 'bmp_idx'.
  16730. (font_init): Initialise 'bmp_idx'.
  16731. (load_font_index): Fill 'bmp_idx'.
  16732. (find_glyph): Make inline. Use bmp_idx for BMP characters.
  16733. 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
  16734. * video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
  16735. unnecessary calls.
  16736. 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
  16737. Move context handling out of the kernel.
  16738. * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c.
  16739. * conf/common.rmk (normal_mod_SOURCES): Add normal/context.c.
  16740. * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h.
  16741. * conf/i386-efi.rmk: Likewise.
  16742. * conf/i386-ieee1275.rmk: Likewise.
  16743. * conf/i386-pc.rmk: Likewise.
  16744. * conf/powerpc-ieee1275.rmk: Likewise.
  16745. * conf/sparc64-ieee1275.rmk: Likewise.
  16746. * conf/x86_64-efi.rmk: Likewise.
  16747. * include/grub/env.h: Include grub/menu.h.
  16748. (grub_env_var_type): Removed.
  16749. (grub_env_var): Replaced field 'type' with 'global'.
  16750. (grub_env_find): New prototype.
  16751. (grub_env_context_open): Remove EXPORT_FUNC.
  16752. (grub_env_context_close): Likewise.
  16753. (grub_env_export): Likewise.
  16754. (grub_env_set_data_slot): Removed.
  16755. (grub_env_get_data_slot): Likewise.
  16756. (grub_env_unset_data_slot): Likewise.
  16757. (grub_env_unset_menu): New prototype.
  16758. (grub_env_set_menu): Likewise.
  16759. (grub_env_get_menu): Likewise.
  16760. * include/grub/env_private.h: New file.
  16761. * include/grub/normal.h (grub_context_init): New prototype.
  16762. (grub_context_fini): Likewise.
  16763. * kern/corecmd.c (grub_core_cmd_export): Moved from here ...
  16764. * normal/context.c (grub_cmd_export): ... to here.
  16765. * kern/env.c: Include env_private.h.
  16766. (HASHSZ): Moved to include/grub/env_private.h.
  16767. (grub_env_context): Likewise.
  16768. (grub_env_sorted_var): Likewise.
  16769. (current_context): Renamed from this ...
  16770. (grub_current_context): ...to this. 'static' removed. All users updated.
  16771. (grub_env_find): Removed 'static'.
  16772. (grub_env_context_open): Moved to normal/context.c.
  16773. (grub_env_context_close): Likewise.
  16774. (grub_env_export): Likewise.
  16775. (mangle_data_slot_name): Removed.
  16776. (grub_env_set_data_slot): Likewise.
  16777. (grub_env_get_data_slot): Likewise.
  16778. (grub_env_unset_data_slot): Likewise.
  16779. * kern/main.c (grub_set_root_dev): Don't export root.
  16780. It will be done later.
  16781. (grub_main): Don't export prefix.
  16782. It will be done later.
  16783. * normal/context.c: New file.
  16784. * normal/main.c (free_menu): Use grub_env_unset_menu.
  16785. (grub_normal_add_menu_entry): Use grub_env_get_menu.
  16786. (read_config_file): Use grub_env_get_menu and grub_env_set_menu.
  16787. (GRUB_MOD_INIT(normal)): Call grub_context_init.
  16788. (GRUB_MOD_FINI(normal)): Call grub_context_fini.
  16789. 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
  16790. setpci support.
  16791. * commands/setpci.c: New file.
  16792. * conf/i386.rmk (pkglib_MODULES): Add setpci.mod.
  16793. (setpci_mod_SOURCES): New variable.
  16794. (setpci_mod_CFLAGS): Likewise.
  16795. (setpci_mod_LDFLAGS): Likewise.
  16796. 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
  16797. Byte-addressable PCI configuration space.
  16798. * bus/pci.c (grub_pci_make_address): Use byte address instead of
  16799. dword address.
  16800. (grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and
  16801. GRUB_PCI_REG_CACHELINE.
  16802. * bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses
  16803. GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0.
  16804. * bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses
  16805. GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4.
  16806. * commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS.
  16807. * commands/efi/loadbios.c (enable_rom_area): Pass byte-address to
  16808. grub_pci_make_address.
  16809. (lock_rom_area): Likewise.
  16810. * commands/lspci.c (grub_lspci_iter): Use macroses
  16811. GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing
  16812. of grub_pci_make_address.
  16813. * disk/ata.c (grub_ata_pciinit): Likewise.
  16814. * include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro.
  16815. (GRUB_PCI_REG_VENDOR): Likewise.
  16816. (GRUB_PCI_REG_DEVICE): Likewise.
  16817. (GRUB_PCI_REG_COMMAND): Likewise.
  16818. (GRUB_PCI_REG_STATUS): Likewise.
  16819. (GRUB_PCI_REG_REVISION): Likewise.
  16820. (GRUB_PCI_REG_CLASS): Likewise.
  16821. (GRUB_PCI_REG_CACHELINE): Likewise.
  16822. (GRUB_PCI_REG_LAT_TIMER): Likewise.
  16823. (GRUB_PCI_REG_HEADER_TYPE): Likewise.
  16824. (GRUB_PCI_REG_BIST): Likewise.
  16825. (GRUB_PCI_REG_ADDRESSES): Likewise.
  16826. (GRUB_PCI_REG_ADDRESS_REG): Likewise.
  16827. (GRUB_PCI_REG_ADDRESS_REG): Likewise.
  16828. (GRUB_PCI_REG_ADDRESS_REG): Likewise.
  16829. (GRUB_PCI_REG_ADDRESS_REG): Likewise.
  16830. (GRUB_PCI_REG_ADDRESS_REG): Likewise.
  16831. (GRUB_PCI_REG_ADDRESS_REG): Likewise.
  16832. (GRUB_PCI_REG_CIS_POINTER): Likewise.
  16833. (GRUB_PCI_REG_SUBVENDOR): Likewise.
  16834. (GRUB_PCI_REG_SUBSYSTEM): Likewise.
  16835. (GRUB_PCI_REG_ROM_ADDRESS): Likewise.
  16836. (GRUB_PCI_REG_CAP_POINTER): Likewise.
  16837. (GRUB_PCI_REG_IRQ_LINE): Likewise.
  16838. (GRUB_PCI_REG_IRQ_PIN): Likewise.
  16839. (GRUB_PCI_REG_MIN_GNT): Likewise.
  16840. (GRUB_PCI_REG_MAX_LAT): Likewise.
  16841. * loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
  16842. * loader/i386/efi/xnu.c (find_framebuf): Likewise.
  16843. * video/efi_uga.c (find_framebuf): Likewise.
  16844. * video/sm712.c (grub_video_sm712_setup): Likewise.
  16845. * util/pci.c (grub_pci_make_address): Use byte-addressed configuration
  16846. space.
  16847. 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
  16848. * util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
  16849. can be reliably determined to be supported.
  16850. 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
  16851. * loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down
  16852. that VESA is supported.
  16853. (grub_linux_boot): Use generic framebuffer unless VESA is known to be
  16854. supported.
  16855. 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
  16856. * conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.
  16857. 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
  16858. * util/misc.c (make_system_path_relative_to_its_root): Work around
  16859. special-casing of "/", as previous incarnation of this routine did.
  16860. 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
  16861. Fix any-emu compilation.
  16862. * conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h.
  16863. * grub_bin2h_SOURCES: New variable.
  16864. 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
  16865. * util/grub.d/00_header.in: Fix stupid mistake from last commit.
  16866. 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
  16867. * util/grub.d/00_header.in: Fix handling of locale_dir.
  16868. 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
  16869. * configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz
  16870. as possible unifont location (Gentoo).
  16871. Reported by: Alexander Brüning
  16872. 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
  16873. Don't try to generate lists for kernel.img.
  16874. * conf/i386-efi.rmk (pkglib_PROGRAMS): New variable.
  16875. (pkglib_MODULES): Remove kernel.img.
  16876. (kernel_img_EXPORTS): Removed.
  16877. (kernel_img_RELOCATABLE): New variable.
  16878. * conf/x86_64-efi.rmk: Likewise.
  16879. * genmk.rb: Remove *_EXPORTS support and add *_RELOCATABLE support.
  16880. 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
  16881. * include/grub/misc.h (grub_sprintf): Removed. All users switched to
  16882. grub_xasprintf or grub_snprintf.
  16883. (grub_vsprintf): Likewise.
  16884. (grub_snprintf): New proto.
  16885. (grub_vsnprintf): Likewise.
  16886. (grub_xasprintf): Likewise.
  16887. (grub_xvasprintf): Likewise.
  16888. * kern/misc.c (grub_vprintf): Use grub_vsnprintf_real.
  16889. (grub_sprintf): Removed.
  16890. (grub_vsnprintf): New function.
  16891. (grub_snprintf): Likewise.
  16892. (grub_xvasprintf): Likewise.
  16893. (grub_xasprintf): Likewise.
  16894. (grub_vsprintf): Renamed to ...
  16895. (grub_vsnprintf_real): ...this. New argument max_len.
  16896. 2010-01-20 BVK Chaitanya <bvk.groups@gmail.com>
  16897. * include/grub/script_sh.h (sourcecode): Remove const qualifier to
  16898. fix grub-script-check warning.
  16899. 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
  16900. * include/grub/font.h (grub_font_load): Fix prototype.
  16901. 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
  16902. * conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h.
  16903. 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
  16904. * include/grub/x86_64/at_keyboard.h: New file.
  16905. 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
  16906. * loader/mips/linux.c: Include missing grub/i18n.h.
  16907. 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
  16908. * normal/menu.c (notify_execution_failure): Clarify error message.
  16909. 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
  16910. * commands/loadenv.c (check_blocklists): Use `grub_err_t' as
  16911. return value (and revert all return statements). Update users.
  16912. 2010-01-20 Dan Merillat <debian@dan.merillat.org>
  16913. * kern/device.c (grub_device_iterate): Allocate new part_ent
  16914. structure based on sizeof (*p) rather than sizeof (p->next), to
  16915. account for structure padding.
  16916. * util/grub-probe.c (probe_raid_level): Return -1 immediately if
  16917. disk is NULL, which might happen for LVM physical volumes with no
  16918. LVM signature.
  16919. 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
  16920. * loader/mips/linux.c (grub_cmd_initrd)
  16921. (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.
  16922. 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
  16923. * kern/mips/yeeloong/init.c (grub_video_sm712_init)
  16924. (grub_video_video_init, grub_video_bitmap_init)
  16925. (grub_font_manager_init, grub_term_gfxterm_init)
  16926. (grub_at_keyboard_init): New extern declarations.
  16927. (grub_machine_init): Initialize gfxterm and at_keyboard.
  16928. * kern/main.c (grub_main): Revert grub_printf delay kludge.
  16929. * util/grub-install.in: Revert embed of `at_keyboard.mod' and
  16930. `gfxterm.mod' into core image.
  16931. * conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
  16932. (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
  16933. (kernel_img_FORMAT): Copy to ...
  16934. * conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
  16935. (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
  16936. (kernel_img_FORMAT): ... here, and ...
  16937. * conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES)
  16938. (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
  16939. (kernel_img_FORMAT): ... here.
  16940. (kernel_img_SOURCES): Add files necessary for output (gfxterm)
  16941. and input (at_keyboard) terminals in kernel.
  16942. (kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'.
  16943. (pkglib_MODULES): Remove `pci.mod'.
  16944. (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS)
  16945. (sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS)
  16946. (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
  16947. (at_keyboard_mod_LDFLAGS): Remove variables.
  16948. 2010-01-11 Felix Zielcke <fzielcke@z-51.de>
  16949. * po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'.
  16950. 2009-12-10 Robert Millan <rmh.grub@aybabtu.com>
  16951. * include/grub/mips/libgcc.h: Only export symbols for functions
  16952. that libgcc provides.
  16953. 2009-12-02 Vladimir Serbinenko <phcoder@gmail.com>
  16954. MIPS support.
  16955. * bus/bonito.c: New file.
  16956. * bus/pci.c (grub_pci_iterate): Use GRUB_PCI_NUM_BUS and
  16957. GRUB_PCI_NUM_DEVICES.
  16958. * term/i386/pc/serial.c: Move to ...
  16959. * term/serial.c: ... here. All users updated.
  16960. * util/i386/pc/grub-mkimage.c: Move to ...
  16961. * util/grub-mkrawimage.c: ... here. All users updated.
  16962. * term/i386/pc/at_keyboard.c: Move to ...
  16963. * term/at_keyboard.c: ... here. All users updated.
  16964. * conf/mips-qemu-mips.rmk: New file.
  16965. * conf/mips-yeeloong.rmk: Likewise.
  16966. * conf/mips.rmk: Likewise.
  16967. * configure.ac: New platforms mipsel-yeeloong, mips-qemu-mips and
  16968. mipsel-qemu-mips.
  16969. * disk/ata.c (grub_ata_device_initialize): Add GRUB_MACHINE_PCI_IO_BASE
  16970. to port addresses.
  16971. (grub_ata_pciinit): Support CS5536.
  16972. * font/font.c (grub_font_load): Use grub_file_t instead of filename.
  16973. * font/font_cmd.c (loadfont_command): Open file before passing it to
  16974. grub_font_load.
  16975. (pseudo_file_read): New function.
  16976. (pseudo_file_close): Likewise.
  16977. (pseudo_fs): New structure.
  16978. (load_font_module): New function.
  16979. (GRUB_MOD_INIT(font_manager)): Load embedded font.
  16980. * fs/cpio.c (grub_cpio_open): Handle partial matches correctly.
  16981. * genmk.rb: Strip .rel.dyn, .reginfo, .note and .comment.
  16982. * genmoddep.awk: Ignore __gnu_local_gp. It's defined by linker.
  16983. * include/grub/i386/at_keyboard.h: Split into ...
  16984. * include/grub/at_keyboard.h: ... this ...
  16985. * include/grub/i386/at_keyboard.h: ... and this.
  16986. * include/grub/dl.h (grub_arch_dl_init_linker) [_mips && !GRUB_UTIL]:
  16987. New prototype.
  16988. * include/grub/elfload.h (grub_elf32_size): New parameter. All users
  16989. updated.
  16990. (grub_elf64_size): Likewise.
  16991. * include/grub/font.h (grub_font_load): Use grub_file_t instead of
  16992. filename.
  16993. * include/grub/i386/io.h (grub_port_t): New type. All users updated.
  16994. * include/grub/i386/coreboot/serial.h: Rewritten.
  16995. * include/grub/i386/ieee1275/serial.h: Include
  16996. grub/i386/coreboot/serial.h instead of grub/i386/pc/serial.h.
  16997. * include/grub/i386/pc/serial.h: Moved from here ...
  16998. * include/grub/serial.h: ... to here. All users updated.
  16999. * include/grub/i386/pci.h (GRUB_MACHINE_PCI_IO_BASE): New definition.
  17000. (GRUB_PCI_NUM_BUS): Likewise.
  17001. (GRUB_PCI_NUM_DEVICES): Likewise.
  17002. (grub_pci_device_map_range): Add missing volatile keyword.
  17003. * include/grub/kernel.h (OBJ_TYPE_FONT): New enum value.
  17004. * include/grub/mips/at_keyboard.h: New file.
  17005. * include/grub/mips/cache.h: Likewise.
  17006. * include/grub/mips/io.h: Likewise.
  17007. * include/grub/mips/kernel.h: Likewise.
  17008. * include/grub/mips/libgcc.h: Likewise.
  17009. * include/grub/mips/pci.h: Likewise.
  17010. * include/grub/mips/qemu-mips/boot.h: Likewise.
  17011. * include/grub/mips/qemu-mips/kernel.h: Likewise.
  17012. * include/grub/mips/qemu-mips/loader.h: Likewise.
  17013. * include/grub/mips/qemu-mips/memory.h: Likewise.
  17014. * include/grub/mips/qemu-mips/serial.h: Likewise.
  17015. * include/grub/mips/qemu-mips/time.h: Likewise.
  17016. * include/grub/mips/relocator.h: Likewise.
  17017. * include/grub/mips/time.h: Likewise.
  17018. * include/grub/mips/types.h: Likewise.
  17019. * include/grub/mips/yeeloong/at_keyboard.h: Likewise.
  17020. * include/grub/mips/yeeloong/boot.h: Likewise.
  17021. * include/grub/mips/yeeloong/kernel.h: Likewise.
  17022. * include/grub/mips/yeeloong/loader.h: Likewise.
  17023. * include/grub/mips/yeeloong/memory.h: Likewise.
  17024. * include/grub/mips/yeeloong/pci.h: Likewise.
  17025. * include/grub/mips/yeeloong/serial.h: Likewise.
  17026. * include/grub/mips/yeeloong/time.h: Likewise.
  17027. * kern/dl.c (grub_dl_resolve_symbols): Handle STT_OBJECT correctly.
  17028. * kern/elf.c (grub_elf32_size): New parameter. All users
  17029. updated.
  17030. (grub_elf64_size): Likewise.
  17031. * kern/main.c (grub_main): Call grub_arch_dl_init_linker if necessary.
  17032. Load modules before saying "Welcome to GRUB!".
  17033. Call grub_refresh after saying "Welcome to GRUB!".
  17034. * kern/mips/cache.S: New file.
  17035. * kern/mips/cache_flush.S: Likewise.
  17036. * kern/mips/dl.c: Likewise.
  17037. * kern/mips/init.c: Likewise.
  17038. * kern/mips/qemu-mips/init.c: Likewise.
  17039. * kern/mips/startup.S: Likewise.
  17040. * kern/mips/yeeloong/init.c: Likewise.
  17041. * kern/term.c (grub_putcode): Handle NULL terminal.
  17042. (grub_getcharwidth): Likewise.
  17043. (grub_getkey): Likewise.
  17044. (grub_checkkey): Likewise.
  17045. (grub_getkeystatus): Likewise.
  17046. (grub_getxy): Likewise.
  17047. (grub_getwh): Likewise.
  17048. (grub_gotoxy): Likewise.
  17049. (grub_cls): Likewise.
  17050. (grub_setcolorstate): Likewise.
  17051. (grub_setcolor): Likewise.
  17052. (grub_getcolor): Likewise.
  17053. (grub_refresh): Likewise.
  17054. * lib/mips/relocator.c (JUMP_SIZEOF): Fix incorrect value.
  17055. (write_jump): Add hatch nop.
  17056. * lib/mips/relocator_asm.S: Use kern/mips/cache_flush.S.
  17057. * lib/mips/setjmp.S: New file.
  17058. * loader/mips/linux.c: Likewise.
  17059. * term/i386/pc/at_keyboard.c: Move from here ...
  17060. * term/at_keyboard.c: ... to here.
  17061. * term/i386/pc/serial.c: Moved from here ...
  17062. * term/serial.c: ... to here. All users updated.
  17063. (TEXT_HEIGHT): Set to 24 to fit linux terminal.
  17064. (serial_hw_io_addr): Use GRUB_MACHINE_SERIAL_PORTS.
  17065. (serial_translate_key_sequence): Avoid deadlock.
  17066. (grub_serial_getkey): Handle backspace.
  17067. (grub_serial_putchar): Fix newline handling.
  17068. * util/i386/pc/grub-mkimage.c: Move from here ...
  17069. * util/grub-mkrawimage.c: ... to here. All users updated.
  17070. (generate_image): New parameters 'font_path' and 'format'.
  17071. Support embedding font.
  17072. Use grub_host_to_target* instead of grub_cpu_to_le*.
  17073. (generate_image) [GRUB_MACHINE_MIPS]: Support ELF encapsulation.
  17074. (options) [GRUB_PLATFORM_IMAGE_DEFAULT]: New option "--format".
  17075. (options): New option "--font".
  17076. (usage): Likewise.
  17077. (main) [GRUB_PLATFORM_IMAGE_DEFAULT]: Handle "--format".
  17078. (main): Handle "--font".
  17079. * term/gfxterm.c (grub_virtual_screen): New member bg_color_display.
  17080. (grub_virtual_screen_setup): Set bg_color_display.
  17081. (redraw_screen_rect): Use bg_color_display instead of incorrect
  17082. bg_color.
  17083. (grub_gfxterm_cls): Likewise.
  17084. * util/elf/grub-mkimage.c (load_modules): New parameter 'config_path'.
  17085. Support embedding config file.
  17086. (add_segments): Likewise.
  17087. (options): New option "--config".
  17088. (main): Handle "--config".
  17089. * video/sm712.c: New file.
  17090. 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
  17091. Fix parallel builds.
  17092. * conf/common.rmk (font/font.c_DEPENDENCIES): New variable (makes
  17093. font.c depend on ascii.h).
  17094. 2010-01-12 Carles Pina i Estany <carles@pina.cat>
  17095. * Makefile.in (DUSE_ASCII_FAILBACK): New macro.
  17096. 2010-01-11 Carles Pina i Estany <carles@pina.cat>
  17097. * font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK.
  17098. By default: disabled.
  17099. * Makefile.in (ascii.h): Remove the non-needed grub/bin2h size
  17100. parameter.
  17101. 2010-01-10 Carles Pina i Estany <carles@pina.cat>
  17102. * font/font.c: Update copyright years.
  17103. * util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format.
  17104. 2010-01-10 Carles Pina i Estany <carles@pina.cat>
  17105. * font/font.c: Include `ascii.h'.
  17106. (ASCII_BITMAP_SIZE): New macro.
  17107. (ascii_font_glyph): Define.
  17108. (ascii_glyph_lookup): New function.
  17109. (grub_font_get_string_width): Change comment. If glyph not found, use
  17110. ascii_glyph_lookup.
  17111. (grub_font_get_glyph_with_fallback): If glyph not available returns
  17112. ascii_glyph_lookup.
  17113. * util/grub-mkfont.c (file_formats): New enum.
  17114. (options): Add `ascii-bitmaps' new option.
  17115. (usage): Add `asii-bitmaps' new option.
  17116. (write_font_ascii_bitmap): New function.
  17117. (write_font): Rename to ...
  17118. (write_font_p2): ... this. Remove print_glyphs call.
  17119. (main): Use file_format. Implement code for ranges if ascii-bitmaps is
  17120. used. Call print_glyphs.
  17121. * Makefile.in (pkgdata_DATA): Add `ascii.h'.
  17122. 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
  17123. * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'.
  17124. (grub_bin2h_SOURCES): New variable.
  17125. * util/bin2h.c: New file.
  17126. 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
  17127. * include/multiboot.h: Resynced with spec.
  17128. * include/multiboot2.h: Likewise.
  17129. * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): Handle
  17130. GRUB_MACHINE_MEMORY_ACPI_RECLAIMABLE and GRUB_MACHINE_MEMORY_NVS.
  17131. 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
  17132. * include/grub/term.h (grub_term_register_input,
  17133. grub_term_register_output): Check return of terminal init()
  17134. routines, and abort if errors are raised.
  17135. * commands/terminal.c: Update copyright year.
  17136. 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
  17137. * commands/terminal.c (grub_cmd_terminal_input)
  17138. (grub_cmd_terminal_output): Check return of terminal init()
  17139. routines, and abort if errors are raised.
  17140. 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
  17141. * include/grub/i386/bsd.h: Fix include pathes.
  17142. 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
  17143. Add missing *BSD copyright headers.
  17144. * include/grub/aout.h: Add BSD licence.
  17145. * include/grub/i386/bsd.h: Parts under different licences moved to ...
  17146. * include/grub/i386/freebsd_linker.h: ... here,
  17147. * include/grub/i386/freebsd_reboot.h: ... here,
  17148. * include/grub/i386/netbsd_bootinfo.h: ... here,
  17149. * include/grub/i386/netbsd_reboot.h: ... here,
  17150. * include/grub/i386/openbsd_bootarg.h: ... here,
  17151. * include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate
  17152. licence to each file.
  17153. 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
  17154. * acinclude.m4: Remove `nop' assembly instruction; it's not
  17155. implemented by all architectures.
  17156. 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
  17157. * loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're
  17158. ELILO. This is no longer necessary.
  17159. 2010-01-18 BVK Chaitanya <bvk.groups@gmail.com>
  17160. Added new tool, grub-scrit-check to verify grub.cfg syntax.
  17161. * util/grub-script-check.c: grub-script-check tool.
  17162. * conf/common.rmk: Make rules for grub-script-check.
  17163. 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
  17164. Fix annoying UI bug in rescue mode. Thanks to Tristan Gingold for
  17165. spotting it back in 2008. Shame on me for forgetting he did.
  17166. * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.
  17167. 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
  17168. * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ...
  17169. (GRUB_VIDEO_LINUX_TYPE_TEXT): ... this. Update all users.
  17170. (GRUB_VIDEO_TYPE_VLFB): Rename to ...
  17171. (GRUB_VIDEO_LINUX_TYPE_VESA): ... this. Update all users.
  17172. (GRUB_VIDEO_TYPE_EFI): Rename to ...
  17173. (GRUB_VIDEO_LINUX_TYPE_SIMPLE): ... this. Update all users.
  17174. 2010-01-17 Robert Millan <rmh.grub@aybabtu.com>
  17175. * include/grub/test.h: Add license header.
  17176. * tests/example_functional_test.c: Likewise.
  17177. * tests/example_unit_test.c: Likewise.
  17178. * tests/lib/functional_test.c: Likewise.
  17179. * tests/lib/test.c: Likewise.
  17180. * tests/lib/unit_test.c: Likewise.
  17181. 2010-01-17 Vladimir Serbinenko <phcoder@gmail.com>
  17182. Use flag-based instead of hook-based video mode selection and "auto"
  17183. keyword.
  17184. * include/grub/video.h (grub_video_adapter): Changed 'setup' member.
  17185. (grub_video_set_mode): Changed prototype. All users updated.
  17186. (grub_video_check_mode_flag): New inline function.
  17187. * video/video.c (parse_modespec): New function.
  17188. (grub_video_set_mode): Parse flags and keywords.
  17189. 2010-01-17 Carles Pina i Estany <carles@pina.cat>
  17190. * util/misc.c (grub_util_info): Fix the order of the parameters in a
  17191. fprintf call.
  17192. 2010-01-16 Grégoire Sutre <gregoire.sutre@gmail.com>
  17193. * genmk.rb (class SCRIPT): Replace option -i of sed by a pipe.
  17194. 2010-01-16 Carles Pina i Estany <carles@pina.cat>
  17195. * util/grub-editenv.c (usage): Use `program_name' instead of hardcoded
  17196. string.
  17197. * util/grub-emu.c (usage): Likewise.
  17198. * util/grub-mkpasswd-pbkdf2.c (usage): Likewise.
  17199. * util/i386/efi/grub-mkimage.c (usage): Likewise.
  17200. * util/i386/pc/grub-mkimage.c (usage): Likewise.
  17201. * util/i386/pc/grub-setup.c (usage): Likewise.
  17202. 2010-01-16 Carles Pina i Estany <carles@pina.cat>
  17203. * util/misc.c (grub_util_warn): Gettextizze, print full stop after
  17204. the message.
  17205. (grub_util_info): Likewise.
  17206. (grub_util_error): Likewise.
  17207. * util/elf/grub-mkimage.c: Fix capitalisation, quotes, full stops
  17208. and/or new lines in `grub_util_warna', `grub_util_info',
  17209. `grub_util_error' calls.
  17210. * util/getroot.c: Likewise.
  17211. * util/grub-editenv.c: Likewise.
  17212. * util/grub-emu.c: Likewise.
  17213. * util/grub-fstest.c: Likewise.
  17214. * util/grub-mkdevicemap.c: Likewise.
  17215. * util/grub-mkfont.c: Likewise.
  17216. * util/grub-mkpasswd-pbkdf2.c: Likewise.
  17217. * util/grub-mkrelpath.c: Likewise.
  17218. * util/grub-pe2elf.c: Likewise.
  17219. * util/grub-probe.c: Likewise.
  17220. * util/hostdisk.c: Likewise.
  17221. * util/i386/efi/grub-mkimage.c: Likewise.
  17222. * util/i386/pc/grub-mkimage.c: Likewise.
  17223. * util/i386/pc/grub-setup.c: Likewise.
  17224. * util/ieee1275/ofpath.c: Likewise.
  17225. * util/mkisofs/eltorito.c: Likewise.
  17226. * util/mkisofs/rock.c: Likewise.
  17227. * util/mkisofs/write.c: Likewise.
  17228. * util/raid.c: Likewise.
  17229. * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
  17230. * util/sparc64/ieee1275/grub-setup.c: Likewise.
  17231. 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
  17232. Enable multiboot on non-pc.
  17233. * conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move
  17234. multiboot.mod and multiboot2.mod to ...
  17235. * conf/i386.rmk (pkglib_MODULES): ... here.
  17236. * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES):
  17237. Moved to ...
  17238. * conf/i386.rmk (multiboot_mod_SOURCES): .. here.
  17239. * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
  17240. Moved to ...
  17241. * conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
  17242. * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
  17243. Moved to ...
  17244. * conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
  17245. * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
  17246. Moved to ...
  17247. * conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
  17248. * conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
  17249. relocator.mod.
  17250. (ata_mod_SOURCES): Removed.
  17251. (ata_mod_CFLAGS): Likewise.
  17252. (ata_mod_LDFLAGS): Likewise.
  17253. (relocator_mod_SOURCES): Removed.
  17254. (relocator_mod_CFLAGS): Likewise.
  17255. (relocator_mod_ASFLAGS): Likewise.
  17256. (relocator_mod_LDFLAGS): Likewise.
  17257. Include i386.mk.
  17258. * include/grub/x86_64/multiboot.h: New file.
  17259. * loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
  17260. Terminate EFI.
  17261. 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
  17262. Video multiboot support.
  17263. * include/grub/multiboot.h (grub_multiboot_set_accepts_video):
  17264. New prototype.
  17265. * include/multiboot.h: Resynced with multiboot specification.
  17266. * include/multiboot2.h: Likewise.
  17267. * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags.
  17268. (grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields.
  17269. * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant.
  17270. (HAS_VGA_TEXT): Likewise.
  17271. (accepts_video): New variable.
  17272. (grub_multiboot_set_accepts_video): New function.
  17273. (grub_multiboot_get_mbi_size): Account for video structures.
  17274. (set_video_mode): New function.
  17275. (retrieve_video_parameters): Likewise.
  17276. (grub_multiboot_make_mbi): Fill video fields.
  17277. 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
  17278. Video driver ids.
  17279. * include/grub/video.h (grub_video_driver_id): New type.
  17280. (grub_video_adapter): New member 'id'. All users updated.
  17281. (grub_video_get_driver_id): New proto.
  17282. * video/video.c (grub_video_get_driver_id): New function.
  17283. 2010-01-14 Carles Pina i Estany <carles@pina.cat>
  17284. * util/grub.d/30_os-prober.in: Use `set var=val' rather than plain
  17285. `var=val'.
  17286. 2010-01-14 Carles Pina i Estany <carles@pina.cat>
  17287. * normal/cmdline.c (print_completion): Gettextizze.
  17288. 2001-01-14 Carles Pina i Estany <carles@pina.cat>
  17289. * loader/i386/pc/chainloader.c: Include `<grub/mm.h>'.
  17290. 2010-01-14 Carles Pina i Estany <carles@pina.cat>
  17291. * gettext/gettext.c (grub_gettext_translate): Push and pop
  17292. grub_errno.
  17293. (grub_gettext_delete_list): Change comment style.
  17294. * kern/err.c (grub_error): Gettextizze.
  17295. (grub_fatal): Gettextizze.
  17296. 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
  17297. * include/grub/i386/loader.h (grub_linux16_boot): Renamed to ...
  17298. (grub_linux16_real_boot): ... this.
  17299. * kern/i386/loader.S: Likewise.
  17300. * loader/i386/pc/linux.c: Include `<grub/video.h>' and `<grub/mm.h>'.
  17301. (grub_linux16_boot): New function. Switches to text mode and calls
  17302. grub_linux16_real_boot().
  17303. * loader/i386/bsd.c: Include `<grub/video.h>'.
  17304. (grub_freebsd_boot, grub_openbsd_boot, grub_netbsd_boot): Switch to
  17305. text mode before calling grub_unix_real_boot().
  17306. * loader/i386/multiboot.c: Include `<grub/video.h>'.
  17307. (grub_multiboot_boot): Switch to text mode before calling
  17308. grub_relocator32_boot().
  17309. * loader/i386/pc/chainloader.c: Include `<grub/video.h>'.
  17310. (grub_chainloader_boot): Switch to text mode before calling
  17311. grub_chainloader_real_boot().
  17312. 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
  17313. 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
  17314. * util/grub-reboot.in: Make sure prev_saved_entry always gets a
  17315. non-empty value.
  17316. 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
  17317. 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
  17318. * util/grub.d/00_header.in: Define a "savedefault" function for use
  17319. in menu entries.
  17320. * util/grub-mkconfig_lib.in (save_default_entry): Use it.
  17321. 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
  17322. 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
  17323. * util/grub-mkconfig_lib.in (save_default_entry): Only set
  17324. saved_entry if boot_once is unset.
  17325. * util/grub.d/00_header.in: Set boot_once to "true" if there was a
  17326. previous saved entry (i.e. grub-reboot).
  17327. 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
  17328. * util/grub.d/30_os-prober.in: Call save_default_entry for hurd.
  17329. 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
  17330. * util/grub.d/00_header.in: Use `set var=val' rather than plain
  17331. `var=val'.
  17332. * util/grub-mkconfig_lib.in (save_default_entry): Likewise.
  17333. 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
  17334. * util/grub-reboot.in: Fix --version output.
  17335. * util/grub-set-default.in: Likewise.
  17336. 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
  17337. * util/grub.d/00_header.in: Silently ignore zero-sized environment
  17338. blocks.
  17339. 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
  17340. * util/grub.d/00_header.in: Quote the value assigned to `default',
  17341. in case it contains spaces.
  17342. 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
  17343. * util/grub.d/30_os-prober.in: Fix merge error that moved a
  17344. `save_default_entry' call from the macosx case to the linux case.
  17345. 2009-10-25 Vladimir Serbinenko <phcoder@gmail.com>
  17346. 2009-10-25 Colin Watson <cjwatson@ubuntu.com>
  17347. * normal/menu.c (grub_menu_execute_entry): Save selected entry title
  17348. in `chosen' environment variable.
  17349. * normal/menu_text.c (get_entry_number): Check if the variable
  17350. matches the title of a menu entry.
  17351. (run_menu): Pass menu to get_entry_number.
  17352. * util/grub-reboot.in: New file.
  17353. * util/grub-set-default.in: New file.
  17354. * conf/common.rmk (grub-reboot): New utility.
  17355. (grub-set-default): New utility.
  17356. * util/grub-mkconfig_lib.in (save_default_entry): New function.
  17357. * util/grub.d/00_header.in: If GRUB_DEFAULT is `saved', set
  17358. default to `${saved_entry}'. If `${prev_saved_entry}' is non-empty,
  17359. move it to `saved_entry' for the next boot. Load environment on
  17360. initialisation.
  17361. * util/grub.d/10_kfreebsd.in: Call save_default_entry.
  17362. * util/grub.d/10_hurd.in: Likewise.
  17363. * util/grub.d/10_linux.in (linux_entry): Likewise.
  17364. * util/grub.d/10_windows.in: Likewise.
  17365. * util/grub.d/30_os-prober.in: Likewise.
  17366. * util/grub-install.in: Create environment block.
  17367. * util/i386/efi/grub-install.in: Likewise.
  17368. * util/ieee1275/grub-install.in: Likewise.
  17369. * util/sparc64/ieee1275/grub-install.in: Likewise.
  17370. 2010-01-14 BVK Chaitanya <bvk.groups@gmail.com>
  17371. Unit testing framework for GRUB.
  17372. * Makefile.in: Test framework build rules for 'make check'.
  17373. * conf/tests.rmk: Build rules for individual tests and framework.
  17374. * include/grub/test.h: Header file for whitebox tests.
  17375. * tests/lib/functional_test.c: Framework support for whitebox
  17376. functional tests.
  17377. * tests/lib/test.c: Common whitebox testing code for unit and
  17378. functional tests.
  17379. * tests/lib/unit_test.c: Framework support for whitebox unit
  17380. tests.
  17381. * tests/util/grub-shell-tester.in: Support utility for grub-script
  17382. tests.
  17383. * tests/util/grub-shell.in: Utility to execute grub-script
  17384. commands in a Qemu instance.
  17385. * tests/example_functional_test.c: Example whitebox functional
  17386. test.
  17387. * tests/example_grub_script_test.in: Example grub-script test.
  17388. * tests/example_scripted_test.in: Example scripted test.
  17389. * tests/example_unit_test.c: Example whitebox unit test.
  17390. 2010-01-14 Vladimir Serbinenko <phcoder@gmail.com>
  17391. * conf/i386-coreboot.rmk (multiboot_mod_SOURCES):
  17392. Add loader/i386/multiboot_mbi.c.
  17393. (multiboot2_mod_SOURCES): Likewise.
  17394. * conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise.
  17395. (multiboot2_mod_SOURCES): Likewise.
  17396. * include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto.
  17397. (grub_multiboot_make_mbi): Likewise.
  17398. (grub_multiboot_free_mbi): Likewise.
  17399. (grub_multiboot_init_mbi): Likewise.
  17400. (grub_multiboot_add_module): Likewise.
  17401. (grub_multiboot_set_bootdev): Likewise.
  17402. * loader/i386/multiboot.c (mbi): Removed.
  17403. (mbi_dest): Likewise.
  17404. (alloc_mbi): New variable.
  17405. (grub_multiboot_payload_size): Removed. All users updated.
  17406. (grub_multiboot_pure_size): New variable.
  17407. (grub_multiboot_boot): Use grub_multiboot_make_mbi.
  17408. (grub_multiboot_unload): Use grub_multiboot_free_mbi.
  17409. (grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c.
  17410. (grub_fill_multiboot_mmap): Likewise.
  17411. (grub_multiboot_get_bootdev): Likewise.
  17412. (grub_multiboot): Use multiboot_mbi functions.
  17413. * loader/i386/multiboot_mbi.c: New file.
  17414. 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
  17415. * kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
  17416. it would result in module crash.
  17417. 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
  17418. * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'.
  17419. (grub_ofconsole_getwh): Split to ...
  17420. (grub_ofconsole_getwh): ... this.
  17421. (grub_ofconsole_dimensions): ...and this.
  17422. (grub_ofconsole_init_output): Call grub_ofconsole_dimensions.
  17423. 2010-01-13 Robert Millan <rmh.grub@aybabtu.com>
  17424. * util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo.
  17425. 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
  17426. * loader/i386/pc/multiboot2.c: Removed stalled file.
  17427. 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
  17428. * util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
  17429. Reported by: Grégoire Sutre
  17430. 2010-01-11 Robert Millan <rmh.grub@aybabtu.com>
  17431. * util/misc.c (canonicalize_file_name): New function.
  17432. (make_system_path_relative_to_its_root): Use canonicalize_file_name()
  17433. instead of realpath().
  17434. 2010-01-11 Colin Watson <cjwatson@ubuntu.com>
  17435. * util/grub-install.in (usage): Clarify meaning of --root-directory,
  17436. and make it clearer that it's optional. Based on confusion
  17437. witnessed on IRC.
  17438. 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
  17439. * term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
  17440. in premature implicit newline.
  17441. 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
  17442. * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
  17443. which resulted in garbled command line at the end of screen.
  17444. 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
  17445. * loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
  17446. initialization with similar approach as with other Linux loaders.
  17447. 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
  17448. Fix i386-ieee1275 build.
  17449. * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
  17450. and grub_term_height() for video_{width,height} initialization.
  17451. 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
  17452. Fix grub-emu build.
  17453. * conf/any-emu.rmk (grub_emu_SOURCES): Remove `kern/reader.c'.
  17454. 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
  17455. 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
  17456. Support for multiple terminals.
  17457. * Makefile.in (pkglib_DATA): terminal.lst.
  17458. (terminal.lst): New target.
  17459. * commands/handler.c (grub_cmd_handler): Don't handle terminals.
  17460. (GRUB_MOD_INIT(handler)): Likewise.
  17461. (GRUB_MOD_FINI(handler)): Likewise.
  17462. * commands/help.c (grub_cmd_help): Handle multiple terminals.
  17463. * commands/keystatus.c (grub_cmd_keystatus): Likewise.
  17464. * commands/sleep.c (do_print): Use grub_term_restore_pos.
  17465. (grub_cmd_sleep): Use grub_term_save_pos.
  17466. * commands/terminal.c: New file.
  17467. * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/term.c
  17468. commands/terminal.c and lib/charset.c.
  17469. * conf/common.rmk (normal_mod_SOURCES): Add normal/term.c.
  17470. (pkglib_MODULES): Add terminal.mod.
  17471. (terminal_mod_SOURCES): New variable.
  17472. (terminal_mod_CFLAGS): Likewise.
  17473. (terminal_mod_LDFLAGS): Likewise.
  17474. * genhandlerlist.sh: Don't handle terminals.
  17475. * genmk.rb: Generate terminal-*.lst.
  17476. * genterminallist.sh: New file.
  17477. * include/grub/charset.h (grub_ucs4_to_utf8_alloc): New proto.
  17478. (grub_is_valid_utf8): Likewise.
  17479. (grub_utf8_to_ucs4_alloc): Likewise.
  17480. * include/grub/menu_viewer.h (grub_menu_viewer): Rewritten.
  17481. (grub_menu_register_viewer): Changed argument.
  17482. (grub_menu_try_text): New proto.
  17483. (grub_gfxmenu_try_hook): New declaration.
  17484. * include/grub/normal.h (grub_normal_exit_level): New declaration.
  17485. (grub_menu_init_page): Additional argument term.
  17486. (grub_normal_init_page): Likewise.
  17487. (grub_cmdline_get): Arguments simplified.
  17488. (grub_utf8_to_ucs4_alloc): Removed.
  17489. (grub_print_ucs4): Additional argument term.
  17490. (grub_getstringwidth): Likewise.
  17491. (grub_print_message_indented): Likewise.
  17492. (grub_menu_text_register_instances): New proto.
  17493. (grub_show_menu): Likewise.
  17494. (read_terminal_list): Likewise.
  17495. (grub_set_more): Likewise.
  17496. * include/grub/parser.h: Include handler.h.
  17497. * include/grub/reader.h: Rewritten.
  17498. * include/grub/term.h (GRUB_TERM_NEED_INIT): Removed.
  17499. (GRUB_TERM_WIDTH): Changed to function.
  17500. (GRUB_TERM_HEIGHT): Likewise.
  17501. (GRUB_TERM_BORDER_WIDTH): Likewise.
  17502. (GRUB_TERM_BORDER_HEIGHT): Likewise.
  17503. (GRUB_TERM_NUM_ENTRIES): Likewise.
  17504. (GRUB_TERM_ENTRY_WIDTH): Likewise.
  17505. (GRUB_TERM_CURSOR_X): Likewise.
  17506. (grub_term_input_class): Likewise.
  17507. (grub_term_output_class): Likewise.
  17508. (grub_term_outputs_disabled): New declaration.
  17509. (grub_term_inputs_disabled): Likewise.
  17510. (grub_term_outputs): Likewise.
  17511. (grub_term_inputs): Likewise.
  17512. (grub_term_register_input): Rewritten.
  17513. (grub_term_register_output): Likewise.
  17514. (grub_term_unregister_input): Likewise.
  17515. (grub_term_unregister_output): Likewise.
  17516. (FOR_ACTIVE_TERM_INPUTS): New macro.
  17517. (FOR_DISABLED_TERM_INPUTS): Likewise.
  17518. (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
  17519. (FOR_DISABLED_TERM_OUTPUTS): Likewise.
  17520. * include/grub/terminfo.h: Add oterm argument to all protypes.
  17521. * kern/main.c (grub_main): Don't call grub_register_rescue_reader.
  17522. Use grub_rescue_run.
  17523. * kern/misc.c (grub_utf8_to_ucs4): Put '?' for invalid characters.
  17524. All users updated.
  17525. * kern/reader.c: Removed. All users updated.
  17526. * kern/rescue_reader.c (grub_rescue_init): Removed.
  17527. (grub_rescue_reader): Likewise.
  17528. (grub_register_rescue_reader): Likewise.
  17529. (grub_rescue_run): New function based on kern/reader.c.
  17530. * kern/term.c: Adapted for multiterm.
  17531. * lib/charset.c (grub_ucs4_to_utf8_alloc): New function.
  17532. (grub_is_valid_utf8): Likewise.
  17533. (grub_utf8_to_ucs4_alloc): Moved from normal/menu_text.c.
  17534. * loader/i386/efi/linux.c (grub_cmd_linux): Retrieve parameters of
  17535. right terminal.
  17536. * loader/i386/linux.c (grub_linux_boot): Likewise.
  17537. * normal/auth.c (grub_username_get): New function.
  17538. (grub_auth_check_authentication): Use grub_username_get.
  17539. * normal/cmdline.c: Changed to UCS4. Adapted for multiterm.
  17540. * normal/color.c: Adapt for multiterm.
  17541. * normal/main.c (read_config_file): Don't use grub_reader_loop.
  17542. (grub_normal_init_page): Additional argument term.
  17543. (read_lists): Call read_terminal_lists.
  17544. (grub_enter_normal_mode): Call grub_cmdline_run.
  17545. Handle grub_normal_exit_level.
  17546. (grub_cmd_normal): Make reentrant.
  17547. (grub_cmd_normal_exit): New function.
  17548. (grub_normal_reader_init): Additional argument nested. Handle multiterm.
  17549. * normal/menu.c: Adapt for multiterm.
  17550. * normal/menu_entry.c: Likewise.
  17551. * normal/menu_text.c: Likewise.
  17552. * normal/menu_viewer.c: Removed. All users updated.
  17553. * normal/term.c: New file.
  17554. * util/console.c: Change order of includes to workaround a bug in
  17555. ncurses headers.
  17556. * term/terminfo.c: New argument oterm on all exported functions.
  17557. All users updated.
  17558. * util/grub-editenv.c (grub_term_input_class): Removed.
  17559. (grub_term_output_class): Likewise.
  17560. 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
  17561. Make loader output a bit more user-friendly.
  17562. * util/grub.d/10_hurd.in: Print message indicating that GNU Mach
  17563. is being loaded. Likewise for the Hurd.
  17564. * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating
  17565. that kernel of FreeBSD ${version} is being loaded.
  17566. * loader/i386/linux.c (grub_cmd_linux): Move debug info to
  17567. grub_dprintf().
  17568. (grub_cmd_initrd): Likewise.
  17569. * util/grub.d/10_linux.in (linux_entry): Print message indicating
  17570. that Linux ${version} is being loaded. Likewise for initrd.
  17571. 2010-01-09 Carles Pina i Estany <carles@pina.cat>
  17572. * gettext/gettext.c (GRUB_MOD_INIT): Gettextizze.
  17573. 2010-01-08 Carles Pina i Estany <carles@pina.cat>
  17574. * loader/efi/appleloader.c: Include `<grub/i18n.h>'.
  17575. (GRUB_MOD_INIT): Gettextizze.
  17576. * loader/efi/chainloader.c: Include `<grub/i18n.h>'.
  17577. (GRUB_MOD_INIT): Gettextizze.
  17578. * loader/i386/efi/linux.c: Include `<grub/i18n.h>'.
  17579. (grub_cmd_linux): Capitalise Linux.
  17580. (GRUB_MOD_INIT): Gettextizze.
  17581. * loader/i386/ieee1275/linux.c: Include `<grub/i18n.h>'.
  17582. (grub_cmd_linux): Capitalise Linux.
  17583. (GRUB_MOD_INIT): Gettextizze.
  17584. * loader/i386/linux.c: Include `<grub/i18n.h>'.
  17585. (grub_cmd_linux): Capitalise Linux.
  17586. (GRUB_MOD_INIT): Gettextizze.
  17587. * loader/i386/pc/chainloader.c: Include `<grub/i18n.h>'.
  17588. (GRUB_MOD_INIT): Gettextizze.
  17589. * loader/i386/pc/linux.c: Include `<grub/i18n.h>'.
  17590. (grub_cmd_linux): Capitalise Linux.
  17591. (GRUB_MOD_INIT): Gettextizze.
  17592. * loader/i386/xnu.c: Include `<grub/i18n.h>'.
  17593. (grub_cpu_xnu_init): Gettextizze.
  17594. * loader/multiboot_loader.c: Include `<grub/i18n.h>'.
  17595. (GRUB_MOD_INIT): Gettextizze.
  17596. * loader/powerpc/ieee1275/linux.c: Include `<grub/i18n.h>'.
  17597. (GRUB_MOD_INIT): Gettextizze.
  17598. * loader/sparc64/ieee1275/linux.c: Include `<grub/i18n.h>'.
  17599. (grub_linux_load64): Capitalise Linux.
  17600. (GRUB_MOD_INIT): Gettextizze.
  17601. * loader/xnu.c: Include `<grub/i18n.h>'.
  17602. (GRUB_MOD_INIT): Gettextizze.
  17603. * po/POTFILES: Add `loader/efi/appleloader.c',
  17604. `loader/efi/chainloader.c', `loader/i386/efi/linux.c',
  17605. `loader/i386/ieee1275/linux.c', `loader/i386/linux.c',
  17606. `loader/i386/pc/chainloader.c', `loader/i386/pc/linux.c',
  17607. `loader/i386/xnu.c', `loader/multiboot_loader.c',
  17608. `loader/powerpc/ieee1275/linux.c', `loader/sparc64/ieee1275/linux.c'
  17609. and `loader/xnu.c'.
  17610. 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
  17611. * src/mkisofs.c: Remove `ifdef linux' portability kludge.
  17612. 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
  17613. * util/mkisofs/defaults.h (APPID_DEFAULT): Redefine using PACKAGE_NAME.
  17614. (SYSTEM_ID_DEFAULT): Set to "GNU" unconditionally.
  17615. * util/mkisofs/mkisofs.c (main): Readjust --version output.
  17616. 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
  17617. Reset Multiboot 2 support. New loader implements the draft in
  17618. /branches/multiboot2 and shares as much code as possible with the
  17619. production Multiboot 1 implementation.
  17620. * loader/ieee1275/multiboot2.c: Remove file. Update all users.
  17621. * loader/multiboot2.c: Likewise.
  17622. * loader/i386/multiboot_helper.S: Likewise.
  17623. * include/multiboot2.h: Replace with latest version from the draft
  17624. in /branches/multiboot2.
  17625. * conf/i386-coreboot.rmk (multiboot_mod_SOURCES): Remove
  17626. `loader/i386/multiboot_helper.S', `loader/i386/pc/multiboot2.c'
  17627. and `loader/multiboot2.c'.
  17628. (pkglib_MODULES): Add `multiboot2.mod'.
  17629. (multiboot2_mod_SOURCES): New variable.
  17630. (multiboot2_mod_LDFLAGS): Likewise.
  17631. (multiboot2_mod_CFLAGS): Likewise. Define `GRUB_USE_MULTIBOOT2'.
  17632. * conf/i386-pc.rmk: Likewise.
  17633. * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
  17634. (multiboot_mod_SOURCES): Remove variable.
  17635. (multiboot_mod_LDFLAGS): Likewise.
  17636. (multiboot_mod_CFLAGS): Likewise.
  17637. * include/grub/multiboot.h [GRUB_USE_MULTIBOOT2]: Include
  17638. `<multiboot2.h>' instead of `<multiboot.h>'.
  17639. [GRUB_USE_MULTIBOOT2] (MULTIBOOT_BOOTLOADER_MAGIC)
  17640. (MULTIBOOT_HEADER_MAGIC): New macros.
  17641. * loader/multiboot_loader.c (module_version_status): Remove variable.
  17642. (find_multi_boot2_header): Remove function.
  17643. (grub_cmd_multiboot_loader): Remove Multiboot 2 / Multiboot 1 selection
  17644. logic. Always check for the Multiboot version we're compiling for.
  17645. (grub_cmd_module_loader): Likewise.
  17646. [GRUB_USE_MULTIBOOT2] (GRUB_MOD_INIT(multiboot)): Register `multiboot2'
  17647. command instead of `multiboot'.
  17648. 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
  17649. * include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
  17650. * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here. Update
  17651. all users.
  17652. 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
  17653. 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
  17654. Fix breakage introduced with previous commit.
  17655. * normal/dyncmd.c (read_command_list): Avoid unregistering kernel
  17656. commands.
  17657. * normal/handler.c (read_handler_list): Revert part of previous commit
  17658. affecting this file.
  17659. * normal/main.c (read_lists): Move read_handler_list() call back to ...
  17660. (grub_normal_execute): ... here.
  17661. 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
  17662. Merge prefix-redefinition-fix branch.
  17663. * normal/autofs.c (read_fs_list): Make function capable of being
  17664. run multiple times, gracefuly replacing the previous data
  17665. structures.
  17666. * normal/dyncmd.c (read_command_list): Likewise.
  17667. * normal/handler.c (read_handler_list): Likewise.
  17668. * normal/main.c (read_lists): New function. Calls all the
  17669. list reading functions.
  17670. (grub_normal_execute): Use read_lists() instead of calling all
  17671. list reading functions explicitly. Register read_lists() as a
  17672. variable hook attached to ${prefix}.
  17673. 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
  17674. Merge crypto branch.
  17675. * Makefile.in (pkglib_DATA): Add crypto.lst.
  17676. (crypto.lst): New target.
  17677. * commands/hashsum.c: New file.
  17678. * commands/password.c (check_password): Use grub_crypto_memcmp.
  17679. * commands/password_pbkdf2.c: New file.
  17680. * commands/xnu_uuid.c: Remove MD5. Use GRUB_MD_MD5.
  17681. * conf/any-emu.rmk (grub_emu_SOURCES): Add lib/crypto.c,
  17682. normal/crypto.c and lib/libgcrypt-grub/cipher/md5.c.
  17683. (grub_emu_CFLAGS): Add -Wno-missing-field-initializers -Wno-error
  17684. -I$(srcdir)/lib/libgcrypt_wrap.
  17685. * conf/common.rmk (normal_mod_SOURCES): Add normal/crypto.c.
  17686. (pkglib_MODULES): Add crypto.mod, hashsum.mod, pbkdf2.mod and
  17687. password_pbkdf2.mod.
  17688. (crypto_mod_SOURCES): New variable.
  17689. (crypto_mod_CFLAGS): Likewise.
  17690. (crypto_mod_LDFLAGS): Likewise.
  17691. (hashsum_mod_SOURCES): New variable.
  17692. (hashsum_mod_CFLAGS): Likewise.
  17693. (hashsum_mod_LDFLAGS): Likewise.
  17694. (pbkdf2_mod_SOURCES): New variable.
  17695. (pbkdf2_mod_CFLAGS): Likewise.
  17696. (pbkdf2_mod_LDFLAGS): Likewise.
  17697. (password_pbkdf2_mod_SOURCES): New variable.
  17698. (password_pbkdf2_mod_CFLAGS): Likewise.
  17699. (password_pbkdf2_mod_LDFLAGS): Likewise.
  17700. (bin_UTILITIES): Add grub-mkpasswd-pbkdf2.
  17701. (grub_mkpasswd_pbkdf2_SOURCES): New variable.
  17702. (grub_mkpasswd_pbkdf2_CFLAGS): Likewise.
  17703. Include conf/gcry.rmk.
  17704. * include/grub/auth.h: Rewritten.
  17705. * include/grub/crypto.h: New file.
  17706. * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_LUKS_ID.
  17707. * include/grub/normal.h (read_crypto_list): New prototype.
  17708. * lib/crypto.c: New file.
  17709. * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
  17710. * lib/pbkdf2.c: Likewise.
  17711. * normal/auth.c (grub_auth_strcmp): Removed.
  17712. (grub_iswordseparator): Likewise.
  17713. (grub_auth_strword): Likewise.
  17714. (is_authenticated): Use grub_strword.
  17715. (grub_auth_check_authentication): Use grub_strcmp, grub_password_get
  17716. and grub_strword. Pass entered password to authentication callback.
  17717. * normal/crypto.c: New file.
  17718. * normal/main.c: Call read_crypto_list.
  17719. * util/grub-mkpasswd-pbkdf2.c: New file.
  17720. * util/import_gcry.py: Generate crypto.lst. Add hash blocklen.
  17721. 2010-01-06 Vladimir Serbinenko <phcoder@gmail.com>
  17722. Fix descent and ascent calculation.
  17723. * util/grub-mkfont.c (grub_font_info): New fields 'asce' and 'max_y'.
  17724. (options): New option "asce".
  17725. (usage): Likewise.
  17726. (add_char): Ignore invalid glyphs for descent calculation.
  17727. Calculate ascent from actual content.
  17728. (print_glyphs): Use 'asce'.
  17729. (write_font): Likewise. Allow ascent override.
  17730. (main): Handle "asce" option.
  17731. 2010-01-06 Carles Pina i Estany <carles@pina.cat>
  17732. * kern/err.c: Include `<grub/i18n.h>'.
  17733. (grub_print_error): Add full stop. Gettextizze.
  17734. * loader/i386/bsd.c (grub_netbsd_boot): Change grub_error description.
  17735. (grub_bsd_load_elf): Capitalise ELF.
  17736. (grub_cmd_freebsd_loadenv): Add `s' in error string.
  17737. (grub_cmd_freebsd_module): Likewise.
  17738. (grub_cmd_freebsd_module_elf): Likewise.
  17739. * loader/i386/bsdXX.c (SUFFIX): Capitalise ELF.
  17740. 2010-01-06 Carles Pina i Estany <carles@pina.cat>
  17741. * commands/search.c (GRUB_MOD_INIT): Use HELP_MESSAGE.
  17742. * commands/search_file.c (HELP_MESSAGE): New macro.
  17743. * commands/search_label.c (HELP_MESSAGE): Likewise.
  17744. * commands/search_uuid.c (HELP_MESSAGE): Likewise.
  17745. * po/POTFILES: Add `commands/search_file.c',
  17746. `commands/search_label.c', `commands_uuid.c'. Remove duplicate
  17747. `commands/search.c'.
  17748. 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
  17749. * config.rpath: Update from Gnulib.
  17750. 2010-01-05 Yves Blusseau <blusseau@zetam.org>
  17751. * commands/acpi.c (grub_acpi_create_ebda): fix incorrect message.
  17752. 2010-01-05 Yves Blusseau <yves.blusseau@zetam.org>
  17753. * util/sparc64/ieee1275/grub-mkimage.c (main): Typo fix.
  17754. 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
  17755. * util/mkisofs/write.c (padblock_write): Switch size and nmemb
  17756. arguments to fread so that we get a return value in bytes, rather
  17757. than something that will normally be rounded down to 0.
  17758. Adjust error handling to avoid producing garbage when size_t is not
  17759. the same size as long long.
  17760. 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
  17761. * util/mkisofs/write.c (padblock_write): Check return value of
  17762. fread.
  17763. 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
  17764. Remove grub-mkfloppy. Images produced by grub-mkrescue are valid
  17765. floppy images now.
  17766. * util/i386/pc/grub-mkfloppy.in: Remove. Update all users.
  17767. 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
  17768. * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Use ALIGN_UP macro
  17769. instead of manual alignment.
  17770. * kern/disk.c (grub_disk_read): Remove grub_dprintf call (excessively
  17771. verbose). Avoid attempts to read past end of the device
  17772. (grub_disk_adjust_range() guarantees that we can read `size' bytes,
  17773. but GRUB_DISK_CACHE_SIZE may exceed that).
  17774. 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
  17775. * commands/crc.c (grub_cmd_crc): Abort on read errors.
  17776. * fs/iso9660.c (grub_iso9660_read): Check for read error and pass
  17777. it to upper layer.
  17778. 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
  17779. * include/grub/efi/api.h (GRUB_EFI_PIWG_DEVICE_PATH_SUBTYPE):
  17780. New constant.
  17781. (grub_efi_piwg_device_path): New structure
  17782. (grub_efi_piwg_device_path_t): New type.
  17783. * loader/efi/appleloader.c (piwg_full_device_path): New structure.
  17784. (devpath_1): Transform to a structure. All users updated.
  17785. (devpath_2): Likewise.
  17786. (devpath_3): Likewise.
  17787. (devpath_4): Likewise.
  17788. (devpath_5): Likewise.
  17789. 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
  17790. * loader/efi/appleloader.c: Restored. Update all users.
  17791. 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
  17792. * boot/i386/pc/diskboot.S: Fix inaccurate comment.
  17793. * util/i386/pc/grub-setup.c: Include `<assert.h>'.
  17794. (struct boot_blocklist): Move from here ...
  17795. * include/grub/i386/pc/boot.h [ASM_FILE]
  17796. (struct grub_boot_blocklist): ... to here. Update all users.
  17797. (setup): Only initialize `start' member of `first_block'
  17798. structure. Add assert() calls to verify the other members.
  17799. * util/i386/pc/grub-mkimage.c: Include `<assert.h>'.
  17800. (generate_image): Fix broken blocklist length initialization.
  17801. Add assert() call to verify blocklist `segment' field.
  17802. 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
  17803. * loader/efi/appleloader.c: Remove. Update all users.
  17804. 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
  17805. * boot/i386/pc/boot.S: Update copyright year.
  17806. * boot/i386/pc/cdboot.S: Likewise.
  17807. * boot/i386/pc/diskboot.S: Likewise.
  17808. * boot/i386/pc/lnxboot.S: Likewise.
  17809. * boot/i386/pc/pxeboot.S: Likewise.
  17810. * bus/pci.c: Likewise.
  17811. * commands/cmp.c: Likewise.
  17812. * commands/help.c: Likewise.
  17813. * commands/hexdump.c: Likewise.
  17814. * commands/i386/pc/halt.c: Likewise.
  17815. * commands/i386/pc/play.c: Likewise.
  17816. * commands/i386/pc/vbeinfo.c: Likewise.
  17817. * commands/ls.c: Likewise.
  17818. * commands/test.c: Likewise.
  17819. * disk/dmraid_nvidia.c: Likewise.
  17820. * disk/i386/pc/biosdisk.c: Likewise.
  17821. * disk/ieee1275/nand.c: Likewise.
  17822. * disk/ieee1275/ofdisk.c: Likewise.
  17823. * disk/lvm.c: Likewise.
  17824. * disk/raid.c: Likewise.
  17825. * disk/raid6_recover.c: Likewise.
  17826. * disk/scsi.c: Likewise.
  17827. * fs/affs.c: Likewise.
  17828. * fs/cpio.c: Likewise.
  17829. * fs/ext2.c: Likewise.
  17830. * fs/hfs.c: Likewise.
  17831. * fs/iso9660.c: Likewise.
  17832. * fs/ntfs.c: Likewise.
  17833. * fs/sfs.c: Likewise.
  17834. * fs/udf.c: Likewise.
  17835. * fs/ufs.c: Likewise.
  17836. * fs/xfs.c: Likewise.
  17837. * gencmdlist.sh: Likewise.
  17838. * genmk.rb: Likewise.
  17839. * include/grub/disk.h: Likewise.
  17840. * include/grub/efi/api.h: Likewise.
  17841. * include/grub/efi/efi.h: Likewise.
  17842. * include/grub/efi/pe32.h: Likewise.
  17843. * include/grub/elf.h: Likewise.
  17844. * include/grub/fs.h: Likewise.
  17845. * include/grub/i386/at_keyboard.h: Likewise.
  17846. * include/grub/i386/pc/memory.h: Likewise.
  17847. * include/grub/i386/pc/vbe.h: Likewise.
  17848. * include/grub/i386/pci.h: Likewise.
  17849. * include/grub/i386/tsc.h: Likewise.
  17850. * include/grub/ieee1275/ieee1275.h: Likewise.
  17851. * include/grub/ntfs.h: Likewise.
  17852. * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
  17853. * include/grub/sparc64/libgcc.h: Likewise.
  17854. * include/grub/symbol.h: Likewise.
  17855. * include/grub/types.h: Likewise.
  17856. * include/multiboot2.h: Likewise.
  17857. * io/gzio.c: Likewise.
  17858. * kern/device.c: Likewise.
  17859. * kern/disk.c: Likewise.
  17860. * kern/efi/efi.c: Likewise.
  17861. * kern/efi/mm.c: Likewise.
  17862. * kern/elf.c: Likewise.
  17863. * kern/file.c: Likewise.
  17864. * kern/i386/dl.c: Likewise.
  17865. * kern/i386/pc/init.c: Likewise.
  17866. * kern/i386/pc/startup.S: Likewise.
  17867. * kern/ieee1275/ieee1275.c: Likewise.
  17868. * kern/ieee1275/init.c: Likewise.
  17869. * kern/main.c: Likewise.
  17870. * kern/mm.c: Likewise.
  17871. * kern/powerpc/dl.c: Likewise.
  17872. * kern/sparc64/dl.c: Likewise.
  17873. * kern/x86_64/dl.c: Likewise.
  17874. * lib/hexdump.c: Likewise.
  17875. * loader/efi/appleloader.c: Likewise.
  17876. * loader/i386/ieee1275/linux.c: Likewise.
  17877. * loader/i386/pc/chainloader.c: Likewise.
  17878. * loader/i386/pc/linux.c: Likewise.
  17879. * loader/i386/pc/multiboot2.c: Likewise.
  17880. * loader/ieee1275/multiboot2.c: Likewise.
  17881. * loader/multiboot2.c: Likewise.
  17882. * loader/multiboot_loader.c: Likewise.
  17883. * loader/powerpc/ieee1275/linux.c: Likewise.
  17884. * normal/completion.c: Likewise.
  17885. * normal/menu_entry.c: Likewise.
  17886. * partmap/apple.c: Likewise.
  17887. * util/grub.d/10_hurd.in: Likewise.
  17888. * util/hostfs.c: Likewise.
  17889. * video/readers/png.c: Likewise.
  17890. 2010-01-03 Colin Watson <cjwatson@ubuntu.com>
  17891. * include/grub/misc.h (GNUC_PREREQ): New macro.
  17892. (ATTRIBUTE_ERROR): New macro.
  17893. * include/grub/list.h (grub_bad_type_cast_real): Use
  17894. ATTRIBUTE_ERROR.
  17895. 2010-01-03 Carles Pina i Estany <carles@pina.cat>
  17896. * normal/menu_text.c (print_message): Change messages.
  17897. 2010-01-03 Carles Pina i Estany <carles@pina.cat>
  17898. * normal/menu_entry.c (store_completion): Gettextizze.
  17899. 2010-01-03 Carles Pina i Estany <carles@pina.cat>
  17900. * kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
  17901. 2010-01-03 Carles Pina i Estany <carles@pina.cat>
  17902. * po/POTFILES: Sort correctly.
  17903. 2010-01-03 Carles Pina i Estany <carles@pina.cat>
  17904. * commands/acpi.c (GRUB_MOD_INIT): Capitalise some words from help.
  17905. * commands/efi/loadbios.c (GRUB_MOD_INIT): Capitalise BIOS.
  17906. * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Remove space. Add
  17907. full stop.
  17908. * commands/loadenv.c (GRUB_MOD_INIT): Remove command name from
  17909. summary. Gettextizze the strings.
  17910. * commands/probe.c (grub_cmd_probe): Capitalise UUID and FS.
  17911. * commands/xnu_uuid.c (GRUB_MOD_INIT): Capitalise XNU.
  17912. * disk/loopback.c (grub_arg_options): Capitalise first letter. Add
  17913. full stop.
  17914. (GRUB_MOD_INIT): Remove command name from summary.
  17915. * hello/hello.c (GRUD_MOT_INIT): Add missing full stop. Improve the
  17916. summary.
  17917. * loader/i386/bsd.c (grub_arg_option): Capitalise CDROM.
  17918. * term/i386/pc/serial.c (options): Add full stops.
  17919. (GRUB_MOD_INIT): Remove command name from the summary.
  17920. 2010-01-03 Carles Pina i Estany <carles@pina.cat>
  17921. * commands/acpi.c: Gettextizze help strings and/or options. Include
  17922. `grub/i18n.h' if needed.
  17923. * commands/blocklist.c: Likewise.
  17924. * commands/boot.c: Likewise.
  17925. * commands/cat.c: Likewise.
  17926. * commands/cmp.c: Likewise.
  17927. * commands/configfile.c: Likewise.
  17928. * commands/crc.c: Likewise.
  17929. * commands/date.c: Likewise.
  17930. * commands/echo.c: Likewise.
  17931. * commands/efi/fixvideo.c: Likewise.
  17932. * commands/efi/loadbios.c: Likewise.
  17933. * commands/gptsync.c: Likewise.
  17934. * commands/halt.c: Likewise.
  17935. * commands/handler.c: Likewise.
  17936. * commands/hdparm.c: Likewise.
  17937. * commands/hexdump.c: Likewise.
  17938. * commands/i386/cpuid.c: Likewise.
  17939. * commands/i386/pc/drivemap.c: Likewise.
  17940. * commands/i386/pc/halt.c: Likewise.
  17941. * commands/i386/pc/pxecmd.c: Likewise.
  17942. * commands/i386/pc/vbeinfo.c: Likewise.
  17943. * commands/i386/pc/vbetest.c: Likewise.
  17944. * commands/ieee1275/suspend.c: Likewise.
  17945. * commands/keystatus.c: Likewise.
  17946. * commands/loadenv.c: Likewise.
  17947. * commands/ls.c: Likewise.
  17948. * commands/lsmmap.c: Likewise.
  17949. * commands/lspci.c: Likewise.
  17950. * commands/memrw.c: Likewise.
  17951. * commands/minicmd.c: Likewise.
  17952. * commands/parttool.c: Likewise.
  17953. * commands/password.c: Likewise.
  17954. * commands/probe.c: Likewise.
  17955. * commands/read.c: Likewise.
  17956. * commands/reboot.c: Likewise.
  17957. * commands/search.c: Likewise.
  17958. * commands/sleep.c: Likewise.
  17959. * commands/test.c: Likewise.
  17960. * commands/true.c: Likewise.
  17961. * commands/usbtest.c: Likewise.
  17962. * commands/videotest.c: Likewise.
  17963. * commands/xnu_uuid.c: Likewise.
  17964. * disk/loopback.c: Likewise.
  17965. * hello/hello.c: Likewise.
  17966. * loader/i386/bsd.c: Likewise.
  17967. * term/i386/pc/serial.c: Likewise.
  17968. * po/POTFILES: Add new files.
  17969. 2010-01-02 Colin Watson <cjwatson@ubuntu.com>
  17970. * term/i386/pc/at_keyboard.c
  17971. (keyboard_controller_wait_untill_ready): Rename to ...
  17972. (keyboard_controller_wait_until_ready): ... this. Update all users.
  17973. 2010-01-01 Carles Pina i Estany <carles@pina.cat>
  17974. * commands/help.c: Include `grub/mm.h' and `grub/normal.h'.
  17975. (grub_cmd_help): Print the cmd->name before the cmd->summary. Cut the
  17976. string using string width.
  17977. * normal/menu_text.c (grub_print_message_indented): Use
  17978. grub_print_spaces and not print_spaces.
  17979. (print_timeout): Likewise.
  17980. (print_spaces): Move to...
  17981. * include/grub/term.h: ... here. Change the name to grub_print_spaces.
  17982. 2010-01-01 Robert Millan <rmh.grub@aybabtu.com>
  17983. Import from Gnulib.
  17984. * gnulib/getdelim.c: New file.
  17985. * gnulib/getline.c: Likewise.
  17986. 2009-12-31 BVK Chaitanya <bvk.groups@gmail.com>
  17987. * include/grub/list.h (grub_assert_fail): Removed.
  17988. (grub_bad_type_cast_real): New function.
  17989. (grub_bad_type_cast): New macro.
  17990. (GRUB_AS_LIST): Use grub_bad_type_cast.
  17991. (GRUB_AS_LIST_P): Likewise.
  17992. (GRUB_AS_NAMED_LIST): Likewise.
  17993. (GRUB_AS_NAMED_LIST_P): Likewise.
  17994. (GRUB_AS_PRIO_LIST): Likewise.
  17995. (GRUB_AS_PRIO_LIST_P): Likewise.
  17996. * include/grub/handler.h (GRUB_AS_HANDLER): Likewise.
  17997. 2009-12-29 Vladimir Serbinenko <phcoder@gmail.com>
  17998. * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)):
  17999. Fix syntax error.
  18000. 2009-12-29 Robert Millan <rmh.grub@aybabtu.com>
  18001. * configure.ac: Check for TARGET_CFLAGS initialization before we
  18002. initialize it ourselves (sigh).
  18003. Move a few modifications to TARGET_CFLAGS to be unconditional
  18004. (extra warning flags, loop alignment, i386 CPU extensions, GCC 4.4
  18005. eh_frame)
  18006. * gettext/gettext.c (grub_gettext_delete_list): Add `void' argument.
  18007. * term/i386/pc/at_keyboard.c
  18008. (keyboard_controller_wait_untill_ready): Likewise.
  18009. (keyboard_controller_led): Rename `led_status' paramter to avoid
  18010. name conflict.
  18011. 2009-12-28 Carles Pina i Estany <carles@pina.cat>
  18012. * normal/misc.c (grub_normal_print_device_info): Add spaces and double
  18013. quotes.
  18014. 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
  18015. * kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
  18016. 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
  18017. * normal/menu_text.c (grub_print_message_indented): Prevent
  18018. past-the-end-of-array dereference.
  18019. 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
  18020. * video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to ..
  18021. (GRUB_MOD_FINI (video_reader_jpeg)): ...this
  18022. 2009-12-27 Carles Pina i Estany <carles@pina.cat>
  18023. * normal/cmdline.c (grub_cmdline_get): Print a space after prompt.
  18024. * normal/main.c (grub_normal_read_line): Remove a space from the
  18025. default prompt.
  18026. 2009-12-27 Carles Pina i Estany <carles@pina.cat>
  18027. * loader/i386/efi/linux.c (GRUB_MOD_INIT): Improve command summary.
  18028. * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
  18029. * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
  18030. * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
  18031. * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
  18032. * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
  18033. * loader/xnu.c (GRUB_MOD_INIT): Likewise.
  18034. 2009-12-26 Carles Pina i Estany <carles@pina.cat>
  18035. * video/readers/jpeg.c (cmd): Declare.
  18036. (grub_cmd_jpegtest): Use `grub_command_t' type.
  18037. (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
  18038. Assign to `cmd'.
  18039. (GRUB_MOD_FINI): Use `cmd' to unregister.
  18040. * video/readers/png.c (cmd): Declare.
  18041. (grub_cmd_pngtest): Use `grub_command_t' type.
  18042. (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
  18043. Assign to `cmd'.
  18044. (GRUB_MOD_FINI): Use `cmd' to unregister.
  18045. * video/readers/tga.c (cmd): Declare.
  18046. (grub_cmd_tgatest): Use `grub_command_t' type.
  18047. (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
  18048. Assign to `cmd'.
  18049. (GRUB_MOD_FINI): Use `cmd' to unregister.
  18050. 2009-12-26 Carles Pina i Estany <carles@pina.cat>
  18051. * efiemu/main.c (GRUB_MOD_INIT): Fix capitalizations and/or full
  18052. stops.
  18053. * kern/corecmd.c (grub_register_core_commands): Likewise.
  18054. * loader/efi/chainloader.c (GRUB_MOD_INIT): Likewise.
  18055. * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
  18056. * loader/i386/efi/linux.c (GRUB_MOD_INIT): Likewise.
  18057. * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
  18058. * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
  18059. * loader/i386/pc/chainloader.c (GRUB_MOD_INIT): Likewise.
  18060. * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
  18061. * loader/multiboot_loader.c (GRUB_MOD_INIT): Likewise.
  18062. * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
  18063. * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
  18064. * loader/xnu.c (GRUB_MOD_INIT): Likewise.
  18065. * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
  18066. * normal/handler.c (insert_handler): Likewise.
  18067. * normal/main.c (GRUB_MOD_INIT): Likewise.
  18068. * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
  18069. 2009-12-26 Carles Pina i Estany <carles@pina.cat>
  18070. * commands/help.c (grub_cmd_help): Print the command name before the
  18071. summary.
  18072. (GRUB_MOD_INIT): Remove command name from the summary.
  18073. * kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty
  18074. string as summary.
  18075. * lib/arg.c (find_long): Print the command name before the summary.
  18076. * commands/acpi.c (GRUB_MOD_INIT): Remove command name from the
  18077. summary.
  18078. * commands/blocklist.c (GRUB_MOD_INIT): Likewise.
  18079. * commands/cat.c (GRUB_MOD_INIT): Likewise.
  18080. * commands/cmp.c (GRUB_MOD_INIT): Likewise.
  18081. * commands/configfile.c (GRUB_MOD_INIT): Likewise.
  18082. * commands/crc.c (GRUB_MOD_INIT): Likewise.
  18083. * commands/date.c (GRUB_MOD_INIT): Likewise.
  18084. * commands/echo.c (GRUB_MOD_INIT): Likewise.
  18085. * commands/efi/loadbios.c (GRUB_MOD_INIT): Likewise.
  18086. * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
  18087. * commands/handler.c (GRUB_MOD_INIT): Likewise.
  18088. * commands/hdparm.c (GRUB_MOD_INIT): Likewise.
  18089. * commands/hexdump.c (GRUB_MOD_INIT): Likewise.
  18090. * commands/i386/cpuid.c (GRUB_MOD_INIT): Likewise.
  18091. * commands/i386/pc/halt.c (GRUB_MOD_INIT): Likewise.
  18092. * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
  18093. * commands/i386/pc/pxecmd.c (GRUB_MOD_INIT): Likewise.
  18094. * commands/keystatus.c (GRUB_MOD_INIT): Likewise.
  18095. * commands/loadenv.c (GRUB_MOD_INIT): Likewise.
  18096. * commands/ls.c (GRUB_MOD_INIT): Likewise.
  18097. * commands/lspci.c (GRUB_MOD_INIT): Likewise.
  18098. * commands/memrw.c (GRUB_MOD_INIT): Likewise.
  18099. * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
  18100. * commands/parttool.c (GRUB_MOD_INIT): Likewise.
  18101. * commands/password.c (GRUB_MOD_INIT): Likewise.
  18102. * commands/probe.c (GRUB_MOD_INIT): Likewise.
  18103. * commands/read.c (GRUB_MOD_INIT): Likewise.
  18104. * commands/search.c (GRUB_MOD_INIT): Likewise.
  18105. * commands/sleep.c (GRUB_MOD_INIT): Likewise.
  18106. * commands/test.c (GRUB_MOD_INIT): Likewise.
  18107. * commands/xnu_uuid.c (GRUB_MOD_INIT): Likewise.
  18108. * efiemu/main.c (GRUB_MOD_INIT): Likewise.
  18109. * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
  18110. * gettext/gettext.c (GRUB_MOD_INIT): Likewise.
  18111. * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
  18112. * lib/arg.c (GRUB_MOD_INIT): Likewise.
  18113. * loader/efi/appleloader.c (GRUB_MOD_INIT): Likewise.
  18114. * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
  18115. * loader/xnu.c (GRUB_MOD_INIT): Likewise.
  18116. * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
  18117. * term/terminfo.c (GRUB_MOD_INIT): Likewise.
  18118. * video/readers/jpeg.c (GRUB_MOD_INIT): Likewise.
  18119. * video/readers/png.c (GRUB_MOD_INIT): Likewise.
  18120. * video/readers/tga.c (GRUB_MOD_INIT): Likewise.
  18121. 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
  18122. Use search command for preliminar UUID search.
  18123. * commands/search.c: Split into ...
  18124. * commands/search_wrap.c: ...this
  18125. * commands/search.c: ...and this.
  18126. * commands/search_file.c: New file.
  18127. * commands/search_label.c: New file.
  18128. * commands/search_uuid.c: New file.
  18129. * conf/any-emu.rmk (grub_emu_SOURCES): Remove commands/search.c.
  18130. Add commands/search_wrap.c, commands/search_file.c,
  18131. commands/search_label.c and commands/search_uuid.c.
  18132. * conf/common.rmk (pkglib_MODULES): Remove fs_uuid.mod and fs_file.mod.
  18133. (search_mod_SOURCES): Set to commands/search_wrap.c.
  18134. (pkglib_MODULES): Add search_fs_file.mod, search_fs_uuid.mod and
  18135. search_label.mod.
  18136. (search_fs_file_mod_SOURCES): New variable.
  18137. (search_fs_file_mod_CFLAGS): Likewise.
  18138. (search_fs_file_mod_LDFLAGS): Likewise.
  18139. (search_label_mod_SOURCES): Likewise.
  18140. (search_label_mod_CFLAGS): Likewise.
  18141. (search_label_mod_LDFLAGS): Likewise.
  18142. (search_fs_uuid_mod_SOURCES): New variable.
  18143. (search_fs_uuid_mod_CFLAGS): Likewise.
  18144. (search_fs_uuid_mod_LDFLAGS): Likewise.
  18145. (fs_file_mod_SOURCES): Removed.
  18146. (fs_file_mod_CFLAGS): Likewise.
  18147. (fs_file_mod_LDFLAGS): Likewise.
  18148. (fs_uuid_mod_SOURCES): Removed.
  18149. (fs_uuid_mod_CFLAGS): Likewise.
  18150. (fs_uuid_mod_LDFLAGS): Likewise.
  18151. * conf/sparc64-ieee1275.rmk (grub_install_SOURCES):
  18152. Set to util/grub-install.in.
  18153. * disk/fs_file.c: Removed.
  18154. * disk/fs_uuid.c: Likewise.
  18155. * include/grub/search.h: New file.
  18156. * util/grub-install.in: Handle sparc64.
  18157. Create and use load.cfg.
  18158. * util/sparc64/ieee1275/grub-install.in: Removed.
  18159. 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
  18160. * kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
  18161. Ignore return status if CF is cleared.
  18162. (grub_biosdisk_get_diskinfo_standard): Likewise.
  18163. 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
  18164. * term/i386/pc/at_keyboard.c
  18165. (keyboard_controller_wait_untill_ready): New function.
  18166. (grub_keyboard_controller_write, grub_keyboard_controller_read)
  18167. (keyboard_controller_led): Use keyboard_controller_wait_untill_ready()
  18168. for keyboard polling, rather than duplicate the same loop. This
  18169. saves a few bytes in code size.
  18170. 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
  18171. Support for (pxe[:server[:gateway]]) syntax and
  18172. use environment variable for PXE.
  18173. * commands/i386/pc/pxecmd.c (options): Removed.
  18174. (print_ip): Removed.
  18175. (grub_cmd_pxe): Removed
  18176. (grub_cmd_pxe_unload): New function.
  18177. * fs/i386/pc/pxe.c (grub_pxe_disk_data): New structure.
  18178. (grub_pxe_your_ip): Made static.
  18179. (grub_pxe_default_server_ip): Likewise.
  18180. (grub_pxe_default_gateway_ip): Likewise.
  18181. (grub_pxe_blksize): Likewise.
  18182. (parse_ip): New function.
  18183. (grub_pxe_open): Support server and gateway specification.
  18184. (grub_pxe_close): Free disk->data.
  18185. (grub_pxefs_open): Use disk->data.
  18186. (grub_pxefs_read): Likewise.
  18187. (grub_env_write_readonly): New function.
  18188. (set_mac_env): Likewise.
  18189. (set_env_limn_ro): Likewise.
  18190. (parse_dhcp_vendor): Likewise.
  18191. (grub_pxe_detect): Set the environment variables.
  18192. (set_ip_env): New function.
  18193. (write_ip_env): Likewise.
  18194. (grub_env_write_pxe_default_server): Likewise.
  18195. (grub_env_write_pxe_default_gateway): Likewise.
  18196. (grub_env_write_pxe_blocksize): Likewise.
  18197. (GRUB_MOD_INIT(pxe)): Set environment variables.
  18198. * include/grub/i386/pc/pxe.h (grub_pxe_mac_addr): Rename to ...
  18199. (grub_pxe_mac_addr_t): ... this. All users updated.
  18200. (grub_pxe_your_ip): Removed.
  18201. (grub_pxe_server_ip): Likewise.
  18202. (grub_pxe_gateway_ip): Likewise.
  18203. (grub_pxe_blksize): Likewise.
  18204. 2009-12-25 Carles Pina i Estany <carles@pina.cat>
  18205. * commands/help.c: Include `<grub/i18n.h>'.
  18206. (grub_cmd_help): Gettextizze.
  18207. (GRUB_MOD_INIT): Likewise.
  18208. * commands/i386/pc/play.c: Include `<grub/i18n.h>'.
  18209. (GRUB_MOD_INIT): Gettextizze.
  18210. * commands/search.c: Include `<grub/i18n.h>'.
  18211. (options): Gettextizze.
  18212. (GRUB_MOD_INIT): Gettextizze.
  18213. * lib/arg.c: Include `<grub/i18n.h>'.
  18214. (help_options): Gettextizze.
  18215. (find_long): Likewise.
  18216. (grub_arg_show_help): Likewise.
  18217. * normal/dyncmd.c: Include `<grub/i18n.h>'.
  18218. (read_command_list): Gettextizze.
  18219. * po/POTFILES: Add `commands/i386/pc/play.c', `commands/search.c',
  18220. `commands/help.c', `lib/arg.c' and `normal/dyncmd.c'.
  18221. 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
  18222. * include/grub/i386/at_keyboard.h (NUM_LOCK, SCROLL_LOCK): New macros.
  18223. * term/i386/pc/at_keyboard.c (KEYBOARD_STATUS_NUM_LOCK)
  18224. (KEYBOARD_LED_SCROLL, KEYBOARD_LED_NUM, KEYBOARD_LED_CAPS): New macros.
  18225. (led_status): New variable.
  18226. (keyboard_controller_led): New function.
  18227. (grub_at_keyboard_getkey_noblock): Handle num lock and scroll lock,
  18228. update led status for caps lock, num lock and scroll lock.
  18229. 2009-12-25 Felix Zielcke <fzielcke@z-51.de>
  18230. * util/hostdisk.c (open_device): Fix a comment.
  18231. 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
  18232. * util/grub-install.in (host_os): New variable.
  18233. * util/i386/efi/grub-install.in (host_os): Likewise.
  18234. 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
  18235. * util/mkisofs/write.c (padblock_write): Abort when given an
  18236. excedingly large embed image, instead of silently truncating it.
  18237. 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
  18238. * include/multiboot.h: Indentation fixes.
  18239. 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
  18240. * include/multiboot.h (struct multiboot_aout_symbol_table)
  18241. (struct multiboot_elf_section_header_table): New structure
  18242. declarations (stolen from GRUB Legacy).
  18243. (struct multiboot_info): Replace opaque `syms' with a.out and ELF
  18244. table information.
  18245. (multiboot_aout_symbol_table_t, multiboot_elf_section_header_table_t)
  18246. (multiboot_info_t, multiboot_memory_map_t, multiboot_module_t): New
  18247. type aliases.
  18248. 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
  18249. * include/multiboot.h: Make comments src2texi-friendly.
  18250. 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
  18251. For consistency with [multiboot]/docs/boot.S.
  18252. * include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ...
  18253. (MULTIBOOT_HEADER_MAGIC): ... to this. Update all users.
  18254. (MULTIBOOT_MAGIC2): Rename from this ...
  18255. (MULTIBOOT_BOOTLOADER_MAGIC): ... to this. Update all users.
  18256. 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
  18257. * include/multiboot.h: Remove `<grub/types.h>'.
  18258. (multiboot_uint16_t, multiboot_uint32_t, multiboot_uint64_t): New
  18259. types. Update all users.
  18260. 2009-12-25 Carles Pina i Estany <carles@pina.cat>
  18261. * commands/efi/loadbios.c: Capitalize acronyms, replace `could not' by
  18262. `couldn't' and `can not' by `cannot'.
  18263. * commands/i386/pc/drivemap.c: Likewise.
  18264. * disk/ata.c: Likewise.
  18265. * disk/ieee1275/nand.c: Likewise.
  18266. * fs/affs.c: Likewise.
  18267. * fs/fat.c: Likewise.
  18268. * fs/hfs.c: Likewise.
  18269. * fs/hfsplus.c: Likewise.
  18270. * fs/iso9660.c: Likewise.
  18271. * fs/jfs.c: Likewise.
  18272. * fs/minix.c: Likewise.
  18273. * fs/reiserfs.c: Likewise.
  18274. * fs/sfs.c: Likewise.
  18275. * fs/udf.c: Likewise.
  18276. * fs/ufs.c: Likewise.
  18277. * fs/xfs.c: Likewise.
  18278. * loader/powerpc/ieee1275/linux.c: Likewise.
  18279. * loader/sparc64/ieee1275/linux.c: Likewise.
  18280. * util/grub-probe.c: Likewise.
  18281. * util/misc.c: Likewise.
  18282. 2009-12-24 Carles Pina i Estany <carles@pina.cat>
  18283. * bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in
  18284. grub_errno calls.
  18285. * commands/acpi.c: Likewise.
  18286. * commands/blocklist.c: Likewise.
  18287. * commands/efi/loadbios.c: Likewise.
  18288. * commands/i386/pc/drivemap.c: Likewise.
  18289. * commands/loadenv.c: Likewise.
  18290. * commands/memrw.c: Likewise.
  18291. * commands/password.c: Likewise.
  18292. * commands/videotest.c: Likewise.
  18293. * disk/ata.c: Likewise.
  18294. * disk/ata_pthru.c: Likewise.
  18295. * disk/dmraid_nvidia.c: Likewise.
  18296. * disk/ieee1275/nand.c: Likewise.
  18297. * disk/ieee1275/ofdisk.c: Likewise.
  18298. * disk/loopback.c: Likewise.
  18299. * disk/lvm.c: Likewise.
  18300. * disk/mdraid_linux.c: Likewise.
  18301. * disk/raid.c: Likewise.
  18302. * disk/raid6_recover.c: Likewise.
  18303. * disk/scsi.c: Likewise.
  18304. * efiemu/main.c: Likewise.
  18305. * efiemu/mm.c: Likewise.
  18306. * efiemu/pnvram.c: Likewise.
  18307. * efiemu/symbols.c: Likewise.
  18308. * font/font.c: Likewise.
  18309. * fs/cpio.c: Likewise.
  18310. * fs/hfsplus.c: Likewise.
  18311. * fs/iso9660.c: Likewise.
  18312. * fs/jfs.c: Likewise.
  18313. * fs/minix.c: Likewise.
  18314. * fs/ntfs.c: Likewise.
  18315. * fs/ntfscomp.c: Likewise.
  18316. * fs/reiserfs.c: Likewise.
  18317. * fs/ufs.c: Likewise.
  18318. * fs/xfs.c: Likewise.
  18319. * gettext/gettext.c: Likewise.
  18320. * include/grub/auth.h: Likewise.
  18321. * kern/elf.c: Likewise.
  18322. * kern/file.c: Likewise.
  18323. * kern/ieee1275/init.c: Likewise.
  18324. * kern/ieee1275/mmap.c: Likewise.
  18325. * kern/ieee1275/openfw.c: Likewise.
  18326. * kern/powerpc/dl.c: Likewise.
  18327. * kern/sparc64/dl.c: Likewise.
  18328. * lib/arg.c: Likewise.
  18329. * loader/i386/bsd.c: Likewise.
  18330. * loader/i386/bsdXX.c: Likewise.
  18331. * loader/i386/efi/linux.c: Likewise.
  18332. * loader/i386/efi/xnu.c: Likewise.
  18333. * loader/i386/ieee1275/linux.c: Likewise.
  18334. * loader/i386/linux.c: Likewise.
  18335. * loader/i386/multiboot.c: Likewise.
  18336. * loader/i386/pc/linux.c: Likewise.
  18337. * loader/i386/pc/multiboot2.c: Likewise.
  18338. * loader/i386/xnu.c: Likewise.
  18339. * loader/ieee1275/multiboot2.c: Likewise.
  18340. * loader/macho.c: Likewise.
  18341. * loader/machoXX.c: Likewise.
  18342. * loader/multiboot2.c: Likewise.
  18343. * loader/multiboot_loader.c: Likewise.
  18344. * loader/powerpc/ieee1275/linux.c: Likewise.
  18345. * loader/sparc64/ieee1275/linux.c: Likewise.
  18346. * loader/xnu.c: Likewise.
  18347. * loader/xnu_resume.c: Likewise.
  18348. * mmap/i386/pc/mmap.c: Likewise.
  18349. * normal/menu_viewer.c: Likewise.
  18350. * partmap/acorn.c: Likewise.
  18351. * partmap/amiga.c: Likewise.
  18352. * partmap/apple.c: Likewise.
  18353. * script/lexer.c: Likewise.
  18354. * term/gfxterm.c: Likewise.
  18355. * term/i386/pc/serial.c: Likewise.
  18356. * term/i386/pc/vga.c: Likewise.
  18357. * term/ieee1275/ofconsole.c: Likewise.
  18358. * term/terminfo.c: Likewise.
  18359. * video/bitmap.c: Likewise.
  18360. * video/efi_gop.c: Likewise.
  18361. * video/efi_uga.c: Likewise.
  18362. * video/fb/video_fb.c: Likewise.
  18363. * video/i386/pc/vbe.c: Likewise.
  18364. * video/readers/tga.c: Likewise.
  18365. * video/video.c: Likewise.
  18366. 2009-12-23 Felix Zielcke <fzielcke@z-51.de>
  18367. * commands/i386/pc/drivemap.c: Remove all trailing whitespace.
  18368. * commands/lspci.c: Likewise.
  18369. * commands/probe.c: Likewise.
  18370. * commands/xnu_uuid.c: Likewise.
  18371. * conf/i386-coreboot.rmk: Likewise.
  18372. * conf/i386-efi.rmk: Likewise.
  18373. * conf/i386-ieee1275.rmk: Likewise.
  18374. * conf/i386-pc.rmk: Likewise.
  18375. * conf/powerpc-ieee1275.rmk: Likewise.
  18376. * conf/sparc64-ieee1275.rmk: Likewise.
  18377. * conf/x86_64-efi.rmk: Likewise.
  18378. * fs/i386/pc/pxe.c: Likewise.
  18379. * gettext/gettext.c: Likewise.
  18380. * include/grub/efi/graphics_output.h: Likewise.
  18381. * include/grub/i386/pc/memory.h: Likewise.
  18382. * kern/env.c: Likewise.
  18383. * kern/i386/qemu/startup.S: Likewise.
  18384. * lib/i386/pc/biosnum.c: Likewise.
  18385. * lib/i386/relocator.c: Likewise.
  18386. * lib/i386/relocator_asm.S: Likewise.
  18387. * lib/relocator.c: Likewise.
  18388. * loader/i386/bsd.c: Likewise.
  18389. * loader/i386/multiboot.c: Likewise.
  18390. * loader/i386/pc/chainloader.c: Likewise.
  18391. * loader/i386/xnu.c: Likewise.
  18392. * loader/xnu.c: Likewise.
  18393. * normal/main.c: Likewise.
  18394. * normal/menu_text.c: Likewise.
  18395. * util/getroot.c: Likewise.
  18396. * util/grub-mkconfig_lib.in: Likewise.
  18397. * util/grub.d/00_header.in: Likewise.
  18398. * util/i386/pc/grub-mkimage.c: Likewise.
  18399. * util/mkisofs/eltorito.c: Likewise.
  18400. * util/mkisofs/exclude.h: Likewise.
  18401. * util/mkisofs/hash.c: Likewise.
  18402. * util/mkisofs/iso9660.h: Likewise.
  18403. * util/mkisofs/joliet.c: Likewise.
  18404. * util/mkisofs/mkisofs.c: Likewise.
  18405. * util/mkisofs/mkisofs.h: Likewise.
  18406. * util/mkisofs/multi.c: Likewise.
  18407. * util/mkisofs/name.c: Likewise.
  18408. * util/mkisofs/rock.c: Likewise.
  18409. * util/mkisofs/tree.c: Likewise.
  18410. * util/mkisofs/write.c: Likewise.
  18411. * video/efi_gop.c: Likewise.
  18412. 2009-12-23 Vladimir Serbinenko <phcoder@gmail.com>
  18413. * video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
  18414. size counting.
  18415. 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
  18416. * util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@.
  18417. * genmk.rb (class SCRIPT): Modify the target file instead of source.
  18418. 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
  18419. * commands/memrw.c (grub_cmd_write): Support for mask parameter.
  18420. (GRUB_MOD_INIT(memrw)): Update help line.
  18421. 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
  18422. * commands/memrw.c (cmd_read_byte, cmd_read_word, cmd_read_dword):
  18423. Use grub_extcmd_t. All users updated.
  18424. (options): New variable.
  18425. (grub_cmd_read): Restructure for readability. Support "-v" option.
  18426. (grub_cmd_write): Restructure for readability.
  18427. 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
  18428. * genmk.rb (class SCRIPT): Prepend #{src} path with $(srcdir).
  18429. 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
  18430. * genmk.rb (class SCRIPT): Use sed to substitute @pkglib_DATA@
  18431. with the actual contents of the correspondending make variable.
  18432. * util/grub-mkrescue.in (pkglib_DATA): New variable.
  18433. (process_input_dir): Copy all $pkglib_DATA files instead of explicitly
  18434. specifying `*.lst' and `efiemu??.o'
  18435. 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
  18436. * util/grub.d/30_os-prober.in (osx_entry): Add round brackets
  18437. after function name.
  18438. Noticed by Rene Engelhard <rene@debian.org>.
  18439. 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
  18440. * commands/lspci.c (grub_pci_classes): Add "USB Controller".
  18441. (options): New variable.
  18442. (iospace): Likewise.
  18443. (grub_lspci_iter): List IO spaces if "-i" was given.
  18444. (grub_cmd_lspci): Parse options.
  18445. (GRUB_MOD_INIT(lspci)): Use extcmd.
  18446. (GRUB_MOD_FINI(lspci)): Likewise.
  18447. 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
  18448. * util/grub.d/30_os-prober.in (osx_entry): Remove non POSIX compliant
  18449. `function' keyword.
  18450. Patch by Tony Mancill <tmancill@debian.org>.
  18451. 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
  18452. * bus/usb/uhci.c (grub_uhci_transfer): Set a limit transaction time.
  18453. (grub_uhci_portstatus): Likewise.
  18454. (grub_uhci_portstatus): Add necessary delay.
  18455. * bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition.
  18456. 2009-12-21 Carles Pina i Estany <carles@pina.cat>
  18457. * commands/acpi.c (options): Fix capitalizations and/or full stops.
  18458. (GRUB_MOD_INIT): Likewise.
  18459. * commands/boot.c (GRUB_MOD_INIT): Likewise.
  18460. * commands/cmp.c (grub_cmd_cmp): Improve the help message.
  18461. * commands/echo.c (options): Fix capitalizations and/or full stops.
  18462. * commands/efi/loadbios.c (enable_rom_area): Likewise.
  18463. (enable_rom_area): Likewise.
  18464. (GRUB_MOD_INIT): Likewise.
  18465. * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
  18466. * commands/halt.c (GRUB_MOD_INIT): Improve the help message.
  18467. * commands/handler.c (GRUB_MOD_INIT): Likewise.
  18468. * commands/hdparm.c (options): Fix capitalizations and/or full stops.
  18469. * commands/hexdump.c (options): Likewise.
  18470. * commands/i386/cpuid.c (options): Likewise.
  18471. (GRUB_MOD_INIT): Likewise.
  18472. * commands/i386/pc/drivemap.c (options): Likewise.
  18473. (GRUB_MOD_INIT): Likewise.
  18474. * commands/i386/pc/halt (options): Likewise.
  18475. (GRUB_MOD_INIT): Likewise.
  18476. * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
  18477. * commands/i386/pc/pxecmd.c (options): Likewise.
  18478. * commands/i386/pc/vbetest.c (GRUB_MOD_INIT): Likewise.
  18479. * commands/ieee1275/suspend.c (GRUB_MOD_INIT): Likewise.
  18480. * commands/keystatus.c (options): Likewise.
  18481. (GRUB_MOD_INIT): Likewise.
  18482. * commands/loadenv.c (options): Likewise.
  18483. * commands/ls.c (options): Likewise.
  18484. * commands/lspci.c (GRUB_MOD_INIT): Likewise.
  18485. * commands/memrw.c (GRUB_MOD_INIT): Likewise.
  18486. * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
  18487. * commands/parttool.c (helpmsg): Likewise.
  18488. * commands/probe.c (options): Likewise.
  18489. * commands/read.c (GRUB_MOD_INIT): Likewise.
  18490. * commands/reboot.c (GRUB_MOD_INIT): Likewise.
  18491. * commands/search.c (options): Likewise.
  18492. * commands/sleep.c (options): Likewise.
  18493. * commands/test.c (GRUB_MOD_INIT): Likewise.
  18494. * commands/true.c (GRUB_MOD_INIT): Likewise.
  18495. * commands/usbtest.c (GRUB_MOD_INIT): Likewise.
  18496. * commands/videotest.c (GRUB_MOD_INIT): Likewise.
  18497. * lib/arg.c (help_options): Likewise.
  18498. * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass -ctranslate to
  18499. `$(XGETTEXT)'.
  18500. * po/POTFILES: Add `commands/loadenv.c'.
  18501. 2009-12-21 Felix Zielcke <fzielcke@z-51.de>
  18502. * util/grub-mkrescue.in (process_input_dir): Copy `*.lst' files
  18503. instead of specifying them explicit.
  18504. 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
  18505. * NEWS: Add grub-probe support for GNU/Hurd.
  18506. 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
  18507. * NEWS: gettext was added after 1.97.
  18508. 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
  18509. * util/mkisofs/msdos_partition.h: New file (based on
  18510. include/grub/msdos_partition.h).
  18511. * util/mkisofs/mkisofs.c (use_protective_msdos_label): New variable.
  18512. (OPTION_PROTECTIVE_MSDOS_LABEL): New macro.
  18513. (ld_options, main): Recognize --protective-msdos-label.
  18514. * util/mkisofs/mkisofs.h (use_protective_msdos_label): New declaration.
  18515. * util/mkisofs/write.c: Include `"msdos_partition.h"'.
  18516. (padblock_write): If `use_protective_msdos_label' is set, patch a
  18517. protective DOS-style label in the output image.
  18518. * util/grub-mkrescue.in: Use --protective-msdos-label.
  18519. 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
  18520. * util/grub-mkrescue.in: Do not zero-pad image for BIOS-based disk
  18521. boot.
  18522. 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
  18523. * util/mkisofs/mkisofs.c (use_embedded_boot, boot_image_embed): New
  18524. variables.
  18525. (ld_options, main): Recognize `--embedded-boot'.
  18526. * util/mkisofs/mkisofs.h (use_embedded_boot, boot_image_embed): New
  18527. declarations.
  18528. * util/mkisofs/write.c (PADBLOCK_SIZE): New variable.
  18529. (padblock_size): Use `PADBLOCK_SIZE' instead of hardcoding 16.
  18530. (padblock_write): Likewise. Rewrite to support embedded boot image.
  18531. * util/grub-mkrescue.in: When building i386-pc images, embed core.img
  18532. for BIOS-based disk boot instead of only ElTorito.
  18533. 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
  18534. * util/grub-mkrescue.in: Remove `configfile' and `sh' from i386-pc
  18535. build (not needed for bootstrap).
  18536. 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
  18537. * util/grub-mkrescue.in: Remove `memdisk', `tar' and `search' modules
  18538. from i386-pc build (not needed for bootstrap).
  18539. Rewrite a pair of strings.
  18540. 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
  18541. * normal/main.c (grub_normal_reader_init): Set left margin back to 3.
  18542. 2009-12-21 Vladimir Serbinenko <phcoder@gmail.com>
  18543. * video/i386/pc/vbe.c (grub_video_vbe_fini): Set 'last_set_mode'.
  18544. 2009-12-21 Andreas Born <futur.andy@googlemail.com>
  18545. * kern/env.c (grub_env_context_open): Mark exported variable for
  18546. reexport.
  18547. 2009-12-21 Andreas Born <futur.andy@googlemail.com>
  18548. * kern/env.c (grub_env_export): Create nonexistent variables before
  18549. exporting.
  18550. 2009-12-20 Carles Pina i Estany <carles@pina.cat>
  18551. * include/grub/auth.h: Include `<grub/i18n.h>'.
  18552. (GRUB_GET_PASSWORD): Gettextizze string.
  18553. * include/grub/normal.h (STANDARD_MARGIN): New macro, moved from
  18554. menu_text.c.
  18555. (grub_utf8_to_ucs4_alloc): Fix indentation.
  18556. (grub_print_ucs4): Likewise.
  18557. (grub_getstringwidth): Likewise.
  18558. (print_message_indented): New declaration.
  18559. * normal/auth.c: Include `<grub/i18n.h>'.
  18560. (grub_auth_check_authentication): Gettexttize string.
  18561. * normal/cmdline.c: Include `<grub/i18n.h>'.
  18562. (grub_cmdline_get): Gettextizze.
  18563. * normal/color.c: Include `<grub/i18n.h>'.
  18564. (grub_parse_color_name_pair): Gettexttize strings.
  18565. * normal/main.c (grub_normal_reader_init): Cleanup gettexttized
  18566. string (use `print_message_indented').
  18567. * normal/menu_text.c (STANDARD_MARGIN): Moved from here to
  18568. `include/grub/normal.h'.
  18569. (print_message_indented): Renamed to ...
  18570. (grub_print_message_indented): ... this. Remove `static' qualifer (now
  18571. used in normal/main.c).
  18572. (print_message): Use `grub_print_message_indented' instead of
  18573. `print_message_indented'.
  18574. (print_timeout): Likewise.
  18575. * normal/misc.c: Include `<grub/term.h>' and `<grub/i18n.h>'.
  18576. (grub_normal_print_device_info): Gettexttize strings.
  18577. * po/POTFILES: Add `auth.c', `color.c' and `misc.c'.
  18578. 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
  18579. * kern/parser.c (grub_parser_split_cmdline): Fix incorrect counting
  18580. of arguments. Return number of tokens and not arguments. All users
  18581. updated.
  18582. 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
  18583. * util/i386/pc/grub-setup.c (setup): Don't install on non-GPT,
  18584. non-MSDOS paritions.
  18585. 2009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
  18586. * include/grub/types.h (UNUSED): Removed since it conflicts with
  18587. NetBSD headers. All users changed to direct __attribute__ ((unused)).
  18588. Reported by Grégoire Sutre.
  18589. 2009-12-19 Carles Pina i Estany <carles@pina.cat>
  18590. * include/grub/normal.h (grub_utf8_to_ucs4): New declaration.
  18591. (grub_print_ucs4_alloc): Likewise.
  18592. (grub_getstringwidth): Likewise.
  18593. * normal/main.c (grub_normal_init_page): Gettextize version string.
  18594. * normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition.
  18595. (getstringwidth): Renamed to ...
  18596. (grub_getstringwidth): ... this. Remove `static' qualifier (now used
  18597. in normal/main.c). Use `grub_utf8_to_ucs4_alloc'.
  18598. (grub_print_ucs4): Remove `static' qualifer (now used in
  18599. normal/main.c).
  18600. * po/POTFILES: Add normal/main.c.
  18601. 2009-12-19 Carles Pina i Estany <carles@pina.cat>
  18602. * normal/menu_text.c (STANDARD_MARGIN): New macro.
  18603. (print_message_indented): Add `margin_left' and `margin_right'
  18604. parameters.
  18605. (print_message): Update `print_message_indented' calls. Adds '\n' to the
  18606. strings.
  18607. (print_timeout): Use `print_message_indented' to print the message.
  18608. Deletes `second_stage' parameter.
  18609. (run_menu): Update `print_timeout' calls.
  18610. 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
  18611. Fix console palette on OpenFirmware.
  18612. * term/ieee1275/ofconsole.c (MAX): Removed.
  18613. (colors): Redone based on VGA palette.
  18614. (grub_ofconsole_setcolor): Discard brightness bit since only 8
  18615. colors are supported.
  18616. (grub_ofconsole_init_output): Use ARRAY_SIZE instead of hardcoded size.
  18617. 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
  18618. Fix potential EfiEmu double prepare.
  18619. * efiemu/main.c (prepared): New variable
  18620. (grub_efiemu_unload): Set prepare to '0'.
  18621. (grub_efiemu_prepare): Return if already prepared. Set prepared.
  18622. set_virtual_address_map support.
  18623. * include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New
  18624. prototype.
  18625. * include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New
  18626. prototype.
  18627. (grub_efiemu_crc32): Likewise.
  18628. (grub_efiemu_crc64): Likewise.
  18629. (grub_efiemu_set_virtual_address_map): Likewise.
  18630. * include/grub/autoefi.h (grub_autoefi_exit_boot_services):
  18631. New definition.
  18632. (grub_autoefi_set_virtual_address_map): Likewise.
  18633. * kern/efi/efi.c (grub_efi_set_virtual_address_map): New function.
  18634. * loader/i386/xnu.c (grub_xnu_boot): Call set_virtual_address_map.
  18635. Restructure flow to accomodate it.
  18636. * efiemu/prepare.c (grub_efiemu_prepare): Support set_virtual_address_map.
  18637. (grub_efiemu_crc): Recompute CRC32.
  18638. * efiemu/runtime/efiemu.c (ptv_relocated): Renamed to ...
  18639. (efiemu_ptv_relocated): ... this. Made global. All users updated.
  18640. * efiemu/symbols.c (relocated_handle): New variable.
  18641. (grub_efiemu_free_syms): Free relocated_handle.
  18642. (grub_efiemu_alloc_syms): Allocate relocated_handle.
  18643. (grub_efiemu_write_sym_markers): New function.
  18644. (grub_efiemu_set_virtual_address_map): Likewise.
  18645. Newer XNU parameters.
  18646. * include/grub/i386/xnu.h (GRUB_XNU_BOOTARGS_VERMINOR): Change to 5.
  18647. * include/grub/xnu.h (grub_xnu_extheader): Add nameaddr and namesize.
  18648. (grub_xnu_fill_devicetree): New prototype.
  18649. (grub_xnu_heap_real_start): New variable.
  18650. * loader/xnu.c (get_name_ptr): New function.
  18651. (grub_xnu_load_driver): Fill namelen and name.
  18652. 64-bit xnu support.
  18653. * conf/i386-efi.rmk (xnu_mod_SOURCES): Add 'loader/macho32.c'
  18654. and 'loader/macho64.c'.
  18655. * conf/i386-pc.rmk: Likewise.
  18656. * conf/x86_64-efi.rmk: Likewise.
  18657. * include/grub/i386/macho.h (grub_macho_thread64): New structure.
  18658. * include/grub/xnu.h (grub_xnu_is_64bit): New variable.
  18659. * include/grub/macho.h (grub_macho_segment64): New structure.
  18660. * include/grub/machoload.h (grub_macho32_size): Renamed from ...
  18661. (grub_macho_size32): ... to this.
  18662. (grub_macho32_get_entry_point): Renamed from ...
  18663. (grub_macho_get_entry_point32): ... to this.
  18664. (grub_macho_contains_macho64): New prototype.
  18665. (grub_macho_size64): Likewise.
  18666. (grub_macho_get_entry_point64): Likewise.
  18667. (grub_macho32_load): Renamed from ...
  18668. (grub_macho_load32): ... to this.
  18669. (grub_macho32_filesize): Renamed from ...
  18670. (grub_macho_filesize32): ... to this.
  18671. (grub_macho32_readfile): Renamed from ...
  18672. (grub_macho_readfile32): ... to this.
  18673. (grub_macho_filesize64): New prototype.
  18674. (grub_macho_readfile64): Likewise.
  18675. (grub_macho_parse32): Likewise.
  18676. (grub_macho_parse64): Likewise.
  18677. * loader/macho.c: Split into ...
  18678. * loader/machoXX.c: ... and this. Replace 32 with XX.
  18679. * loader/macho32.c: New file.
  18680. * loader/macho64.c: Likewise.
  18681. * loader/xnu.c (grub_xnu_is_64bit): New variable.
  18682. (grub_cmd_xnu_kernel): Make 32-bit only.
  18683. (grub_cmd_xnu_kernel64): New function.
  18684. (grub_xnu_load_driver): Support Mach-O 64.
  18685. (grub_cmd_xnu_mkext): Likewise.
  18686. * util/grub.d/30_os-prober.in (osx_entry): New function.
  18687. Generate entries for 64-bit boot too.
  18688. Eliminate ad-hoc tree format in XNU and EfiEmu.
  18689. * efiemu/main.c (grub_efiemu_prepare): Update comment.
  18690. * efiemu/pnvram.c: Rewritten to use environment variables.
  18691. All users updated.
  18692. Inline utf16_to_utf8.
  18693. * kern/misc.c (grub_utf16_to_utf8): Move from here ...
  18694. * include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined.
  18695. All users updated.
  18696. * include/grub/misc.h (grub_utf16_to_utf8): Removed.
  18697. * bus/usb/usb.c (grub_usb_get_string): Move from here ...
  18698. * commands/usbtest.c (grub_usb_get_string): ... move here.
  18699. (usb_print_str): Fix error handling.
  18700. * include/grub/usb.h (grub_usb_get_string): Remove.
  18701. UTF-8 to UTF-16 transformation.
  18702. * conf/common.rmk (pkglib_MODULES): Add charset.mod
  18703. (charset_mod_SOURCES): New variable.
  18704. (charset_mod_CFLAGS): Likewise.
  18705. (charset_mod_LDFLAGS): Likewise.
  18706. * include/grub/utf.h: New file.
  18707. * lib/utf.c: New file. (Based on grub_utf8_to_ucs4 from kern/misc.c)
  18708. Support for device properties.
  18709. * include/grub/i386/xnu.h (grub_xnu_devprop_header): New structure.
  18710. (grub_xnu_devprop_device_header): Likewise.
  18711. (grub_xnu_devprop_device_descriptor): Likewise.
  18712. (grub_xnu_devprop_add_device): New prototype.
  18713. (grub_xnu_devprop_remove_device): Likewise.
  18714. (grub_xnu_devprop_remove_property): Likewise.
  18715. (grub_xnu_devprop_add_property_utf8): Likewise.
  18716. (grub_xnu_devprop_add_property_utf16): Likewise.
  18717. (grub_cpu_xnu_init): Likewise.
  18718. (grub_cpu_xnu_fini): Likewise.
  18719. (grub_cpu_xnu_unload): Likewise.
  18720. * loader/i386/xnu.c (grub_xnu_devprop_device_descriptor): New structure.
  18721. (property_descriptor): Likewise.
  18722. (devices): New variable.
  18723. (grub_xnu_devprop_remove_property): New function.
  18724. (grub_xnu_devprop_add_device): Likewise.
  18725. (grub_xnu_devprop_remove_device): Likewise.
  18726. (grub_xnu_devprop_add_property): Likewise.
  18727. (grub_xnu_devprop_add_property_utf8): Likewise.
  18728. (grub_xnu_devprop_add_property_utf16): Likewise.
  18729. (hextoval): Likewise.
  18730. (grub_cpu_xnu_fill_devprop): Likewise.
  18731. (grub_cmd_devprop_load): Likewise.
  18732. (grub_xnu_boot): Call grub_cpu_xnu_fill_devprop,
  18733. grub_xnu_fill_devicetree, grub_xnu_fill_devicetree
  18734. (cmd_devprop_load): New variable.
  18735. (grub_cpu_xnu_init): New function.
  18736. (grub_cpu_xnu_fini): Likewise.
  18737. * loader/i386/xnu.c (grub_xnu_unload): Call grub_cpu_xnu_unload.
  18738. * loader/xnu.c (grub_xnu_parse_devtree): Remove.
  18739. (grub_cmd_xnu_devtree): Likewise.
  18740. (hextoval): New function.
  18741. (unescape): Likewise.
  18742. (grub_xnu_fill_devicetree): Likewise.
  18743. * util/grub.d/30_os-prober.in: Load devprop.bin. Don't load devtree.txt.
  18744. * util/i386/efi/grub-dumpdevtree: Generate devprop.bin.
  18745. 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
  18746. Workaround for broken ATI VBE.
  18747. * video/i386/pc/vbe.c (last_set_mode): New variable.
  18748. (grub_vbe_set_video_mode): Set 'last_set_mode'.
  18749. (grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails.
  18750. (grub_video_vbe_setup): Don't check for reserved flag.
  18751. 2009-12-17 Felix Zielcke <fzielcke@z-51.de>
  18752. * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
  18753. the `find' command.
  18754. 2009-12-16 Vladimir Serbinenko <phcoder@gmail.com>
  18755. UUID support for HFS.
  18756. * fs/hfs.c (grub_hfs_uuid): New function.
  18757. (grub_hfs_fs): New value .uuid.
  18758. * include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'.
  18759. 2009-12-14 Felix Zielcke <fzielcke@z-51.de>
  18760. Fix a segfault with parsing unknown long options.
  18761. * util/grub-mkrelpath.c (options): Zero terminate it.
  18762. 2009-12-13 Carles Pina i Estany <carles@pina.cat>
  18763. * include/grub/misc.h (grub_puts): New declaration.
  18764. (grub_puts_): Likewise.
  18765. * kern/misc.c (grub_puts): New definition.
  18766. (grub_puts_): Likewise.
  18767. 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
  18768. * util/grub-probe.c (probe): Improve error message.
  18769. 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
  18770. * loader/i386/multiboot_elfxx.c
  18771. (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
  18772. initialization.
  18773. 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
  18774. Relocator framework
  18775. * loader/i386/xnu_helper.S: Removed. All users updated.
  18776. * conf/i386.rmk (pkglib_MODULES): Add relocator.mod.
  18777. (relocator_mod_SOURCES): New variable.
  18778. (relocator_mod_CFLAGS): Likewise.
  18779. (relocator_mod_LDFLAGS): Likewise.
  18780. (relocator_mod_ASFLAGS): Likewise.
  18781. * conf/x86_64.rmk: Likewise.
  18782. * include/grub/i386/multiboot.h (grub_multiboot_payload_orig): Removed.
  18783. (grub_multiboot_payload_entry_offset): Likewise.
  18784. (grub_multiboot_forward_relocator): Likewise.
  18785. (grub_multiboot_forward_relocator_end): Likewise.
  18786. (grub_multiboot_backward_relocator): Likewise.
  18787. (grub_multiboot_backward_relocator_end): Likewise.
  18788. (grub_multiboot_payload_eip): New variable.
  18789. (grub_multiboot_payload_orig): Likewise.
  18790. * include/grub/i386/pc/memory.h: Include grub/i386/memory.h.
  18791. (GRUB_MEMORY_MACHINE_CR0_PE_ON): Move from here ...
  18792. * include/grub/i386/memory.h
  18793. (GRUB_MEMORY_CPU_CR0_PE_ON): ... to here
  18794. (GRUB_MEMORY_CPU_CR4_PAE_ON): New definition.
  18795. (GRUB_MEMORY_CPU_CR0_PAGING_ON): Likewise.
  18796. (GRUB_MEMORY_CPU_AMD64_MSR): Likewise.
  18797. (GRUB_MEMORY_CPU_AMD64_MSR_ON): Likewise.
  18798. * include/grub/i386/relocator.h: New file.
  18799. * include/grub/x86_64/relocator.h: Likewise.
  18800. * include/grub/i386/xnu.h: Include grub/cpu/relocator.h.
  18801. (XNU_RELOCATOR): New macro.
  18802. (grub_xnu_launcher_start): Remove.
  18803. (grub_xnu_launcher_end): Likewise.
  18804. * include/grub/xnu.h (grub_xnu_boot_resume): New prototype.
  18805. (grub_xnu_heap_real_start): Remove.
  18806. (grub_xnu_heap_start): Change to void *. All users updated.
  18807. * kern/i386/realmode.S (real_to_prot): Use GRUB_MEMORY_CPU_CR0_PE_ON.
  18808. * lib/i386/relocator.c: New file.
  18809. * lib/i386/relocator_asm.S: Likewise.
  18810. * lib/i386/relocator_backward.S: Likewise.
  18811. * lib/mips/relocator.c: Likewise.
  18812. * lib/mips/relocator_asm.S: Likewise.
  18813. * lib/relocator.c: Likewise.
  18814. * loader/i386/multiboot.c: Include grub/i386/relocator.h.
  18815. (entry): Removed.
  18816. (playground): Likewise.
  18817. (grub_multiboot_payload_orig): New variable.
  18818. (grub_multiboot_payload_dest): Likewise.
  18819. (grub_multiboot_payload_size): Likewise.
  18820. (grub_multiboot_payload_eip): Likewise.
  18821. (grub_multiboot_payload_esp): Likewise.
  18822. (grub_multiboot_boot): Use grub_relocator32_boot.
  18823. (grub_multiboot_unload): Free relocators.
  18824. (grub_multiboot): Setup stack. Use relocators.
  18825. * loader/i386/multiboot_elfxx.c: Include grub/i386/relocator.h.
  18826. (grub_multiboot_load_elfXX): Use relocators.
  18827. * loader/i386/multiboot_helper.S (grub_multiboot_payload_orig): Removed.
  18828. (grub_multiboot_payload_size): Likewise.
  18829. (grub_multiboot_payload_dest): Likewise.
  18830. (grub_multiboot_payload_entry_offset): Likewise.
  18831. (grub_multiboot_forward_relocator): Likewise.
  18832. (grub_multiboot_backward_relocator): Likewise.
  18833. (grub_multiboot_real_boot): Likewise.
  18834. * loader/i386/xnu.c (grub_xnu_heap_will_be_at): New variable.
  18835. (grub_xnu_entry_point): Likewise.
  18836. (grub_xnu_arg1): Likewise.
  18837. (grub_xnu_stack): Likewise.
  18838. (grub_xnu_launch): Removed.
  18839. (grub_xnu_boot_resume): New function.
  18840. (grub_xnu_boot): Use relocators.
  18841. * loader/i386/xnu_helper.S: Removed.
  18842. * loader/xnu.c (grub_xnu_heap_start): New variable.
  18843. (grub_xnu_heap_size): Likewise.
  18844. (grub_xnu_heap_malloc): Use relocators.
  18845. * loader/xnu_resume.c (grub_xnu_resume): Use relocators.
  18846. 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
  18847. * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
  18848. anything.
  18849. 2009-12-13 Carles Pina i Estany <carles@pina.cat>
  18850. * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
  18851. GRUB_ERR_NONE before calling grub_env_set.
  18852. 2009-12-12 Robert Millan <rmh@aybabtu.com>
  18853. * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.
  18854. * genmk.rb (video): New variable.
  18855. (CLEANFILES, VIDEOFILES): Add #{video}.
  18856. (#{video}): New target rule.
  18857. * genvideolist.sh: New file.
  18858. * Makefile.in (pkglib_DATA): Add video.lst.
  18859. (video.lst): New target rule.
  18860. * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using
  18861. `video.lst'.
  18862. * util/grub.d/30_os-prober.in: Replace `vbe' with
  18863. ${GRUB_VIDEO_BACKEND}.
  18864. 2009-12-11 Robert Millan <rmh.grub@aybabtu.com>
  18865. * THANKS: Add David Miller.
  18866. 2009-12-11 Vladimir Serbinenko <phcoder@gmail.com>
  18867. libpciaccess support.
  18868. * Makefile.in (LIBPCIACCESS): New variable.
  18869. (enable_grub_emu_pci): Likewise.
  18870. * conf/any-emu.rmk (grub_emu_SOURCES) [enable_grub_emu_pci]: Add
  18871. util/pci.c and commands/lspci.c.
  18872. (grub_emu_LDFLAGS) [enable_grub_emu_pci]: Add $(LIBPCIACCESS).
  18873. * configure.ac (grub-emu-pci): New option.
  18874. * include/grub/i386/pci.h (grub_pci_device_map_range): New function.
  18875. (grub_pci_device_unmap_range): Likewise.
  18876. * include/grub/pci.h [GRUB_UTIL]: Include grub/pciutils.h.
  18877. (grub_pci_device) [!GRUB_UTIL]: New structure. All users updated.
  18878. (grub_pci_address_t) [!GRUB_UTIL]: New type.
  18879. (grub_pci_device_t) [!GRUB_UTIL]: Likewise.
  18880. (grub_pci_get_bus) [!GRUB_UTIL]: New function.
  18881. (grub_pci_get_device) [!GRUB_UTIL]: Likewise.
  18882. (grub_pci_get_function) [!GRUB_UTIL]: Likewise.
  18883. * include/grub/pciutils.h: New file.
  18884. * util/pci.c: Likewise.
  18885. 2009-12-11 Felix Zielcke <fzielcke@z-51.de>
  18886. * util/misc.c: Don't include <errno.h> twice.
  18887. 2009-12-10 Felix Zielcke <fzielcke@z-51.de>
  18888. * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
  18889. name in an error message.
  18890. (grub_biosdisk_rw): Likewise.
  18891. 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
  18892. Eliminate NTFS 4Gib barrier.
  18893. * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
  18894. (read_run_data): Likewise.
  18895. (grub_ntfs_read_run_list): Likewise.
  18896. (grub_ntfs_read_block): Likewise.
  18897. (grub_ntfs_iterate_dir): Likewise.
  18898. (read_mft): Likewise.
  18899. (read_data): Likewise.
  18900. Use COM_LOG_LEN.
  18901. * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
  18902. to avoid 64-bit division
  18903. * include/grub/ntfs.h (COM_LOG_LEN): New definition.
  18904. (grub_ntfs_rlst): Use grub_disk_addr_t.
  18905. 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
  18906. Eliminate grub-fstest 4Gib barrier.
  18907. * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
  18908. (read_file): Fix error reporting.
  18909. 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
  18910. Eliminate hexdump 4Gib barrier.
  18911. * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
  18912. * lib/arg.c (grub_arg_parse): Use grub_strtoull.
  18913. 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
  18914. * kern/device.c (grub_device_iterate): Ignore errors during first scan.
  18915. Fixes amarsh bug.
  18916. 2009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
  18917. Remove miscellaneous files in distclean target.
  18918. * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
  18919. 2009-12-09 Colin Watson <cjwatson@ubuntu.com>
  18920. * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
  18921. if they're already set. This resolves the conflict between my
  18922. grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
  18923. fixing the --grub-probe option again.
  18924. * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
  18925. change on 2009-10-06, so that we now once again source
  18926. `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
  18927. 2009-12-08 Robert Millan <rmh.grub@aybabtu.com>
  18928. * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
  18929. `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
  18930. `util/devicemap.c'.
  18931. 2009-12-08 Carles Pina i Estany <carles@pina.cat>
  18932. * include/grub/misc.h (grub_printf_): New declaration.
  18933. * kern/misc.c (grub_printf_): New definition.
  18934. * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
  18935. instead of `grub_printf' and `_'.
  18936. * normal/menu_entry.c (store_completion): Likewise.
  18937. (run): Likewise.
  18938. (grub_menu_entry_run): Likewise.
  18939. * normal/menu_text.c (grub_wait_after_message): Likewise.
  18940. (notify_booting): Likewise.
  18941. (notify_fallback): Likewise.
  18942. (notify_execution_failure): Likewise.
  18943. 2009-12-07 Colin Watson <cjwatson@ubuntu.com>
  18944. * configure.ac: Check for vasprintf.
  18945. * util/misc.c (asprintf): Move allocation from here ...
  18946. (vasprintf): ... to here. New function.
  18947. (xasprintf): New function.
  18948. * include/grub/util/misc.h (vasprintf, xasprintf): Add
  18949. prototypes.
  18950. * util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
  18951. * util/grub-mkfont.c (write_font): Likewise.
  18952. * util/grub-probe.c (probe): Likewise.
  18953. * util/hostdisk.c (make_device_name): Likewise.
  18954. 2009-12-06 David S. Miller <davem@sunset.davemloft.net>
  18955. * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
  18956. anything even prefixed with 'cdrom' as a cdrom.
  18957. 2009-12-06 Felix Zielcke <fzielcke@z-51.de>
  18958. * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
  18959. mount points.
  18960. 2009-12-05 Carles Pina i Estany <carles@pina.cat>
  18961. * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
  18962. grub_gettext_msg_list.
  18963. (grub_gettext_gettranslation_from_position): Return const char *
  18964. and not char *.
  18965. (grub_gettext_translate): Add the translated strings into a list,
  18966. returns from the list if existing there.
  18967. (grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
  18968. (grub_gettext_delete_list): Delete the list.
  18969. (grub_gettext_env_write_lang): Call grub_gettext_delete_list when
  18970. lang environment variable is changed.
  18971. (GRUB_MOD_FINI): Call grub_gettext_delete_list.
  18972. 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
  18973. Rename kernel.mod to kernel.img.
  18974. * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
  18975. (kernel_mod_EXPORTS): Rename to ...
  18976. (kernel_img_EXPORTS): ... this.
  18977. (kernel_mod_SOURCES): Rename to ...
  18978. (kernel_img_SOURCES): ... this.
  18979. (kernel_mod_HEADERS): Rename to ...
  18980. (kernel_img_HEADERS): ... this. All users updated.
  18981. (kernel_mod_CFLAGS): Rename to ...
  18982. (kernel_img_CFLAGS): ... this.
  18983. (kernel_mod_ASFLAGS): Rename to ...
  18984. (kernel_img_ASFLAGS): ... this.
  18985. (kernel_mod_LDFLAGS): Rename to ...
  18986. (kernel_img_LDFLAGS): ... this.
  18987. * conf/x86_64-efi.rmk: Likewise.
  18988. * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
  18989. (read_kernel_image): ... this. All users updated.
  18990. (read_kernel_image): Read "kernel.img" instead of "kernel.mod".
  18991. 2009-12-05 Carles Pina i Estany <carles@pina.cat>
  18992. * normal/menu_text.c (grub_color_menu_high): Gettexttize string.
  18993. (print_spaces): New function.
  18994. (grub_print_ucs4): New function.
  18995. (getstringwidth): New function.
  18996. (print_message_indented): New function.
  18997. (print_message): Gettexttize strings using print_message_indented.
  18998. (run_menu): Replaces grub_printf by print_spaces and dynamic terminal
  18999. width.
  19000. (get_entry_number): Gettextize and uses dynamic terminal width.
  19001. (notify_booting, notify_fallback, notify_execution_failure):
  19002. Gettextize.
  19003. * normal/menu_entry.c (store_completion): Cleanup the gettextized
  19004. string.
  19005. (run): Likewise.
  19006. (grub_menu_entry_run): Likewise.
  19007. * PO/POTFILES: Add normal/menu_entry.c.
  19008. 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
  19009. * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
  19010. 2009-12-05 Carles Pina i Estany <carles@pina.cat>
  19011. * util/grub-install.in: Install gettext .mo files.
  19012. * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
  19013. 2009-12-05 Carles Pina i Estany <carles@pina.cat>
  19014. * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
  19015. grub_dprintf.
  19016. 2009-12-05 Robert Millan <rmh.grub@aybabtu.com>
  19017. * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The
  19018. non-firmware-dependant one in realmode.S takes precedence.
  19019. 2009-12-04 Robert Millan <rmh.grub@aybabtu.com>
  19020. * commands/halt.c: Replace misc arch-specific headers with
  19021. `<grub/misc.h>'.
  19022. * commands/reboot.c: Likewise.
  19023. * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
  19024. `<grub/misc.h>'.
  19025. * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
  19026. (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
  19027. (kernel_img_SOURCES): ... to here.
  19028. * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
  19029. * include/grub/i386/pc/init.h: Likewise.
  19030. * include/grub/powerpc/ieee1275/kernel.h: Likewise.
  19031. * include/grub/sparc64/ieee1275/kernel.h: Likewise.
  19032. * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
  19033. * include/grub/i386/halt.h: Remove.
  19034. * include/grub/i386/reboot.h: Likewise.
  19035. * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
  19036. 2009-12-03 David S. Miller <davem@sunset.davemloft.net>
  19037. * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
  19038. grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
  19039. * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
  19040. "progname.h"
  19041. * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
  19042. * util/sparc64/ieee1275/grub-setup.c: Likewise.
  19043. (usage): Add missing comma in printf.
  19044. 2009-12-02 Robert Millan <rmh.grub@aybabtu.com>
  19045. Use the same reboot approach on i386 coreboot and qemu as we do on
  19046. BIOS.
  19047. * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
  19048. (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
  19049. * kern/i386/reboot.c: Remove.
  19050. * include/grub/i386/reboot.h (grub_reboot): Export function.
  19051. * kern/i386/pc/startup.S (grub_reboot): Move from here ...
  19052. * kern/i386/realmode.S (grub_reboot): ... to here. Jump to
  19053. 0xf000:0xfff0 instead of 0xffff:0x0000.
  19054. [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
  19055. * kern/i386/qemu/startup.S: Include `"../realmode.S"'.
  19056. 2009-11-30 Robert Millan <rmh.grub@aybabtu.com>
  19057. Fix $srcdir != $objdir build.
  19058. * Makefile.in (po/%.po): Rewrite as ...
  19059. ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
  19060. 2009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
  19061. Fix GNU/Hurd grub-install crash.
  19062. * util/grub-probe.c (probe): Try to access `path' only when it is not
  19063. NULL.
  19064. 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
  19065. Correct module naming.
  19066. * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
  19067. (GRUB_MOD_INIT(efi_uga)): ... to this
  19068. (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
  19069. (GRUB_MOD_FINI(efi_uga)): ... to this
  19070. * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
  19071. (GRUB_MOD_INIT(efi_gop)): ... to this
  19072. (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
  19073. (GRUB_MOD_FINI(efi_gop)): ... to this
  19074. 2009-11-28 Robert Millan <rmh.grub@aybabtu.com>
  19075. * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
  19076. translatable.
  19077. (usage): Translate `arg' strings using gettext().
  19078. Thanks to Jordi Mallach for the suggestion.
  19079. 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
  19080. GOP support. Based on patch from Bean
  19081. (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
  19082. * video/efi_gop.c: New file.
  19083. * include/grub/efi/graphics_output.h: Likewise.
  19084. * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
  19085. (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
  19086. variables.
  19087. * conf/x86_64-efi.rmk: Likewise.
  19088. 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
  19089. Rename efi_fb to efi_uga.
  19090. * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
  19091. 'efi_uga.mod'.
  19092. (efi_fb_mod_SOURCES): Rename this ...
  19093. (efi_uga_mod_SOURCES): ... to this.
  19094. (efi_fb_mod_CFLAGS): Rename this ...
  19095. (efi_uga_mod_CFLAGS): ... to this.
  19096. (efi_fb_mod_LDFLAGS): Rename this ...
  19097. (efi_uga_mod_LDFLAGS): ... to this.
  19098. * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
  19099. 'efi_uga.mod'.
  19100. (efi_fb_mod_SOURCES): Rename this ...
  19101. (efi_uga_mod_SOURCES): ... to this.
  19102. (efi_fb_mod_CFLAGS): Rename this ...
  19103. (efi_uga_mod_CFLAGS): ... to this.
  19104. (efi_fb_mod_LDFLAGS): Rename this ...
  19105. (efi_uga_mod_LDFLAGS): ... to this.
  19106. * video/efi_fb.c: Move this ...
  19107. * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
  19108. 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
  19109. * po/README: New file. Explain our PO file workflow.
  19110. 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
  19111. * po/ChangeLog: Remove. Move relevant entries back to ...
  19112. * ChangeLog: ... here.
  19113. * po/ca.po: Remove (now handled by TLP).
  19114. * po/id.po: Likewise.
  19115. * po/zh_CN.po: Likewise.
  19116. * Makefile.in (LINGUAS): Initialize in a way that supports
  19117. empty set.
  19118. 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
  19119. * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
  19120. reliing on po/LINGUAS.
  19121. ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
  19122. (po/%.po): ... this.
  19123. 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
  19124. * util/i386/efi/grub-mkimage.c: Include "progname.h".
  19125. (main): Use `program_name' instead of nonexistent `progname'.
  19126. 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
  19127. * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
  19128. * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
  19129. 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
  19130. * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
  19131. commit.
  19132. * conf/i386-efi.rmk: Likewise.
  19133. * conf/i386-ieee1275.rmk: Likewise.
  19134. * conf/powerpc-ieee1275.rmk: Likewise.
  19135. * conf/sparc64-ieee1275.rmk: Likewise.
  19136. * conf/x86_64-efi.rmk: Likewise.
  19137. 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
  19138. * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
  19139. 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
  19140. * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
  19141. 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
  19142. * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
  19143. (grub_mkdevicemap_SOURCES): New variable.
  19144. (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
  19145. (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
  19146. (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
  19147. * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
  19148. (grub_mkdevicemap_SOURCES): Remove.
  19149. * conf/i386-efi.rmk: Likewise.
  19150. * conf/i386-ieee1275.rmk: Likewise.
  19151. * conf/i386-pc.rmk: Likewise.
  19152. * conf/powerpc-ieee1275.rmk: Likewise.
  19153. * conf/sparc64-ieee1275.rmk: Likewise.
  19154. * conf/x86_64-efi.rmk: Likewise.
  19155. * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
  19156. (usage): Fix strings to use `program_name'.
  19157. (main): Initialize gettext.
  19158. * util/grub-editenv.c: Likewise.
  19159. * util/grub-emu.c: Likewise.
  19160. * util/grub-fstest.c: Likewise.
  19161. * util/grub-mkdevicemap.c: Likewise.
  19162. * util/grub-mkfont.c: Likewise.
  19163. * util/grub-mkrelpath.c: Likewise.
  19164. * util/grub-pe2elf.c: Likewise.
  19165. * util/grub-probe.c: Likewise.
  19166. * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
  19167. * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
  19168. * util/sparc64/ieee1275/grub-setup.c: Likewise.
  19169. * util/misc.c: Include `"progname.h"'.
  19170. (progname): Remove variable.
  19171. (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
  19172. 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
  19173. * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
  19174. printf and print a newline after the menuentry header line.
  19175. * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
  19176. 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
  19177. autoconf >= 2.60 support $(localedir).
  19178. * INSTALL: Note that autoconf 2.60 is required.
  19179. * configure.ac (AC_PREREQ): Bump to 2.60.
  19180. * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
  19181. * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
  19182. 2009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
  19183. * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
  19184. aclocal is run.
  19185. 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
  19186. * normal/main.c (grub_normal_read_line): Fix off-by-one
  19187. buffer overflow.
  19188. 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
  19189. * normal/main.c (grub_normal_execute): Replace "parser.sh" with
  19190. "parser.grub" in grub_command_execute() call.
  19191. 2009-11-24 Carles Pina i Estany <carles@pina.cat>
  19192. * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
  19193. * conf/i386-efi.rmk: Likewise.
  19194. * conf/i386-ieee1275.rmk: Likewise.
  19195. * conf/i386-pc.rmk: Likewise.
  19196. * conf/powerpc-ieee1275.rmk: Likewise.
  19197. * conf/sparc64-ieee1275.rmk: Likewise.
  19198. * conf/x86_64-efi.rmk: Likewise.
  19199. * gettext/gettex.c: Include <grub/i18n.h>.
  19200. * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
  19201. here ...
  19202. * include/grub/i18n.h: ... to here
  19203. * include/grub/i18n.h: ... to here.
  19204. * kern/misc.c: Include <grub/i18n.h>
  19205. (grub_gettext_dummy): Move above user.
  19206. 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
  19207. * util/Makefile.in (install-local): Convert a `for' into a normal
  19208. shell expansion.
  19209. 2009-11-24 Robert Millan <rmh.grub@aybabtu.com>
  19210. * autogen.sh: Add automake call.
  19211. * config.guess: Remove.
  19212. * config.sub: Likewise.
  19213. * install-sh: Likewise.
  19214. 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
  19215. * util/Makefile.in (install-local): Fix the use of $lang shell variable.
  19216. 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
  19217. * util/Makefile.in (install-local): Convert a make `$(foreach)'
  19218. function to a normal shell `for'.
  19219. 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
  19220. * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
  19221. 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
  19222. * util/grub-mkrelpath.c: New file.
  19223. * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
  19224. (grub_mkrelpath_SOURCES): New variable.
  19225. * include/grub/util/misc.h: New function prototype.
  19226. * util/misc.c (make_system_path_relative_to_its_root): New function.
  19227. * util/grub-mkconfig_lib.in (bindir): New variable.
  19228. (grub_mkrelpath): Likewise.
  19229. (make_system_path_relative_to_its_root): Use grub-mkrelpath.
  19230. * util/probe.c (probe): Make the file path relative to its root.
  19231. Change a info message to use the GRUB path. Enable again the
  19232. check if we can read the file with GRUB facilities.
  19233. * util/i386/pc/grub-setup.c (setup): Make core.img path relative
  19234. to its root.
  19235. 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
  19236. * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
  19237. platform.
  19238. 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
  19239. * util/getroot.c (grub_util_get_dev_abstraction): Properly use
  19240. strncmp().
  19241. 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
  19242. * util/getroot.c (grub_util_is_dmraid): New function.
  19243. (grub_util_get_dev_abstraction): Treat dmraid and multipath
  19244. devices as normal ones, not as LVM.
  19245. 2009-11-23 Carles Pina i Estany <carles@pina.cat>
  19246. * conf/common.rmk: Add grub-gettext_lib target and updates
  19247. lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
  19248. LDFLAGS.
  19249. * gettext/gettext.c: New file. (Reads mo files).
  19250. * include/grub/file.h (grub_file_pread): New prototype.
  19251. * include/grub/i18n.h (_): New prototype.
  19252. * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
  19253. prototypes.
  19254. * kern/misc.c (grub_gettext_dummy): New function.
  19255. * normal/menu_text.c: Include <grub/i18n.h>.
  19256. * normal/menu_text.c (print_timeout): Gettexttize string.
  19257. * normal/menu_text.c (print_message): Gettexttize string.
  19258. * po/POTFILES: Add `normal/menu_text.c'.
  19259. * po/ca.po: Add new translations.
  19260. * util/grub.d/00_header.in: Define locale_dir and lang. insmod
  19261. gettext module and defines locale_dir and lang in grub.cfg.
  19262. * NEWS: Add gettext support.
  19263. 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
  19264. * util/hostdisk.c: Include `<grub/i18n.h>'.
  19265. (find_grub_drive): Use ARRAY_SIZE for map size calculation.
  19266. (make_device_name): Rewrite using asprintf.
  19267. (convert_system_partition_to_system_disk): Replace 0 with NULL.
  19268. (find_system_device): If a device is not found, generate one just
  19269. by reusing the OS path name.
  19270. (read_device_map): Make it permissible for device.map not to exist.
  19271. 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
  19272. * script/sh/execute.c: Move from here ...
  19273. * script/execute.c: ... to here. Update all users.
  19274. * script/sh/function.c: Move from here ...
  19275. * script/function.c: ... to here. Update all users.
  19276. * script/sh/lexer.c: Move from here ...
  19277. * script/lexer.c: ... to here. Update all users.
  19278. * script/sh/main.c: Move from here ...
  19279. * script/main.c: ... to here. Update all users.
  19280. * script/sh/parser.y: Move from here ...
  19281. * script/parser.y: ... to here. Update all users.
  19282. * script/sh/script.c: Move from here ...
  19283. * script/script.c: ... to here. Update all users.
  19284. 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
  19285. * configure.ac: Detect all `emu' platforms. Define
  19286. GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
  19287. --enable-grub-emu logic. Disable include/grub/machine
  19288. symlink on `emu' platforms.
  19289. * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
  19290. * gensymlist.sh.in: Likewise.
  19291. * include/grub/i386/coreboot/machine.h: Remove file.
  19292. * include/grub/i386/efi/machine.h: Likewise.
  19293. * include/grub/i386/ieee1275/machine.h: Likewise.
  19294. * include/grub/i386/pc/machine.h: Likewise.
  19295. * include/grub/i386/qemu/machine.h: Likewise.
  19296. * include/grub/powerpc/ieee1275/machine.h: Likewise.
  19297. * include/grub/sparc64/ieee1275/machine.h: Likewise.
  19298. * include/grub/x86_64/efi/machine.h: Likewise.
  19299. * commands/acpi.c: Remove `<grub/machine/machine.h>'.
  19300. * commands/halt.c: Likewise.
  19301. * commands/reboot.c: Likewise.
  19302. * include/grub/autoefi.h: Likewise.
  19303. * include/grub/i386/at_keyboard.h: Likewise.
  19304. * include/grub/i386/kernel.h: Likewise.
  19305. * include/grub/i386/loader.h: Likewise.
  19306. * include/grub/i386/pc/memory.h: Likewise.
  19307. * kern/dl.c: Likewise.
  19308. * kern/i386/coreboot/init.c: Likewise.
  19309. * loader/i386/bsd.c: Likewise.
  19310. * loader/i386/linux.c: Likewise.
  19311. * loader/multiboot_loader.c: Likewise.
  19312. * term/i386/pc/serial.c: Likewise.
  19313. * term/usb_keyboard.c: Likewise.
  19314. * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
  19315. `<grub/machine/machine.h>'
  19316. [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
  19317. * util/misc.c: Remove `<grub/machine/machine.h>' and
  19318. `<grub/machine/time.h>'.
  19319. * Makefile.in (enable_grub_emu): Remove variable.
  19320. Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
  19321. * conf/any-emu.rmk: New file.
  19322. * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
  19323. (grub_emu_init.c): Move from here ...
  19324. * conf/any-emu.rmk: ... to here.
  19325. * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
  19326. (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
  19327. * conf/any-emu.rmk: ... to here.
  19328. 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
  19329. * include/grub/parser.h (grub_parser_register): Document need
  19330. of `name' parameter.
  19331. * normal/main.c (grub_normal_read_line): Simplify prompt string.
  19332. * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
  19333. "sh" to "grub".
  19334. 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
  19335. * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
  19336. `$(XGETTEXT)'.
  19337. * include/grub/i18n.h (N_): New macro.
  19338. * util/mkisofs/mkisofs.h: Likewise.
  19339. * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
  19340. around N_().
  19341. (usage): Use gettext() to translate help strings when printing them.
  19342. 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
  19343. Based on patch from Bean
  19344. (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
  19345. * video/efi_fb.c: New file.
  19346. * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
  19347. (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
  19348. variables.
  19349. * conf/x86_64-efi.rmk: Likewise.
  19350. 2009-11-22 Robert Millan <rmh.grub@aybabtu.com>
  19351. * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
  19352. * util/i386/pc/grub-setup.c: Likewise.
  19353. 2009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
  19354. * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
  19355. <hurd/fs.h>
  19356. [__GNU__] (grub_guess_root_device): Call file_name_lookup and
  19357. file_get_storage_info to implement grub_guess_root_device.
  19358. 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
  19359. * Makefile.in (target): Use make's builtin $(shell) function
  19360. instead of calling directly $(SHELL) to create the locale directories,
  19361. inside the $(foreach) function.
  19362. 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
  19363. * util/grub-mkrescue.in: Print an error and usage if output option
  19364. has not been given.
  19365. 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
  19366. Patch from Loïc Minier <loic.minier@ubuntu.com>.
  19367. * util/grub.d/30_os-prober.in: Cope with Linux entries where
  19368. root and /boot are on different devices.
  19369. 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
  19370. Fix build for srcdir != objdir.
  19371. * Makefile.in (po/$(PACKAGE).pot): Rename to ...
  19372. ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
  19373. $(srcdir).
  19374. ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
  19375. ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
  19376. reference for input.
  19377. 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
  19378. * util/grub-mkrescue.in: Use source directory direcly (without copiing
  19379. or hardlinking it). Remove -J option, Joliet is not compatible with
  19380. multiple source directories.
  19381. 2009-11-21 Carles Pina i Estany <carles@pina.cat>
  19382. 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
  19383. * util/grub-mkrescue.in: Recognize `--override-directory' option.
  19384. (process_input_dir): New function. Process an arbitrary input
  19385. directory.
  19386. Misc adjustments to support both "override mode" and system-wide mode.
  19387. 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
  19388. * configure.ac (UNIFONT_BDF): Rename to ...
  19389. (FONT_SOURCE): ... this. Update all users.
  19390. 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
  19391. * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
  19392. to the list of unifont files to look for.
  19393. 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
  19394. Patch from Joe Auricchio <jauricchio@gmail.com>
  19395. * commands/minicmd.c (grub_mini_cmd_clear): New function.
  19396. (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
  19397. (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
  19398. 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
  19399. * Makefile.in (install-local): Add a missing backslash.
  19400. 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
  19401. * include/grub/x86_64/io.h: New file.
  19402. 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
  19403. * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
  19404. * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
  19405. Include `"progname.h"'.
  19406. (main): Initialize gettext.
  19407. * util/i386/pc/grub-setup.c: Gettexttize.
  19408. * util/i386/pc/grub-mkimage.c: Likewise.
  19409. * Makefile.in (po/*.po): Redefine as ...
  19410. ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
  19411. * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
  19412. 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
  19413. * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
  19414. * util/mkisofs/mkisofs.c: Include `"progname.h"'.
  19415. (program_name): Remove.
  19416. (main): Initialize gettext support.
  19417. * util/mkisofs/mkisofs.h: Include `<locale.h>'.
  19418. Include `<libintl.h>'.
  19419. (_): New macro.
  19420. * util/mkisofs/eltorito.c: Gettexttize.
  19421. * util/mkisofs/joliet.c: Likewise.
  19422. * util/mkisofs/mkisofs.c: Likewise.
  19423. * util/mkisofs/multi.c: Likewise.
  19424. * util/mkisofs/rock.c: Likewise.
  19425. * util/mkisofs/tree.c: Likewise.
  19426. * util/mkisofs/write.c: Likewise.
  19427. * po/POTFILES: Update with new files.
  19428. 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
  19429. * util/mkisofs/eltorito.c: Fix minor mistake in license text.
  19430. * util/mkisofs/iso9660.h: Likewise.
  19431. * util/mkisofs/joliet.c: Likewise.
  19432. * util/mkisofs/mkisofs.c: Likewise.
  19433. * util/mkisofs/mkisofs.h: Likewise.
  19434. * util/mkisofs/rock.c: Likewise.
  19435. * util/mkisofs/tree.c: Likewise.
  19436. * util/mkisofs/write.c: Likewise.
  19437. * util/mkisofs/eltorito.c (rcsid): Remove.
  19438. * util/mkisofs/hash.c: Likewise.
  19439. * util/mkisofs/joliet.c: Likewise.
  19440. * util/mkisofs/name.c: Likewise.
  19441. * util/mkisofs/rock.c: Likewise.
  19442. * util/mkisofs/tree.c: Likewise.
  19443. * util/mkisofs/write.c: Likewise.
  19444. 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
  19445. * util/mkisofs/match.c: Rewrite from scratch, using a linked list
  19446. instead of static allocation.
  19447. * util/mkisofs/match.h: Likewise.
  19448. 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
  19449. * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
  19450. and `util/grub.d/10_linux.in'.
  19451. * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
  19452. translatable Shell files.
  19453. 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
  19454. * Makefile.in ($(srcdir)/aclocal.m4): New target.
  19455. 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
  19456. * INSTALL: Document Automake is needed for bootstrap.
  19457. * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
  19458. * util/grub.d/10_kfreebsd.in (bindir): New variable.
  19459. Add gettext initialization.
  19460. (kfreebsd_entry): Make menuentry output translatable.
  19461. 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
  19462. * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
  19463. (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
  19464. (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
  19465. (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
  19466. (LINGUAS): Auto-generate using `po/LINGUAS'.
  19467. * po/LINGUAS: New file.
  19468. 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
  19469. * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
  19470. other things).
  19471. * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
  19472. * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
  19473. bindtextdomain() calls for gettext initialization.
  19474. 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
  19475. * gnulib/progname.c: New file (imported from Gnulib).
  19476. * gnulib/progname.h: Likewise.
  19477. * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
  19478. * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
  19479. (usage): Replace `progname' with `program_name'.
  19480. (main): Use set_program_name() for program name initialization.
  19481. 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
  19482. * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
  19483. from here ...
  19484. * Makefile.in (CPPFLAGS): ... to here.
  19485. 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
  19486. * aclocal.m4: Move from here ...
  19487. * acinclude.m4: ... to here.
  19488. * autogen.sh: Add call to `aclocal'.
  19489. * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
  19490. 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
  19491. * Makefile.in (CLEANFILES): Add `po/*.mo'.
  19492. (LINGUAS): New variable.
  19493. (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
  19494. (install-local): Install MO files.
  19495. (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
  19496. * include/grub/i18n.h: New file.
  19497. * po/POTFILES: New file.
  19498. * po/ca.po: New file.
  19499. * util/grub.d/10_linux.in (bindir): New variable.
  19500. Add gettext initialization.
  19501. (linux_entry): Make menuentry output translatable.
  19502. * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
  19503. (usage): Make --help output translatable.
  19504. (main): Initialize gettext.
  19505. 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
  19506. * import_gcry.py: New file (written by Vladimir with minor
  19507. adjustments).
  19508. * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
  19509. ciphers.
  19510. * INSTALL: Document that Python is required for bootstrap.
  19511. 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
  19512. Import ciphers from libgcrypt 1.4.4.
  19513. * lib/libgcrypt/cipher/ChangeLog
  19514. * lib/libgcrypt/cipher/ac.c
  19515. * lib/libgcrypt/cipher/arcfour.c
  19516. * lib/libgcrypt/cipher/bithelp.h
  19517. * lib/libgcrypt/cipher/blowfish.c
  19518. * lib/libgcrypt/cipher/camellia-glue.c
  19519. * lib/libgcrypt/cipher/camellia.c
  19520. * lib/libgcrypt/cipher/camellia.h
  19521. * lib/libgcrypt/cipher/cast5.c
  19522. * lib/libgcrypt/cipher/cipher.c
  19523. * lib/libgcrypt/cipher/crc.c
  19524. * lib/libgcrypt/cipher/des.c
  19525. * lib/libgcrypt/cipher/dsa.c
  19526. * lib/libgcrypt/cipher/ecc.c
  19527. * lib/libgcrypt/cipher/elgamal.c
  19528. * lib/libgcrypt/cipher/hash-common.c
  19529. * lib/libgcrypt/cipher/hash-common.h
  19530. * lib/libgcrypt/cipher/hmac-tests.c
  19531. * lib/libgcrypt/cipher/md.c
  19532. * lib/libgcrypt/cipher/md4.c
  19533. * lib/libgcrypt/cipher/md5.c
  19534. * lib/libgcrypt/cipher/primegen.c
  19535. * lib/libgcrypt/cipher/pubkey.c
  19536. * lib/libgcrypt/cipher/rfc2268.c
  19537. * lib/libgcrypt/cipher/rijndael-tables.h
  19538. * lib/libgcrypt/cipher/rijndael.c
  19539. * lib/libgcrypt/cipher/rmd.h
  19540. * lib/libgcrypt/cipher/rmd160.c
  19541. * lib/libgcrypt/cipher/rsa.c
  19542. * lib/libgcrypt/cipher/seed.c
  19543. * lib/libgcrypt/cipher/serpent.c
  19544. * lib/libgcrypt/cipher/sha1.c
  19545. * lib/libgcrypt/cipher/sha256.c
  19546. * lib/libgcrypt/cipher/sha512.c
  19547. * lib/libgcrypt/cipher/tiger.c
  19548. * lib/libgcrypt/cipher/twofish.c
  19549. * lib/libgcrypt/cipher/whirlpool.c
  19550. 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
  19551. Fix build for systems without error().
  19552. * gnulib/error.c: New file (imported from Gnulib).
  19553. * gnulib/error.h: Likewise.
  19554. * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
  19555. * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
  19556. (this variable is now used by error()).
  19557. 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
  19558. * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
  19559. instead of relying that char is signed.
  19560. 2009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
  19561. * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
  19562. blocksize different from specified.
  19563. (grub_pxefs_read): Likewise.
  19564. 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
  19565. Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
  19566. * disk/ata.c (grub_ata_dumpinfo): Add a cast.
  19567. (grub_ata_readwrite): Likewise. Update 2 format strings.
  19568. (grub_atapi_read): Likewise.
  19569. * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
  19570. * conf/i386.rmk (pkglib_MODULES): ... to here ...
  19571. * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
  19572. * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
  19573. (ata_mod_LDFLAGS): Move from here ...
  19574. * conf/i386.rmk: ... to here ...
  19575. * conf/x86_64-efi.rmk: ... and here.
  19576. * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
  19577. (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
  19578. 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
  19579. Relicense multiboot.h, with RMS' blessing.
  19580. * include/multiboot.h: Change to X11 license.
  19581. 2009-11-15 Robert Millan <rmh.grub@aybabtu.com>
  19582. Support --version in grub-mkisofs.
  19583. * util/mkisofs/mkisofs.c (rcsid): Remove variable.
  19584. (OPTION_VERSION): New macro.
  19585. (ld_options): Recognize --version.
  19586. (usage): Move `program_name' from here ...
  19587. (program_name): ... to here. Add `static' qualifier.
  19588. (main): Recognize `OPTION_VERSION'.
  19589. 2009-11-15 Felix Zielcke <fzielcke@z-51.de>
  19590. * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
  19591. with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
  19592. 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
  19593. Fix help2man generation for mkisofs.
  19594. * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
  19595. (usage): Send output to stdout (rather than stderr).
  19596. 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
  19597. * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
  19598. `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
  19599. * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
  19600. `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
  19601. (bin_SCRIPTS): Add `grub-mkfloppy'.
  19602. (grub_mkfloppy_SOURCES): New variable.
  19603. * util/grub-mkrescue.in: New file.
  19604. * util/i386/pc/grub-mkfloppy.in: New file.
  19605. * util/i386/coreboot/grub-mkrescue.in: Remove.
  19606. * util/i386/pc/grub-mkrescue.in: Remove.
  19607. 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
  19608. * include/grub/multiboot.h (struct grub_multiboot_header): Move
  19609. from here ...
  19610. * include/multiboot.h (struct multiboot_header): ... to here. Update
  19611. all users.
  19612. * include/grub/multiboot.h (struct grub_multiboot_info): Move
  19613. from here ...
  19614. * include/multiboot.h (struct multiboot_info): ... to here. Update
  19615. all users.
  19616. * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
  19617. from here ...
  19618. * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
  19619. Update all users.
  19620. * include/grub/multiboot.h (struct grub_mod_list): Move
  19621. from here ...
  19622. * include/multiboot.h (struct multiboot_mod_list): ... to here.
  19623. Update all users.
  19624. 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
  19625. * include/multiboot2.h (multiboot_word): Rename from this ...
  19626. (multiboot2_word): ... to this. Update all users.
  19627. (multiboot_header): Rename from this ...
  19628. (multiboot2_header): ... to this. Update all users.
  19629. (multiboot_tag_header): Rename from this ...
  19630. (multiboot2_tag_header): ... to this. Update all users.
  19631. (multiboot_tag_start): Rename from this ...
  19632. (multiboot2_tag_start): ... to this. Update all users.
  19633. (multiboot_tag_name): Rename from this ...
  19634. (multiboot2_tag_name): ... to this. Update all users.
  19635. (multiboot_tag_module): Rename from this ...
  19636. (multiboot2_tag_module): ... to this. Update all users.
  19637. (multiboot_tag_memory): Rename from this ...
  19638. (multiboot2_tag_memory): ... to this. Update all users.
  19639. (multiboot_tag_unused): Rename from this ...
  19640. (multiboot2_tag_unused): ... to this. Update all users.
  19641. (multiboot_tag_end): Rename from this ...
  19642. (multiboot2_tag_end): ... to this. Update all users.
  19643. 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
  19644. Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
  19645. this platform we should support Multiboot1 first.
  19646. * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
  19647. (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
  19648. (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
  19649. 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
  19650. * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
  19651. of write calls (converting them to fwrite() if they aren't already).
  19652. (get_torito_desc): Likewise.
  19653. * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
  19654. 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
  19655. * util/i386/pc/grub-install.in: Move from here ...
  19656. * util/grub-install.in: ... to here. Update all users.
  19657. 2009-11-11 Colin Watson <cjwatson@ubuntu.com>
  19658. * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
  19659. 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
  19660. Support for El Torito without floppy emulation.
  19661. * util/mkisofs/eltorito.c: Include `<errno.h>'.
  19662. (init_boot_catalog): Improve error handling.
  19663. (get_torito_desc): Don't use floppy emulation unless requested by
  19664. user. Patch boot information table when requested via
  19665. `-boot-info-table'.
  19666. * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
  19667. * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
  19668. (use_boot_info_table): New variables.
  19669. (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
  19670. (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
  19671. (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
  19672. `--eltorito-emul-floppy'.
  19673. (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
  19674. and `OPTION_ELTORITO_EMUL_FLOPPY'.
  19675. * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
  19676. (use_boot_info_table, get_731): New prototypes.
  19677. * util/mkisofs/write.c (get_731): New function.
  19678. 2009-11-11 Felix Zielcke <fzielcke@z-51.de>
  19679. Fix the generation of the man page.
  19680. * util/pc/i386/grub-install.in: Source
  19681. `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
  19682. 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
  19683. Large file support for grub-mkisofs.
  19684. * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
  19685. * util/mkisofs/mkisofs.c (next_extent, last_extent)
  19686. (session_start): Upgrade type to `uint64_t'. Update all users.
  19687. * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
  19688. (struct directory_entry): Upgrade type of `starting_block' and
  19689. `size' to `uint64_t'. Update all users.
  19690. (struct deferred): Remove unused structure.
  19691. (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
  19692. Update all users.
  19693. * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
  19694. file is larger than `UINT32_MAX'.
  19695. * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
  19696. `size' to `uint64_t'. Update all users. Fix handling of fwrite()
  19697. return value.
  19698. (struct deferred_write): Upgrade type of `extent' and `size' to
  19699. `uint64_t'. Update all users.
  19700. (last_extent_written): Upgrade type to `uint64_t'. Update all
  19701. users.
  19702. (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
  19703. Update all users. Upgrade type of `remain' to `int64_t' and
  19704. `use' to `size_t'. Use error() to handle fread() errors.
  19705. (write_files): Rely on write_one_file() rather than calling
  19706. xfwrite() directly.
  19707. 2009-11-09 Felix Zielcke <fzielcke@z-51.de>
  19708. * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
  19709. 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
  19710. * util/mkisofs/fnmatch.c: Remove.
  19711. * util/mkisofs/getopt1.c: Likewise.
  19712. * util/mkisofs/getopt.c: Likewise.
  19713. * conf/common.rmk (grub_mkisofs_SOURCES): Replace
  19714. `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
  19715. `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
  19716. `gnulib/getopt1.c' and `gnulib/getopt.c'.
  19717. (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
  19718. * configure.ac: Detect `mingw32msvc' host_os.
  19719. Check for lstat(), getuid() and getgid().
  19720. * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
  19721. instances of `u_char' with `uint8_t'.
  19722. * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
  19723. [!HAVE_GETUID] (getuid): New function (stub).
  19724. [!HAVE_GETGID] (getgid): Likewise.
  19725. [!HAVE_LSTAT] (lstat): Likewise.
  19726. [!S_IROTH] (S_IROTH): New macro (dummy).
  19727. [!S_IRGRP] (S_IRGRP): Likewise.
  19728. 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
  19729. * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
  19730. conditional expression).
  19731. 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
  19732. Import from Gnulib.
  19733. * gnulib/fnmatch.c: New file.
  19734. * gnulib/fnmatch.h: Likewise.
  19735. * gnulib/fnmatch_loop.c: Likewise.
  19736. * gnulib/getopt.c: Likewise.
  19737. * gnulib/getopt.h: Likewise.
  19738. * gnulib/getopt1.c: Likewise.
  19739. * gnulib/getopt_int.h: Likewise.
  19740. * gnulib/gettext.h: Likewise.
  19741. 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
  19742. * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
  19743. * normal/handler.c (read_handler_list): Likewise.
  19744. 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
  19745. Misc cleanup.
  19746. * kern/command.c (grub_register_command_prio): Use
  19747. grub_zalloc() instead of explicitly zeroing data.
  19748. * kern/list.c: Include `<grub/mm.h>'.
  19749. (grub_named_list_find): Replace `0' with `NULL'.
  19750. * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
  19751. (fs_module_list): Change type to `grub_named_list_t'. Update all
  19752. users.
  19753. * normal/dyncmd.c (read_command_list): Add space between function
  19754. call and parenthesis.
  19755. * normal/handler.c (read_handler_list): Likewise.
  19756. 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
  19757. * normal/auth.c (punishment_delay): Moved from here ...
  19758. (grub_auth_strcmp): ... to here (inside function).
  19759. 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
  19760. * include/grub/list.h (struct grub_named_list): Remove `const'
  19761. qualifier from `name'.
  19762. (struct grub_prio_list): Likewise.
  19763. 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
  19764. * normal/auth.c: Include `<grub/time.h>'.
  19765. (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
  19766. 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
  19767. * normal/auth.c (punishment_delay): New variable.
  19768. (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
  19769. (grub_auth_check_authentication): Punish failed login attempts with
  19770. an incremental (2^N) delay.
  19771. 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
  19772. * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
  19773. path with $(srcdir).
  19774. 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
  19775. * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
  19776. 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
  19777. * util/i386/coreboot/grub-mkrescue.in: New file.
  19778. * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
  19779. variables.
  19780. * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
  19781. (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
  19782. * configure.ac: Add header and function checks to satisfy grub-mkisofs
  19783. requirements.
  19784. * util/mkisofs/defaults.h: New file.
  19785. * util/mkisofs/eltorito.c: Likewise.
  19786. * util/mkisofs/exclude.h: Likewise.
  19787. * util/mkisofs/fnmatch.c: Likewise.
  19788. * util/mkisofs/getopt.c: Likewise.
  19789. * util/mkisofs/getopt1.c: Likewise.
  19790. * util/mkisofs/hash.c: Likewise.
  19791. * util/mkisofs/include/fctldefs.h: Likewise.
  19792. * util/mkisofs/include/mconfig.h: Likewise.
  19793. * util/mkisofs/include/prototyp.h: Likewise.
  19794. * util/mkisofs/include/statdefs.h: Likewise.
  19795. * util/mkisofs/iso9660.h: Likewise.
  19796. * util/mkisofs/joliet.c: Likewise.
  19797. * util/mkisofs/match.c: Likewise.
  19798. * util/mkisofs/match.h: Likewise.
  19799. * util/mkisofs/mkisofs.c: Likewise.
  19800. * util/mkisofs/mkisofs.h: Likewise.
  19801. * util/mkisofs/multi.c: Likewise.
  19802. * util/mkisofs/name.c: Likewise.
  19803. * util/mkisofs/rock.c: Likewise.
  19804. * util/mkisofs/tree.c: Likewise.
  19805. * util/mkisofs/write.c: Likewise.
  19806. 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
  19807. * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
  19808. being insecure.
  19809. 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
  19810. * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
  19811. `grub-mkimage' (and use $0 when possible).
  19812. 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
  19813. * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
  19814. error message for excessively large memory map.
  19815. 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
  19816. * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
  19817. executable bit.
  19818. 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
  19819. * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
  19820. message for coreboot users.
  19821. 2009-11-07 Robert Millan <rmh.grub@aybabtu.com>
  19822. Fix build with GNU gold.
  19823. * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
  19824. (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
  19825. (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
  19826. link addresses.
  19827. * aclocal.m4: Likewise.
  19828. 2009-11-04 Felix Zielcke <fzielcke@z-51.de>
  19829. * configure.ac (AC_PREREQ): Bump to 2.59d.
  19830. * INSTALL: Make it more clear when Autoconf and Ruby are
  19831. needed and when to run `./autogen.sh'.
  19832. 2009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
  19833. * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
  19834. OSes.
  19835. 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
  19836. * util/grub.d/30_os-prober.in: Add GNU/Hurd support
  19837. 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
  19838. * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
  19839. giving it to GNU Mach.
  19840. 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
  19841. * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
  19842. GNU partition number to get internal GRUB partition number.
  19843. 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
  19844. * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
  19845. ${GRUB_DEVICE_BOOT} before loading /boot kernel.
  19846. 2009-11-01 Robert Millan <rmh.grub@aybabtu.com>
  19847. Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
  19848. * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
  19849. case.
  19850. 2009-11-01 Felix Zielcke <fzielcke@z-51.de>
  19851. * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
  19852. 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
  19853. Fix build problem.
  19854. * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
  19855. `-isystem=$(srcdir)/include'.
  19856. 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
  19857. * util/i386/pc/grub-install.in: Remove hint that device.map should be
  19858. checked (grub-install doesn't currently rely on it).
  19859. 2009-10-29 Robert Millan <rmh.grub@aybabtu.com>
  19860. Revert SVN r2660.
  19861. * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
  19862. * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
  19863. * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
  19864. * conf/i386-ieee1275.rmk: Likewise.
  19865. * conf/i386-pc.rmk: Likewise.
  19866. * conf/powerpc-ieee1275.rmk: Likewise.
  19867. * conf/sparc64-ieee1275.rmk: Likewise.
  19868. * conf/x86_64-efi.rmk: Likewise.
  19869. 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
  19870. * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
  19871. 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
  19872. * include/grub/misc.h: Stop checking for APPLE_CC.
  19873. 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
  19874. * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
  19875. doesn't cause an infinite call loop.
  19876. 2009-10-28 Felix Zielcke <fzielcke@z-51.de>
  19877. * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
  19878. strings.
  19879. 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
  19880. * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
  19881. variable.
  19882. * Makefile.in: Likewise.
  19883. 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
  19884. * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
  19885. 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
  19886. * Makefile.in (RMKFILES): Rewrite using $(wildcard).
  19887. 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
  19888. * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
  19889. 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
  19890. * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
  19891. from here ...
  19892. * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
  19893. 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
  19894. * Makefile.in (docs/grub.info): Use make syntax to ignore errors
  19895. in $(MAKEINFO) invocation. This makes it clear in output that
  19896. errors are being ignored.
  19897. 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
  19898. * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
  19899. from here ...
  19900. * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
  19901. * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
  19902. * conf/i386-ieee1275.rmk: Likewise.
  19903. * conf/i386-pc.rmk: Likewise.
  19904. * conf/powerpc-ieee1275.rmk: Likewise.
  19905. * conf/sparc64-ieee1275.rmk: Likewise.
  19906. * conf/x86_64-efi.rmk: Likewise.
  19907. 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
  19908. * util/grub-editenv.c (main): If only a command is given, use
  19909. DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
  19910. (usage): FILENAME is now optional and has a default.
  19911. 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
  19912. Improve grub-mkconfig performance when there are several menu
  19913. entries on a single filesystem.
  19914. * util/grub.d/10_linux.in (linux_entry): Cache the output of
  19915. prepare_grub_to_access_device.
  19916. * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
  19917. * util/grub.d/30_os-prober.in: Likewise.
  19918. 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
  19919. * util/grub.d/10_freebsd.in: Remove.
  19920. * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
  19921. * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
  19922. 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
  19923. * docs/grub.cfg: Fix example usage of *BSD loaders.
  19924. 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
  19925. * util/i386/pc/grub-setup.c (setup): Add missing parameter to
  19926. grub_util_error() call.
  19927. 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
  19928. * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
  19929. `reserved_first_sector' member.
  19930. * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
  19931. `reserved_first_sector' to 1.
  19932. * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
  19933. * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
  19934. * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
  19935. * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
  19936. filesystems which begin at first sector.
  19937. (options): New option --skip-fs-probe.
  19938. (main): Handle --skip-fs-probe and pass it to setup().
  19939. 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
  19940. * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
  19941. (memset): Fix function prototype.
  19942. 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
  19943. 2009-10-25 Vasily Averin <vvs@parallels.com>
  19944. * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
  19945. `dirent.direntlen == 0'.
  19946. 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
  19947. * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
  19948. `cpio'.
  19949. [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
  19950. 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
  19951. * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
  19952. `__trampoline_setup' and `__ucmpdi2'.
  19953. * include/grub/powerpc/libgcc.h: Only export symbols for functions
  19954. that libgcc provides.
  19955. 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
  19956. * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
  19957. * include/grub/sparc64/libgcc.h (memset): Likewise.
  19958. * include/grub/misc.h (memset, memcmp): New function prototypes.
  19959. 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
  19960. * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
  19961. `cpio'.
  19962. [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
  19963. 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
  19964. Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
  19965. * docs/grub.cfg: Compensate for recent change in multiboot
  19966. loader (since 2009-08-14 it won't pass filename to payload).
  19967. * util/grub.d/10_hurd.in: Likewise.
  19968. 2009-10-21 Felix Zielcke <fzielcke@z-51.de>
  19969. * config.guess: Update to latest version from config git
  19970. repository.
  19971. * config.sub: Likewise.
  19972. 2009-10-20 Robert Millan <rmh.grub@aybabtu.com>
  19973. Fix build on sparc64.
  19974. * configure.ac: Perform checks for libgcc symbols before
  19975. adding `-nostdlib' to LDFLAGS.
  19976. 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
  19977. Let user specify OpenBSD root device.
  19978. * loader/i386/bsd.c (openbsd_root): New variable.
  19979. (openbsd_opts): New option 'root'.
  19980. (OPENBSD_ROOT_ARG): New macro.
  19981. (grub_openbsd_boot): Use 'openbsd_root'.
  19982. (grub_cmd_openbsd): Fill 'openbsd_root'.
  19983. 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
  19984. * NEWS: Misc adjustments.
  19985. 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
  19986. * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
  19987. 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
  19988. * configure.ac: Bump version to 1.97.
  19989. 2009-10-16 Colin Watson <cjwatson@ubuntu.com>
  19990. * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
  19991. -mno-3dnow on x86 architectures. Some toolchains enable these
  19992. features by default, but they rely on registers that aren't enabled
  19993. in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
  19994. 2009-10-15 Robert Millan <rmh.grub@aybabtu.com>
  19995. Make entry text a bit more readable.
  19996. * util/grub.d/10_linux.in: Add `with' before `Linux'.
  19997. 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
  19998. * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
  19999. 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
  20000. * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
  20001. operations.
  20002. 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
  20003. * configure.ac: Add missing dollar.
  20004. 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
  20005. Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
  20006. * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
  20007. * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
  20008. exports.
  20009. * include/grub/sparc64/libgcc.h: Likewise. Use
  20010. preprocessor conditionals.
  20011. 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
  20012. * conf/common.rmk (grub-dumpbios): Remove rule.
  20013. (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
  20014. * util/grub-dumpbios.in: Remove file.
  20015. 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
  20016. Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
  20017. the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
  20018. * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
  20019. from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
  20020. users.
  20021. (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
  20022. "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
  20023. to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
  20024. and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
  20025. users.
  20026. 2009-10-12 Robert Millan <rmh.grub@aybabtu.com>
  20027. * term/tparm.c: Switch to GPLv3.
  20028. 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
  20029. * include/grub/i386/cpuid.h: Add header protection.
  20030. 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
  20031. Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
  20032. * include/grub/i386/cpuid.h: New file.
  20033. * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
  20034. (has_longmode): Rename to ...
  20035. (grub_cpuid_has_longmode): ... this. Update all users. Remove
  20036. `static' attribute.
  20037. * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
  20038. (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
  20039. on a CPU that doesn't implement AMD64 instruction set.
  20040. 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
  20041. * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
  20042. that version.texi is rebuilt on version number changes.
  20043. 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
  20044. * Makefile.in: Don't set info_INFOS unless makeinfo was found.
  20045. Fixes bug #27602.
  20046. 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
  20047. * util/i386/pc/grub-install.in: Source
  20048. ${libdir}/grub/grub-mkconfig_lib before option processing, in order
  20049. that the --grub-probe option will work.
  20050. * util/sparc64/ieee1275/grub-install.in: Likewise.
  20051. 2009-10-05 Robert Millan <rmh.grub@aybabtu.com>
  20052. * configure.ac: Bump version to 1.97~beta4.
  20053. 2009-10-03 Robert Millan <rmh.grub@aybabtu.com>
  20054. Resync grub-mkdevicemap in x86_64-efi.
  20055. * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
  20056. (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
  20057. `util/devicemap.c'.
  20058. 2009-10-01 Colin Watson <cjwatson@ubuntu.com>
  20059. * util/grub-editenv.c (create_envblk_file): Write new block with a
  20060. .new suffix and then rename it into place, to ensure atomic
  20061. creation.
  20062. 2009-09-28 Robert Millan <rmh.grub@aybabtu.com>
  20063. Do not automatically install headers.
  20064. * Makefile.in (include_DATA): Remove. Update all users.
  20065. 2009-09-26 Robert Millan <rmh.grub@aybabtu.com>
  20066. * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
  20067. (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
  20068. * util/osdetect.lua: Remove.
  20069. * script/lua/lauxlib.c: Likewise.
  20070. * script/lua/ldebug.c: Likewise.
  20071. * script/lua/grub_main.c: Likewise.
  20072. * script/lua/lauxlib.h: Likewise.
  20073. * script/lua/ldebug.h: Likewise.
  20074. * script/lua/ltablib.c: Likewise.
  20075. * script/lua/liolib.c: Likewise.
  20076. * script/lua/lstrlib.c: Likewise.
  20077. * script/lua/lualib.h: Likewise.
  20078. * script/lua/ldo.c: Likewise.
  20079. * script/lua/ldump.c: Likewise.
  20080. * script/lua/ldo.h: Likewise.
  20081. * script/lua/loslib.c: Likewise.
  20082. * script/lua/lundump.c: Likewise.
  20083. * script/lua/grub_lib.c: Likewise.
  20084. * script/lua/ldblib.c: Likewise.
  20085. * script/lua/lundump.h: Likewise.
  20086. * script/lua/lmem.c: Likewise.
  20087. * script/lua/grub_lib.h: Likewise.
  20088. * script/lua/lmathlib.c: Likewise.
  20089. * script/lua/lstate.c: Likewise.
  20090. * script/lua/ltm.c: Likewise.
  20091. * script/lua/lvm.c: Likewise.
  20092. * script/lua/lmem.h: Likewise.
  20093. * script/lua/lstate.h: Likewise.
  20094. * script/lua/ltm.h: Likewise.
  20095. * script/lua/ltable.c: Likewise.
  20096. * script/lua/lvm.h: Likewise.
  20097. * script/lua/llex.c: Likewise.
  20098. * script/lua/lgc.c: Likewise.
  20099. * script/lua/grub_lua.h: Likewise.
  20100. * script/lua/loadlib.c: Likewise.
  20101. * script/lua/lfunc.c: Likewise.
  20102. * script/lua/lopcodes.c: Likewise.
  20103. * script/lua/lparser.c: Likewise.
  20104. * script/lua/ltable.h: Likewise.
  20105. * script/lua/llex.h: Likewise.
  20106. * script/lua/lgc.h: Likewise.
  20107. * script/lua/lfunc.h: Likewise.
  20108. * script/lua/lbaselib.c: Likewise.
  20109. * script/lua/lopcodes.h: Likewise.
  20110. * script/lua/lparser.h: Likewise.
  20111. * script/lua/lzio.c: Likewise.
  20112. * script/lua/linit.c: Likewise.
  20113. * script/lua/lobject.c: Likewise.
  20114. * script/lua/llimits.h: Likewise.
  20115. * script/lua/lstring.c: Likewise.
  20116. * script/lua/lzio.h: Likewise.
  20117. * script/lua/lapi.c: Likewise.
  20118. * script/lua/lcode.c: Likewise.
  20119. * script/lua/lua.h: Likewise.
  20120. * script/lua/lobject.h: Likewise.
  20121. * script/lua/lstring.h: Likewise.
  20122. * script/lua/lapi.h: Likewise.
  20123. * script/lua/lcode.h: Likewise.
  20124. * script/lua/luaconf.h: Likewise.
  20125. 2009-09-26 Colin Watson <cjwatson@ubuntu.com>
  20126. * docs/grub.texi (Command-line and menu entry commands): Document
  20127. date and echo commands.
  20128. 2009-09-24 Pavel Roskin <proski@gnu.org>
  20129. * include/grub/kernel.h (struct grub_module_header): Remove
  20130. `grub_module_header_types'. Make `type' unsigned. Make `size'
  20131. 32-bit on all platforms.
  20132. * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
  20133. 8-bit field. Use grub_host_to_target32() for `size'.
  20134. * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
  20135. * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
  20136. * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
  20137. 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
  20138. Fix "lost keypress" bug in at_keyboard.
  20139. * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
  20140. Checks for readyness of input buffer (without flushing it).
  20141. (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
  20142. than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
  20143. 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
  20144. * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
  20145. size check within GRUB_MACHINE_PCBIOS section.
  20146. 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
  20147. * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
  20148. return value.
  20149. * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
  20150. KEYBOARD_ISREADY check.
  20151. (grub_at_keyboard_checkkey): Rename to ...
  20152. (grub_at_keyboard_getkey_noblock): ... this. Update all users.
  20153. Remove gratuitous cast.
  20154. 2009-09-23 Colin Watson <cjwatson@ubuntu.com>
  20155. * configure.ac: Call AC_PROG_MKDIR_P.
  20156. * Makefile.in (docs/stamp-vti): Create docs directory. Create
  20157. version.texi in $(builddir) rather than $(srcdir).
  20158. (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
  20159. to makeinfo's @include search path.
  20160. 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
  20161. * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
  20162. 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
  20163. * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
  20164. for `*.dpkg-new'.
  20165. 2009-09-21 Colin Watson <cjwatson@ubuntu.com>
  20166. Build info documentation. Some code borrowed from Automake.
  20167. * configure.ac: Check for makeinfo.
  20168. * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
  20169. (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
  20170. docs/version.texi.
  20171. (MOSTLYCLEANFILES): Add vti.tmp.
  20172. (docs/version.texi, docs/stamp-vti): Update automatically.
  20173. (docs/grub.info): Build info documentation. Use --force and ignore
  20174. errors for now.
  20175. (all-local): Add $(INFOS).
  20176. (install-local): Install info files.
  20177. (uninstall): Uninstall info files.
  20178. * docs/version.texi: Remove from revision control. This file is
  20179. automatically generated on build now.
  20180. * gendistlist.sh: Add `*.info'.
  20181. 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
  20182. * kern/term.c: Fix indentation.
  20183. 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
  20184. * util/hostdisk.c: Fix a comment.
  20185. 2009-09-20 Robert Millan <rmh.grub@aybabtu.com>
  20186. Fix regression introduced in r2539.
  20187. * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
  20188. to 0xA1.
  20189. 2009-09-19 Colin Watson <cjwatson@ubuntu.com>
  20190. * util/grub.d/30_os-prober.in: Don't throw away stderr from
  20191. os-prober. Under normal operation, it does not print anything to
  20192. stderr; if it does, we need to debug it, and throwing away stderr
  20193. makes that excessively difficult.
  20194. 2009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
  20195. * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
  20196. 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
  20197. * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
  20198. AC_LANG_PROGRAM from autoconf.
  20199. (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
  20200. prototypes (fixes warning).
  20201. * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
  20202. `--disable-werror' was used.
  20203. 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
  20204. * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
  20205. uninitialized `lastaddr'.
  20206. 2009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
  20207. * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
  20208. 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
  20209. * commands/test.c (get_fileinfo): Return immediately if
  20210. grub_fs_probe fails.
  20211. 2009-09-14 José Martínez <xosemp@gmail.com>
  20212. * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
  20213. 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
  20214. * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
  20215. output.
  20216. 2009-09-13 Robert Millan <rmh.grub@aybabtu.com>
  20217. * configure.ac: Remove --enable-grub-pe2elf. Only build
  20218. grub-pe2elf when needed by the build system itself.
  20219. * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
  20220. 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
  20221. * configure.ac: Bump version to 1.97~beta3.
  20222. * docs/version.texi: Likewise.
  20223. 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
  20224. * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
  20225. mode special handling (grub_vbe_bios_set_dac_palette_width() call)
  20226. from here ...
  20227. * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
  20228. (grub_linux_setup_video): ... to here (with some adjustments).
  20229. 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
  20230. Fix memory corruption issue (spotted by Colin Watson).
  20231. * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
  20232. causing returned size to be stored in an incorrect memory location.
  20233. Fix use of uninitialized value when storing the returned size.
  20234. 2009-09-12 Yves Blusseau <blusseau@zetam.org>
  20235. Change clean rules to properly remove files
  20236. * genmk.rb: add new clean rules
  20237. * Makefile.in (clean): add the new targets
  20238. (mostlyclean): likewise
  20239. 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
  20240. * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
  20241. to grub_uint64_t.
  20242. * fs/ntfs.c (init_file): Understand 64-bit sizes for
  20243. non-resident files.
  20244. 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
  20245. * configure.ac: Don't look for help2man when cross-compiling. Fixes
  20246. part of bug #27349.
  20247. 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
  20248. * util/grub-mkconfig.in: Make the created config mode 400 and
  20249. print a warning if it fails.
  20250. 2009-09-10 Robert Millan <rmh.grub@aybabtu.com>
  20251. * util/grub.d/40_custom.in: Ask user to type custom entries below
  20252. comment, rather than below 'exec tail' line.
  20253. 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
  20254. * util/grub.d/40_custom.in: Make sure that the explanatory text is
  20255. visible in grub.cfg.
  20256. 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
  20257. * util/grub.d/40_custom.in: Make it a little clearer how to use this
  20258. file.
  20259. 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
  20260. * docs/grub.cfg: Add an example menu entry for memtest86+.
  20261. 2009-09-09 Felix Zielcke <fzielcke@z-51.de>
  20262. * config.guess: Update to latest version from config git.
  20263. * config.sub: Likewise.
  20264. 2009-09-08 Colin Watson <cjwatson@ubuntu.com>
  20265. * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
  20266. unknown-command case. Fixes bug #27320.
  20267. 2009-09-08 Felix Zielcke <fzielcke@z-51.de>
  20268. * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
  20269. `help' if the command exists.
  20270. 2009-09-06 Robert Millan <rmh.grub@aybabtu.com>
  20271. * INSTALL: Require GCC 4.1.3 or later.
  20272. 2009-09-06 Yves Blusseau <blusseau@zetam.org>
  20273. * Makefile.in (RMKFILES): add i386-qemu.rmk
  20274. (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
  20275. $(srcdir)/stamp-h.in
  20276. 2009-09-05 Robert Millan <rmh.grub@aybabtu.com>
  20277. * util/grub-probe.c (probe): Comment out buggy codepath, which
  20278. was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
  20279. should be re-enabled after 1.97.
  20280. 2009-09-05 Felix Zielcke <fzielcke@z-51.de>
  20281. * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
  20282. find searches for.
  20283. 2009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
  20284. * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
  20285. unnecessary calls to grub_error.
  20286. 2009-09-04 Colin Watson <cjwatson@ubuntu.com>
  20287. * NEWS: Mention `keystatus' and Unicode fonts.
  20288. 2009-09-04 Robert Millan <rmh.grub@aybabtu.com>
  20289. * configure.ac: Bump version to 1.97~beta2.
  20290. * docs/version.texi: Likewise.
  20291. 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
  20292. * configure.ac: By default, GCC 4.4 generates .eh_frame sections
  20293. containing unwind information in some cases where it previously did
  20294. not. Use -fno-dwarf2-cfi-asm if available to restore the old
  20295. behaviour. See http://patchwork.kernel.org/patch/8555/ for related
  20296. discussion.
  20297. 2009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
  20298. Embedding loadenv module into grub-emu
  20299. * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
  20300. commands/loadenv.c
  20301. * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
  20302. * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
  20303. * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
  20304. * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
  20305. * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
  20306. * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
  20307. 2009-09-03 Magnus Granberg <zorry@ume.nu>
  20308. * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
  20309. include -fPIE in the default specs.
  20310. * configure.ac: Check if pie_possible is yes and add -fno-PIE
  20311. to TARGET_CFLAGS.
  20312. 2009-09-03 Felix Zielcke <fzielcke@z-51.de>
  20313. * INSTALL: Note that GNU Bison 2.3 or later is required.
  20314. 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
  20315. * kern/i386/pc/startup.S: Fix typo.
  20316. 2009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
  20317. * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
  20318. according to GCS.
  20319. 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
  20320. * docs/grub.texi (Naming convention): Describe one-based partition
  20321. numbering.
  20322. (Device syntax): Likewise.
  20323. (File name syntax): Likewise.
  20324. (Block list syntax): Likewise.
  20325. (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
  20326. menu.lst.
  20327. (File name syntax): Likewise.
  20328. (Command-line and menu entry commands): Document acpi, blocklist,
  20329. crc, export, insmod, keystatus, ls, set, and unset commands.
  20330. 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
  20331. * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
  20332. to avoid implying that only one of --shift, --ctrl, or --alt may be
  20333. used.
  20334. 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
  20335. * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
  20336. rather than comparing against S_IFREG, which will almost never work.
  20337. 2009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
  20338. * commands/loadenv.c (check_blocklists): Fix off-by-one error.
  20339. (write_blocklists): Likewise.
  20340. 2009-09-01 Colin Watson <cjwatson@ubuntu.com>
  20341. * script/lua/grub_lua.h (fputs): Supply a format string as the first
  20342. argument to grub_printf.
  20343. 2009-09-01 Felix Zielcke <fzielcke@z-51.de>
  20344. * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
  20345. non GNU test.
  20346. 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
  20347. * kern/file.c (grub_file_read): Spelling fix
  20348. 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
  20349. * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
  20350. loading of headers in some cases.
  20351. 2009-08-30 Robert Millan <rmh.grub@aybabtu.com>
  20352. * configure.ac: Bump version to 1.97~beta1.
  20353. * docs/version.texi: Likewise.
  20354. 2009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
  20355. * include/grub/i386/xnu.h: Add license header.
  20356. include grub/err.h explicitly.
  20357. 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
  20358. * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
  20359. to `ufs' in the vfs.root.mountfrom kernel parameter.
  20360. 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
  20361. * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
  20362. [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
  20363. value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
  20364. [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
  20365. `ARRAY_SIZE' macro.
  20366. 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
  20367. * kern/file.c (grub_file_read): Check offset.
  20368. * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
  20369. * fs/jfs.c (grub_jfs_read_file): Likewise.
  20370. * fs/ntfs.c (grub_ntfs_read): Likewise.
  20371. * fs/reiserfs.c (grub_reiserfs_read): Likewise.
  20372. * fs/minix.c (grub_minix_read_file): Correct offset check.
  20373. * fs/ufs.c (grub_ufs_read_file): Likewise.
  20374. 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
  20375. * term/i386/pc/console.c (bios_data_area): Cast
  20376. GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
  20377. 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
  20378. 1-bit optimised blitters.
  20379. * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
  20380. prototype.
  20381. (grub_video_fbblit_replace_24bit_1bit): Likewise.
  20382. (grub_video_fbblit_replace_16bit_1bit): Likewise.
  20383. (grub_video_fbblit_replace_8bit_1bit): Likewise.
  20384. (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
  20385. (grub_video_fbblit_blend_XXX888_1bit): Likewise.
  20386. (grub_video_fbblit_blend_XXX565_1bit): Likewise.
  20387. * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
  20388. function.
  20389. (grub_video_fbblit_replace_24bit_1bit): Likewise.
  20390. (grub_video_fbblit_replace_16bit_1bit): Likewise.
  20391. (grub_video_fbblit_replace_8bit_1bit): Likewise.
  20392. (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
  20393. (grub_video_fbblit_blend_XXX888_1bit): Likewise.
  20394. (grub_video_fbblit_blend_XXX565_1bit): Likewise.
  20395. * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
  20396. when possible.
  20397. * video/video.c (grub_video_get_blit_format): Return
  20398. GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
  20399. 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
  20400. * normal/cmdline.c (grub_cmdline_get): Supply a format string as
  20401. the first argument to grub_printf.
  20402. 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
  20403. 2009-08-28 Robert Millan <rmh.grub@aybabtu.com>
  20404. Add `getkeystatus' terminal method. Add a new `keystatus' command
  20405. to query it.
  20406. * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
  20407. GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
  20408. modifier key bitmasks.
  20409. (struct grub_term_input): Add `getkeystatus' member.
  20410. (grub_getkeystatus): Add prototype.
  20411. * kern/term.c (grub_getkeystatus): New function.
  20412. * include/grub/i386/pc/memory.h
  20413. (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
  20414. (struct grub_machine_bios_data_area): Define necessary parts of BIOS
  20415. Data Area layout.
  20416. * term/i386/pc/console.c (grub_console_getkeystatus): New function.
  20417. (grub_console_term_input): Set `getkeystatus' member.
  20418. * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
  20419. constants.
  20420. (grub_usb_keyboard_getreport): Likewise.
  20421. (grub_usb_keyboard_checkkey): Likewise.
  20422. (grub_usb_keyboard_getkeystatus): New function.
  20423. (grub_usb_keyboard_term): Set `getkeystatus' member.
  20424. * commands/keystatus.c: New file.
  20425. * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
  20426. (keystatus_mod_SOURCES): New variable.
  20427. (keystatus_mod_CFLAGS): Likewise.
  20428. (keystatus_mod_LDFLAGS): Likewise.
  20429. * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
  20430. commands/keystatus.c.
  20431. * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
  20432. * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
  20433. * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
  20434. * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
  20435. * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
  20436. * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
  20437. 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
  20438. Split befs.mod and afs.mod into *_be.mod and *.mod
  20439. * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
  20440. (grub_fstest_SOURCES): Likewise.
  20441. (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
  20442. (afs_be_mod_SOURCES): New variable.
  20443. (afs_be_mod_CFLAGS): Likewise.
  20444. (afs_be_mod_LDFLAGS): Likewise.
  20445. (befs_be_mod_SOURCES): Likewise.
  20446. (befs_be_mod_CFLAGS): Likewise.
  20447. (befs_be_mod_LDFLAGS): Likewise.
  20448. * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
  20449. * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
  20450. * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
  20451. * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
  20452. (grub_emu_SOURCES): Likewise.
  20453. * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
  20454. * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
  20455. * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
  20456. * fs/afs_be.c: New file.
  20457. * fs/befs_be.c: New file.
  20458. * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
  20459. (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
  20460. (U16): Replaced with ...
  20461. (grub_afs_to_cpu16): ...this. All users updated.
  20462. (U32): Replaced with ...
  20463. (grub_afs_to_cpu32): ...this. All users updated.
  20464. (U64): Replaced with ...
  20465. (grub_afs_to_cpu64): ...this. All users updated.
  20466. (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
  20467. (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
  20468. (grub_afs_validate_sblock): Check only one endianness.
  20469. (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
  20470. (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
  20471. (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
  20472. (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
  20473. (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
  20474. (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
  20475. (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
  20476. (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
  20477. 2009-08-26 Bean <bean123ch@gmail.com>
  20478. * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
  20479. 64-bit number.
  20480. (GRUB_XFS_FSB_TO_BLOCK): Likewise.
  20481. (grub_xfs_inode_block): Change return type to grub_uint64_t.
  20482. (grub_xfs_read_inode): Change type of block to grub_uint64_t.
  20483. 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
  20484. NetBSD memory map support.
  20485. * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
  20486. (grub_netbsd_btinfo_mmap_header): New structure.
  20487. (grub_netbsd_btinfo_mmap_entry): Likewise.
  20488. * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
  20489. 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
  20490. Enable bsd.mod on coreboot.
  20491. * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
  20492. (bsd_mod_SOURCES): New variable.
  20493. (bsd_mod_CFLAGS): Likewise.
  20494. (bsd_mod_LDFLAGS): Likewise.
  20495. (bsd_mod_ASFLAGS): Likewise.
  20496. * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
  20497. (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
  20498. 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
  20499. Cleanup NetBSD root support.
  20500. * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
  20501. grub_bsd_get_device.
  20502. Fix typo.
  20503. 2009-08-25 Felix Zielcke <fzielcke@z-51.de>
  20504. * util/grub.d/00_header.in: Move check for the video backend of
  20505. gfxterm from here ...
  20506. * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
  20507. a suitable video backend.
  20508. 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
  20509. Fix breakage in grub-setup.
  20510. * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
  20511. "msdos_partition_map".
  20512. 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
  20513. Fix breakage in normal/auth.c.
  20514. * normal/auth.c (grub_iswordseparator): New function.
  20515. 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
  20516. Authentication support.
  20517. * commands/password.c: New file.
  20518. * conf/common.rmk (pkglib_MODULES): Add password.mod.
  20519. (password_mod_SOURCES): New variable.
  20520. (password_mod_CFLAGS): Likewise.
  20521. (password_mod_LDFLAGS): Likewise.
  20522. (normal_mod_SOURCES): Add normal/auth.c.
  20523. * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
  20524. normal/auth.c.
  20525. * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
  20526. * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
  20527. * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
  20528. * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
  20529. * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
  20530. * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
  20531. * include/grub/auth.h: New file.
  20532. * include/grub/err.h (grub_err_t): New enum value
  20533. GRUB_ERR_ACCESS_DENIED.
  20534. * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
  20535. 'users'.
  20536. * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
  20537. * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
  20538. users updated.
  20539. * normal/auth.c: New file.
  20540. * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
  20541. (grub_cmdline_run): Don't allow to go to command line without
  20542. authentication.
  20543. * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
  20544. * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
  20545. menuentry without superuser rights.
  20546. * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
  20547. user isn't a superuser.
  20548. 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
  20549. Save space by inlining misc.c functions.
  20550. * kern/misc.c (grub_iswordseparator): Made static.
  20551. * kern/misc.c (grub_strcat): Moved from here ...
  20552. * include/grub/misc.h (grub_strcat): ... here. Inlined.
  20553. * kern/misc.c (grub_strncat): Moved from here ...
  20554. * include/grub/misc.h (grub_strncat): ... here. Inlined.
  20555. * kern/misc.c (grub_strcasecmp): Moved from here ...
  20556. * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
  20557. * kern/misc.c (grub_strncasecmp): Moved from here ...
  20558. * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
  20559. * kern/misc.c (grub_isalpha): Moved from here ...
  20560. * include/grub/misc.h (grub_isalpha): ... here. Inlined.
  20561. * kern/misc.c (grub_isdigit): Moved from here ...
  20562. * include/grub/misc.h (grub_isdigit): ... here. Inlined.
  20563. * kern/misc.c (grub_isgraph): Moved from here ...
  20564. * include/grub/misc.h (grub_isgraph): ... here. Inlined.
  20565. * kern/misc.c (grub_tolower): Moved from here ...
  20566. * include/grub/misc.h (grub_tolower): ... here. Inlined.
  20567. 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
  20568. * script/sh/function.c (grub_script_function_find): Cut error message
  20569. not to flood terminal.
  20570. * script/sh/lexer.c (grub_script_yylex): Remove command line length
  20571. limit.
  20572. * script/sh/script.c (grub_script_arg_add): Duplicate string.
  20573. 2009-08-24 Colin Watson <cjwatson@ubuntu.com>
  20574. * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
  20575. `report' grub_uint8_t *.
  20576. (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
  20577. Use a 50-millisecond timeout rather than just repeating
  20578. grub_usb_keyboard_getreport 50 times.
  20579. (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
  20580. 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
  20581. Rename *_partition_map to part_*
  20582. * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
  20583. * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
  20584. * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
  20585. * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
  20586. All users updated.
  20587. * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
  20588. All users updated.
  20589. * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
  20590. * util/grub-probe.c (probe_partmap): Don't transform partition name
  20591. to get module name.
  20592. 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
  20593. Fix OpenBSD and NetBSD support.
  20594. * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
  20595. memory address conflict.
  20596. (OPENBSD_MMAP_ACPI): New definition.
  20597. (OPENBSD_MMAP_NVS): Likewise.
  20598. * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
  20599. and OPENBSD_MMAP_NVS.
  20600. Add memory map terminator
  20601. Explicit cast when calling grub_unix_real_boot.
  20602. (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
  20603. 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
  20604. Let user specify NetBSD root device.
  20605. * loader/i386/bsd.c (netbsd_root): New variable.
  20606. (netbsd_opts): New option 'root'.
  20607. (NETBSD_ROOT_ARG): New macro.
  20608. (grub_netbsd_boot): Use 'netbsd_root'.
  20609. (grub_bsd_unload): Free 'netbsd_root'.
  20610. (grub_cmd_netbsd): Fill 'netbsd_root'.
  20611. 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
  20612. Support for 64-bit NetBSD.
  20613. * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
  20614. point when booting non-FreeBSD.
  20615. 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
  20616. Support --no-smp and --no-acpi for NetBSD.
  20617. * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
  20618. (NETBSD_AB_NOACPI): Likewise.
  20619. * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
  20620. (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
  20621. 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
  20622. * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
  20623. errors.
  20624. (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
  20625. errors. Call grub_error when needed.
  20626. 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
  20627. * commands/search.c (search_fs): Try searching without autoload first.
  20628. * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
  20629. filesystem module explicitly for faster booting.
  20630. 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
  20631. * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
  20632. 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
  20633. * util/grub.d/30_os-prober.in: Disable os-prober if
  20634. `GRUB_DISABLE_OS_PROBER' was set to true.
  20635. 2009-08-23 Robert Millan <rmh.grub@aybabtu.com>
  20636. * partmap/pc.c: Rename to ...
  20637. * partmap/msdos.c: ... this. Update all users.
  20638. (grub_pc_partition_map): Rename to ...
  20639. (grub_msdos_partition_map): ... this. Update all users.
  20640. * parttool/pcpart.c: Rename to ...
  20641. * parttool/msdospart.c: ... this. Update all users.
  20642. * include/grub/pc_partition.h: Rename to ...
  20643. * include/grub/msdos_partition.h: ... this. Update all users.
  20644. (grub_pc_partition_bsd_entry): Rename to ...
  20645. (grub_msdos_partition_bsd_entry): ... this. Update all users.
  20646. (grub_pc_partition_disk_label): Rename to ...
  20647. (grub_msdos_partition_disk_label): ... this. Update all users.
  20648. (grub_pc_partition_entry): Rename to ...
  20649. (grub_msdos_partition_entry): ... this. Update all users.
  20650. (grub_pc_partition_mbr): Rename to ...
  20651. (grub_msdos_partition_mbr): ... this. Update all users.
  20652. (grub_pc_partition): Rename to ...
  20653. (grub_msdos_partition): ... this. Update all users.
  20654. (grub_pc_partition_is_empty): Rename to ...
  20655. (grub_msdos_partition_is_empty): ... this. Update all users.
  20656. (grub_pc_partition_is_extended): Rename to ...
  20657. (grub_msdos_partition_is_extended): ... this. Update all users.
  20658. (grub_pc_partition_is_bsd): Rename to ...
  20659. (grub_msdos_partition_is_bsd): ... this. Update all users.
  20660. * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
  20661. (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
  20662. (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
  20663. (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
  20664. (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
  20665. (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
  20666. (gpt_mod_LDFLAGS): Rename to ...
  20667. (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
  20668. (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
  20669. (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
  20670. (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
  20671. (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
  20672. (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
  20673. (part_gpt_mod_LDFLAGS): ... this.
  20674. (pkglib_MODULES): Prefix partition modules with `part_'. Rename
  20675. `pcpart.mod' to `msdospart.mod'.
  20676. (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
  20677. to ...
  20678. (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
  20679. (msdospart_mod_LDFLAGS): ... this.
  20680. 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
  20681. * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
  20682. (openbsd_opts): Likewise.
  20683. (netbsd_opts): Likewise.
  20684. (freebsd_flags): Added 0 terminator.
  20685. (openbsd_flags): Likewise.
  20686. (netbsd_flags): Likewise.
  20687. (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
  20688. (grub_cmd_freebsd): Transformed into extended command.
  20689. (grub_cmd_openbsd): Likewise.
  20690. (grub_cmd_netbsd): Likewise.
  20691. (cmd_freebsd): Changed type to grub_extcmd_t.
  20692. (cmd_openbsd): Likewise.
  20693. (cmd_netbsd): Likewise.
  20694. (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
  20695. grub_cmd_openbsd as extended commands.
  20696. (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
  20697. cmd_netbsd and cmd_openbsd
  20698. 2009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
  20699. * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
  20700. 2009-08-21 Pavel Roskin <proski@gnu.org>
  20701. * Makefile.in (install-local): When checking if a file is in the
  20702. build directory, use "test -e" to detect symlinks.
  20703. * Makefile.in (install-local): Remove all files in
  20704. $(DESTDIR)$(pkglibdir) before installing new files there.
  20705. 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
  20706. * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
  20707. grub-mkelfimage.
  20708. 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
  20709. * util/grub-mkconfig.in: Don't use gfxterm by default if not
  20710. explicitly specified by the user.
  20711. 2009-08-18 Pavel Roskin <proski@gnu.org>
  20712. * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
  20713. grub_uint8_t pointer for data.
  20714. * include/grub/fbutil.h (struct grub_video_fbblit_info):
  20715. Likewise.
  20716. * video/fb/fbutil.c: Remove unnecessary casts.
  20717. 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
  20718. VBE cleanup.
  20719. * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
  20720. (grub_vbe_set_video_mode): Save active mode info
  20721. only after setting the mode.
  20722. (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
  20723. second argument.
  20724. 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
  20725. Rename variables for clarity.
  20726. * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
  20727. (active_vbe_mode_info): ... this. All users updated.
  20728. (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
  20729. All users updated.
  20730. (initial_mode): Rename to ...
  20731. (initial_vbe_mode): ... this. All users updated.
  20732. (mode_in_use): Rename to ..
  20733. (vbe_mode_in_use): ... this. All users updated.
  20734. (mode_list): Rename to ..
  20735. (vbe_mode_list): ... this. All users updated.
  20736. (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
  20737. 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
  20738. (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
  20739. 'mode_list_size' to 'vbe_mode_list_size'.
  20740. (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
  20741. 'best_mode_info' to 'best_vbe_mode_info' and
  20742. 'best_mode' to 'best_vbe_mode'
  20743. 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
  20744. Remove duplicate grub_video_fb_get_video_ptr.
  20745. * include/grub/fbutil.h (get_data_ptr): Rename to ...
  20746. (grub_video_fb_get_video_ptr): ... this.
  20747. * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
  20748. * video/fb/fbutil.c: Add comment about addressing.
  20749. (get_data_ptr): Rename to ...
  20750. (grub_video_fb_get_video_ptr): ... this. All users updated.
  20751. * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
  20752. 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
  20753. * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
  20754. grub_dprintf() that was just added.
  20755. 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
  20756. * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
  20757. (DEFAULT_VIDEO_MODE): Remove macros.
  20758. (grub_linux_boot): Remove assumption that Linux has FB support,
  20759. and use "text" as default video mode.
  20760. 2009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
  20761. * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
  20762. grub_dprintf.
  20763. * fs/fat.c (grub_fat_read_data): Likewise.
  20764. 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
  20765. * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
  20766. payload.
  20767. (grub_module): Likewise.
  20768. 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
  20769. * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
  20770. mbi->cmdline but free playground.
  20771. 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
  20772. Handle group offset on UFS1.
  20773. * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
  20774. (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
  20775. 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
  20776. Split ufs.mod into ufs1.mod and ufs2.mod.
  20777. * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
  20778. (grub_fstest_SOURCES): Likewise.
  20779. (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
  20780. (ufs_mod_SOURCES): Remove.
  20781. (ufs_mod_CFLAGS): Likewise.
  20782. (ufs_mod_LDFLAGS): Likewise.
  20783. (ufs1_mod_SOURCES): New variable.
  20784. (ufs1_mod_CFLAGS): Likewise.
  20785. (ufs1_mod_LDFLAGS): Likewise.
  20786. (ufs2_mod_SOURCES): New variable.
  20787. (ufs2_mod_CFLAGS): Likewise.
  20788. (ufs2_mod_LDFLAGS): Likewise.
  20789. * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
  20790. * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
  20791. Likewise.
  20792. (grub_emu_SOURCES): Likewise.
  20793. * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
  20794. * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
  20795. (grub_setup_SOURCES): Likewise.
  20796. * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
  20797. * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
  20798. (grub_setup_SOURCES): Likewise.
  20799. * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
  20800. Likewise.
  20801. * fs/ufs2.c: New file.
  20802. * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
  20803. 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
  20804. Framebuffer split.
  20805. * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
  20806. subsystem at the end.
  20807. * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
  20808. (video_fb_mod_SOURCES): New variable.
  20809. (video_fb_mod_CFLAGS): Likewise.
  20810. (video_fb_mod_LDFLAGS): Likewise.
  20811. * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
  20812. video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
  20813. * video/i386/pc/vbeblit.c: Moved from here ...
  20814. * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
  20815. * video/i386/pc/vbefill.c: Moved from here ...
  20816. * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
  20817. * video/i386/pc/vbeutil.c: Moved from here ...
  20818. * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
  20819. * include/grub/i386/pc/vbeblit.h: Moved from here ...
  20820. * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
  20821. * include/grub/i386/pc/vbefill.h: Moved from here ...
  20822. * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
  20823. * include/grub/i386/pc/vbeutil.h: Moved from here ...
  20824. * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
  20825. * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
  20826. * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
  20827. * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
  20828. (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
  20829. (grub_video_adapter): Added 'get_info_and_fini'.
  20830. (grub_video_get_info_and_fini): New prototype.
  20831. (grub_video_set_mode): make modestring const char *.
  20832. * loader/i386/linux.c (grub_linux_setup_video): Use
  20833. grub_video_get_info_and_fini.
  20834. (grub_linux_boot): Move modesetting just before booting.
  20835. * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
  20836. grub_video_get_info_and_fini.
  20837. * video/i386/pc/vbe.c: Moved framebuffer part ...
  20838. * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
  20839. * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
  20840. grub_video_fbstd_colors and grub_video_fb_set_palette.
  20841. (grub_video_vbe_init): Clear 'framebuffer' variable and use
  20842. grub_video_fb_init.
  20843. (grub_video_vbe_fini): Use grub_video_fb_fini.
  20844. (grub_video_vbe_setup): Use framebuffer.render_target instead of
  20845. render_target and use grub_video_fb_set_active_render_target and
  20846. grub_video_fb_set_palette.
  20847. (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
  20848. (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
  20849. (grub_video_vbe_adapter): Use framebuffer.
  20850. * video/video.c (grub_video_get_info_and_fini): New function.
  20851. (grub_video_set_mode): Make modestring const char *.
  20852. (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
  20853. values are already initialised.
  20854. 2009-08-14 Pavel Roskin <proski@gnu.org>
  20855. * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
  20856. ABS and APPLE_CC.
  20857. * boot/i386/pc/diskboot.S: Likewise.
  20858. * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
  20859. sectors allow compilation on MacOSX.
  20860. * conf/i386-pc.rmk: Enable unconditional compilation of
  20861. lnxboot.img.
  20862. 2009-08-13 Colin Watson <cjwatson@ubuntu.com>
  20863. * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
  20864. * util/grub.d/00_header.in: Enter interruptible sleep if
  20865. GRUB_HIDDEN_TIMEOUT is set.
  20866. 2009-08-13 Yves Blusseau <blusseau@zetam.org>
  20867. * include/grub/symbol.h: Add the LOCAL macro.
  20868. * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
  20869. starting with "L_".
  20870. 2009-08-13 Pavel Roskin <proski@gnu.org>
  20871. * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
  20872. any modern compilers we support.
  20873. * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
  20874. Use local labels starting with "L_" so that Apple assembler
  20875. knows they are local.
  20876. 2009-08-10 Robert Millan <rmh.grub@aybabtu.com>
  20877. * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
  20878. (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
  20879. (bsd_kernel_types): ... this enum.
  20880. * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
  20881. (grub_cmd_freebsd_module_elf): Abort with "You need to load the
  20882. kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
  20883. (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
  20884. (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
  20885. (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
  20886. messages.
  20887. 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
  20888. * util/grub-dumpdevtree: Moved from here ...
  20889. * util/i386/efi/grub-dumpdevtree: ... to here.
  20890. (hexify): New function. Converts a string to its hex version.
  20891. Generate hex versions of "efi" and "device-properties" by calling
  20892. hexify() on the ASCII strings rather than by hardcoding numbers.
  20893. 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
  20894. * fs/jfs.c: Update copyright year.
  20895. 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
  20896. * util/grub.d/00_header.in: Fix a comment.
  20897. * util/grub.d/10_linux.in: Likewise.
  20898. * util/grub.d/10_windows.in: Likewise.
  20899. * util/grub.d/10_hurd.in: Likewise.
  20900. 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
  20901. * util/grub-mkconfig.in: Allow the user to specify the used font
  20902. with GRUB_FONT.
  20903. 2009-08-08 Pavel Roskin <proski@gnu.org>
  20904. * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
  20905. available, xfs.mod needs it now.
  20906. * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
  20907. the "g" modifier in sed when the intention is to strip something
  20908. once. This fixes comparison of kernels with multiple dashes.
  20909. * util/grub-mkconfig.in: Define datarootdir, datadir may depend
  20910. on it. Add missing space before closing bracket. Fix
  20911. misleading formatting.
  20912. 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
  20913. * docs/grub.texi: Major overhaul. Remove all sections that are
  20914. specific to GRUB Legacy, or mostly composed of Legacy-specific
  20915. information.
  20916. 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
  20917. * docs/version.texi: New file. Provides version information for
  20918. grub.texi.
  20919. 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
  20920. * docs/grub.texi: Update CVS information to SVN.
  20921. Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
  20922. 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
  20923. * util/grub-mkconfig.in: Remove a wrong `fi'.
  20924. 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
  20925. * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
  20926. (grub_jfs_uuid): New function.
  20927. (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
  20928. 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
  20929. * util/grub-mkconfig_lib.in (font_path): Move the functionality
  20930. of it to ...
  20931. * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
  20932. unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
  20933. 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
  20934. * util/grub.d/10_linux.in (test_numeric): Moved from here ...
  20935. * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
  20936. Update all users.
  20937. * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
  20938. not just "vmlinu[zx]".
  20939. Moved from here ...
  20940. * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
  20941. all users.
  20942. * util/grub.d/10_linux.in (find_latest): Moved from here ...
  20943. * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
  20944. all users.
  20945. 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
  20946. * util/grub.d/10_freebsd.in: Use an absolute device path for
  20947. `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
  20948. 2009-08-06 Felix Zielcke <fzielcke@z-51.de>
  20949. * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
  20950. handling of multiple abstraction modules.
  20951. 2009-08-04 Robert Millan <rmh.grub@aybabtu.com>
  20952. Fix a bug resulting in black screen when loading Linux using a
  20953. packed video mode.
  20954. * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
  20955. function.
  20956. * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
  20957. (grub_vbe_bios_getset_dac_palette_width): New function.
  20958. (grub_vbe_bios_get_dac_palette_width)
  20959. (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
  20960. grub_vbe_bios_getset_dac_palette_width()).
  20961. * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
  20962. check for return status.
  20963. (grub_vbe_get_video_mode_info): When getting information for a packed
  20964. mode (<= 8 bpp), obtain DAC palette width using
  20965. grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
  20966. {red,green,blue}_mark_size.
  20967. 2009-08-04 Felix Zielcke <fzielcke@z-51.de>
  20968. * commands/search.c (options): Fix help output to match actual code.
  20969. 2009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
  20970. * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
  20971. of homegrown code.
  20972. 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
  20973. * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
  20974. on XFS or ReiserFS.
  20975. 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
  20976. Support Apple partition map with sector size different from 512 bytes.
  20977. * partmap/apple.c (grub_apple_header): New field 'blocksize'.
  20978. (apple_partition_map_iterate): Respect 'aheader.blocksize'
  20979. and 'apart.partmap_size'.
  20980. 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
  20981. 2009-08-01 Robert Millan <rmh.grub@aybabtu.com>
  20982. Fix cpuid command.
  20983. * commands/i386/cpuid.c (options): New variable.
  20984. (grub_cmd_cpuid): Return real error.
  20985. (GRUB_MOD_INIT(cpuid)): Declare options.
  20986. 2009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
  20987. * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
  20988. valid.
  20989. 2009-07-31 Bean <bean123ch@gmail.com>
  20990. * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
  20991. log2_inode.
  20992. (grub_fshelp_node): Move inode field to the end.
  20993. (grub_xfs_data): Remove inode field.
  20994. (grub_xfs_inode_block): Calculate inode size using sblock.
  20995. (grub_xfs_inode_offset): Likewise.
  20996. (grub_xfs_read_inode): Calculate inode size using sblock.
  20997. (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
  20998. (grub_xfs_iterate_dir): Calculate inode size using sblock.
  20999. (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
  21000. to match inode size.
  21001. (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
  21002. not accessible when data is null.
  21003. (grub_xfs_open): Likewise.
  21004. 2009-07-31 Bean <bean123ch@gmail.com>
  21005. * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
  21006. Don't change pv->disk if it's already set.
  21007. * disk/raid.c (grub_raid_scan_device): Merge this function into ...
  21008. (grub_raid_register): ... here.
  21009. (grub_raid_rescan): Removed.
  21010. * include/grub/raid.h (grub_raid_rescan): Removed.
  21011. * util/grub-fstest.c: Remove include file <grub/raid.h>.
  21012. (fstest): Replace grub_raid_rescan with module fini function followed
  21013. by init function.
  21014. * util/grub-probe.c: Add include file <grub/raid.h>.
  21015. (probe_raid_level): New function.
  21016. (probe): Detect abstraction by walking the disk device, support two
  21017. level of abstraction (LVM on RAID) when detecting partition map.
  21018. 2009-07-31 Pavel Roskin <proski@gnu.org>
  21019. * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
  21020. to grub_zalloc(), it was erroneous.
  21021. Reported by Bean <bean123ch@gmail.com>
  21022. 2009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
  21023. * util/i386/pc/grub-setup.c (setup): Check that no partition is in
  21024. embedding zone, not only the first one.
  21025. 2009-07-29 Joe Auricchio <jauricchio@gmail.com>
  21026. * term/gfxterm.c (clear_char): New function.
  21027. (grub_virtual_screen_setup): Use clear_char.
  21028. (scroll_up): Likewise.
  21029. (grub_virtual_screen_cls): Likewise.
  21030. 2009-07-29 Felix Zielcke <fzielcke@z-51.de>
  21031. * util/deviceiter.c (get_acceleraid_disk_name): New static
  21032. function.
  21033. (grub_util_iterate_devices): Handle Accelraid devices.
  21034. * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
  21035. 2009-07-28 Robert Millan <rmh.grub@aybabtu.com>
  21036. * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
  21037. separator for the suggested gfxpayload string (';' collides with the
  21038. parser and needs escaping).
  21039. 2009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
  21040. * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
  21041. Clear direction flag before jumping to OS.
  21042. (grub_multiboot2_real_boot): Likewise.
  21043. 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
  21044. * util/i386/pc/grub-install: Fix parsing of --disk-module
  21045. option.
  21046. 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
  21047. * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
  21048. when embedding.
  21049. 2009-07-26 Felix Zielcke <fzielcke@z-51.de>
  21050. * util/grub-mkconfig.in (package_version): New variable.
  21051. Use it do display the version.
  21052. 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
  21053. * kern/file.c (grub_file_open): Revert to previous check with
  21054. grub_errno.
  21055. 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
  21056. * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
  21057. from help line. It's out of sync with code.
  21058. 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
  21059. * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
  21060. entries on failed boot.
  21061. 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
  21062. * kern/file.c (grub_file_open): Fix an error check.
  21063. 2009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
  21064. * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
  21065. partition map couldn't be identified.
  21066. 2009-07-23 Pavel Roskin <proski@gnu.org>
  21067. * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
  21068. instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
  21069. case of little endian words becomes just an optimization.
  21070. Respect const modifier.
  21071. (md5_final): Use code that doesn't depend on endianness.
  21072. * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
  21073. to avoid loss of upper bits if align is unsigned and shorter
  21074. than addr.
  21075. 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
  21076. UUID support for UFS
  21077. * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
  21078. (grub_ufs_uuid): New function.
  21079. (grub_ufs_fs): add .uuid
  21080. 2009-07-21 Pavel Roskin <proski@gnu.org>
  21081. * kern/dl.c (grub_dl_check_header): Make static.
  21082. 2009-07-21 Felix Zielcke <fzielcke@z-51.de>
  21083. * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
  21084. add drivemap for Vista. It breaks Windows 7.
  21085. 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
  21086. * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
  21087. 128 bytes
  21088. 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
  21089. Add BFS support
  21090. * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
  21091. (grub_fstest_SOURCES): Likewise.
  21092. (pkglib_MODULES): Add befs.mod.
  21093. (befs_mod_SOURCES): New variable.
  21094. (befs_mod_CFLAGS): Likewise.
  21095. (befs_mod_LDFLAGS): Likewise.
  21096. * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
  21097. * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
  21098. * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
  21099. * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
  21100. (grub_setup_SOURCES): Likewise.
  21101. * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
  21102. * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
  21103. (grub_setup_SOURCES): Likewise.
  21104. * fs/befs.c: New file.
  21105. * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
  21106. (GRUB_AFS_SBLOCK_SECTOR): Likewise.
  21107. (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
  21108. (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
  21109. (B_KEY_INDEX_ALIGN): New declaration.
  21110. (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
  21111. (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
  21112. (grub_afs_btree) [MODE_BFS]: New conditional declaration.
  21113. (grub_afs_sblock) [MODE_BFS]: Remove link_count.
  21114. (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
  21115. (grub_afs_mount) [MODE_BFS]: Likewise.
  21116. (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
  21117. (grub_afs_fs): Use GRUB_AFS_FSNAME
  21118. (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
  21119. (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
  21120. (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
  21121. (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
  21122. 2009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
  21123. * util/getroot.c (find_root_device): Add support for MacOSX.
  21124. * util/hostdisk.c: Likewise.
  21125. 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
  21126. * font/font.c (find_glyph): Check whether a font is present to avoid
  21127. segmentation fault.
  21128. 2009-07-20 Joe Auricchio <jauricchio@gmail.com>
  21129. * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
  21130. 2009-07-20 Pavel Roskin <proski@gnu.org>
  21131. * configure.ac: Trim excessively wordy excuses.
  21132. 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
  21133. Add symlink, mtime and label support to AtheFS.
  21134. * fs/afs.c (grub_afs_sblock): Declare `name' as char.
  21135. (grub_afs_iterate_dir): Handle symlinks.
  21136. (grub_afs_open): Use grub_afs_read_symlink.
  21137. (grub_afs_dir): Likewise.
  21138. Pass mtime.
  21139. (grub_afs_label): New function.
  21140. (grub_afs_fs): Add grub_afs_label.
  21141. (grub_afs_read_symlink): New function.
  21142. 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
  21143. Fix AtheFS support.
  21144. * fs/afs.c: Fix comments style.
  21145. (grub_afs_blockrun): Declare as packed.
  21146. (grub_afs_datastream): Likewise.
  21147. (grub_afs_bnode): Likewise.
  21148. (grub_afs_btree): Likewise.
  21149. (grub_afs_sblock): Likewise.
  21150. Declare `name' as char.
  21151. (grub_afs_inode): Declare as packed.
  21152. Change void *vnode to grub_uint32_t unused.
  21153. (grub_afs_iterate_dir): Check that key_size is positive.
  21154. (grub_afs_mount): Don't read superblock twice.
  21155. (grub_afs_dir): Don't free node in case of error,
  21156. grub_fshelp_find_file already handles this.
  21157. (grub_afs_open): Likewise.
  21158. 2009-07-19 Pavel Roskin <proski@gnu.org>
  21159. * Makefile.in: Remove LIBLZO and enable_lzo.
  21160. * conf/i386-pc.rmk: Remove lzo support.
  21161. * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
  21162. * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
  21163. support.
  21164. * kern/i386/pc/lzo1x.S: Remove.
  21165. * kern/i386/pc/startup.S: Remove lzo support.
  21166. * util/i386/pc/grub-mkimage.c: Likewise.
  21167. 2009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
  21168. * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
  21169. * fs/xfs.c (grub_xfs_dir): Likewise.
  21170. * fs/afs.c (grub_afs_dir): Likewise.
  21171. * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
  21172. (grub_iso9660_open): Likewise.
  21173. * fs/jfs.c (grub_jfs_open): Likewise.
  21174. * fs/ext2.c (grub_ext2_dir): Likewise.
  21175. * include/grub/macho.h (grub_macho_fat_arch): Likewise.
  21176. * script/sh/lexer.c (grub_script_yylex): Likewise.
  21177. 2009-07-16 Pavel Roskin <proski@gnu.org>
  21178. * configure.ac: Never add "-c" to CFLAGS.
  21179. * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
  21180. * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
  21181. grub_cv_cc_efiemu should be used.
  21182. * configure.ac: Typo fixes.
  21183. * kern/mm.c (grub_zalloc): New function.
  21184. (grub_debug_zalloc): Likewise.
  21185. * include/grub/mm.h: Declare grub_zalloc() and
  21186. grub_debug_zalloc().
  21187. * util/misc.c (grub_zalloc): New function.
  21188. * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
  21189. instead of grub_malloc(), remove unneeded initializations.
  21190. * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
  21191. * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
  21192. * commands/parttool.c (grub_cmd_parttool): Likewise.
  21193. * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
  21194. * disk/raid5_recover.c (grub_raid5_recover): Likewise.
  21195. * disk/raid6_recover.c (grub_raid6_recover): Likewise.
  21196. * disk/usbms.c (grub_usbms_finddevs): Likewise.
  21197. * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
  21198. * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
  21199. (grub_cmd_efiemu_pnvram): Likewise.
  21200. * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
  21201. * fs/iso9660.c (grub_iso9660_mount): Likewise.
  21202. (grub_iso9660_iterate_dir): Likewise.
  21203. * fs/jfs.c (grub_jfs_opendir): Likewise.
  21204. * fs/ntfs.c (list_file): Likewise.
  21205. (grub_ntfs_mount): Likewise.
  21206. * kern/disk.c (grub_disk_open): Likewise.
  21207. * kern/dl.c (grub_dl_load_core): Likewise.
  21208. * kern/elf.c (grub_elf_file): Likewise.
  21209. * kern/env.c (grub_env_context_open): Likewise.
  21210. (grub_env_set): Likewise.
  21211. (grub_env_set_data_slot): Likewise.
  21212. * kern/file.c (grub_file_open): Likewise.
  21213. * kern/fs.c (grub_fs_blocklist_open): Likewise.
  21214. * loader/i386/multiboot.c (grub_module): Likewise.
  21215. * loader/xnu.c (grub_xnu_create_key): Likewise.
  21216. (grub_xnu_create_value): Likewise.
  21217. * normal/main.c (grub_normal_add_menu_entry): Likewise.
  21218. (read_config_file): Likewise.
  21219. * normal/menu_entry.c (make_screen): Likewise.
  21220. * partmap/sun.c (sun_partition_map_iterate): Likewise.
  21221. * script/sh/lexer.c (grub_script_lexer_init): Likewise.
  21222. * script/sh/script.c (grub_script_parse): Likewise.
  21223. * video/bitmap.c (grub_video_bitmap_create): Likewise.
  21224. * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
  21225. * video/readers/png.c (grub_png_output_byte): Likewise.
  21226. (grub_video_reader_png): Likewise.
  21227. 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
  21228. Enable all targets that can be built by default
  21229. * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
  21230. grub-mkfont and grub-fstest if they can be built
  21231. 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
  21232. Fix hang and segmentation fault in grub-emu-usb
  21233. * disk/scsi.c (grub_scsi_open): return err and not grub_errno
  21234. * util/usb.c (grub_libusb_devices): likewise
  21235. (grub_libusb_init): rename to ...
  21236. (GRUB_MOD_INIT (libusb)):...this
  21237. (grub_libusb_fini): rename to ..
  21238. (GRUB_MOD_FINI (libusb)):...this
  21239. * disk/usbms.c (grub_usbms_transfer): fix retry logic
  21240. * include/grub/disk.h (grub_raid_init): removed, it's useless
  21241. (grub_raid_fini): likewise
  21242. (grub_lvm_init): likewise
  21243. (grub_lvm_fini): likewise
  21244. * util/grub-emu.c (main): don't call grub_libusb_init, it's done
  21245. by grub_init_all
  21246. 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
  21247. Fix libusb
  21248. * Makefile.in (LIBUSB): new macro
  21249. * genmk.rb (Utility/print_tail): new method
  21250. (Utility/rule): use intermediary variable #{prefix}_OBJECTS
  21251. (top level): call util.print_tail at the end.
  21252. 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
  21253. Make FreeBSD accept zpool.cache
  21254. * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
  21255. type is /boot/zfs/zpool.cache
  21256. 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
  21257. Fix 64-bit efiemu
  21258. * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
  21259. correct wrong typedef
  21260. * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
  21261. 2009-07-15 Pavel Roskin <proski@gnu.org>
  21262. * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
  21263. * kern/disk.c (struct grub_disk_cache): Likewise.
  21264. * commands/probe.c (options): Typo fix.
  21265. * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
  21266. Increase to 0x5a to accommodate FAT32. Adjust other offsets
  21267. accordingly.
  21268. Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
  21269. * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
  21270. the end of "Error" to make the message more readable.
  21271. * boot/i386/pc/boot.S (kernel_segment): Remove.
  21272. (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
  21273. for destination.
  21274. * boot/i386/pc/boot.S (boot_version): Remove.
  21275. * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
  21276. Remove.
  21277. * include/grub/i386/pc/boot.h: Sort all offsets.
  21278. (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
  21279. (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
  21280. * boot/i386/pc/boot.S: Assert location of every offset listed in
  21281. include/grub/i386/pc/boot.h.
  21282. 2009-07-13 Pavel Roskin <proski@gnu.org>
  21283. * include/grub/i386/coreboot/machine.h: Rename
  21284. GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
  21285. * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
  21286. multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
  21287. * kern/dl.c: Force native word size to suppress warnings when
  21288. compiling grub-emu.
  21289. * kern/device.c (grub_device_iterate): Change struct part_ent to
  21290. hold the name, not a pointer to it. Use one grub_malloc() per
  21291. partition, not two. Free partition_name if grub_malloc() fails.
  21292. Set ents to NULL only before grub_partition_iterate() is called.
  21293. 2009-07-11 Bean <bean123ch@gmail.com>
  21294. * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
  21295. childname.
  21296. 2009-07-10 Bean <bean123ch@gmail.com>
  21297. 2009-07-10 Robert Millan <rmh.grub@aybabtu.com>
  21298. * kern/ieee1275/openfw.c (grub_children_iterate)
  21299. (grub_devalias_iterate): Fix size evaluation for property or path
  21300. strings, which was broken since r2132.
  21301. 2009-07-07 Pavel Roskin <proski@gnu.org>
  21302. * commands/search.c (search_file): Merge into ...
  21303. (search_fs): ... this. Accept search type as argument.
  21304. (grub_cmd_search): Pass search type to search_fs().
  21305. * include/grub/util/console.h: New file.
  21306. * util/console.c: Use it instead of grub/machine/console.h.
  21307. * util/grub-emu.c: Likewise.
  21308. * lib/arg.c (find_long_option): Remove.
  21309. (find_long): Add `len' argument, make `s' const char *.
  21310. (grub_arg_parse): Parse long options in place, not in a
  21311. temporary buffer.
  21312. 2009-07-06 Pavel Roskin <proski@gnu.org>
  21313. * commands/search.c (search_fs): Fix potential NULL pointer
  21314. dereference.
  21315. * commands/search.c (search_fs): Replace QUID macro with quid_fn
  21316. function pointer.
  21317. 2009-07-06 Daniel Mierswa <impulze@impulze.org>
  21318. * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
  21319. comparison.
  21320. 2009-07-05 Pavel Roskin <proski@gnu.org>
  21321. * include/grub/i386/linux.h (struct linux_kernel_params):
  21322. Restore padding3, it's still needed.
  21323. * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
  21324. FreeBSD.
  21325. * util/osdetect.lua: Likewise.
  21326. 2009-07-05 Bean <bean123ch@gmail.com>
  21327. * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
  21328. * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
  21329. (grub_lua_getenv): Likewise.
  21330. (grub_lua_setenv): Likewise.
  21331. (save_errno): New function.
  21332. (push_result): Likewise.
  21333. (grub_lua_enum_device): Likewise.
  21334. (grub_lua_enum_file): Likewise.
  21335. (grub_lua_file_open): Likewise.
  21336. (grub_lua_file_close): Likewise.
  21337. (grub_lua_file_seek): Likewise.
  21338. (grub_lua_file_read): Likewise.
  21339. (grub_lua_file_getline): Likewise.
  21340. (grub_lua_file_getsize): Likewise.
  21341. (grub_lua_file_getpos): Likewise.
  21342. (grub_lua_file_eof): Likewise.
  21343. (grub_lua_file_exist): Likewise.
  21344. (grub_lua_add_menu): Likewise.
  21345. * script/lua/grub_lua.h (isupper): New inline function.
  21346. (islower): Likewise.
  21347. (ispunct): Likewise.
  21348. (isxdigit): Likewise.
  21349. (strcspn): Change to normal function.
  21350. (strpbkr): New function declaration.
  21351. (memchr): Likewise.
  21352. * script/lua/grub_main.c (scan_str): New function.
  21353. (strcspn): Likewise.
  21354. (strpbrk): Likewise.
  21355. (memchr): Likewise.
  21356. * script/lua/linit.c (lualibs): Enable the string library.
  21357. * util/osdetect.lua: New file.
  21358. 2009-07-04 Robert Millan <rmh.grub@aybabtu.com>
  21359. * include/grub/i386/linux.h (struct linux_kernel_params): Add
  21360. `capabilities' member.
  21361. 2009-07-02 Pavel Roskin <proski@gnu.org>
  21362. * genparttoollist.sh: Add missing newline at the end.
  21363. 2009-07-01 Pavel Roskin <proski@gnu.org>
  21364. * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
  21365. * util/hostdisk.c (open_device): Remove `const' from
  21366. `sysctl_size', as sysctlbyname() can change it (in this case it
  21367. doesn't actually happen).
  21368. * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
  21369. using signed long int constants.
  21370. * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
  21371. constant to avoid a warning on FreeBSD.
  21372. * util/hostdisk.c (device_is_wholedisk): Compile only on systems
  21373. where it's needed.
  21374. * Makefile.in: Install include/grub/machine symlink.
  21375. * Makefile.in: When installing symlinks, use "cp -fR", which
  21376. works on FreeBSD and MacOSX.
  21377. From Yves Blusseau <cl7m42e02@sneakemail.com>
  21378. * kern/dl.c (grub_dl_resolve_symbol): Make static.
  21379. * include/grub/dl.h: Remove grub_dl_resolve_symbol().
  21380. * util/misc.c: Move grub_reboot() and grub_halt() ...
  21381. * util/grub-emu.c: ... here. Make main_env static.
  21382. * include/grub/util/misc.h: Remove main_env.
  21383. * kern/mm.c: Use correct format to print size_t.
  21384. * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
  21385. * kern/i386/dl.c: Use ELF symbols without "32" or "64".
  21386. * kern/powerpc/dl.c: Likewise.
  21387. * kern/sparc64/dl.c: Likewise.
  21388. * kern/x86_64/dl.c: Likewise.
  21389. 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
  21390. Fix grub-emu build on sparc64-ieee1275.
  21391. * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
  21392. * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
  21393. 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
  21394. * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
  21395. (grub_reboot, grub_halt): New functions.
  21396. * util/i386/pc/misc.c: Delete. Update all users.
  21397. * util/sparc64/ieee1275/misc.c: Likewise.
  21398. * util/powerpc/ieee1275/misc.c: Likewise.
  21399. 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
  21400. * conf/i386.rmk (setjmp_mod_SOURCES)
  21401. (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
  21402. * conf/common.rmk (setjmp_mod_SOURCES)
  21403. (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
  21404. to use $(target_cpu).
  21405. * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
  21406. (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
  21407. * conf/powerpc-ieee1275.rmk: Likewise.
  21408. * conf/sparc64-ieee1275.rmk: Likewise.
  21409. * conf/i386-pc.rmk (kernel_img_SOURCES): Use
  21410. $(target_cpu) for kern/$(target_cpu)/dl.c.
  21411. * conf/i386-efi.rmk: Likewise.
  21412. * conf/i386-ieee1275.rmk: Likewise.
  21413. * conf/x86_64-efi.rmk: Likewise.
  21414. * conf/i386-coreboot.rmk: Likewise.
  21415. * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
  21416. $(target_cpu) for kern/$(target_cpu)/dl.c and for
  21417. kern/$(target_cpu)/cache.S.
  21418. * conf/sparc64-ieee1275.rmk: Likewise.
  21419. 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
  21420. * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
  21421. type to `grub_uint8_t', and adjust `padding9' accordingly.
  21422. 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
  21423. * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
  21424. * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
  21425. assembly in final jump, using register constraints.
  21426. (grub_linux_boot): For text mode, initialize `have_vga' using
  21427. GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
  21428. Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
  21429. right before the final jump.
  21430. Set `video_mode' to 0x3.
  21431. Document initialization of `video_page', `video_mode' and
  21432. `video_ega_bx'.
  21433. 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
  21434. * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
  21435. * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
  21436. and set GRUB_LINUX_FLAG_QUIET appropriately.
  21437. 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
  21438. Fix build on Debian / sparc.
  21439. * configure.ac: Recognize `sparc' target_cpu (as sparc64).
  21440. 2009-06-28 Pavel Roskin <proski@gnu.org>
  21441. * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
  21442. fix a warning.
  21443. * util/grub.d/10_linux.in: Match SUSE style initrd names.
  21444. 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
  21445. * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
  21446. `err'.
  21447. 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
  21448. Revert r2338.
  21449. * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
  21450. file can't be opened. grub_file_open() is already supposed to set
  21451. grub_errno / grub_errmsg appropriately.
  21452. * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
  21453. 2009-06-27 Pavel Roskin <proski@gnu.org>
  21454. 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
  21455. * include/grub/dl.h: Include grub/elf.h.
  21456. (struct grub_dl): Add symtab field.
  21457. * kern/dl.c [GRUB_MACHINE_QEMU]: Define
  21458. GRUB_MODULES_MACHINE_READONLY.
  21459. (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
  21460. of the header for read-only modules.
  21461. (grub_dl_unload): Free mod->symtab for read-only modules.
  21462. * kern/i386/dl.c: Use mod->symtab.
  21463. * kern/powerpc/dl.c: Likewise.
  21464. * kern/sparc64/dl.c: Likewise.
  21465. * kern/x86_64/dl.c: Likewise.
  21466. * conf/i386-qemu.rmk: New file.
  21467. * kern/i386/qemu/startup.S: Likewise.
  21468. * kern/i386/qemu/mmap.c: Likewise.
  21469. * boot/i386/qemu/boot.S: Likewise.
  21470. * include/grub/i386/qemu/time.h: Likewise.
  21471. * include/grub/i386/qemu/serial.h: Likewise.
  21472. * include/grub/i386/qemu/kernel.h: Likewise.
  21473. * include/grub/i386/qemu/console.h: Likewise.
  21474. * include/grub/i386/qemu/boot.h: Likewise.
  21475. * include/grub/i386/qemu/init.h: Likewise.
  21476. * include/grub/i386/qemu/machine.h: Likewise.
  21477. * include/grub/i386/qemu/loader.h: Likewise.
  21478. * include/grub/i386/qemu/memory.h: Likewise.
  21479. * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
  21480. (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
  21481. [qemu] (pkglib_IMAGES): Add `boot.img'.
  21482. [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
  21483. [qemu] (boot_img_FORMAT): New variables.
  21484. [qemu] (bin_UTILITIES): Add `grub-mkimage'.
  21485. [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
  21486. [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
  21487. [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
  21488. [qemu] (kernel_img_FORMAT): New variables.
  21489. * configure.ac: Recognise `i386-qemu'.
  21490. * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
  21491. (for no compression).
  21492. [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
  21493. a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
  21494. `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
  21495. `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
  21496. ifdefs).
  21497. 2009-06-27 Pavel Roskin <proski@gnu.org>
  21498. * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
  21499. read.
  21500. * efiemu/prepare32.c: Likewise.
  21501. * efiemu/prepare64.c: Likewise.
  21502. 2009-06-26 Pavel Roskin <proski@gnu.org>
  21503. * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
  21504. * include/grub/elf.h: Define symbols without "32" or "64" based
  21505. on GRUB_TARGET_WORDSIZE.
  21506. * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
  21507. * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
  21508. ELF definitions.
  21509. * efiemu/loadcore64.c: Likewise.
  21510. * loader/i386/bsd32.c: Likewise.
  21511. * loader/i386/bsd64.c: Likewise.
  21512. * kern/dl.c: Remove own ELF definitions.
  21513. * util/i386/efi/grub-mkimage.c: Likewise.
  21514. 2009-06-23 Robert Millan <rmh.grub@aybabtu.com>
  21515. * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
  21516. segment 0x0 unconditionally, because the reference generated by
  21517. GAS is an absolute address.
  21518. 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
  21519. * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
  21520. [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
  21521. 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
  21522. * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
  21523. indexes. Check for -f explicitly.
  21524. (search_file): Improve error message.
  21525. (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
  21526. 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
  21527. * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
  21528. (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
  21529. 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
  21530. * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
  21531. * conf/i386-ieee1275.rmk: Likewise.
  21532. * conf/i386-coreboot.rmk: Likewise.
  21533. * kern/i386/pc/startup.S (grub_stop): Remove function.
  21534. * kern/i386/ieee1275/startup.S: Likewise.
  21535. * kern/i386/coreboot/startup.S: Likewise.
  21536. * kern/i386/misc.S (grub_stop): New function.
  21537. 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
  21538. * kern/i386/pc/startup.S (real_to_prot): Move from here ...
  21539. * kern/i386/realmode.S (real_to_prot): ... to here.
  21540. 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
  21541. * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
  21542. with `kernel.img'.
  21543. (kernel_elf_SOURCES): Rename to ...
  21544. (kernel_img_SOURCES): ... this.
  21545. (kernel_elf_HEADERS): Rename to ...
  21546. (kernel_img_HEADERS): ... this. Update all users.
  21547. (kernel_elf_ASFLAGS): Rename to ...
  21548. (kernel_img_ASFLAGS): ... this.
  21549. (kernel_elf_CFLAGS): Rename to ...
  21550. (kernel_img_CFLAGS): ... this.
  21551. (kernel_elf_LDFLAGS): Rename to ...
  21552. (kernel_img_LDFLAGS): ... this.
  21553. * conf/i386-coreboot.rmk: Likewise.
  21554. * conf/powerpc-ieee1275.rmk: Likewise.
  21555. * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
  21556. with "kernel.img".
  21557. 2009-06-21 Pavel Roskin <proski@gnu.org>
  21558. * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
  21559. to match nested functions.
  21560. * loader/sparc64/ieee1275/linux.c: Likewise.
  21561. * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
  21562. 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
  21563. * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
  21564. all i386 platforms.
  21565. 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
  21566. Fix asm file handling on ELF, and remove workarounds.
  21567. * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
  21568. and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
  21569. * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
  21570. * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
  21571. 2009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
  21572. Load BSD ELF modules
  21573. * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
  21574. and loader/i386/bsd64.c
  21575. * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
  21576. (FREEBSD_MODTYPE_ELF_MODULE): New definition
  21577. (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
  21578. (grub_freebsd_load_elfmodule32): New declaration
  21579. (grub_freebsd_load_elfmoduleobj64): Likewise
  21580. (grub_freebsd_load_elf_meta32): Likewise
  21581. (grub_freebsd_load_elf_meta64): Likewise
  21582. (grub_freebsd_add_meta): Likewise
  21583. (grub_freebsd_add_meta_module): Likewise
  21584. * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
  21585. (grub_freebsd_add_meta_module): Likewise and move module-specific
  21586. parts to grub_cmd_freebsd and grub_cmd_freebsd_module
  21587. (grub_cmd_freebsd): Add elf-kernel specific parts
  21588. based on grub_freebsd_add_meta_module
  21589. (grub_cmd_freebsd_module): Add type parsing moved from
  21590. grub_freebsd_add_meta_module
  21591. (grub_cmd_freebsd_module_elf): New function
  21592. (cmd_freebsd_module_elf): New variable
  21593. (GRUB_MOD_INIT): Register freebsd_module_elf
  21594. * loader/i386/bsd32.c: New file
  21595. * loader/i386/bsd64.c: Likewise
  21596. * loader/i386/bsdXX.c: Likewise
  21597. * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
  21598. (grub_elf64_load): Likewise
  21599. * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
  21600. All users updated
  21601. (grub_elf64_load_hook_t): Likewise
  21602. 2009-06-21 Colin Watson <cjwatson@ubuntu.com>
  21603. * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
  21604. variable.
  21605. * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
  21606. don't write a menu entry for recovery mode.
  21607. 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
  21608. * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
  21609. after it's no longer needed.
  21610. 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
  21611. * include/grub/i386/loader.h (grub_linux_prot_size)
  21612. (grub_linux_tmp_addr, grub_linux_real_addr)
  21613. (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
  21614. GRUB_MACHINE_PCBIOS.
  21615. * util/i386/pc/grub-mkimage.c (compress_kernel): Move
  21616. common grub_util_info() call to ...
  21617. (generate_image): ... here.
  21618. Fix use of uninitialized memory, comparison of signed with
  21619. unsigned integers and memory leak.
  21620. Remove bogus module address message.
  21621. 2009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
  21622. * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
  21623. grub_raid_register
  21624. * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
  21625. 2009-06-19 Pavel Roskin <proski@gnu.org>
  21626. * configure.ac: Remove stray AC_MSG_CHECKING.
  21627. 2009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
  21628. * disk/scsi.c (grub_scsi_open): use continue instead of big if
  21629. 2009-06-18 Pavel Roskin <proski@gnu.org>
  21630. * conf/common.rmk: Add fs_file.mod.
  21631. * disk/fs_file.c: New file.
  21632. * include/grub/disk.h (enum grub_disk_dev_id): Add
  21633. GRUB_DISK_DEVICE_FILE_ID.
  21634. 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
  21635. Fix build with Apple's toolchain. Part 2
  21636. * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
  21637. a fake start
  21638. 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
  21639. Fix build with Apple's toolchain. Part 1
  21640. * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
  21641. for long calls
  21642. * configure.ac: remove a leftover AC_MSG_RESULT
  21643. (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
  21644. Apple's toolchain
  21645. 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
  21646. Fix warnings
  21647. * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
  21648. (decomp_block): initialize ch
  21649. use grub_memcpy instead of memcpy
  21650. 2009-06-17 Pavel Roskin <proski@gnu.org>
  21651. * include/grub/i386/coreboot/console.h: Don't use the i386-pc
  21652. version, use declarations needed to use vga_text as the startup
  21653. console.
  21654. * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
  21655. term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
  21656. the kernel.
  21657. * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
  21658. and grub_at_keyboard_fini(), it's done on module load and
  21659. unload.
  21660. 2009-06-17 Felix Zielcke <fzielcke@z-51.de>
  21661. * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
  21662. file can't be found.
  21663. * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
  21664. 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
  21665. Fix newline handling
  21666. * include/grub/script_sh.h (grub_lexer_param): new field was_newline
  21667. * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
  21668. (grub_script_yylex): don't segfault on unterminated script
  21669. newline terminates command and variable
  21670. 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
  21671. avoid double grub_adjust_range call. Bug reported by David Simner
  21672. * kern/disk.c (grub_disk_write): change to raw disk access before
  21673. calling disk_read
  21674. 2009-06-17 Colin Watson <cjwatson@ubuntu.com>
  21675. * util/elf/grub-mkimage.c (usage): Prefix each option line with two
  21676. spaces, for the benefit of help2man.
  21677. * util/i386/efi/grub-mkimage.c (usage): Likewise.
  21678. 2009-06-16 Pavel Roskin <proski@gnu.org>
  21679. * kern/i386/halt.c: Include grub/machine/init.h.
  21680. * kern/i386/reboot.c: Include grub/cpu/reboot.h.
  21681. 2009-06-16 Felix Zielcke <fzielcke@z-51.de>
  21682. * util/grub.d/30_os-prober.in: Use ${root} in the generated
  21683. drivemap menuentry.
  21684. 2009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
  21685. * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
  21686. `echo' command.
  21687. 2009-06-16 Pavel Roskin <proski@gnu.org>
  21688. * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
  21689. boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
  21690. save %dx, we only need %dl and we never change it.
  21691. * boot/i386/pc/cdboot.S: Don't set the root drive.
  21692. * boot/i386/pc/pxeboot.S: Likewise.
  21693. * include/grub/i386/pc/boot.h: Remove
  21694. GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
  21695. GRUB_BOOT_MACHINE_DRIVE_CHECK.
  21696. * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
  21697. * kern/i386/pc/init.c (make_install_device): Remove references
  21698. to grub_root_drive.
  21699. * kern/i386/pc/startup.S: Likewise.
  21700. * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
  21701. 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
  21702. xnu_uuid command
  21703. * commands/xnu_uuid.c: new file
  21704. * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
  21705. (xnu_uuid_mod_SOURCES): new variable
  21706. (xnu_uuid_mod_CFLAGS): likewise
  21707. (xnu_uuid_mod_LDFLAGS): likewise
  21708. * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
  21709. * conf/i386-ieee1275.rmk: likewise
  21710. * conf/i386-pc.rmk: likewise
  21711. * conf/powerpc-ieee1275.rmk: likewise
  21712. * conf/sparc64-ieee1275.rmk: likewise
  21713. * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
  21714. 2009-06-16 Pavel Roskin <proski@gnu.org>
  21715. * configure.ac: Avoid '==' in test command, it's not portable.
  21716. 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
  21717. Probe command
  21718. * commands/probe.c: new file
  21719. * conf/common.rmk (pkglib_MODULES): add probe.mod
  21720. (probe_mod_SOURCES): new variable
  21721. (probe_mod_CFLAGS): likewise
  21722. (probe_mod_LDFLAGS): likewise
  21723. * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
  21724. * conf/i386-ieee1275.rmk: likewise
  21725. * conf/i386-pc.rmk: likewise
  21726. * conf/powerpc-ieee1275.rmk: likewise
  21727. * conf/sparc64-ieee1275.rmk: likewise
  21728. 2009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
  21729. Fix handling of string like \"hello\" and "a
  21730. b"
  21731. * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
  21732. (grub_script_yylex): fix parsing of quoting, escaping and newline
  21733. 2009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
  21734. * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
  21735. handling
  21736. 2009-06-13 Jun Inoue <jun.lambda@gmail.com>
  21737. * util/grub-mkconfig.in: Fix parsing of --output option.
  21738. 2009-06-12 Pavel Roskin <proski@gnu.org>
  21739. * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
  21740. genmk.rb don't need to be generated or installed.
  21741. 2009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
  21742. * commands/i386/pc/drivemap_int13h.S: add more comments
  21743. 2009-06-11 Pavel Roskin <proski@gnu.org>
  21744. * Makefile.in (uninstall): Uninstall manuals.
  21745. * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
  21746. PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
  21747. and update-grub_lib in two places.
  21748. * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
  21749. * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
  21750. a compiler warning.
  21751. * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
  21752. `entry_lo' to fix variable shadowing.
  21753. 2009-06-11 Christian Franke <franke@computer.org>
  21754. * kern/misc.c (__enable_execute_stack): Add missing return type
  21755. to prevent gcc warning.
  21756. 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
  21757. * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
  21758. 2009-06-11 Pavel Roskin <proski@gnu.org>
  21759. * Makefile.in: Don't rely on any scripts being executable.
  21760. Always use $(SHELL) to run shell scripts.
  21761. * configure.ac: Always define ___main if using -nostdlib. This
  21762. fixes tests on Cygwin.
  21763. 2009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
  21764. UDF fix
  21765. * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
  21766. is in bytes and not in blocks
  21767. 2009-06-11 Pavel Roskin <proski@gnu.org>
  21768. * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
  21769. warning.
  21770. 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
  21771. * util/grub.d/30_os-prober.in: Fix a comment. Source
  21772. ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
  21773. to set the root device. Place drivemap command in the generated
  21774. chain entry.
  21775. 2009-06-11 Pavel Roskin <proski@gnu.org>
  21776. * configure.ac: Remove host_m32. Issues with 64-bit utilities
  21777. have long been resolved.
  21778. 2009-06-11 Colin Watson <cjwatson@ubuntu.com>
  21779. * util/grub.d/10_linux.in: Capitalise "Linux".
  21780. * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
  21781. 2009-06-11 Pavel Roskin <proski@gnu.org>
  21782. * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
  21783. fix a gcc warning and ensure that the function won't ever exit.
  21784. * kern/i386/ieee1275/init.c: Add missing prototype for
  21785. grub_stop_floppy().
  21786. * loader/ieee1275/multiboot2.c [__i386__]: Include
  21787. grub/cpu/multiboot.h.
  21788. * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
  21789. casts to short - they are not portable and cause warnings. Fix
  21790. use of uninitialized values in input_buf. Use ARRAY_SIZE.
  21791. 2009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
  21792. Drivemap fixes
  21793. * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
  21794. new function
  21795. (grub_get_root_biosnumber_saved): new variable
  21796. (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
  21797. (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
  21798. * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
  21799. %dx after the call if necessary
  21800. * conf/common.rmk (pkglib_MODULES): remove boot.mod
  21801. (boot_mod_SOURCES): remove
  21802. (boot_mod_CFLAGS): remove
  21803. (boot_mod_LDFLAGS): remove
  21804. * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
  21805. (boot_mod_SOURCES): new variable
  21806. (boot_mod_CFLAGS): likewise
  21807. (boot_mod_LDFLAGS): likewise
  21808. * conf/i386-efi.rmk: likewise
  21809. * conf/i386-ieee1275.rmk: likewise
  21810. * conf/i386-pc.rmk: likewise
  21811. * conf/powerpc-ieee1275.rmk: likewise
  21812. * conf/sparc64-ieee1275.rmk: likewise
  21813. * conf/x86_64-efi.rmk: likewise
  21814. * include/grub/i386/pc/biosnum.h: new file
  21815. * lib/i386/pc/biosnum.c: likewise
  21816. * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
  21817. * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
  21818. * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
  21819. 2009-06-10 Pavel Roskin <proski@gnu.org>
  21820. * io/gzio.c (test_header): Don't reuse one buffer for all data.
  21821. Use separate variables. Read only the file size at the end, but
  21822. not the checksum that we don't use.
  21823. * kern/file.c (grub_file_read): Use void pointer for the buffer.
  21824. Adjust all callers.
  21825. * kern/ieee1275/openfw.c: Remove libc includes.
  21826. * kern/ieee1275/cmain.c: Likewise.
  21827. * include/grub/ieee1275/ieee1275.h: Likewise.
  21828. * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
  21829. compiler warnings.
  21830. 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
  21831. * Makefile.in: Remove all trailing whitespace.
  21832. * conf/i386-pc.rmk: Likewise.
  21833. * conf/powerpc-ieee1275.rmk: Likewise.
  21834. * conf/sparc64-ieee1275.rmk: Likewise.
  21835. * docs/grub.texi: Likewise.
  21836. * docs/texinfo.tex: Likewise.
  21837. * disk/fs_uuid.c: Likewise.
  21838. * disk/lvm.c: Likewise.
  21839. * disk/scsi.c: Likewise.
  21840. * disk/ata.c: Likewise.
  21841. * disk/ieee1275/ofdisk.c: Likewise.
  21842. * disk/i386/pc/biosdisk.c: Likewise.
  21843. * disk/host.c: Likewise.
  21844. * disk/raid.c: Likewise.
  21845. * disk/efi/efidisk.c: Likewise.
  21846. * disk/usbms.c: Likewise.
  21847. * disk/memdisk.c: Likewise.
  21848. * disk/loopback.c: Likewise.
  21849. * kern/powerpc/dl.c: Likewise.
  21850. * kern/device.c: Likewise.
  21851. * kern/dl.c: Likewise.
  21852. * kern/sparc64/dl.c: Likewise.
  21853. * kern/ieee1275/ieee1275.c: Likewise.
  21854. * kern/term.c: Likewise.
  21855. * kern/fs.c: Likewise.
  21856. * kern/i386/dl.c: Likewise.
  21857. * kern/i386/pc/startup.S: Likewise.
  21858. * kern/i386/pc/init.c: Likewise.
  21859. * kern/i386/pc/mmap.c: Likewise.
  21860. * kern/i386/pc/lzo1x.S: Likewise.
  21861. * kern/i386/ieee1275/init.c: Likewise.
  21862. * kern/i386/realmode.S: Likewise.
  21863. * kern/i386/tsc.c: Likewise.
  21864. * kern/partition.c: Likewise.
  21865. * kern/corecmd.c: Likewise.
  21866. * kern/file.c: Likewise.
  21867. * kern/efi/efi.c: Likewise.
  21868. * kern/efi/init.c: Likewise.
  21869. * kern/efi/mm.c: Likewise.
  21870. * kern/main.c: Likewise.
  21871. * kern/err.c: Likewise.
  21872. * kern/env.c: Likewise.
  21873. * kern/disk.c: Likewise.
  21874. * kern/generic/millisleep.c: Likewise.
  21875. * kern/generic/rtc_get_time_ms.c: Likewise.
  21876. * kern/misc.c: Likewise.
  21877. * kern/parser.c: Likewise.
  21878. * genmk.rb: Likewise.
  21879. * configure.ac: Likewise.
  21880. * boot/i386/pc/diskboot.S: Likewise.
  21881. * boot/i386/pc/pxeboot.S: Likewise.
  21882. * boot/i386/pc/boot.S: Likewise.
  21883. * boot/i386/pc/lnxboot.S: Likewise.
  21884. * boot/i386/pc/cdboot.S: Likewise.
  21885. * parttool/pcpart.c: Likewise.
  21886. * video/readers/tga.c: Likewise.
  21887. * video/video.c: Likewise.
  21888. * video/bitmap.c: Likewise.
  21889. * lib/envblk.c: Likewise.
  21890. * lib/i386/setjmp.S: Likewise.
  21891. * fs/xfs.c: Likewise.
  21892. * fs/afs.c: Likewise.
  21893. * fs/fat.c: Likewise.
  21894. * fs/ntfs.c: Likewise.
  21895. * fs/udf.c: Likewise.
  21896. * fs/affs.c: Likewise.
  21897. * fs/iso9660.c: Likewise.
  21898. * fs/hfs.c: Likewise.
  21899. * fs/fshelp.c: Likewise.
  21900. * fs/ext2.c: Likewise.
  21901. * fs/jfs.c: Likewise.
  21902. * fs/reiserfs.c: Likewise.
  21903. * fs/hfsplus.c: Likewise.
  21904. * fs/minix.c: Likewise.
  21905. * fs/cpio.c: Likewise.
  21906. * fs/sfs.c: Likewise.
  21907. * fs/ufs.c: Likewise.
  21908. * efiemu/prepare.c: Likewise.
  21909. * efiemu/loadcore_common.c: Likewise.
  21910. * efiemu/runtime/efiemu.sh: Likewise.
  21911. * efiemu/runtime/efiemu.S: Likewise.
  21912. * efiemu/runtime/efiemu.c: Likewise.
  21913. * efiemu/pnvram.c: Likewise.
  21914. * efiemu/main.c: Likewise.
  21915. * efiemu/i386/pc/cfgtables.c: Likewise.
  21916. * efiemu/i386/loadcore64.c: Likewise.
  21917. * efiemu/i386/loadcore32.c: Likewise.
  21918. * efiemu/loadcore.c: Likewise.
  21919. * efiemu/symbols.c: Likewise.
  21920. * efiemu/mm.c: Likewise.
  21921. * include/grub/autoefi.h: Likewise.
  21922. * include/grub/datetime.h: Likewise.
  21923. * include/grub/term.h: Likewise.
  21924. * include/grub/hfs.h: Likewise.
  21925. * include/grub/lvm.h: Likewise.
  21926. * include/grub/i386/tsc.h: Likewise.
  21927. * include/grub/i386/linux.h: Likewise.
  21928. * include/grub/i386/xnu.h: Likewise.
  21929. * include/grub/i386/efiemu.h: Likewise.
  21930. * include/grub/i386/pc/biosdisk.h: Likewise.
  21931. * include/grub/i386/pc/memory.h: Likewise.
  21932. * include/grub/i386/pc/vbe.h: Likewise.
  21933. * include/grub/parttool.h: Likewise.
  21934. * include/grub/video.h: Likewise.
  21935. * include/grub/memory.h: Likewise.
  21936. * include/grub/fs.h: Likewise.
  21937. * include/grub/partition.h: Likewise.
  21938. * include/grub/xnu.h: Likewise.
  21939. * include/grub/efi/api.h: Likewise.
  21940. * include/grub/efi/pe32.h: Likewise.
  21941. * include/grub/efi/memory.h: Likewise.
  21942. * include/grub/multiboot.h: Likewise.
  21943. * include/grub/usbdesc.h: Likewise.
  21944. * include/grub/multiboot2.h: Likewise.
  21945. * include/grub/acpi.h: Likewise.
  21946. * include/grub/efiemu/efiemu.h: Likewise.
  21947. * include/grub/disk.h: Likewise.
  21948. * include/grub/ieee1275/ieee1275.h: Likewise.
  21949. * include/grub/net.h: Likewise.
  21950. * include/grub/machoload.h: Likewise.
  21951. * include/grub/macho.h: Likewise.
  21952. * include/multiboot.h: Likewise.
  21953. * genmoddep.awk: Likewise.
  21954. * normal/main.c: Likewise.
  21955. * normal/menu_entry.c: Likewise.
  21956. * normal/menu_viewer.c: Likewise.
  21957. * normal/completion.c: Likewise.
  21958. * normal/cmdline.c: Likewise.
  21959. * normal/misc.c: Likewise.
  21960. * normal/datetime.c: Likewise.
  21961. * bus/usb/usbtrans.c: Likewise.
  21962. * bus/usb/ohci.c: Likewise.
  21963. * bus/usb/uhci.c: Likewise.
  21964. * bus/usb/usb.c: Likewise.
  21965. * mmap/efi/mmap.c: Likewise.
  21966. * mmap/i386/pc/mmap_helper.S: Likewise.
  21967. * mmap/i386/pc/mmap.c: Likewise.
  21968. * mmap/i386/mmap.c: Likewise.
  21969. * mmap/i386/uppermem.c: Likewise.
  21970. * mmap/mmap.c: Likewise.
  21971. * commands/acpi.c: Likewise.
  21972. * commands/echo.c: Likewise.
  21973. * commands/blocklist.c: Likewise.
  21974. * commands/loadenv.c: Likewise.
  21975. * commands/usbtest.c: Likewise.
  21976. * commands/boot.c: Likewise.
  21977. * commands/parttool.c: Likewise.
  21978. * commands/search.c: Likewise.
  21979. * commands/cat.c: Likewise.
  21980. * commands/i386/pc/play.c: Likewise.
  21981. * commands/i386/pc/drivemap.c: Likewise.
  21982. * commands/i386/pc/vbeinfo.c: Likewise.
  21983. * commands/i386/pc/acpi.c: Likewise.
  21984. * commands/i386/pc/vbetest.c: Likewise.
  21985. * commands/ls.c: Likewise.
  21986. * commands/cmp.c: Likewise.
  21987. * commands/test.c: Likewise.
  21988. * commands/efi/acpi.c: Likewise.
  21989. * commands/gptsync.c: Likewise.
  21990. * commands/help.c: Likewise.
  21991. * partmap/amiga.c: Likewise.
  21992. * partmap/apple.c: Likewise.
  21993. * partmap/acorn.c: Likewise.
  21994. * partmap/pc.c: Likewise.
  21995. * partmap/sun.c: Likewise.
  21996. * partmap/gpt.c: Likewise.
  21997. * script/sh/lexer.c: Likewise.
  21998. * script/sh/function.c: Likewise.
  21999. * font/font.c: Likewise.
  22000. * font/font_cmd.c: Likewise.
  22001. * loader/powerpc/ieee1275/linux.c: Likewise.
  22002. * loader/efi/chainloader.c: Likewise.
  22003. * loader/multiboot_loader.c: Likewise.
  22004. * loader/macho.c: Likewise.
  22005. * loader/i386/multiboot.c: Likewise.
  22006. * loader/i386/linux.c: Likewise.
  22007. * loader/i386/pc/linux.c: Likewise.
  22008. * loader/i386/pc/multiboot2.c: Likewise.
  22009. * loader/i386/pc/chainloader.c: Likewise.
  22010. * loader/i386/pc/xnu.c: Likewise.
  22011. * loader/i386/bsd_trampoline.S: Likewise.
  22012. * loader/i386/efi/linux.c: Likewise.
  22013. * loader/i386/multiboot_elfxx.c: Likewise.
  22014. * loader/i386/bsd_helper.S: Likewise.
  22015. * loader/i386/bsd.c: Likewise.
  22016. * loader/i386/linux_trampoline.S: Likewise.
  22017. * loader/i386/xnu_helper.S: Likewise.
  22018. * loader/i386/xnu.c: Likewise.
  22019. * loader/i386/bsd_pagetable.c: Likewise.
  22020. * loader/i386/multiboot_helper.S: Likewise.
  22021. * loader/xnu.c: Likewise.
  22022. * loader/xnu_resume.c: Likewise.
  22023. * io/gzio.c: Likewise.
  22024. * term/efi/console.c: Likewise.
  22025. * term/terminfo.c: Likewise.
  22026. * term/ieee1275/ofconsole.c: Likewise.
  22027. * term/i386/pc/serial.c: Likewise.
  22028. * term/i386/pc/vesafb.c: Likewise.
  22029. * term/i386/pc/vga.c: Likewise.
  22030. * term/usb_keyboard.c: Likewise.
  22031. * term/gfxterm.c: Likewise.
  22032. * aclocal.m4: Likewise.
  22033. * util/lvm.c: Likewise.
  22034. * util/grub.d/30_os-prober.in: Likewise.
  22035. * util/grub.d/10_hurd.in: Likewise.
  22036. * util/console.c: Likewise.
  22037. * util/grub-macho2img.c: Likewise.
  22038. * util/grub-probe.c: Likewise.
  22039. * util/hostfs.c: Likewise.
  22040. * util/i386/pc/grub-mkimage.c: Likewise.
  22041. * util/i386/pc/grub-setup.c: Likewise.
  22042. * util/i386/efi/grub-mkimage.c: Likewise.
  22043. * util/grub-mkconfig.in: Likewise.
  22044. * util/raid.c: Likewise.
  22045. * util/resolve.c: Likewise.
  22046. * util/grub-mkdevicemap.c: Likewise.
  22047. * util/grub-emu.c: Likewise.
  22048. * util/getroot.c: Likewise.
  22049. * util/hostdisk.c: Likewise.
  22050. * util/usb.c: Likewise.
  22051. * util/grub-editenv.c: Likewise.
  22052. * util/misc.c: Likewise.
  22053. 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
  22054. * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
  22055. `genparttoollist.sh'.
  22056. (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
  22057. Add `*.sh' to the list find searches for and change `mdate.sh'
  22058. to `mdate-sh'.
  22059. 2009-06-10 Pavel Roskin <proski@gnu.org>
  22060. * include/grub/multiboot2.h: Provide compatibility defines for
  22061. multiboot2.h.
  22062. * include/multiboot2.h: Include stdint.h only if needed, using
  22063. angle brackets.
  22064. * loader/i386/pc/multiboot2.c: Include multiboot2.h after
  22065. grub/multiboot2.h.
  22066. * loader/ieee1275/multiboot2.c: Likewise.
  22067. * loader/multiboot2.c: Likewise.
  22068. * loader/multiboot_loader.c: Likewise.
  22069. * configure.ac: Use -nostdlib when probing for the target. It
  22070. should not be required to have libc for the target.
  22071. * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
  22072. they fail without libc headers for the target.
  22073. * include/grub/powerpc/libgcc.h: Use weak attribute for all
  22074. exports.
  22075. * include/grub/sparc64/libgcc.h: Likewise. Don't use
  22076. preprocessor conditionals.
  22077. * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
  22078. build system doesn't need to be aware of the tar.c internals.
  22079. 2009-06-09 Michel Hermier <michel.hermier@gmail.com>
  22080. * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
  22081. 2009-06-09 Robert Millan <rmh.grub@aybabtu.com>
  22082. * util/deviceiter.c (grub_util_iterate_devices): Increase number of
  22083. disk limit to 26 for IDE, Virtio, Xen and SCSI.
  22084. 2009-06-09 Felix Zielcke <fzielcke@z-51.de>
  22085. * util/i386/pc/grub-install.in: Change the error message if UUIDs
  22086. aren't available if ata.mod gets used.
  22087. 2009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
  22088. * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
  22089. initialising controller.
  22090. * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
  22091. 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
  22092. * util/i386/pc/grub-install.in: Add a parameter --disk-module
  22093. to choose between ata and biosdisk module on i386-pc.
  22094. 2009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
  22095. * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
  22096. Subclass and Programming Interface fields in terms of the 3 byte
  22097. Class Code register.
  22098. * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
  22099. * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
  22100. interface is OHCI. Add grub_dprintf for symmetry with
  22101. bus/usb/uhci.c.
  22102. * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
  22103. interface is UHCI. Add interf variable for programming
  22104. interface. Print interface with class/subclass.
  22105. * bus/usb/ohci.c: Set interf with correct field.
  22106. * bus/usb/uhci.c: Remove unneeded doubled lines.
  22107. * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
  22108. Remove whitespace inside comment.
  22109. 2009-06-08 Robert Millan <rmh.grub@aybabtu.com>
  22110. * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
  22111. as fallback an equivalent option without depth.
  22112. 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
  22113. Not fail if unable to retrieve C/H/S on LBA disks
  22114. * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
  22115. if unable to retrieve C/H/S on LBA disks
  22116. 2009-06-08 Pavel Roskin <proski@gnu.org>
  22117. * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
  22118. about aliasing.
  22119. 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
  22120. * Makefile.in (uninstall): Remove all $lib_DATA files.
  22121. 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
  22122. Bugfix: install on partitionless device
  22123. * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
  22124. is a whole disk
  22125. 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
  22126. * Makefile.in (uninstall): Remove all $include_DATA files.
  22127. 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
  22128. * commands/true.c: New file. Implement the true and false commands.
  22129. * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
  22130. (true_mod_SOURCES): New variable.
  22131. (true_mod_CFLAGS): Likewise.
  22132. (true_mod_LDFLAGS): Likewise.
  22133. 2009-06-05 Colin D Bennett <colin@gibibit.com>
  22134. Optimized font character lookup using binary search instead of linear
  22135. search. Fonts now are required to have the character index ordered by
  22136. code point.
  22137. * font/font.c (load_font_index): Verify that fonts have ordered
  22138. character indices.
  22139. (find_glyph): Use binary search instead of linear search to find a
  22140. character in a font.
  22141. 2009-06-05 Michael Scherer <misc@mandriva.org>
  22142. * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
  22143. uses case sensitive btree.
  22144. (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
  22145. only for case insensitive filesystems.
  22146. 2009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
  22147. * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
  22148. * conf/common.rmk (search_mod_CFLAGS): likewise
  22149. 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
  22150. * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
  22151. compensate a compiler bug
  22152. 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
  22153. * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
  22154. instead of '\b'
  22155. 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
  22156. Definitions for creating asm symbols with Apple's CC
  22157. * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
  22158. [APPLE_CC] (VARIABLE): likewise
  22159. 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
  22160. Disable lnxboot.img when compiled
  22161. with Apple's CC
  22162. * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
  22163. pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
  22164. * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
  22165. [! APPLE_CC] (CODE_LENG): skip
  22166. [! APPLE_CC] (setup_sects): likewise
  22167. [! APPLE_CC]: skip filling
  22168. 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
  22169. Address in trampolines based on 32-bit registers when compiled
  22170. with Apple's CC
  22171. * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
  22172. for addresses
  22173. * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
  22174. 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
  22175. Avoid aliases when compiling with Apple's CC for PCBIOS machine
  22176. * kern/misc.c [APPLE_CC] (memcpy): new function
  22177. [APPLE_CC] (memmove): likewise
  22178. [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
  22179. (memcpy): define alias conditionally on !APPLE_CC
  22180. (memset): likewise
  22181. (abort): likewise
  22182. * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
  22183. APPLE_CC are defined
  22184. * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
  22185. (grub_assert_fail): make prototype conditional
  22186. 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
  22187. Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
  22188. * conf/common.rmk (bin_UTILITIES): add (on false on condition)
  22189. grub-macho2img
  22190. (CLEANFILES): add grub-macho2img
  22191. (grub_macho2img_SOURCES): new variable
  22192. * kern/i386/pc/startup.S (bss_start): new variable
  22193. (bss_end): likewise
  22194. * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
  22195. * util/grub-macho2img.c: new file
  22196. 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
  22197. Use objconv when compiling with Apple's CC
  22198. * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
  22199. (efiemu64.o): likewise
  22200. (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
  22201. when compiling with Apple's CC
  22202. (efiemu64_s.o): likewise
  22203. * configure.ac: check for objconv when compiling with Apple's CC
  22204. * genmk.rb: use objconv for modules when compiled with Apple's CC
  22205. 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
  22206. Define segment as well as section when compiling with
  22207. Apple's CC
  22208. * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
  22209. (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
  22210. (efiemu_convert_pointer): likewise
  22211. (efiemu_set_virtual_address_map): likewise
  22212. (efiemu_convert_pointer): likewise
  22213. (efiemu_getcrc32): likewise
  22214. (init_crc32_table): likewise
  22215. (reflect): likewise
  22216. * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
  22217. (GRUB_MOD_DEP): likewise
  22218. 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
  22219. Allow a compilation without -mcmodel=large
  22220. * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
  22221. when compiled without -mcmodel=large
  22222. (filter_memory_map): remove memory post 4 GiB when compiled
  22223. without -mcmodel=large
  22224. * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
  22225. TARGET_CFLAGS when -mcmodel=large isn't supported
  22226. 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
  22227. Remove nested functions in efiemu core
  22228. * efiemu/runtime/efiemu.c (reflect): make static instead of nested
  22229. 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
  22230. Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
  22231. * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
  22232. temporary storage
  22233. * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
  22234. using Apple's CC
  22235. (grub_cpu_is_tsc_supported): likewise
  22236. * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
  22237. 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
  22238. Absolute addressing through constant with Apple's cc
  22239. * kern/i386/pc/startup.S: Define necessary constants
  22240. and address through it when using ABS with Apple's CC
  22241. * boot/i386/pc/diskboot.S: likewise
  22242. * boot/i386/pc/boot.S: likewise
  22243. * boot/i386/pc/lnxboot.S: likewise
  22244. * boot/i386/pc/cdboot.S: likewise
  22245. * mmap/i386/pc/mmap_helper.S: likewise
  22246. * commands/i386/pc/drivemap_int13h.S: likewise
  22247. 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
  22248. Check if compiler is apple cc
  22249. * Makefile.in (ASFLAGS): new variable
  22250. (TARGET_ASFLAGS): likewise
  22251. (TARGET_MODULE_FORMAT): likewise
  22252. (TARGET_APPLE_CC): likewise
  22253. (OBJCONV): likewise
  22254. (TARGET_IMG_CFLAGS): likewise
  22255. (TARGET_CPPFLAGS): add includedir
  22256. * configure.ac: call grub_apple_cc and grub_apple_target_cc
  22257. (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
  22258. Check for linker script only if compiler isn't Apple's CC
  22259. (TARGET_MODULE_FORMAT): set
  22260. (TARGET_APPLE_CC): likewise
  22261. (TARGET_ASFLAGS): likewise
  22262. (ASFLAGS): likewise
  22263. Check for objcopy only if compiler isn't Apple's CC
  22264. Check for BSS symbol only if compiler isn't Apple's CC
  22265. * genmk.rb: adapt nm options if we use Apple's utils
  22266. * aclocal.m4 (grub_apple_cc): new test
  22267. (grub_apple_target_cc): likewise
  22268. 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
  22269. Simplify sed expressions and improve awk
  22270. * Makefile.in (install-local): simplify sed expression
  22271. * gencmdlist.sh: likewise
  22272. * genmoddep.awk: avoid adding module as a dependency of itself
  22273. 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
  22274. Add missing start symbols
  22275. * boot/i386/pc/boot.S: add start
  22276. * boot/i386/pc/pxeboot.S: likewise
  22277. 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
  22278. Fix wrong assumptions with grub-mkimage on EFI
  22279. * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
  22280. (relocate_addresses): consider both r_addend and value at offset
  22281. (make_mods_section): zerofill modinfo and header
  22282. (convert_elf): write prefix here
  22283. 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
  22284. Use .asciz instead of .string
  22285. * i386/pc/diskboot.S: use .asciz instead of .string
  22286. * i386/pc/boot.S: likewise
  22287. * include/grub/dl.h (GRUB_MOD_DEP): likewise
  22288. (GRUB_MOD_NAME): likewise
  22289. 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
  22290. gfxpayload support
  22291. * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
  22292. * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
  22293. (grub_video_setup): remove
  22294. (grub_video_set_mode): new prototype
  22295. * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
  22296. (vid_mode): remove
  22297. (linux_vesafb_res): compile only on PCBIOS
  22298. (grub_linux_boot): support gfxpayload
  22299. * loader/i386/pc/xnu.c (video_hook): new function
  22300. (grub_xnu_set_video): support gfxpayload
  22301. * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
  22302. (DEFAULT_VIDEO_HEIGHT): likewise
  22303. (DEFAULT_VIDEO_FLAGS): likewise
  22304. (DEFAULT_VIDEO_MODE): new definition
  22305. (video_hook): new function
  22306. (grub_gfxterm_init): use grub_video_set_mode
  22307. * util/grub.d/30_os-prober.in: remove explicit modesetting before
  22308. loading xnu
  22309. * video/video.c (grub_video_setup): removed
  22310. (grub_video_set_mode): new function based on grub_gfxterm_init and
  22311. grub_video_setup
  22312. 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
  22313. Avoid calling biosdisk in drivemap
  22314. * commands/i386/pc/drivemap.c (parse_biosdisk): remove
  22315. (revparse_biosdisk): likewise
  22316. (list_mappings): derive name from id directly
  22317. (grub_cmd_drivemap): use tryparse_diskstring
  22318. 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
  22319. Script fixes
  22320. * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
  22321. (grub_lexer_param): add tokenonhold
  22322. (grub_script_create_cmdline): remove cmdline. All callers updated
  22323. (grub_script_function_create): make functionname
  22324. grub_script_arg. All callers updated
  22325. (grub_script_execute_argument_to_string): new prototype
  22326. * kern/parser.c (state_transitions): reorder
  22327. (grub_parser_cmdline_state): fix a bug and make more compact
  22328. * script/sh/execute.c (grub_script_execute_argument_to_string):
  22329. make global
  22330. (grub_script_execute_cmdline): use new format
  22331. * script/sh/function.c (grub_script_function_create): make functionname
  22332. grub_script_arg. All callers updated
  22333. * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
  22334. (grub_script_yylex): remove
  22335. (grub_script_yylex2): renamed to ...
  22336. (grub_script_yylex): ...renamed
  22337. parse the expressions like a${b}c
  22338. * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
  22339. (GRUB_PARSER_TOKEN_VAR): remove
  22340. (GRUB_PARSER_TOKEN_NAME): likewise
  22341. ("if"): declare as typeless
  22342. ("while"): likewise
  22343. ("function"): likewise
  22344. ("else"): likewise
  22345. ("then"): likewise
  22346. ("fi"): likewise
  22347. (text): remove
  22348. (argument): likewise
  22349. (script): accept empty scripts and make exit on error
  22350. (arguments): use GRUB_PARSER_TOKEN_ARG
  22351. (function): likewise
  22352. (command): move error handling to script
  22353. (menuentry): move grub_script_lexer_ref before
  22354. * script/sh/script.c (grub_script_create_cmdline): remove cmdline
  22355. argument. All callers updated
  22356. 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
  22357. Prevent GRUB from probing floppies during boot.
  22358. * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
  22359. * commands/search.c (options): Add --no-floppy.
  22360. (search_fs, search_file, grub_cmd_search): Support --no-floppy.
  22361. * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
  22362. --no-floppy when searching for UUIDs.
  22363. 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
  22364. Simplify the code duplication in commands/search.c.
  22365. * commands/search.c (search_label, search_fs_uuid): Merge into ...
  22366. (search_fs): ... this. Update all users.
  22367. 2009-06-03 Felix Zielcke <fzielcke@z-51.de>
  22368. * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
  22369. 2009-05-28 Pavel Roskin <proski@gnu.org>
  22370. * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
  22371. Remove the original symlink explicitly.
  22372. * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
  22373. just one slash. That's how grub_fshelp_find_file() does it.
  22374. 2009-05-26 Pavel Roskin <proski@gnu.org>
  22375. * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
  22376. to `str'.
  22377. * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
  22378. possibly unused.
  22379. 2009-05-25 Christian Franke <franke@computer.org>
  22380. * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
  22381. register.
  22382. (grub_atapi_identify): Add wait after drive select.
  22383. (grub_ata_identify): Do more strict status register check before
  22384. calling grub_atapi_identify (). Suppress error message if status
  22385. register is 0x00 after command failure. Add status register
  22386. check after PIO read to avoid bogus identify due to stuck DRQ.
  22387. Thanks to Pavel Roskin for testing.
  22388. (grub_device_initialize): Remove unsafe status register check.
  22389. Thanks to 'phcoder' for problem report and patch.
  22390. Prevent sign extension in debug message.
  22391. 2009-05-23 Colin D Bennett <colin@gibibit.com>
  22392. Cleaned up `include/grub/normal.h'. Grouped prototypes by
  22393. definition file, and functions defined in `normal/menu.c' have had
  22394. their prototypes moved to `include/grub/menu.h' for consistency.
  22395. * include/grub/menu.h (grub_menu_execute_callback): Added; moved
  22396. from normal.h.
  22397. (grub_menu_get_entry): Likewise.
  22398. (grub_menu_get_timeout): Likewise.
  22399. (grub_menu_set_timeout): Likewise.
  22400. (grub_menu_execute_entry): Likewise.
  22401. (grub_menu_execute_with_fallback): Likewise.
  22402. (grub_menu_entry_run): Likewise.
  22403. * include/grub/normal.h: Re-ordered and grouped function
  22404. prototypes by file that the function is defined in.
  22405. (grub_menu_execute_callback): Removed; moved to menu.h.
  22406. (grub_menu_get_entry): Likewise.
  22407. (grub_menu_get_timeout): Likewise.
  22408. (grub_menu_set_timeout): Likewise.
  22409. (grub_menu_execute_entry): Likewise.
  22410. (grub_menu_execute_with_fallback): Likewise.
  22411. (grub_menu_entry_run): Likewise.
  22412. (grub_menu_addentry): Renamed from this ...
  22413. (grub_normal_add_menu_entry): ... to this.
  22414. * normal/main.c (grub_menu_addentry): Renamed from this ...
  22415. (grub_normal_add_menu_entry): ... to this.
  22416. * script/sh/execute.c (grub_script_execute_menuentry): Update
  22417. reference to renamed grub_menu_addentry function.
  22418. 2009-05-23 Felix Zielcke <fzielcke@z-51.de>
  22419. * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
  22420. 2009-05-22 Pavel Roskin <proski@gnu.org>
  22421. * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
  22422. * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
  22423. NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
  22424. compiling for the i386 targets, but not for the utilities.
  22425. * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
  22426. to grub_uint8_t.
  22427. (grub_root_drive): Likewise.
  22428. * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
  22429. remove alignment.
  22430. (grub_root_drive): Change size to byte.
  22431. (grub_start_addr): Remove.
  22432. (grub_end_addr): Likewise.
  22433. (grub_apm_bios_info): Likewise.
  22434. 2009-05-21 Felix Zielcke <fzielcke@z-51.de>
  22435. * normal/i386: Remove.
  22436. * normal/powerpc: Likewise.
  22437. * normal/sparc64: Likewise.
  22438. * normal/x86_64: Likewise.
  22439. 2009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
  22440. * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
  22441. * loader/i386/linux_trampoline.S: Fix indentation
  22442. * loader/i386/xnu_helper.S: Likewise
  22443. 2009-05-18 Colin D Bennett <colin@gibibit.com>
  22444. Display error messages when parsing a Lua statement fails.
  22445. Previously, executing a syntactically invalid statement like
  22446. ")foo" or "bar;" would silently fail.
  22447. * script/lua/grub_main.c (handle_lua_error): New function.
  22448. (grub_lua_parse_line): Improved reporting of Lua parser and
  22449. execution errors.
  22450. 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
  22451. Remove -Werror which causes build to fail on some systems
  22452. * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
  22453. * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
  22454. * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
  22455. 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
  22456. trampoline for linux on 64-bit platform
  22457. * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
  22458. loader/i386/efi/linux_trampoline.S
  22459. * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
  22460. declaration
  22461. * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
  22462. here
  22463. * loader/i386/linux_trampoline.S: moved here
  22464. * loader/i386/efi/linux.c (allocate_pages): reserve space for
  22465. trampoline
  22466. (jumpvector): removed
  22467. (grub_linux_trampoline_start): new declaration
  22468. (grub_linux_trampoline_end): likewise
  22469. (grub_linux_boot): use trampoline when on 64-bit platform
  22470. * loader/i386/linux.c: likewise
  22471. 2009-05-16 Pavel Roskin <proski@gnu.org>
  22472. * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
  22473. const to avoid a warning.
  22474. (grub_lua_setenv): Likewise.
  22475. * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
  22476. lmsg to fix a warning.
  22477. 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
  22478. * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
  22479. (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
  22480. * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
  22481. (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
  22482. * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
  22483. (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
  22484. * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
  22485. (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
  22486. 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
  22487. * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
  22488. 2009-05-16 Bean <bean123ch@gmail.com>
  22489. * conf/common.rmk (pkglib_MODULES): Add lua.mod.
  22490. (lua_mod_SOURCES): New variable.
  22491. (lua_mod_CFLAGS): Likewise.
  22492. (lua_mod_LDFLAGS): Likewise.
  22493. * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
  22494. (setjmp_mod_SOURCES): New variable.
  22495. (setjmp_mod_CFLAGS): Likewise.
  22496. (setjmp_LDFLAGS): Likewise.
  22497. * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
  22498. (setjmp_mod_SOURCES): New variable.
  22499. (setjmp_mod_CFLAGS): Likewise.
  22500. (setjmp_LDFLAGS): Likewise.
  22501. * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
  22502. (setjmp_mod_SOURCES): New variable.
  22503. (setjmp_mod_CFLAGS): Likewise.
  22504. (setjmp_LDFLAGS): Likewise.
  22505. * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
  22506. (setjmp_mod_SOURCES): New variable.
  22507. (setjmp_mod_CFLAGS): Likewise.
  22508. (setjmp_LDFLAGS): Likewise.
  22509. * normal/i386/setjmp.S: Moved from here ...
  22510. * lib/i386/setjmp.S: ... Moved here
  22511. * normal/x86_64/setjmp.S: Moved from here ...
  22512. * lib/x86_64/setjmp.S: ... Moved here
  22513. * normal/powerpc/setjmp.S: Moved from here ...
  22514. * lib/powerpc/setjmp.S: ... Moved here
  22515. * normal/sparc64/setjmp.S: Moved from here ...
  22516. * lib/sparc64/setjmp.S: ... Moved here
  22517. * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
  22518. returns_twice in mingw.
  22519. * script/lua/grub_lib.c: New file.
  22520. * script/lua/grub_lib.h: Likewise.
  22521. * script/lua/grub_lua.h: Likewise.
  22522. * script/lua/grub_main.c: Likewise.
  22523. * script/lua/lapi.c: Likewise.
  22524. * script/lua/lapi.h: Likewise.
  22525. * script/lua/lauxlib.c: Likewise.
  22526. * script/lua/lauxlib.h: Likewise.
  22527. * script/lua/lbaselib.c: Likewise.
  22528. * script/lua/lcode.c: Likewise.
  22529. * script/lua/lcode.h: Likewise.
  22530. * script/lua/ldblib.c: Likewise.
  22531. * script/lua/ldebug.c: Likewise.
  22532. * script/lua/ldebug.h: Likewise.
  22533. * script/lua/ldo.c: Likewise.
  22534. * script/lua/ldo.h: Likewise.
  22535. * script/lua/ldump.c: Likewise.
  22536. * script/lua/lfunc.c: Likewise.
  22537. * script/lua/lfunc.h: Likewise.
  22538. * script/lua/lgc.c: Likewise.
  22539. * script/lua/lgc.h: Likewise.
  22540. * script/lua/linit.c: Likewise.
  22541. * script/lua/liolib.c: Likewise.
  22542. * script/lua/llex.c: Likewise.
  22543. * script/lua/llex.h: Likewise.
  22544. * script/lua/llimits.h: Likewise.
  22545. * script/lua/lmathlib.c: Likewise.
  22546. * script/lua/lmem.c: Likewise.
  22547. * script/lua/lmem.h: Likewise.
  22548. * script/lua/loadlib.c: Likewise.
  22549. * script/lua/lobject.c: Likewise.
  22550. * script/lua/lobject.h: Likewise.
  22551. * script/lua/lopcodes.c: Likewise.
  22552. * script/lua/lopcodes.h: Likewise.
  22553. * script/lua/loslib.c: Likewise.
  22554. * script/lua/lparser.c: Likewise.
  22555. * script/lua/lparser.h: Likewise.
  22556. * script/lua/lstate.c: Likewise.
  22557. * script/lua/lstate.h: Likewise.
  22558. * script/lua/lstring.c: Likewise.
  22559. * script/lua/lstring.h: Likewise.
  22560. * script/lua/lstrlib.c: Likewise.
  22561. * script/lua/ltable.c: Likewise.
  22562. * script/lua/ltable.h: Likewise.
  22563. * script/lua/ltablib.c: Likewise.
  22564. * script/lua/ltm.c: Likewise.
  22565. * script/lua/ltm.h: Likewise.
  22566. * script/lua/lua.h: Likewise.
  22567. * script/lua/luaconf.h: Likewise.
  22568. * script/lua/lualib.h: Likewise.
  22569. * script/lua/lundump.c: Likewise.
  22570. * script/lua/lundump.h: Likewise.
  22571. * script/lua/lvm.c: Likewise.
  22572. * script/lua/lvm.h: Likewise.
  22573. * script/lua/lzio.c: Likewise.
  22574. * script/lua/lzio.h: Likewise.
  22575. 2009-05-16 Bean <bean123ch@gmail.com>
  22576. * include/grub/kernel.h (grub_module_header_types): Add type
  22577. OBJ_TYPE_CONFIG.
  22578. * kern/main.c (grub_load_config): New function.
  22579. (grub_main): Call grub_load_config to read boot config.
  22580. * grub-mkimage (generate_image): New parameter config_path.
  22581. (options): New option --config.
  22582. (main): Parse --config option, and pass it to generate_image.
  22583. 2009-05-14 Christian Franke <franke@computer.org>
  22584. * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
  22585. This fixes build on Cygwin.
  22586. 2009-05-14 Pavel Roskin <proski@gnu.org>
  22587. * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
  22588. jump. This saves two bytes, so the typical case of 2 swapped
  22589. drives would fit 32 bytes.
  22590. 2009-05-13 Pavel Roskin <proski@gnu.org>
  22591. * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
  22592. grub_uint32_t to avoid a warning.
  22593. * loader/i386/linux.c (allocate_pages): When assigning
  22594. real_mode_mem, cast through grub_size_t to fix a warning. The
  22595. code already makes sure that the value would fit a pointer.
  22596. (grub_linux_setup_video): Cast render_target->data to
  22597. grub_size_t to fix a warning.
  22598. 2009-05-13 Javier Martín <lordhabbit@gmail.com>
  22599. * commands/i386/pc/drivemap.c: New file - implement drivemap
  22600. command.
  22601. * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
  22602. * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
  22603. 2009-05-13 Pavel Roskin <proski@gnu.org>
  22604. * util/i386/pc/grub-setup.c (setup): Remove unused variable
  22605. embedding_area_exists.
  22606. 2009-05-13 Robert Millan <rmh.grub@aybabtu.com>
  22607. * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
  22608. it easier to understand / work with.
  22609. Improve warning messages for cases where there's no embedding area,
  22610. or when it is too small (or core.img too large).
  22611. 2009-05-13 Pavel Roskin <proski@gnu.org>
  22612. * loader/i386/pc/multiboot2.c: Add necessary includes for
  22613. grub_multiboot2_real_boot().
  22614. * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
  22615. PX record is always little-endian. We only need the lower 2
  22616. bytes of the mode.
  22617. * fs/cpio.c: Use the same name "struct head" for tar and cpio to
  22618. facilitate code reuse.
  22619. (grub_cpio_mount): Use "struct head", not a char buffer. This
  22620. fixes a warning reported by gcc 4.4.
  22621. * kernel/disk.c (grub_disk_read): Use void pointer for the
  22622. buffer.
  22623. (grub_disk_write): Use const void pointer for the buffer.
  22624. Adjust all callers. Remove unnecessary casts.
  22625. 2009-05-10 Robert Millan <rmh.grub@aybabtu.com>
  22626. * util/i386/pc/grub-install.in: Update copyright year.
  22627. 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
  22628. gptsync
  22629. * commands/gptsync.c: new file
  22630. * conf/common.rmk (pkglib_MODULES): add gptsync.mod
  22631. (gptsync_mod_SOURCES): new variable
  22632. (gptsync_mod_CFLAGS): likewise
  22633. (gptsync_mod_LDFLAGS): likewise
  22634. * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
  22635. new definition
  22636. (GRUB_PC_PARTITION_TYPE_HFS): likewise
  22637. * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
  22638. * conf/i386-ieee1275.rmk: likewise
  22639. * conf/i386-pc.rmk: likewise
  22640. * conf/powerpc-ieee1275.rmk: likewise
  22641. 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
  22642. Fixed grub-emu
  22643. * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
  22644. (grub_dl_ref): likewise
  22645. 2009-05-08 Robert Millan <rmh.grub@aybabtu.com>
  22646. * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
  22647. split in two functions (one for msdos and one for gpt).
  22648. 2009-05-08 Pavel Roskin <proski@gnu.org>
  22649. * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
  22650. not modified.
  22651. * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
  22652. uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
  22653. Initialize them with -1. Add sanity check for bad1. Eliminate
  22654. nerr variable.
  22655. 2009-05-08 David S. Miller <davem@davemloft.net>
  22656. * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
  22657. 2009-05-06 Robert Millan <rmh.grub@aybabtu.com>
  22658. * util/i386/pc/grub-setup.c (setup): Fix check for embed region
  22659. existence.
  22660. 2009-05-05 Felix Zielcke <fzielcke@z-51.de>
  22661. * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
  22662. `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
  22663. 2009-05-05 David S. Miller <davem@davemloft.net>
  22664. * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
  22665. 2009-05-05 Pavel Roskin <proski@gnu.org>
  22666. * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
  22667. of grub_dl_ref() and grub_dl_unref().
  22668. * commands/parttool.c: Remove preprocessor conditionals around
  22669. grub_dl_ref() and grub_dl_unref().
  22670. * fs/affs.c: Likewise.
  22671. * fs/afs.c: Likewise.
  22672. * fs/cpio.c: Likewise.
  22673. * fs/ext2.c: Likewise.
  22674. * fs/fat.c: Likewise.
  22675. * fs/hfs.c: Likewise.
  22676. * fs/hfsplus.c: Likewise.
  22677. * fs/iso9660.c: Likewise.
  22678. * fs/jfs.c: Likewise.
  22679. * fs/minix.c: Likewise.
  22680. * fs/ntfs.c: Likewise.
  22681. * fs/reiserfs.c: Likewise.
  22682. * fs/sfs.c: Likewise.
  22683. * fs/udf.c: Likewise.
  22684. * fs/ufs.c: Likewise.
  22685. * fs/xfs.c: Likewise.
  22686. * include/grub/dl.h: Likewise.
  22687. * loader/xnu.c: Likewise.
  22688. 2009-05-04 Pavel Roskin <proski@gnu.org>
  22689. * commands/acpi.c: Remove unused variable my_mod.
  22690. * partmap/amiga.c: Likewise.
  22691. * partmap/apple.c: Likewise.
  22692. * partmap/gpt.c: Likewise.
  22693. * partmap/pc.c: Likewise.
  22694. * partmap/sun.c: Likewise.
  22695. * term/gfxterm.c: Likewise.
  22696. * term/i386/pc/vesafb.c: Likewise.
  22697. * term/i386/pc/vga.c: Likewise.
  22698. 2009-05-04 David S. Miller <davem@davemloft.net>
  22699. * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
  22700. pointer args to grub_ieee1275_get_property().
  22701. * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
  22702. * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
  22703. devices, and do not traverse down under controller nodes.
  22704. * disk/ieee1275/ofdisk.c (compute_dev_path): New.
  22705. (grub_ofdisk_open): Use it to un-escape "," characters.
  22706. * kern/disk.c (find_part_sep): New.
  22707. (grub_disk_open): Use it to find the first non-escaped ','
  22708. character in the disk name.
  22709. * util/ieee1275/devicemap.c (escape_of_path): New.
  22710. (grub_util_emit_devicemap_entry): Use it.
  22711. * util/sparc64/ieee1275/grub-install.in: Update script to
  22712. strip partition specifiers properly by not triggering on
  22713. '\' escaped ',' characters.
  22714. 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
  22715. * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
  22716. to 0x300.
  22717. * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
  22718. resolutions.
  22719. (linux_vesafb_modes): Add a lot of additional modes to the list (based
  22720. on documentation from Wikipedia).
  22721. 2009-05-04 Pavel Roskin <proski@gnu.org>
  22722. * disk/ata.c: Spelling fixes.
  22723. * disk/raid.c: Likewise.
  22724. * disk/usbms.c: Likewise.
  22725. * disk/dmraid_nvidia.c: Likewise.
  22726. * kern/ieee1275/openfw.c: Likewise.
  22727. * kern/ieee1275/init.c: Likewise.
  22728. * kern/ieee1275/cmain.c: Likewise.
  22729. * boot/i386/pc/cdboot.S: Likewise.
  22730. * video/readers/png.c: Likewise.
  22731. * video/i386/pc/vbe.c: Likewise.
  22732. * fs/udf.c: Likewise.
  22733. * fs/hfs.c: Likewise.
  22734. * fs/reiserfs.c: Likewise.
  22735. * efiemu/runtime/efiemu.c: Likewise.
  22736. * efiemu/main.c: Likewise.
  22737. * efiemu/mm.c: Likewise.
  22738. * include/grub/elf.h: Likewise.
  22739. * include/grub/xnu.h: Likewise.
  22740. * include/grub/usbdesc.h: Likewise.
  22741. * include/grub/usb.h: Likewise.
  22742. * include/grub/script_sh.h: Likewise.
  22743. * include/grub/lib/LzmaEnc.h: Likewise.
  22744. * include/grub/efiemu/efiemu.h: Likewise.
  22745. * include/grub/command.h: Likewise.
  22746. * normal/menu.c: Likewise.
  22747. * normal/main.c: Likewise.
  22748. * normal/datetime.c: Likewise.
  22749. * bus/usb/uhci.c: Likewise.
  22750. * mmap/i386/uppermem.c: Likewise.
  22751. * mmap/mmap.c: Likewise.
  22752. * commands/acpi.c: Likewise.
  22753. * commands/test.c: Likewise.
  22754. * partmap/apple.c: Likewise.
  22755. * font/font.c: Likewise.
  22756. * loader/sparc64/ieee1275/linux.c: Likewise.
  22757. * loader/macho.c: Likewise.
  22758. * loader/i386/bsd_trampoline.S: Likewise.
  22759. * loader/i386/bsd.c: Likewise.
  22760. * loader/xnu.c: Likewise.
  22761. * term/i386/pc/vesafb.c: Likewise.
  22762. * term/usb_keyboard.c: Likewise.
  22763. * util/resolve.c: Likewise.
  22764. * util/getroot.c: Likewise.
  22765. 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
  22766. * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
  22767. 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
  22768. * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
  22769. build error.
  22770. 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
  22771. * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
  22772. parameter only available on BIOS.
  22773. 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
  22774. Removed wrong semicolon in declaration
  22775. * grub/misc.h (grub_dprintf): remove semicolon
  22776. 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
  22777. * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
  22778. (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
  22779. is done by grub_cmd_linux() now).
  22780. [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
  22781. restore video to text mode.
  22782. (grub_cmd_linux): Default `vid_mode' initialization to 0, which
  22783. indicates lack of "vga=" parameter. "vga=0" is mapped to
  22784. `GRUB_LINUX_VID_MODE_NORMAL'.
  22785. 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
  22786. * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
  22787. `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
  22788. and `normal/script.c'. Add `kern/rescue_reader.c',
  22789. `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
  22790. `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
  22791. `grub_script.tab.c'.
  22792. * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
  22793. * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
  22794. * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
  22795. * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
  22796. * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
  22797. * Makefile.in: Remove duplicated 2008 in Copyright line.
  22798. 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
  22799. * util/misc.c (grub_util_warn): New function. Emits a warning
  22800. unconditionally.
  22801. * include/grub/util/misc.h (grub_util_warn): New declaration.
  22802. * util/i386/pc/grub-install.in: Understand --force and pass it down
  22803. to grub-setup.
  22804. * util/i386/pc/grub-setup.c (main): Understand --force and pass it
  22805. down to setup().
  22806. (setup): Improve error messages and add warnings when requested to
  22807. install in odd layouts. Refuse to install using blocklists unless
  22808. --force was set.
  22809. 2009-05-04 martin f. krafft <madduck@madduck.net>
  22810. * disk/raid.c (grub_raid_scan_device): Improve debug message.
  22811. 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
  22812. Updated copyright year
  22813. * fs/hfsplus.c: updated copyright year
  22814. 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
  22815. HFS+ UUID
  22816. * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
  22817. in the space previously used by unused3
  22818. (grub_hfsplus_uuid): new function
  22819. (grub_hfsplus_fs): added uuid field
  22820. 2009-05-03 Pavel Roskin <proski@gnu.org>
  22821. * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
  22822. suppress warnings. It's no longer needed.
  22823. * disk/host.c: Likewise.
  22824. * disk/ata_pthru.c: Likewise.
  22825. * disk/loopback.c: Likewise.
  22826. * hook/datehook.c: Likewise.
  22827. * parttool/pcpart.c: Likewise.
  22828. * fs/i386/pc/pxe.c: Likewise.
  22829. * fs/ntfscomp.c: Likewise.
  22830. * efiemu/main.c: Likewise.
  22831. * mmap/mmap.c: Likewise.
  22832. * commands/crc.c: Likewise.
  22833. * commands/hexdump.c: Likewise.
  22834. * commands/hdparm.c: Likewise.
  22835. * commands/acpi.c: Likewise.
  22836. * commands/echo.c: Likewise.
  22837. * commands/minicmd.c: Likewise.
  22838. * commands/blocklist.c: Likewise.
  22839. * commands/memrw.c: Likewise.
  22840. * commands/loadenv.c: Likewise.
  22841. * commands/usbtest.c: Likewise.
  22842. * commands/lsmmap.c: Likewise.
  22843. * commands/boot.c: Likewise.
  22844. * commands/parttool.c: Likewise.
  22845. * commands/configfile.c: Likewise.
  22846. * commands/search.c: Likewise.
  22847. * commands/ieee1275/suspend.c: Likewise.
  22848. * commands/cat.c: Likewise.
  22849. * commands/i386/pc/pxecmd.c: Likewise.
  22850. * commands/i386/pc/play.c: Likewise.
  22851. * commands/i386/pc/halt.c: Likewise.
  22852. * commands/i386/pc/vbeinfo.c: Likewise.
  22853. * commands/i386/pc/vbetest.c: Likewise.
  22854. * commands/lspci.c: Likewise.
  22855. * commands/date.c: Likewise.
  22856. * commands/handler.c: Likewise.
  22857. * commands/ls.c: Likewise.
  22858. * commands/test.c: Likewise.
  22859. * commands/cmp.c: Likewise.
  22860. * commands/efi/loadbios.c: Likewise.
  22861. * commands/efi/fixvideo.c: Likewise.
  22862. * commands/halt.c: Likewise.
  22863. * commands/help.c: Likewise.
  22864. * commands/reboot.c: Likewise.
  22865. * hello/hello.c: Likewise.
  22866. * script/sh/main.c: Likewise.
  22867. * loader/xnu.c: Likewise.
  22868. * term/terminfo.c: Likewise.
  22869. * term/i386/pc/serial.c: Likewise.
  22870. * term/usb_keyboard.c: Likewise.
  22871. 2009-05-03 David S. Miller <davem@davemloft.net>
  22872. * normal/menu.c: Include grub/parser.h
  22873. 2009-05-03 Pavel Roskin <proski@gnu.org>
  22874. * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
  22875. not char*.
  22876. * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
  22877. Suggested by Javier Martín <lordhabbit@gmail.com>
  22878. * util/i386/pc/grub-mkrescue.in: Allow for the case when
  22879. efiemu??.o doesn't exist.
  22880. * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
  22881. copying.
  22882. 2009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
  22883. FreeBSD 64-bit support
  22884. * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
  22885. and loader/i386/bsd_trampoline.S
  22886. (bsd_mod_ASFLAGS): new variable
  22887. * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
  22888. (FREEBSD_MODTYPE_KERNEL64): likewise
  22889. (grub_bsd64_trampoline_start): likewise
  22890. (grub_bsd64_trampoline_end): likewise
  22891. (grub_bsd64_trampoline_selfjump): likewise
  22892. (grub_bsd64_trampoline_gdt): likewise
  22893. * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
  22894. * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
  22895. * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
  22896. * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
  22897. * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
  22898. of "attrib" member
  22899. * loader/i386/bsd_pagetable.c: new file
  22900. * loader/i386/bsd_trampoline.S: likewise
  22901. * loader/i386/bsd.c (ALIGN_QWORD): new macro
  22902. (ALIGN_VAR): likewise
  22903. (entry_hi): new variable
  22904. (kern_end_mdofs): likewise
  22905. (is_64bit): likewise
  22906. (grub_freebsd_add_meta): use ALIGN_VAR
  22907. (grub_e820_mmap): new declaration
  22908. (grub_freebsd_add_mmap): new function
  22909. (grub_freebsd_add_meta_module): support 64 bit kernels
  22910. (grub_freebsd_list_modules): use ALIGN_VAR
  22911. (gdt_descriptor): new declaration
  22912. (grub_freebsd_boot): support 64 bit kernels
  22913. (grub_bsd_elf64_hook): new function
  22914. (grub_bsd_load_elf): support elf64
  22915. 2009-05-03 Bean <bean123ch@gmail.com>
  22916. * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
  22917. after we get the result of if statement.
  22918. 2009-05-03 Bean <bean123ch@gmail.com>
  22919. * Makefile.in (enable_efiemu): New variable.
  22920. * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
  22921. set.
  22922. (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
  22923. path.
  22924. (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
  22925. path, add -mno-red-zone option.
  22926. (efiemu64_s.o): Likewise.
  22927. (efiemu64.o): Use macro $^ for source file.
  22928. * configure.ac (--enable-efiemu): New option.
  22929. 2009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
  22930. xnu support
  22931. * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
  22932. (pkglib_MODULES): add xnu.mod
  22933. (xnu_mod_SOURCES): new variable
  22934. (xnu_mod_CFLAGS): likewise
  22935. (xnu_mod_LDFLAGS): likewise
  22936. (xnu_mod_ASFLAGS): likewise
  22937. * conf/i386-pc.rmk: likewise
  22938. * conf/x86_64-efi.rmk: likewise
  22939. * include/grub/efi/efi.h (grub_efi_finish_boot_services):
  22940. new declaration
  22941. * include/grub/i386/macho.h: new file
  22942. * include/grub/i386/xnu.h: likewise
  22943. * include/grub/macho.h: likewise
  22944. * include/grub/machoload.h: likewise
  22945. * include/grub/x86_64/macho.h: likewise
  22946. * include/grub/x86_64/xnu.h: likewise
  22947. * include/grub/xnu.h: likewise
  22948. * kern/efi/efi.c (grub_efi_finish_boot_services): new function
  22949. * kern/efi/mm.c (MAX_HEAP_SIZE): increase
  22950. * loader/i386/efi/xnu.c: new file
  22951. * loader/i386/pc/xnu.c: likewise
  22952. * loader/i386/xnu.c: likewise
  22953. * loader/i386/xnu_helper.S: likewise
  22954. * loader/macho.c: likewise
  22955. * loader/xnu.c: likewise
  22956. * loader/xnu_resume.c: likewise
  22957. * util/grub-dumpdevtree: likewise
  22958. * include/grub/i386/pit.h: include grub/err.h
  22959. (grub_pit_wait): export
  22960. * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
  22961. 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
  22962. Efiemu
  22963. * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
  22964. _linux_efi, linux_efi.
  22965. new files in grub-emu
  22966. new targets efiemu32.o and efiemu64.o
  22967. * loader/linux_normal_efiemu.c: likewise
  22968. * loader/i386/efi/linux.c: added preliminary efiemu support
  22969. * util/i386/pc/grub-install.in: add efiemu??.o to the list of
  22970. files to copy
  22971. * include/grub/autoefi.h: new file
  22972. * include/grub/i386/efiemu.h: likewise
  22973. * include/grub/i386/pc/efiemu.h: likewise
  22974. * include/grub/efi/api.h: add LL suffix when necessary
  22975. new definitions relating to tables
  22976. * include/grub/efiemu/efiemu.h: new file
  22977. * include/grub/efiemu/runtime.h: likewise
  22978. * efiemu/prepare.c: likewise
  22979. * efiemu/loadcore_common.c: likewise
  22980. * efiemu/loadcore64.c: likewise
  22981. * efiemu/runtime/efiemu.sh: likewise
  22982. * efiemu/runtime/efiemu.S: likewise
  22983. * efiemu/runtime/efiemu.c: likewise
  22984. * efiemu/runtime/config.h: likewise
  22985. * efiemu/prepare32.c: likewise
  22986. * efiemu/main.c: likewise
  22987. * efiemu/modules/pnvram.c: likewise
  22988. * efiemu/modules/i386: likewise
  22989. * efiemu/modules/i386/pc: likewise
  22990. * efiemu/modules/acpi.c: likewise
  22991. * efiemu/i386/pc/cfgtables.c: likewise
  22992. * efiemu/i386/loadcore64.c: likewise
  22993. * efiemu/i386/loadcore32.c: likewise
  22994. * efiemu/prepare64.c: likewise
  22995. * efiemu/loadcore.c: likewise
  22996. * efiemu/symbols.c: likewise
  22997. * efiemu/mm.c: likewise
  22998. * efiemu/loadcore32.c: likewise
  22999. 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
  23000. ACPI spoofing
  23001. * commands/acpi.c: new file
  23002. * commands/i386/pc/acpi.c: likewise
  23003. * commands/efi/acpi.c: likewise
  23004. * include/grub/acpi.h: likewise
  23005. * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
  23006. (acpi_mod_SOURCES): new variable
  23007. (acpi_mod_CFLAGS): likewise
  23008. (acpi_mod_LDFLAGS): likewise
  23009. * conf/i386-efi.rmk: likewise
  23010. * conf/x86_64-efi.rmk: likewise
  23011. 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
  23012. Missing part from mmap patch
  23013. * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
  23014. (grub_mmap_unregister)
  23015. (grub_mmap_free_and_unregister): use grub_mmap_register
  23016. 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
  23017. Mmap services
  23018. * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
  23019. * loader/i386/linux.c (find_mmap_size): likewise
  23020. (allocate_pages): likewise
  23021. * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
  23022. (grub_fill_multiboot_mmap): likewise
  23023. (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
  23024. * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
  23025. * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
  23026. (OPENBSD_MMAP_RESERVED): likewise
  23027. * include/grub/i386/pc/memory.h: include grub/memory.h
  23028. (grub_lower_mem): removed
  23029. (grub_upper_mem): likewise
  23030. (GRUB_MACHINE_MEMORY_ACPI): new definition
  23031. (GRUB_MACHINE_MEMORY_NVS): likewise
  23032. (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
  23033. (GRUB_MACHINE_MEMORY_HOLE): likewise
  23034. (grub_machine_mmap_register): likewise
  23035. (grub_machine_mmap_unregister): likewise
  23036. (grub_machine_get_upper): likewise
  23037. (grub_machine_get_lower): likewise
  23038. (grub_machine_get_post64): likewise
  23039. * include/grub/i386/efi/memory.h: new file
  23040. * include/grub/x86_64/efi/memory.h: likewise
  23041. * include/grub/efi/memory.h: likewise
  23042. * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
  23043. (mmap_mod_SOURCES): new variable
  23044. (mmap_mod_LDFLAGS): likewise
  23045. (mmap_mod_ASFLAGS): likewise
  23046. * conf/i386-coreboot.rmk: likewise
  23047. * conf/i386-ieee1275.rmk: likewise
  23048. * conf/i386-efi.rmk: likewise
  23049. * conf/x86_64-efi.rmk: likewise
  23050. * include/grub/types.h (UINT_TO_PTR): new macro
  23051. (PTR_TO_UINT32): likewise
  23052. (PTR_TO_UINT64): likewise
  23053. * include/grub/memory.h: new file
  23054. * mmap/i386/pc/mmap.c: likewise
  23055. * mmap/i386/pc/mmap_helper.S: likewise
  23056. * mmap/i386/uppermem.c: likewise
  23057. * mmap/mmap.c: likewise
  23058. * mmap/efi/mmap.c: likewise
  23059. * kern/i386/coreboot/init.c (grub_machine_init): don't use
  23060. grub_upper_mem
  23061. * kern/i386/pc/init.c (grub_lower_mem): removed variable
  23062. (grub_upper_mem): likewise
  23063. (grub_machine_init): don't use grub_upper_mem,
  23064. make grub_lower_mem local
  23065. * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
  23066. grub_mmap_iterate and grub_mmap_get_upper
  23067. (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
  23068. 2009-05-02 Bean <bean123ch@gmail.com>
  23069. * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
  23070. script/sh/parser.y.
  23071. (pkglib_MODULES): Add normal.mod and sh.mod.
  23072. (normal_SOURCES): New variable.
  23073. (normal_mod_CFLAGS): Likewise.
  23074. (normal_mod_LDFLAGS): Likewise.
  23075. (sh_mod_SOURCES): Likewise.
  23076. (sh_mod_CFLAGS): Likewise.
  23077. (sh_mod_LDFLAGS): Likewise.
  23078. * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
  23079. script/sh/lexer.c_DEPENDENCIES.
  23080. (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
  23081. kern/rescue_reader.c and kern/rescue_parser.c.
  23082. (kernel_img_HEADERS): Remove rescue.h, add reader.h.
  23083. (grub_emu_SOURCES): Change source files.
  23084. (pkglib_MODULES): Remove normal.mod.
  23085. (normal_SOURCES): Removed.
  23086. (normal_mod_CFLAGS): Likewise.
  23087. (normal_mod_LDFLAGS): Likewise.
  23088. * conf/i386-coreboot.rmk: Likewise.
  23089. * conf/i386-efi.rmk: Likewise.
  23090. * conf/i386-ieee1276.rmk: Likewise.
  23091. * conf/powerpc-ieee1275.rmk: Likewise.
  23092. * conf/sparc64-ieee1275.rmk: Likewise.
  23093. * conf/x86_64-efi.rmk: Likewise.
  23094. * include/grub/command.h (grub_command_execute): New inline function.
  23095. * include/grub/menu.h (grub_menu_entry): Removed commands field.
  23096. * include/grub/normal.h: Remove <grub/setjmp.h>.
  23097. (grub_fs_module_list): Moved to normal/autofs.c.
  23098. (grub_exit_env): Removed.
  23099. (grub_command_execute): Likewise.
  23100. (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
  23101. parameter script.
  23102. (read_command_list): New function declaration.
  23103. (read_fs_list): Likewise.
  23104. * include/parser.h: Include <grub/reader.h>.
  23105. (grub_parser_split_cmdline): Change type of getline parameter.
  23106. (grub_parser): New structure.
  23107. (grub_parser_class): New variable.
  23108. (grub_parser_execute): New function declaration.
  23109. (grub_register_rescue_parser): Likewise.
  23110. (grub_parser_register): New inline function.
  23111. (grub_parser_unregister): Likewise.
  23112. (grub_parser_get_current): Likewise.
  23113. (grub_parser_set_current): Likewise.
  23114. * include/grub/reader.h: New file.
  23115. * kern/reader.c: Likewise.
  23116. * kern/rescue_parser.c: Likewise.
  23117. * kern/rescue_reader.c: Likewise.
  23118. * normal/autofs.c: Likewise.
  23119. * normal/dyncmd.c: Likewise.
  23120. * include/grub/rescue.h: Removed.
  23121. * normal/command.h: Likewise.
  23122. * include/grub/script.h: Moved to ...
  23123. * include/grub/script_sh.h: ... Moved here.
  23124. * normal/execute.c: Moved to ...
  23125. * script/sh/execute.c: ... Moved here.
  23126. * normal/function.c: Moved to ...
  23127. * script/sh/function.c: ... Moved here.
  23128. * normal/lexer.c: Moved to ...
  23129. * script/sh/lexer.c: ... Moved here.
  23130. * normal/parser.y: Moved to ...
  23131. * script/sh/parser.y: ... Moved here.
  23132. * normal/script.c: Moved to ...
  23133. * script/sh/script.c: ... Moved here.
  23134. * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
  23135. <grub/reader.h>.
  23136. (grub_exit_env): Removed.
  23137. (fs_module_list): Moved to normal/autofs.c.
  23138. (grub_file_getline): Don't handle comment here.
  23139. (free_menu): Skip removed field entry->commands.
  23140. (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
  23141. script parameter.
  23142. (read_config_file): Removed nested parameter, change getline function.
  23143. (grub_enter_normal_mode): Removed.
  23144. (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
  23145. (read_command_list): Likewise.
  23146. (autoload_fs_module): Moved to normal/autofs.c.
  23147. (read_fs_list): Likewise.
  23148. (reader_nested): New variable.
  23149. (grub_normal_execute): Run parser.sh to switch to sh parser.
  23150. (grub_cmd_rescue): Removed.
  23151. (cmd_normal): Removed.
  23152. (grub_cmd_normal): Unregister itself at the beginning. Don't register
  23153. rescue command.
  23154. (grub_cmdline_run): New function.
  23155. (grub_normal_reader_init): Likewise.
  23156. (grub_normal_read_line): Likewise.
  23157. (grub_env_write_pager): Likewise.
  23158. (cmdline): New variable.
  23159. (grub_normal_reader): Likewise.
  23160. (GRUB_MOD_INIT): Register normal reader and set as current, register
  23161. pager hook, register normal command with grub_register_command_prio,
  23162. so that it won't show up in command.lst.
  23163. (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
  23164. grub_fs_autoload_hook.
  23165. * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
  23166. (grub_menu_execute_entry): Replace grub_script_execute with
  23167. grub_parser_execute, change parameter to grub_command_execute.
  23168. * normal/menu_text.c: Remove <grub/script.h>.
  23169. * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
  23170. and <grub/parser.h>.
  23171. (run): Change editor_getline to use new parser interface. Change
  23172. parameter to grub_command_execute.
  23173. * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
  23174. <grub/reader.h> and <grub/parser.h>.
  23175. (grub_load_normal_mode): Execute normal command.
  23176. (grub_main): Call grub_register_core_commands,
  23177. grub_register_rescue_parser and grub_register_rescue_reader, use
  23178. grub_reader_loop to enter input loop.
  23179. * kern/parser.c (grub_parser_split_cmdline): Change type of
  23180. getline parameter.
  23181. (grub_parser_class): New variable.
  23182. (grub_parser_execute): New function.
  23183. * loader/i386/multiboot.c: Remove <grub/rescue.h>.
  23184. * loader/multiboot2.c: Likewise.
  23185. * loader/sparc64/ieee1275/linux.c: Likewise.
  23186. * util/grub-emu.c (read_command_list): New dummy function.
  23187. 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
  23188. * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
  23189. count to 16 for CCISS and IDA.
  23190. 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
  23191. * normal/menu_text.c (grub_wait_after_message): Print a newline
  23192. after waiting for user input.
  23193. * loader/i386/linux.c: Include `<grub/normal.h>'.
  23194. (grub_cmd_linux): Improve the error message about `ask' mode, by
  23195. waiting for user input so it's not missed (we can do this, since
  23196. user requested interaction).
  23197. 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
  23198. Added missing lst to grub-mkrescue
  23199. * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
  23200. and ${input_dir}/parttool.lst
  23201. 2009-04-30 David S. Miller <davem@davemloft.net>
  23202. * util/hostdisk.c (device_is_wholedisk): New function.
  23203. (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
  23204. zero only if device_is_wholedisk() returns true.
  23205. * util/hostdisk.c (convert_system_partition_to_system_disk):
  23206. Handle virtual disk devices named /dev/vdiskX as found on sparc
  23207. and powerpc.
  23208. * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
  23209. lettered partition specifier is found, convert to numbered.
  23210. 2009-04-29 David S. Miller <davem@davemloft.net>
  23211. * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
  23212. * include/grub/sparc64/ieee1275/memory.h: Likewise.
  23213. * normal/command.c: Add missing newline at end of file.
  23214. * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
  23215. warnings.
  23216. * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
  23217. * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
  23218. grub_ofdisk_read): Likewise, and deal similarly with the fact that
  23219. ihandles have a 32-bit type but need to be stored in a "void *".
  23220. 2009-04-28 Pavel Roskin <proski@gnu.org>
  23221. * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
  23222. not disk. Adjust all dependencies.
  23223. (grub_fs_uuid_close): Use grub_device_close(), not
  23224. grub_disk_close().
  23225. * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
  23226. parent's partition, don't copy it by reference, as it gets freed
  23227. on close.
  23228. 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
  23229. Preboot hooks support
  23230. * commands/boot.c (struct grub_preboot_t): new declaration
  23231. (preboots_head): new variable
  23232. (preboots_tail): likewise
  23233. (grub_loader_register_preboot_hook): new function
  23234. (grub_loader_unregister_preboot_hook): likewise
  23235. (grub_loader_set): launch preboot hooks
  23236. * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
  23237. (grub_loader_register_preboot_hook): new declaration
  23238. (grub_loader_unregister_preboot_hook): likewise
  23239. 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
  23240. Warning fix
  23241. * disk/scsi.c (grub_scsi_open): added missing cast when
  23242. calling grub_dprintf
  23243. 2009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
  23244. Bug and warning fixes
  23245. * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
  23246. declaration
  23247. * commands/test.c (test_parse): fixed bug with file tests and corrected
  23248. declaration of find_file
  23249. 2009-04-26 Pavel Roskin <proski@gnu.org>
  23250. * Makefile.in: Don't install empty manual pages if help2man is
  23251. missing. Use help2man option for output, not shell redirection.
  23252. 2009-04-26 David S. Miller <davem@davemloft.net>
  23253. * util/grub-mkdevicemap.c (make_device_map): Add missing
  23254. NESTED_FUNC_ATTR to process_device().
  23255. 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
  23256. Test command
  23257. * commands/test.c: rewritten to use bash-like test
  23258. 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
  23259. Parttool autoloading and improvements
  23260. * Makefile.in (pkglib_DATA): add parttool.lst
  23261. (parttool.lst): new target
  23262. * genmk.rb: generate parttool-*
  23263. (CLEANFILES): add #{parttool}
  23264. (PARTTOOLFILES): new variable
  23265. * genparttoollist.sh: new file
  23266. * parttool/pcpart.c (grub_pcpart_boot): more feedback
  23267. (grub_pcpart_type): likewise
  23268. * commands/parttool.c (helpmsg): new variable
  23269. (grub_cmd_parttool): output help if not enough arguments are supplied
  23270. autoload modules
  23271. (GRUB_MOD_INIT(parttool)): use helpmsg
  23272. 2009-04-24 David S. Miller <davem@davemloft.net>
  23273. Avoiding opening same device multiple times in device iterator.
  23274. * kern/device.c: (grub_device_iterate): Define struct part_ent,
  23275. and use it to build a list of partitions in iterate_disk() and
  23276. iterate_partition().
  23277. * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
  23278. on disk->data.
  23279. * disk/ieee1275/nand.c (grub_nand_iterate): Return
  23280. grub_devalias_iterate() result instead of unconditional 0.
  23281. * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
  23282. Also, capture hook return value, either directly or via
  23283. grub_children_iterate(), and propagate to caller.
  23284. * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
  23285. grub_children_iterate): Return value is now 'int' instead of
  23286. 'grub_err_t'.
  23287. * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
  23288. like a proper iterator, stopping when hooks return non-zero.
  23289. (grub_devalias_iterate): Likewise.
  23290. 2009-04-23 David S. Miller <davem@davemloft.net>
  23291. * kern/sparc64/ieee1275/openfw.c: Unused, delete.
  23292. 2009-04-22 David S. Miller <davem@davemloft.net>
  23293. * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
  23294. is larger than address_cells, use that value for address_cells too.
  23295. * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
  23296. IEEE1275_MAX_PATH_LEN): Define.
  23297. * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
  23298. allocate 'childtype', 'childpath', 'childname', and 'fullname'.
  23299. (grub_devalias_iterate): Dynamically allocate 'aliasname' and
  23300. 'devtype'. Explicitly NULL terminate devalias expansion.
  23301. * util/sparc64/ieee1275/misc.c: New file.
  23302. * util/sparc64/ieee1275/grub-setup.c: New file.
  23303. * util/sparc64/ieee1275/grub-ofpathname.c: New file.
  23304. * util/sparc64/ieee1275/grub-mkimage.c: New file.
  23305. * util/sparc64/ieee1275/grub-install.in: New file.
  23306. * util/ieee1275/ofpath.c: New file.
  23307. * util/ieee1275/devicemap.c: New file.
  23308. * util/devicemap.c: New file.
  23309. * util/deviceiter.c: New file.
  23310. * kern/sparc64/ieee1275/init.c: New file.
  23311. * include/grub/util/ofpath.h: New file.
  23312. * include/grub/util/deviceiter.h: New file.
  23313. * util/grub-mkdevicemap.c: Include deviceiter.h.
  23314. Implement using grub_util_emit_devicemap_entry and
  23315. grub_util_iterate_devices.
  23316. * conf/i386-corebook.rmk: Build util/deviceiter.c and
  23317. util/devicemap.c into grub-mkdevicemap
  23318. * conf/i386-efi.rmk: Likewise.
  23319. * conf/i386-ieee1275.rmk: Likewise.
  23320. * conf/i386-pc.rmk: Likewise.
  23321. * conf/powerpc-ieee1275.rmk: Likewise.
  23322. * conf/sparc64-ieee1275.rmk: Add rules to build boot block
  23323. images and installation utilities. Build kernel as image
  23324. instead of as elf binary. Use common rules as much as possible.
  23325. 2009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
  23326. Correct GPT definition
  23327. * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
  23328. of "attrib" member
  23329. 2009-04-19 Felix Zielcke <fzielcke@z-51.de>
  23330. * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
  23331. 2009-04-19 David S. Miller <davem@davemloft.net>
  23332. * loader/sparc64/ieee1275/linux.c: Include grub/command.h
  23333. (grub_rescue_cmd_linux): Rename to...
  23334. (grub_cmd_linux): and fix prototype.
  23335. (grub_rescue_cmd_initrd): Rename to...
  23336. (grub_cmd_initrd): and fix prototype.
  23337. (cmd_linux, cmd_initrd): New.
  23338. (GRUB_MOD_INIT(linux)): Use grub_register_command().
  23339. (GRUB_MOD_FINI(linux): Use grub_unregister_command().
  23340. 2009-04-17 Pavel Roskin <proski@gnu.org>
  23341. * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
  23342. format.
  23343. (grub_ohci_transfer): Likewise.
  23344. * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
  23345. * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
  23346. return without a value. Fix inconsistent indentation.
  23347. * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
  23348. match struct grub_fs.
  23349. * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
  23350. * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
  23351. * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
  23352. * commands/lspci.c (grub_lspci_iter): Likewise.
  23353. 2009-04-16 Bean <bean123ch@gmail.com>
  23354. * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
  23355. value.
  23356. 2009-04-15 Pavel Roskin <proski@gnu.org>
  23357. * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
  23358. LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
  23359. users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
  23360. definitions.
  23361. 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
  23362. * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
  23363. that no multiple data or metadata areas are supported and `Unknown
  23364. metadata header'.
  23365. 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
  23366. Move loader out of the kernel
  23367. * kern/loader.c: moved to ...
  23368. * commands/boot.c: ... moved here
  23369. * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
  23370. * commands/boot.c (grub_cmd_boot): moved here. All users updated
  23371. * include/grub/kernel.h (grub_machine_fini): export
  23372. * include/grub/loader.h (grub_loader_is_loaded): update declaration
  23373. (grub_loader_set): likewise
  23374. (grub_loader_unset): likewise
  23375. (grub_loader_boot): likewise
  23376. * conf/common.rmk: new module boot.mod
  23377. (pkglib_MODULES): add boot.mod
  23378. * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
  23379. (grub_emu_SOURCES): likewise
  23380. * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
  23381. (grub_emu_SOURCES): likewise
  23382. * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
  23383. (grub_emu_SOURCES): likewise
  23384. * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
  23385. (grub_emu_SOURCES): likewise
  23386. * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
  23387. (grub_emu_SOURCES): likewise
  23388. * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
  23389. (grub_emu_SOURCES): likewise
  23390. * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
  23391. (grub_emu_SOURCES): likewise
  23392. 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
  23393. use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
  23394. * kern/misc.c (grub_itoa): Removed function
  23395. (grub_ltoa): likewise
  23396. (grub_vsprintf): use grub_lltoa
  23397. 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
  23398. Restore grub-emu
  23399. * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
  23400. * conf/i386-coreboot.rmk: likewise
  23401. * conf/i386-ieee1275.rmk: likewise
  23402. * conf/powerpc-ieee1275.rmk: likewise
  23403. 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
  23404. * INSTALL: Add that `./autogen.sh' needs to be run before
  23405. `./configure.'.
  23406. 2009-04-14 Bean <bean123ch@gmail.com>
  23407. * Makefile.in (pkglib_DATA): Add handler.lst.
  23408. (handler.lst): New rule.
  23409. * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
  23410. * conf/i386-coreboot.rmk: Likewise.
  23411. * conf/i386-ieee1275.rmk: Likewise.
  23412. * conf/i386-efi.rmk: Likewise.
  23413. * conf/x86_64-efi.rmk: Likewise.
  23414. * conf/powerpc-ieee1275.rmk: Likewise.
  23415. * conf/sparc64-ieee1275.rmk: Likewise.
  23416. * genhandlerlist.sh: New file.
  23417. * genmk.rb: Add rules to generate handler.lst.
  23418. * include/grub/normal.h (grub_file_getline): New function definition.
  23419. (read_handler_list): Likewise.
  23420. (free_handler_list): Likewise.
  23421. * include/grub/term.h (grub_term_register_input): Add name parameter
  23422. for auto generation of handler.lst.
  23423. (grub_term_register_output): Likewise.
  23424. * normal/handler.c: New file.
  23425. * normal/main.c (get_line): Renamed to grub_file_getline.
  23426. (read_config_file): Use the newly renamed grub_file_getline.
  23427. (read_command_list): Likewise.
  23428. (read_fs_list): Likewise.
  23429. (grub_normal_execute): Call read_handler_list to parse handler.lst.
  23430. (GRUB_MOD_FINI): Call free_handler_list to free handler list.
  23431. * term/efi/console.c (grub_console_init): Add name parameter for auto
  23432. generation of handler.lst.
  23433. * term/gfxterm.c: Likewise.
  23434. * term/i386/pc/at_keyboard.c: Likewise.
  23435. * term/i386/pc/console.c: Likewise.
  23436. * term/i386/pc/serial.c: Likewise.
  23437. * term/i386/pc/vesafb.c: Likewise.
  23438. * term/i386/pc/vga.c: Likewise.
  23439. * term/i386/pc/vga_text.c: Likewise.
  23440. * term/ieee1275/ofconsole.c: Likewise.
  23441. * term/usb_keyboard.c: Likewise.
  23442. 2009-04-14 Bean <bean123ch@gmail.com>
  23443. * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
  23444. properly with null character.
  23445. 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
  23446. * configure: Remove.
  23447. * config.h.in: Likewise.
  23448. * stamp-h.in: Likewise.
  23449. * DISTLIST: Likewise.
  23450. * conf/common.mk: Likewise.
  23451. * conf/i386-coreboot.mk: Likewise.
  23452. * conf/i386-efi.mk: Likewise.
  23453. * conf/i386-ieee1275.mk: Likewise.
  23454. * conf/i386.mk: Likewise.
  23455. * conf/i386-pc.mk: Likewise.
  23456. * conf/powerpc-ieee1275.mk: Likewise.
  23457. * conf/sparc64-ieee1275.mk: Likewise.
  23458. * conf/x86_64-efi.mk: Likewise.
  23459. * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
  23460. develop on GRUB.
  23461. 2009-04-14 John Stanley <jpsinthemix@verizon.net>
  23462. David S. Miller <davem@davemloft.net>
  23463. * util/hostdisk.c (make_device_name): Fix buffer length
  23464. calculations.
  23465. 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
  23466. * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
  23467. <sys/param.h> and <sys/sysctl.h>.
  23468. (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
  23469. to add 0x10 to `kern.geom.debugflags' if it's not already set, before
  23470. opening the device and reset them afterwards.
  23471. 2009-04-13 Pavel Roskin <proski@gnu.org>
  23472. * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
  23473. Reported by John Stanley <jpsinthemix@verizon.net>
  23474. 2009-04-13 Robert Millan <rmh@aybabtu.com>
  23475. * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
  23476. that name for menuentries when appropriate.
  23477. 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
  23478. * util/grub.d/10_freebsd.in: Add a missing `fi'.
  23479. 2009-04-13 Robert Millan <rmh@aybabtu.com>
  23480. * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
  23481. to Linux, simply abort telling the user it's no longer supported.
  23482. 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
  23483. * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
  23484. doesn't exist. Check also for /boot/kernel/kernel.gz. Print
  23485. `freebsd_loadenv' only when devices.hints exist.
  23486. 2009-04-13 Pavel Roskin <proski@gnu.org>
  23487. * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
  23488. 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
  23489. * util/i386/pc/grub-install.in (install_drive): Remove the BSD
  23490. partition number.
  23491. (grub_drive): Likewise.
  23492. 2009-04-13 David S. Miller <davem@davemloft.net>
  23493. * kern/sparc64/ieee1275/ieee1275.c: New file.
  23494. * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
  23495. IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
  23496. IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
  23497. IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
  23498. (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
  23499. grub_ieee1275_alloc_physmem): Declare new exported functions.
  23500. * include/grub/sparc64/ieee1275/loader.h: New file.
  23501. * include/grub/sparc64/ieee1275/memory.h: Likewise.
  23502. * include/grub/sparc64/kernel.h: Likewise.
  23503. * loader/sparc64/ieee1275/linux.c: Likewise.
  23504. * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
  23505. (grub_fstest_SOURCES): Likewise.
  23506. * util/hostdisk.c (make_device_name): Do not make any assumptions
  23507. about the length of drive names.
  23508. * kern/dl.c (grub_dl_load_file): Close file immediately when
  23509. we are done using it.
  23510. 2009-04-12 David S. Miller <davem@davemloft.net>
  23511. * kern/misc.c (grub_ltoa): Fix cast when handling negative
  23512. values. Noticed by Pavel Roskin.
  23513. * configure.ac: Check for __bswapsi2 and__bswapdi2 using
  23514. target compiler.
  23515. * genmk.rb: Add more flexible image type specification, also
  23516. pass --strip-unneeded to objcopy.
  23517. * conf/i386-pc.rmk: Use *_FORMAT.
  23518. * conf/i386-pc.mk: Rebuilt.
  23519. * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
  23520. (OFDISK_HASH_SZ): Define.
  23521. (ofdisk_hash): New hash table.
  23522. (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
  23523. (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
  23524. instead of device phandle which is not unique.
  23525. * kern/sparc64/ieee1275/init.c: Delete, replace with...
  23526. * kern/sparc64/ieee1275/crt0.S: assembler implementation.
  23527. * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
  23528. (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
  23529. GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
  23530. GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
  23531. GRUB_KERNEL_MACHINE_DATA_END): Define.
  23532. (grub_kernel_image_size, grub_total_module_size): Declare.
  23533. 2009-04-12 Pavel Roskin <proski@gnu.org>
  23534. * configure.ac: Change the logic when we check for target tools.
  23535. Do it when the target is specified and it's different from the
  23536. specified value of the host.
  23537. 2009-04-11 Felix Zielcke <fzielcke@z-51.de>
  23538. * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
  23539. (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
  23540. GNU/kFreeBSD. Check if a device is a character device. Use
  23541. DIOCGMEDIASIZE to get the size.
  23542. (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
  23543. support for GNU/kFreeBSD.
  23544. (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
  23545. is a character device instead of a block device. Add support for
  23546. FreeBSD device names.
  23547. * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
  23548. is a character device instead of a block device.
  23549. * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
  23550. is a character device instead of a block device.
  23551. 2009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
  23552. * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
  23553. (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
  23554. FreeBSD. Check if a device is a character device. Use
  23555. DIOCGMEDIASIZE to get the size.
  23556. (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
  23557. support for FreeBSD.
  23558. (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
  23559. is a character device instead of a block device. Add support for
  23560. FreeBSD device names.
  23561. * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
  23562. a character device instead of a block device.
  23563. (grub_util_check_char_device): New function.
  23564. * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
  23565. a character device instead of a block device.
  23566. * include/grub/util/getroot.h (grub_util_check_char_device): New
  23567. prototype.
  23568. 2009-04-11 David S. Miller <davem@davemloft.net>
  23569. * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
  23570. static libgcc.
  23571. * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
  23572. * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
  23573. function, if present.
  23574. (__bswapdi2): Likewise.
  23575. * include/grub/sparc64/ieee1275/boot.h: New file.
  23576. * boot/sparc64/ieee1275/boot.S: Likewise.
  23577. * boot/sparc64/ieee1275/diskboot.S: Likewise.
  23578. * kern/misc.c (grub_ltoa): New function.
  23579. (grub_vsprintf): Use it to format 'long' integers.
  23580. 2009-04-10 David S. Miller <davem@davemloft.net>
  23581. * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
  23582. slots are of type grub_ieee1275_cell_t.
  23583. (grub_nand_read): Likewise.
  23584. * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
  23585. IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
  23586. macros are used to compare values in arg/ret block of the call.
  23587. (grub_ieee1275_finddevice, grub_ieee1275_get_property,
  23588. grub_ieee1275_next_property, grub_ieee1275_get_property_length,
  23589. grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
  23590. grub_ieee1275_instance_to_path, grub_ieee1275_write,
  23591. grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
  23592. grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
  23593. grub_ieee1275_close, grub_ieee1275_set_property,
  23594. grub_ieee1275_set_color): All ieee1275 call arg slots are of type
  23595. grub_ieee1275_cell_t.
  23596. * kern/ieee1275/openfw.c (grub_map): Likewise.
  23597. * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
  23598. grub_ieee1275_phandle_t): Define as grub_unit32_t type.
  23599. * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
  23600. * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
  23601. (grub_devalias_iterate): Likewise.
  23602. 2009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
  23603. UFS improvements
  23604. * fs/ufs.c (INODE_NBLOCKS): new definition
  23605. (struct grub_ufs_dirent): added fields for non-BSD dirents
  23606. (grub_ufs_get_file_block): fixed double indirect handling
  23607. (grub_ufs_lookup_symlink): use more robust way to determine whether
  23608. symlink is inline
  23609. (grub_ufs_find_file): support for non-BSD dirents
  23610. (grub_ufs_dir): support for non-BSD dirents
  23611. 2009-04-10 Bean <bean123ch@gnail.com>
  23612. * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
  23613. attribute, otherwise the size would be wrong for i386 platform.
  23614. * include/grub/pci.h (grub_pci_read_word): New inline function.
  23615. (grub_pci_read_byte): Likewise.
  23616. (grub_pci_write): Likewise.
  23617. (grub_pci_write_word): Likewise.
  23618. (grub_pci_write_byte): Likewise.
  23619. * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
  23620. * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
  23621. (find_framebuf): Scan pci to locate the frame buffer address.
  23622. * commands/efi/fixvideo.c: New file.
  23623. * commands/efi/loadbios.c: Likewise.
  23624. * commands/memrw.c: Likewise.
  23625. * util/grub-dumpbios.in: Likewise.
  23626. * conf/common.rmk (grub-dumpbios): New utility.
  23627. (pkglib_MODULES): New module memrw.mod.
  23628. (memrw_mod_SOURCE): New macro.
  23629. (memrw_mod_CFLAGS): Likewise.
  23630. (memrw_mod_LDFLAGS): Likewise.
  23631. * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
  23632. fixvideo.mod.
  23633. (loadbios_mod_SOURCE): New macro.
  23634. (loadbios_mod_CFLAGS): Likewise.
  23635. (loadbios_mod_LDFLAGS): Likewise.
  23636. (fixvideo_mod_SOURCE): Likewise.
  23637. (fixvideo_mod_CFLAGS): Likewise.
  23638. (fixvideo_mod_LDFLAGS): Likewise.
  23639. * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
  23640. fixvideo.mod.
  23641. (loadbios_mod_SOURCE): New macro.
  23642. (loadbios_mod_CFLAGS): Likewise.
  23643. (loadbios_mod_LDFLAGS): Likewise.
  23644. (fixvideo_mod_SOURCE): Likewise.
  23645. (fixvideo_mod_CFLAGS): Likewise.
  23646. (fixvideo_mod_LDFLAGS): Likewise.
  23647. 2009-04-08 Felix Zielcke <fzielcke@z-51.de>
  23648. * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
  23649. 2009-04-07 David S. Miller <davem@davemloft.net>
  23650. * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
  23651. support for R_SPARC_OLO10 relocations. Fix compile warning for
  23652. R_SPARC_WDISP30 case.
  23653. * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
  23654. 2009-04-06 Pavel Roskin <proski@gnu.org>
  23655. * include/grub/misc.h (ARRAY_SIZE): New macro.
  23656. * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
  23657. New macro.
  23658. * loader/i386/linux.c (allocate_pages): Use free_pages().
  23659. (grub_linux_unload): Don't use free_pages().
  23660. (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
  23661. wrong index. Treat all other modes as text modes.
  23662. (grub_cmd_linux): Initialize vid_mode unconditionally to
  23663. GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
  23664. * commands/help.c (print_command_help): Use cmd->prio, not
  23665. cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
  23666. 2009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
  23667. Parttool
  23668. * parttool/pcpart.c: new file
  23669. * commands/parttool.c: likewise
  23670. * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
  23671. (parttool_mod_SOURCES): new variable
  23672. (parttool_mod_CFLAGS): likewise
  23673. (parttool_mod_LDFLAGS): likewise
  23674. (pcpart_mod_SOURCES): likewise
  23675. (pcpart_mod_CFLAGS): likewise
  23676. (pcpart_mod_LDFLAGS): likewise
  23677. * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
  23678. and parttool/pcpart.c
  23679. * conf/i386-efi.rmk: likewise
  23680. * conf/i386-ieee1275.rmk: likewise
  23681. * conf/i386-pc.rmk: likewise
  23682. * conf/powerpc-ieee1275.rmk: likewise
  23683. * conf/sparc64-ieee1275.rmk: likewise
  23684. * conf/x86_64-ieee1275.rmk: likewise
  23685. 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
  23686. Support for mtime and further expandability of dir command
  23687. * include/grub/lib/datetime.h: moved to ...
  23688. * include/grub/datetime.h: ... moved here and added
  23689. declaration of grub_unixtime2datetime. All users updated
  23690. * include/grub/fs.h: new syntax for dir and mtime functions in
  23691. struct grub_fs
  23692. * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
  23693. and GRUB_FSHELP_FLAGS_MASK
  23694. * commands/ls.c (grub_ls_list_files): Write mtime in long format
  23695. * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
  23696. (grub_ext2_mtime): new function
  23697. * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
  23698. (grub_hfsplus_mtime): new function
  23699. * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
  23700. (GRUB_UFS_ATTR_FILE): likewise
  23701. (GRUB_UFS_ATTR_LNK): likewise
  23702. (struct grub_ufs_sblock): new fields mtime
  23703. (grub_ufs_read_inode): new parameter to read inode to a separate buffer
  23704. all users updated
  23705. (grub_ufs_dir): mtime support
  23706. (grub_ufs_mtime): new function
  23707. * fs/affs.c (grub_affs_dir): use new dir syntax
  23708. * fs/afs.c (grub_afs_dir): likewise
  23709. * fs/cpio.c (grub_cpio_dir): likewise
  23710. * fs/fat.c (grub_fat_find_dir): likewise
  23711. * fs/hfs.c (grub_hfs_dir): likewise
  23712. * fs/iso9660.c (grub_iso9660_dir): likewise
  23713. * fs/jfs.c (grub_jfs_dir): likewise
  23714. * fs/minix.c (grub_minix_dir): likewise
  23715. * fs/ntfs.c (grub_ntfs_dir): likewise
  23716. * fs/reiserfs.c (grub_reiserfs_dir): likewise
  23717. * fs/sfs.c (grub_sfs_dir): likewise
  23718. * fs/xfs.c (grub_xfs_dir): likewise
  23719. * util/hostfs.c (grub_hostfs_dir): likewise
  23720. * lib/datetime.c: moved to ...
  23721. * normal/datetime.c: ... moved here
  23722. (grub_unixtime2datetime): new function
  23723. * kern/rescue.c (grub_rescue_print_files): use new dir syntax
  23724. * normal/completion.c (iterate_dir): use new dir syntax
  23725. * normal/misc.c (grub_normal_print_device_info): tell the
  23726. last modification time of a volume
  23727. * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
  23728. * conf/common.rmk: added lib/datetime.c to ls.mod
  23729. * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
  23730. (normal_mod_SOURCES): likewise
  23731. (datetime_mod_SOURCES): Removed lib/datetime.c
  23732. * conf/i386-efi.rmk: likewise
  23733. * conf/i386-ieee1275.rmk: likewise
  23734. * conf/i386-pc.rmk: likewise
  23735. * conf/powerpc-ieee1275.rmk: likewise
  23736. * conf/sparc64-ieee1275.rmk: likewise
  23737. * conf/x86_64-efi.rmk: likewise
  23738. 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
  23739. Trim trailing spaces in FAT label and support mtools-like labels
  23740. * fs/fat.c (grub_fat_iterate_dir): New function based
  23741. on grub_fat_find_dir
  23742. (grub_fat_find_dir): use grub_fat_iterate_dir
  23743. (grub_fat_label): likewise
  23744. 2009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
  23745. * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
  23746. and command.h
  23747. remove extraneous kernel_elf_HEADERS
  23748. 2009-04-04 Bean <bean123ch@gnail.com>
  23749. * include/grub/util/misc.h: Add dummy function fsync for mingw.
  23750. * util/misc.c: Likewise.
  23751. 2009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
  23752. * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
  23753. instead of grub_printf.
  23754. 2009-04-03 Robert Millan <rmh@aybabtu.com>
  23755. * loader/i386/linux.c (grub_linux_setup_video): Fill
  23756. `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
  23757. values from `mode info' structure instead of hardcoded
  23758. values.
  23759. 2009-04-01 Pavel Roskin <proski@gnu.org>
  23760. * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
  23761. unused now.
  23762. * genmk.rb: Likewise.
  23763. * configure.ac: Likewise.
  23764. 2009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
  23765. * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
  23766. TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
  23767. 2009-04-01 David S. Miller <davem@davemloft.net>
  23768. * normal/sparc64/setjmp.S: Fix setjmp implementation.
  23769. * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
  23770. (grub_setjmp): Mark with 'returns_twice' attribute.
  23771. * include/grub/i386/setjmp.h (grub_setjmp): Likewise
  23772. * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
  23773. * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
  23774. 2009-04-01 Robert Millan <rmh@aybabtu.com>
  23775. Reapply fix from 2008-07-28 which was accidentally reverted; also
  23776. perform the same fix to a similar check in same function.
  23777. * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
  23778. with the same number are found, just use issue a warning with
  23779. grub_dprintf(), as this error has been reported to be non-fatal.
  23780. 2009-03-31 Pavel Roskin <proski@gnu.org>
  23781. * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
  23782. for cross-compilation.
  23783. 2009-03-30 Robert Millan <rmh@aybabtu.com>
  23784. Fix i386-ieee1275 build.
  23785. * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
  23786. Remove declaration.
  23787. 2009-03-30 Pavel Roskin <proski@gnu.org>
  23788. * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
  23789. (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
  23790. zero-terminated, rely only on the strlen value. Fix comparison
  23791. of strings differing in length.
  23792. 2009-03-30 Robert Millan <rmh@aybabtu.com>
  23793. * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
  23794. checking for abi version. Improve error messages on BIOS to notify
  23795. user about `linux16' command.
  23796. 2009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
  23797. Leak fixes
  23798. * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
  23799. in case of collision
  23800. * disk/scsi.c (grub_scsi_open): free scsi in case of error
  23801. 2009-03-29 Robert Millan <rmh@aybabtu.com>
  23802. * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
  23803. set `vid_mode' accordingly.
  23804. (grub_linux_boot): Process `vid_mode' and set video mode.
  23805. 2009-03-29 Robert Millan <rmh@aybabtu.com>
  23806. * util/grub.d/10_linux.in (linux_entry): New function.
  23807. Factorize generation of Linux boot entries.
  23808. 2009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
  23809. Make the format of Environment Block plain text. The boot loader
  23810. part is not tested well yet.
  23811. * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
  23812. (buffer): Removed.
  23813. (envblk): Likewise.
  23814. (usage): Remove "info" and "clear". Add "unset". Update the
  23815. description of "set", as this does not delete variables any
  23816. longer.
  23817. (create_envblk_file): Complete rewrite.
  23818. (open_envblk_file): Likewise.
  23819. (cmd_info): Removed.
  23820. (cmd_list): Likewise.
  23821. (cmd_set): Likewise.
  23822. (cmd_clear): Likewise.
  23823. (list_variables): New function.
  23824. (write_envblk): Likewise.
  23825. (set_variables): Likewise.
  23826. (unset_variables): Likewise.
  23827. (main): Complete rewrite.
  23828. * commands/loadenv.c (buffer): Removed.
  23829. (envblk): Likewise.
  23830. (open_envblk_file): New function.
  23831. (read_envblk_file): Complete rewrite.
  23832. (grub_cmd_load_env): Likewise.
  23833. (grub_cmd_list_env): Likewise.
  23834. (struct blocklist): New struct.
  23835. (free_blocklists): New function.
  23836. (check_blocklists): Likewise.
  23837. (write_blocklists): Likewise.
  23838. (grub_cmd_save_env): Complete rewrite.
  23839. * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
  23840. a plain text signature.
  23841. (GRUB_ENVBLK_MAXLEN): Removed.
  23842. (struct grub_envblk): Complete rewrite.
  23843. (grub_envblk_find): Removed.
  23844. (grub_envblk_insert): Likewise.
  23845. (grub_envblk_open): New prototype.
  23846. (grub_envblk_set): Likewise.
  23847. (grub_envblk_delete): Put const to VALUE.
  23848. (grub_envblk_iterate): Put const to NAME and VALUE.
  23849. (grub_envblk_close): New prototype.
  23850. (grub_envblk_buffer): New inline function.
  23851. (grub_envblk_size): Likewise.
  23852. * lib/envblk.c: Include grub/mm.h.
  23853. (grub_env_find): Removed.
  23854. (grub_envblk_open): New function.
  23855. (grub_envblk_close): Likewise.
  23856. (escaped_value_len): Likewise.
  23857. (find_next_line): Likewise.
  23858. (grub_envblk_insert): Removed.
  23859. (grub_envblk_set): New function.
  23860. (grub_envblk_delete): Complete rewrite.
  23861. (grub_envblk_iterate): Likewise.
  23862. 2009-03-28 Robert Millan <rmh@aybabtu.com>
  23863. * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
  23864. (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
  23865. variables. Use 16-bit loader.
  23866. (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
  23867. loader.
  23868. * kern/i386/loader.S (grub_linux_boot): Rename to ...
  23869. (grub_linux16_boot): ... this. Update all users.
  23870. * loader/i386/linux.c (grub_linux32_boot): Rename to ...
  23871. (grub_linux_boot): ... this. Update all users.
  23872. * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
  23873. (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
  23874. commands to `linux16' and `initrd16'.
  23875. (GRUB_MOD_FINI(linux)): Rename to ...
  23876. (GRUB_MOD_FINI(linux16)): ... this.
  23877. 2009-03-24 Pavel Roskin <proski@gnu.org>
  23878. * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
  23879. not just for compilation.
  23880. 2009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
  23881. Move multiboot helper out of kernel
  23882. * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
  23883. `loader/i386/multiboot_helper.S'.
  23884. * conf/i386-coreboot.rmk: Likewise
  23885. * conf/i386-ieee1275.rmk: Likewise
  23886. * kern/i386/loader.S: Move multiboot helpers from here...
  23887. * loader/i386/multiboot_helper.S: ...moved here
  23888. * include/grub/i386/loader.h: Move declarations of multiboot
  23889. helpers from here...
  23890. * include/grub/i386/multiboot.h: ...moved here
  23891. * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
  23892. 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
  23893. * kern/env.c (grub_env_context_open): Added an argument to specify
  23894. whether a new context inherits exported variables from current
  23895. one. This is useful when making a sandbox to interpret a config
  23896. file.
  23897. All callers updated.
  23898. * include/grub/env.h (grub_env_context_open): Updated the prototype.
  23899. 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
  23900. * kern/env.c (grub_env_context_close): Fix memory leaks.
  23901. 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
  23902. * normal/main.c (grub_normal_execute): Added an argument
  23903. BATCH to specify if an interactive interface should be provided
  23904. after reading a config file.
  23905. All callers updated.
  23906. (read_command_list): Prevent being executed twice.
  23907. (read_fs_list): Likewise.
  23908. * include/grub/normal.h (grub_normal_execute): Updated the
  23909. prototype.
  23910. 2009-03-22 Pavel Roskin <proski@gno.org>
  23911. * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
  23912. _start.
  23913. * kern/i386/pc/startup.S: Likewise.
  23914. * kern/i386/efi/startup.S: Likewise.
  23915. * kern/i386/ieee1275/startup.S: Likewise.
  23916. * kern/i386/coreboot/startup.S: Likewise.
  23917. * kern/x86_64/efi/startup.S: Likewise.
  23918. * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
  23919. * configure.ac: Don't call grub_CHECK_START_SYMBOL.
  23920. * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
  23921. 2009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
  23922. Bugfixes in multiboot for bugs uncovered by solaris kernel.
  23923. * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
  23924. limit detection.
  23925. Use vaddr of correct segment for entry_point.
  23926. 2009-03-21 Bean <bean123ch@gmail.com>
  23927. * commands/blocklist.c: Add include file <grub/command.h>, remove
  23928. <grub/normal.h> and <grub/arg.h>.
  23929. (grub_cmd_blocklist): Use the new command interface.
  23930. (GRUB_MOD_INIT): Likewise.
  23931. (GRUB_MOD_FINI): Likewise.
  23932. * commands/boot.c: Likewise.
  23933. * commands/cat.c: Likewise.
  23934. * commands/cmp.c: Likewise.
  23935. * commands/configfile.c: Likewise.
  23936. * commands/crc.c: Likewise.
  23937. * commands/echo.c: Likewise.
  23938. * commands/halt.c: Likewise.
  23939. * commands/handler.c: Likewise.
  23940. * commands/hdparm.c: Likewise.
  23941. * commands/help.c: Likewise.
  23942. * commands/hexdump.c: Likewise.
  23943. * commands/loadenv.c: Likewise.
  23944. * commands/ls.c: Likewise.
  23945. * commands/lsmmap.c: Likewise.
  23946. * commands/lspci.c: Likewise.
  23947. * commands/loadenv.c: Likewise.
  23948. * commands/read.c: Likewise.
  23949. * commands/reboot.c: Likewise.
  23950. * commands/search.c: Likewise.
  23951. * commands/sleep.c: Likewise.
  23952. * commands/test.c: Likewise.
  23953. * commands/usbtest.c: Likewise.
  23954. * commands/videotest.c: Likewise.
  23955. * commands/i386/cpuid.c: Likewise.
  23956. * commands/i386/pc/halt.c: Likewise.
  23957. * commands/i386/pc/play.c: Likewise.
  23958. * commands/i386/pc/pxecmd.c: Likewise.
  23959. * commands/i386/pc/vbeinfo.c: Likewise.
  23960. * commands/i386/pc/vbetest.c: Likewise.
  23961. * commands/ieee1275/suspend.c: Likewise.
  23962. * disk/loopback.c: Likewise.
  23963. * font/font_cmd.c: Likewise.
  23964. * hello/hello.c: Likewise.
  23965. * loader/efi/appleloader.c: Likewise.
  23966. * loader/efi/chainloader.c: Likewise.
  23967. * loader/i386/bsd.c: Likewise.
  23968. * loader/i386/efi/linux.c: Likewise.
  23969. * loader/i386/ieee1275/linux.c: Likewise.
  23970. * loader/i386/linux.c: Likewise.
  23971. * loader/i386/pc/chainloader.c: Likewise.
  23972. * loader/i386/pc/linux.c: Likewise.
  23973. * loader/powerpc/ieee1275/linux.c: Likewise.
  23974. * loader/multiboot_loader.c: Likewise.
  23975. * term/gfxterm.c: Likewise.
  23976. * term/i386/pc/serial.c: Likewise.
  23977. * term/terminfo.c: Likewise.
  23978. * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
  23979. * term/i386/pc/vga.c: Likewise.
  23980. * video/readers/jpeg.c: Likewise.
  23981. * video/readers/png.c: Likewise.
  23982. * video/readers/tga.c: Likewise.
  23983. * util/grub-fstest (cmd_loopback): Removed.
  23984. (cmd_blocklist): Likewise.
  23985. (cmd_ls): Likewise.
  23986. (grub_register_command): Likewise.
  23987. (grub_unregister_command): Likewise.
  23988. (execute_command): Use grub_command_find to locate command and execute
  23989. it.
  23990. * include/grub/efi/chainloader.h: Removed.
  23991. * loader/efi/chainloader_normal.c: Likewise.
  23992. * loader/i386/bsd_normal.c: Likewise.
  23993. * loader/i386/pc/chainloader_normal.c: Likewise.
  23994. * loader/i386/pc/multiboot_normal.c: Likewise.
  23995. * loader/linux_normal.c: Likewise.
  23996. * loader/multiboot_loader_normal.c: Likewise.
  23997. * loader/powerpc/ieee1275/linux_normal.c: Likewise.
  23998. * gencmdlist.sh: Scan new registration command grub_register_extcmd
  23999. and grub_register_command_p1.
  24000. * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
  24001. kern/command.c, lib/arg.c and commands/extcmd.c.
  24002. (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
  24003. (minicmd_mod_SOURCES): New variable.
  24004. (minicmd_mod_CFLAGS): Likewise.
  24005. (minicmd_mod_LDFLAGS): Likewise.
  24006. (extcmd_mod_SOURCES): Likewise.
  24007. (extcmd_mod_CFLAGS): Likewise.
  24008. (extcmd_mod_LDFLAGS): Likewise.
  24009. (boot_mod_SOURCES): Removed.
  24010. (boot_mod_CFLAGS): Likewise.
  24011. (boot_mod_LDFLAGS): Likewise.
  24012. * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
  24013. kern/corecmd.c.
  24014. (kernel_img_HEADERS): Add command.h.
  24015. (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
  24016. commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
  24017. and lib/arg.c.
  24018. (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
  24019. _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
  24020. remove the corresponding normal mode command.
  24021. (normal_mod_SOURCES): Remove normal/arg.c.
  24022. * conf/i386-coreboot.rmk: Likewise.
  24023. * conf/i386-efi.rmk: Likewise.
  24024. * conf/i386-ieee1275.rmk: Likewise.
  24025. * conf/powerpc-ieee1275.rmk: Likewise.
  24026. * conf/x86_64-efi.rmk: Likewise.
  24027. * include/grub/arg.h: Move from here ...
  24028. * include/grub/lib/arg.h: ... to here.
  24029. * normal/arg.c: Move from here ...
  24030. * lib/arg.c: ... to here.
  24031. * commands/extcmd.c: New file.
  24032. * commands/minicmd.c: Likewise.
  24033. * include/grub/command.h: Likewise.
  24034. * include/grub/extcmd.h: Likewise.
  24035. * kern/command.c: Likewise.
  24036. * kern/corecmd.c: Likewise.
  24037. * kern/list.c (grub_list_iterate): Return int instead of void.
  24038. (grub_list_insert): New function.
  24039. (grub_prio_list_insert): Likewise.
  24040. * kern/rescue.c (grub_rescue_command): Removed.
  24041. (grub_rescue_command_list): Likewise.
  24042. (grub_rescue_register_command): Likewise.
  24043. (grub_rescue_unregister_command): Likewise.
  24044. (grub_rescue_cmd_boot): Move to minicmd.c
  24045. (grub_rescue_cmd_help): Likewise.
  24046. (grub_rescue_cmd_info): Likewise.
  24047. (grub_rescue_cmd_boot): Likewise.
  24048. (grub_rescue_cmd_testload): Likewise.
  24049. (grub_rescue_cmd_dump): Likewise.
  24050. (grub_rescue_cmd_rmmod): Likewise.
  24051. (grub_rescue_cmd_lsmod): Likewise.
  24052. (grub_rescue_cmd_exit): Likewise.
  24053. (grub_rescue_print_devices): Moved to corecmd.c.
  24054. (grub_rescue_print_files): Likewise.
  24055. (grub_rescue_cmd_ls): Likewise.
  24056. (grub_rescue_cmd_insmod): Likewise.
  24057. (grub_rescue_cmd_set): Likewise.
  24058. (grub_rescue_cmd_unset): Likewise.
  24059. (attempt_normal_mode): Use grub_command_find to get normal module.
  24060. (grub_enter_rescue_mode): Use grub_register_core_commands to register
  24061. commands, remove grub_rescue_register_command calls.
  24062. * normal/command.c (grub_register_command): Removed.
  24063. (grub_unregister_command): Likewise.
  24064. (grub_command_find): Likewise.
  24065. (grub_iterate_commands): Likewise.
  24066. (rescue_command): Likewise.
  24067. (export_command): Moved to corecmd.c.
  24068. (set_command): Removed.
  24069. (unset_command): Likewise.
  24070. (insmod_command): Likewise.
  24071. (rmmod_command): Likewise.
  24072. (lsmod_command): Likewise.
  24073. (grub_command_init): Likewise.
  24074. * normal/completion.c (iterate_command): Use cmd->prio to check for
  24075. active command.
  24076. (complete_arguments): Use grub_extcmd_t structure to find options.
  24077. (grub_normal_do_completion): Change function grub_iterate_commands to
  24078. grub_command_iterate.
  24079. * normal/execute.c (grub_script_execute_cmd): No need to parse
  24080. argument here.
  24081. * normal/main.c (grub_dyncmd_dispatcher): New function.
  24082. (read_command_list): Register unload commands as dyncmd.
  24083. (grub_cmd_normal): Use new command interface, register rescue,
  24084. unregister normal at entry, register normal, unregister rescue at exit.
  24085. * include/grub/list.h (grub_list_test_t): New type.
  24086. (grub_list_iterate): Return int instead of void.
  24087. (grub_list_insert): New function.
  24088. (GRUB_AS_NAMED_LIST_P): New macro.
  24089. (GRUB_AS_PRIO_LIST): Likewise.
  24090. (GRUB_AS_PRIO_LIST_P): Likewise.
  24091. (GRUB_PRIO_LIST_PRIO_MASK): New constant.
  24092. (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
  24093. (grub_prio_list): New structure.
  24094. (grub_prio_list_insert): New function.
  24095. (grub_prio_list_remove): New inline function.
  24096. * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
  24097. (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
  24098. (GRUB_COMMAND_FLAG_MENU): Likewise.
  24099. (GRUB_COMMAND_FLAG_BOTH): Likewise.
  24100. (GRUB_COMMAND_FLAG_TITLE): Likewise.
  24101. (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
  24102. (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
  24103. (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
  24104. (grub_command): Likewise.
  24105. (grub_register_command): Likewise.
  24106. (grub_command_find): Likewise.
  24107. (grub_iterate_commands): Likewise.
  24108. (grub_command_init): Likewise.
  24109. (grub_arg_parse): Likewise.
  24110. (grub_arg_show_help): Likewise.
  24111. * include/grub/rescue.h (grub_rescue_register_command): Removed.
  24112. (grub_rescue_unregister_command): Likewise.
  24113. * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
  24114. grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
  24115. grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
  24116. * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
  24117. grub_rescue_cmd_initrd.
  24118. * include/grub/i386/loader.h: Likewise.
  24119. * include/grub/x86_64/loader.h: Likewise.
  24120. * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
  24121. 2009-03-21 Bean <bean123ch@gmail.com>
  24122. * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
  24123. instead of stat in mingw environment.
  24124. * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
  24125. * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
  24126. * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
  24127. AC_CONFIG_LINKS.
  24128. 2009-03-21 Bean <bean123ch@gmail.com>
  24129. * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
  24130. out of range error.
  24131. 2009-03-18 Michel Dänzer <michel@daenzer.net>
  24132. * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
  24133. checking inode flags for EXT4_EXTENTS_FLAG.
  24134. 2009-03-18 Robert Millan <rmh@aybabtu.com>
  24135. * loader/i386/linux.c: Include `<grub/video.h>' and
  24136. `<grub/i386/pc/vbe.h>'..
  24137. (grub_linux_setup_video): New function. Loosely based on the EFI one.
  24138. (grub_linux32_boot): Attempt to configure video settings with
  24139. grub_linux_setup_video().
  24140. (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
  24141. to avoid grub_console_fini() which would step out of graphical mode
  24142. unconditionally.
  24143. 2009-03-14 Robert Millan <rmh@aybabtu.com>
  24144. Fix build on powerpc.
  24145. * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
  24146. 2009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
  24147. * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
  24148. background image command.
  24149. 2009-03-12 Colin D Bennett <colin@gibibit.com>
  24150. * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
  24151. (grub_gfxterm_putchar): Extract pairs of identical calls to
  24152. draw_cursor out of conditional blocks.
  24153. 2009-03-11 Pavel Roskin <proski@gnu.org>
  24154. * fs/hfs.c (grub_hfs_strncasecmp): New function.
  24155. (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
  24156. 2009-03-11 Robert Millan <rmh@aybabtu.com>
  24157. * loader/i386/multiboot_elfxx.c
  24158. (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
  24159. 2009-03-11 Felix Zielcke <fzielcke@z-51.de>
  24160. * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
  24161. `kern/handler.c'.
  24162. 2009-03-11 Robert Millan <rmh@aybabtu.com>
  24163. * loader/i386/multiboot.c (code_size): New variable.
  24164. (grub_multiboot): Define offsets by adding to `code_size' rather
  24165. than subtracting from `grub_multiboot_payload_size'. Provide
  24166. 4-byte alignment to MBI and others by increasing
  24167. `boot_loader_name_length' appropriately.
  24168. * loader/i386/multiboot_elfxx.c
  24169. (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
  24170. 2009-03-09 Felix Zielcke <fzielcke@z-51.de>
  24171. * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
  24172. `fs/ext2.c'.
  24173. 2009-03-08 Robert Millan <rmh@aybabtu.com>
  24174. Make loader/i386/linux.c usable on i386-pc again.
  24175. * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
  24176. memory to heap.
  24177. * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
  24178. `#error' stanza.
  24179. 2009-03-07 Bean <bean123ch@gmail.com>
  24180. * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
  24181. allocation.
  24182. 2009-03-06 Robert Millan <rmh@aybabtu.com>
  24183. Fix display issue on terminals with screen size other than 80x25
  24184. (e.g. gfxterm with resolution higher than 640x480).
  24185. * normal/main.c (grub_normal_init_page): Display title text in a
  24186. position relative to the center of the terminal instead of relying
  24187. on a hardcoded offset.
  24188. 2009-03-04 Robert Millan <rmh@aybabtu.com>
  24189. Filter /etc/grub.d/10_* so that only add-ons for native kernels are
  24190. installed.
  24191. * Makefile.in (host_kernel): New variable.
  24192. * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
  24193. scripts instead of just the windows one.
  24194. * configure.ac: Initialize and AC_SUBST `host_kernel'.
  24195. 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
  24196. * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
  24197. `kern/handler.c'.
  24198. * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
  24199. * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
  24200. * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
  24201. * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
  24202. * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
  24203. * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
  24204. 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
  24205. * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
  24206. or if there's no space for the disk label and print the partition number on a
  24207. invalid magic.
  24208. 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
  24209. * util/misc.c: Include <time.h>.
  24210. (grub_millisleep): New function.
  24211. 2009-03-04 Bean <bean123ch@gmail.com>
  24212. * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
  24213. another option -mno-red-zone.
  24214. * commands/handler.c: Change module description.
  24215. * kern/handler.c: Add missing space at the end of description line.
  24216. * kern/list.c: Likewise.
  24217. 2009-03-03 Robert Millan <rmh@aybabtu.com>
  24218. Move more components to the relocation area, and fix mbi pointer
  24219. handling to use the destination rather than the origin (thanks to
  24220. Vladimir Serbinenko for spotting).
  24221. * loader/i386/multiboot.c (mbi_dest): New variable.
  24222. (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
  24223. (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
  24224. relocation area.
  24225. 2009-03-01 Bean <bean123ch@gmail.com>
  24226. * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
  24227. (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
  24228. (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
  24229. (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
  24230. * loader/i386/efi/linux.c (acpi_guid): New variable.
  24231. (acpi_guid): Likewise.
  24232. (EBDA_SEG_ADDR): New constant.
  24233. (LOW_MEM_ADDR): Likewise.
  24234. (FAKE_EBDA_SEG): Likewise.
  24235. (fake_bios_data): New function.
  24236. (grub_linux_boot): Call fake_bios_data.
  24237. 2009-03-01 Bean <bean123ch@gmail.com>
  24238. * commands/terminal.c: Removed.
  24239. * commands/handler.c: New file.
  24240. * include/grub/list.h: Likewise.
  24241. * include/grub/handler.h: Likewise.
  24242. * kern/list.c: Likewise.
  24243. * kern/handler.c: Likewise.
  24244. * kern/term.h: Include header file <grub/handler.h>.
  24245. (grub_term_input): Move next field to the beginning.
  24246. (grub_term_output): Likewise.
  24247. (grub_term_input_class): New variable.
  24248. (grub_term_output_class): Likewise.
  24249. (grub_term_register_input): Changed to inline function.
  24250. (grub_term_register_output): Likewise.
  24251. (grub_term_unregister_input): Likewise.
  24252. (grub_term_unregister_output): Likewise.
  24253. (grub_term_set_current_input): Likewise.
  24254. (grub_term_set_current_output): Likewise.
  24255. (grub_term_get_current_input): Likewise.
  24256. (grub_term_get_current_output): Likewise.
  24257. (grub_term_iterate_input): Removed.
  24258. (grub_term_iterate_output): Likewise.
  24259. * kern/term.c (grub_term_list_input): Removed.
  24260. (grub_term_list_output): Likewise.
  24261. (grub_term_input_class): New variable.
  24262. (grub_term_output_class): Likewise.
  24263. (grub_cur_term_input): Change variable as macro.
  24264. (grub_cur_term_output): Likewise.
  24265. (grub_term_register_input): Removed.
  24266. (grub_term_register_output): Likewise.
  24267. (grub_term_unregister_input): Likewise.
  24268. (grub_term_unregister_output): Likewise.
  24269. (grub_term_set_current_input): Likewise.
  24270. (grub_term_set_current_output): Likewise.
  24271. (grub_term_iterate_input): Likewise.
  24272. (grub_term_iterate_output): Likewise.
  24273. (grub_term_get_current_input): Likewise.
  24274. (grub_term_get_current_output): Likewise.
  24275. * util/grub-editenv.c: Include header file <grub/handler.h>.
  24276. (grub_term_get_current_input): Removed.
  24277. (grub_term_get_current_output): Likewise.
  24278. (grub_term_input_class): New variable.
  24279. (grub_term_output_class): Likewise.
  24280. * util/grub-fstest.c (grub_term_get_current_input): Removed.
  24281. (grub_term_get_current_output): Likewise.
  24282. (grub_term_input_class): New variable.
  24283. (grub_term_output_class): Likewise.
  24284. * util/grub-probe.c (grub_term_get_current_input): Removed.
  24285. (grub_term_get_current_output): Likewise.
  24286. (grub_term_input_class): New variable.
  24287. (grub_term_output_class): Likewise.
  24288. * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
  24289. (grub_term_get_current_output): Likewise.
  24290. (grub_term_input_class): New variable.
  24291. (grub_term_output_class): Likewise.
  24292. * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
  24293. (terminal_mod_SOURCES): Likewise.
  24294. (terminal_mod_CFLAGS): Likewise.
  24295. (terminal_mod_LDFLAGS): Likewise.
  24296. * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
  24297. handler.c.
  24298. (kernel_img_SOURCES): Add list.c and handler.c.
  24299. (kernel_img_HEADERS): Add list.h and handler.h.
  24300. * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
  24301. handler.c.
  24302. (kernel_mod_SOURCES): Add list.c and handler.c.
  24303. (kernel_mod_HEADERS): Add list.h and handler.h.
  24304. * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
  24305. handler.c.
  24306. (kernel_elf_SOURCES): Add list.c and handler.c.
  24307. (kernel_elf_HEADERS): Add list.h and handler.h.
  24308. * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
  24309. handler.c.
  24310. (kernel_elf_SOURCES): Add list.c and handler.c.
  24311. (kernel_elf_HEADERS): Add list.h and handler.h.
  24312. * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
  24313. handler.c.
  24314. (kernel_mod_SOURCES): Add list.c and handler.c.
  24315. (kernel_mod_HEADERS): Add list.h and handler.h.
  24316. * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
  24317. handler.c.
  24318. (kernel_elf_SOURCES): Add list.c and handler.c.
  24319. (kernel_elf_HEADERS): Add list.h and handler.h.
  24320. 2009-02-27 Robert Millan <rmh@aybabtu.com>
  24321. Factorize elf32 / elf64 code in Multiboot loader. This will
  24322. prevent it from getting out of sync again.
  24323. * loader/i386/multiboot.c (grub_multiboot_is_elf32,
  24324. grub_multiboot_load_elf32, grub_multiboot_is_elf64,
  24325. grub_multiboot_load_elf64): Move from here ...
  24326. * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
  24327. grub_multiboot_load_elf): ... to here (new file).
  24328. 2009-02-27 Robert Millan <rmh@aybabtu.com>
  24329. * util/grub.d/10_linux.in: Rename "single-user mode" to
  24330. "recovery mode".
  24331. 2009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
  24332. Don't leak in SCSI code.
  24333. * disk/scsi.c (grub_scsi_close): free `scsi'.
  24334. 2009-02-27 Robert Millan <rmh@aybabtu.com>
  24335. * loader/i386/pc/multiboot.c: Move from here ...
  24336. * loader/i386/multiboot.c: ... to here. Update all users.
  24337. 2009-02-27 Robert Millan <rmh@aybabtu.com>
  24338. Patch from Alexandre Bique <bique.alexandre@gmail.com>
  24339. * util/i386/pc/grub-setup.c (setup): Fix directory path.
  24340. 2009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
  24341. * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
  24342. b-tree.
  24343. 2009-02-27 Robert Millan <rmh@aybabtu.com>
  24344. * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
  24345. `0x' qualifier as 0 when base is specified as parameter).
  24346. 2009-02-24 Bean <bean123ch@gmail.com>
  24347. * configure.ac: Check for -mcmodel=large in x86_64 target.
  24348. * include/grub/efi/api.h (efi_call_10): New macro.
  24349. (efi_wrap_10): New function.
  24350. * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
  24351. (GRUB_PE32_REL_BASED_HIGH): Likewise.
  24352. (GRUB_PE32_REL_BASED_LOW): Likewise.
  24353. (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
  24354. (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
  24355. (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
  24356. (GRUB_PE32_REL_BASED_SECTION): Likewise.
  24357. (GRUB_PE32_REL_BASED_REL): Likewise.
  24358. (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
  24359. (GRUB_PE32_REL_BASED_DIR64): Likewise.
  24360. (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
  24361. * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
  24362. issue.
  24363. * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
  24364. (efi_wrap_10): New function.
  24365. * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
  24366. * loader/efi/appleloader.c (devpath_5): Add support for late 2008
  24367. MB/MBP model (NV chipset).
  24368. (devdata_devs): Add devpath_5 to the list.
  24369. * load/i386/efi/linux.c (video_base): Remove variable.
  24370. (RGB_MASK): New macro.
  24371. (RGB_MAGIC): Likewise.
  24372. (LINE_MIN): Likewise.
  24373. (LINE_MAX): Likewise.
  24374. (FBTEST_STEP): Likewise.
  24375. (FBTEST_COUNT): Likewise.
  24376. (fb_list): New variable.
  24377. (grub_find_video_card): Remove function.
  24378. (find_framebuf): New function.
  24379. (grub_linux_setup_video): Use find_framebuf to get frame buffer and
  24380. line length.
  24381. * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
  24382. problem for x86_64.
  24383. 2009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
  24384. Patch #25624 by Kevin Lacquement <kevin@lacqui>.
  24385. * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
  24386. coding tool name.
  24387. 2009-02-22 Robert Millan <rmh@aybabtu.com>
  24388. * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
  24389. * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
  24390. in our relocation, instead of using it directly from heap. Also
  24391. use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
  24392. 2009-02-21 Robert Millan <rmh@aybabtu.com>
  24393. Implement USB keyboard support (based on patch by Marco Gerards)
  24394. * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
  24395. (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
  24396. (usb_keyboard_mod_LDFLAGS): New variables.
  24397. * term/usb_keyboard.c: New file.
  24398. 2009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
  24399. Corrected wrong declaration
  24400. * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
  24401. 2009-02-14 Christian Franke <franke@computer.org>
  24402. * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
  24403. (grub_lspci_iter): Print class code and programming interface byte.
  24404. 2009-02-14 Christian Franke <franke@computer.org>
  24405. * gendistlist.sh: Ignore `.svn' directories.
  24406. 2009-02-14 Felix Zielcke <fzielcke@z-51.de>
  24407. * fs/fat.c: Add 2009 to Copyright line.
  24408. 2009-02-14 Christian Franke <franke@computer.org>
  24409. * commands/hdparm.c: New file. Provides `hdparm' command
  24410. which sends ATA commands via grub_disk_ata_pass_through ().
  24411. * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
  24412. * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
  24413. and <grub/cpu/io.h> to include/grub/ata.h.
  24414. (enum grub_ata_addressing_t): Move to include/grub/ata.h.
  24415. (GRUB_CDROM_SECTOR_SIZE): Remove.
  24416. (GRUB_ATA_*): Move to include/grub/ata.h.
  24417. (GRUB_ATAPI_*): Likewise.
  24418. (enum grub_ata_commands): Likewise.
  24419. (enum grub_ata_timeout_milliseconds): Likewise.
  24420. (struct grub_ata_device): Likewise.
  24421. (grub_ata_regset): Likewise.
  24422. (grub_ata_regget): Likewise.
  24423. (grub_ata_regset2): Likewise.
  24424. (grub_ata_regget2): Likewise.
  24425. (grub_ata_check_ready): Likewise.
  24426. (grub_ata_wait_not_busy): Remove static, exported in
  24427. include/grub/ata.h.
  24428. (grub_ata_wait_drq): Likewise.
  24429. (grub_ata_pio_read): Likewise.
  24430. * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
  24431. function for hdparm.mod.
  24432. * include/grub/ata.h: New file, contains declarations from
  24433. disk/ata.c.
  24434. (enum grub_ata_commands): Add new commands for commands/hdparm.c.
  24435. * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
  24436. (grub_disk_ata_pass_through): New exported variable.
  24437. * kern/disk.c (grub_disk_ata_pass_through): New variable.
  24438. 2009-02-13 Colin D Bennett <colin@gibibit.com>
  24439. Support multiple fallback entries, and provide an API to support
  24440. executing default+fallback menu entries. Renamed the `terminal' menu
  24441. viewer to `text'.
  24442. * include/grub/normal.h (grub_normal_text_menu_viewer): New global
  24443. variable declaration.
  24444. (grub_menu_execute_callback): New structure declaration.
  24445. (grub_menu_execute_callback_t): New typedef.
  24446. (grub_menu_execute_with_fallback): New function declaration.
  24447. (grub_menu_get_entry): Likewise.
  24448. (grub_menu_get_timeout): Likewise.
  24449. (grub_menu_set_timeout): Likewise.
  24450. * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
  24451. * normal/menu.c (grub_wait_after_message): Moved to
  24452. `normal/menu_text.c'.
  24453. (draw_border): Likewise.
  24454. (print_message): Likewise.
  24455. (print_entry): Likewise.
  24456. (print_entries): Likewise.
  24457. (grub_menu_init_page): Likewise.
  24458. (get_entry_number): Likewise.
  24459. (print_timeout): Likewise.
  24460. (run_menu): Likewise.
  24461. (grub_menu_execute_entry): Likewise.
  24462. (show_text_menu): Likewise.
  24463. (get_and_remove_first_entry_number): New function.
  24464. (grub_menu_execute_with_fallback): Likewise.
  24465. (get_entry): Renamed to ...
  24466. (grub_menu_get_entry): .. this and made it global.
  24467. (get_timeout): Renamed to ...
  24468. (grub_menu_get_timeout): ... this and made it global.
  24469. (set_timeout): Renamed to ...
  24470. (grub_menu_set_timeout): ... this and made it global.
  24471. (grub_normal_terminal_menu_viewer): Renamed to ...
  24472. (grub_normal_text_menu_viewer): ... this.
  24473. * normal/menu_text.c: New file. Extracted text-menu-specific code
  24474. from normal/menu.c.
  24475. * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
  24476. (normal_mod_SOURCES): Likewise.
  24477. * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
  24478. (normal_mod_SOURCES): Likewise.
  24479. * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
  24480. (normal_mod_SOURCES): Likewise.
  24481. * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
  24482. (normal_mod_SOURCES): Likewise.
  24483. * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
  24484. (normal_mod_SOURCES): Likewise.
  24485. * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
  24486. (normal_mod_SOURCES): Likewise.
  24487. * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
  24488. (normal_mod_SOURCES): Likewise.
  24489. 2009-02-11 Robert Millan <rmh@aybabtu.com>
  24490. * util/grub.d/00_header.in: Update old reference to `font' command.
  24491. 2009-02-10 Felix Zielcke <fzielcke@z-51.de>
  24492. * fs/fat.c (grub_fat_mount): Fix wrong comparison.
  24493. Based on patch from Javier Martín.
  24494. 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
  24495. * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
  24496. to avoid false positives with FAT.
  24497. (grub_fstest_SOURCES): Likewise.
  24498. * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
  24499. * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
  24500. * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
  24501. * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
  24502. * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
  24503. * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
  24504. 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
  24505. * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
  24506. bpb.version_specific.fat12_or_fat16.fstype and
  24507. bpb.version_specific.fat32.fstype.
  24508. 2009-02-08 Robert Millan <rmh@aybabtu.com>
  24509. * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
  24510. 2009-02-08 Robert Millan <rmh@aybabtu.com>
  24511. * Makefile.in (host_os, host_cpu): New variables.
  24512. (target_os): Remove. Update all users.
  24513. 2009-02-08 Marco Gerards <marco@gnu.org>
  24514. * Makefile.in (enable_grub_emu_usb): New variable.
  24515. * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
  24516. (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
  24517. `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
  24518. (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
  24519. (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
  24520. `usbtest.mod' and `usbms.mod'.
  24521. (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
  24522. (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
  24523. (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
  24524. (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
  24525. (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
  24526. variables.
  24527. * disk/usbms.c: New file.
  24528. * include/grub/usb.h: Likewise.
  24529. * include/grub/usbtrans.h: Likewise.
  24530. * include/grub/usbdesc.h: Likewise.
  24531. * bus/usb/usbtrans.c: Likewise.
  24532. * bus/usb/ohci.c: Likewise.
  24533. * bus/usb/uhci.c: Likewise.
  24534. * bus/usb/usbhub.c: Likewise.
  24535. * bus/usb/usb.c: Likewise.
  24536. * commands/usbtest.c: Likewise.
  24537. * util/usb.c: Likewise.
  24538. * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
  24539. * configure.ac: Test for libusb presence.
  24540. * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
  24541. 2009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
  24542. * kern/mm.c: Add more comments.
  24543. 2009-02-08 Robert Millan <rmh@aybabtu.com>
  24544. Patch from Javier Martín.
  24545. * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
  24546. `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
  24547. 2009-02-08 Robert Millan <rmh@aybabtu.com>
  24548. * fs/cpio.c: Split tar functionality to ...
  24549. * fs/tar.c: ... here (new file). Update all users.
  24550. 2009-02-07 Robert Millan <rmh@aybabtu.com>
  24551. * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
  24552. backward-incompatible features.
  24553. Based on patch from Javier Martín, with some adjustments.
  24554. 2009-02-07 Michael Scherer <misc@mandriva.org>
  24555. * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
  24556. 2009-02-07 Robert Millan <rmh@aybabtu.com>
  24557. * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
  24558. position of `disk/lvm.c' to ensure grub_init_all() always picks it
  24559. after the RAID stuff.
  24560. 2009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
  24561. Fixes problem when running vbetest command as reported by
  24562. Vladimir Serbinenko <phcoder@gmail.com>.
  24563. * (grub_vbe_set_video_mode): Fixed problem with text modes.
  24564. 2009-02-04 Felix Zielcke <fzielcke@z-51.de>
  24565. util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
  24566. /dev/md/NpN style mdraid devices.
  24567. 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
  24568. * util/unifont2pff.rb: Remove.
  24569. 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
  24570. * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
  24571. `#'.
  24572. 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
  24573. * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
  24574. * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
  24575. * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
  24576. * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
  24577. * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
  24578. * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
  24579. * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
  24580. 2009-02-02 Christian Franke <franke@computer.org>
  24581. * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
  24582. 2009-02-01 Felix Zielcke <fzielcke@z-51.de>
  24583. * INSTALL: Note that we now require at least autoconf 2.59 and
  24584. that LZO is optional.
  24585. 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
  24586. Base on patch on bug #24154 created by Tomas Tintera
  24587. <trosos@seznam.cz>.
  24588. * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
  24589. 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
  24590. Based on patch on bug #25318 created by Bernhard Rosenkraenzer
  24591. <bero@arklinux.org>.
  24592. * normal/parser.y (script_init): Add missing semicolon.
  24593. 2009-01-31 Colin D Bennett <colin@gibibit.com>
  24594. * normal/main.c: Add include to grub/menu_viewer.h.
  24595. (free_menu_entry_classes): Added.
  24596. (grub_normal_menu_addentry): Added class property handling.
  24597. (grub_normal_execute): Changed to use new menu viewer for menu viewing.
  24598. (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
  24599. * normal/menu_viewer.c: New file.
  24600. * normal/menu.c (run_menu_entry): Renamed to ...
  24601. (grub_menu_execute_entry): ... this and made it as global.
  24602. (grub_menu_run): Renamed to ...
  24603. (show_text_menu): ... this and made it local.
  24604. (show_text_menu): Adapt to new function names.
  24605. (grub_normal_terminal_menu_viewer): New global variable.
  24606. * include/grub/menu.h: New file.
  24607. * include/grub/menu_viewer.h: New file.
  24608. * include/grub/normal.h: Added include to grub/menu.h.
  24609. (grub_menu_entry): Moved to include/grub/menu.h.
  24610. (grub_menu_entry_t): Likewise.
  24611. (grub_menu): Likewise.
  24612. (grub_menu_t): Likewise.
  24613. (grub_normal_terminal_menu_viewer): Added.
  24614. (grub_menu_execute_entry): Likewise.
  24615. (grub_menu_run): Removed.
  24616. * DISTLIST: Added include/grub/menu.h.
  24617. Added include/grub/menu_viewer.h.
  24618. Added normal/menu_viewer.c.
  24619. 2009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
  24620. * normal/execute.c (grub_script_execute_menuentry): Changed to use
  24621. arglist for menutitle arguments.
  24622. * normal/main.c (grub_normal_menu_addentry): Likewise.
  24623. * normal/parser.y (menuentry): Likewise.
  24624. * normal/script.c (grub_script_create_cmdmenu): Likewise.
  24625. * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
  24626. (grub_script_create_cmdmenu): Likewise.
  24627. * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
  24628. * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
  24629. changes.
  24630. * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
  24631. * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
  24632. * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
  24633. * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
  24634. * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
  24635. * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
  24636. 2009-01-30 Christian Franke <franke@computer.org>
  24637. * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
  24638. in option help text.
  24639. 2009-01-27 Pavel Roskin <proski@gnu.org>
  24640. * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
  24641. 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
  24642. * commands/lsmmap.c: Add include to grub/machine/memory.h.
  24643. * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
  24644. * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
  24645. unregister function.
  24646. 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
  24647. * disk/scsi.c (grub_scsi_read): Fix sign problem.
  24648. * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
  24649. * util/grub-mkfont.c (usage): Fix typo.
  24650. * util/elf/grub-mkimage.c (load_modules): Fix warning.
  24651. 2009-01-26 Daniel Mierswa <impulze@impulze.org>
  24652. * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
  24653. * commands/search.c (search_fs_uuid): Ignore case of the UUID.
  24654. * kern/misc.c (grub_strcasecmp): New function.
  24655. (grub_strcasecmp): Use grub_size_t instead of int for length.
  24656. Fix return value.
  24657. * include/grub/misc.h: Update function prototypes.
  24658. 2009-01-26 Robert Millan <rmh@aybabtu.com>
  24659. * configure.ac: Fix cross-compilation check.
  24660. 2009-01-22 Christian Franke <franke@computer.org>
  24661. * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
  24662. (precision) digit string. Allow `.format2' without `format1' (width).
  24663. Limit input chars for `%s' output to `format2' if specified. This is
  24664. compatible with standard printf ().
  24665. 2009-01-22 Christian Franke <franke@computer.org>
  24666. * disk/ata.c (grub_ata_wait_status): Replace by ...
  24667. (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
  24668. other status bits may be invalid while BSY is asserted.
  24669. (grub_ata_check_ready): New function.
  24670. (grub_ata_cmd): Removed.
  24671. (grub_ata_wait_drq): New function.
  24672. (grub_ata_strncpy): Remove inline.
  24673. (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
  24674. and error check now done by grub_ata_wait_drq ().
  24675. (grub_ata_pio_write): Likewise.
  24676. (grub_atapi_identify): Set DEV before check for !BSY. Use
  24677. grub_ata_wait_drq () to wait for data.
  24678. (grub_ata_device_initialize): Add status register check to
  24679. detect missing SATA slave devices. Add debug messages.
  24680. (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
  24681. (grub_atapi_packet): Set DEV before check for !BSY. Replace
  24682. transfer loop by grub_ata_pio_write ().
  24683. (grub_ata_identify): Set DEV before check for !BSY. Use
  24684. grub_ata_wait_drq () to wait for data.
  24685. (grub_ata_setaddress): Set DEV before check for !BSY.
  24686. (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
  24687. read/write in one loop. Fix invalid command on write. Fix incomplete
  24688. command on (size % batch) == 0. Add missing error check after write of
  24689. last block. Add debug messages.
  24690. (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
  24691. 2009-01-19 Christian Franke <franke@computer.org>
  24692. * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
  24693. (GRUB_ATAPI_IREASON_*): Likewise.
  24694. (grub_ata_pio_write): Fix timeout error return.
  24695. (grub_atapi_identify): Add grub_ata_wait () after cmd.
  24696. (grub_atapi_wait_drq): New function.
  24697. (grub_atapi_packet): New parameter `size'.
  24698. Use grub_atapi_wait_drq () and direct write instead of
  24699. grub_ata_pio_write ().
  24700. (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
  24701. reads the number of bytes requested by the device for each DRQ
  24702. assertion.
  24703. (grub_atapi_write): Remove old implementation, return not
  24704. implemented instead.
  24705. 2009-01-19 Christian Franke <franke@computer.org>
  24706. * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
  24707. of 512 to calculate data size.
  24708. (grub_scsi_read12): Likewise.
  24709. (grub_scsi_write10): Likewise.
  24710. (grub_scsi_write12): Likewise.
  24711. (grub_scsi_read): Adjust size according to blocksize.
  24712. Add checks for invalid blocksize and unaligned transfer.
  24713. 2009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
  24714. * font/font.c (grub_font_loader_init): Re-position unknown glyph.
  24715. * term/gfxterm.c (write_char): Fix background rendering for wide
  24716. width glyphs.
  24717. 2009-01-19 Robert Millan <rmh@aybabtu.com>
  24718. * config.guess: Update to latest version from config git.
  24719. * config.sub: Likewise.
  24720. 2009-01-17 Felix Zielcke <fzielcke@z-51.de>
  24721. * Makefile.in: Change font compilation to use new grub-mkfont instead
  24722. of java version.
  24723. * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
  24724. * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
  24725. * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
  24726. * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
  24727. * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
  24728. * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
  24729. * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
  24730. * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
  24731. * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
  24732. 2009-01-16 Christian Franke <franke@computer.org>
  24733. * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
  24734. (enum grub_ata_timeout_milliseconds): New enum.
  24735. (grub_ata_wait_status): Add parameter milliseconds.
  24736. (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
  24737. recovery from timed-out commands.
  24738. (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
  24739. return grub_errno instead of REG_ERROR.
  24740. (grub_ata_pio_write): Add parameter milliseconds.
  24741. (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
  24742. Pass milliseconds to grub_ata_wait_status () and
  24743. grub_ata_pio_read ().
  24744. (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
  24745. (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
  24746. grub_ata_wait_status (). Fix IDENTIFY timeout check.
  24747. (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
  24748. It is not suitable for device detection, because DEV bit is ignored,
  24749. the command may run too long, and not all devices set the signature
  24750. properly.
  24751. (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
  24752. (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
  24753. Fix device selection, DEV bit must be set first to address the registers
  24754. of the correct device.
  24755. (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
  24756. grub_ata_pio_read/write ().
  24757. (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
  24758. (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
  24759. 2009-01-13 Carles Pina i Estany <carles@pina.cat>
  24760. * util/grub-editenv.c (main): Use fseeko(), not fseek().
  24761. 2009-01-13 Bean <bean123ch@gmail.com>
  24762. * util/grub-mkfont.c (write_font): forget to remove some debug code.
  24763. 2009-01-13 Bean <bean123ch@gmail.com>
  24764. * Makefile.in: (enable_grub_mkfont): New variable.
  24765. (freetype_cflags): Likewise.
  24766. (freetype_libs): Likewise.
  24767. * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
  24768. (grub_mkfont_SOURCES): New variable.
  24769. (grub_mkfont_CFLAGS): Likewise.
  24770. (grub_mkfont_LDFLAGS): Likewise.
  24771. * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
  24772. library if `--enable-grub-mkfont' is requested.
  24773. (enable_grub_mkfont): New variable.
  24774. (freetype_cflags): Likewise.
  24775. (freetype_libs): Likewise.
  24776. * util/grub-mkfont.c: New file.
  24777. 2009-01-12 Christian Franke <franke@computer.org>
  24778. * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
  24779. mode check. Fix setting of compat_use[].
  24780. 2009-01-10 Robert Millan <rmh@aybabtu.com>
  24781. Update a few copyright years which we forgot to do in 2008 (only for
  24782. files whose changes made in 2008 were copyright-significant)
  24783. * Makefile.in: Add 2008 to Copyright line.
  24784. * disk/ieee1275/ofdisk.c: Likewise.
  24785. * disk/efi/efidisk.c: Likewise.
  24786. * kern/dl.c: Likewise.
  24787. * kern/sparc64/ieee1275/init.c: Likewise.
  24788. * kern/mm.c: Likewise.
  24789. * kern/efi/mm.c: Likewise.
  24790. * boot/i386/pc/boot.S: Likewise.
  24791. * genfslist.sh: Likewise.
  24792. * fs/iso9660.c: Likewise.
  24793. * fs/hfs.c: Likewise.
  24794. * fs/jfs.c: Likewise.
  24795. * fs/minix.c: Likewise.
  24796. * fs/ufs.c: Likewise.
  24797. * gensymlist.sh.in: Likewise.
  24798. * genkernsyms.sh.in: Likewise.
  24799. * include/grub/misc.h: Likewise.
  24800. * include/grub/types.h: Likewise.
  24801. * include/grub/symbol.h: Likewise.
  24802. * include/grub/elf.h: Likewise.
  24803. * include/grub/kernel.h: Likewise.
  24804. * include/grub/disk.h: Likewise.
  24805. * include/grub/dl.h: Likewise.
  24806. * include/grub/i386/linux.h: Likewise.
  24807. * include/grub/i386/pc/biosdisk.h: Likewise.
  24808. * include/grub/efi/api.h: Likewise.
  24809. * include/grub/efi/pe32.h: Likewise.
  24810. * include/grub/util/misc.h: Likewise.
  24811. * normal/execute.c: Likewise.
  24812. * normal/arg.c: Likewise.
  24813. * normal/completion.c: Likewise.
  24814. * normal/lexer.c: Likewise.
  24815. * normal/parser.y: Likewise.
  24816. * normal/misc.c: Likewise.
  24817. * commands/i386/pc/vbeinfo.c: Likewise.
  24818. * commands/hexdump.c: Likewise.
  24819. * commands/terminal.c: Likewise.
  24820. * commands/ls.c: Likewise.
  24821. * commands/help.c: Likewise.
  24822. * partmap/pc.c: Likewise.
  24823. * loader/efi/chainloader.c: Likewise.
  24824. * loader/multiboot_loader.c: Likewise.
  24825. * loader/i386/pc/multiboot2.c: Likewise.
  24826. * term/efi/console.c: Likewise.
  24827. * term/i386/pc/serial.c: Likewise.
  24828. * util/lvm.c: Likewise.
  24829. * util/console.c: Likewise.
  24830. * util/i386/efi/grub-mkimage.c: Likewise.
  24831. * util/raid.c: Likewise.
  24832. 2009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
  24833. * commands/videotest.c: Removed include to grub/machine/memory.h.
  24834. * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
  24835. videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
  24836. (video_mod_SOURCES): Removed.
  24837. (video_mod_CFLAGS): Likewise.
  24838. (video_mod_LDFLAGS): Likewise.
  24839. (gfxterm_mod_SOURCES): Likewise.
  24840. (gfxterm_mod_CFLAGS): Likewise.
  24841. (gfxterm_mod_LDFLAGS): Likewise.
  24842. (videotest_mod_SOURCES): Likewise.
  24843. (videotest_mod_CFLAGS): Likewise.
  24844. (videotest_mod_LDFLAGS): Likewise.
  24845. (bitmap_mod_SOURCES): Likewise.
  24846. (bitmap_mod_CFLAGS): Likewise.
  24847. (bitmap_mod_LDFLAGS): Likewise.
  24848. (tga_mod_SOURCES): Likewise.
  24849. (tga_mod_CFLAGS): Likewise.
  24850. (tga_mod_LDFLAGS): Likewise.
  24851. (jpeg_mod_SOURCES): Likewise.
  24852. (jpeg_mod_CFLAGS): Likewise.
  24853. (jpeg_mod_LDFLAGS): Likewise.
  24854. (png_mod_SOURCES): Likewise.
  24855. (png_mod_CFLAGS): Likewise.
  24856. (png_mod_LDFLAGS): Likewise.
  24857. * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
  24858. bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
  24859. (video_mod_SOURCES): Added.
  24860. (video_mod_CFLAGS): Likewise.
  24861. (video_mod_LDFLAGS): Likewise.
  24862. (videotest_mod_SOURCES): Likewise.
  24863. (videotest_mod_CFLAGS): Likewise.
  24864. (videotest_mod_LDFLAGS): Likewise.
  24865. (bitmap_mod_SOURCES): Likewise.
  24866. (bitmap_mod_CFLAGS): Likewise.
  24867. (bitmap_mod_LDFLAGS): Likewise.
  24868. (tga_mod_SOURCES): Likewise.
  24869. (tga_mod_CFLAGS): Likewise.
  24870. (tga_mod_LDFLAGS): Likewise.
  24871. (jpeg_mod_SOURCES): Likewise.
  24872. (jpeg_mod_CFLAGS): Likewise.
  24873. (jpeg_mod_LDFLAGS): Likewise.
  24874. (png_mod_SOURCES): Likewise.
  24875. (png_mod_CFLAGS): Likewise.
  24876. (png_mod_LDFLAGS): Likewise.
  24877. (gfxterm_mod_SOURCES): Likewise.
  24878. (gfxterm_mod_CFLAGS): Likewise.
  24879. (gfxterm_mod_LDFLAGS): Likewise.
  24880. * term/gfxterm.c: Removed include to grub/machine/memory.h,
  24881. grub/machine/console.h.
  24882. 2009-01-04 Jerone Young <jerone@gmail.com>
  24883. Make on screen instructions clearer
  24884. Based on patch created by Jidanni <jidanni@jidanni.org>
  24885. * normal/menu.c: print clearer instructions on the screen
  24886. 2009-01-02 Colin D Bennett <colin@gibibit.com>
  24887. New font engine.
  24888. Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
  24889. build system and fixed gfxterm.c to work with different sized fonts.
  24890. * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
  24891. * configure: Re-generated.
  24892. * DISTLIST: Removed font/manager.c.
  24893. Added font/font.c.
  24894. Added font/font_cmd.c.
  24895. * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
  24896. compilation.
  24897. * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
  24898. * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
  24899. * kern/term.c: Changed users of grub_utf8_to_ucs4.
  24900. * normal/menu.c: Likewise.
  24901. * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
  24902. (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
  24903. * include/grub/font.h: Replaced with new file.
  24904. * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
  24905. (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
  24906. (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
  24907. (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
  24908. (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
  24909. (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
  24910. fg_red, fg_green, fg_blue, fg_alpha.
  24911. (grub_video_adapter): Removed blit_glyph.
  24912. (grub_video_blit_glyph): Removed.
  24913. * font/manager.c: Removed file.
  24914. * font/font.c: New file.
  24915. * font/font_cmd.c: Likewise.
  24916. * video/video.c (grub_video_blit_glyph): Removed.
  24917. * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
  24918. (grub_video_vbe_map_rgba): Likewise.
  24919. (grub_video_vbe_unmap_color_int): Likewise.
  24920. (grub_video_vbe_blit_glyph): Removed.
  24921. (grub_video_vbe_adapter): Removed blit_glyph.
  24922. * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
  24923. (get_pixel): Likewise.
  24924. (set_pixel): Likewise.
  24925. * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
  24926. * term/gfxterm.c: Adapted to new font engine.
  24927. * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
  24928. * term/i386/pc/vga.c: Likewise.
  24929. * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
  24930. * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
  24931. * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
  24932. * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
  24933. * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
  24934. * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
  24935. * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
  24936. * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
  24937. * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
  24938. * util/grub.d/00_header.in: Changed to use new loadfont command.
  24939. * util/grub-mkconfig_lib.in: Changed font extension.
  24940. 2008-12-28 Felix Zielcke <fzielcke@z-51.de>
  24941. * util/getroot.c (grub_util_get_grub_dev): Add support for
  24942. /dev/md/dNNpNN style partitionable mdraid devices.
  24943. 2008-12-12 Alex Smith <alex@alex-smith.me.uk>
  24944. * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
  24945. at a time limit of the PXE TFTP API correctly.
  24946. (grub_pxefs_close): Likewise.
  24947. 2008-11-29 Robert Millan <rmh@aybabtu.com>
  24948. * disk/ata.c (grub_ata_pciinit): Handle errors raised by
  24949. grub_ata_device_initialize() calls.
  24950. 2008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
  24951. * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
  24952. iteration failed.
  24953. * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
  24954. 2008-11-28 Robert Millan <rmh@aybabtu.com>
  24955. Fix build on powerpc-ieee1275. Based on patch created by
  24956. Manoel Abranches <mrabran@linux.vnet.ibm.com>.
  24957. * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
  24958. `kern/ieee1275/mmap.c'.
  24959. * include/grub/powerpc/ieee1275/memory.h: New file.
  24960. Provide grub-install on coreboot.
  24961. * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
  24962. (grub_install_SOURCES): New variable.
  24963. * util/i386/pc/grub-install.in: Add a few condition checks to make it
  24964. usable on coreboot.
  24965. 2008-11-25 Felix Zielcke <fzielcke@z-51.de>
  24966. * util/grub-fstest.c (grub_term_get_current_input): Change return type
  24967. to `grub_term_input_t'.
  24968. (grub_term_get_current_output): Change return type to
  24969. `grub_term_output_t'.
  24970. 2008-11-22 Robert Millan <rmh@aybabtu.com>
  24971. Fix breakage on coreboot due to declaration mismatch.
  24972. * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
  24973. (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
  24974. grub_vga_text_cls().
  24975. * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
  24976. comments. Avoid copying one more byte than necessary (just in case).
  24977. * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
  24978. to 0x200000 (avoids trouble with some OFW implementations, and matches
  24979. with the one in Yaboot).
  24980. Reported by Manoel Abranches
  24981. 2008-11-20 Robert Millan <rmh@aybabtu.com>
  24982. * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
  24983. (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
  24984. * util/grub-mkconfig_lib.in (grub_warn): New function.
  24985. (convert_system_path_to_grub_path): Use grub_warn() when issuing
  24986. warnings, to obtain consistent formatting.
  24987. * util/grub.d/00_header.in: Likewise.
  24988. * util/update-grub_lib.in: Likewise.
  24989. * loader/i386/linux.c (allocate_pages): Fix a warning.
  24990. Move comment text to `#error' stanza.
  24991. Harmonize ieee1275's grub_available_iterate() with the generic
  24992. grub_machine_mmap_iterate() interface (fixes a recently-introduced
  24993. build problem on i386-ieee1275):
  24994. * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
  24995. * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
  24996. parameter `type'. Update all users of this function.
  24997. * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
  24998. `kern/ieee1275/mmap.c'.
  24999. * kern/ieee1275/init.c
  25000. * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
  25001. with ...
  25002. (grub_machine_mmap_iterate): ... this.
  25003. * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
  25004. return type to `grub_err_t'. Update all implementations of this
  25005. function prototype.
  25006. * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
  25007. Likewise.
  25008. Add `lsmmap' command (lists firmware-provided memory map):
  25009. * commands/lsmmap.c: New file.
  25010. * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
  25011. (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
  25012. variables.
  25013. * conf/powerpc-ieee1275.rmk: Likewise.
  25014. * conf/i386-coreboot.rmk: Likewise.
  25015. * conf/i386-ieee1275.rmk: Likewise.
  25016. 2008-11-19 Robert Millan <rmh@aybabtu.com>
  25017. * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
  25018. * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
  25019. constraints to initrd allocation (based on code from
  25020. loader/i386/pc/linux.c). Without them, initrd was allocated too high
  25021. for Linux to find it.
  25022. 2008-11-14 Robert Millan <rmh@aybabtu.com>
  25023. * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
  25024. order to cope with duplicate slashes.
  25025. 2008-11-14 Robert Millan <rmh@aybabtu.com>
  25026. * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
  25027. Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
  25028. don't want to mess with lower memory, because it is used in the Linux
  25029. loader.
  25030. * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
  25031. an appropriate place in lower memory, between 0x10000 and 0x90000,
  25032. like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
  25033. is in our heap (probably as a result of it being corrupted during
  25034. decompression). Add #error instance with comment to explain why this
  25035. loader isn't currently usable on PC/BIOS.
  25036. 2008-11-14 Robert Millan <rmh@aybabtu.com>
  25037. * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
  25038. (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
  25039. 2008-11-12 Robert Millan <rmh@aybabtu.com>
  25040. Make loader/i386/linux.c buildable on i386-pc (although disabled).
  25041. * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
  25042. (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
  25043. from here ...
  25044. * include/grub/i386/pc/memory.h: ... to here.
  25045. 2008-11-12 Robert Millan <rmh@aybabtu.com>
  25046. Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
  25047. split).
  25048. * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
  25049. (grub_console_cur_color, grub_console_real_putchar)
  25050. (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
  25051. (grub_console_setcolorstate, grub_console_setcolor)
  25052. (grub_console_getcolor): Move from here ...
  25053. * include/grub/i386/vga_common.h: ... to here (new file).
  25054. * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
  25055. `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
  25056. `<grub/i386/io.h>'.
  25057. * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
  25058. `<grub/i386/vga_common.h>'.
  25059. 2008-11-12 Robert Millan <rmh@aybabtu.com>
  25060. * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
  25061. * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
  25062. (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
  25063. variables.
  25064. * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
  25065. `term/i386/pc/console.c' with `term/i386/vga_common.c'.
  25066. * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
  25067. grub_console_init() with call to grub_vga_text_init().
  25068. (grub_machine_fini): Replace call to
  25069. grub_console_fini() with call to grub_vga_text_fini() and
  25070. grub_at_keyboard_fini().
  25071. * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
  25072. (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
  25073. (grub_console_setcolorstate, grub_console_setcolor)
  25074. (grub_console_getcolor): New function prototypes.
  25075. * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
  25076. (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
  25077. (grub_vga_text_setcursor): Static-ize.
  25078. (grub_vga_text_term): New structure.
  25079. (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
  25080. * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
  25081. (grub_console_cur_color, grub_console_standard_color)
  25082. (grub_console_normal_color, grub_console_highlight_color)
  25083. (map_char, grub_console_putchar, grub_console_getcharwidth)
  25084. (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
  25085. (grub_console_getcolor): Move from here ...
  25086. * term/i386/vga_common.c: ... to here (same function names).
  25087. 2008-11-12 Robert Millan <rmh@aybabtu.com>
  25088. Use newly-added Multiboot support in coreboot.
  25089. * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
  25090. `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
  25091. * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
  25092. alignment, set `MULTIBOOT_MEMORY_INFO' flag.
  25093. (codestart): Store the MBI in `startup_multiboot_info' when we're
  25094. being loaded using Multiboot.
  25095. * kern/i386/coreboot/init.c (grub_machine_init): Move
  25096. grub_at_keyboard_init() call to beginning of function (useful for
  25097. debugging). Call grub_machine_mmap_init() before attempting to use
  25098. grub_machine_mmap_iterate().
  25099. (grub_lower_mem, grub_upper_mem): Move from here ...
  25100. * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
  25101. here (new file).
  25102. * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
  25103. function prototype.
  25104. 2008-11-12 Robert Millan <rmh@aybabtu.com>
  25105. Fix a regression introduced by the at_keyboard.mod split. Because
  25106. some terminals are default on some platforms and non-default on
  25107. others, the first terminal being registered determines which is
  25108. going to be default.
  25109. * kern/term.c (grub_term_register_input): If this is the first
  25110. terminal being registered, set it as the current one.
  25111. (grub_term_register_output): Likewise.
  25112. * term/efi/console.c (grub_console_init): Do not call
  25113. grub_term_set_current_output() or grub_term_set_current_input().
  25114. * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
  25115. * term/i386/pc/console.c (grub_console_init): Likewise.
  25116. (grub_console_fini): Do not call grub_term_set_current_input()
  25117. (but leave grub_term_set_current_output() to restore text mode).
  25118. 2008-11-10 Robert Millan <rmh@aybabtu.com>
  25119. * util/grub.d/00_header.in: Add backward compatibility check for
  25120. versions of terminal.mod that don't understand `terminal_input' or
  25121. `terminal_output'.
  25122. 2008-11-09 Robert Millan <rmh@aybabtu.com>
  25123. * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
  25124. `terminal_input' / `terminal_output', not `terminal'.
  25125. 2008-11-08 Robert Millan <rmh@aybabtu.com>
  25126. * Makefile.in (include_DATA): Fix srcdir=. assumption.
  25127. (DISTCLEANFILES): Add `build_env.mk'.
  25128. 2008-11-08 Robert Millan <rmh@aybabtu.com>
  25129. * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
  25130. `struct grub_term_output'. Remove `.checkkey' and `.getkey'
  25131. members. Update all users.
  25132. * util/console.c (grub_ncurses_term): Split in ...
  25133. (grub_ncurses_term_input): ... this, and ...
  25134. (grub_ncurses_term_output): ... this. Update all users.
  25135. * term/ieee1275/ofconsole.c: Remove stale `#endif'.
  25136. 2008-11-08 Robert Millan <rmh@aybabtu.com>
  25137. * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
  25138. (PKGDATA): Add $(pkgdata_SRCDIR).
  25139. (pkglib_BUILDDIR): New variable.
  25140. (pkgdata_SRCDIR): New variable.
  25141. (build_env.mk): New target.
  25142. (include_DATA): New variable.
  25143. (install-local): Install $(include_DATA) files in $(includedir).
  25144. 2008-11-07 Pavel Roskin <proski@gnu.org>
  25145. * gendistlist.sh: Use C locale for sorting to ensure consistent
  25146. output on all systems.
  25147. * util/grub.d/00_header.in: Remove incorrect space before
  25148. "serial".
  25149. 2008-11-07 Robert Millan <rmh@aybabtu.com>
  25150. * include/multiboot2.h (struct multiboot_header): Add `flags' member as
  25151. per specification.
  25152. * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
  25153. * loader/multiboot_loader.c (find_multi_boot2_header): New function
  25154. (based on find_multi_boot1_header).
  25155. (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
  25156. using find_multi_boot2_header(), and abort if neither Multiboot or
  25157. Multiboot headers were found.
  25158. 2008-11-07 Robert Millan <rmh@aybabtu.com>
  25159. Modularize at_keyboard.mod:
  25160. * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
  25161. (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
  25162. (at_keyboard_mod_LDFLAGS): New variables.
  25163. Actual terminal split:
  25164. * include/grub/term.h (struct grub_term): Split in ...
  25165. (struct grub_term_input): ... this, and ...
  25166. (struct grub_term_output): ... this. Update all users.
  25167. (grub_term_set_current): Split in ...
  25168. (grub_term_set_current_input): ... this, and ...
  25169. (grub_term_set_current_output): ... this.
  25170. (grub_term_get_current): Split in ...
  25171. (grub_term_get_current_input): ... this, and ...
  25172. (grub_term_get_current_output): ... this.
  25173. (grub_term_register): Split in ...
  25174. (grub_term_register_input): ... this, and ...
  25175. (grub_term_register_output): ... this.
  25176. (grub_term_unregister): Split in ...
  25177. (grub_term_unregister_input): ... this, and ...
  25178. (grub_term_unregister_output): ... this.
  25179. (grub_term_iterate): Split in ...
  25180. (grub_term_iterate_input): ... this, and ...
  25181. (grub_term_iterate_output): ... this.
  25182. * kern/term.c (grub_term_list): Split in ...
  25183. (grub_term_list_input): ... this, and ...
  25184. (grub_term_list_output): ... this. Update all users.
  25185. (grub_cur_term): Split in ...
  25186. (grub_cur_term_input): ... this, and ...
  25187. (grub_cur_term_output): ... this. Update all users.
  25188. (grub_term_set_current): Split in ...
  25189. (grub_term_set_current_input): ... this, and ...
  25190. (grub_term_set_current_output): ... this.
  25191. (grub_term_get_current): Split in ...
  25192. (grub_term_get_current_input): ... this, and ...
  25193. (grub_term_get_current_output): ... this.
  25194. (grub_term_register): Split in ...
  25195. (grub_term_register_input): ... this, and ...
  25196. (grub_term_register_output): ... this.
  25197. (grub_term_unregister): Split in ...
  25198. (grub_term_unregister_input): ... this, and ...
  25199. (grub_term_unregister_output): ... this.
  25200. (grub_term_iterate): Split in ...
  25201. (grub_term_iterate_input): ... this, and ...
  25202. (grub_term_iterate_output): ... this.
  25203. * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
  25204. a check for input and one for output (and only attempt to get keys
  25205. from user when input works).
  25206. * util/grub-probe.c (grub_term_get_current): Split in ...
  25207. (grub_term_get_current_input): ... this, and ...
  25208. (grub_term_get_current_output): ... this.
  25209. * util/grub-fstest.c: Likewise.
  25210. * util/i386/pc/grub-setup.c: Likewise.
  25211. * util/grub-editenv.c: Likewise.
  25212. Portability adjustments:
  25213. * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
  25214. `term/i386/pc/at_keyboard.c'.
  25215. * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
  25216. grub_keyboard_controller_init() (now handled by terminal .init).
  25217. * kern/i386/coreboot/init.c (grub_machine_init): Add call to
  25218. grub_at_keyboard_init().
  25219. * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
  25220. (grub_console_checkkey, grub_console_getkey): Remove (now provided by
  25221. at_keyboard.mod via input terminal interface).
  25222. * include/grub/i386/coreboot/console.h: Convert into a stub for
  25223. `<grub/i386/pc/console.h>'.
  25224. Migrate full terminals to new API:
  25225. * term/efi/console.c (grub_console_term): Split into ...
  25226. (grub_console_term_input): ... this, and ...
  25227. (grub_console_term_output): ... this. Update all users.
  25228. * term/ieee1275/ofconsole.c: Remove __i386__ hack.
  25229. (grub_ofconsole_init): Split into ...
  25230. (grub_ofconsole_init_input): ... this, and ...
  25231. (grub_ofconsole_init_output): ... this.
  25232. (grub_ofconsole_term): Split into ...
  25233. (grub_ofconsole_term_input): ... this, and ...
  25234. (grub_ofconsole_term_output): ... this. Update all users.
  25235. * term/i386/pc/serial.c (grub_serial_term): Split into ...
  25236. (grub_serial_term_input): ... this, and ...
  25237. (grub_serial_term_output): ... this. Update all users.
  25238. * term/i386/pc/console.c (grub_console_term): Split into ...
  25239. (grub_console_term_input): ... this, and ...
  25240. (grub_console_term_output): ... this. Update all users.
  25241. (grub_console_term_input): Only enable it on PC/BIOS platform.
  25242. (grub_console_init): Remove grub_keyboard_controller_init() call.
  25243. Migrate input terminals to new API:
  25244. * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
  25245. `i386' and `i386/pc' to enable build on x86_64 (this driver is
  25246. i386-specific anyway).
  25247. (grub_console_checkkey): Rename to ...
  25248. (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
  25249. users.
  25250. (grub_keyboard_controller_orig): New variable.
  25251. (grub_console_getkey): Rename to ...
  25252. (grub_at_keyboard_getkey): ... this. Static-ize. Update all
  25253. users.
  25254. (grub_keyboard_controller_init): Static-ize. Save original
  25255. controller value so that it can be restored ...
  25256. (grub_keyboard_controller_fini): ... here (new function).
  25257. (grub_at_keyboard_term): New structure.
  25258. (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
  25259. functions.
  25260. Migrate output terminals to new API:
  25261. * term/i386/pc/vga.c (grub_vga_term): Change type to
  25262. `struct grub_term_output'. Remove `.checkkey' and `.getkey'
  25263. members. Update all users.
  25264. * term/gfxterm.c (grub_video_term): Change type to
  25265. `struct grub_term_output'. Remove `.checkkey' and `.getkey'
  25266. members. Update all users.
  25267. * include/grub/i386/pc/console.h (grub_console_checkkey)
  25268. (grub_console_getkey): Do not export (no longer needed by gfxterm,
  25269. etc).
  25270. Migrate `terminal' command and userland tools to new API:
  25271. * commands/terminal.c (grub_cmd_terminal): Split into ...
  25272. (grub_cmd_terminal_input): ... this, and ...
  25273. (grub_cmd_terminal_output): ... this.
  25274. (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
  25275. `terminal_input' and `terminal_output'.
  25276. * util/grub.d/00_header.in: Adjust `terminal' calls to new
  25277. `terminal_input' / `terminal_output' API.
  25278. * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
  25279. ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
  25280. provided ${GRUB_TERMINAL}, convert it).
  25281. 2008-11-04 Robert Millan <rmh@aybabtu.com>
  25282. * util/grub.d/10_freebsd.in: New file. Generate grub configuration
  25283. for FreeBSD.
  25284. * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
  25285. 2008-11-03 Bean <bean123ch@gmail.com>
  25286. * kern/elf.c (grub_elf32_load): Revert to previous code.
  25287. (grub_elf64_load): Likewise.
  25288. * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
  25289. 2008-11-01 Robert Millan <rmh@aybabtu.com>
  25290. * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
  25291. (TARGET_CPPFLAGS): Likewise.
  25292. * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
  25293. 2008-11-01 Carles Pina i Estany <carles@pina.cat>
  25294. * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
  25295. 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
  25296. * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
  25297. addition of objects until the code is not going to be able to fail.
  25298. 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
  25299. * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
  25300. (add a missing NULL check, and correct them by moving the pointer
  25301. operations after the actual check).
  25302. 2008-10-29 Robert Millan <rmh@aybabtu.com>
  25303. * util/i386/pc/grub-install.in: Handle empty string as output from
  25304. make_system_path_relative_to_its_root().
  25305. 2008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
  25306. * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
  25307. circular metadata worst case scenario. If the metadata is circular
  25308. then copy the wrap in place.
  25309. * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
  25310. project lib/format_text/layout.h
  25311. Circular metadata bug found and patch debugged by Jan Derk Gerlings.
  25312. 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
  25313. * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
  25314. 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
  25315. * util/update-grub_lib.in: Mention filename in warning message.
  25316. 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
  25317. * NEWS: Update for rename of update-grub to grub-mkconfig.
  25318. 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
  25319. * util/update-grub_lib.in: Copy to ...
  25320. * util/grub-mkconfig_lib.in: ... this. Update all users.
  25321. * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
  25322. * util/update-grub.in: Rename to ...
  25323. * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
  25324. option. Add `--output' option to allow users to specify the generated
  25325. configuration file. Default to stdout.
  25326. (update_grub_dir): Rename to ...
  25327. (grub_mkconfig_dir): ... this.
  25328. (grub_cfg): Default to an empty string.
  25329. * conf/common.rmk (update-grub): Rename to ...
  25330. (grub-mkconfig): ... this.
  25331. (update-grub_lib): Copy to ...
  25332. (grub-mkconfig_lib): ... this.
  25333. (update-grub_SCRIPTS): Copy to ...
  25334. (grub-mkconfig_SCRIPTS): ... this. Update all users.
  25335. (update-grub_DATA): Rename to ...
  25336. (grub-mkconfig_DATA): ... this.
  25337. 2008-09-28 Robert Millan <rmh@aybabtu.com>
  25338. * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
  25339. to `modified'. Add the real `created' field.
  25340. (grub_iso9660_uuid): Use `modified' rather than `created' for
  25341. constructing the UUID.
  25342. 2008-09-28 Felix Zielcke <fzielcke@z-51.de>
  25343. fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
  25344. Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
  25345. 2008-09-28 Bean <bean123ch@gmail.com>
  25346. * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
  25347. Thanks to Christian Franke for finding this bug.
  25348. 2008-09-25 Robert Millan <rmh@aybabtu.com>
  25349. * util/grub-mkdevicemap.c (make_device_map): Actually replace all
  25350. instances of grub_util_get_disk_name() (see previous commit).
  25351. 2008-09-25 Robert Millan <rmh@aybabtu.com>
  25352. * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
  25353. `util/i386/get_disk_name.c'.
  25354. * conf/i386-efi.rmk: Likewise.
  25355. * conf/x86_64-efi.rmk: Likewise.
  25356. * conf/i386-coreboot.rmk: Likewise.
  25357. * conf/i386-ieee1275.rmk: Likewise.
  25358. * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
  25359. `util/ieee1275/get_disk_name.c'.
  25360. * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
  25361. * util/ieee1275/get_disk_name.c: Remove file.
  25362. * util/i386/get_disk_name.c: Remove file.
  25363. * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
  25364. "hd%d" for device.map entries, rather than using
  25365. grub_util_get_disk_name().
  25366. 2008-09-24 Carles Pina i Estany <carles@pina.cat>
  25367. * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
  25368. warning.
  25369. * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
  25370. 2008-09-24 Carles Pina i Estany <carles@pina.cat>
  25371. * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
  25372. Changed to 0x5100.
  25373. (GRUB_TERM_PPAGE): Changed to 0x4900.
  25374. 2008-09-24 Robert Millan <rmh@aybabtu.com>
  25375. * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
  25376. macros (they were i386-pc specific).
  25377. * include/grub/sparc64/ieee1275/console.h: Likewise.
  25378. * include/grub/efi/console.h: Likewise.
  25379. 2008-09-22 Bean <bean123ch@gmail.com>
  25380. * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
  25381. resident and in attribute list.
  25382. * include/grub/ntfs.h (BMP_LEN): Removed.
  25383. 2008-09-22 Bean <bean123ch@gmail.com>
  25384. * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
  25385. scsi->name and scsi->luns, as they will be set in grub_scsi_open.
  25386. * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
  25387. error occurs, as grub_disk_open will call grub_disk_close, which will
  25388. call p->close (scsi).
  25389. 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
  25390. * configure.ac (AC_INIT): Quote `GRUB' string and version number.
  25391. (AC_PREREQ): Bumped to 2.59.
  25392. (AC_TRY_COMPILE): Replace obsolete macro with ...
  25393. (AC_COMPILE_IFELSE): ... this.
  25394. * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
  25395. (AC_LINK_IFELSE): ... this.
  25396. 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
  25397. * autogen.sh: Add a call to `gendistlist.sh'.
  25398. 2008-09-19 Christian Franke <franke@computer.org>
  25399. * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
  25400. * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
  25401. * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
  25402. Export __enable_execute_stack() to modules.
  25403. * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
  25404. New function.
  25405. 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
  25406. * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
  25407. Sort the list.
  25408. 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
  25409. * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
  25410. #include <grub/util/hostdisk.h>.
  25411. 2008-09-08 Robert Millan <rmh@aybabtu.com>
  25412. * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
  25413. segments when their filesz is zero (grub_file_read() interprets
  25414. zero-size as "read until EOF", which results in memory corruption).
  25415. Use `lowest_segment' rather than 0 for calculating the current
  25416. segment load address.
  25417. 2008-09-08 Robert Millan <rmh@aybabtu.com>
  25418. * util/hostdisk.c (open_device): Replace a grub_util_info() call
  25419. with grub_dprintf("hostdisk", ...), as it was so verbose that it
  25420. clobbered useful information.
  25421. 2008-09-08 Robert Millan <rmh@aybabtu.com>
  25422. * include/grub/util/biosdisk.h: Move to ...
  25423. * include/grub/util/hostdisk.h: ... here. Update all users.
  25424. * util/biosdisk.c: Move to ...
  25425. * util/hostdisk.c: ... here. Update all users.
  25426. 2008-09-07 Robert Millan <rmh@aybabtu.com>
  25427. * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
  25428. variables.
  25429. (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
  25430. and length can be stored directly in the `mbi->mmap_addr' and
  25431. `mbi->mmap_length' struct fields.
  25432. 2008-09-07 Robert Millan <rmh@aybabtu.com>
  25433. * conf/i386.rmk: New file. Provides declaration for building
  25434. `cpuid.mod'.
  25435. * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
  25436. (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
  25437. variables.
  25438. Include `conf/i386.mk'.
  25439. * conf/i386-efi.rmk: Likewise.
  25440. * conf/x86_64-efi.rmk: Likewise.
  25441. * conf/i386-coreboot.rmk: Likewise.
  25442. * conf/i386-ieee1275.rmk: Likewise.
  25443. 2008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
  25444. Based on patch created by Colin D Bennett <colin@gibibit.com>.
  25445. Adds optimization support for BGR based modes.
  25446. * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
  25447. (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
  25448. (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
  25449. (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
  25450. (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
  25451. (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
  25452. (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
  25453. (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
  25454. (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
  25455. (grub_video_i386_vbeblit_index_index): Likewise.
  25456. (grub_video_i386_vbeblit_replace_directN): Added.
  25457. (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
  25458. (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
  25459. (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
  25460. (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
  25461. (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
  25462. (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
  25463. (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
  25464. (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
  25465. (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
  25466. (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
  25467. (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
  25468. (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
  25469. (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
  25470. * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
  25471. (grub_video_i386_vbefill_R8G8B8): Likewise.
  25472. (grub_video_i386_vbefill_index): Likewise.
  25473. (grub_video_i386_vbefill_direct32): Added.
  25474. (grub_video_i386_vbefill_direct24): Likewise.
  25475. (grub_video_i386_vbefill_direct16): Likewise.
  25476. (grub_video_i386_vbefill_direct8): Likewise.
  25477. * include/grub/video.h (grub_video_blit_format): Removed
  25478. GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
  25479. (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
  25480. GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
  25481. GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
  25482. GRUB_VIDEO_BLIT_FORMAT_BGR_565.
  25483. * video/video.c (grub_video_get_blit_format): Updated to use new
  25484. blit formats. Added handling for 16 bit color modes.
  25485. * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
  25486. fillers.
  25487. (common_blitter): Updated to use new blitters.
  25488. * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
  25489. Removed.
  25490. (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
  25491. (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
  25492. (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
  25493. (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
  25494. (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
  25495. (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
  25496. (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
  25497. (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
  25498. (grub_video_i386_vbeblit_index_index): Likewise.
  25499. (grub_video_i386_vbeblit_replace_directN): Added.
  25500. (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
  25501. (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
  25502. (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
  25503. (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
  25504. (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
  25505. (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
  25506. (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
  25507. (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
  25508. (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
  25509. (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
  25510. (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
  25511. (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
  25512. (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
  25513. * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
  25514. (grub_video_i386_vbefill_R8G8B8): Likewise.
  25515. (grub_video_i386_vbefill_index): Likewise.
  25516. (grub_video_i386_vbefill_direct32): Added.
  25517. (grub_video_i386_vbefill_direct24): Likewise.
  25518. (grub_video_i386_vbefill_direct16): Likewise.
  25519. (grub_video_i386_vbefill_direct8): Likewise.
  25520. * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
  25521. types.
  25522. * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
  25523. types.
  25524. * video/readers/png.c (grub_png_decode_image_header): Adapt to new
  25525. blitter types.
  25526. * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
  25527. types.
  25528. 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
  25529. * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
  25530. RAID level 1.
  25531. 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
  25532. * fs/iso9660.c (grub_iso9660_date): New structure.
  25533. (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
  25534. (grub_iso9660_uuid): New function.
  25535. 2008-09-05 Bean <bean123ch@gmail.com>
  25536. * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
  25537. * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
  25538. insensitive bit for names in Win32 and Win32 & DOS namespace.
  25539. * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
  25540. * include/grub/types.h (LONG_MAX): Likewise.
  25541. 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
  25542. * util/getroot.c: Include <config.h>.
  25543. (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
  25544. add support for /dev/md/N devices and handle LVM double dash escaping.
  25545. 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
  25546. * config.guess: Update to latest version from config git.
  25547. * config.sub: Likewise.
  25548. 2008-09-03 Robert Millan <rmh@aybabtu.com>
  25549. * disk/scsi.c (grub_scsi_open): Remove size limit when printing
  25550. `disk->total_sectors'.
  25551. 2008-09-01 Colin D Bennett <colin@gibibit.com>
  25552. * include/grub/normal.h: Fixed incorrect comment for
  25553. GRUB_COMMAND_FLAG_NO_ARG_PARSE.
  25554. 2008-09-01 Colin D Bennett <colin@gibibit.com>
  25555. * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
  25556. values with defines.
  25557. * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
  25558. (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
  25559. (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
  25560. (GRUB_VBE_MODEATTR_COLOR): Likewise.
  25561. (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
  25562. (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
  25563. (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
  25564. (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
  25565. (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
  25566. (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
  25567. (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
  25568. (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
  25569. (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
  25570. (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
  25571. (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
  25572. (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
  25573. (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
  25574. (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
  25575. (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
  25576. 2008-08-31 Robert Millan <rmh@aybabtu.com>
  25577. * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
  25578. declaration.
  25579. (grub_multiboot): Fix a few warnings.
  25580. 2008-08-31 Robert Millan <rmh@aybabtu.com>
  25581. * loader/i386/pc/multiboot.c: Update comment not to say that
  25582. boot_device support is unimplemented.
  25583. 2008-08-31 Robert Millan <rmh@aybabtu.com>
  25584. * loader/i386/pc/multiboot.c: Update comment not to say that a.out
  25585. or memory map support are unimplemented.
  25586. 2008-08-31 Colin D Bennett <colin@gibibit.com>
  25587. * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
  25588. 2008-08-31 Colin D Bennett <colin@gibibit.com>
  25589. * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
  25590. total video memory in 'vbeinfo' output; show color format details for
  25591. each video mode.
  25592. 2008-08-30 Pavel Roskin <proski@gnu.org>
  25593. * util/genmoddep.c: Remove for real this time.
  25594. * DISTLIST: Remove util/genmoddep.c.
  25595. 2008-08-30 Robert Millan <rmh@aybabtu.com>
  25596. * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
  25597. as required by Multiboot spec (it was already 4-byte aligned, but
  25598. only by chance).
  25599. 2008-08-29 Pavel Roskin <proski@gnu.org>
  25600. * kern/powerpc/ieee1275/crt0.S: Rename to ...
  25601. * kern/powerpc/ieee1275/startup.S: ... this.
  25602. * conf/powerpc-ieee1275.rmk: Adjust for the above.
  25603. * DISTLIST: Likewise.
  25604. * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
  25605. grub/cpu/kernel.h. Add start label for consistency with other
  25606. platforms. Add grub_prefix immediately after start. Add jump
  25607. to the code after grub_prefix.
  25608. * include/grub/powerpc/kernel.h: Provide valid values for
  25609. GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
  25610. 2008-08-29 Bean <bean123ch@gmail.com>
  25611. * configure.ac: Change host_os to cygwin for mingw.
  25612. (asprintf): New check for function.
  25613. * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
  25614. #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
  25615. * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
  25616. declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
  25617. sync, sleep and grub_util_get_disk_size for mingw.
  25618. * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
  25619. to get size in mingw.
  25620. (open_device): Use flag O_BINARY if it's defined.
  25621. (find_root_device): Add dummy code for mingw.
  25622. * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
  25623. (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
  25624. (get_scsi_disk_name): Return 0 for mingw.
  25625. * util/hostfs.c: #include <grub/util/misc.h>.
  25626. (grub_hostfs_open): Use "rb" flag to open file, use
  25627. grub_util_get_disk_size to get disk size for mingw.
  25628. * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
  25629. (asprintf): New function if HAVE_ASPRINTF is not set.
  25630. (sync): New function for mingw.
  25631. (sleep): Likewise.
  25632. (grub_util_get_disk_size): Likewise.
  25633. 2008-08-28 Pavel Roskin <proski@gnu.org>
  25634. * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
  25635. kern/time.c.
  25636. 2008-08-28 Robert Millan <rmh@aybabtu.com>
  25637. * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
  25638. 2008-08-28 Robert Millan <rmh@aybabtu.com>
  25639. Change find_grub_drive() syntax so it doesn't prevent it from
  25640. detecting NULL names as errors.
  25641. * util/biosdisk.c (find_grub_drive): Move free slot search code
  25642. from here ...
  25643. (find_free_slot): ... to here.
  25644. (read_device_map): Use find_free_slot() to search for free slots.
  25645. 2008-08-27 Marco Gerards <marco@gnu.org>
  25646. * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
  25647. (scsi_mod_SOURCES): New variable.
  25648. (scsi_mod_CFLAGS): Likewise
  25649. (scsi_mod_LDFLAGS): Likewise.
  25650. * disk/scsi.c: New file.
  25651. * include/grub/scsi.h: Likewise.
  25652. * include/grub/scsicmd.h: Likewise.
  25653. * disk/ata.c: Include <grub/scsi.h>.
  25654. (grub_atapi_packet): Do not use grub_ata_cmd, use registers
  25655. instead.
  25656. (grub_ata_iterate): Skip ATAPI devices.
  25657. (grub_ata_open): Only handle ATAPI devices.
  25658. (struct grub_atapi_read): Removed.
  25659. (grub_atapi_readsector): Likewise.
  25660. (grub_ata_read): No longer handle ATAPI devices.
  25661. (grub_ata_write): Likewise.
  25662. (grub_atapi_iterate): New function.
  25663. (grub_atapi_read): Likewise.
  25664. (grub_atapi_write): Likewise.
  25665. (grub_atapi_open): Likewise.
  25666. (grub_atapi_close): Likewise.
  25667. (grub_atapi_dev): New variable.
  25668. (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
  25669. (GRUB_MOD_FINI(ata)): Unregister ATAPI.
  25670. * include/grub/disk.h (enum grub_disk_dev_id): Add
  25671. `GRUB_DISK_DEVICE_SCSI_ID'.
  25672. 2008-08-26 Robert Millan <rmh@aybabtu.com>
  25673. * util/biosdisk.c (grub_util_biosdisk_open, open_device)
  25674. (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
  25675. descriptive.
  25676. 2008-08-23 Bean <bean123ch@gmail.com>
  25677. * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
  25678. (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
  25679. disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
  25680. (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
  25681. dm_nv.mod.
  25682. (raid5rec_mod_SOURCES): New macro.
  25683. (raid5rec_mod_CFLAGS): Likewise.
  25684. (raid5rec_mod_LDFLAGS): Likewise.
  25685. (raid6rec_mod_SOURCES): Likewise.
  25686. (raid6rec_mod_CFLAGS): Likewise.
  25687. (raid6rec_mod_LDFLAGS): Likewise.
  25688. (mdraid_mod_SOURCES): Likewise.
  25689. (mdraid_mod_CFLAGS): Likewise.
  25690. (mdraid_mod_LDFLAGS): Likewise.
  25691. (dm_nv_mod_SOURCES): Likewise.
  25692. (dm_nv_mod_CFLAGS): Likewise.
  25693. (dm_nv_mod_LDFLAGS): Likewise.
  25694. * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
  25695. (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
  25696. disk/mdraid_linux.c and disk/dmraid_nvidia.c.
  25697. * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
  25698. disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
  25699. * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
  25700. * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
  25701. * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
  25702. * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
  25703. * disk/raid5_recover.c: New file.
  25704. * disk/raid6_recover.c: Likewise.
  25705. * disk/mdraid_linux.c: Likewise.
  25706. * disk/dmraid_nvidia.c: Likewise.
  25707. * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
  25708. ULONG_MAX.
  25709. * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
  25710. calculate the size of raid device.
  25711. (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
  25712. different layout of raid5.
  25713. (grub_raid_scan_device): Remove code specific to mdraid.
  25714. (grub_raid_list): New variable.
  25715. (free_array): New function.
  25716. (grub_raid_register): Likewise.
  25717. (grub_raid_unregister): Likewise.
  25718. (grub_raid_rescan): Likewise.
  25719. (GRUB_MOD_INIT): Don't iterate device here.
  25720. (GRUB_MOD_FINI): Use free_array to release resource.
  25721. * include/grub/raid.h: Remove macro and structure specific to mdraid.
  25722. (grub_raid5_recover_func_t): New function variable type.
  25723. (grub_raid6_recover_func_t): Likewise.
  25724. (grub_raid5_recover_func): New variable.
  25725. (grub_raid6_recover_func): Likewise.
  25726. (grub_raid_register): New function.
  25727. (grub_raid_unregister): Likewise.
  25728. (grub_raid_rescan): Likewise.
  25729. (grub_raid_block_xor): Likewise.
  25730. * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
  25731. (CMD_CRC): New macro.
  25732. (part): Removed.
  25733. (read_file): Handle device as well as file.
  25734. (cmd_crc): New function.
  25735. (fstest): Handle multiple disks.
  25736. (options): Remove part, raw and long, add root and diskcount.
  25737. (usage): Add crc, remove -p, -r, -l, add -r and -c.
  25738. (main): Find the first non option entry and ignore subsequent options,
  25739. add handling for the new options, support multiple disks.
  25740. * util/grub-probe.c (probe): Add mdraid to abstraction_name.
  25741. 2008-08-23 Bean <bean123ch@gmail.com>
  25742. * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
  25743. * genfslist.sh: Ignore kernel.mod.
  25744. * genpartmaplist.sh: Likewise.
  25745. 2008-08-23 Robert Millan <rmh@aybabtu.com>
  25746. * util/getroot.c (find_root_device): Skip anything that starts with
  25747. a dot, not just directories. This avoids things like /dev/.tmp.md0.
  25748. 2008-08-22 Felix Zielcke <fzielcke@z-51.de>
  25749. * util/update-grub.in (GRUB_GFXMODE): Export variable.
  25750. * util/grub.d/00_header.in: Allow the administrator to change default
  25751. gfxmode via ${GRUB_GFXMODE}.
  25752. 2008-08-21 Felix Zielcke <fzielcke@z-51.de>
  25753. * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
  25754. 2008-08-21 Robert Millan <rmh@aybabtu.com>
  25755. * loader/i386/linux.c: New file. Implements generic 32-bit Linux
  25756. loader.
  25757. * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
  25758. `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
  25759. 2008-08-20 Carles Pina i Estany <carles@pina.cat>
  25760. * menu/normal.c (run_menu): Replace hardcoded numbers with macros
  25761. (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
  25762. 2008-08-19 Robert Millan <rmh@aybabtu.com>
  25763. * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
  25764. (struct grub_virtual_screen): Remove `cursor_color'.
  25765. (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
  25766. initialization.
  25767. (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
  25768. 2008-08-18 Robert Millan <rmh@aybabtu.com>
  25769. Unify (identical) linux_normal.c files.
  25770. * loader/i386/efi/linux_normal.c: Move from here ...
  25771. * loader/linux_normal.c: ... to here. Update all users.
  25772. * loader/i386/pc/linux_normal.c: Delete. Update all users.
  25773. * loader/i386/ieee1275/linux_normal.c: Likewise.
  25774. 2008-08-18 Robert Millan <rmh@aybabtu.com>
  25775. * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
  25776. (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
  25777. (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
  25778. (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
  25779. (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
  25780. New macros.
  25781. (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
  25782. * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
  25783. (GRUB_LINUX_CL_END_OFFSET): ... to here.
  25784. * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
  25785. (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
  25786. (GRUB_EFI_CL_END_OFFSET): Rename to ...
  25787. (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
  25788. (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
  25789. Initialize `params->video_cursor_x' and `params->video_cursor_y'
  25790. portably using grub_getxy().
  25791. Replace `-EFI' with `-bzImage' in boot message.
  25792. 2008-08-17 Robert Millan <rmh@aybabtu.com>
  25793. * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
  25794. 2008-08-17 Robert Millan <rmh@aybabtu.com>
  25795. * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
  25796. * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
  25797. (GRUB_MACHINE_MEMORY_RESERVED): New macros.
  25798. (grub_machine_mmap_iterate): New function declaration.
  25799. * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
  25800. structure.
  25801. (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
  25802. macros.
  25803. * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
  25804. type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
  25805. Move e820 parsing from here ...
  25806. * kern/i386/pc/mmap.c: New file.
  25807. (grub_machine_mmap_iterate): ... to here.
  25808. * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
  25809. (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
  25810. (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
  25811. (grub_available_iterate): Redeclare to return `void', and redeclare
  25812. its hook to use grub_uint64_t as addr and size parameters, and rename
  25813. to ...
  25814. (grub_machine_mmap_iterate): ... this. Update all users.
  25815. * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
  25816. to make it more readable. Rename to ...
  25817. (grub_machine_mmap_iterate): ... this.
  25818. * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
  25819. (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
  25820. (grub_multiboot): Allocate an extra region after the payload, and fill
  25821. it with a Multiboot memory map. Adjust a.out loader to calculate size
  25822. with the extra space.
  25823. (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
  25824. with the extra space.
  25825. 2008-08-17 Carles Pina i Estany <carles@pina.cat>
  25826. * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
  25827. 2008-08-17 Felix Zielcke <fzielcke@z-51.de>
  25828. * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
  25829. mdate-sh to the list `find' searches for.
  25830. * DISTLIST: Regenerated.
  25831. 2008-08-16 Felix Zielcke <fzielcke@z-51.de>
  25832. * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
  25833. genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
  25834. genmoddep.awk, gensymlist.sh.in.
  25835. (DISTDIRS): Add bus, docs, hook, lib.
  25836. * DISTLIST: Regenerated.
  25837. * NEWS: Add cygwin support and change the `os-prober' entry a bit.
  25838. 2008-08-16 Robert Millan <rmh@aybabtu.com>
  25839. * disk/raid.c (grub_raid_init): Handle/report errors set by
  25840. grub_device_iterate().
  25841. * disk/lvm.c (grub_lvm_init): Likewise.
  25842. 2008-08-15 Bean <bean123ch@gmail.com>
  25843. * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
  25844. and datehook.mod.
  25845. (datetime_mod_SOURCES): New macro.
  25846. (datetime_mod_CFLAGS): Likewise.
  25847. (datetime_mod_LDFLAGS): Likewise.
  25848. (date_mod_SOURCES): Likewise.
  25849. (date_mod_CFLAGS): Likewise.
  25850. (date_mod_LDFLAGS): Likewise.
  25851. (datehook_mod_SOURCES): Likewise.
  25852. (datehook_mod_CFLAGS): Likewise.
  25853. (datehook_mod_LDFLAGS): Likewise.
  25854. * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
  25855. and datehook.mod.
  25856. (datetime_mod_SOURCES): New macro.
  25857. (datetime_mod_CFLAGS): Likewise.
  25858. (datetime_mod_LDFLAGS): Likewise.
  25859. (date_mod_SOURCES): Likewise.
  25860. (date_mod_CFLAGS): Likewise.
  25861. (date_mod_LDFLAGS): Likewise.
  25862. (datehook_mod_SOURCES): Likewise.
  25863. (datehook_mod_CFLAGS): Likewise.
  25864. (datehook_mod_LDFLAGS): Likewise.
  25865. * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
  25866. and datehook.mod.
  25867. (datetime_mod_SOURCES): New macro.
  25868. (datetime_mod_CFLAGS): Likewise.
  25869. (datetime_mod_LDFLAGS): Likewise.
  25870. (date_mod_SOURCES): Likewise.
  25871. (date_mod_CFLAGS): Likewise.
  25872. (date_mod_LDFLAGS): Likewise.
  25873. (datehook_mod_SOURCES): Likewise.
  25874. (datehook_mod_CFLAGS): Likewise.
  25875. (datehook_mod_LDFLAGS): Likewise.
  25876. * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
  25877. and datehook.mod.
  25878. (datetime_mod_SOURCES): New macro.
  25879. (datetime_mod_CFLAGS): Likewise.
  25880. (datetime_mod_LDFLAGS): Likewise.
  25881. (date_mod_SOURCES): Likewise.
  25882. (date_mod_CFLAGS): Likewise.
  25883. (date_mod_LDFLAGS): Likewise.
  25884. (datehook_mod_SOURCES): Likewise.
  25885. (datehook_mod_CFLAGS): Likewise.
  25886. (datehook_mod_LDFLAGS): Likewise.
  25887. * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
  25888. and datehook.mod.
  25889. (datetime_mod_SOURCES): New macro.
  25890. (datetime_mod_CFLAGS): Likewise.
  25891. (datetime_mod_LDFLAGS): Likewise.
  25892. (date_mod_SOURCES): Likewise.
  25893. (date_mod_CFLAGS): Likewise.
  25894. (date_mod_LDFLAGS): Likewise.
  25895. (datehook_mod_SOURCES): Likewise.
  25896. (datehook_mod_CFLAGS): Likewise.
  25897. (datehook_mod_LDFLAGS): Likewise.
  25898. * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
  25899. * commands/date.c: New file.
  25900. * hook/datehook.c: Likewise.
  25901. * include/grub/lib/datetime.h: Likewise.
  25902. * include/grub/i386/cmos.h: Likewise.
  25903. * lib/datetime.c: Likewise.
  25904. * lib/i386/datetime.c: Likewise.
  25905. * lib/efi/datetime.c: Likewise.
  25906. 2008-08-14 Robert Millan <rmh@aybabtu.com>
  25907. * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
  25908. (grub_mkelfimage_SOURCES): New variable.
  25909. (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
  25910. * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
  25911. (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
  25912. * conf/powerpc-ieee1275.rmk: Likewise.
  25913. * conf/i386-ieee1275.rmk: Likewise.
  25914. * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
  25915. * kern/i386/coreboot/init.c: Likewise.
  25916. * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
  25917. with `<grub/cpu/kernel.h>'.
  25918. (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
  25919. to ...
  25920. (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
  25921. * kern/i386/coreboot/startup.S: Likewise.
  25922. * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
  25923. (GRUB_MOD_GAP): Remove.
  25924. * include/grub/powerpc/kernel.h: New file.
  25925. * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
  25926. (GRUB_KERNEL_MACHINE_DATA_END): Remove.
  25927. * include/grub/i386/kernel.h: New file.
  25928. * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
  25929. (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
  25930. (GRUB_KERNEL_MACHINE_DATA_END): Remove.
  25931. * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
  25932. `grub-mkelfimage'.
  25933. Use --directory when invoking grub_mkimage.
  25934. * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
  25935. (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
  25936. GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
  25937. and GRUB_KERNEL_CPU_PREFIX.
  25938. 2008-08-14 Felix Zielcke <fzielcke@z-51.de>
  25939. * include/grub/err.h (grub_err_printf): New function prototype.
  25940. * util/misc.c (grub_err_printf): New function.
  25941. * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
  25942. grub_printf.
  25943. * kern/err.c (grub_print_error): Use grub_err_printf.
  25944. 2008-08-13 Robert Millan <rmh@aybabtu.com>
  25945. * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
  25946. 2008-08-13 Robert Millan <rmh@aybabtu.com>
  25947. * docs/grub.cfg: Use the native device name for the example GNU/Hurd
  25948. boot entry.
  25949. 2008-08-12 Robert Millan <rmh@aybabtu.com>
  25950. * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
  25951. of the relocation code from here ...
  25952. (grub_multiboot): ... to here.
  25953. (forward_relocator, backward_relocator): Move from here ...
  25954. * kern/i386/loader.S (grub_multiboot_forward_relocator)
  25955. (grub_multiboot_backward_relocator): ... to here.
  25956. (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
  25957. magic in %eax. Use %ebp for jumping (so %edx is not trashed).
  25958. * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
  25959. (grub_multiboot_forward_relocator_end)
  25960. (grub_multiboot_backward_relocator)
  25961. (grub_multiboot_backward_relocator_end): New variables.
  25962. 2008-08-12 Bean <bean123ch@gmail.com>
  25963. * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
  25964. 2008-08-11 Robert Millan <rmh@aybabtu.com>
  25965. * kern/i386/linuxbios/startup.S: Move from here ...
  25966. * kern/i386/coreboot/startup.S: ... to here.
  25967. * kern/i386/linuxbios/init.c: Move from here ...
  25968. * kern/i386/coreboot/init.c: ... to here.
  25969. * kern/i386/linuxbios/table.c: Move from here ...
  25970. * kern/i386/coreboot/mmap.c: ... to here.
  25971. * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
  25972. 2008-08-11 Robert Millan <rmh@aybabtu.com>
  25973. * kern/device.c (grub_device_open): Do not handle grub_disk_open()
  25974. errors. Leave it to the upper layer to handle them.
  25975. 2008-08-09 Christian Franke <franke@computer.org>
  25976. * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
  25977. * conf/common.rmk: Install `grub-pe2elf' only if requested.
  25978. Install `grub.d/10_windows' only on Cygwin.
  25979. * configure.ac: Add subst of `target_os'.
  25980. Check `target_os' also before setting TARGET_OBJ2ELF.
  25981. Add `--enable-grub-pe2elf'.
  25982. 2008-08-08 Robert Millan <rmh@aybabtu.com>
  25983. * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
  25984. (grub_last_time): Change type to grub_uint64_t.
  25985. (grub_disk_open): Migrate code from to using grub_get_time_ms().
  25986. (grub_disk_close): Likewise.
  25987. * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
  25988. (run_menu): Migrate code from to using grub_get_time_ms().
  25989. * util/misc.c (grub_get_time_ms): New function.
  25990. 2008-08-08 Marco Gerards <marco@gnu.org>
  25991. * disk/ata.c (grub_ata_regget): Change return type to
  25992. `grub_uint8_t'.
  25993. (grub_ata_regget2): Likewise.
  25994. (grub_ata_wait_status): New function.
  25995. (grub_ata_wait_busy): Removed function, updated all users to use
  25996. `grub_ata_wait_status'.
  25997. (grub_ata_wait_drq): Likewise.
  25998. (grub_ata_cmd): New function.
  25999. (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
  26000. error handling.
  26001. (grub_ata_pio_write): Add error handling.
  26002. (grub_atapi_identify): Likewise.
  26003. (grub_atapi_packet): Use `grub_ata_cmd' and improve error
  26004. handling.
  26005. (grub_ata_identify): Use `grub_ata_cmd' and improve error
  26006. handling. Actually use the detected registers. Reorder the
  26007. detection logic such that it is easier to read.
  26008. (grub_ata_pciinit): Do not assign the same ID to each controller.
  26009. (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
  26010. handling.
  26011. (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
  26012. * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
  26013. 2008-08-08 Marco Gerards <marco@gnu.org>
  26014. * NEWS: Update.
  26015. 2008-08-07 Bean <bean123ch@gmail.com>
  26016. * include/grub/x86_64/pci.h: New file.
  26017. 2008-08-07 Christian Franke <franke@computer.org>
  26018. * kern/i386/pit.c (TIMER2_SPEAKER): New define.
  26019. (TIMER2_GATE): Likewise.
  26020. (grub_pit_wait): Add enable/disable of the timer2 gate
  26021. bit of port 0x61. This fixes a possible infinite loop.
  26022. 2008-08-07 Bean <bean123ch@gmail.com>
  26023. * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
  26024. kern/i386/tsc.c and kern/i386/pit.c.
  26025. * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
  26026. x86_64 platform.
  26027. * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
  26028. <grub/i386/tsc.h>.
  26029. * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
  26030. 2008-08-07 Bean <bean123ch@gmail.com>
  26031. * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
  26032. * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
  26033. * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
  26034. multiple inclusion. Add #include <grub/types.h>.
  26035. 2008-08-06 Christian Franke <franke@computer.org>
  26036. * conf/common.rmk: Build and install `10_windows'.
  26037. * util/grub.d/10_windows.in: New script.
  26038. 2008-08-06 Pavel Roskin <proski@gnu.org>
  26039. * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
  26040. 2008-08-06 Robert Millan <rmh@aybabtu.com>
  26041. * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
  26042. * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
  26043. 2008-08-06 Bean <bean123ch@gmail.com>
  26044. * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
  26045. (grub_pxefs_fs_int): Remove dummy definition.
  26046. (grub_pxefs_open): Use data->block_size to store the current block
  26047. size setting.
  26048. (grub_pxefs_read): Use block size stored in data->block_size. As the
  26049. value of grub_pxe_blksize can be changed after the file is opened.
  26050. 2008-08-06 Bean <bean123ch@gmail.com>
  26051. * fs/i386/pc/pxe.c (curr_file): new variable.
  26052. (grub_pxefs_open): Simply the handling of pxe file system. Don't
  26053. require the dummy internal file system anymore.
  26054. (grub_pxefs_read): Removed.
  26055. (grub_pxefs_close): Likewise.
  26056. (grub_pxefs_fs_int): Likewise.
  26057. (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
  26058. connection when we switch file.
  26059. (grub_pxefs_close_int): Renamed to grub_pxefs_close.
  26060. 2008-08-06 Robert Millan <rmh@aybabtu.com>
  26061. * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
  26062. `halt.mod'.
  26063. (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
  26064. (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
  26065. * kern/i386/halt.c: New file.
  26066. * kern/i386/reboot.c: Likewise.
  26067. * include/grub/i386/reboot.h: Likewise.
  26068. * include/grub/i386/halt.h: Likewise.
  26069. * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
  26070. Include `<grub/cpu/halt.h>'.
  26071. * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
  26072. [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
  26073. * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
  26074. (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
  26075. (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
  26076. (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
  26077. (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
  26078. (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
  26079. from here ...
  26080. * include/grub/i386/at_keyboard.h: ... to here.
  26081. 2008-08-05 Robert Millan <rmh@aybabtu.com>
  26082. * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
  26083. * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
  26084. * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
  26085. `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
  26086. `kern/generic/millisleep.c'.
  26087. * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
  26088. instead of grub_get_rtc().
  26089. (grub_tsc_init): Initialize `tsc_boot_time'.
  26090. * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
  26091. (grub_machine_init): Use grub_tsc_init() rather than
  26092. installing an RTC-based handler via grub_install_get_time_ms().
  26093. * kern/i386/pit.c: New file.
  26094. * include/grub/i386/pit.h: Likewise.
  26095. 2008-08-05 Bean <bean123ch@gmail.com>
  26096. * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
  26097. * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
  26098. (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
  26099. (pxe_mod_SOURCES): New macro.
  26100. (pxe_mod_CFLAGS): Likewise.
  26101. (pxe_mod_LDFLAGS): Likewise.
  26102. (pxecmd_mod_SOURCES): Likewise.
  26103. (pxecmd_mod_CFLAGS): Likewise.
  26104. (pxecmd_mod_LDFLAGS): Likewise.
  26105. * kern/i386/pc/startup.S (grub_pxe_scan): New function.
  26106. (grub_pxe_call): Likewise.
  26107. * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
  26108. * commands/i386/pc/pxecmd.c: New file.
  26109. * fs/i386/pc/pxe.c: Likewise.
  26110. * include/grub/i386/pc/pxe.h: Likewise.
  26111. 2008-08-05 Bean <bean123ch@gmail.com>
  26112. * util/console.c (grub_console_cur_color): New variable.
  26113. (grub_console_standard_color): Likewise.
  26114. (grub_console_normal_color): Likewise.
  26115. (grub_console_highlight_color): Likewise.
  26116. (color_map): Likewise.
  26117. (use_color): Likewise.
  26118. (NUM_COLORS): New macro.
  26119. (grub_ncurses_setcolorstate): Handle color properly.
  26120. (grub_ncurses_setcolor): Don't change color here, just remember the
  26121. settings, color will be set in grub_ncurses_setcolorstate.
  26122. (grub_ncurses_getcolor): New function.
  26123. (grub_ncurses_init): Initialize color pairs.
  26124. (grub_ncurses_term): New member grub_ncurses_getcolor.
  26125. 2008-08-05 Colin D Bennett <colin@gibibit.com>
  26126. High resolution timer support. Implemented for x86 CPUs using TSC.
  26127. Extracted generic grub_millisleep() so it's linked in only as needed.
  26128. This requires a Pentium compatible CPU; if the RDTSC instruction is
  26129. not supported, then it falls back on the generic grub_get_time_ms()
  26130. implementation that uses the machine's RTC.
  26131. * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
  26132. `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
  26133. `kern/generic/millisleep.c'.
  26134. * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
  26135. `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
  26136. * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
  26137. `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
  26138. * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
  26139. * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
  26140. `kern/generic/millisleep.c'.
  26141. * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
  26142. * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
  26143. * kern/generic/rtc_get_time_ms.c: New file.
  26144. * kern/generic/millisleep.c: New file.
  26145. * kern/misc.c: Don't include
  26146. <kern/time.h> anymore.
  26147. (grub_millisleep_generic): Removed.
  26148. * commands/sleep.c (grub_interruptible_millisleep): Uses
  26149. grub_get_time_ms() instead of grub_get_rtc().
  26150. * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
  26151. function.
  26152. (grub_cpu_is_cpuid_supported): New inline function.
  26153. (grub_cpu_is_tsc_supported): New inline function.
  26154. (grub_tsc_init): New function prototype.
  26155. (grub_tsc_get_time_ms): New function prototype.
  26156. * kern/i386/tsc.c (grub_get_time_ms): New file.
  26157. * include/grub/time.h: Include <grub/types.h.
  26158. (grub_millisleep_generic): Removed.
  26159. (grub_get_time_ms): New prototype.
  26160. (grub_install_get_time_ms): New prototype.
  26161. (grub_rtc_get_time_ms): New prototype.
  26162. * kern/time.c (grub_get_time_ms): New function.
  26163. (grub_install_get_time_ms): New function.
  26164. * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
  26165. <grub/time.h> anymore.
  26166. (grub_millisleep): Removed.
  26167. (grub_machine_init): Call grub_tsc_init.
  26168. * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
  26169. get_time_ms() implementation.
  26170. * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
  26171. (ieee1275_get_time_ms): New function.
  26172. (grub_machine_init): Install get_time_ms() implementation.
  26173. * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
  26174. (grub_machine_init): Call grub_tsc_init().
  26175. (grub_millisleep): Removed.
  26176. * kern/ieee1275/init.c (grub_millisleep): Removed.
  26177. (grub_machine_init): Install ieee1275_get_time_ms()
  26178. implementation.
  26179. (ieee1275_get_time_ms): New function.
  26180. (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
  26181. real work.
  26182. 2008-08-05 Marco Gerards <marco@gnu.org>
  26183. * disk/ata.c: Include <grub/pci.h>.
  26184. (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
  26185. (grub_ata_initialize): Rewritten.
  26186. (grub_ata_device_initialize): New function.
  26187. 2008-08-04 Pavel Roskin <proski@gnu.org>
  26188. * kern/main.c: Include grub/mm.h.
  26189. 2008-08-04 Robert Millan <rmh@aybabtu.com>
  26190. * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
  26191. (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
  26192. corruption problem).
  26193. 2008-08-04 Robert Millan <rmh@aybabtu.com>
  26194. * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
  26195. warnings introduced in my last commit.
  26196. 2008-08-03 Robert Millan <rmh@aybabtu.com>
  26197. Make PCI available on all i386 architectures.
  26198. * include/grub/i386/pc/pci.h: Move from here ...
  26199. * include/grub/i386/pci.h: ... to here.
  26200. * include/grub/i386/pc/pci.h: Remove.
  26201. * include/grub/i386/efi/pci.h: Remove.
  26202. * include/grub/x86_64/efi/pci.h: Remove.
  26203. * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
  26204. `<grub/cpu/pci.h>'.
  26205. * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
  26206. (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
  26207. (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
  26208. * conf/i386-ieee1275.rmk: Likewise.
  26209. 2008-08-03 Robert Millan <rmh@aybabtu.com>
  26210. * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
  26211. (grub_console_setcursor): Make it possible to set cursor off.
  26212. 2008-08-03 Robert Millan <rmh@aybabtu.com>
  26213. * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
  26214. of modules instead of assuming which platform provides what.
  26215. * util/update-grub.in: Likewise.
  26216. 2008-08-03 Robert Millan <rmh@aybabtu.com>
  26217. * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
  26218. instead of `grub_install_dos_part' to determine whether a drive needs
  26219. to be prepended to prefix (`grub_install_dos_part' is not reliable,
  26220. because it can be overridden when loading GRUB via Multiboot).
  26221. 2008-08-02 Robert Millan <rmh@aybabtu.com>
  26222. * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
  26223. 2008-08-02 Robert Millan <rmh@aybabtu.com>
  26224. * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
  26225. of informational grub_dprintf() calls.
  26226. 2008-08-02 Robert Millan <rmh@aybabtu.com>
  26227. * disk/memdisk.c (memdisk_size): Don't initialize.
  26228. (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
  26229. * include/grub/i386/pc/kernel.h
  26230. (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
  26231. (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
  26232. (grub_memdisk_image_size, grub_arch_memdisk_addr)
  26233. (grub_arch_memdisk_size): Remove.
  26234. * include/grub/kernel.h (struct grub_module_header): Remove `offset'
  26235. field (was only used to transfer a constant). Add `type' field to
  26236. support multiple module types.
  26237. (grub_module_iterate): New function.
  26238. * kern/device.c (grub_device_open): Do not hide error messages
  26239. when grub_disk_open() fails. Use grub_print_error() instead.
  26240. * kern/i386/pc/init.c (grub_arch_modules_addr)
  26241. (grub_arch_memdisk_size): Remove functions.
  26242. (grub_arch_modules_addr): Return the module address in high memory
  26243. (now that it isn't copied anymore).
  26244. * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
  26245. (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
  26246. decompression routine (grub_total_module_size already includes that
  26247. now). Don't copy modules back to low memory.
  26248. * kern/main.c: Include `<grub/mm.h>'.
  26249. (grub_load_modules): Split out (and use) ...
  26250. (grub_module_iterate): ... this function, which iterates through
  26251. module objects and runs a hook.
  26252. Comment out grub_mm_init_region() call, as it would cause non-ELF
  26253. modules to be overwritten.
  26254. * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
  26255. the memdisk image in its own region, make it part of the module list.
  26256. * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
  26257. (main): Parse --memdisk|-m option, and pass user-provided path as
  26258. parameter to generate_image().
  26259. (add_segments): Pass `memdisk_path' down to load_modules().
  26260. (load_modules): Embed memdisk image in module section when requested.
  26261. * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
  26262. `header.type' instead of `header.offset'.
  26263. * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
  26264. (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
  26265. (memdisk_mod_LDFLAGS): New variables.
  26266. * conf/i386-coreboot.rmk: Likewise.
  26267. * conf/i386-ieee1275.rmk: Likewise.
  26268. 2008-08-02 Robert Millan <rmh@aybabtu.com>
  26269. * loader/i386/pc/multiboot.c (playground, forward_relocator)
  26270. (backward_relocator): New variables. Used to allocate and relocate
  26271. the payload, respectively.
  26272. (grub_multiboot_load_elf32): Load into heap instead of requested
  26273. address, install the appropriate relocator code in each bound of
  26274. the payload, and set the entry point such that
  26275. grub_multiboot_real_boot() will jump to one of them.
  26276. * kern/i386/loader.S (grub_multiboot_payload_size)
  26277. (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
  26278. (grub_multiboot_payload_entry_offset): New variables.
  26279. (grub_multiboot_real_boot): Set cpu context to what the relocator
  26280. expects, and jump to the relocator instead of the payload.
  26281. * include/grub/i386/loader.h (grub_multiboot_payload_size)
  26282. (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
  26283. (grub_multiboot_payload_entry_offset): Export.
  26284. 2008-08-01 Bean <bean123ch@gmail.com>
  26285. * normal/menu_entry.c (editor_getline): Don't return the original
  26286. string as result, as it will be released by lexer once it has done
  26287. using it.
  26288. 2008-08-01 Robert Millan <rmh@aybabtu.com>
  26289. * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
  26290. within menuentries, not before them.
  26291. util/grub.d/10_hurd.in: Likewise.
  26292. 2008-08-01 Bean <bean123ch@gmail.com>
  26293. * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
  26294. (bufio_mod_SOURCES): New macro.
  26295. (bufio_mod_CFLAGS): Likewise.
  26296. (bufio_mod_LDFLAGS): Likewise.
  26297. * include/grub/bufio.h: New file.
  26298. * io/bufio.c: Likewise.
  26299. * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
  26300. (grub_video_reader_png): Use grub_buffile_open to open file.
  26301. * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
  26302. (grub_video_reader_jpeg): Use grub_buffile_open to open file.
  26303. * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
  26304. (grub_video_reader_tga): Use grub_buffile_open to open file.
  26305. * font/manager.c: Include <grub/bufio.h>.
  26306. (add_font): Use grub_buffile_open to open file.
  26307. 2008-07-31 Robert Millan <rmh@aybabtu.com>
  26308. * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
  26309. ELF segments, use a macro for arbitrarily accessing any of them instead
  26310. of preparing a pointer that allows access to one at a time.
  26311. (grub_multiboot_load_elf64): Likewise.
  26312. 2008-07-31 Bean <bean123ch@gmail.com>
  26313. * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
  26314. GRUB_KERNEL_MACHINE_DATA_END.
  26315. 2008-07-30 Robert Millan <rmh@aybabtu.com>
  26316. * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
  26317. Increase from 0x50 to 0x60.
  26318. * util/i386/pc/grub-install.in: Detect cross-disk installs, and
  26319. use UUIDs to identify the root drive for them. If that's not
  26320. possible, abort.
  26321. * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
  26322. check, for cross-disk installs.
  26323. 2008-07-30 Robert Millan <rmh@aybabtu.com>
  26324. * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
  26325. is non-empty, use it to set the `prefix' environment variable instead
  26326. of the usual approach.
  26327. * kern/i386/linuxbios/init.c (make_install_device): Remove function.
  26328. (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
  26329. environment variable instead of dummy make_install_device().
  26330. * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
  26331. (start): Insert a data section, with `grub_prefix' variable.
  26332. * kern/i386/linuxbios/startup.S: Likewise.
  26333. * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
  26334. New variable reference.
  26335. * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
  26336. New macro. Defines offset of `grub_prefix' within startup.S (relative
  26337. to `start').
  26338. (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
  26339. section within startup.S (relative to `start').
  26340. * include/grub/i386/coreboot/kernel.h: Likewise.
  26341. * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
  26342. Overwrite grub_prefix with its contents, at the beginning of the
  26343. first segment.
  26344. (main): Understand -p|--prefix.
  26345. 2008-07-30 Robert Millan <rmh@aybabtu.com>
  26346. * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
  26347. 2008-07-30 Robert Millan <rmh@aybabtu.com>
  26348. * term/i386/pc/vga_text.c (grub_console_cls): Use
  26349. grub_console_gotoxy() to go back to beginning of the screen.
  26350. Found by Patrick Georgi <patrick.georgi@coresystems.de>
  26351. 2008-07-29 Christian Franke <franke@computer.org>
  26352. * util/update-grub_lib.in (make_system_path_relative_to_its_root):
  26353. Add conversion of emulated mount points on Cygwin.
  26354. 2008-07-29 Christian Franke <franke@computer.org>
  26355. * util/update-grub.in: Add a check for admin
  26356. group on Cygwin.
  26357. Remove old `grub.cfg.new' before creation.
  26358. Add `-f' to `mv' to handle the different filesystem
  26359. semantics of Windows.
  26360. 2008-07-29 Bean <bean123ch@gmail.com>
  26361. * normal/main.c (get_line): Fix buffer overflow bug.
  26362. 2008-07-28 Robert Millan <rmh@aybabtu.com>
  26363. * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
  26364. (struct grub_apple_header): New struct. Describes the layout of
  26365. the partmap header.
  26366. (apple_partition_map_iterate): Check the header magic as well as the
  26367. partition magic (which was already being checked).
  26368. 2008-07-28 Pavel Roskin <proski@gnu.org>
  26369. * genmk.rb: Add a warning to the beginning of the output that
  26370. it's a generated file and should not be edited.
  26371. 2008-07-28 Robert Millan <rmh@aybabtu.com>
  26372. * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
  26373. with the same number are found, just use issue a warning with
  26374. grub_dprintf(), as this error has been reported to be non-fatal.
  26375. 2008-07-27 Robert Millan <rmh@aybabtu.com>
  26376. * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
  26377. information.
  26378. 2008-07-27 Bean <bean123ch@gmail.com>
  26379. * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
  26380. (grub_fat_find_dir): Ignore case when comparing filename.
  26381. 2008-07-27 Bean <bean123ch@gmail.com>
  26382. * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
  26383. smallino, as it's more descriptive, and i8count can be confused with
  26384. the other field count.
  26385. (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
  26386. inode type.
  26387. 2008-07-27 Bean <bean123ch@gmail.com>
  26388. * commands/crc.c: New file.
  26389. * lib/crc.c: Likewise.
  26390. * include/grub/lib/crc.h: Likewise.
  26391. * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
  26392. * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
  26393. (hexdump): Move this function to ...
  26394. * lib/hexdump.c: ... here.
  26395. * include/grub/hexdump.h: Renamed to ...
  26396. * include/grub/lib/hexdump.h: ... this.
  26397. * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
  26398. * util/grub-editenv.c: Likewise.
  26399. * include/envblk.h: Renamed to ...
  26400. * include/lib/envblk.h: ... this.
  26401. * util/envblk.c: Renamed to ...
  26402. * lib/envblk.c: ... this.
  26403. * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
  26404. lib/hexdump.c.
  26405. (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
  26406. (pkglib_MODULES): Add crc.mod.
  26407. (hexdump_mod_SOURCES): Add lib/hexdump.c.
  26408. (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
  26409. (crc_mod_SOURCES): New macro.
  26410. (crc_mod_CFLAGS): Likewise.
  26411. (crc_mod_LDFLAGS): Likewise.
  26412. * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
  26413. * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
  26414. * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
  26415. * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
  26416. * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
  26417. 2008-07-27 Felix Zielcke <fzielcke@z-51.de>
  26418. * commands/help.c: Include <grub/term.h>.
  26419. (TERM_WIDTH): Removed. Updated all users.
  26420. 2008-07-27 Pavel Roskin <proski@gnu.org>
  26421. * util/getroot.c (find_root_device): Rephrase a comment to avoid
  26422. spurious warnings about a comment within a comment.
  26423. 2008-07-25 Robert Millan <rmh@aybabtu.com>
  26424. * util/getroot.c (find_root_device): Skip devices that match
  26425. /dev/dm-[0-9]. This lets the real device be found for any type of
  26426. abstraction (LVM, EVMS, RAID..).
  26427. (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
  26428. and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
  26429. device is found first, find_root_device() will now skip it.
  26430. 2008-07-24 Pavel Roskin <proski@gnu.org>
  26431. * include/grub/types.h: Use __builtin_bswap32() and
  26432. __builtin_bswap64() with gcc 4.3 and newer.
  26433. 2008-07-24 Christian Franke <franke@computer.org>
  26434. * util/i386/pc/grub-install.in: If `--debug' is specified,
  26435. pass `--verbose' to grub-setup.
  26436. Abort script if make_system_path_relative_to_its_root() fails.
  26437. 2008-07-24 Bean <bean123ch@gmail.com>
  26438. * configure.ac: Fixed a bug caused by the previous cygwin patch,
  26439. variable `target_platform' should be `platform'.
  26440. 2008-07-24 Bean <bean123ch@gmail.com>
  26441. * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
  26442. (grub_png_init_fixed_block): New function.
  26443. (grub_png_decode_image_data): Handle fixed huffman code compression.
  26444. 2008-07-24 Bean <bean123ch@gmail.com>
  26445. * common.rmk (bin_UTILITIES): Add grub-pe2elf.
  26446. (grub_pe2elf_SOURCES): New macro.
  26447. (CLEANFILES): Add grub-pe2elf.
  26448. * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
  26449. (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
  26450. (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
  26451. (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
  26452. (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
  26453. (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
  26454. (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
  26455. (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
  26456. (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
  26457. (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
  26458. (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
  26459. (GRUB_PE32_SYM_CLASS_FILE): Likewise.
  26460. (GRUB_PE32_DT_FUNCTION): Likewise.
  26461. (GRUB_PE32_REL_I386_DIR32): Likewise.
  26462. (GRUB_PE32_REL_I386_REL32): Likewise.
  26463. (grub_pe32_symbol): New structure.
  26464. (grub_pe32_reloc): Likewise.
  26465. * util/grub-pe2elf.c: New file.
  26466. * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
  26467. start symbol in non pc platform.
  26468. * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
  26469. The following patches are from Christian Franke.
  26470. * include/grub/dl.h: Remove .previous, gas supports this only
  26471. for ELF format.
  26472. * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
  26473. Remove .type, gas supports this only for ELF format.
  26474. * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
  26475. nullbytes in symbol table. This fixes an infinite loop if table is
  26476. zero filled.
  26477. * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
  26478. TARGET_IMG_LDFLAGS and EXEEXT.
  26479. * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
  26480. TARGET_IMG_LDFLAGS_AC.
  26481. (grub_CHECK_STACK_ARG_PROBE): New function.
  26482. * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
  26483. * conf/i386-pc-cygwin-ld-img.sc: New linker script.
  26484. * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
  26485. to set TARGET_IMG_LD* accordingly.
  26486. Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
  26487. Add call to grub_CHECK_STACK_ARG_PROBE.
  26488. Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
  26489. * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
  26490. * genmk.rb: Add EXEEXT to CLEANFILES.
  26491. 2008-07-23 Robert Millan <rmh@aybabtu.com>
  26492. * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
  26493. define the codes for arrows and lines used for the menu).
  26494. (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
  26495. as well.
  26496. * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
  26497. fonts, because the latter are too slow.
  26498. 2008-07-21 Bean <bean123ch@gmail.com>
  26499. * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
  26500. a20. Run keyboard test last, as it will cause macbook to halt.
  26501. 2008-07-18 Pavel Roskin <proski@gnu.org>
  26502. * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
  26503. load foreign architecture modules correctly anyway. Keep
  26504. support for loading host architecture modules, whether we
  26505. compile them or not.
  26506. 2008-07-17 Pavel Roskin <proski@gnu.org>
  26507. * configure.ac: Use -m32 or -m64 regardless of whether we had to
  26508. change target_cpu. The compiler default can mismatch target_cpu
  26509. in any case.
  26510. * disk/efi/efidisk.c: Fix format warnings on x86_64.
  26511. * kern/efi/efi.c: Likewise.
  26512. * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
  26513. target compiler is functional.
  26514. * configure.ac: Call grub_PROG_TARGET_CC once all target flags
  26515. are set up.
  26516. * configure.ac: Default to efi platform for x86_64-apple. Allow
  26517. powerpc64 CPU, default to ieee1275 platform for it. Split CPU
  26518. adjustments from the rest, only do them if target is not
  26519. explicitly given. Merge other adjustments with the final sanity
  26520. check. Remove an extraneous check for supported CPU. Be
  26521. specific which CPU and which platform is not supported.
  26522. * configure.ac: Default to pc platform for x86_64.
  26523. 2008-07-17 Robert Millan <rmh@aybabtu.com>
  26524. Partial LinuxBIOS -> Coreboot rename.
  26525. * conf/i386-linuxbios.rmk: Renamed to ...
  26526. * conf/i386-coreboot.rmk: ... this.
  26527. * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
  26528. * configure.ac: Accept "coreboot" as input platform (but maintain
  26529. compatibility with "linuxbios").
  26530. * include/grub/i386/linuxbios: Renamed to ...
  26531. * include/grub/i386/coreboot: ... this.
  26532. 2008-07-17 Bean <bean123ch@gmail.com>
  26533. * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
  26534. (appleldr_mod_SOURCE): New variable.
  26535. (appleldr_mod_CFLAGS): Likewise.
  26536. (appleldr_mod_LDFLAGS): Likewise.
  26537. (pci_mod_SOURCES): Likewise.
  26538. (pci_mod_CFLAGS): Likewise.
  26539. (pci_mod_LDFLAGS): Likewise.
  26540. (lspci_mod_SOURCES): Likewise.
  26541. (lspci_mod_CFLAGS): Likewise.
  26542. (lspci_mod_LDFLAGS): Likewise.
  26543. * conf/x86_64-efi.rmk: New file.
  26544. * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
  26545. macro.
  26546. (grub_efidisk_write): Likewise.
  26547. * include/efi/api.h (efi_call_0): New macro.
  26548. (efi_call_1): Likewise.
  26549. (efi_call_2): Likewise.
  26550. (efi_call_3): Likewise.
  26551. (efi_call_4): Likewise.
  26552. (efi_call_5): Likewise.
  26553. (efi_call_6): Likewise.
  26554. * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
  26555. grub_rescue_cmd_chainloader.
  26556. * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
  26557. (grub_pe32_optional_header): Change some fields based on i386 or
  26558. x86_64 platform.
  26559. (GRUB_PE32_PE32_MAGIC): Likewise.
  26560. * include/grub/efi/uga_draw.h: New file.
  26561. * include/grub/elf.h (STN_ABS): New constant.
  26562. (R_X86_64_NONE): Relocation constant for x86_64.
  26563. (R_X86_64_64): Likewise.
  26564. (R_X86_64_PC32): Likewise.
  26565. (R_X86_64_GOT32): Likewise.
  26566. (R_X86_64_PLT32): Likewise.
  26567. (R_X86_64_COPY): Likewise.
  26568. (R_X86_64_GLOB_DAT): Likewise.
  26569. (R_X86_64_JUMP_SLOT): Likewise.
  26570. (R_X86_64_RELATIVE): Likewise.
  26571. (R_X86_64_GOTPCREL): Likewise.
  26572. (R_X86_64_32): Likewise.
  26573. (R_X86_64_32S): Likewise.
  26574. (R_X86_64_16): Likewise.
  26575. (R_X86_64_PC16): Likewise.
  26576. (R_X86_64_8): Likewise.
  26577. (R_X86_64_PC8): Likewise.
  26578. * include/grub/i386/efi/pci.h: New file.
  26579. * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
  26580. Change it value based on platform.
  26581. (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
  26582. (GRUB_E820_RAM): Likewise.
  26583. (GRUB_E820_RESERVED): Likewise.
  26584. (GRUB_E820_ACPI): Likewise.
  26585. (GRUB_E820_NVS): Likewise.
  26586. (GRUB_E820_EXEC_CODE): Likewise.
  26587. (GRUB_E820_MAX_ENTRY): Likewise.
  26588. (grub_e820_mmap): New structure.
  26589. (linux_kernel_header): Change the efi field according to different
  26590. kernel version, also field from linux_kernel_header.
  26591. * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
  26592. * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
  26593. (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
  26594. (GRUB_PCI_ADDR_SPACE_IO): Likewise.
  26595. (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
  26596. (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
  26597. (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
  26598. (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
  26599. (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
  26600. (GRUB_PCI_ADDR_MEM_MASK): Likewise.
  26601. (GRUB_PCI_ADDR_IO_MASK): Likewise.
  26602. * include/grub/x86_64/efi/kernel.h: New file.
  26603. * include/grub/x86_64/efi/loader.h: Likewise.
  26604. * include/grub/x86_64/efi/machine.h: Likewise.
  26605. * include/grub/x86_64/efi/pci.h: Likewise.
  26606. * include/grub/x86_64/efi/time.h: Likewise.
  26607. * include/grub/x86_64/linux.h: Likewise.
  26608. * include/grub/x86_64/setjmp.h: Likewise.
  26609. * include/grub/x86_64/time.h: Likewise.
  26610. * include/grub/x86_64/types.h: Likewise.
  26611. * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
  26612. GRUB_TARGET_SIZEOF_VOID_P.
  26613. * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
  26614. (grub_efi_locate_handle): Likewise.
  26615. (grub_efi_open_protocol): Likewise.
  26616. (grub_efi_set_text_mode): Likewise.
  26617. (grub_efi_stall): Likewise.
  26618. (grub_exit): Likewise.
  26619. (grub_reboot): Likewise.
  26620. (grub_halt): Likewise.
  26621. (grub_efi_exit_boot_services): Likewise.
  26622. (grub_get_rtc): Likewise.
  26623. * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
  26624. (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
  26625. (grub_efi_allocate_pages): Wrap efi calls.
  26626. (grub_efi_free_pages): Wrap efi calls.
  26627. (grub_efi_get_memory_map): Wrap efi calls.
  26628. * kern/x86_64/dl.c: New file.
  26629. * kern/x86_64/efi/callwrap.S: Likewise.
  26630. * kern/x86_64/efi/startup.S: Likewise.
  26631. * loader/efi/appleloader.c: Likewise.
  26632. * loader/efi/chainloader.c (cmdline): New variable.
  26633. (grub_chainloader_unload): Wrap efi calls.
  26634. (grub_chainloader_boot): Likewise.
  26635. (grub_rescue_cmd_chainloader): Wrap efi calls, handle
  26636. command line.
  26637. * loader/efi/chainloader_normal.c (chainloader_command):
  26638. Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
  26639. command line.
  26640. * loader/i386/efi/linux.c (allocate_pages): Change allocation
  26641. method.
  26642. (grub_e820_add_region): New function.
  26643. (grub_linux_boot): Construct e820 map from efi map, handle x86_64
  26644. booting.
  26645. (grub_find_video_card): New function.
  26646. (grub_linux_setup_video): New function.
  26647. (grub_rescue_cmd_linux): Probe for video information.
  26648. * normal/x86_64/setjmp.S: New file.
  26649. * term/efi/console.c (map_char): New function.
  26650. (grub_console_putchar): Map unicode char.
  26651. (grub_console_checkkey): Wrap efi calls.
  26652. (grub_console_getkey): Likewise.
  26653. (grub_console_getwh): Likewise.
  26654. (grub_console_gotoxy): Likewise.
  26655. (grub_console_cls): Likewise.
  26656. (grub_console_setcolorstate): Likewise.
  26657. (grub_console_setcursor): Likewise.
  26658. * util/i386/efi/grub-mkimage.c: Add support for x86_64.
  26659. 2008-07-16 Pavel Roskin <proski@gnu.org>
  26660. * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
  26661. format strings.
  26662. * util/i386/efi/grub-mkimage.c (get_target_address): Return a
  26663. pointer, not an integer. This fixes a warning and prevents
  26664. precision loss on 64-bit systems.
  26665. (relocate_addresses): Remove unneeded cast.
  26666. 2008-07-15 Pavel Roskin <proski@gnu.org>
  26667. * kern/i386/ieee1275/init.c: Include grub/cache.h.
  26668. * term/ieee1275/ofconsole.c: Disable code unused on i386.
  26669. * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
  26670. Fix comparison between signed and unsigned.
  26671. * include/grub/i386/ieee1275/console.h: Declare
  26672. grub_console_init() and grub_console_fini().
  26673. * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
  26674. It's empty and unused.
  26675. * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
  26676. beginning to avoid warnings with some compilers.
  26677. * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
  26678. [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
  26679. 2008-07-14 Pavel Roskin <proski@gnu.org>
  26680. * kern/env.c (grub_register_variable_hook): Don't copy empty
  26681. string, it leaks memory. Pass "" to grub_env_set(), it should
  26682. handle constant strings.
  26683. * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
  26684. * commands/cmp.c (grub_cmd_cmp): Likewise.
  26685. * kern/dl.c (grub_dl_flush_cache): Likewise.
  26686. (grub_dl_load_core): Likewise.
  26687. * kern/elf.c (grub_elf32_load_phdrs): Likewise.
  26688. (grub_elf64_load_phdrs): Likewise.
  26689. 2008-07-13 Pavel Roskin <proski@gnu.org>
  26690. * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
  26691. between signed and unsigned.
  26692. (LzmaEnc_Finish): Fix warning about an unused parameter.
  26693. 2008-07-13 Bean <bean123ch@gmail.com>
  26694. * Makefile.in (enable_lzo): New rule.
  26695. * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
  26696. * configure.ac (ENABLE_LZO): New option --enable-lzo.
  26697. * boot/i386/pc/lnxboot.S: #include <config.h>.
  26698. * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
  26699. its value according to the compression algorithm used, lzo or lzma.
  26700. * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
  26701. compression algorithm according to configure macro.
  26702. * kern/i386/pc/startup.S (codestart): Likewise.
  26703. * kern/i386/pc/lzma_decode.S: New file.
  26704. * include/grub/lib/LzFind.h: Likewise.
  26705. * include/grub/lib/LzHash.h: Likewise.
  26706. * include/grub/lib/LzmaDec.h: Likewise.
  26707. * include/grub/lib/LzmaEnc.h: Likewise.
  26708. * include/grub/lib/LzmaTypes.h: Likewise.
  26709. * lib/LzFind.c: Likewise.
  26710. * lib/LzmaDec.c: Likewise.
  26711. * lib/LzmaEnc.c: Likewise.
  26712. 2008-07-13 Bean <bean123ch@gmail.com>
  26713. * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
  26714. (grub_ext4_extent_header): New structure.
  26715. (grub_ext4_extent): Likewise.
  26716. (grub_ext4_extent_idx): Likewise.
  26717. (grub_ext4_find_leaf): New function.
  26718. (grub_ext2_read_block): Handle extents.
  26719. 2008-07-12 Robert Millan <rmh@aybabtu.com>
  26720. * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
  26721. 2008-07-11 Robert Millan <rmh@aybabtu.com>
  26722. * util/grub.d/40_custom.in: New file. Example on how to add custom
  26723. entries to /etc/grub.d.
  26724. * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
  26725. 40_custom (implicitly, by merging all the grub.d rules).
  26726. 2008-07-11 Pavel Roskin <proski@gnu.org>
  26727. * commands/read.c (grub_getline): Fix invalid memory access.
  26728. Don't add newline to the variable value.
  26729. * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
  26730. [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
  26731. (serial_hw_get_port): Check validity of the port number.
  26732. (grub_cmd_serial): Check return value of serial_hw_get_port().
  26733. 2008-07-07 Pavel Roskin <proski@gnu.org>
  26734. * boot/i386/pc/diskboot.S (notification_string): Replace
  26735. "Loading kernel" with just "loading". This is shorter, less
  26736. confusing and saves a few bytes for possible future changes.
  26737. 2008-07-05 Pavel Roskin <proski@gnu.org>
  26738. * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
  26739. size for ATAPI devices, they are undefined. Output sector
  26740. number in decimal form.
  26741. * disk/ata.c: Use named constants for status bits.
  26742. 2008-07-04 Pavel Roskin <proski@gnu.org>
  26743. * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
  26744. grub_addr_t before casting it to the void pointer to fix a
  26745. warning. Non-addressable regions are discarded earlier.
  26746. (grub_arch_modules_addr): Cast _end to grub_addr_t.
  26747. * kern/i386/linuxbios/table.c: Include grub/misc.h.
  26748. (check_signature): Don't shadow table_header.
  26749. (grub_linuxbios_table_iterate): Cast numeric constants to
  26750. grub_linuxbios_table_header_t.
  26751. * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
  26752. grub_stop().
  26753. * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
  26754. prevent warnings.
  26755. * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
  26756. pointer, which can cause warnings. Support 64-bit addresses.
  26757. * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
  26758. of sizeof(long). This fixes PowerPC image generation on x86_64.
  26759. 2008-07-04 Robert Millan <rmh@aybabtu.com>
  26760. This fixes a performance issue when pc & gpt partmap iterators
  26761. didn't abort iteration even after our hook found what it was
  26762. looking for (often causing expensive probes of non-existent drives).
  26763. Some callers relied on previous buggy behaviour, since they would
  26764. raise an error when their own hooks caused early abortion of its
  26765. iteration.
  26766. * kern/device.c (grub_device_open): Improve error message.
  26767. * disk/lvm.c (grub_lvm_open): Likewise.
  26768. * disk/raid.c (grub_raid_open): Likewise.
  26769. * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
  26770. when hook requests it, independently of grub_errno.
  26771. (pc_partition_map_probe): Do not fail when find_func() caused
  26772. early abortion of pc_partition_map_iterate().
  26773. * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
  26774. when hook requests it, independently of grub_errno.
  26775. (gpt_partition_map_probe): Do not fail when find_func() caused
  26776. early abortion of gpt_partition_map_iterate().
  26777. * kern/partition.c (grub_partition_iterate): Abort parent iteration
  26778. when hook requests it, independently of grub_errno. Do not fail when
  26779. part_map_iterate_hook() caused early abortion of p->iterate().
  26780. * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
  26781. when grub_partition_iterate() returned with non-zero.
  26782. 2008-07-03 Pavel Roskin <proski@gnu.org>
  26783. * disk/ata.c (grub_ata_pio_write): Check status before writing,
  26784. like we do in grub_ata_pio_read().
  26785. (grub_ata_readwrite): Always write individual sectors. Fix the
  26786. sector count for the remainder.
  26787. (grub_ata_write): Enable writing to ATA devices. Correctly
  26788. report error for ATAPI devices.
  26789. 2008-07-02 Pavel Roskin <proski@gnu.org>
  26790. * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
  26791. warning.
  26792. * disk/ata.c (grub_ata_readwrite): Don't increment sector number
  26793. for every read sector, we already increment it for the whole
  26794. batch. This fixes reading more than 256 sectors at once.
  26795. * util/grub-editenv.c (cmd_info): Cast argument to long
  26796. explicitly. ptrdiff_t reduces to int on i386.
  26797. * util/grub-editenv.c (main): Be specific which parameter is
  26798. missing.
  26799. * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
  26800. (memdisk): Make memdisk_orig_addr a pointer.
  26801. * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
  26802. for file offsets, use grub_off_t instead. Fix printf format
  26803. warnings.
  26804. * fs/reiserfs.c: Remove #warning, TODO list items don't belong
  26805. there. Real unexpected warnings should not drown in the noise
  26806. about known problems.
  26807. * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
  26808. grub_disk_addr_t for memory addresses.
  26809. * loader/aout.c (grub_aout_load): Cast load_addr to pointer
  26810. explicitly to fix a warning.
  26811. * util/grub-editenv.c (cmd_info): Fix warning in printf format.
  26812. * Makefile.in (MODULE_LDFLAGS): New variable.
  26813. * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
  26814. the linker accepts --build-id=none.
  26815. * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
  26816. MODULE_LDFLAGS.
  26817. * genmk.rb: Use MODULE_LDFLAGS when linking modules.
  26818. * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
  26819. those in Linux XFS code. Provide a way to access 64-bit parent
  26820. inode.
  26821. (grub_xfs_iterate_dir): Use the new names. Avoid reading past
  26822. the end of struct grub_xfs_dir_header.
  26823. 2008-07-02 Bean <bean123ch@gmail.com>
  26824. * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
  26825. GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
  26826. and GRUB_IEEE1275_FLAG_NO_ANSI.
  26827. * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
  26828. GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
  26829. and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
  26830. * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
  26831. immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
  26832. * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
  26833. GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
  26834. * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
  26835. esc sequence on non ANSI terminal.
  26836. (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
  26837. * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
  26838. beginning of file.
  26839. 2008-07-02 Bean <bean123ch@gmail.com>
  26840. * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
  26841. (grub_editenv_SOURCES): New variable.
  26842. (pkglib_MODULES): Add loadenv.mod.
  26843. (loadenv_mod_SOURCES): New variable.
  26844. (loadenv_mod_CFLAGS): Likewise.
  26845. (loadenv_mod_LDFLAGS): Likewise.
  26846. * include/grub/envblk.h: New file.
  26847. * util/envblk.c: New file.
  26848. * util/grub-editenv.c: New file.
  26849. * commands/loadenv.c: New file.
  26850. 2008-07-01 Pavel Roskin <proski@gnu.org>
  26851. * include/multiboot2.h (struct multiboot_tag_module): Use char,
  26852. not unsigned char. This fixes warnings and is consistent with
  26853. other tags.
  26854. * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
  26855. * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
  26856. * term/tparm.c (analyze): Always set *popcount.
  26857. * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
  26858. cast to fix a warning.
  26859. * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
  26860. cast to suppress a warning.
  26861. * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
  26862. grub_fshelp_read_file() expects.
  26863. * fs/fat.c: Fix UUID calculation on big-endian systems. We
  26864. write uuid as a 32-bit value in CPU byte order, so declare and
  26865. use it as such.
  26866. * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
  26867. long if the format specifier expects it.
  26868. * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
  26869. * partmap/pc.c (pc_partition_map_iterate): Likewise.
  26870. * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
  26871. long to fix a warning.
  26872. * fs/reiserfs.c (grub_reiserfs_read): Change casts in
  26873. grub_dprintf() arguments to fix warnings.
  26874. 2008-06-30 Pavel Roskin <proski@gnu.org>
  26875. * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
  26876. install_bsd_part immediately before core.img is embedded or
  26877. modified on disk. This fixes core.img verification if core.img
  26878. cannot be embedded.
  26879. * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
  26880. core_path to calculate the blocklist.
  26881. Patch from Javier Martín <lordhabbit@gmail.com>
  26882. 2008-06-29 Robert Millan <rmh@aybabtu.com>
  26883. * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
  26884. block to disk block.
  26885. (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
  26886. Patch from Niels Böhm <bitbucket@arcor.de>
  26887. 2008-06-29 Robert Millan <rmh@aybabtu.com>
  26888. * util/update-grub_lib.in (font_path): Search for fonts in
  26889. /boot/grub first, which is more likely to be readable (we aren't
  26890. deciding where fonts live, just looking for them).
  26891. 2008-06-26 Pavel Roskin <proski@gnu.org>
  26892. * util/biosdisk.c (read_device_map): Don't leave dead map
  26893. entries for devices failing stat() check.
  26894. * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
  26895. core_path_dev for the core.img path on the target device.
  26896. 2008-06-26 Robert Millan <rmh@aybabtu.com>
  26897. * disk/fs_uuid.c: New file.
  26898. * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
  26899. (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
  26900. (fs_uuid_mod_LDFLAGS): New variables.
  26901. * include/grub/disk.h (grub_disk_dev_id): Add
  26902. `GRUB_DISK_DEVICE_UUID_ID'.
  26903. * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
  26904. implement iterate().
  26905. 2008-06-26 Robert Millan <rmh@aybabtu.com>
  26906. * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
  26907. "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
  26908. Linux image includes no initrd.
  26909. 2008-06-21 Javier Martín <lordhabbit@gmail.com>
  26910. * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
  26911. call to resolve the core image location that effectively appended the
  26912. name twice.
  26913. 2008-06-21 Robert Millan <rmh@aybabtu.com>
  26914. * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
  26915. call from here ...
  26916. * util/grub.d/10_hurd.in: ... to here ...
  26917. * util/grub.d/10_linux.in: ... and here.
  26918. 2008-06-19 Robert Millan <rmh@aybabtu.com>
  26919. * kern/main.c (grub_main): Export `prefix' variable immediately
  26920. after it has been set by grub_machine_set_prefix().
  26921. 2008-06-19 Robert Millan <rmh@aybabtu.com>
  26922. * commands/search.c (search_label, search_fs_uuid, search_file): Print
  26923. search result when not saving to variable, not the other way around.
  26924. When saving to variable, abort iteration as soon as a match is found.
  26925. 2008-06-19 Robert Millan <rmh@aybabtu.com>
  26926. * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
  26927. check for partition that provides /boot/grub. Its logic is flawed,
  26928. as it prevents prepare_grub_to_access_device() from being called
  26929. multiple times.
  26930. 2008-06-19 Robert Millan <rmh@aybabtu.com>
  26931. * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
  26932. "insmod" command directly when abstraction modules are needed,
  26933. instead of relying on GRUB_PRELOAD_MODULES (which had no effect
  26934. since it had already been processed).
  26935. 2008-06-19 Pavel Roskin <proski@gnu.org>
  26936. * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
  26937. changed. This is needed in case GRUB_LIBDIR changes.
  26938. * conf/i386-ieee1275.rmk: Likewise.
  26939. * conf/i386-linuxbios.rmk: Likewise.
  26940. * conf/i386-pc.rmk: Likewise.
  26941. * conf/powerpc-ieee1275.rmk: Likewise.
  26942. 2008-06-18 Pavel Roskin <proski@gnu.org>
  26943. * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
  26944. kernel_elf_symlist.c to symlist.c for consistency with other
  26945. architectures. Update all users.
  26946. * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
  26947. 2008-06-18 Robert Millan <rmh@aybabtu.com>
  26948. * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
  26949. it in prefix.
  26950. * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
  26951. `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
  26952. a RAID device, run setup() for all members independently on whether
  26953. LVM abstraction is being used.
  26954. (setup): Don't handle prefix at all; let grub-mkimage take care of it.
  26955. If grub-mkimage has set `*install_dos_part == -2', don't override this
  26956. value.
  26957. Perform *install_dos_part adjustments independently on whether
  26958. we're embedding or not.
  26959. Clarify error message when image is too big for embedding.
  26960. Remove duplicate *install_dos_part stanza.
  26961. 2008-06-17 Robert Millan <rmh@aybabtu.com>
  26962. * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
  26963. (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
  26964. variables.
  26965. (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
  26966. values in grub_ofconsole_normal_color and
  26967. grub_ofconsole_highlight_color (they're not directly related to
  26968. background and foreground).
  26969. (grub_ofconsole_setcolorstate): Extract background and foreground
  26970. from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
  26971. 2008-06-17 Robert Millan <rmh@aybabtu.com>
  26972. * util/update-grub_lib.in (prepare_grub_to_access_device): Use
  26973. /boot/grub for the check in last commit, not /boot (they could be
  26974. different partitions).
  26975. 2008-06-16 Robert Millan <rmh@aybabtu.com>
  26976. * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
  26977. asked to setup access for the same partition that provides /boot,
  26978. don't bother using UUIDs since our root already has the value we
  26979. want.
  26980. 2008-06-16 Robert Millan <rmh@aybabtu.com>
  26981. * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
  26982. I2O devices.
  26983. Patch from Sven Mueller <sven@debian.org>.
  26984. 2008-06-16 Robert Millan <rmh@aybabtu.com>
  26985. * util/update-grub.in: Check for $EUID instead of $UID.
  26986. Reported by Vincent Zweije.
  26987. 2008-06-16 Bean <bean123ch@gmail.com>
  26988. * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
  26989. (grub_ext2_read_block): Likewise.
  26990. (grub_ext2_read_inode): Likewise.
  26991. (grub_ext2_mount): Likewise.
  26992. (grub_ext2_close): Likewise.
  26993. (grub_ext3_get_journal): Removed.
  26994. * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
  26995. (grub_reiserfs_read_symlink): Likewise.
  26996. (grub_reiserfs_mount): Likewise.
  26997. (grub_reiserfs_open): Likewise.
  26998. (grub_reiserfs_read): Likewise.
  26999. (grub_reiserfs_close): Likewise.
  27000. (grub_reiserfs_get_journal): Removed.
  27001. * fs/fshelp.c (grub_fshelp_read): Removed.
  27002. (grub_fshelp_map_block): Likewise.
  27003. * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
  27004. (grub_fshelp_journal): Likewise.
  27005. (grub_fshelp_read): Likewise.
  27006. (grub_fshelp_map_block): Likewise.
  27007. 2008-06-16 Pavel Roskin <proski@gnu.org>
  27008. * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
  27009. floating point anymore.
  27010. * include/grub/powerpc/libgcc.h: Leave only necessary exports.
  27011. 2008-06-15 Pavel Roskin <proski@gnu.org>
  27012. * commands/ls.c (grub_ls_list_files): Use integer calculations
  27013. for human readable format, avoid floating point use.
  27014. * kern/misc.c (grub_ftoa): Remove.
  27015. (grub_vsprintf): Remove floating point support.
  27016. 2008-06-15 Robert Millan <rmh@aybabtu.com>
  27017. * util/grub.d/10_linux.in: Use the underlying device for loop-AES
  27018. devices.
  27019. Reported by Max Vozeler.
  27020. 2008-06-15 Robert Millan <rmh@aybabtu.com>
  27021. * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
  27022. in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
  27023. skipped later.
  27024. (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
  27025. the beginning of the prefix.
  27026. * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
  27027. It is assumed that if we have a memdisk, grub-mkimage has set
  27028. grub_prefix to include the "(memdisk)" drive in it.
  27029. 2008-06-15 Robert Millan <rmh@aybabtu.com>
  27030. * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
  27031. Initialize keyboard controller after registering the terminal, so that
  27032. grub_printf() can be called from grub_keyboard_controller_init().
  27033. 2008-06-15 Robert Millan <rmh@aybabtu.com>
  27034. * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
  27035. extent-btree which is written as big endian on disk.
  27036. Reported by Alain Greppin <al@chilibi.org>.
  27037. 2008-06-14 Robert Millan <rmh@aybabtu.com>
  27038. * util/i386/efi/grub-install.in (modules): Remove `_chain'.
  27039. * util/i386/pc/grub-install.in (modules): Likewise.
  27040. 2008-06-13 Pavel Roskin <proski@gnu.org>
  27041. * commands/ls.c (grub_ls_list_files): Fix format warnings.
  27042. 2008-06-13 Bean <bean123ch@gmail.com>
  27043. * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
  27044. * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
  27045. * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
  27046. to indicate sparse block.
  27047. 2008-06-12 Pavel Roskin <proski@gnu.org>
  27048. * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
  27049. number, grub_fshelp_read() does it for us.
  27050. * fs/fshelp.c (grub_fshelp_read): New function. Implement
  27051. linear disk read with journal translation.
  27052. * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
  27053. * include/grub/fshelp.h: Declare grub_fshelp_read().
  27054. 2008-06-09 Pavel Roskin <proski@gnu.org>
  27055. * fs/minix.c (grub_minix_mount): Handle error reading
  27056. superblock.
  27057. 2008-06-08 Robert Millan <rmh@aybabtu.com>
  27058. * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
  27059. don't append the RAID prefix afterwards.
  27060. Reported by Clint Adams.
  27061. 2008-06-08 Robert Millan <rmh@aybabtu.com>
  27062. Based on description from Pavel:
  27063. * kern/disk.c (grub_disk_check_range): Rename to ...
  27064. (grub_disk_adjust_range): ... this. Add a comment explaining the
  27065. tasks performed by this function.
  27066. 2008-06-08 Robert Millan <rmh@aybabtu.com>
  27067. * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
  27068. `num_serial' (for consistency with other variables).
  27069. (struct grub_ntfs_data): Add `uuid' member.
  27070. * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
  27071. (grub_ntfs_uuid): New function.
  27072. (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
  27073. 2008-06-07 Pavel Roskin <proski@gnu.org>
  27074. * util/biosdisk.c (open_device): Revert last change to the
  27075. function, it broke installation. The sector needs to be
  27076. different dependent on which device is opened.
  27077. 2008-06-06 Robert Millan <rmh@aybabtu.com>
  27078. Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
  27079. rest of GRUB, and breakage doesn't happen if its value were modified.
  27080. * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
  27081. Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
  27082. a constant (same value).
  27083. * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
  27084. `GRUB_KERNEL_MACHINE_DATA_END' (same value).
  27085. 2008-06-06 Robert Millan <rmh@aybabtu.com>
  27086. * util/biosdisk.c (open_device): Do not modify sector offset when
  27087. accessing a partition. kern/disk.c already handles this for us.
  27088. 2008-06-06 Robert Millan <rmh@aybabtu.com>
  27089. * util/grub-emu.c (grub_machine_init): Move code in this function from
  27090. here ...
  27091. (main): ... to here (before grub_util_biosdisk_init() call, to prevent
  27092. segfault in case grub_printf() is called).
  27093. * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
  27094. grub_probe. Update all users not to explicitly add it again.
  27095. (grub_device): New variable; contains corresponding device for grubdir.
  27096. (fs_module, partmap_module, devabstraction_module): Pass
  27097. `--device ${grub_device}' to grub_probe to avoid traversing /dev
  27098. every time.
  27099. 2008-06-05 Robert Millan <rmh@aybabtu.com>
  27100. * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
  27101. is found, print it (same layout as with labels).
  27102. 2008-06-04 Robert Millan <rmh@aybabtu.com>
  27103. * util/biosdisk.c (get_drive): Rename to ...
  27104. (find_grub_drive): ... this. Update all users.
  27105. (get_os_disk): Rename to ...
  27106. (convert_system_partition_to_system_disk): ... this. Update all users.
  27107. (find_drive): Rename to ...
  27108. (find_system_device): ... this. Update all users.
  27109. 2008-06-04 Robert Millan <rmh@aybabtu.com>
  27110. * util/biosdisk.c (get_os_disk): Handle IDA devices.
  27111. * util/grub-mkdevicemap.c (get_mmc_disk_name)
  27112. (make_device_map): Likewise.
  27113. 2008-06-01 Robert Millan <rmh@aybabtu.com>
  27114. * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
  27115. before dereferencing it.
  27116. * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
  27117. union with fat12/fat16-specific ones. Add some new fields, including
  27118. `num_serial' for both versions.
  27119. (struct grub_fat_data): Add `uuid' member.
  27120. (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
  27121. names. Initialize `data->uuid' using `num_serial'.
  27122. (grub_fat_uuid): New function.
  27123. (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
  27124. * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
  27125. (grub_reiserfs_uuid): New function.
  27126. (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
  27127. member.
  27128. * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
  27129. (grub_xfs_uuid): New function.
  27130. (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
  27131. 2008-06-01 Robert Millan <rmh@aybabtu.com>
  27132. * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
  27133. code that is backward compatible with pre-uuid search command.
  27134. 2008-05-31 Robert Millan <rmh@aybabtu.com>
  27135. * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
  27136. floppies after everything else, to ensure floppy drive isn't accessed
  27137. unnecessarily (patch from Bean).
  27138. 2008-05-31 Robert Millan <rmh@aybabtu.com>
  27139. * commands/search.c (search_label, search_fs_uuid, search_file): Do
  27140. not print device names when we were asked to set a variable.
  27141. 2008-05-31 Robert Millan <rmh@aybabtu.com>
  27142. * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
  27143. using "cursor-on" and "cursor-off" commands (understood at least by
  27144. the Open Firmware flavour on OLPC).
  27145. 2008-05-31 Michael Gorven <michael@gorven.za.net>
  27146. * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
  27147. on and off sequences.
  27148. 2008-05-31 Robert Millan <rmh@aybabtu.com>
  27149. * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
  27150. * util/update-grub.in: Likewise.
  27151. 2008-05-30 Pavel Roskin <proski@gnu.org>
  27152. * util/biosdisk.c (linux_find_partition): Simplify logic and
  27153. make the code more universal. Keep special processing for
  27154. devfs, but use a simple rule for all other devices. If the
  27155. device ends with a number, append 'p' and the partition number.
  27156. Otherwise, append only the partition number.
  27157. 2008-05-30 Robert Millan <rmh@aybabtu.com>
  27158. * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
  27159. * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
  27160. GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
  27161. the `root' parameter to Linux.
  27162. 2008-05-30 Robert Millan <rmh@aybabtu.com>
  27163. * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
  27164. * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
  27165. --fs_uuid with --fs-uuid.
  27166. * util/update-grub.in: Allow filesystem UUID probes to fail (since not
  27167. all filesystems support them).
  27168. 2008-05-30 Robert Millan <rmh@aybabtu.com>
  27169. * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
  27170. grub_printf() flags, since we're printing in units of 2 bytes.
  27171. 2008-05-30 Robert Millan <rmh@aybabtu.com>
  27172. * util/grub.d/00_header.in: Remove obsolete comment referencing
  27173. convert_system_path_to_grub_path().
  27174. * util/update-grub.in: Likewise.
  27175. * util/update-grub_lib.in (is_path_readable_by_grub): New function.
  27176. (convert_system_path_to_grub_path): Add a warning message explaining
  27177. that this function is deprecated. Rely on is_path_readable_by_grub()
  27178. for the readability checks.
  27179. (font_path): Use is_path_readable_by_grub() for the readability
  27180. check rather than convert_system_path_to_grub_path().
  27181. 2008-05-30 Robert Millan <rmh@aybabtu.com>
  27182. * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
  27183. * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
  27184. converting it first.
  27185. * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
  27186. grub.cfg for access to font file, and afterwards call it again to set
  27187. the root device.
  27188. 2008-05-30 Robert Millan <rmh@aybabtu.com>
  27189. * commands/search.c (options): Add --fs_uuid option.
  27190. (search_fs_uuid): New function.
  27191. (grub_cmd_search): Fix --set argument passing.
  27192. Use search_fs_uuid() when requested via --fs_uuid.
  27193. (grub_search_init): Update help message.
  27194. * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
  27195. and redeclare it as an array of 16-bit words.
  27196. (grub_ext2_uuid): New function.
  27197. (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
  27198. * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
  27199. * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
  27200. (GRUB_DEVICE_BOOT_UUID): New variables.
  27201. (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
  27202. * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
  27203. whenever possible.
  27204. * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
  27205. just assume `root' variable has the right value.
  27206. * util/grub.d/10_linux.in: Likewise.
  27207. * util/grub-probe.c (probe): Probe for filesystem UUID when requested
  27208. via PRINT_FS_UUID.
  27209. (main): Recognise `-t fs_uuid' argument.
  27210. 2008-05-30 Robert Millan <rmh@aybabtu.com>
  27211. * util/biosdisk.c (map): Redefine structure to hold information
  27212. about GRUB drive name.
  27213. (get_drive): Reimplement without assuming (and verifying) BIOS-like
  27214. drive names.
  27215. (call_hook): Remove.
  27216. (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
  27217. member. Assume drive has partitions.
  27218. (grub_util_biosdisk_open): Access device names via `.device' struct
  27219. member.
  27220. (open_device): Likewise.
  27221. (find_drive): Likewise.
  27222. (read_device_map): Adjust map[] usage to match the new struct
  27223. definition. Don't check for duplicates (still possible, but not cheap
  27224. anymore).
  27225. (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
  27226. (make_device_name): Remove assumption of BIOS-like drive names.
  27227. 2008-05-30 Pavel Roskin <proski@gnu.org>
  27228. * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
  27229. compiling execute.c doesn't need grub_script.tab.h anymore.
  27230. (normal/command.c_DEPENDENCIES): Likewise.
  27231. (normal/function.c_DEPENDENCIES): Likewise.
  27232. * conf/i386-ieee1275.rmk: Likewise.
  27233. * conf/i386-linuxbios.rmk: Likewise.
  27234. * conf/i386-pc.rmk: Likewise.
  27235. * conf/powerpc-ieee1275.rmk: Likewise.
  27236. * conf/sparc64-ieee1275.rmk: Likewise.
  27237. 2008-05-29 Pavel Roskin <proski@gnu.org>
  27238. * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
  27239. when scanning metadata for volume group name.
  27240. * include/grub/script.h: Don't include grub_script.tab.h. It's
  27241. a generated file, which may only be included from the files with
  27242. DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
  27243. use union YYSTYPE, as the later allows forward declaration.
  27244. * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
  27245. 2008-05-29 Robert Millan <rmh@aybabtu.com>
  27246. * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
  27247. (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
  27248. [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
  27249. (grub_console_checkkey): Add grub_dprintf() call to report unknown
  27250. scan codes.
  27251. 2008-05-29 Robert Millan <rmh@aybabtu.com>
  27252. * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
  27253. control key combinations.
  27254. 2008-05-29 Robert Millan <rmh@aybabtu.com>
  27255. * util/powerpc/ieee1275/grub-install.in: Move from here ...
  27256. * util/ieee1275/grub-install.in: ... to here.
  27257. * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
  27258. * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
  27259. (grub_install_SOURCES): Likewise.
  27260. 2008-05-29 Robert Millan <rmh@aybabtu.com>
  27261. * fs/affs.c: Update copyright year.
  27262. * fs/ext2.c: Likewise.
  27263. * fs/fshelp.c: Likewise.
  27264. * fs/hfsplus.c: Likewise.
  27265. * fs/ntfs.c: Likewise.
  27266. * fs/xfs.c: Likewise.
  27267. * include/grub/fshelp.h: Likewise.
  27268. * util/grub-mkdevicemap.c: Likewise.
  27269. 2008-05-28 Robert Millan <rmh@aybabtu.com>
  27270. * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
  27271. might need to be fatfs to support some firmware implementations
  27272. (e.g. OFW or EFI).
  27273. 2008-05-28 Robert Millan <rmh@aybabtu.com>
  27274. * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
  27275. devices.
  27276. * util/grub-mkdevicemap.c (get_mmc_disk_name)
  27277. (make_device_map): Likewise.
  27278. 2008-05-20 Bean <bean123ch@gmail.com>
  27279. * fs/fshelp.c (grub_fshelp_map_block): New function.
  27280. (grub_fshelp_find_file): Use 64-bit type for pos and block address.
  27281. Use `>>' and `&' operator to avoid 64-bit divide and modulo.
  27282. * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
  27283. (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
  27284. (grub_fshelp_journal): New structure.
  27285. (grub_fshelp_map_block): New function prototype.
  27286. (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
  27287. (grub_fshelp_map_block): Likewise.
  27288. * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
  27289. (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
  27290. (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
  27291. (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
  27292. (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
  27293. (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
  27294. (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
  27295. (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
  27296. (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
  27297. (EXT3_JOURNAL_FLAG_DELETED): Likewise.
  27298. (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
  27299. (grub_ext2_sblock): New members for journal support.
  27300. (grub_ext3_journal_header): New structure.
  27301. (grub_ext3_journal_revoke_header): Likewise.
  27302. (grub_ext3_journal_block_tag): Likewise.
  27303. (grub_ext3_journal_sblock): Likewise.
  27304. (grub_fshelp_node): New members logfile and journal.
  27305. (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
  27306. grub_fshelp_map_block to get real block number.
  27307. (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
  27308. number.
  27309. (grub_ext2_read_inode): Likewise.
  27310. (grub_ext3_get_journal): New function.
  27311. (grub_read_inode): Initialize journal using grub_ext3_get_journal.
  27312. (grub_ext2_close): Release memory used by journal.
  27313. * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
  27314. (REISERFS_MAGIC_DESC_BLOCK): New macro.
  27315. (grub_reiserfs_transaction_header): Renamed to
  27316. grub_reiserfs_description_block, replace field data with real_blocks.
  27317. (grub_reiserfs_commit_block): New structure.
  27318. (grub_reiserfs_data): New member journal.
  27319. (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
  27320. number.
  27321. (grub_reiserfs_read_symlink): Likewise.
  27322. (grub_reiserfs_iterate_dir): Likewise.
  27323. (grub_reiserfs_open): Likewise.
  27324. (grub_reiserfs_read): Likewise.
  27325. (grub_reiserfs_get_journal): New function.
  27326. (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
  27327. three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
  27328. using grub_reiserfs_get_journal.
  27329. (grub_reiserfs_close): Release memory used by journal.
  27330. * fs/affs.c (grub_affs_read_block): Change block type to
  27331. grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
  27332. * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
  27333. * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
  27334. * fs/ntfs.c (grub_ntfs_read_block): Likewise.
  27335. * fs/udf.c (grub_udf_read_block): Change block type to
  27336. grub_disk_addr_t. Use type cast to avoid warning.
  27337. * fs/xfs.c (grub_xfs_read_block): Likewise.
  27338. 2008-05-16 Christian Franke <franke@computer.org>
  27339. * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
  27340. to ensure that break with ESC will always work.
  27341. * commands/sleep.c (grub_interruptible_millisleep): Likewise.
  27342. Remove ESC from keyboard queue.
  27343. 2008-05-16 Christian Franke <franke@computer.org>
  27344. * util/biosdisk.c: [__CYGWIN__] Add includes.
  27345. (grub_util_biosdisk_open): Use Linux code also for Cygwin.
  27346. (get_os_disk): Move variable declarations to OS specific
  27347. parts to avoid warning.
  27348. [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
  27349. [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
  27350. (grub_util_biosdisk_get_grub_dev): Use Linux code also for
  27351. Cygwin.
  27352. * util/getroot.c: [__CYGWIN__] Add includes.
  27353. (strip_extra_slashes): Fix "/" case.
  27354. [__CYGWIN__] (get_win32_path): New function.
  27355. [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
  27356. [__CYGWIN__] (find_root_device): Disable.
  27357. [__CYGWIN__] (get_bootsec_serial): New function.
  27358. [__CYGWIN__] (find_cygwin_root_device): Likewise.
  27359. [__linux__] (grub_guess_root_device): Add early returns to simplify
  27360. structure.
  27361. [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
  27362. [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
  27363. check for Linux only.
  27364. 2008-05-15 Bean <bean123ch@gmail.com>
  27365. * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
  27366. keyboard hang problem in apple's intel mac.
  27367. 2008-05-09 Robert Millan <rmh@aybabtu.com>
  27368. * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
  27369. devices.
  27370. * util/grub-mkdevicemap.c (get_virtio_disk_name)
  27371. (make_device_map): Likewise.
  27372. Reported by Aurelien Jarno <aurel32@debian.org>
  27373. 2008-05-07 Ian Campbell <ijc@hellion.org.uk>
  27374. * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
  27375. * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
  27376. (make_device_map): Output entries for xvd type disks.
  27377. 2008-05-07 Robert Millan <rmh@aybabtu.com>
  27378. * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
  27379. devices.
  27380. * util/grub-mkdevicemap.c (get_cciss_disk_name)
  27381. (make_device_map): Likewise.
  27382. Reported by Roland Dreier <rdreier@cisco.com>
  27383. 2008-05-07 Robert Millan <rmh@aybabtu.com>
  27384. * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
  27385. grub_strstr() call. Correct a few mistakes in failure path handling.
  27386. 2008-05-06 Robert Millan <rmh@aybabtu.com>
  27387. * util/update-grub_lib.in (make_system_path_relative_to_its_root):
  27388. Do not print a trailing slash (therefore, the root directory is an
  27389. empty string).
  27390. (convert_system_path_to_grub_path): Do not remove trailing slash
  27391. from make_system_path_relative_to_its_root() output.
  27392. * util/i386/pc/grub-install.in: Add trailing slash to output from
  27393. make_system_path_relative_to_its_root().
  27394. 2008-05-06 Robert Millan <rmh@aybabtu.com>
  27395. * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
  27396. ensures that output lines aren't intermangled with those sent to
  27397. stderr (via grub_util_info()).
  27398. * util/grub-probe.c (grub_refresh): Likewise.
  27399. * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
  27400. 2008-05-05 Christian Franke <franke@computer.org>
  27401. * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
  27402. Add Cygwin device names.
  27403. (get_ide_disk_name) [__CYGWIN__]: Likewise.
  27404. (get_scsi_disk_name) [__CYGWIN__]: Likewise.
  27405. (check_device): Return error instead of success on empty name.
  27406. (make_device_map): Move label inside linux specific code to
  27407. prevent compiler warning.
  27408. 2008-04-30 Robert Millan <rmh@aybabtu.com>
  27409. Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
  27410. * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
  27411. first boot option.
  27412. * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
  27413. 2008-04-29 Robert Millan <rmh@aybabtu.com>
  27414. * docs/grub.cfg: New file (example GRUB configuration).
  27415. 2008-04-26 Robert Millan <rmh@aybabtu.com>
  27416. * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
  27417. `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
  27418. and `disk/ieee1275/nand.c'.
  27419. 2008-04-25 Bean <bean123ch@gmail.com>
  27420. * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
  27421. i386-linuxbios.
  27422. * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
  27423. change the buffer size to 4096 for cdrom device.
  27424. * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
  27425. and nand.mod.
  27426. (_linux_mod_SOURCES): New variable.
  27427. (_linux_mod_CFLAGS): Likewise.
  27428. (_linux_mod_LDFLAGS): Likewise.
  27429. (linux_mod_SOURCES): Likewise.
  27430. (linux_mod_CFLAGS): Likewise.
  27431. (linux_mod_LDFLAGS): Likewise.
  27432. (nand_mod_SOURCES): Likewise.
  27433. (nand_mod_CFLAGS): Likewise.
  27434. (nand_mod_LDFLAGS): Likewise.
  27435. * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
  27436. GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
  27437. type property. (nand device in olpc don't have this property)
  27438. * include/grub/disk.h (grub_disk_dev_id): New macro
  27439. GRUB_DISK_DEVICE_NAND_ID.
  27440. * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
  27441. function prototype.
  27442. (grub_rescue_cmd_initrd): Likewise.
  27443. * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
  27444. (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
  27445. ofw_cif_handler and ofw_idt, adjust padding number.
  27446. * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
  27447. GRUB_MACHINE_IEEE1275 is defined.
  27448. * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
  27449. Use NESTED_FUNC_ATTR attribute on the hook parameter.
  27450. * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
  27451. on nested function heap_init.
  27452. (grub_upper_mem): New variable for i386-ieee1275.
  27453. (grub_get_extended_memory): New function for i386-ieee1275.
  27454. (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
  27455. * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
  27456. NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
  27457. property.
  27458. * loader/i386/ieee1275/linux.c: New file.
  27459. * loader/i386/ieee1275/linux_normal.c: New file.
  27460. * disk/ieee1275/nand.c: New file.
  27461. 2008-04-18 Thomas Schwinge <tschwinge@gnu.org>
  27462. * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
  27463. value.
  27464. * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
  27465. 2008-04-18 Robert Millan <rmh@aybabtu.com>
  27466. Restructures early code path on ieee1275 to unify grub_main() as
  27467. the first C function that is executed in every platform.
  27468. * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
  27469. * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
  27470. cmain().
  27471. * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
  27472. * kern/ieee1275/cmain.c (cmain): Rename to ...
  27473. * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
  27474. * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
  27475. at the beginning.
  27476. 2008-04-18 Robert Millan <rmh@aybabtu.com>
  27477. * util/update-grub.in: Fix syntax error when setting
  27478. `GRUB_PRELOAD_MODULES'.
  27479. Reported by Stephane Chazelas <stephane@artesyncp.com>
  27480. 2008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
  27481. * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
  27482. section into account, newer toolchains generate unique build ids
  27483. * configure.ac: remove the test for --build-id=none acceptance,
  27484. we want build ids to be preserved
  27485. * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
  27486. far from other sections don't cause the raw binary images grow
  27487. size
  27488. 2008-04-15 Robert Millan <rmh@aybabtu.com>
  27489. * disk/lvm.c: Update copyright year.
  27490. * kern/misc.c: Likewise.
  27491. 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
  27492. * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
  27493. there is no memory left for physical volume name.
  27494. 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
  27495. * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
  27496. volume name mapping to support bigger than 9 character names properly.
  27497. 2008-04-13 Robert Millan <rmh@aybabtu.com>
  27498. * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
  27499. as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
  27500. 2008-04-13 Christian Franke <franke@computer.org>
  27501. * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
  27502. to create a floppy emulation boot CD when non emulation mode
  27503. does not work.
  27504. Enable Joliet CD filesystem extension.
  27505. 2008-04-13 Robert Millan <rmh@aybabtu.com>
  27506. * kern/misc.c (grub_strncat): Fix off-by-one error.
  27507. Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
  27508. * kern/env.c (grub_env_context_close): Clear current context, not
  27509. previous one.
  27510. Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
  27511. * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
  27512. 2008-04-13 Robert Millan <rmh@aybabtu.com>
  27513. Improve robustness when handling LVM.
  27514. * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
  27515. (and leave `*p' unmodified).
  27516. (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
  27517. through it.
  27518. (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
  27519. iterating through it.
  27520. (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
  27521. through it.
  27522. (grub_lvm_scan_device): Check the return value (and fail gracefully
  27523. when due) on each grub_lvm_getvalue() or grub_strstr() call.
  27524. Don't assume `vg->pvs != NULL' when iterating through it.
  27525. 2008-04-13 Robert Millan <rmh@aybabtu.com>
  27526. * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
  27527. * genmk.rb (partmap): New variable.
  27528. (CLEANFILES, PARTMAPFILES): Add #{partmap}.
  27529. (#{partmap}): New target rule.
  27530. * genpartmaplist.sh: New file.
  27531. * Makefile.in (pkglib_DATA): Add partmap.lst.
  27532. (partmap.lst): New target rule.
  27533. * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
  27534. modules (including all partition maps), instead of preloading them.
  27535. 2007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
  27536. * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
  27537. `linux-boot-prober' (if installed) to detect other operating
  27538. systems which are installed on the computer and add them to
  27539. the boot menu.
  27540. * conf/common.rmk: Build and install 30_os-prober.
  27541. 2008-04-12 Robert Millan <rmh@aybabtu.com>
  27542. * kern/powerpc/ieee1275/init.c: Move from here ...
  27543. * kern/ieee1275/init.c: ... to here. Update all users.
  27544. * kern/powerpc/ieee1275/cmain.c: Move from here ...
  27545. * kern/ieee1275/cmain.c: ... to here. Update all users.
  27546. * kern/powerpc/ieee1275/openfw.c: Move from here ...
  27547. * kern/ieee1275/openfw.c: ... to here. Update all users.
  27548. * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
  27549. * loader/ieee1275/multiboot2.c: ... to here. Update all users.
  27550. 2008-04-10 Pavel Roskin <proski@gnu.org>
  27551. * configure.ac: Always use "_cv_" in cache variables for
  27552. compatibility with Autoconf 2.62.
  27553. 2008-04-07 Robert Millan <rmh@aybabtu.com>
  27554. Revert grub/machine/init.h addition by Pavel (since it breaks on
  27555. i386-ieee1275 and others):
  27556. * util/i386/pc/misc.c: Remove grub/machine/init.h.
  27557. * util/powerpc/ieee1275/misc.c: Likewise.
  27558. 2008-04-07 Robert Millan <rmh@aybabtu.com>
  27559. * util/grub-probe.c (probe): Improve error message.
  27560. 2008-04-07 Robert Millan <rmh@aybabtu.com>
  27561. * util/biosdisk.c (read_device_map): Skip devices that don't exist
  27562. (this prevents the presence of a bogus entry from ruining the whole
  27563. thing).
  27564. 2008-04-06 Pavel Roskin <proski@gnu.org>
  27565. * util/biosdisk.c: Include grub/util/biosdisk.h.
  27566. * util/grub-fstest.c (execute_command): Make static.
  27567. * util/grub-mkdevicemap.c (check_device): Likewise.
  27568. * util/i386/pc/misc.c: Include grub/machine/init.h.
  27569. * util/powerpc/ieee1275/misc.c: Likewise.
  27570. * util/lvm.c: Include grub/util/lvm.h.
  27571. * util/misc.c: Include grub/kernel.h, grub/misc.h and
  27572. grub/cache.h.
  27573. * util/raid.c: Include grub/util/raid.h.
  27574. (grub_util_getdiskname): Make static.
  27575. * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
  27576. grub_hostfs_fini(), as they are called from grub_init_all() and
  27577. grub_fini_all() respectively. This fixes an infinite loop in
  27578. grub-fstest due to double registration of hostfs.
  27579. Reported by Christian Franke <Christian.Franke@t-online.de>
  27580. 2008-04-05 Pavel Roskin <proski@gnu.org>
  27581. * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
  27582. all 8 functions. Otherwise, probe function 0 only.
  27583. 2008-04-04 Pavel Roskin <proski@gnu.org>
  27584. * commands/lspci.c (grub_lspci_iter): Print the bus number
  27585. correctly.
  27586. * commands/lspci.c (grub_pci_classes): Fix typos.
  27587. (grub_lspci_iter): Don't print func twice. Print vendor ID
  27588. before device ID, as it's normally done.
  27589. * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
  27590. Fix signedness warnings.
  27591. * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
  27592. Likewise.
  27593. * util/ieee1275/get_disk_name.c: Include config.h so that
  27594. _GNU_SOURCE is defined and getline() is declared. Mark an
  27595. unused argument as such. Fix a signedness warning.
  27596. 2008-04-02 Pavel Roskin <proski@gnu.org>
  27597. * genkernsyms.sh.in: Use more robust assignments for CC and
  27598. srcdir. Quote srcdir.
  27599. * gensymlist.sh.in: Likewise. Assert at the compile time that
  27600. the symbol table is not empty.
  27601. * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
  27602. * fs/cpio.c (grub_cpio_read): Likewise.
  27603. 2008-04-01 Pavel Roskin <proski@gnu.org>
  27604. * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
  27605. * disk/host.c (grub_host_open): Likewise.
  27606. * disk/loopback.c (grub_loopback_open): Likewise.
  27607. * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
  27608. disk->id as in disk/host.c, not a multi-character constant.
  27609. * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
  27610. later is obsolete, potentially dangerous and sets a bad example.
  27611. * util/i386/efi/grub-mkimage.c (make_header): Likewise.
  27612. * util/misc.c (grub_util_get_image_size): Likewise.
  27613. * disk/loopback.c (options): Improve help for "--partitions".
  27614. * normal/arg.c (grub_arg_show_help): Fix spacing of the long
  27615. options to align them with the short options, e.g. "echo -e".
  27616. 2008-03-31 Bean <bean123ch@gmail.com>
  27617. * video/reader/png.c (grub_png_data): New member is_16bit and
  27618. image_data.
  27619. (grub_png_decode_image_header): Detect 16 bit png image.
  27620. (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
  27621. (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
  27622. (grub_video_reader_png): Release memory occupied by image_data.
  27623. * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
  27624. 4096 bytes.
  27625. (grub_nfs_mount): Skip the test for sector per cluster.
  27626. * include/grub/ntfs.h (MAX_SPC): Removed.
  27627. 2008-03-31 Bean <bean123ch@gmail.com>
  27628. * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
  27629. (grub_probe_SOURCES): Add fs/afs.c.
  27630. (grub_fstest_SOURCES): Likewise.
  27631. (afs_mod_SOURCES): New variable.
  27632. (afs_mod_CFLAGS): Likewise.
  27633. (afs_mod_LDFLAGS): Likewise.
  27634. * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
  27635. (grub_emu_SOURCES): Likewise.
  27636. * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
  27637. * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
  27638. * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
  27639. * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
  27640. * fs/afs.c: New file.
  27641. 2008-03-30 Pavel Roskin <proski@gnu.org>
  27642. * disk/host.c: Include grub/misc.h to fix a warning.
  27643. * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
  27644. warnings about implicit declarations.
  27645. * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
  27646. variable.
  27647. * include/grub/i386/loader.h: Change declaration of
  27648. grub_linux_boot() to match what grub_loader_set() expects.
  27649. * util/getroot.c (grub_guess_root_device): Return const char* to
  27650. fix a warning.
  27651. * util/grub-probe.c (probe): Fix a warning about uninitialized
  27652. abstraction_name variable.
  27653. * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
  27654. second argument as unused to fix a warning.
  27655. * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
  27656. missing grub_error() call.
  27657. * util/update-grub_lib.in: Define datarootdir, since Autoconf
  27658. 2.60 and newer uses it to define datadir.
  27659. * commands/sleep.c: Fix warning about implicit declaration.
  27660. * disk/memdisk.c: Likewise.
  27661. * loader/aout.c: Likewise.
  27662. * loader/i386/bsd_normal.c: Likewise.
  27663. * util/grub-probe.c: Likewise.
  27664. * commands/i386/cpuid.c (has_longmode): Make static.
  27665. * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
  27666. * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
  27667. * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
  27668. GDT. This is more robust, as %ds can change.
  27669. (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
  27670. calling real_to_prot().
  27671. (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
  27672. 2008-03-28 Pavel Roskin <proski@gnu.org>
  27673. * kern/i386/pc/startup.S: Assert that uncompressed functions
  27674. don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
  27675. * kern/i386/pc/lzo1x.S: Remove all .align directives in the
  27676. code, as they push parts of the code (error handlers) beyond
  27677. GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
  27678. code as correctness and size.
  27679. 2008-03-28 Pavel Roskin <proski@gnu.org>
  27680. * kern/i386/pc/startup.S
  27681. (grub_biosdisk_get_diskinfo_int13_extensions): When converting
  27682. data block address to the real mode, keep offset minimal. This
  27683. works around a bug in AWARD BIOS on old Athlon systems, which
  27684. makes CD detection hang.
  27685. 2008-03-26 Pavel Roskin <proski@gnu.org>
  27686. * normal/color.c (grub_parse_color_name_pair): Make `name' a
  27687. const.
  27688. * include/grub/normal.h: Add grub_parse_color_name_pair()
  27689. declaration.
  27690. 2008-03-24 Bean <bean123ch@gmail.com>
  27691. * disk/i386/pc/biosdisk.c (cd_start): Removed.
  27692. (cd_count): Removed.
  27693. (cd_drive): New variable.
  27694. (grub_biosdisk_get_drive): Don't check for (cdN) device.
  27695. (grub_biosdisk_call_hook): Likewise.
  27696. (grub_biosdisk_iterate): Change cdrom detection method.
  27697. (grub_biosdisk_open): Replace cd_start with cd_drive.
  27698. (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
  27699. detect cdrom device.
  27700. * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
  27701. Removed.
  27702. (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
  27703. (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
  27704. (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
  27705. (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
  27706. (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
  27707. (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
  27708. (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
  27709. (grub_biosdisk_cdrp): New structure.
  27710. (grub_biosdisk_get_cdinfo_int13_extensions): New function.
  27711. * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
  27712. * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
  27713. device.
  27714. * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
  27715. New function.
  27716. 2008-03-20 Robert Millan <rmh@aybabtu.com>
  27717. Remove 2 TiB limit in ata.mod.
  27718. * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
  27719. (grub_ata_dumpinfo): Print sector count with 0x%llx.
  27720. (grub_ata_identify): Interpret `&info16[100]' as a pointer to
  27721. grub_uint64_t instead of grub_uint32_t.
  27722. 2008-03-05 Bean <bean123ch@gmail.com>
  27723. * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
  27724. (grub_multiboot): Set boot device.
  27725. * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
  27726. 2008-03-02 Bean <bean123ch@gmail.com>
  27727. * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
  27728. symlink_buffer.
  27729. 2008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
  27730. * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
  27731. texinfo.tex.
  27732. * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
  27733. modified.
  27734. * docs/fdl.texi: New file.
  27735. * docs/mdate-sh: New file. Copied from gnulib.
  27736. * docs/texinfo.tex: Likewise.
  27737. * config.guess: Updated from gnulib.
  27738. * install-sh: Likewise.
  27739. 2008-02-28 Robert Millan <rmh@aybabtu.com>
  27740. * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
  27741. (aout_mod_SOURCES): New variable.
  27742. (aout_mod_CFLAGS): Likewise.
  27743. (aout_mod_LDFLAGS): Likewise.
  27744. * conf/i386-ieee1275.rmk: Likewise.
  27745. 2008-02-28 Robert Millan <rmh@aybabtu.com>
  27746. * util/update-grub.in: Reorganise terminal validity check. Accept
  27747. `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
  27748. Based on suggestion by Franklin PIAT.
  27749. 2008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
  27750. * include/grub/util/getroot.h (grub_util_check_block_device): Export new
  27751. function.
  27752. * util/getroot.c (grub_util_check_block_device): New function that
  27753. returns the given argument if it is a block device and returns NULL else.
  27754. * util/grub-probe.c (argument_is_device): New variable.
  27755. (probe): Promote device_name from a variable to an argument. Receive
  27756. device_name from grub_util_check_block_device() if path is NULL and from
  27757. grub_guess_root_device() else. Do not free() device_name anymore.
  27758. (options): Introduce new parameter '-d, --device'.
  27759. (main): Add description of the new parameter to the help screen.
  27760. Rename path variable to argument. Set argument_is_device if the '-d'
  27761. option is given. Pass argument to probe() depending on
  27762. argument_is_device.
  27763. 2008-02-24 Bean <bean123ch@gmail.com>
  27764. * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
  27765. (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
  27766. (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
  27767. (GRUB_ISO9660_VOLDESC_PART): Likewise.
  27768. (GRUB_ISO9660_VOLDESC_END): Likewise.
  27769. (grub_iso9660_primary_voldesc): New member escape.
  27770. (grub_iso9660_data): New member joliet.
  27771. (grub_iso9660_convert_string): New function.
  27772. (grub_iso9660_mount): Detect joliet extension.
  27773. (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
  27774. (grub_iso9660_iso9660_label): Likewise.
  27775. * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
  27776. (grub_setup_SOURCES): Add fs/udf.c.
  27777. (grub_fstest_SOURCES): Likewise.
  27778. (udf_mod_SOURCES): New variable.
  27779. (udf_mod_CFLAGS): Likewise.
  27780. (udf_mod_LDFLAGS): Likewise.
  27781. * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
  27782. (grub_emu_SOURCES): Likewise.
  27783. * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
  27784. * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
  27785. * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
  27786. * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
  27787. * fs/udf.c: New file.
  27788. 2008-02-24 Robert Millan <rmh@aybabtu.com>
  27789. * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
  27790. (normal/lexer.c_DEPENDENCIES): New variables.
  27791. * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
  27792. (normal/lexer.c_DEPENDENCIES): Likewise.
  27793. * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
  27794. (normal/lexer.c_DEPENDENCIES): Likewise.
  27795. * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
  27796. (normal/lexer.c_DEPENDENCIES): Likewise.
  27797. * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
  27798. (normal/lexer.c_DEPENDENCIES): Likewise.
  27799. * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
  27800. (normal/lexer.c_DEPENDENCIES): Likewise.
  27801. 2008-02-23 Robert Millan <rmh@aybabtu.com>
  27802. * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
  27803. since they were intended to be in hex. This didn't break previously
  27804. because of a bug in gpt_partition_map_iterate() (see below).
  27805. (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
  27806. when checking the validity of GPT header.
  27807. Remove `partno', since it always provides the same information as `i'.
  27808. 2008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
  27809. * include/grub/efi/time.h: Fix a wrong comment.
  27810. 2008-02-19 Pavel Roskin <proski@gnu.org>
  27811. * kern/rescue.c (grub_enter_rescue_mode): Improve initial
  27812. message.
  27813. 2008-02-19 Bean <bean123ch@gmail.com>
  27814. * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
  27815. (aout_mod_SOURCES): New variable.
  27816. (aout_mod_CFLAGS): Likewise.
  27817. (aout_mod_LDFLAGS): Likewise.
  27818. (_bsd_mod_SOURCES): New variable.
  27819. (_bsd_mod_CFLAGS): Likewise.
  27820. (_bsd_mod_LDFLAGS): Likewise.
  27821. (bsd_mod_SOURCES): New variable.
  27822. (bsd_mod_CFLAGS): Likewise.
  27823. (bsd_mod_LDFLAGS): Likewise.
  27824. * include/grub/aout.h: New file.
  27825. * include/grub/i386/loader.h (grub_unix_real_boot): New function.
  27826. * include/grub/i386/bsd.h: New file.
  27827. * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
  27828. to make it public.
  27829. * kern/elf.c (grub_elf32_load): Get the physical address after the hook
  27830. function is called, so that it's possible to change it inside the hook.
  27831. (grub_elf64_load): Likewise.
  27832. (grub_elf_file): Don't close the file if elf header is not found.
  27833. (grub_elf_close): Close the file if grub_elf_file fails (The new
  27834. grub_elf_file won't close it).
  27835. (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
  27836. (grub_elf64_size): Likewise.
  27837. * kern/i386/loader.S (grub_unix_real_boot): New function.
  27838. * loader/aout.c: New file.
  27839. * loader/i386/bsd.c: New file.
  27840. * loader/i386/bsd_normal.c: New file.
  27841. * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
  27842. * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
  27843. can test other formats.
  27844. 2008-02-19 Robert Millan <rmh@aybabtu.com>
  27845. * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
  27846. (grub_gpt_partition_type_empty): Redefine with macro from
  27847. `<grub/gpt_partition.h>'.
  27848. (gpt_partition_map_iterate): Adjust partition type comparison.
  27849. Export `entry' as partmap-specific `part.data' struct.
  27850. (grub_gpt_header, grub_gpt_partentry): Move from here ...
  27851. * include/grub/gpt_partition.h (grub_gpt_header)
  27852. (grub_gpt_partentry): ... to here (new file).
  27853. * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
  27854. (grub_gpt_partition_type_bios_boot): New const variable, defined
  27855. with macro from `<grub/gpt_partition.h>'.
  27856. (setup): Replace `first_start' with `embed_region', which keeps
  27857. track of the embed region (and is partmap-agnostic).
  27858. Replace find_first_partition_start() with find_usable_region(),
  27859. which finds a usable region for embedding using partmap-specific
  27860. knowledge (supports PC/MSDOS and GPT).
  27861. Fix all assumptions that the embed region start at sector 1, using
  27862. `embed_region.start' from now on. Similarly, use `embed_region.end'
  27863. rather than `first_start' to calculate available size.
  27864. In grub_util_info() message, replace "into after the MBR" with an
  27865. indication of the specific sector our embed region starts at.
  27866. 2008-02-19 Robert Millan <rmh@aybabtu.com>
  27867. * DISTLIST: Replace `commands/ieee1275/halt.c' and
  27868. `commands/ieee1275/reboot.c' with `commands/halt.c' and
  27869. `commands/reboot.c'.
  27870. * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
  27871. (halt_mod_SOURCES): Likewise.
  27872. * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
  27873. (halt_mod_SOURCES): Likewise.
  27874. 2008-02-17 Christian Franke <franke@computer.org>
  27875. * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
  27876. 2008-02-17 Robert Millan <rmh@aybabtu.com>
  27877. * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
  27878. set `first_start' to 0 for non-PC/MSDOS partition maps.
  27879. 2008-02-16 Robert Millan <rmh@aybabtu.com>
  27880. * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
  27881. do not assume partition map is PC/MSDOS before performing checks that
  27882. are specific to that layout.
  27883. 2008-02-13 Robert Millan <rmh@aybabtu.com>
  27884. * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
  27885. `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
  27886. * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
  27887. 2008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
  27888. * configure.ac: Only a cosmetic change on the handling of
  27889. -fno-stack-protector.
  27890. 2008-02-12 Alexandre Boeglin <alex@boeglin.org>
  27891. * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
  27892. commands/i386/pc/halt.c and reboot.c by commands/halt.c and
  27893. reboot.c.
  27894. (grub_install_SOURCES): Add halt.mod and reboot.mod.
  27895. (halt_mod_SOURCES): New variable.
  27896. (halt_mod_CFLAGS): Likewise.
  27897. (halt_mod_LDFLAGS): Likewise.
  27898. (reboot_mod_SOURCES): Likewise.
  27899. (reboot_mod_CFLAGS): Likewise.
  27900. (reboot_mod_LDFLAGS): Likewise.
  27901. * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
  27902. commands/ieee1275/halt.c and reboot.c by commands/halt.c and
  27903. reboot.c.
  27904. (halt_mod_SOURCES): Likewise.
  27905. (reboot_mod_SOURCES): Likewise.
  27906. * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
  27907. commands/i386/pc/reboot.c by commands/reboot.c.
  27908. (reboot_mod_SOURCES): Likewise.
  27909. * commands/i386/pc/reboot.c: merge this file ...
  27910. * commands/ieee1275/reboot.c: ... and this file ...
  27911. * commands/reboot.c: ... to this file.
  27912. Add some precompiler directive to include the correct header for
  27913. each machine.
  27914. * commands/ieee1275/halt.c: move this file ...
  27915. * commands/halt.c: ... to here.
  27916. Add some precompiler directive to include the correct header for
  27917. each machine.
  27918. * include/grub/efi/efi.h (grub_reboot): New function declaration.
  27919. (grub_halt): Likewise.
  27920. * kern/efi/efi.c (grub_reboot): New function.
  27921. (grub_halt): Likewise.
  27922. 2008-02-12 Robert Millan <rmh@aybabtu.com>
  27923. * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
  27924. /dev (like it is done for /dev/mapper). This doesn't provide support
  27925. for EVMS, but at least it is now easy to identify the problem when it
  27926. arises.
  27927. 2008-02-11 Robert Millan <rmh@aybabtu.com>
  27928. * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
  27929. (grub_util_biosdisk_get_grub_dev): Check open() exit status by
  27930. comparing it with -1, not 0.
  27931. 2008-02-10 Robert Millan <rmh@aybabtu.com>
  27932. * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
  27933. `disk/lvm.c'.
  27934. * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
  27935. * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
  27936. * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
  27937. `disk/lvm.c' to the end of the list.
  27938. * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
  27939. * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
  27940. 2008-02-10 Robert Millan <rmh@aybabtu.com>
  27941. * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
  27942. grub_print_error() instead. This will let user know why we're entering
  27943. rescue mode.
  27944. Based on suggestions from Sam Morris.
  27945. 2008-02-10 Alexandre Boeglin <alex@boeglin.org>
  27946. * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
  27947. on remaining N args, instead of "--" arg N times.
  27948. 2008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
  27949. * font/manager.c (unknown_glyph): Added variable for unknown glyph.
  27950. (fill_with_default_glyph): Changed to use unknown_glyph for fill
  27951. pattern for unknown glyphs.
  27952. 2008-02-09 Robert Millan <rmh@aybabtu.com>
  27953. * configure.ac: Probe for `help2man'.
  27954. * Makefile.in (builddir): New variable.
  27955. (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
  27956. or otherwise add a few flags/options to it.
  27957. (install-local): For every executable utility or script that is
  27958. installed, invoke $(HELP2MAN) to install a manpage based on --help
  27959. output.
  27960. * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
  27961. that it doesn't prevent --help from working in build tree.
  27962. * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
  27963. with `bug-grub@gnu.org'.
  27964. * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
  27965. * util/update-grub.in (usage): New function.
  27966. Implement proper argument check, with support for --help and --version
  27967. (as well as existing -y).
  27968. 2008-02-09 Christian Franke <franke@computer.org>
  27969. * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
  27970. avoid overwriting previous output.
  27971. * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
  27972. 2008-02-09 Robert Millan <rmh@aybabtu.com>
  27973. * normal/menu.c (run_menu): If timeout is set to zero, don't bother
  27974. drawing the menu.
  27975. 2008-02-09 Robert Millan <rmh@aybabtu.com>
  27976. * commands/sleep.c: New file.
  27977. * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
  27978. (sleep_mod_SOURCES): New variable.
  27979. (sleep_mod_CFLAGS): Likewise.
  27980. (sleep_mod_LDFLAGS): Likewise.
  27981. 2008-02-09 Robert Millan <rmh@aybabtu.com>
  27982. * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
  27983. situations in which we can deduce the RAID size and the superblock
  27984. doesn't match it.
  27985. 2008-02-09 Robert Millan <rmh@aybabtu.com>
  27986. * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
  27987. and return a grub_diskmemberlist_t composed of LVM physical volumes.
  27988. [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
  27989. * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
  27990. and return a grub_diskmemberlist_t composed of physical array members.
  27991. [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
  27992. * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
  27993. prototype.
  27994. [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
  27995. [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
  27996. [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
  27997. * util/grub-probe.c (probe): Move partmap probing code from here ...
  27998. (probe_partmap): ... to here.
  27999. (probe): Use probe_partmap() once for the disk we're probing, and
  28000. additionally, when such disk contains a memberlist() struct member,
  28001. once for each disk that is contained in the structure returned by
  28002. memberlist().
  28003. 2008-02-09 Robert Millan <rmh@aybabtu.com>
  28004. * util/grub-probe.c (main): When `verbosity > 1', set `debug'
  28005. environment variable to 'all' in order to obtain debug output from
  28006. non-util/ code.
  28007. * util/i386/pc/grub-setup.c (main): Likewise.
  28008. 2008-02-08 Robert Millan <rmh@aybabtu.com>
  28009. * disk/raid.c (grub_raid_scan_device): Check for
  28010. `array->device[sb.this_disk.number]' rather than for
  28011. `array->device[sb.this_disk.number]->name', since the latter is not
  28012. guaranteed to be accessible.
  28013. 2008-02-08 Robert Millan <rmh@aybabtu.com>
  28014. * disk/raid.c: Update copyright.
  28015. * fs/cpio.c: Likewise.
  28016. * include/grub/raid.h: Likewise.
  28017. * loader/i386/pc/multiboot.c: Likewise.
  28018. * util/hostfs.c: Likewise.
  28019. 2008-02-08 Robert Millan <rmh@aybabtu.com>
  28020. * include/grub/raid.h (struct grub_raid_array): Change type of `device'
  28021. to a grub_disk_t array.
  28022. * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
  28023. `device[x]'.
  28024. (grub_raid_scan_device): Replace `device[x].name' accesses with
  28025. `device[x]->name'. Simplify initialization of `array->device[x]'.
  28026. 2008-02-08 Robert Millan <rmh@aybabtu.com>
  28027. * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
  28028. grub_dprintf() calls.
  28029. * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
  28030. error message.
  28031. 2008-02-07 Christian Franke <franke@computer.org>
  28032. * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
  28033. instead of fseek and ftell to support large files.
  28034. (grub_hostfs_read): Likewise.
  28035. 2008-02-07 Robert Millan <rmh@aybabtu.com>
  28036. Patch from Jeroen Dekkers.
  28037. * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
  28038. failure, since successfully reading all array members might not be
  28039. required.
  28040. 2008-02-06 Robert Millan <rmh@aybabtu.com>
  28041. * util/grub-probe.c (probe): Simplify partmap probing (with the
  28042. assumption that the first word up to the underscore equals to
  28043. the module name).
  28044. 2008-02-06 Christian Franke <franke@computer.org>
  28045. * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
  28046. (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
  28047. last block of a cpio or tar stream.
  28048. Check for "TRAILER!!!" instead of any empty data
  28049. block to detect last block of a cpio stream.
  28050. (grub_cpio_dir): Fix constness of variable np.
  28051. (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
  28052. cpio or tar trailer is detected. This fixes a crash
  28053. on open of a non existing file.
  28054. 2008-02-05 Bean <bean123ch@gmail.com>
  28055. * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
  28056. address of entry.
  28057. (grub_multiboot_load_elf64): Likewise.
  28058. (grub_multiboot): Initialize mbi structure.
  28059. * util/grub-fstest.c: Don't include unused header file script.h.
  28060. * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
  28061. of file.
  28062. (grub_fstest_SOURCES): Likewise.
  28063. 2008-02-05 Robert Millan <rmh@aybabtu.com>
  28064. * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
  28065. (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
  28066. (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
  28067. (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
  28068. * kern/i386/pc/startup.S: Include `<grub/term.h>'.
  28069. (translation_table): Replace hardcoded values with macros
  28070. provided by `<grub/term.h>'.
  28071. * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
  28072. (keyboard_map): Correct/add a few values, with macros provided
  28073. by `<grub/term.h>'.
  28074. (keyboard_map_shift): Zero values that don't differ from their
  28075. `keyboard_map' equivalents.
  28076. (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
  28077. Discard the second scan code that is always sent by Caps lock.
  28078. Only use `keyboard_map_shift' when it provides a non-zero value,
  28079. otherwise fallback to `keyboard_map'.
  28080. 2008-02-04 Bean <bean123ch@gmail.com>
  28081. * Makefile.in (enable_grub_fstest): New variable.
  28082. * conf/common.rmk (grub_fstest_init.lst): New rule.
  28083. (grub_fstest_init.h): Likewise.
  28084. (grub_fstest_init.c): Likewise.
  28085. (util/grub-fstest.c_DEPENDENCIES): New variable.
  28086. (grub_fstest_SOURCES): Likewise.
  28087. * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
  28088. * util/grub-fstest.c: New file.
  28089. 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
  28090. Make grub-setup handle a separate root device.
  28091. * util/i386/pc/grub-setup.c (setup): Always open the root device,
  28092. so that the root device can be compared with the destination
  28093. device.
  28094. When embedding the core image, if the root and destination devices
  28095. are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
  28096. 0xFF.
  28097. When not embedding, set ROOT_DRIVE to 0xFF.
  28098. 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
  28099. Add support for having a grub directory in a different drive. This
  28100. is still only the data handling part.
  28101. * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
  28102. (codestart): Save %dh in GRUB_ROOT_DRIVE.
  28103. (grub_root_drive): New variable.
  28104. * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
  28105. instead of GRUB_BOOT_DRIVE to construct a device name. Set
  28106. GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
  28107. as it was.
  28108. * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
  28109. * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
  28110. macro.
  28111. (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
  28112. * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
  28113. is bogus, because PXE booting does not specify any drive
  28114. correctly.
  28115. * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
  28116. am not sure if this is really correct.
  28117. * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
  28118. is always identical to the boot drive when booting from a CD.
  28119. * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
  28120. longer.
  28121. (root_drive): New variable.
  28122. (real_start): Unconditionally set %dh to ROOT_DRIVE.
  28123. (setup_sectors): Push %dx right after popping it, because %dh will
  28124. be modified later.
  28125. (copy_buffer): Restore %dx.
  28126. 2008-02-03 Robert Millan <rmh@aybabtu.com>
  28127. * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
  28128. use `cdboot.img' for cdrom images.
  28129. 2008-02-03 Robert Millan <rmh@aybabtu.com>
  28130. * util/grub.d/00_header.in: Issue scripting commands for GRUB to
  28131. only setup gfxterm when `font' command has succeeded.
  28132. 2008-02-03 Robert Millan <rmh@aybabtu.com>
  28133. * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
  28134. (grub_rescue_cmd_multiboot_loader)
  28135. (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
  28136. 2008-02-03 Pavel Roskin <proski@gnu.org>
  28137. * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
  28138. %edx and %esi from stack only after grub_gate_a20() is called.
  28139. grub_gate_a20() clobbers %edx.
  28140. 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
  28141. * configure.ac (AC_INIT): Bumped to 1.96.
  28142. * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
  28143. commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
  28144. include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
  28145. video/readers/png.c.
  28146. 2008-02-03 Bean <bean123ch@gmail.com>
  28147. * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
  28148. (cdboot_img_SOURCES): New variable.
  28149. (cdboot_img_ASFLAGS): New variable.
  28150. (cdboot_img_LDFLAGS): New variable.
  28151. * boot/i386/pc/cdboot.S: New file.
  28152. * disk/i386/pc/biosdisk.c (cd_start): New variable.
  28153. (cd_count): Likewise.
  28154. (grub_biosdisk_get_drive): Add support for cd device.
  28155. (grub_biosdisk_call_hook): Likewise.
  28156. (grub_biosdisk_iterate): Likewise.
  28157. (grub_biosdisk_open): Likewise.
  28158. (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
  28159. (grub_biosdisk_rw): Support reading from cd device.
  28160. (GRUB_MOD_INIT): Iterate cd devices.
  28161. * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
  28162. (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
  28163. (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
  28164. * kern/i386/pc/init.c (make_install_device): Check for cd device.
  28165. 2008-02-02 Robert Millan <rmh@aybabtu.com>
  28166. * commands/read.c: New file.
  28167. * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
  28168. (read_mod_SOURCES): New variable.
  28169. (read_mod_CFLAGS): Likewise.
  28170. (read_mod_LDFLAGS): Likewise.
  28171. 2008-02-02 Robert Millan <rmh@aybabtu.com>
  28172. * normal/main.c (grub_normal_execute): Check for `menu->size' when
  28173. determining whether menu has to be displayed.
  28174. 2008-02-02 Marco Gerards <marco@gnu.org>
  28175. * bus/pci.c: New file.
  28176. * include/grub/pci.h: Likewise.
  28177. * include/grub/i386/pc/pci.h: Likewise.
  28178. * commands/lspci.c: Likewise.
  28179. * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
  28180. `lspci.mod'.
  28181. (pci_mod_SOURCES): New variable.
  28182. (pci_mod_CFLAGS): Likewise.
  28183. (pci_mod_LDFLAGS): Likewise.
  28184. (lspci_mod_SOURCES): Likewise.
  28185. (lspci_mod_CFLAGS): Likewise.
  28186. (lspci_mod_LDFLAGS): Likewise.
  28187. 2008-02-02 Bean <bean123ch@gmail.com>
  28188. * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
  28189. (grub_ufs_get_file_block): Fix indirect block calculation problem.
  28190. * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
  28191. (grub_xfs_btree_node): New structure.
  28192. (grub_xfs_btree_root): New structure.
  28193. (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
  28194. (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
  28195. (GRUB_XFS_EXTENT_BLOCK): Likewise.
  28196. (GRUB_XFS_EXTENT_SIZE): Likewise.
  28197. (grub_xfs_read_block): Support btree format type.
  28198. (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
  28199. Use directory block as basic unit.
  28200. * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
  28201. * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
  28202. __attribute__ ((__regparm__ (1))).
  28203. 2008-02-01 Robert Millan <rmh@aybabtu.com>
  28204. Correct a mistake in previous commit.
  28205. * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
  28206. top.
  28207. (normal/command.c_DEPENDENCIES): New variable.
  28208. 2008-02-01 Robert Millan <rmh@aybabtu.com>
  28209. * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
  28210. top.
  28211. (normal/command.c_DEPENDENCIES): New variable.
  28212. (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
  28213. * conf/i386-ieee1275.rmk: Likewise.
  28214. * conf/i386-linuxbios.rmk: Likewise.
  28215. * conf/i386-pc.rmk: Likewise.
  28216. * conf/sparc64-ieee1275.rmk: Likewise.
  28217. * conf/powerpc-ieee1275.rmk: Likewise.
  28218. (grub_emu_SOURCES): Add `fs/fshelp.c'.
  28219. * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
  28220. 2008-02-01 Robert Millan <rmh@aybabtu.com>
  28221. * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
  28222. call at beginning of function.
  28223. 2008-01-31 Pavel Roskin <proski@gnu.org>
  28224. * util/powerpc/ieee1275/grub-mkrescue.in: New file.
  28225. * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
  28226. (grub_mkrescue_SOURCES): Likewise.
  28227. * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
  28228. 2008-01-30 Robert Millan <rmh@aybabtu.com>
  28229. * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
  28230. (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
  28231. * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
  28232. (grub_probe_SOURCES): ... to here.
  28233. * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
  28234. (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
  28235. * conf/i386-ieee1275.rmk: Likewise.
  28236. * conf/i386-linuxbios.rmk: Likewise.
  28237. * conf/powerpc-ieee1275.rmk: Likewise.
  28238. 2008-01-30 Tristan Gingold <gingold@free.fr>
  28239. * kern/rescue.c: Silently accept empty lines.
  28240. 2008-01-29 Bean <bean123ch@gmail.com>
  28241. * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
  28242. (real_code_2): Code cleanup and change comment style.
  28243. (move_memory): Avoid using 32-bit address mode.
  28244. 2008-01-29 Bean <bean123ch@gmail.com>
  28245. * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
  28246. (png_mod_SOURCES): New variable.
  28247. (png_mod_CFLAGS): Likewise.
  28248. (png_mod_LDFLAGS): Likewise.
  28249. * video/readers/png.c: New file.
  28250. 2008-01-28 Robert Millan <rmh@aybabtu.com>
  28251. * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
  28252. * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
  28253. `ifndef GRUB_MOD_GAP' hack.
  28254. * util/elf/grub-mkimage.c (add_segments): Likewise.
  28255. 2008-01-27 Robert Millan <rmh@aybabtu.com>
  28256. * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
  28257. `GRUB_MOD_GAP' for platforms in which it's not defined.
  28258. * util/elf/grub-mkimage.c (add_segments): Likewise.
  28259. 2008-01-27 Robert Millan <rmh@aybabtu.com>
  28260. Get grub-emu to build again (including parallel builds).
  28261. * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
  28262. Split into ...
  28263. (util/grub-emu.c_DEPENDENCIES): ... this, ...
  28264. (normal/execute.c_DEPENDENCIES): ... this, ...
  28265. (grub-emu_DEPENDENCIES): ... and this.
  28266. * conf/i386-efi.rmk: Likewise.
  28267. * conf/i386-linuxbios.rmk: Likewise.
  28268. * conf/i386-ieee1275.rmk: Likewise.
  28269. * conf/powerpc-ieee1275.rmk: Likewise.
  28270. (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
  28271. 2008-01-27 Robert Millan <rmh@aybabtu.com>
  28272. * NEWS: Add a few items.
  28273. 2008-01-27 Robert Millan <rmh@aybabtu.com>
  28274. Fix parallel builds with grub-emu. Based on earlier commit for
  28275. grub-probe and grub-setup.
  28276. * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
  28277. (util/grub-emu.c_DEPENDENCIES): ... this.
  28278. * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
  28279. (util/grub-emu.c_DEPENDENCIES): ... this.
  28280. * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
  28281. (util/grub-emu.c_DEPENDENCIES): ... this.
  28282. * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
  28283. (util/grub-emu.c_DEPENDENCIES): ... this.
  28284. * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
  28285. (util/grub-emu.c_DEPENDENCIES): ... this.
  28286. 2008-01-27 Pavel Roskin <proski@gnu.org>
  28287. * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
  28288. to create a gap between _end and the modules added to the image
  28289. with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
  28290. * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
  28291. * util/elf/grub-mkimage.c (add_segments): Likewise.
  28292. 2008-01-26 Pavel Roskin <proski@gnu.org>
  28293. * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
  28294. just return an error.
  28295. 2008-01-26 Bean <bean123ch@gmail.com>
  28296. * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
  28297. (grub_reiserfs_get_item): Save offset of the next item.
  28298. (grub_reiserfs_iterate_dir): Use next_offset to find next item.
  28299. 2008-01-25 Robert Millan <rmh@aybabtu.com>
  28300. * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
  28301. make all filesystem sources appear together (possibly fixing omissions
  28302. while at it).
  28303. * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
  28304. * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
  28305. * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
  28306. * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
  28307. * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
  28308. add `kern/file.c'.
  28309. * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
  28310. * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
  28311. * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
  28312. * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
  28313. * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
  28314. (probe): Add a sanity check to make sure of our ability to read
  28315. requested files when probing for filesystem type.
  28316. * genmk.rb: Update copyright year (2007).
  28317. * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
  28318. (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
  28319. (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
  28320. (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
  28321. (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
  28322. : Remove function prototypes.
  28323. 2008-01-25 Robert Millan <rmh@aybabtu.com>
  28324. Revert my previous commits (based on wrong assumption of how grub_errno
  28325. works).
  28326. * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
  28327. * kern/file.c (grub_file_open): Likewise.
  28328. 2008-01-24 Pavel Roskin <proski@gnu.org>
  28329. * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
  28330. that hang if GRUB tries to setup colors.
  28331. * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
  28332. colors for firmwares that don't support it.
  28333. * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
  28334. Recognize Open Hack'Ware, set flags to work around its
  28335. limitations.
  28336. 2008-01-24 Robert Millan <rmh@aybabtu.com>
  28337. * kern/file.c (grub_file_open): Do not account previous failures of
  28338. unrelated functions when grub_errno is checked for.
  28339. Reported by Oleg Strikov.
  28340. 2008-01-24 Bean <bean123ch@gmail.com>
  28341. * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
  28342. (grub_ufs_sblock): New member volume name.
  28343. (grub_ufs_find_file): Fix string copy bug.
  28344. (grub_ufs_label): Implement this function properly.
  28345. * fs/hfs.c (grub_hfs_cnid_type): New enum.
  28346. (grub_hfs_iterate_records): Use the correct file number for extents
  28347. and catalog file. Fix problem in next index calculation.
  28348. (grub_hfs_find_node): Replace recursive function call with loop.
  28349. (grub_hfs_iterate_dir): Replace recursive function call with loop.
  28350. 2008-01-23 Robert Millan <rmh@aybabtu.com>
  28351. * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
  28352. `<grub/symbol.h>' and `<grub/multiboot.h>'.
  28353. (grub_multiboot2_real_boot): New function prototype.
  28354. * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
  28355. [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
  28356. * kern/i386/ieee1275/init.c (grub_os_area_addr)
  28357. (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
  28358. 2008-01-23 Robert Millan <rmh@aybabtu.com>
  28359. * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
  28360. #ifdef'ed out grub_printf().
  28361. 2008-01-23 Robert Millan <rmh@aybabtu.com>
  28362. * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
  28363. grub_dprintf calls, since they make "debug=all" mode unusable.
  28364. (grub_console_checkkey): Likewise.
  28365. 2008-01-23 Robert Millan <rmh@aybabtu.com>
  28366. * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
  28367. `term/i386/pc/at_keyboard.c'.
  28368. (pkglib_MODULES): Add `serial.mod'.
  28369. (serial_mod_SOURCES): New variable.
  28370. (serial_mod_CFLAGS): Likewise.
  28371. (serial_mod_LDFLAGS): Likewise.
  28372. * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
  28373. `<grub/powerpc/ieee1275/console.h>'.
  28374. (grub_keyboard_controller_init): New function prototype.
  28375. (grub_console_checkkey): Likewise.
  28376. (grub_console_getkey): Likewise.
  28377. * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
  28378. keyboard on i386.
  28379. * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
  28380. grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
  28381. 2008-01-23 Robert Millan <rmh@aybabtu.com>
  28382. * kern/i386/pc/init.c (make_install_device): When memdisk image is
  28383. present, "(memdisk)/boot/grub" becomes the default prefix.
  28384. * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
  28385. a memdisk tarball with all the modules. Add --overlay=DIR option that
  28386. allows users to overlay additional files into the image.
  28387. 2008-01-23 Robert Millan <rmh@aybabtu.com>
  28388. * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
  28389. and `machine/memory.h'.
  28390. (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
  28391. (_multiboot_mod_SOURCES): New variable.
  28392. (_multiboot_mod_CFLAGS): Likewise.
  28393. (_multiboot_mod_LDFLAGS): Likewise.
  28394. (multiboot_mod_SOURCES): Likewise.
  28395. (multiboot_mod_CFLAGS): Likewise.
  28396. (multiboot_mod_LDFLAGS): Likewise.
  28397. * include/grub/i386/ieee1275/loader.h: New file.
  28398. * include/grub/i386/ieee1275/machine.h: Likewise.
  28399. * include/grub/i386/ieee1275/memory.h: Likewise.
  28400. * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
  28401. variable declaration.
  28402. (grub_os_area_size): Likewise.
  28403. * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
  28404. (grub_lower_mem, grub_upper_mem): New variables.
  28405. (grub_stop_floppy): New function (just to make
  28406. grub_multiboot2_real_boot() happy).
  28407. * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
  28408. `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
  28409. (grub_stop): New function.
  28410. Include `"../realmode.S"' and `"../loader.S"'.
  28411. * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
  28412. Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
  28413. * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
  28414. rely on grub_multiboot2_real_boot() for final boot.
  28415. 2008-01-22 Robert Millan <rmh@aybabtu.com>
  28416. * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
  28417. `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
  28418. device that doesn't look like an SD card.
  28419. * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
  28420. `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
  28421. * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
  28422. OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
  28423. found.
  28424. 2008-01-22 Robert Millan <rmh@aybabtu.com>
  28425. * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
  28426. avoid claiming over our own code.
  28427. 2008-01-22 Bean <bean123ch@gmail.com>
  28428. * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
  28429. (jpeg_mod_SOURCES): New variable.
  28430. (jpeg_mod_CFLAGS): Likewise.
  28431. (jpeg_mod_LDFLAGS): Likewise.
  28432. * video/readers/jpeg.c : New file.
  28433. 2008-01-22 Bean <bean123ch@gmail.com>
  28434. * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
  28435. there are no more items.
  28436. 2008-01-21 Robert Millan <rmh@aybabtu.com>
  28437. * kern/mm.c (grub_mm_init_region): Improve debug message.
  28438. 2008-01-21 Robert Millan <rmh@aybabtu.com>
  28439. * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
  28440. (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
  28441. address.
  28442. (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
  28443. a C macro.
  28444. * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
  28445. Indicates start of upper memory.
  28446. * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
  28447. (generate_image): Abort when image size is big enough to corrupt
  28448. upper memory.
  28449. * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
  28450. (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
  28451. * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
  28452. instead of hardcoding 0xA0000.
  28453. * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
  28454. (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
  28455. instead of hardcoding 0xA0000.
  28456. 2008-01-21 Robert Millan <rmh@aybabtu.com>
  28457. * disk/memdisk.c (memdisk_size): New variable.
  28458. (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
  28459. `memdisk_size'.
  28460. (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
  28461. image to dynamic memory.
  28462. (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
  28463. `memdisk_size'. Free memdisk block.
  28464. 2008-01-21 Robert Millan <rmh@aybabtu.com>
  28465. Fix detection of very small filesystems (like tar).
  28466. * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
  28467. contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
  28468. GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
  28469. a problem with this disk).
  28470. 2008-01-21 Robert Millan <rmh@aybabtu.com>
  28471. * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
  28472. on grub_biosdisk_rw_standard() error.
  28473. 2008-01-21 Robert Millan <rmh@aybabtu.com>
  28474. * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
  28475. recent changes.
  28476. * kern/elf.c: Likewise.
  28477. * kern/ieee1275/ieee1275.c: Likewise.
  28478. * kern/powerpc/ieee1275/openfw.c: Likewise.
  28479. * term/ieee1275/ofconsole.c: Likewise.
  28480. 2008-01-21 Robert Millan <rmh@aybabtu.com>
  28481. * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
  28482. * include/grub/kernel.h (grub_arch_memdisk_addr)
  28483. (grub_arch_memdisk_size): Moved from here ...
  28484. * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
  28485. (grub_arch_memdisk_size): ... to here.
  28486. 2008-01-21 Robert Millan <rmh@aybabtu.com>
  28487. Mostly based on bugfix from Bean.
  28488. * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
  28489. attribute with hook() parameter.
  28490. (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
  28491. declaration.
  28492. (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
  28493. attribute with hook() parameter.
  28494. (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
  28495. declaration.
  28496. 2008-01-21 Robert Millan <rmh@aybabtu.com>
  28497. * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
  28498. (pkglib_MODULES): Add `memdisk.mod'.
  28499. (memdisk_mod_SOURCES): New variable.
  28500. (memdisk_mod_CFLAGS): Likewise.
  28501. (memdisk_mod_LDFLAGS): Likewise.
  28502. * disk/memdisk.c: New file.
  28503. * include/grub/disk.h (grub_disk_dev_id): Add
  28504. `GRUB_DISK_DEVICE_MEMDISK_ID'.
  28505. * include/grub/i386/pc/kernel.h
  28506. (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
  28507. (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
  28508. (grub_kernel_image_size): New variable declaration.
  28509. (grub_total_module_size): Likewise.
  28510. (grub_memdisk_image_size): Likewise.
  28511. * include/grub/i386/pc/memory.h
  28512. (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
  28513. * include/grub/kernel.h: Include `<grub/symbol.h>'.
  28514. (grub_arch_memdisk_addr): New variable declaration.
  28515. (grub_arch_memdisk_size): Likewise.
  28516. * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
  28517. (grub_arch_memdisk_size): Likewise.
  28518. * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
  28519. (codestart): Replace hardcoded `0x100000' with
  28520. `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
  28521. * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
  28522. (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
  28523. not NULL, append the contents of the file it refers to, at the end of
  28524. the compressed kernel image. Initialize `grub_memdisk_image_size'
  28525. variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
  28526. (options): Add "memdisk"|'m' option.
  28527. (main): Parse --memdisk|-m option, and pass user-provided path as
  28528. parameter to generate_image().
  28529. 2008-01-20 Robert Millan <rmh@aybabtu.com>
  28530. * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
  28531. grub_dprintf() calls from here ...
  28532. * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
  28533. 2008-01-20 Robert Millan <rmh@aybabtu.com>
  28534. Fix detection of "real mode" when /options/real-mode? doesn't exist.
  28535. * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
  28536. declaration.
  28537. * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
  28538. (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
  28539. `GRUB_IEEE1275_FLAG_REAL_MODE'.
  28540. (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
  28541. property).
  28542. * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
  28543. `grub_ieee1275_mmu' rather than obtaining a handler on every call.
  28544. 2008-01-19 Robert Millan <rmh@aybabtu.com>
  28545. Get rid of confusing function (superseded by
  28546. `grub_ieee1275_get_integer_property')
  28547. * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
  28548. prototype.
  28549. * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
  28550. function.
  28551. * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
  28552. grub_ieee1275_decode_int_4(), by obtaining integer properties directly
  28553. in native endianness from grub_ieee1275_get_integer_property().
  28554. 2008-01-19 Robert Millan <rmh@aybabtu.com>
  28555. * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
  28556. command after "shut-down", since implementations differ on which
  28557. the command for halt is.
  28558. 2008-01-19 Robert Millan <rmh@aybabtu.com>
  28559. * include/grub/i386/linuxbios/console.h: Add header protection.
  28560. (grub_keyboard_controller_init): New function prototype.
  28561. * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
  28562. (KEYBOARD_COMMAND_READ): Likewise.
  28563. (KEYBOARD_COMMAND_WRITE): Likewise.
  28564. (KEYBOARD_SCANCODE_SET1): Likewise.
  28565. (grub_keyboard_controller_write): New function.
  28566. (grub_keyboard_controller_read): Likewise.
  28567. (grub_keyboard_controller_init): Likewise.
  28568. * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
  28569. (grub_console_init): On coreboot/LinuxBIOS, call
  28570. grub_keyboard_controller_init().
  28571. 2008-01-19 Robert Millan <rmh@aybabtu.com>
  28572. PowerPC changes provided by Pavel Roskin.
  28573. * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
  28574. * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
  28575. don't rely on cmain() doing it.
  28576. * kern/i386/ieee1275/startup.S (_start): Store %eax in
  28577. grub_ieee1275_entry_fn, don't rely on cmain() doing it.
  28578. 2008-01-16 Robert Millan <rmh@aybabtu.com>
  28579. * include/grub/i386/linuxbios/memory.h
  28580. (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
  28581. * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
  28582. receive `table_header' as argument. Instead, probe for it in the
  28583. known memory ranges where it can be present.
  28584. (grub_available_iterate): Do not pass a fixed `table_header' address
  28585. to grub_linuxbios_table_iterate().
  28586. 2008-01-15 Robert Millan <rmh@aybabtu.com>
  28587. * configure.ac: Add `i386-ieee1275' to the list of supported targets.
  28588. * conf/i386-ieee1275.rmk: New file.
  28589. * include/grub/i386/ieee1275/console.h: Likewise.
  28590. * include/grub/i386/ieee1275/ieee1275.h: Likewise.
  28591. * include/grub/i386/ieee1275/kernel.h: Likewise.
  28592. * include/grub/i386/ieee1275/time.h: Likewise.
  28593. * kern/i386/ieee1275/init.c: Likewise.
  28594. * kern/i386/ieee1275/startup.S: Likewise.
  28595. 2008-01-15 Robert Millan <rmh@aybabtu.com>
  28596. * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
  28597. when pointers are 32-bit (but still do set it to one when they are
  28598. 64-bit).
  28599. 2008-01-15 Robert Millan <rmh@aybabtu.com>
  28600. * include/grub/ieee1275/ieee1275.h
  28601. (grub_ieee1275_get_integer_property): New function prototype.
  28602. * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
  28603. (grub_ieee1275_get_integer_property): New function. Wraps around
  28604. grub_ieee1275_get_property() to handle endianness.
  28605. * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
  28606. grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
  28607. where appropriate.
  28608. * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
  28609. (grub_map): Likewise.
  28610. * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
  28611. 2008-01-15 Bean <bean123ch@gmail.com>
  28612. * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
  28613. (grub_script_execute_cmdline): Reset grub_errno.
  28614. * normal/main.c (read_config_file): Reset grub_errno.
  28615. * normal/parse.y (script_init): New.
  28616. (script): Move function and menuentry here.
  28617. (delimiter): New.
  28618. (command): Add delimiter at the end of command.
  28619. (commands): Adjust to match the new command.
  28620. (commandblock): Remove grub_script_lexer_record_start.
  28621. (menuentry): Add grub_script_lexer_record_start, use the new commands.
  28622. (if): Use the new commands.
  28623. * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
  28624. 2008-01-15 Robert Millan <rmh@aybabtu.com>
  28625. * normal/menu.c (run_menu): Move timeout message from here ...
  28626. (print_timeout): ... to here.
  28627. (run_menu): Use print_timeout() once during initial draw to print
  28628. the whole message, and again in every clock tick to update only
  28629. the number of seconds.
  28630. 2008-01-15 Robert Millan <rmh@aybabtu.com>
  28631. * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
  28632. actual size of `available' from grub_ieee1275_get_property(), and
  28633. restrict parsing to that bound.
  28634. 2008-01-15 Christian Franke <franke@computer.org>
  28635. * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
  28636. (argp_program_version): Remove variable.
  28637. (argp_program_bug_address): Likewise.
  28638. (options): Convert from struct argp_option to struct option.
  28639. (struct arguments): Remove.
  28640. (parse_opt): Remove.
  28641. (usage): New function.
  28642. (main): Replace struct args members by simple variables.
  28643. Replace argp_parse() by getopt_long().
  28644. Add switch to evaluate options.
  28645. Add missing "(...)" around root_dev in prefix string.
  28646. 2008-01-14 Robert Millan <rmh@aybabtu.com>
  28647. * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
  28648. for grub_ieee1275_exit(), in order to improve portability.
  28649. 2008-01-14 Robert Millan <rmh@aybabtu.com>
  28650. * util/grub.d/10_linux.in (prefix): Define.
  28651. (exec_prefix): Likewise. Both definitions are later used by `libdir'.
  28652. 2008-01-13 Pavel Roskin <proski@gnu.org>
  28653. * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
  28654. grub_errno if no errors have been detected.
  28655. 2008-01-12 Robert Millan <rmh@aybabtu.com>
  28656. * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
  28657. (grub_util_get_dev_abstraction): New function prototype.
  28658. * util/getroot.c: Include `<grub/util/getroot.h>'
  28659. (grub_util_get_grub_dev): Move detection of abstraction type to ...
  28660. (grub_util_get_dev_abstraction): ... here (new function).
  28661. * util/grub-probe.c: Convert PRINT_* to an enum. Add
  28662. `PRINT_ABSTRACTION'.
  28663. (probe): Probe for abstraction type when requested.
  28664. (main): Understand `--target=abstraction'.
  28665. * util/i386/efi/grub-install.in: Add abstraction module to core
  28666. image when it is found to be necessary.
  28667. * util/i386/pc/grub-install.in: Likewise.
  28668. * util/powerpc/ieee1275/grub-install.in: Likewise.
  28669. * util/update-grub_lib.in (font_path): Return system path without
  28670. converting to GRUB path.
  28671. * util/update-grub.in: Convert system path returned by font_path()
  28672. to a GRUB path. Use `grub-probe -t abstraction' to determine what
  28673. abstraction module is needed for loading fonts (if any). Export
  28674. that as `GRUB_PRELOAD_MODULES'.
  28675. * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
  28676. insmod commands).
  28677. 2008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
  28678. Remove some unused code from reiserfs.
  28679. * fs/reiserfs.c (struct grub_reiserfs_key)
  28680. [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
  28681. (struct grub_reiserfs_node_body): Removed.
  28682. (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
  28683. Likewise.
  28684. (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
  28685. Likewise.
  28686. (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
  28687. Likewise.
  28688. (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
  28689. Likewise.
  28690. (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
  28691. Likewise.
  28692. (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
  28693. Likewise.
  28694. (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
  28695. (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
  28696. (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
  28697. 2008-01-10 Robert Millan <rmh@aybabtu.com>
  28698. * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
  28699. Determines if a file is garbage left by packaging systems, etc.
  28700. * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
  28701. for processing /etc/grub.d scripts.
  28702. * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
  28703. * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
  28704. as a condition for processing Linux images.
  28705. 2008-01-10 Pavel Roskin <proski@gnu.org>
  28706. * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
  28707. to compile reiserfs.c on PowerPC.
  28708. 2008-01-10 Robert Millan <rmh@aybabtu.com>
  28709. * kern/device.c (grub_device_iterate): Do not abort device iteration
  28710. when one of the devices cannot be opened.
  28711. * kern/disk.c (grub_disk_open): Do not account previous failures of
  28712. unrelated functions when grub_errno is checked for.
  28713. 2008-01-08 Robert Millan <rmh@aybabtu.com>
  28714. * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
  28715. `! grub_linux_is_bzimage', change order of address comparison to make
  28716. it more intuitive, and improve "too big zImage" error message.
  28717. 2008-01-08 Robert Millan <rmh@aybabtu.com>
  28718. * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
  28719. `$(update-grub_DATA)'.
  28720. (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
  28721. targets.
  28722. 2008-01-07 Robert Millan <rmh@aybabtu.com>
  28723. * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
  28724. which instruction is modified by grub-setup during installation
  28725. (since it wasn't obvious by only looking at this file).
  28726. 2008-01-07 Robert Millan <rmh@aybabtu.com>
  28727. * TODO: Rewrite. Just refer to the wiki and the BTS instead of
  28728. listing actual TODO items.
  28729. 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
  28730. * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
  28731. correctly.
  28732. (grub_reiserfs_get_key_offset): Likewise.
  28733. (grub_reiserfs_set_key_offset): Likewise.
  28734. (grub_reiserfs_set_key_type): Likewise.
  28735. (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
  28736. (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
  28737. better to remove the bitfield version completely.
  28738. 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
  28739. * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
  28740. allocated from the heap, due to the fshelp implementation.
  28741. (grub_reiserfs_dir): Free NODE, due to the same reason.
  28742. 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
  28743. Mostly from Vincent Pelletier:
  28744. * fs/reiserfs.c: New file.
  28745. * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
  28746. (reiserfs_mod_SOURCES): New variable.
  28747. (reiserfs_mod_CFLAGS): Likewise.
  28748. (reiserfs_mod_LDFLAGS): Likewise.
  28749. * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
  28750. disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
  28751. include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
  28752. normal/color.c.
  28753. 2008-01-06 Robert Millan <rmh@aybabtu.com>
  28754. * normal/color.c: Remove `<grub/env.h>'.
  28755. 2008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
  28756. * include/grub/normal.h: Include <grub/env.h>.
  28757. 2008-01-05 Robert Millan <rmh@aybabtu.com>
  28758. * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
  28759. usage example with `(hd0,1)'.
  28760. Reported by Samuel Thibault.
  28761. 2008-01-05 Robert Millan <rmh@aybabtu.com>
  28762. * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
  28763. (grub_linux_boot_zimage): Rename to ...
  28764. (grub_linux_boot): ... this.
  28765. (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
  28766. (grub_linux_boot_zimage): Conditionalize zImage copy.
  28767. * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
  28768. (grub_linux_boot_bzimage): Remove prototype.
  28769. (grub_linux_boot_zimage): Rename to ...
  28770. (grub_linux_boot): ... this.
  28771. * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
  28772. (grub_linux_boot): Remove function.
  28773. 2008-01-05 Robert Millan <rmh@aybabtu.com>
  28774. * include/grub/normal.h (grub_env_write_color_normal): New prototype.
  28775. (grub_env_write_color_highlight): Likewise.
  28776. (grub_wait_after_message): Likewise.
  28777. * normal/color.c: New file.
  28778. * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
  28779. (normal_mod_DEPENDENCIES): Likewise.
  28780. * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
  28781. (normal_mod_DEPENDENCIES): Likewise.
  28782. * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
  28783. (normal_mod_DEPENDENCIES): Likewise.
  28784. * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
  28785. (normal_mod_DEPENDENCIES): Likewise.
  28786. * normal/menu_entry.c (run): Rely on grub_wait_after_message()
  28787. for waiting after a message is printed.
  28788. * normal/main.c (read_config_file): Likewise.
  28789. (grub_normal_init): Register grub_env_write_color_normal() and
  28790. grub_env_write_color_highlight() hooks. Mark `color_normal' and
  28791. `color_highlight' variables as global.
  28792. * normal/menu.c (grub_wait_after_message): New function.
  28793. (grub_color_menu_normal): New variable. Replaces ...
  28794. (GRUB_COLOR_MENU_NORMAL): ... this macro.
  28795. (grub_color_menu_highlight): New variable. Replaces ...
  28796. (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
  28797. (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
  28798. `GRUB_TERM_COLOR_STANDARD'.
  28799. (print_message): Use `grub_setcolorstate' to reload colors. Rename
  28800. `normal_code' and `highlight_code' to `old_color_normal' and
  28801. `old_color_highlight', respectively.
  28802. (grub_menu_init_page): Update colors when drawing the menu, based on
  28803. `menu_color_normal' and `menu_color_highlight' variables.
  28804. (grub_menu_run): Rely on grub_wait_after_message() for waiting after
  28805. a message is printed.
  28806. 2008-01-05 Robert Millan <rmh@aybabtu.com>
  28807. * kern/env.c (grub_env_context_open): Propagate hooks for global
  28808. variables to new context.
  28809. * kern/main.c (grub_set_root_dev): Export `root' variable.
  28810. 2008-01-05 Robert Millan <rmh@aybabtu.com>
  28811. * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
  28812. discs unconditionally, since udev and others have options to provide
  28813. them.
  28814. 2008-01-05 Robert Millan <rmh@aybabtu.com>
  28815. * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
  28816. 2008-01-04 Christian Franke <franke@computer.org>
  28817. * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
  28818. of eisa_mmap.
  28819. 2008-01-03 Pavel Roskin <proski@gnu.org>
  28820. * kern/i386/linuxbios/init.c: Put "void" to all function
  28821. declarations with no arguments.
  28822. * kern/powerpc/ieee1275/init.c: Likewise.
  28823. * term/i386/pc/at_keyboard.c: Likewise.
  28824. * term/i386/pc/vga_text.c: Likewise.
  28825. * util/grub-mkdevicemap.c: Likewise.
  28826. 2008-01-02 Robert Millan <rmh@aybabtu.com>
  28827. * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
  28828. message when loaded image is out of bounds.
  28829. (grub_multiboot_load_elf64): Likewise.
  28830. 2008-01-02 Pavel Roskin <proski@gnu.org>
  28831. * util/grub.d/10_linux.in: Try version without ".old" when
  28832. looking for initrd. It's better to use initrd from the newer
  28833. kernel of the same version than no initrd at all.
  28834. 2008-01-01 Robert Millan <rmh@aybabtu.com>
  28835. * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
  28836. 2008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
  28837. * include/grub/video.h: Added grub_video_unmap_color and
  28838. grub_video_get_active_render_target.
  28839. (grub_video_adapter): Added unmap_color and get_active_render_target.
  28840. * video/video.c: Added grub_video_unmap_color and
  28841. grub_video_get_active_render_target.
  28842. (grub_video_get_info): Changed method to accept NULL pointer as an
  28843. argument to allow detection of active video adapter.
  28844. * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
  28845. grub_video_vbe_unmap_color_int.
  28846. Added grub_video_vbe_unmap_color and
  28847. grub_video_vbe_get_active_render_target.
  28848. (grub_video_vbe_adapter): Added unmap_color and
  28849. get_active_render_target.
  28850. * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
  28851. with grub_video_vbe_unmap_color_int.
  28852. * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
  28853. (DEFAULT_NORMAL_COLOR): Likewise.
  28854. (DEFAULT_HIGHLIGHT_COLOR) Likewise.
  28855. (DEFAULT_FG_COLOR): Removed.
  28856. (DEFAULT_BG_COLOR): Likewise.
  28857. (DEFAULT_CURSOR_COLOR): Changed value.
  28858. (grub_virtual_screen): Added standard_color_setting,
  28859. normal_color_setting, highlight_color_setting and term_color.
  28860. (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
  28861. (bitmap_width): Added.
  28862. (bitmap_height): Likewise.
  28863. (bitmap): Likewise.
  28864. (set_term_color): Likewise.
  28865. (grub_virtual_screen_setup): Changed to use new terminal coloring
  28866. settings.
  28867. (grub_gfxterm_init): Added init for bitmap.
  28868. (grub_gfxterm_fini): Added destroy for bitmap.
  28869. (redraw_screen_rect): Updated to use background bitmap and new
  28870. terminal coloring.
  28871. (scroll_up): Added optimization for case when there is no bitmap.
  28872. (grub_gfxterm_cls): Fixed to use correct background color.
  28873. (grub_virtual_screen_setcolorstate): Changed to use new terminal
  28874. coloring.
  28875. (grub_virtual_screen_setcolor): Likewise.
  28876. (grub_virtual_screen_getcolor): Added.
  28877. (grub_gfxterm_background_image_cmd): Likewise.
  28878. (grub_video_term): Added setcolor and getcolor.
  28879. (MOD_INIT): Added registration of background_image command.
  28880. (MOD_TERM): Added unregistration for background_image command.
  28881. 2007-12-30 Pavel Roskin <proski@gnu.org>
  28882. * loader/multiboot_loader.c: Fix multiboot command
  28883. unregistration. Fix all typos in the word "multiboot".
  28884. 2007-12-29 Pavel Roskin <proski@gnu.org>
  28885. * util/grub.d/10_linux.in: Refactor search for initrd. Add
  28886. support for initrd names used in Fedora.
  28887. 2007-12-26 Bean <bean123ch@gmail.com>
  28888. * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
  28889. (cpio_mod_SOURCES): New variable.
  28890. (cpio_mod_CFLAGS): Likewise.
  28891. (cpio_mod_LDFLAGS): Likewise.
  28892. * fs/cpio.c: New file.
  28893. * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
  28894. * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
  28895. * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
  28896. * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
  28897. 2007-12-25 Robert Millan <rmh@aybabtu.com>
  28898. * include/grub/term.h (struct grub_term): Add `getcolor' function.
  28899. (grub_getcolor): New function.
  28900. * kern/term.c (grub_getcolor): New function.
  28901. * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
  28902. (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
  28903. (print_entry): Set normal and highlight colors to
  28904. `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
  28905. respectively, before printing and restore them to old
  28906. values afterwards.
  28907. (grub_menu_init_page): Likewise. Fill an additional colored space
  28908. that would otherwise be left blank.
  28909. * term/efi/console.c (grub_console_getcolor): New function.
  28910. (struct grub_console_term.getcolor): New variable.
  28911. * term/i386/pc/console.c (grub_console_getcolor): New function.
  28912. (struct grub_console_term.getcolor): New variable.
  28913. * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
  28914. (struct grub_console_term.getcolor): New variable.
  28915. * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
  28916. (struct grub_console_term.setcolor): Remove variable.
  28917. * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
  28918. (struct grub_console_term.setcolor): Remove variable.
  28919. * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
  28920. (struct grub_console_term.setcolor): Remove variable.
  28921. * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
  28922. (struct grub_console_term.setcolor): Remove variable.
  28923. 2007-12-25 Robert Millan <rmh@aybabtu.com>
  28924. * configure.ac: Search for possible unifont.hex locations, and
  28925. define UNIFONT_HEX if found.
  28926. * Makefile.in (UNIFONT_HEX): Define variable.
  28927. (DATA): Rename to ...
  28928. (PKGLIB): ... this. Update all users.
  28929. (PKGDATA): New variable.
  28930. (pkgdata_IMAGES): Rename to ...
  28931. (pkglib_IMAGES): ... this. Update all users.
  28932. (pkgdata_MODULES): Rename to ...
  28933. (pkglib_MODULES): ... this. Update all users.
  28934. (pkgdata_PROGRAMS): Rename to ...
  28935. (pkglib_PROGRAMS): ... this. Update all users.
  28936. (pkgdata_DATA): Rename to ...
  28937. (pkglib_DATA): ... this. Update all users.
  28938. (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
  28939. (unicode.pff, ascii.pff): New rules.
  28940. (all-local): Add `$(PKGDATA)' dependency.
  28941. (install-local): Process `$(PKGDATA)'.
  28942. * util/update-grub_lib.in (font_path): Search for *.pff files in
  28943. a few more locations, including `${pkgdata}'.
  28944. 2007-12-23 Robert Millan <rmh@aybabtu.com>
  28945. Patch from Bean <bean123ch@gmail.com>:
  28946. * disk/loopback.c (grub_loopback_read): Add missing bit shift to
  28947. `size'.
  28948. 2007-12-21 Bean <bean123ch@gmail.com>
  28949. * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
  28950. (ntfscomp_mod_SOURCES): New variable.
  28951. (ntfscomp_mod_CFLAGS): Likewise.
  28952. (ntfscomp_mod_LDFLAGS): Likewise.
  28953. * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
  28954. (grub_probe_SOURCES): Likewise.
  28955. (grub_emu_SOURCES): Likewise.
  28956. * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
  28957. (grub_emu_SOURCES): Likewise.
  28958. * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
  28959. (grub_emu_SOURCES): Likewise.
  28960. * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
  28961. (grub_emu_SOURCES): Likewise.
  28962. * fs/ntfs.c (grub_ntfscomp_func): New variable.
  28963. (read_run_list): Renamed to grub_ntfs_read_run_list.
  28964. (decomp_nextvcn): Moved to ntfscomp.c.
  28965. (decomp_getch): Likewise.
  28966. (decomp_get16): Likewise.
  28967. (decomp_block): Likewise.
  28968. (read_block): Likewise.
  28969. (read_data): Partially moved to ntfscomp.c.
  28970. (fixup): Change unsigned to grub_uint16_t.
  28971. (read_mft): Change unsigned long to grub_uint32_t.
  28972. (read_attr): Likewise.
  28973. (read_data): Likewise.
  28974. (read_run_data): Likewise.
  28975. (read_run_list): Likewise.
  28976. (read_mft): Likewise.
  28977. * fs/ntfscomp.c: New file.
  28978. * include/grub/ntfs.h: New file.
  28979. 2007-12-16 Robert Millan <rmh@aybabtu.com>
  28980. * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
  28981. IDE disk check, since Linux is known to support 20 IDE disks.
  28982. Reported by Colin Watson.
  28983. 2007-12-15 Bean <bean123ch@gmail.com>
  28984. * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
  28985. (lnxboot_img_SOURCES): New variable.
  28986. (lnxboot_img_ASFLAGS): Likewise.
  28987. (lnxboot_img_LDFLAGS): Likewise.
  28988. * boot/i386/pc/lnxboot.S: New file.
  28989. 2007-11-24 Pavel Roskin <proski@gnu.org>
  28990. * configure.ac: Test if '--build-id=none' is supported by the
  28991. linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
  28992. objcopy to generate incorrect binary files (binutils
  28993. 2.17.50.0.18-1 as shipped by Fedora 8).
  28994. * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
  28995. linking, so that build ID doesn't break the test.
  28996. 2007-11-24 Pavel Roskin <proski@gnu.org>
  28997. * include/grub/i386/time.h: use "void" in the argument list
  28998. of grub_cpu_idle().
  28999. * include/grub/powerpc/time.h: Likewise.
  29000. * include/grub/sparc64/time.h: Likewise.
  29001. 2007-11-18 Christian Franke <franke@computer.org>
  29002. * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
  29003. now return control chars instead of GRUB_CONSOLE_KEY_* constants.
  29004. This fixes the problem that function keys did not work in grub-emu.
  29005. 2007-11-18 Christian Franke <franke@computer.org>
  29006. * disk/host.c (grub_host_open): Remove attribute unused from
  29007. name parameter. Add check for "host". This fixes the problem
  29008. that grub-emu does not find partitions.
  29009. 2007-11-18 Christian Franke <franke@computer.org>
  29010. * util/hostfs.c (is_dir): New function.
  29011. (grub_hostfs_dir): Handle missing dirent.d_type case.
  29012. (grub_hostfs_read): Add missing fseek().
  29013. (grub_hostfs_label): Clear label pointer. This fixes a crash
  29014. of grub-emu on "ls (host)".
  29015. 2007-11-18 Christian Franke <franke@computer.org>
  29016. * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
  29017. Add attribute packed, gcc 3.4.4 on Cygwin aligns this
  29018. to 64 bit boundary by default.
  29019. 2007-11-18 Bean <bean123ch@gmail.com>
  29020. * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
  29021. (hexdump_mod_SOURCES): New variable.
  29022. (hexdump_mod_CFLAGS): Likewise.
  29023. (hexdump_mod_LDFLAGS): Likewise.
  29024. * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
  29025. * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
  29026. * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
  29027. * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
  29028. * include/grub/hexdump.h: New file.
  29029. * commands/hexdump.c: New file.
  29030. 2007-11-10 Robert Millan <rmh@aybabtu.com>
  29031. * commands/i386/pc/play.c (beep_off): Switch order of arguments
  29032. in grub_outb() calls.
  29033. (beep_on): Likewise.
  29034. 2007-11-10 Christian Franke <franke@computer.org>
  29035. * normal/menu.c (run_menu): Check for empty menu to avoid crash.
  29036. (grub_menu_run): Likewise.
  29037. 2007-11-10 Robert Millan <rmh@aybabtu.com>
  29038. * include/grub/i386/efi/machine.h: New file.
  29039. * include/grub/i386/linuxbios/machine.h: Likewise.
  29040. * include/grub/i386/pc/machine.h: Likewise.
  29041. * include/grub/powerpc/ieee1275/machine.h: Likewise.
  29042. * include/grub/sparc64/ieee1275/machine.h: Likewise.
  29043. * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
  29044. (serial_hw_io_addr): New variable.
  29045. (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
  29046. instead of `(unsigned short *) 0x400'.
  29047. 2007-11-10 Bean <bean123ch@gmail.com>
  29048. * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
  29049. 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
  29050. * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
  29051. (vga_mod_SOURCES): Added.
  29052. (vga_mod_CFLAGS): Likewise.
  29053. (vga_mod_LDFLAGS): Likewise.
  29054. * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
  29055. grub_outb() calls.
  29056. (set_map_mask): Likewise.
  29057. (set_read_map): Likewise.
  29058. (set_read_address): Likewise.
  29059. (vga_font): Removed variable.
  29060. (get_vga_glyph): Removed function.
  29061. (invalidate_char): Likewise.
  29062. (write_char): Changed to use grub_font_get_glyph() for font
  29063. information.
  29064. (grub_vga_putchar): Likewise.
  29065. (grub_vga_getcharwidth): Likewise.
  29066. 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
  29067. * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
  29068. flags.
  29069. (pxeboot_img_LDFLAGS): Likewise.
  29070. (diskboot_img_LDFLAGS): Likewise.
  29071. (kernel_img_LDFLAGS): Likewise.
  29072. 2007-11-06 Robert Millan <rmh@aybabtu.com>
  29073. * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
  29074. in grub_outb() calls.
  29075. (serial_hw_init): Likewise.
  29076. 2007-11-05 Robert Millan <rmh@aybabtu.com>
  29077. * util/update-grub.in: Allow files in ${update_grub_dir} to contain
  29078. spaces. Skip non-regular files.
  29079. 2007-11-05 Robert Millan <rmh@aybabtu.com>
  29080. * kern/disk.c (grub_disk_firmware_fini)
  29081. (grub_disk_firmware_is_tainted): New variables.
  29082. * include/grub/disk.h (grub_disk_firmware_fini)
  29083. (grub_disk_firmware_is_tainted): Likewise.
  29084. * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
  29085. (grub_disk_biosdisk_fini): ... to here.
  29086. (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
  29087. (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
  29088. is set. Register grub_disk_biosdisk_fini() in
  29089. `grub_disk_firmware_fini'.
  29090. * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
  29091. (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
  29092. Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
  29093. to finish existing firmware disk interface.
  29094. * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
  29095. (ata_mod_SOURCES): New variable.
  29096. (ata_mod_CFLAGS): Likewise.
  29097. (ata_mod_LDFLAGS): Likewise.
  29098. 2007-11-05 Robert Millan <rmh@aybabtu.com>
  29099. * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
  29100. (grub_ata_wait): Reimplement using grub_millisleep().
  29101. * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
  29102. * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
  29103. 2007-11-03 Marco Gerards <marco@gnu.org>
  29104. * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
  29105. (CRTC_ADDR_PORT): New macro.
  29106. (CRTC_DATA_PORT): Likewise.
  29107. (CRTC_CURSOR): Likewise.
  29108. (CRTC_CURSOR_ADDR_HIGH): Likewise.
  29109. (CRTC_CURSOR_ADDR_LOW): Likewise.
  29110. (update_cursor): New function.
  29111. (grub_console_real_putchar): Call `update_cursor'.
  29112. (grub_console_gotoxy): Likewise.
  29113. (grub_console_cls): Set the default color when clearing the
  29114. screen.
  29115. (grub_console_setcursor): Implemented.
  29116. 2007-11-03 Marco Gerards <marco@gnu.org>
  29117. * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
  29118. become activate.
  29119. (grub_ata_pio_write): Likewise.
  29120. (grub_atapi_identify): Wait after issuing an ATA command.
  29121. (grub_atapi_packet): Likewise.
  29122. (grub_ata_identify): Likewise.
  29123. (grub_ata_readwrite): Likewise.
  29124. 2007-11-03 Marco Gerards <marco@gnu.org>
  29125. * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
  29126. (grub_ata_pio_write): Likewise.
  29127. (grub_ata_readwrite): Use `grub_error', instead of
  29128. returning `grub_errno'.
  29129. 2007-11-03 Marco Gerards <marco@gnu.org>
  29130. * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
  29131. grub_ata_pio_write once for every single sector, instead of for
  29132. multiple sectors.
  29133. 2007-10-31 Robert Millan <rmh@aybabtu.com>
  29134. * configure.ac: Add `i386-linuxbios' to the list of supported targets.
  29135. * conf/i386-linuxbios.rmk: New file.
  29136. * kern/i386/pc/hardware.c: Likewise.
  29137. * term/i386/pc/at_keyboard.c: Likewise.
  29138. * term/i386/pc/vga_text.c: Likewise.
  29139. * include/grub/i386/linuxbios/boot.h: Likewise.
  29140. * include/grub/i386/linuxbios/console.h: Likewise.
  29141. * include/grub/i386/linuxbios/init.h: Likewise.
  29142. * include/grub/i386/linuxbios/kernel.h: Likewise.
  29143. * include/grub/i386/linuxbios/loader.h: Likewise.
  29144. * include/grub/i386/linuxbios/memory.h: Likewise.
  29145. * include/grub/i386/linuxbios/serial.h: Likewise.
  29146. * include/grub/i386/linuxbios/time.h: Likewise.
  29147. * kern/i386/linuxbios/init.c: Likewise.
  29148. * kern/i386/linuxbios/startup.S: Likewise.
  29149. * kern/i386/linuxbios/table.c: Likewise.
  29150. 2007-10-31 Marco Gerards <marco@gnu.org>
  29151. * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
  29152. (ata_mod_SOURCES): New variable.
  29153. (ata_mod_CFLAGS): Likewise.
  29154. (ata_mod_LDFLAGS): Likewise.
  29155. * disk/ata.c: New file.
  29156. * include/grub/disk.h (grub_disk_dev_id): Add
  29157. `GRUB_DISK_DEV_ATA_ID'.
  29158. 2007-10-31 Robert Millan <rmh@aybabtu.com>
  29159. * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
  29160. * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
  29161. * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
  29162. * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
  29163. * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
  29164. `<grub/types.h>'.
  29165. * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
  29166. 2007-10-27 Robert Millan <rmh@aybabtu.com>
  29167. * include/grub/types.h (ULONG_MAX): Define macro.
  29168. 2007-10-22 Robert Millan <rmh@aybabtu.com>
  29169. * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
  29170. `"../realmode.S"'.
  29171. Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
  29172. 2007-10-22 Robert Millan <rmh@aybabtu.com>
  29173. * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
  29174. (pkgdata_MODULES): Add `biosdisk.mod'.
  29175. (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
  29176. variables.
  29177. * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
  29178. (grub_biosdisk_init): Replace with ...
  29179. (GRUB_MOD_INIT(biosdisk)): ... this.
  29180. (grub_biosdisk_fini): Replace with ...
  29181. (GRUB_MOD_FINI(biosdisk)): ... this.
  29182. * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
  29183. (grub_machine_init): Remove call to grub_biosdisk_init().
  29184. (grub_machine_fini): Remove call to grub_machine_fini().
  29185. * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
  29186. 2007-10-22 Robert Millan <rmh@aybabtu.com>
  29187. * include/grub/time.h: New file.
  29188. * include/grub/i386/time.h: Likewise.
  29189. * include/grub/powerpc/time.h: Likewise.
  29190. * include/grub/sparc64/time.h: Likewise.
  29191. * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
  29192. instances to ...
  29193. (KERNEL_MACHINE_TIME_HEADER): ... this.
  29194. * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
  29195. instances to ...
  29196. (KERNEL_MACHINE_TIME_HEADER): ... this.
  29197. * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
  29198. instances to ...
  29199. (KERNEL_MACHINE_TIME_HEADER): ... this.
  29200. * kern/i386/efi/init.c: Include `<grub/time.h>'.
  29201. (grub_millisleep): New function.
  29202. * kern/i386/pc/init.c: Include `<grub/time.h>'.
  29203. (grub_millisleep): New function.
  29204. * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
  29205. Remove `grub/machine/time.h' include.
  29206. (grub_millisleep): New function.
  29207. * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
  29208. Remove `grub/machine/time.h' include.
  29209. (grub_millisleep): New function.
  29210. * include/grub/misc.h (grub_div_roundup): New function.
  29211. * kern/misc.c: Include `<grub/time.h>'.
  29212. (grub_millisleep_generic): New function.
  29213. * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
  29214. Add `time.h'.
  29215. * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
  29216. Add `time.h'.
  29217. * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
  29218. `machine/time.h'. Add `time.h'.
  29219. * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
  29220. 2007-10-21 Robert Millan <rmh@aybabtu.com>
  29221. * include/grub/misc.h (grub_max): New function.
  29222. 2007-10-21 Robert Millan <rmh@aybabtu.com>
  29223. * util/misc.c (grub_util_info): Call fflush() before returning.
  29224. 2007-10-20 Robert Millan <rmh@aybabtu.com>
  29225. * genmk.rb (Image): Copy `extra_flags' from here ...
  29226. (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
  29227. * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
  29228. to `argc' and `args' arguments.
  29229. 2007-10-17 Robert Millan <rmh@aybabtu.com>
  29230. * kern/i386/loader.S: New file.
  29231. * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
  29232. * kern/i386/loader.S (grub_linux_prot_size)... to here.
  29233. * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
  29234. * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
  29235. * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
  29236. * kern/i386/loader.S (grub_linux_real_addr)... to here.
  29237. * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
  29238. * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
  29239. * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
  29240. * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
  29241. * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
  29242. * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
  29243. * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
  29244. * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
  29245. * kern/i386/realmode.S: New file.
  29246. * kern/i386/pc/startup.S (protstack): Moved from here ...
  29247. * kern/i386/realmode.S (protstack)... to here.
  29248. * kern/i386/pc/startup.S (gdt): Moved from here ...
  29249. * kern/i386/realmode.S (gdt)... to here.
  29250. * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
  29251. * kern/i386/realmode.S (prot_to_real)... to here.
  29252. * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
  29253. `kern/i386/realmode.S'.
  29254. 2007-10-17 Robert Millan <rmh@aybabtu.com>
  29255. * include/grub/i386/loader.h: New file.
  29256. * include/grub/i386/pc/loader.h (grub_linux_prot_size)
  29257. (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
  29258. (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
  29259. (grub_multiboot_real_boot, grub_multiboot2_real_boot)
  29260. (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
  29261. * include/grub/i386/loader.h (grub_linux_prot_size)
  29262. (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
  29263. (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
  29264. (grub_multiboot_real_boot, grub_multiboot2_real_boot)
  29265. (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
  29266. * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
  29267. 2007-10-15 Robert Millan <rmh@aybabtu.com>
  29268. * normal/misc.c (grub_normal_print_device_info): Do not probe for
  29269. filesystem when dev->disk is unset.
  29270. Do probe for filesystem even when dev->disk->has_partitions is set.
  29271. In case a filesystem is found, always report it.
  29272. In case it isn't, if dev->disk->has_partitions is set, report that
  29273. a partition table was found instead of reporting that no filesystem
  29274. could be identified.
  29275. 2007-10-12 Robert Millan <rmh@aybabtu.com>
  29276. * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
  29277. to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
  29278. * include/grub/types.h (grub_host_to_target16): New macro.
  29279. (grub_host_to_target32): Likewise.
  29280. (grub_host_to_target64): Likewise.
  29281. (grub_target_to_host16): Likewise.
  29282. (grub_target_to_host32): Likewise.
  29283. (grub_target_to_host64): Likewise.
  29284. * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
  29285. Renamed from to ...
  29286. (GRUB_MOD_ALIGN): ...this. Update all users.
  29287. * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
  29288. grub_host_to_target32.
  29289. Replace grub_be_to_cpu32 with grub_target_to_host32.
  29290. (load_modules): Likewise.
  29291. (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
  29292. Replace grub_be_to_cpu32 with grub_target_to_host32.
  29293. Replace grub_cpu_to_be16 with grub_host_to_target16.
  29294. Replace grub_cpu_to_be32 grub_host_to_target32.
  29295. 2007-10-12 Robert Millan <rmh@aybabtu.com>
  29296. * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
  29297. * util/elf/grub-mkimage.c: ... here.
  29298. * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
  29299. `util/powerpc/ieee1275/grub-mkimage.c'.
  29300. 2007-10-07 Robert Millan <rmh@aybabtu.com>
  29301. * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
  29302. and make it easier to figure out.
  29303. Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
  29304. (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
  29305. Do not avoid claiming a region above HEAP_MAX_ADDR if that would
  29306. leave us with less than HEAP_MIN_SIZE total heap.
  29307. Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
  29308. 2007-10-03 Robert Millan <rmh@aybabtu.com>
  29309. * include/grub/i386/io.h: New file.
  29310. * commands/i386/pc/play.c (inb): Removed.
  29311. (outb): Removed.
  29312. Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
  29313. with grub_outb().
  29314. * term/i386/pc/serial.c (inb): Removed.
  29315. (outb): Removed.
  29316. Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
  29317. with grub_outb().
  29318. * term/i386/pc/vga.c (inb): Removed.
  29319. (outb): Removed.
  29320. Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
  29321. with grub_outb().
  29322. 2007-10-02 Robert Millan <rmh@aybabtu.com>
  29323. * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
  29324. * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
  29325. Reported by Marcin Kurek.
  29326. 2007-09-07 Robert Millan <rmh@aybabtu.com>
  29327. * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
  29328. SmartFirmware version updates (as released by Sven Luther), and avoid
  29329. setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
  29330. GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
  29331. known broken.
  29332. 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
  29333. From Hitoshi Ozeki:
  29334. * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
  29335. when merging two regions.
  29336. 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
  29337. * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
  29338. * normal/completion.c (grub_normal_do_completion): Likewise.
  29339. Reported by Hitoshi Ozeki.
  29340. 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
  29341. Do not use devices at boot in chainloading.
  29342. * loader/i386/pc/chainloader.c (boot_drive): New variable.
  29343. (boot_part_addr): Likewise.
  29344. (grub_chainloader_boot): Simply call grub_chainloader_real_boot
  29345. with BOOT_DRIVE and BOOT_PART_ADDR.
  29346. (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
  29347. Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
  29348. 2007-08-29 Robert Millan <rmh@aybabtu.com>
  29349. Patch from Simon Peter <dn.tlp@gmx.net>:
  29350. * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
  29351. * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
  29352. util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
  29353. util/i386/pc/grub-setup.c_DEPENDENCIES.
  29354. * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
  29355. util/grub-probe.c_DEPENDENCIES.
  29356. * conf/powerpc-ieee1275.rmk: Likewise.
  29357. 2007-08-28 Robert Millan <rmh@aybabtu.com>
  29358. * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
  29359. to tell grub-mkdevicemap how to name devices.
  29360. * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
  29361. feature).
  29362. * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
  29363. util/i386/get_disk_name.c.
  29364. * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
  29365. * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
  29366. util/ieee1275/get_disk_name.c.
  29367. * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
  29368. * DISTLIST: Add util/i386/get_disk_name.c and
  29369. util/ieee1275/get_disk_name.c.
  29370. * util/grub-mkdevicemap.c: Replace device naming logic with
  29371. grub_util_get_disk_name() calls.
  29372. 2007-08-20 Robert Millan <rmh@aybabtu.com>
  29373. * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
  29374. (so that it works for both plural and singular quantities).
  29375. 2007-08-05 Robert Millan <rmh@aybabtu.com>
  29376. * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
  29377. so that [xz] isn't taken into account when determining order.
  29378. 2007-08-02 Marco Gerards <marco@gnu.org>
  29379. * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
  29380. `include/multiboot2.h', `include/grub/elfload.h',
  29381. `include/multiboot.h', `include/grub/multiboot.h',
  29382. `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
  29383. `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
  29384. `kern/elf.c', `loader/multiboot_loader.c',
  29385. `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
  29386. `loader/i386/pc/multiboot2.c',
  29387. `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
  29388. `util/i386/pc/grub-mkrescue.in'. Remove
  29389. `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
  29390. `include/grub/i386/pc/util/biosdisk.h' and
  29391. `include/grub/powerpc/ieee1275/multiboot.h'.
  29392. 2007-08-02 Bean <bean123ch@gmail.com>
  29393. * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
  29394. (ntfs_mod_SOURCES): New variable.
  29395. (ntfs_mod_CFLAGS): Likewise.
  29396. (ntfs_mod_LDFLAGS): Likewise.
  29397. * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
  29398. (grub_probe_SOURCES): Likewise.
  29399. (grub_emu_SOURCES): Likewise.
  29400. * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
  29401. (grub_emu_SOURCES): Likewise.
  29402. * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
  29403. (grub_emu_SOURCES): Likewise.
  29404. * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
  29405. * fs/ntfs.c: New file.
  29406. 2007-08-02 Bean <bean123ch@gmail.com>
  29407. * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
  29408. * file.h (grub_file): Likewise.
  29409. * fshelp.h (grub_fshelp_read_file): Likewise.
  29410. * util/i386/pc/grub-setup.c (setup): Likewise.
  29411. (save_first_sector): Likewise.
  29412. (save_blocklists): Likewise.
  29413. * fs/affs.c (grub_affs_read_file): Likewise.
  29414. * fs/ext2.c (grub_ext2_read_file): Likewise.
  29415. * fs/fat.c (grub_fat_read_data): Likewise.
  29416. * fs/fshelp.c (grub_fshelp_read_file): Likewise.
  29417. * fs/hfs.c (grub_hfs_read_file): Likewise.
  29418. * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
  29419. * fs/jfs.c (grub_jfs_read_file): Likewise.
  29420. * fs/minix.c (grub_minix_read_file): Likewise.
  29421. * fs/sfs.c (grub_sfs_read_file): Likewise.
  29422. * fs/ufs.c (grub_ufs_read_file): Likewise.
  29423. * fs/xfs.c (grub_xfs_read_file): Likewise.
  29424. * command/blocklist.c (read_blocklist): Likewise.
  29425. (print_blocklist): Likewise.
  29426. 2007-08-02 Marco Gerards <marco@gnu.org>
  29427. * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
  29428. `util/hostfs.c'.
  29429. * disk/host.c: New file.
  29430. * util/hostfs.c: Likewise.
  29431. * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
  29432. return `GRUB_ERR_BAD_FS'.
  29433. * fs/sfs.c (grub_sfs_mount): Likewise.
  29434. * fs/xfs.c (grub_xfs_mount): Likewise.
  29435. * include/grub/disk.h (enum grub_disk_dev_id): Add
  29436. `GRUB_DISK_DEVICE_HOST_ID'.
  29437. * util/grub-emu.c (main): Initialize and de-initialize hostfs.
  29438. 2007-07-24 Jerone Young <jerone@gmail.com>
  29439. * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
  29440. modules for compilation.
  29441. * conf/powerpc-ieee1275.rmk: Likewise.
  29442. * include/multiboot.h: Move multiboot definitions to one file. Rename
  29443. many definitions to not get grub specific.
  29444. * include/multiboot2.h: Create header with multiboot 2 definitions.
  29445. * include/grub/multiboot.h: Header for grub specific function
  29446. prototypes and definitions.
  29447. * include/grub/multiboot2.h: Likewise.
  29448. * include/grub/multiboot_loader.h: Likewise.
  29449. * include/grub/i386/pc/multiboot.h: Removed.
  29450. * include/grub/powerpc/ieee1275/multiboot.h: Removed.
  29451. * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
  29452. and 2 to allow for one multiboot and module commands.
  29453. * loader/multiboot2.c: Add multiboot2 functionality.
  29454. * loader/i386/pc/multiboot.c: Modify for new multiboot header location
  29455. and definition names.
  29456. * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
  29457. 2 functions.
  29458. * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
  29459. ieee1275 specific multiboot2 code.
  29460. * kern/i386/pc/startup.S: Change headers and definition names for
  29461. multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
  29462. 2007-07-22 Robert Millan <rmh@aybabtu.com>
  29463. * geninitheader.sh: Process file specified in first parameter rather
  29464. than hardcoding grub_modules_init.lst.
  29465. * geninit.sh: Likewise. Also, construct header name dynamically rather
  29466. than hardcoding grub_modules_init.h.
  29467. * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
  29468. grub-emu to grub_emu_init.[ch]. Add rules to build analogous
  29469. grub_probe_init.[ch] and grub_setup_init.[ch].
  29470. * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
  29471. grub_modules_init.h with grub_emu_init.h.
  29472. (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
  29473. grub_probe_init.[ch] files.
  29474. * conf/i386-efi.rmk: Likewise.
  29475. * conf/i386-pc.rmk: Likewise.
  29476. (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
  29477. grub_setup_init.[ch] files.
  29478. * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
  29479. * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
  29480. to initialize modules rather than a list of hardcoded functions.
  29481. * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
  29482. grub_init_all() to initialize modules rather than a list of hardcoded
  29483. functions.
  29484. 2007-07-22 Robert Millan <rmh@aybabtu.com>
  29485. * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
  29486. GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
  29487. 2007-07-22 Robert Millan <rmh@aybabtu.com>
  29488. * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
  29489. GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
  29490. * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
  29491. flag when running on SmartFirmware.
  29492. * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
  29493. "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
  29494. was set.
  29495. * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
  29496. Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
  29497. rather than decreasing it.
  29498. * util/i386/pc/grub-setup.c (setup): When embedding is required, but
  29499. there's not enough space to do it, fail in the same way as when it
  29500. can't be done because there are no partitions.
  29501. * util/powerpc/ieee1275/grub-install.in: Improve error message shown
  29502. when nvsetenv failed.
  29503. 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
  29504. * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
  29505. because this rule is automatically generated.
  29506. (grub-mkrescue): Removed for the same reason as above.
  29507. 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
  29508. Migrate to GNU General Public License Version 3.
  29509. * COPYING: Replaced with the plain text version of GPLv3.
  29510. * config.guess: Updated from gnulib.
  29511. * config.sub: Likewise.
  29512. * geninit.sh: Output a GPLv3 copyright notice.
  29513. * geninitheader.sh: Likewise.
  29514. * genmodsrc.sh: Likewise.
  29515. * gensymlist.sh.in: Likewise.
  29516. * boot/i386/pc/boot.S: Upgraded to GPLv3.
  29517. * boot/i386/pc/diskboot.S: Likewise.
  29518. * boot/i386/pc/pxeboot.S: Likewise.
  29519. * commands/blocklist.c: Likewise.
  29520. * commands/boot.c: Likewise.
  29521. * commands/cat.c: Likewise.
  29522. * commands/cmp.c: Likewise.
  29523. * commands/configfile.c: Likewise.
  29524. * commands/echo.c: Likewise.
  29525. * commands/help.c: Likewise.
  29526. * commands/ls.c: Likewise.
  29527. * commands/search.c: Likewise.
  29528. * commands/terminal.c: Likewise.
  29529. * commands/test.c: Likewise.
  29530. * commands/videotest.c: Likewise.
  29531. * commands/i386/cpuid.c: Likewise.
  29532. * commands/i386/pc/halt.c: Likewise.
  29533. * commands/i386/pc/play.c: Likewise.
  29534. * commands/i386/pc/reboot.c: Likewise.
  29535. * commands/i386/pc/vbeinfo.c: Likewise.
  29536. * commands/i386/pc/vbetest.c: Likewise.
  29537. * commands/ieee1275/halt.c: Likewise.
  29538. * commands/ieee1275/reboot.c: Likewise.
  29539. * commands/ieee1275/suspend.c: Likewise.
  29540. * disk/loopback.c: Likewise.
  29541. * disk/lvm.c: Likewise.
  29542. * disk/raid.c: Likewise.
  29543. * disk/efi/efidisk.c: Likewise.
  29544. * disk/i386/pc/biosdisk.c: Likewise.
  29545. * disk/ieee1275/ofdisk.c: Likewise.
  29546. * font/manager.c: Likewise.
  29547. * fs/affs.c: Likewise.
  29548. * fs/ext2.c: Likewise.
  29549. * fs/fat.c: Likewise.
  29550. * fs/fshelp.c: Likewise.
  29551. * fs/hfs.c: Likewise.
  29552. * fs/hfsplus.c: Likewise.
  29553. * fs/iso9660.c: Likewise.
  29554. * fs/jfs.c: Likewise.
  29555. * fs/minix.c: Likewise.
  29556. * fs/sfs.c: Likewise.
  29557. * fs/ufs.c: Likewise.
  29558. * fs/xfs.c: Likewise.
  29559. * hello/hello.c: Likewise.
  29560. * include/grub/acorn_filecore.h: Likewise.
  29561. * include/grub/arg.h: Likewise.
  29562. * include/grub/bitmap.h: Likewise.
  29563. * include/grub/boot.h: Likewise.
  29564. * include/grub/cache.h: Likewise.
  29565. * include/grub/device.h: Likewise.
  29566. * include/grub/disk.h: Likewise.
  29567. * include/grub/dl.h: Likewise.
  29568. * include/grub/elfload.h: Likewise.
  29569. * include/grub/env.h: Likewise.
  29570. * include/grub/err.h: Likewise.
  29571. * include/grub/file.h: Likewise.
  29572. * include/grub/font.h: Likewise.
  29573. * include/grub/fs.h: Likewise.
  29574. * include/grub/fshelp.h: Likewise.
  29575. * include/grub/gzio.h: Likewise.
  29576. * include/grub/hfs.h: Likewise.
  29577. * include/grub/kernel.h: Likewise.
  29578. * include/grub/loader.h: Likewise.
  29579. * include/grub/lvm.h: Likewise.
  29580. * include/grub/misc.h: Likewise.
  29581. * include/grub/mm.h: Likewise.
  29582. * include/grub/net.h: Likewise.
  29583. * include/grub/normal.h: Likewise.
  29584. * include/grub/parser.h: Likewise.
  29585. * include/grub/partition.h: Likewise.
  29586. * include/grub/pc_partition.h: Likewise.
  29587. * include/grub/raid.h: Likewise.
  29588. * include/grub/rescue.h: Likewise.
  29589. * include/grub/script.h: Likewise.
  29590. * include/grub/setjmp.h: Likewise.
  29591. * include/grub/symbol.h: Likewise.
  29592. * include/grub/term.h: Likewise.
  29593. * include/grub/terminfo.h: Likewise.
  29594. * include/grub/tparm.h: Likewise.
  29595. * include/grub/types.h: Likewise.
  29596. * include/grub/video.h: Likewise.
  29597. * include/grub/efi/api.h: Likewise.
  29598. * include/grub/efi/chainloader.h: Likewise.
  29599. * include/grub/efi/console.h: Likewise.
  29600. * include/grub/efi/console_control.h: Likewise.
  29601. * include/grub/efi/disk.h: Likewise.
  29602. * include/grub/efi/efi.h: Likewise.
  29603. * include/grub/efi/pe32.h: Likewise.
  29604. * include/grub/efi/time.h: Likewise.
  29605. * include/grub/i386/linux.h: Likewise.
  29606. * include/grub/i386/setjmp.h: Likewise.
  29607. * include/grub/i386/types.h: Likewise.
  29608. * include/grub/i386/efi/kernel.h: Likewise.
  29609. * include/grub/i386/efi/loader.h: Likewise.
  29610. * include/grub/i386/efi/time.h: Likewise.
  29611. * include/grub/i386/pc/biosdisk.h: Likewise.
  29612. * include/grub/i386/pc/boot.h: Likewise.
  29613. * include/grub/i386/pc/chainloader.h: Likewise.
  29614. * include/grub/i386/pc/console.h: Likewise.
  29615. * include/grub/i386/pc/init.h: Likewise.
  29616. * include/grub/i386/pc/kernel.h: Likewise.
  29617. * include/grub/i386/pc/loader.h: Likewise.
  29618. * include/grub/i386/pc/memory.h: Likewise.
  29619. * include/grub/i386/pc/multiboot.h: Likewise.
  29620. * include/grub/i386/pc/serial.h: Likewise.
  29621. * include/grub/i386/pc/time.h: Likewise.
  29622. * include/grub/i386/pc/vbe.h: Likewise.
  29623. * include/grub/i386/pc/vbeblit.h: Likewise.
  29624. * include/grub/i386/pc/vbefill.h: Likewise.
  29625. * include/grub/i386/pc/vbeutil.h: Likewise.
  29626. * include/grub/i386/pc/vga.h: Likewise.
  29627. * include/grub/ieee1275/ieee1275.h: Likewise.
  29628. * include/grub/ieee1275/ofdisk.h: Likewise.
  29629. * include/grub/powerpc/libgcc.h: Likewise.
  29630. * include/grub/powerpc/setjmp.h: Likewise.
  29631. * include/grub/powerpc/types.h: Likewise.
  29632. * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
  29633. * include/grub/powerpc/ieee1275/console.h: Likewise.
  29634. * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
  29635. * include/grub/powerpc/ieee1275/kernel.h: Likewise.
  29636. * include/grub/powerpc/ieee1275/loader.h: Likewise.
  29637. * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
  29638. * include/grub/powerpc/ieee1275/time.h: Likewise.
  29639. * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
  29640. * include/grub/sparc64/libgcc.h: Likewise.
  29641. * include/grub/sparc64/setjmp.h: Likewise.
  29642. * include/grub/sparc64/types.h: Likewise.
  29643. * include/grub/sparc64/ieee1275/console.h: Likewise.
  29644. * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
  29645. * include/grub/sparc64/ieee1275/kernel.h: Likewise.
  29646. * include/grub/sparc64/ieee1275/time.h: Likewise.
  29647. * include/grub/util/biosdisk.h: Likewise.
  29648. * include/grub/util/getroot.h: Likewise.
  29649. * include/grub/util/lvm.h: Likewise.
  29650. * include/grub/util/misc.h: Likewise.
  29651. * include/grub/util/raid.h: Likewise.
  29652. * include/grub/util/resolve.h: Likewise.
  29653. * io/gzio.c: Likewise.
  29654. * kern/device.c: Likewise.
  29655. * kern/disk.c: Likewise.
  29656. * kern/dl.c: Likewise.
  29657. * kern/elf.c: Likewise.
  29658. * kern/env.c: Likewise.
  29659. * kern/err.c: Likewise.
  29660. * kern/file.c: Likewise.
  29661. * kern/fs.c: Likewise.
  29662. * kern/loader.c: Likewise.
  29663. * kern/main.c: Likewise.
  29664. * kern/misc.c: Likewise.
  29665. * kern/mm.c: Likewise.
  29666. * kern/parser.c: Likewise.
  29667. * kern/partition.c: Likewise.
  29668. * kern/rescue.c: Likewise.
  29669. * kern/term.c: Likewise.
  29670. * kern/efi/efi.c: Likewise.
  29671. * kern/efi/init.c: Likewise.
  29672. * kern/efi/mm.c: Likewise.
  29673. * kern/i386/dl.c: Likewise.
  29674. * kern/i386/efi/init.c: Likewise.
  29675. * kern/i386/efi/startup.S: Likewise.
  29676. * kern/i386/pc/init.c: Likewise.
  29677. * kern/i386/pc/lzo1x.S: Likewise.
  29678. * kern/i386/pc/startup.S: Likewise.
  29679. * kern/ieee1275/ieee1275.c: Likewise.
  29680. * kern/powerpc/cache.S: Likewise.
  29681. * kern/powerpc/dl.c: Likewise.
  29682. * kern/powerpc/ieee1275/cmain.c: Likewise.
  29683. * kern/powerpc/ieee1275/crt0.S: Likewise.
  29684. * kern/powerpc/ieee1275/init.c: Likewise.
  29685. * kern/powerpc/ieee1275/openfw.c: Likewise.
  29686. * kern/sparc64/cache.S: Likewise.
  29687. * kern/sparc64/dl.c: Likewise.
  29688. * kern/sparc64/ieee1275/init.c: Likewise.
  29689. * kern/sparc64/ieee1275/openfw.c: Likewise.
  29690. * loader/efi/chainloader.c: Likewise.
  29691. * loader/efi/chainloader_normal.c: Likewise.
  29692. * loader/i386/efi/linux.c: Likewise.
  29693. * loader/i386/efi/linux_normal.c: Likewise.
  29694. * loader/i386/pc/chainloader.c: Likewise.
  29695. * loader/i386/pc/chainloader_normal.c: Likewise.
  29696. * loader/i386/pc/linux.c: Likewise.
  29697. * loader/i386/pc/linux_normal.c: Likewise.
  29698. * loader/i386/pc/multiboot.c: Likewise.
  29699. * loader/i386/pc/multiboot_normal.c: Likewise.
  29700. * loader/powerpc/ieee1275/linux.c: Likewise.
  29701. * loader/powerpc/ieee1275/linux_normal.c: Likewise.
  29702. * normal/arg.c: Likewise.
  29703. * normal/cmdline.c: Likewise.
  29704. * normal/command.c: Likewise.
  29705. * normal/completion.c: Likewise.
  29706. * normal/execute.c: Likewise.
  29707. * normal/function.c: Likewise.
  29708. * normal/lexer.c: Likewise.
  29709. * normal/main.c: Likewise.
  29710. * normal/menu.c: Likewise.
  29711. * normal/menu_entry.c: Likewise.
  29712. * normal/misc.c: Likewise.
  29713. * normal/parser.y: Likewise.
  29714. * normal/script.c: Likewise.
  29715. * normal/i386/setjmp.S: Likewise.
  29716. * normal/powerpc/setjmp.S: Likewise.
  29717. * normal/sparc64/setjmp.S: Likewise.
  29718. * partmap/acorn.c: Likewise.
  29719. * partmap/amiga.c: Likewise.
  29720. * partmap/apple.c: Likewise.
  29721. * partmap/gpt.c: Likewise.
  29722. * partmap/pc.c: Likewise.
  29723. * partmap/sun.c: Likewise.
  29724. * term/gfxterm.c: Likewise.
  29725. * term/terminfo.c: Likewise.
  29726. * term/efi/console.c: Likewise.
  29727. * term/i386/pc/console.c: Likewise.
  29728. * term/i386/pc/serial.c: Likewise.
  29729. * term/i386/pc/vesafb.c: Likewise.
  29730. * term/i386/pc/vga.c: Likewise.
  29731. * term/ieee1275/ofconsole.c: Likewise.
  29732. * util/biosdisk.c: Likewise.
  29733. * util/console.c: Likewise.
  29734. * util/genmoddep.c: Likewise.
  29735. * util/getroot.c: Likewise.
  29736. * util/grub-emu.c: Likewise.
  29737. * util/grub-mkdevicemap.c: Likewise.
  29738. * util/grub-probe.c: Likewise.
  29739. * util/lvm.c: Likewise.
  29740. * util/misc.c: Likewise.
  29741. * util/raid.c: Likewise.
  29742. * util/resolve.c: Likewise.
  29743. * util/update-grub.in: Likewise.
  29744. * util/update-grub_lib.in: Likewise.
  29745. * util/grub.d/00_header.in: Likewise.
  29746. * util/grub.d/10_hurd.in: Likewise.
  29747. * util/grub.d/10_linux.in: Likewise.
  29748. * util/i386/efi/grub-install.in: Likewise.
  29749. * util/i386/efi/grub-mkimage.c: Likewise.
  29750. * util/i386/pc/grub-install.in: Likewise.
  29751. * util/i386/pc/grub-mkimage.c: Likewise.
  29752. * util/i386/pc/grub-mkrescue.in: Likewise.
  29753. * util/i386/pc/grub-setup.c: Likewise.
  29754. * util/i386/pc/misc.c: Likewise.
  29755. * util/powerpc/ieee1275/grub-install.in: Likewise.
  29756. * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
  29757. * util/powerpc/ieee1275/misc.c: Likewise.
  29758. * video/bitmap.c: Likewise.
  29759. * video/video.c: Likewise.
  29760. * video/i386/pc/vbe.c: Likewise.
  29761. * video/i386/pc/vbeblit.c: Likewise.
  29762. * video/i386/pc/vbefill.c: Likewise.
  29763. * video/i386/pc/vbeutil.c: Likewise.
  29764. * video/readers/tga.c: Likewise.
  29765. 2007-07-02 Robert Millan <rmh@aybabtu.com>
  29766. * conf/i386-efi.rmk: Replace obsolete reference to
  29767. util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
  29768. with util/getroot.c.
  29769. * conf/powerpc-ieee1275.rmk: Likewise.
  29770. * conf/sparc64-ieee1275.rmk: Likewise.
  29771. * util/grub-emu.c (main): Fix unchecked pointer handling.
  29772. 2007-07-02 Robert Millan <rmh@aybabtu.com>
  29773. * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
  29774. invocation to fail, in order to support partition-less media.
  29775. * util/i386/pc/grub-install.in: Likewise.
  29776. * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
  29777. which fs or partmap modules are needed (akin to its sister scripts).
  29778. Also use grub-probe to get rid of unportable /proc/mounts check.
  29779. Print the same informational message that the other scripts do, before
  29780. exiting.
  29781. 2007-06-23 Robert Millan <rmh@aybabtu.com>
  29782. * util/update-grub_lib.in (font_path): New function. Determine whether
  29783. a font file can be found and, if so, echo the GRUB path to it.
  29784. * util/update-grub.in: Handle multiple terminals depending on user
  29785. input, platform availability and font file presence. Propagate
  29786. variables of our findings to /etc/grub.d/ children.
  29787. * util/grub.d/00_header.in: Handle multiple terminals, based on
  29788. environment setup by update-grub.
  29789. 2007-06-23 Robert Millan <rmh@aybabtu.com>
  29790. * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
  29791. 2007-06-21 Robert Millan <rmh@aybabtu.com>
  29792. * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
  29793. indicate end of data section in kernel image.
  29794. * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
  29795. GRUB_KERNEL_MACHINE_DATA_END.
  29796. * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
  29797. space for it.
  29798. * kern/i386/efi/startup.S: Likewise.
  29799. * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
  29800. during image generation. Implement --prefix option to override this
  29801. patch.
  29802. * util/i386/efi/grub-mkimage.c: Likewise.
  29803. * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
  29804. code to make path relative to its root into a separate function.
  29805. * util/i386/pc/grub-install.in: Use newly provided
  29806. make_system_path_relative_to_its_root() to convert ${grubdir}, then
  29807. pass the result to grub-install --prefix.
  29808. 2007-06-13 Robert Millan <rmh@aybabtu.com>
  29809. * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
  29810. DEFAULT_DEVICE_MAP.
  29811. * util/grub-emu.c: Use above definitions from misc.h instead of
  29812. defining them.
  29813. * util/grub-mkdevicemap.c: Likewise.
  29814. * util/i386/pc/grub-setup.c: Likewise.
  29815. * util/grub-probe.c: Likewise.
  29816. (probe): Abort with grub_util_error() when either
  29817. grub_guess_root_device or grub_util_get_grub_dev fails.
  29818. 2007-06-12 Robert Millan <rmh@aybabtu.com>
  29819. * normal/command.c (grub_command_execute): Use NULL rather than 0 for
  29820. "pager" assignment.
  29821. * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
  29822. "pcdata".
  29823. * util/grub-probe.c (probe): Likewise for "drive_name".
  29824. 2007-06-11 Robert Millan <rmh@aybabtu.com>
  29825. * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
  29826. not just the cdrom one.
  29827. 2007-06-11 Robert Millan <rmh@aybabtu.com>
  29828. * util/i386/pc/grub-mkrescue.in: Add "set -e".
  29829. Add --pkglibdir=DIR option to override pkglibdir.
  29830. Mention --image-type=TYPE in help output.
  29831. Fix --grub-mkimage (it was a no-op).
  29832. Abort gracefully when no parameter is given.
  29833. 2007-06-11 Robert Millan <rmh@aybabtu.com>
  29834. * util/i386/pc/grub-mkrescue.in: New file.
  29835. * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
  29836. * Makefile.in: Handle bin_SCRIPTS.
  29837. 2007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
  29838. * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
  29839. list of video modes.
  29840. 2007-06-06 Robert Millan <rmh@aybabtu.com>
  29841. * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
  29842. file doesn't exist, or if it is in a filesystem grub can't read.
  29843. * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
  29844. not abort if GRUB_DRIVE could not be defined. Rearrange generated
  29845. header comment to fit in 80 columns when the variables are resolved.
  29846. * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
  29847. could be identified by update-grub. Remove redundant check for
  29848. unifont.pff existence (since convert_system_path_to_grub_path now
  29849. handles that).
  29850. 2007-06-04 Robert Millan <rmh@aybabtu.com>
  29851. * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
  29852. * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
  29853. * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
  29854. 2007-06-04 Robert Millan <rmh@aybabtu.com>
  29855. * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
  29856. * include/grub/partition.h: Declare grub_apple_partition_map_init and
  29857. grub_apple_partition_map_fini.
  29858. * util/biosdisk.c
  29859. (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
  29860. to access >2 TiB disks).
  29861. Print disk->total_sectors with %llu instead of %lu, since this
  29862. variable is always 64-bit (prevents wrong disk size from being displayed
  29863. on either >2 TiB disk or big-endian CPU).
  29864. (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
  29865. into a generic case that supports all (sane) partition maps.
  29866. Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
  29867. breaks big-endian.
  29868. * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
  29869. and grub_apple_partition_map_fini() after that.
  29870. 2007-06-01 Robert Millan <rmh@aybabtu.com>
  29871. * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
  29872. * util/grub.d/00_header.in: Only enable gfxterm when
  29873. convert_system_path_to_grub_path() succeeds.
  29874. 2007-05-20 Robert Millan <rmh@aybabtu.com>
  29875. * util/update-grub_lib.in: New file.
  29876. * DISTLIST: Add update-grub_lib.in.
  29877. * conf/common.rmk: Generate update-grub_lib and install it in
  29878. $(lib_DATA).
  29879. * Makefile.in: Add install routine for $(lib_DATA).
  29880. * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
  29881. function provided by update-grub_lib to support arbitrary paths of
  29882. unifont.pff.
  29883. * util/update-grub.in: Use convert_system_path_to_grub_path() to
  29884. initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
  29885. 2007-05-19 Robert Millan <rmh@aybabtu.com>
  29886. * commands/i386/cpuid.c: New module.
  29887. * DISTLIST: Add it.
  29888. * conf/i386-efi.rmk: Enable cpuid.mod.
  29889. * conf/i386-pc.rmk: Likewise.
  29890. 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
  29891. * kern/disk.c (grub_disk_read): Check return value of
  29892. grub_realloc().
  29893. 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
  29894. * util/getroot.c (grub_util_get_grub_dev): Support partitionable
  29895. arrays.
  29896. * disk/raid.c (grub_raid_open): Likewise.
  29897. 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
  29898. * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
  29899. stack instead of on the heap.
  29900. * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
  29901. before doing a read on it.
  29902. * configure.ac: Only use -fno-stack-protector for the target
  29903. environment.
  29904. 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
  29905. * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
  29906. __attribute_ ((unused)) to mode_type argument.
  29907. * util/getroot.c (grub_guess_root_device): Fix #endif.
  29908. * kern/misc.c (memcmp): Fix prototype.
  29909. * include/grub/partition.h [GRUB_UTIL]
  29910. (grub_gpt_partition_map_init): Add prototype.
  29911. (grub_gpt_partition_map_fini): Likewise.
  29912. * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
  29913. at the right place.
  29914. * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
  29915. (grub_fat_read_data): Likewise.
  29916. (grub_fat_find_dir): Likewise.
  29917. * font/manager.c (find_glyph): Make table a const.
  29918. (grub_font_get_glyph): Remove bitmap from if statement.
  29919. 2007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
  29920. * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
  29921. code, first search for device in /dev/mapper, then in /dev.
  29922. (grub_util_get_grub_dev): New function.
  29923. * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
  29924. prototype.
  29925. * util/grub-probe.c (probe): Remove check for RAID, call
  29926. grub_util_get_grub_dev() instead of
  29927. grub_util_biosdisk_get_grub_dev().
  29928. * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
  29929. grub_util_biosdisk_get_grub_dev().
  29930. * util/i386/pc/grub-setup.c (main): Likewise.
  29931. 2007-05-16 Robert Millan <rmh@aybabtu.com>
  29932. * DISTLIST: Update for the latest changes.
  29933. * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
  29934. util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
  29935. * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
  29936. grub/util/biosdisk.h.
  29937. * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
  29938. grub/util/biosdisk.h.
  29939. 2007-05-16 Robert Millan <rmh@aybabtu.com>
  29940. * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
  29941. 2007-05-16 Robert Millan <rmh@aybabtu.com>
  29942. * util/i386/efi/grub-install.in: New.
  29943. * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
  29944. newly added grub-install.
  29945. * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
  29946. include.
  29947. * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
  29948. grub/util/biosdisk.h.
  29949. * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
  29950. grub/util/biosdisk.h.
  29951. 2007-05-16 Robert Millan <rmh@aybabtu.com>
  29952. * include/grub/i386/pc/util/biosdisk.h: Moved to ...
  29953. * include/grub/util/biosdisk.h: ... here.
  29954. * util/i386/pc/biosdisk.c: Moved to ...
  29955. * util/biosdisk.c: ... here.
  29956. * util/i386/pc/getroot.c: Moved to ...
  29957. * util/getroot.c: ... here.
  29958. * util/i386/pc/grub-mkdevicemap.c: Moved to ...
  29959. * util/grub-mkdevicemap.c: ... here.
  29960. * util/i386/pc/grub-probe.c: Moved to ...
  29961. * util/grub-probe.c: ... here.
  29962. 2007-05-15 Robert Millan <rmh@aybabtu.com>
  29963. * util/update-grub.in: Remove duplicated line in grub.cfg header
  29964. message.
  29965. 2007-05-13 Robert Millan <rmh@aybabtu.com>
  29966. * util/update-grub.in: Fix a few assumptions about the devices holding
  29967. /, /boot and /boot/grub being the same.
  29968. * util/grub.d/00_header.in: Likewise.
  29969. * util/grub.d/10_hurd.in: Likewise.
  29970. * util/grub.d/10_linux.in: Likewise.
  29971. * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
  29972. patterns. Use that to define the `.old' suffix as older than `'.
  29973. * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
  29974. * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
  29975. the grub.cfg header message.
  29976. 2007-05-11 Robert Millan <rmh@aybabtu.com>
  29977. * util/update-grub.in: Create device.map if it doesn't already exist,
  29978. before attempting to run grub-probe.
  29979. Check for grub-probe and grub-mkdevicemap with the same code
  29980. grub-install is using.
  29981. Remove test mode.
  29982. 2007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
  29983. * Makefile.in: Add the datarootdir autoconf variable.
  29984. 2007-05-09 Robert Millan <rmh@aybabtu.com>
  29985. * util/i386/pc/grub-probe.c (probe): When detecting partition map,
  29986. fail gracefully if dev->disk->partition == NULL.
  29987. 2007-05-07 Robert Millan <rmh@aybabtu.com>
  29988. * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
  29989. determine partition map module.
  29990. * util/i386/pc/grub-install.in: Use this feature to decide which
  29991. partition module to load, instead of hardcoding pc and gpt.
  29992. 2007-05-07 Robert Millan <rmh@aybabtu.com>
  29993. * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
  29994. source directory differs from build directory.
  29995. 2007-05-05 Robert Millan <rmh@aybabtu.com>
  29996. * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
  29997. initialisation.
  29998. 2007-05-05 Robert Millan <rmh@aybabtu.com>
  29999. * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
  30000. 2007-05-05 Robert Millan <rmh@aybabtu.com>
  30001. * util/grub.d/10_linux.in: Allow the administrator to insert Linux
  30002. command-line arguments via ${GRUB_CMDLINE_LINUX}.
  30003. 2007-05-05 Robert Millan <rmh@aybabtu.com>
  30004. * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
  30005. (grub_probe_SOURCES): Likewise.
  30006. * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
  30007. GPT and initialize dos_part and bsd_part accordingly.
  30008. * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
  30009. install_bsd_part.
  30010. (main): Activate gpt module for use during partition identification,
  30011. and deactivate it afterwards.
  30012. * util/i386/pc/grub-install.in: Add gpt module to core.img.
  30013. * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
  30014. partition identification, and deactivate it afterwards.
  30015. 2007-05-05 Robert Millan <rmh@aybabtu.com>
  30016. * term/i386/pc/console.c (grub_console_fini): Call
  30017. grub_term_set_current() before grub_term_unregister().
  30018. 2007-05-04 Robert Millan <rmh@aybabtu.com>
  30019. * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
  30020. util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
  30021. * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
  30022. and update-grub_DATA.
  30023. * conf/common.rmk: Build and install update-grub components.
  30024. * conf/common.mk: Regenerate.
  30025. * util/update-grub.in: New. Core of update-grub.
  30026. * util/grub.d/00_header.in: New. Generates grub.cfg header.
  30027. * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
  30028. * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
  30029. * util/grub.d/README: New. Document grub.d directory layout.
  30030. 2007-05-01 Robert Millan <rmh@aybabtu.com>
  30031. * util/grub-emu.c: Move initialization functions
  30032. grub_util_biosdisk_init() and grub_init_all() before
  30033. grub_util_biosdisk_get_grub_dev(), which relies on them.
  30034. 2007-04-19 Robert Millan <rmh@aybabtu.com>
  30035. * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
  30036. it is used later.
  30037. 2007-04-18 Jerone Young <jerone@gmail.com>
  30038. * kernel/elf.c: Add missing parenthesis for conditional statement
  30039. stanza.
  30040. 2007-04-10 Jerone Young <jerone@gmail.com>
  30041. * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
  30042. continue on and look for device node with real device name.
  30043. 2007-04-10 Jerone Young <jerone@gmail.com>
  30044. * configure.ac: Add argument for autoconf to use transformation
  30045. ability.
  30046. * Makefile.in: Add autoconf package transformation code.
  30047. * util/i386/pc/grub-install.in: Likewise.
  30048. * util/powerpc/ieee1275/grub-install.in: Likewise.
  30049. 2007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
  30050. * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
  30051. (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
  30052. (EXT2_REVISION): Likewise.
  30053. (EXT2_INODE_SIZE): Likewise.
  30054. (struct grub_ext2_block_group): Added a missing member
  30055. "used_dirs".
  30056. (grub_ext2_read_inode): Divide by the inode size in a superblock
  30057. instead of 128 to obtain INODES_PER_BLOCK.
  30058. Use the macro EXT2_INODE_SIZE instead of directly using
  30059. SBLOCK->INODE_SIZE.
  30060. 2007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
  30061. * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
  30062. superblock instead of the structure size to compute an
  30063. offset. This fixes the problem that GRUB could not read a
  30064. filesystem when inode size is different from 128-byte.
  30065. 2007-03-05 Marco Gerards <marco@gnu.org>
  30066. * normal/main.c (read_config_file): When "menu" is not set, create
  30067. an initial context.
  30068. 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
  30069. * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
  30070. (HEAP_LIMIT): New macro.
  30071. (grub_claim_heap): Claim memory up to `heaplimit'.
  30072. 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
  30073. * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
  30074. * kern/powerpc/ieee1275/init.c (_end): Add declaration.
  30075. (_start): Likewise.
  30076. (grub_arch_modules_addr): Return address after `_end'.
  30077. * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
  30078. (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
  30079. (add_segments): Calculate `_end' from phdr size and location.
  30080. (ALIGN_UP): Moved to ...
  30081. * include/grub/misc.h: here.
  30082. * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
  30083. New macro.
  30084. (GRUB_IEEE1275_MODULE_BASE): Removed.
  30085. 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
  30086. * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
  30087. loop boundary.
  30088. 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
  30089. * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
  30090. All users updated.
  30091. (grub_elf64_load_hook_t): Likewise.
  30092. * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
  30093. debug output.
  30094. 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
  30095. * kern/mm.c: Update copyright.
  30096. (grub_mm_debug): Correct syntax error.
  30097. (grub_mm_dump_free): New function.
  30098. (grub_debug_free): Call `grub_free'.
  30099. * include/grub/mm.h: Update copyright.
  30100. (grub_mm_dump_free): Add declaration.
  30101. 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
  30102. * include/grub/ieee1275/ieee1275.h: Update copyright.
  30103. * kern/powerpc/ieee1275/init.c: Likewise.
  30104. * kern/powerpc/ieee1275/openfw.c: Likewise.
  30105. * loader/powerpc/ieee1275/linux.c: Likewise.
  30106. * include/grub/elfload.h: Likewise.
  30107. * kern/elf.c: Likewise.
  30108. (grub_elf32_load): Pass `base' and `size' parameters. Update all
  30109. callers.
  30110. (grub_elf64_load): Likewise.
  30111. (grub_elf32_load_segment): Move to a nested function.
  30112. (grub_elf64_load_segment): Likewise.
  30113. 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
  30114. * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
  30115. prototype.
  30116. * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
  30117. (grub_heap_len): Likewise.
  30118. (HEAP_SIZE): New macro.
  30119. (grub_claim_heap): New function.
  30120. (grub_machine_init): Don't claim heap directly. Call
  30121. `grub_claim_heap'.
  30122. * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
  30123. (grub_available_iterate): New function.
  30124. 2007-02-03 Thomas Schwinge <tschwinge@gnu.org>
  30125. * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
  30126. * configure.ac: Use it for testing the HOST and TARGET compilers.
  30127. 2006-12-13 Thomas Schwinge <tschwinge@gnu.org>
  30128. * Makefile.in (enable_grub_emu): New variable.
  30129. * configure.ac (--enable-grub-emu): New option.
  30130. Do the checks for (n)curses only if `--enable-grub-emu' is requested.
  30131. * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
  30132. * conf/i386-pc.rmk: Likewise.
  30133. * conf/powerpc-ieee1275.rmk: Likewise.
  30134. * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
  30135. 2006-12-12 Marco Gerards <marco@gnu.org>
  30136. * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
  30137. * kern/env.c (grub_env_unset): Don't free the member `value' when
  30138. the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
  30139. pointer.
  30140. * normal/main.c (current_menu): Removed.
  30141. (free_menu): Unset the `menu' environment variable.
  30142. (grub_normal_menu_addentry): Make use of the environment variable
  30143. `menu', instead of using the global `current_menu'. Allocate
  30144. memory for the sourcecode of this entry.
  30145. (read_config_file): New argument `nested', changed all callers.
  30146. Only in the case of a new context, initialize a new menu. Set the
  30147. `menu' environment variable.
  30148. (grub_normal_execute): Don't set and unset the environment
  30149. variable `menu' here anymore. Only free the menu when leaving the
  30150. context.
  30151. * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
  30152. leak.
  30153. 2006-12-11 Marco Gerards <marco@gnu.org>
  30154. * normal/menu_entry.c (run): Fix off by one bug so the last line
  30155. is executed. Move the loader check to outside the loop.
  30156. 2006-12-08 Hollis Blanchard <hollis@penguinppc.org>
  30157. * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
  30158. 2006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
  30159. * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
  30160. the number of sectors. Reported by Andrey Shuvikov
  30161. <mr_hyro@yahoo.com>.
  30162. 2006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
  30163. * kern/disk.c (grub_disk_read): When there is a read error, always
  30164. try to read only the necessary data.
  30165. * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
  30166. disk/raid.c.
  30167. * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
  30168. prototype.
  30169. [GRUB_UTIL] (grub_raid_fini): Likewise.
  30170. [GRUB_UTIL] (grub_lvm_init): Likewise.
  30171. [GRUB_UTIL] (grub_lvm_fini): Likewise.
  30172. * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
  30173. RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
  30174. (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
  30175. and grub_raid_fini().
  30176. 2006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
  30177. * include/grub/types.h (__unused): Rename to UNUSED.
  30178. * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
  30179. (grub_elf64_size): Likewise.
  30180. 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
  30181. * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
  30182. grub_error_push and grub_error_pop in the error-handling path.
  30183. (grub_elf32_load_segment): Only call grub_file_read with non-zero
  30184. length.
  30185. 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
  30186. * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
  30187. * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
  30188. * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
  30189. (kernel_elf_SOURCES): Likewise.
  30190. * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
  30191. * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
  30192. * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
  30193. * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
  30194. * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
  30195. (elf_mod_SOURCES): New variable.
  30196. (elf_mod_CFLAGS): Likewise.
  30197. (elf_mod_LDFLAGS): Likewise.
  30198. * include/grub/types.h (__unused): New macro.
  30199. * include/grub/elfload.h: New file.
  30200. * kern/elf.c: Likewise.
  30201. * loader/powerpc/ieee1275/linux.c: Include elfload.h.
  30202. (ELF32_LOADMASK): New macro.
  30203. (ELF64_LOADMASK): Likewise.
  30204. (vmlinux): Removed.
  30205. (grub_linux_load32): New function.
  30206. (grub_linux_load64): Likewise.
  30207. (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
  30208. Use grub_elf_t instead of grub_file_t.
  30209. 2006-11-02 Hollis Blanchard <hollis@penguinppc.org>
  30210. * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
  30211. `catch_result' to struct set_color_args.
  30212. 2006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
  30213. * normal/menu.c: Include grub/script.h.
  30214. * normal/menu_entry.c: Likewise.
  30215. * include/grub/normal.h: Do not include grub/script.h.
  30216. 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
  30217. * kern/disk.c (grub_disk_read): Correct debug printf formatting.
  30218. 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
  30219. * kern/disk.c (grub_disk_open): Print debug messages when opening a
  30220. disk.
  30221. (grub_disk_close): Print debug messages when closing a disk.
  30222. (grub_disk_read): Print debug messages when disk read fails.
  30223. * kern/fs.c (grub_fs_probe): Print debug messages when detecting
  30224. filesystem type.
  30225. * kern/partition.c: Include misc.h.
  30226. (grub_partition_iterate): Print debug messages when detecting
  30227. partition type.
  30228. 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
  30229. * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
  30230. is negative.
  30231. * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
  30232. 2006-10-26 Hollis Blanchard <hollis@penguinppc.org>
  30233. * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
  30234. Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
  30235. 2006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
  30236. * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
  30237. instead of sizeof(lv). Patch by Michael Guntsche.
  30238. 2006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
  30239. * disk/lvm.c: Rename VGS to VG_LIST.
  30240. (grub_lvm_iterate): Change VGS->LV to VG-LV.
  30241. (grub_lvm_open): Likewise.
  30242. Thanks to Michael Guntsche for finding this bug.
  30243. 2006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
  30244. * configure.ac (AC_INIT): Bumped to 1.95.
  30245. 2006-10-14 Robert Millan <rmh@aybabtu.com>
  30246. * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
  30247. with "/dev/.static/dev/md".
  30248. 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
  30249. * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
  30250. DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
  30251. DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
  30252. DRIVE_NAME are always freed.
  30253. * util/i386/pc/biosdisk.c (make_device_name): Add one into
  30254. DOS_PART, as a DOS partition is counted from one instead of zero
  30255. now. Reported by Robert Millan.
  30256. 2006-10-14 Robert Millan <rmh@aybabtu.com>
  30257. * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
  30258. grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
  30259. * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
  30260. string returned by grub_guess_root_device.
  30261. * util/i386/pc/grub-setup.c: Likewise.
  30262. * util/i386/pc/grub-probefs.c: Likewise.
  30263. * util/i386/pc/grub-probefs.c: Rename to ...
  30264. * util/i386/pc/grub-probe.c: ... this.
  30265. * DISTLIST: Remove grub-probefs, add grub-probe.
  30266. * conf/i386-efi.rmk: Likewise.
  30267. * conf/i386-pc.rmk: Likewise.
  30268. * util/i386/pc/grub-install.in: Likewise.
  30269. * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
  30270. choose which information we want to print.
  30271. 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
  30272. * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
  30273. include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
  30274. include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
  30275. include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
  30276. video/readers/tga.c and video/i386/pc/vbeutil.c.
  30277. 2006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
  30278. Added support for RAID and LVM.
  30279. * disk/lvm.c: New file.
  30280. * disk/raid.c: Likewise.
  30281. * include/grub/lvm.h: Likewise.
  30282. * include/grub/raid.h: Likewise.
  30283. * include/grub/util/lvm.h: Likewise.
  30284. * include/grub/util/raid.h: Likewise.
  30285. * util/lvm.c: Likewise.
  30286. * util/raid.c: Likewise.
  30287. * include/grub/disk.h (grub_disk_dev_id): Add
  30288. GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
  30289. (grub_disk_get_size): New prototype.
  30290. * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
  30291. returns a partition.
  30292. (grub_disk_get_size): New function.
  30293. * kern/i386/pc/init.c (make_install_device): Copy the prefix
  30294. verbatim if grub_install_dos_part is -2.
  30295. * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
  30296. and LVM devices.
  30297. * util/i386/pc/grub-setup.c (setup): New argument
  30298. MUST_EMBED. Force embedding of GRUB when the argument is
  30299. true. Close FILE before returning.
  30300. (main): Add support for RAID and LVM.
  30301. * conf/common.rmk: Add RAID and LVM modules.
  30302. * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
  30303. util/lvm.c.
  30304. (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
  30305. * kern/misc.c (grub_strstr): New function.
  30306. * include/grub/misc.h (grub_strstr): New prototype.
  30307. 2006-10-10 Tristan Gingold <tristan.gingold@bull.net>
  30308. * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
  30309. 2006-10-05 Tristan Gingold <tristan.gingold@bull.net>
  30310. * kern/misc.c (grub_strtoull): Guess the base only if not
  30311. specified.
  30312. 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
  30313. * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
  30314. PowerMac support.
  30315. 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
  30316. * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
  30317. * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
  30318. Remove `flags' argument. All callers changed.
  30319. * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
  30320. (IEEE1275_IHANDLE_INVALID): New variable.
  30321. (IEEE1275_CELL_INVALID): New variable.
  30322. (grub_ieee1275_finddevice, grub_ieee1275_get_property,
  30323. grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
  30324. grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
  30325. grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
  30326. grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
  30327. codes from Open Firmware. All callers updated.
  30328. (grub_ieee1275_next_property): Directly return Open Firmware return
  30329. code.
  30330. * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
  30331. Standardize error checking from `grub_ieee1275_get_property'.
  30332. * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
  30333. `devalias' to `aliases'. Correct comments. Consolidate error paths.
  30334. 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
  30335. * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
  30336. `instance_to_package_args' to `instance_to_path_args'.
  30337. * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
  30338. `grub_ieee1275_chosen'.
  30339. * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
  30340. `grub_ieee1275_interpret'.
  30341. 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
  30342. * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
  30343. 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
  30344. * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
  30345. (__cmpdi): Likewise.
  30346. * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
  30347. `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
  30348. `grub_ssize_t'.
  30349. * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
  30350. * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
  30351. to type `grub_ssize_t'.
  30352. (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
  30353. 2006-09-22 Marco Gerards <marco@gnu.org>
  30354. * normal/script.c (grub_script_create_cmdmenu): Skip leading
  30355. newlines.
  30356. 2006-09-22 Marco Gerards <marco@gnu.org>
  30357. * commands/echo.c: New file.
  30358. * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
  30359. * conf/common.rmk (echo_mod_SOURCES): New variable.
  30360. (echo_mod_CFLAGS): Likewise.
  30361. (echo_mod_LDFLAGS): Likewise.
  30362. 2006-09-22 Marco Gerards <marco@gnu.org>
  30363. * normal/main.c (get_line): Malloc memory instead of using
  30364. preallocated memory. Removed the arguments `cmdline' and
  30365. `max_len'. Updated all callers.
  30366. 2006-09-22 Marco Gerards <marco@gnu.org>
  30367. * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
  30368. (normal_mod_DEPENDENCIES): Likewise.
  30369. * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
  30370. (normal_mod_DEPENDENCIES): Likewise.
  30371. * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
  30372. 2006-09-22 Johan Rydberg <jrydberg@gnu.org>
  30373. * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
  30374. programs.
  30375. * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
  30376. (normal_mod_DEPENDENCIES): Likewise.
  30377. * conf/i386-pc.mk: Regenerate.
  30378. * conf/i386-efi.mk: Likewise
  30379. * conf/common.mk: Likewise.
  30380. * conf/powerpc-ieee1275.mk: Likewise.
  30381. * conf/sparc64-ieee1275.mk: Likewise.
  30382. 2006-09-22 Robert Millan <rmh@aybabtu.com>
  30383. Sync with i386 version.
  30384. * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
  30385. * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
  30386. 2006-09-21 Robert Millan <rmh@aybabtu.com>
  30387. Import from GRUB Legacy (lib/device.c):
  30388. * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
  30389. (init_device_map) [__linux__]: Add support for I2O devices.
  30390. 2006-09-14 Marco Gerards <marco@gnu.org>
  30391. * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
  30392. `-melf_i386'.
  30393. 2006-09-14 Robert Millan <rmh@aybabtu.com>
  30394. * util/i386/pc/grub-install.in: Skip menu.lst when removing
  30395. /boot/grub/*.lst.
  30396. * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
  30397. * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
  30398. before adding it to device.map.
  30399. 2006-08-15 Johan Rydberg <jrydberg@gnu.org>
  30400. * genmk.rb: Let GCC generate dependencies the first time it
  30401. compiles a file; using the -MD option.
  30402. * conf/common.mk: Regenerate.
  30403. * conf/i386-pc.mk: Likewise.
  30404. * conf/i386-efi.mk: Likewise.
  30405. * conf/powerpc-ieee1275.mk: Likewise.
  30406. * conf/sparc64-ieee1275.mk: Likewise.
  30407. 2006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
  30408. Move the prototypes of grub_setjmp and grub_longjmp to
  30409. cpu/setjmp.h, so that each architecture may specify different
  30410. attributes.
  30411. * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
  30412. (grub_longjmp): Likewise.
  30413. * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
  30414. (grub_longjmp): Likewise.
  30415. * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
  30416. (grub_longjmp): Likewise.
  30417. * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
  30418. [!GRUB_UTIL] (grub_longjmp): Removed.
  30419. 2006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
  30420. * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
  30421. "color!" method does not return any value.
  30422. 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
  30423. * include/grub/bitmap.h: New file.
  30424. * include/grub/i386/pc/vbeutil.h: Likewise.
  30425. * video/bitmap.c: Likewise.
  30426. * video/readers/tga.c: Likewise.
  30427. * video/i386/pc/vbeutil.c: Likewise.
  30428. * commands/videotest.c: Code cleanup and updated to reflect to new
  30429. video API.
  30430. * term/gfxterm.c: Likewise.
  30431. * video/video.c: Likewise.
  30432. * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
  30433. (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
  30434. (bitmap_mod_SOURCES): New entry.
  30435. (bitmap_mod_CFLAGS): Likewise.
  30436. (bitmap_mod_LDFLAGS): Likewise.
  30437. (tga_mod_SOURCES): Likewise.
  30438. (tga_mod_CFLAGS): Likewise.
  30439. (tga_mod_LDFLAGS): Likewise.
  30440. * include/grub/video.h (grub_video_blit_operators): New enum type.
  30441. (grub_video_render_target): Changed as forward declaration and moved
  30442. actual definition to be video driver specific.
  30443. (grub_video_adapter.blit_bitmap): Added blitting operator.
  30444. (grub_video_adapter.blit_render_target): Likewise.
  30445. (grub_video_blit_bitmap): Likewise.
  30446. (grub_video_blit_render_target): Likewise.
  30447. * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
  30448. driver specific render target definition.
  30449. (grub_video_vbe_map_rgba): Added driver internal helper.
  30450. (grub_video_vbe_unmap_color): Updated to use
  30451. grub_video_i386_vbeblit_info.
  30452. (grub_video_vbe_get_video_ptr): Likewise.
  30453. * include/grub/i386/pc/vbeblit.h
  30454. (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
  30455. grub_video_i386_vbeblit_info.
  30456. (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
  30457. (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
  30458. (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
  30459. (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
  30460. (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
  30461. (grub_video_i386_vbeblit_index_index): Likewise.
  30462. (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
  30463. (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
  30464. (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
  30465. (grub_video_i386_vbeblit_blend): Added generic blitter for blend
  30466. operator.
  30467. (grub_video_i386_vbeblit_replace): Added generic blitter for replace
  30468. operator.
  30469. * video/i386/pc/vbeblit.c: Updated to reflect changes on
  30470. include/grub/i386/pc/vbeblit.h.
  30471. * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
  30472. Updated to use grub_video_i386_vbeblit_info.
  30473. (grub_video_i386_vbefill_R8G8B8): Likewise.
  30474. (grub_video_i386_vbefill_index): Likewise.
  30475. (grub_video_i386_vbefill): Added generic filler.
  30476. * video/i386/pc/vbefill.c: Updated to reflect changes on
  30477. include/grub/i386/pc/vbefill.h.
  30478. * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
  30479. grub_video_i386_vbeblit_info.
  30480. (grub_video_vbe_unmap_color): Likewise.
  30481. (grub_video_vbe_blit_glyph): Likewise.
  30482. (grub_video_vbe_scroll): Likewise.
  30483. (grub_video_vbe_draw_pixel): Removed function.
  30484. (grub_video_vbe_get_pixel): Likewise.
  30485. (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
  30486. updated code to use it.
  30487. (common_blitter): Added common blitter for render target and bitmap.
  30488. (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
  30489. (grub_video_vbe_blit_render_target): Likewise.
  30490. 2006-07-30 Johan Rydberg <jrydberg@gnu.org>
  30491. * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
  30492. is in text mode if there is no console control protocol instance
  30493. available.
  30494. 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
  30495. * include/grub/video.h: Code cleanup.
  30496. * include/grub/i386/pc/vbe.h: Likewise.
  30497. * video/i386/pc/vbe.c: Likewise.
  30498. * video/i386/pc/vbeblit.c: Likewise.
  30499. * video/i386/pc/vbefill.c: Likewise.
  30500. * video/video.c: Likewise. Also added more comments.
  30501. 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
  30502. * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
  30503. (struct grub_biosdisk_dap): Likewise.
  30504. * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
  30505. linkage settings for all functions.
  30506. 2006-07-12 Marco Gerards <marco@gnu.org>
  30507. * configure.ac (--enable-mm-debug): Fix typo.
  30508. * genkernsyms.sh.in: Use proper quoting for `CC'.
  30509. 2006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
  30510. * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
  30511. (normal_mod_ASFLAGS): Remove "-m32".
  30512. 2006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
  30513. * util/misc.c: Include config.h.
  30514. [!HAVE_MEMALIGN]: Do not include malloc.h.
  30515. (grub_memalign): Use posix_memalign, if present. Then, use
  30516. memalign, if present. Otherwise, emit an error.
  30517. * util/grub-emu.c: Do not include malloc.h.
  30518. * include/grub/util/misc.h: Include unistd.h. This is required for
  30519. FreeBSD, because off_t is defined in unistd.h. Reported by Harley
  30520. D. Eades III <hde@foobar-qux.org>.
  30521. * configure.ac (AC_GNU_SOURCE): Added.
  30522. (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
  30523. type.
  30524. 2006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
  30525. * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
  30526. ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
  30527. 2006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
  30528. * include/grub/types.h (grub_host_addr_t): Rename to
  30529. grub_target_addr_t.
  30530. (grub_host_off_t): Rename to grub_target_off_t.
  30531. (grub_host_size_t): Rename to grub_target_size_t.
  30532. (grub_host_ssize_t): Rename to grub_target_ssize_t.
  30533. Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
  30534. * include/grub/kernel.h (struct grub_module_header): Change type
  30535. of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
  30536. (grub_module_info): Likewise.
  30537. 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
  30538. * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
  30539. of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
  30540. Velazquez <jesus.velazquez@gmail.com>.
  30541. 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
  30542. Count partitions from 1 instead of 0 in the string representation
  30543. of partitions. Still use 0-based internally.
  30544. * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
  30545. (sun_partition_map_iterate): Use grub_partition_t instead of
  30546. struct grub_partition *. Cast DESC->START_CYLINDER to
  30547. grub_uint64_t after converting the endian.
  30548. (sun_partition_map_probe): Subtract 1 for PARTNUM.
  30549. (sun_partition_map_get_name): Add 1 to P->INDEX.
  30550. * partmap/pc.c (grub_partition_parse): Subtract 1 for
  30551. PCDATA->DOS_PART.
  30552. (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
  30553. * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
  30554. zero instead of one.
  30555. (gpt_partition_map_probe): Subtract 1 for PARTNUM.
  30556. (gpt_partition_map_get_name): Add 1 into P->INDEX.
  30557. * partmap/apple.c (apple_partition_map_iterate): Change the type
  30558. of POS to unsigned.
  30559. (apple_partition_map_probe): Subtract 1 for PARTNUM.
  30560. (apple_partition_map_get_name): Add 1 into P->INDEX.
  30561. * partmap/amiga.c (amiga_partition_map_iterate): Change the type
  30562. of POS to unsigned.
  30563. (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
  30564. calculate the offset of a partition.
  30565. (amiga_partition_map_probe): Subtract 1 for PARTNUM.
  30566. (amiga_partition_map_get_name): Add 1 into P->INDEX.
  30567. * partmap/acorn.c (acorn_partition_map_find): Change the type of
  30568. SECTOR to grub_disk_addr_t.
  30569. (acorn_partition_map_iterate): Likewise.
  30570. (acorn_partition_map_probe): Subtract 1 for PARTNUM.
  30571. Change the type of SECTOR to grub_disk_addr_t. Declare P on the
  30572. top.
  30573. (acorn_partition_map_get_name): Add 1 into P->INDEX.
  30574. * kern/i386/pc/init.c (make_install_device): Add 1 into
  30575. GRUB_INSTALL_DOS_PART.
  30576. * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
  30577. conditional.
  30578. 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
  30579. Clean up the code to support 64-bit addressing in disks and
  30580. files. This change is not enough for filesystems yet.
  30581. * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
  30582. type of "start" to grub_uint64_t.
  30583. (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
  30584. grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
  30585. save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
  30586. convert addresses.
  30587. * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
  30588. to grub_disk_addr_t.
  30589. * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
  30590. string.
  30591. * partmap/pc.c (pc_partition_map_iterate): Likewise.
  30592. * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
  30593. to char *.
  30594. * normal/script.c (grub_script_parse): Remove unused MEMFREE.
  30595. * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
  30596. * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
  30597. * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
  30598. to grub_off_t, to detect an error from grub_file_seek.
  30599. (grub_multiboot_load_elf32): Likewise.
  30600. * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
  30601. maximum unsigned long value when an overflow is detected.
  30602. (grub_strtoull): New function.
  30603. (grub_divmod64): Likewise.
  30604. (grub_lltoa): use grub_divmod64.
  30605. * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
  30606. grub_disk_addr_t.
  30607. (grub_fs_blocklist_open): Increase P if P is not NULL to advance
  30608. the pointer to next character. Use grub_strtoull instead of
  30609. grub_strtoul.
  30610. (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
  30611. SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
  30612. respectively.
  30613. * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
  30614. return value is signed.
  30615. (grub_file_seek): Change the type of OLD to grub_off_t. Do not
  30616. test if OFFSET is less than zero, as OFFSET is unsigned now.
  30617. * kern/disk.c (struct grub_disk_cache): Change the type of
  30618. "sector" to grub_disk_addr_t.
  30619. (grub_disk_cache_get_index): Change the type of SECTOR to
  30620. grub_disk_addr_t. Calculate the hash with SECTOR casted to
  30621. unsigned after shifting.
  30622. (grub_disk_cache_invalidate): Change the type of SECTOR to
  30623. grub_disk_addr_t.
  30624. (grub_disk_cache_unlock): Likewise.
  30625. (grub_disk_cache_store): Likewise.
  30626. (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
  30627. START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
  30628. grub_disk_addr_t and grub_uint64_t, respectively.
  30629. (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
  30630. body, as the value of OFFSET is tweaked by
  30631. grub_disk_check_range. Change the types of START_SECTOR, LEN and
  30632. POS to grub_disk_addr_t, grub_size_t and grub_size_t,
  30633. respectively.
  30634. (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
  30635. body, as the value of OFFSET is tweaked by
  30636. grub_disk_check_range. Change the types of LEN and N to
  30637. grub_size_t.
  30638. * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
  30639. and "saved_offset" to grub_off_t.
  30640. (test_header): Cast BUF to char *.
  30641. (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
  30642. to char *.
  30643. (grub_gzio_read): Change the types of OFFSET and SIZE to
  30644. grub_off_t and grub_size_t, respectively.
  30645. * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
  30646. Removed.
  30647. (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
  30648. (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
  30649. (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
  30650. (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
  30651. (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
  30652. * include/grub/types.h (grub_off_t): Unconditionally set to
  30653. grub_uint64_t.
  30654. (grub_disk_addr_t): Changed to grub_uint64_t.
  30655. * include/grub/partition.h (struct grub_partition): Change the
  30656. types of "start", "len" and "offset" to grub_disk_addr_t,
  30657. grub_uint64_t and grub_disk_addr_t, respectively.
  30658. (grub_partition_get_start): Return grub_disk_addr_t.
  30659. (grub_partition_get_len): Return grub_uint64_t.
  30660. * include/grub/misc.h (grub_strtoull): New prototype.
  30661. (grub_divmod64): Likewise.
  30662. * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
  30663. of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
  30664. grub_off_t, respectively.
  30665. All callers and references changed.
  30666. * include/grub/fs.h (struct grub_fs): Change the type of LEN to
  30667. grub_size_t in "read".
  30668. All callers and references changed.
  30669. * include/grub/file.h (struct grub_file): Change the types of
  30670. "offset" and "size" to grub_off_t and grub_off_t,
  30671. respectively. Change the type of SECTOR to grub_disk_addr_t in
  30672. "read_hook".
  30673. (grub_file_read): Change the type of LEN to grub_size_t.
  30674. (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
  30675. grub_off_t.
  30676. (grub_file_size): Return grub_off_t.
  30677. (grub_file_tell): Likewise.
  30678. All callers and references changed.
  30679. * include/grub/disk.h (struct grub_disk_dev): Change the types of
  30680. SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
  30681. "write".
  30682. (struct grub_disk): Change the type of "total_sectors" to
  30683. grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
  30684. "read_hook".
  30685. (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
  30686. grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
  30687. (grub_disk_write): Likewise.
  30688. All callers and references changed.
  30689. * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
  30690. char * for grub_strncmp to silence gcc.
  30691. (grub_iso9660_mount): Likewise.
  30692. (grub_iso9660_mount): Likewise.
  30693. (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
  30694. return statement.
  30695. (grub_iso9660_iterate_dir): Likewise.
  30696. (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
  30697. * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
  30698. LEN to grub_disk_addr_t and grub_size_t, respectively.
  30699. * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
  30700. * fs/jfs.c (grub_jfs_read_file): Likewise.
  30701. * fs/minix.c (grub_jfs_read_file): Likewise.
  30702. * fs/sfs.c (grub_jfs_read_file): Likewise.
  30703. * fs/ufs.c (grub_jfs_read_file): Likewise.
  30704. * fs/xfs.c (grub_jfs_read_file): Likewise.
  30705. * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
  30706. and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
  30707. respectively.
  30708. * fs/ext2.c (grub_ext2_read_block): When an error happens, set
  30709. BLKNR to -1 instead of returning GRUB_ERRNO.
  30710. (grub_ext2_read_file): Change the types of SECTOR and
  30711. LEN to grub_disk_addr_t and grub_size_t, respectively.
  30712. * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
  30713. LEN to grub_disk_addr_t and grub_size_t, respectively.
  30714. * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
  30715. grub_file_read.
  30716. * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
  30717. string. Do not cast SECTOR explicitly.
  30718. * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
  30719. TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
  30720. (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
  30721. grub_disk_addr_t and grub_size_t, respectively. If the sector is
  30722. over 2TB and LBA mode is not supported, raise an error.
  30723. (get_safe_sectors): New function.
  30724. (grub_biosdisk_read): Use get_safe_sectors.
  30725. (grub_biosdisk_write): Likewise.
  30726. * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
  30727. (grub_efidisk_write): Likewise.
  30728. * disk/loopback.c (delete_loopback): Cosmetic changes.
  30729. (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
  30730. correctly.
  30731. (grub_loopback_open): Likewise.
  30732. (grub_loopback_read): Likewise. Also, change the type of POS to
  30733. grub_off_t, and fix the usage of grub_memset.
  30734. * commands/i386/pc/play.c: Include grub/machine/time.h.
  30735. * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
  30736. print FILE->SIZE.
  30737. * commands/configfile.c: Include grub/env.h.
  30738. * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
  30739. GRUB_ERRNO directly instead. Change the type of POS to
  30740. grub_off_t. Follow the coding standard.
  30741. * commands/blocklist.c: Include grub/partition.h.
  30742. (grub_cmd_blocklist): Return an error if the underlying device is
  30743. not a disk. Take the starting sector of a partition into account,
  30744. if a partition is used.
  30745. * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
  30746. a length field.
  30747. (lba_mode): Support 64-bit addresses.
  30748. (chs_mode): Likewise.
  30749. (copy_buffer): Adapted to the new offsets of a length field and a
  30750. segment field.
  30751. (blocklist_default_start): Allocate 64-bit space.
  30752. * boot/i386/pc/boot.S (force_lba): Removed.
  30753. (boot_drive): Moved to under KERNEL_SECTOR.
  30754. (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
  30755. space.
  30756. (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
  30757. is useless.
  30758. (lba_mode): Refactored to support a 64-bit address. More size
  30759. optimization.
  30760. (setup_sectors): Likewise.
  30761. 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
  30762. * DISTLIST: Added include/grub/i386/linux.h. Removed
  30763. include/grub/i386/pc/linux.h
  30764. * configure.ac (AC_INIT): Bumped to 1.94.
  30765. * config.guess: Updated from gnulib.
  30766. * config.sub: Likewise.
  30767. * install-sh: Likewise.
  30768. * mkinstalldirs: Likewise.
  30769. 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
  30770. * conf/common.rmk (grub_modules_init.lst): Depended on
  30771. grub_emu_SOURCES, excluding grub_emu_init.c, instead of
  30772. MODSRCFILES.
  30773. * genmk.rb (PModule::rule): Reverted the previous change.
  30774. 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
  30775. * conf/common.rmk (grub_modules_init.lst): Depends on
  30776. $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
  30777. that the target does not exist before producing.
  30778. (grub_modules_init.h): Remove the target before generating.
  30779. (grub_emu_init.c): Likewise.
  30780. * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
  30781. 2006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
  30782. * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
  30783. for the target-specific tests. Make sure that we also have the
  30784. up-to-date target variables for those tests.
  30785. 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
  30786. * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
  30787. (PModule::rule): Likewise.
  30788. 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
  30789. * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
  30790. TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
  30791. target-specific flags should be prefixed.
  30792. (PModule::rule): Likewise.
  30793. 2006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
  30794. * configure.ac (CMP): Check if cmp is available explicitly.
  30795. 2006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
  30796. * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
  30797. (target_cpu): New variable.
  30798. (pkglibdir): Use target_cpu instead of host_cpu.
  30799. * util/i386/pc/grub-install.in (host_cpu): Removed.
  30800. (target_cpu): New variable.
  30801. (pkglibdir): Use target_cpu instead of host_cpu.
  30802. * util/genmoddep.c: Removed.
  30803. * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
  30804. instead of GRUB_HOST_SIZEOF_VOID_P.
  30805. * kern/dl.c: Likewise.
  30806. * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
  30807. ...
  30808. (GRUB_TARGET_SIZEOF_VOID_P): ... this.
  30809. (GRUB_HOST_SIZEOF_LONG): Renamed to ...
  30810. (GRUB_TARGET_SIZEOF_LONG): ... this.
  30811. (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
  30812. (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
  30813. * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
  30814. to ...
  30815. (GRUB_TARGET_SIZEOF_VOID_P): ... this.
  30816. (GRUB_HOST_SIZEOF_LONG): Renamed to ...
  30817. (GRUB_TARGET_SIZEOF_LONG): ... this.
  30818. (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
  30819. (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
  30820. * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
  30821. to ...
  30822. (GRUB_TARGET_SIZEOF_VOID_P): ... this.
  30823. (GRUB_HOST_SIZEOF_LONG): Renamed to ...
  30824. (GRUB_TARGET_SIZEOF_LONG): ... this.
  30825. (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
  30826. (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
  30827. * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
  30828. GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
  30829. [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
  30830. instead of GRUB_HOST_SIZEOF_LONG.
  30831. [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
  30832. GRUB_HOST_WORDS_BIGENDIAN to define or undefine
  30833. GRUB_CPU_WORDS_BIGENDIAN.
  30834. Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
  30835. define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
  30836. grub_host_ssize_t.
  30837. * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
  30838. (genmoddep_SOURCES): Likewise.
  30839. * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
  30840. (genmoddep_SOURCES): Likewise.
  30841. * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
  30842. (genmoddep_SOURCES): Likewise.
  30843. * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
  30844. Likewise.
  30845. (genmoddep_SOURCES): Likewise.
  30846. * genmoddep.awk: New file.
  30847. * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
  30848. TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
  30849. CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
  30850. (PModule::rule): Likewise.
  30851. (Program::rule): Likewise.
  30852. (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
  30853. BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
  30854. respectively.
  30855. * configure.ac: Rewritten intensively to use host and target
  30856. instead of build and host, respectively.
  30857. * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
  30858. (host_cpu): Removed.
  30859. (target_cpu): New variable.
  30860. (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
  30861. (BUILD_CC): Removed.
  30862. (BUILD_CFLAGS): Likewise.
  30863. (BUILD_CPPFLAGS): Likewise.
  30864. (TARGET_CC): New variable.
  30865. (TARGET_CFLAGS): Likewise.
  30866. (TARGET_CPPFLAGS): Likewise.
  30867. (TARGET_LDFLAGS): Likewise.
  30868. (AWK): Likewise.
  30869. (include): Use target_cpu instead of host_cpu.
  30870. (moddep.lst:): Use genmoddep.awk instead of genmoddep.
  30871. * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
  30872. 2006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
  30873. * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
  30874. 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
  30875. field 'false' to 'exec_on_false'.
  30876. (grub_script_create_cmdif): Renamed argument names to reflect above
  30877. changes.
  30878. * normal/execute.c (grub_script_execute_cmdif): Likewise.
  30879. * normal/script.c (grub_script_create_cmdif): Likewise.
  30880. 2006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
  30881. * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
  30882. top.
  30883. (grub_hfsplus_btree_recptr): Likewise.
  30884. (grub_hfsplus_find_block): Do not take RETRY any longer. Use
  30885. FILEBLOCK both to pass a block number and store next block
  30886. number.
  30887. (grub_hfsplus_read_block): Rewritten heavily to support an extent
  30888. overflow file correctly. Specify errors appropriately, because
  30889. fshelp expects that GRUB_ERRNO is set when fails. Reuse
  30890. grub_hfsplus_btree_recptr to get the pointer to a found key.
  30891. (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
  30892. is found.
  30893. * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
  30894. linux.mod.
  30895. (_linux_mod_SOURCES): New variable.
  30896. (_linux_mod_CFLAGS): Likewise.
  30897. (_linux_mod_LDFLAGS): Likewise.
  30898. (linux_mod_SOURCES): Likewise.
  30899. (linux_mod_CFLAGS): Likewise.
  30900. (linux_mod_LDFLAGS): Likewise.
  30901. * DISTLIST: Added loader/i386/efi/linux.c,
  30902. loader/i386/efi/linux_normal.c and
  30903. include/grub/i386/efi/loader.h.
  30904. * loader/i386/efi/linux.c: New file.
  30905. * loader/i386/efi/linux_normal.c: Likewise.
  30906. * include/grub/i386/efi/loader.h: Likewise.
  30907. 2006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
  30908. * commands/blocklist.c: New file.
  30909. * DISTLIST: Added commands/blocklist.c.
  30910. * term/efi/console.c (grub_console_highlight_color): Use a lighter
  30911. color for the background, and a darker color for the foreground.
  30912. (grub_console_checkkey): Return READ_KEY.
  30913. (grub_console_cls): Set the background to
  30914. GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
  30915. * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
  30916. * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
  30917. the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
  30918. * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
  30919. prototype.
  30920. * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
  30921. BG. The spec is wrong again.
  30922. * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
  30923. prototype.
  30924. [GRUB_UTIL] (grub_blocklist_fini): Likewise.
  30925. * conf/i386-pc.rmk (grub_emu_SOURCES): Added
  30926. commands/blocklist.c.
  30927. * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
  30928. * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
  30929. (blocklist_mod_SOURCES): New variable.
  30930. (blocklist_mod_CFLAGS): Likewise.
  30931. (blocklist_mod_LDFLAGS): Likewise.
  30932. 2006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
  30933. * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
  30934. duplication.
  30935. (lba_mode): Use %eax more intensively to reduce the code size.
  30936. 2006-05-20 Marco Gerards <marco@gnu.org>
  30937. * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
  30938. * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
  30939. for `menuentry'.
  30940. (script): Accept leading newlines.
  30941. (newlines): New rule to describe 0 or more newlines.
  30942. (commands): Accept `command' with trailing newline. Fixed the
  30943. order in which arguments were passed to `grub_script_add_cmd'.
  30944. Accept commands separated by newlines.
  30945. (function): Changed to accept newlines.
  30946. (menuentry) Rewritten.
  30947. * normal/script.c (grub_script_create_cmdmenu): Add new entries in
  30948. front of the list, instead of to the end.
  30949. 2006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
  30950. * util/i386/pc/grub-install.in (bindir): New variable.
  30951. (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
  30952. Shaver <lbgwjl@gmail.com>.
  30953. 2006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
  30954. * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
  30955. grub/machine/linux.h
  30956. * loader/i386/pc/linux.c: Likewise.
  30957. * include/grub/i386/pc/linux.h: Moved to ...
  30958. * include/grub/i386/linux.h: ... here.
  30959. * include/grub/i386/linux.h (struct linux_kernel_params): New
  30960. struct.
  30961. 2006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
  30962. * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
  30963. checking.
  30964. (grub_video_vbe_blit_glyph): Likewise.
  30965. (grub_video_vbe_blit_bitmap): Likewise.
  30966. (grub_video_vbe_blit_render_target): Likewise.
  30967. 2006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
  30968. * configure.ac (--with-platform): Properly quote the square
  30969. brackets.
  30970. 2006-05-08 Marco Gerards <marco@gnu.org>
  30971. * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
  30972. this...
  30973. (kernel_elf_HEADERS): ...to this. Updated all users.
  30974. (grubof_symlist.c): Renamed from this...
  30975. (kernel_elf_symlist.c): ...to this. Updated all users.
  30976. (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
  30977. (grubof_SOURCES): Renamed from this...
  30978. (kernel_elf_SOURCES): ...to this.
  30979. (grubof_HEADERS): Renamed from this...
  30980. (kernel_elf_HEADERS): ...to this.
  30981. (grubof_CFLAGS): Renamed from this...
  30982. (kernel_elf_CFLAGS): ...to this.
  30983. (grubof_ASFLAGS): Renamed from this...
  30984. (kernel_elf_ASFLAGS): ...to this.
  30985. (grubof_LDFLAGS): Renamed from this...
  30986. (kernel_elf_LDFLAGS): ...to this.
  30987. * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
  30988. this...
  30989. (kernel_elf_HEADERS): ...to this. Updated all users.
  30990. (grubof_symlist.c): Renamed from this...
  30991. (kernel_elf_symlist.c): ...to this. Updated all users.
  30992. (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
  30993. (grubof_SOURCES): Renamed from this...
  30994. (kernel_elf_SOURCES): ...to this.
  30995. (grubof_HEADERS): Renamed from this...
  30996. (kernel_elf_HEADERS): ...to this.
  30997. (grubof_CFLAGS): Renamed from this...
  30998. (kernel_elf_CFLAGS): ...to this.
  30999. (grubof_ASFLAGS): Renamed from this...
  31000. (kernel_elf_ASFLAGS): ...to this.
  31001. (grubof_LDFLAGS): Renamed from this...
  31002. (kernel_elf_LDFLAGS): ...to this.
  31003. * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
  31004. `kernel.elf' instead of `grubof'.
  31005. 2006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
  31006. Add --with-platform to configure. Use pkglibdir instead of
  31007. pkgdatadir. This is reported by Roger Leigh.
  31008. * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
  31009. (host_vendor): Likewise.
  31010. (host_os): Likewise.
  31011. (pkgdatadir): Likewise.
  31012. (platform): New variable.
  31013. (pkglibdir): Likewise.
  31014. Use PKGLIBDIR instead of PKGDATADIR.
  31015. * util/i386/pc/grub-install.in (datadir): Removed.
  31016. (host_vendor): Likewise.
  31017. (host_os): Likewise.
  31018. (pkgdatadir): Likewise.
  31019. (platform): New variable.
  31020. (pkglibdir): Likewise.
  31021. Use PKGLIBDIR instead of PKGDATADIR.
  31022. * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
  31023. instead of GRUB_DATADIR.
  31024. (main): Likewise.
  31025. * util/i386/pc/grub-mkimage.c (usage): Likewise.
  31026. (main): Likewise.
  31027. * util/i386/efi/grub-mkimage.c (usage): Likewise.
  31028. (main): Likewise.
  31029. * configure.ac (--with-platform): New option.
  31030. Use PLATFORM instead of HOST_VENDOR to specify a platform.
  31031. * Makefile.in: Include a makefile based on PLATFORM instead of
  31032. HOST_VENDOR.
  31033. (pkgdatadir): Not appended by the machine type.
  31034. (pkglibdir): Appended by the machine type.
  31035. (host_vendor): Removed.
  31036. (platform): New variable.
  31037. (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
  31038. (install-local): Use PKGLIBDIR instead of PKGDATADIR.
  31039. (uninstall): Likewise.
  31040. 2006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
  31041. Use the environment context in the menu. Remove the commands
  31042. "default" and "timeout", and use variables instead.
  31043. * normal/menu.c: Include grub/env.h.
  31044. (print_entry): Cast TITLE to silence gcc.
  31045. (get_timeout): New function.
  31046. (set_timeout): Likewise.
  31047. (get_entry_number): Likewise.
  31048. (run_menu): Use a default entry, a fallback entry and a timeout
  31049. in the environment variables "default", "fallback" and
  31050. "timeout". Also, tweak the default entry if it is not within the
  31051. current menu entries.
  31052. (grub_menu_run): Use a fallback entry in the environment variable
  31053. "fallback".
  31054. * normal/main.c (read_config_file): Do not initialize
  31055. NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
  31056. NEWMENU->TIMEOUT.
  31057. (grub_normal_execute): Use a data slot to store the menu.
  31058. * include/grub/normal.h (struct grub_menu): Removed default_entry,
  31059. fallback_entry and timeout.
  31060. (struct grub_menu_list): Removed.
  31061. (grub_menu_list_t): Likewise.
  31062. (struct grub_context): Likewise.
  31063. (grub_context_t): Likewise.
  31064. (grub_context_get): Likewise.
  31065. (grub_context_get_current_menu): Likewise.
  31066. (grub_context_push_menu): Likewise.
  31067. (grub_context_pop_menu): Likewise.
  31068. (grub_default_init): Likewise.
  31069. (grub_default_fini): Likewise.
  31070. (grub_timeout_init): Likewise.
  31071. (grub_timeout_fini): Likewise.
  31072. * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
  31073. and timeout.mod.
  31074. (normal_mod_SOURCES): Removed normal/context.c.
  31075. * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
  31076. commands/default.c, commands/timeout.c and normal/context.c.
  31077. (normal_mod_SOURCES): Removed normal/context.c.
  31078. * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
  31079. commands/timeout.c and normal/context.c.
  31080. (normal_mod_SOURCES): Removed normal/context.c.
  31081. * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
  31082. commands/default.c, commands/timeout.c and normal/context.c.
  31083. (normal_mod_SOURCES): Removed normal/context.c.
  31084. * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
  31085. timeout.mod.
  31086. (default_mod_SOURCES): Removed.
  31087. (default_mod_CFLAGS): Likewise.
  31088. (default_mod_LDFLAGS): Likewise.
  31089. (timeout_mod_SOURCES): Removed.
  31090. (timeout_mod_CFLAGS): Likewise.
  31091. (timeout_mod_LDFLAGS): Likewise.
  31092. * DISTLIST: Removed commands/default.c, commands/timeout.c and
  31093. normal/context.c.
  31094. * commands/default.c: Removed.
  31095. * commands/timeout.c: Likewise.
  31096. * normal/context.c: Likewise.
  31097. 2006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
  31098. * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
  31099. 2006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
  31100. * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
  31101. "next" to "prev" for readability.
  31102. (struct grub_env_sorted_var): New struct.
  31103. (grub_env_context): Renamed to ...
  31104. (initial_context): ... this.
  31105. (grub_env_var_context): Renamed to ...
  31106. (current_context): ... this.
  31107. (grub_env_find): Look only at CURRENT_CONTEXT.
  31108. (grub_env_context_open): Rewritten to copy exported variables from
  31109. previous context.
  31110. (grub_env_context_close): Rewritten according to the new
  31111. scheme. Also, add an assertion to prevent the initial context from
  31112. removed.
  31113. (grub_env_insert): Removed the code for the sorted list.
  31114. (grub_env_remove): Likewise.
  31115. (grub_env_export): Simply mark the variable with
  31116. GRUB_ENV_VAR_GLOBAL.
  31117. (grub_env_set): A cosmetic change for naming consistency.
  31118. (grub_env_get): Likewise.
  31119. (grub_env_unset): Likewise.
  31120. (grub_env_iterate): Rewritten to sort variables within this
  31121. function.
  31122. (grub_register_variable_hook): Fixed for naming consistency. Call
  31123. grub_env_find again, only if NAME is not found at the first time.
  31124. (mangle_data_slot_name): New function.
  31125. (grub_env_set_data_slot): Likewise.
  31126. (grub_env_get_data_slot): Likewise.
  31127. (grub_env_unset_data_slot): Likewise.
  31128. * include/grub/env.h (grub_env_var_type): New enum.
  31129. (GRUB_ENV_VAR_LOCAL): New constant.
  31130. (GRUB_ENV_VAR_GLOBAL): Likewise.
  31131. (GRUB_ENV_VAR_DATA): Likewise.
  31132. (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
  31133. "type".
  31134. (grub_env_set): Replace VAR with NAME for consistency.
  31135. (grub_register_variable_hook): Likewise.
  31136. (grub_env_export): Specify the name of the argument.
  31137. (grub_env_set_data_slot): New prototype.
  31138. (grub_env_get_data_slot): Likewise.
  31139. (grub_env_unset_data_slot): Likewise.
  31140. 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
  31141. Extend the loader so that GRUB can accept a loader which comes
  31142. back to GRUB when a loaded image exits. Also, this change adds
  31143. support for a chainloader on EFI.
  31144. * term/efi/console.c: Include grub/misc.h.
  31145. (grub_console_checkkey): Display a scan code on the top for
  31146. debugging. This will be removed once the EFI port gets stable.
  31147. Correct the scan code mapping.
  31148. * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
  31149. allocate memory from larger regions, in order to reduce the number
  31150. of allocated regions. Otherwise, the MacOSX loader panics.
  31151. (filter_memory_map): Avoid less than 1MB for compatibility with
  31152. other loaders.
  31153. (add_memory_regions): Allocate from the tail of a region, if
  31154. possible, to avoid allocating a region near to 1MB, for the MacOSX
  31155. loader.
  31156. * kern/efi/init.c (grub_efi_set_prefix): Specify
  31157. GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
  31158. * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
  31159. argument IMAGE_HANDLE and specify it to get a loaded image.
  31160. (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
  31161. grub_efi_get_loaded_image.
  31162. (grub_efi_get_filename): Divide the length by the size of
  31163. grub_efi_char16_t.
  31164. (grub_efi_get_device_path): New function.
  31165. (grub_efi_print_device_path): Print End Device Path nodes. Divide
  31166. the length by the size of grub_efi_char16_t for a file path device
  31167. path node.
  31168. * kern/loader.c (grub_loader_noreturn): New variable.
  31169. (grub_loader_set): Accept a new argument NORETURN. Set
  31170. GRUB_LOADER_NORETURN to NORETURN.
  31171. All callers changed.
  31172. (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
  31173. grub_machine_fini.
  31174. * include/grub/efi/efi.h (grub_efi_get_device_path): New
  31175. prototype.
  31176. (grub_efi_get_loaded_image): Take an argument to specify an image
  31177. handle.
  31178. * include/grub/loader.h (grub_loader_set): Added one more argument
  31179. NORETURN.
  31180. * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
  31181. instead of grub_efi_open_protocol.
  31182. (grub_efidisk_get_device_name): Likewise.
  31183. (grub_efidisk_close): Print a newline.
  31184. (grub_efidisk_get_device_handle): Fixed to use
  31185. GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
  31186. GRUB_EFI_DEVICE_PATH_TYPE.
  31187. * disk/efi/efidisk.c (device_path_guid): Moved to ...
  31188. * kern/efi/efi.c (device_path_guid): ... here.
  31189. * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
  31190. chain.mod.
  31191. (kernel_mod_HEADERS): Added efi/disk.h.
  31192. (_chain_mod_SOURCES): New variable.
  31193. (_chain_mod_CFLAGS): Likewise.
  31194. (_chain_mod_LDFLAGS): Likewise.
  31195. (chain_mod_SOURCES): Likewise.
  31196. (chain_mod_CFLAGS): Likewise.
  31197. (chain_mod_LDFLAGS): Likewise.
  31198. * DISTLIST: Added include/grub/efi/chainloader.h,
  31199. loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
  31200. * include/grub/efi/chainloader.h: New file.
  31201. * loader/efi/chainloader.c: Likewise.
  31202. * loader/efi/chainloader_normal.c: Likewise.
  31203. 2006-04-30 Marco Gerards <marco@gnu.org>
  31204. * commands/configfile.c (grub_cmd_source): New function.
  31205. (GRUB_MOD_INIT): Register the commands `source' and `.'.
  31206. (GRUB_MOD_FINI): De-register the commands `source' and `.'.
  31207. 2006-04-30 Marco Gerards <marco@gnu.org>
  31208. * normal/execute.c (grub_script_execute_cmd): Change the return
  31209. type to `grub_err_t'. Correctly return the error.
  31210. (grub_script_execute_cmdline): In case a command line is not a
  31211. command or a function, try to interpret it as an assignment.
  31212. 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
  31213. * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
  31214. (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
  31215. skip a node whose name is obviously invalid as UTF-16,
  31216. i.e. contains a NUL character. Stop the iteration when the last
  31217. directory entry is found. Instead of using the return value of
  31218. grub_hfsplus_btree_iterate_node, store the value in RET and use
  31219. it, because the iterator can be stopped by the last directory
  31220. entry.
  31221. 2006-04-30 Marco Gerards <marco@gnu.org>
  31222. * include/grub/env.h (grub_env_export): New prototype. Reported
  31223. by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
  31224. 2006-04-30 Marco Gerards <marco@gnu.org>
  31225. * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
  31226. size of the extents in a catalog file record.
  31227. 2006-04-29 Marco Gerards <marco@gnu.org>
  31228. * commands/configfile.c (grub_cmd_configfile): Execute the
  31229. configfile within its own context.
  31230. * include/grub/env.h (grub_env_context_open): New prototype.
  31231. (grub_env_context_close): Likewise.
  31232. * kern/env.c (grub_env): Removed.
  31233. (grub_env_sorted): Likewise.
  31234. (grub_env_context): New variable.
  31235. (grub_env_var_context): Likewise.
  31236. (grub_env_find): Search both the active context and the global
  31237. context.
  31238. (grub_env_context_open): New function.
  31239. (grub_env_context_close): Likewise.
  31240. (grub_env_insert): Likewise.
  31241. (grub_env_remove): Likewise.
  31242. (grub_env_export): Likewise.
  31243. (grub_env_set): Changed to use helper functions to avoid code
  31244. duplication.
  31245. (grub_env_iterate): Rewritten so both the current context and the
  31246. global context are being used.
  31247. * normal/command.c (export_command): New function.
  31248. (grub_command_init): Register the `export' function.
  31249. 2006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
  31250. * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
  31251. explicitly to suppress gcc's warnings.
  31252. * fs/fat.c (grub_fat_find_dir): Likewise.
  31253. (grub_fat_label): Likewise.
  31254. * fs/xfs.c (grub_xfs_read_inode): Likewise.
  31255. (grub_xfs_mount): Likewise.
  31256. (grub_xfs_label): Likewise.
  31257. * fs/affs.c (grub_affs_mount): Likewise.
  31258. (grub_affs_label): Likewise.
  31259. (grub_affs_iterate_dir): Likewise.
  31260. * fs/sfs.c (grub_sfs_mount): Likewise.
  31261. (grub_sfs_iterate_dir): Likewise.
  31262. * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
  31263. * fs/hfs.c (grub_hfs_mount): Likewise.
  31264. (grub_hfs_cmp_catkeys): Likewise.
  31265. (grub_hfs_find_dir): Likewise.
  31266. (grub_hfs_dir): Likewise.
  31267. (grub_hfs_label): Likewise.
  31268. * fs/jfs.c (grub_jfs_mount): Likewise.
  31269. (grub_jfs_opendir): Likewise.
  31270. (grub_jfs_getent): Likewise.
  31271. (grub_jfs_lookup_symlink): Likewise.
  31272. (grub_jfs_label): Likewise.
  31273. * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
  31274. (grub_hfsplus_iterate_dir): Likewise.
  31275. (grub_hfsplus_btree_iterate_node): Made static.
  31276. * util/grub-emu.c (prefix): New variable.
  31277. (grub_machine_set_prefix): New function.
  31278. (main): Do not set the environment variable "prefix" here. Only
  31279. set PREFIX, which is used later by grub_machine_set_prefix.
  31280. * include/grub/video.h: Do not include grub/symbol.h.
  31281. (grub_video_register): Not exported. This symbol is not defined in
  31282. the kernel.
  31283. (grub_video_unregister): Likewise.
  31284. (grub_video_iterate): Likewise.
  31285. (grub_video_setup): Likewise.
  31286. (grub_video_restore): Likewise.
  31287. (grub_video_get_info): Likewise.
  31288. (grub_video_get_blit_format): Likewise.
  31289. (grub_video_set_palette): Likewise.
  31290. (grub_video_get_palette): Likewise.
  31291. (grub_video_set_viewport): Likewise.
  31292. (grub_video_get_viewport): Likewise.
  31293. (grub_video_map_color): Likewise.
  31294. (grub_video_map_rgb): Likewise.
  31295. (grub_video_map_rgba): Likewise.
  31296. (grub_video_fill_rect): Likewise.
  31297. (grub_video_blit_glyph): Likewise.
  31298. (grub_video_blit_bitmap): Likewise.
  31299. (grub_video_blit_render_target): Likewise.
  31300. (grub_video_scroll): Likewise.
  31301. (grub_video_swap_buffers): Likewise.
  31302. (grub_video_create_render_target): Likewise.
  31303. (grub_video_delete_render_target): Likewise.
  31304. (grub_video_set_active_render_target): Likewise.
  31305. * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
  31306. Undefined.
  31307. [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
  31308. * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
  31309. config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
  31310. (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
  31311. instead of $(srcdir)/genkernsyms.sh.
  31312. * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
  31313. config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
  31314. (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
  31315. instead of $(srcdir)/genkernsyms.sh.
  31316. * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
  31317. gensymlist.sh instead of $(srcdir)/gensymlist.sh.
  31318. (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
  31319. instead of $(srcdir)/genkernsyms.sh.
  31320. * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
  31321. gensymlist.sh instead of $(srcdir)/gensymlist.sh.
  31322. (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
  31323. instead of $(srcdir)/genkernsyms.sh.
  31324. * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
  31325. genkernsyms.sh.
  31326. * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
  31327. genkernsyms.sh.
  31328. (gensymlist.sh): New target.
  31329. (genkernsyms.sh): Likewise.
  31330. * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
  31331. genkernsyms.sh.in and gensymlist.sh.in.
  31332. * genkernsyms.sh: Removed.
  31333. * gensymlist.sh: Likewise.
  31334. * genkernsyms.sh.in: New file.
  31335. * gensymlist.sh.in: Likewise.
  31336. 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
  31337. * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
  31338. clobber "prefix", since we may have already set it manually.
  31339. 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
  31340. * kern/misc.c (abort): New alias for grub_abort.
  31341. 2006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
  31342. A new machine-specific function "grub_machine_set_prefix" is
  31343. defined. This is called after loading modules, so that a prefix
  31344. initialization can use modules. Also, this change adds an
  31345. intensive debugging feature for the memory manager via the
  31346. configure option "--enable-mm-debug".
  31347. * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
  31348. PART.LEN.
  31349. * kern/sparc64/ieee1275/init.c (abort): Removed.
  31350. (grub_stop): Likewise.
  31351. (grub_exit): New function.
  31352. (grub_set_prefix): Renamed to ...
  31353. (grub_machine_set_prefix): ... this.
  31354. (grub_machine_init): Do not call grub_set_prefix.
  31355. * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
  31356. (grub_machine_set_prefix): ... this.
  31357. (grub_machine_init): Do not call grub_set_prefix.
  31358. * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
  31359. (grub_machine_init): Do not set the prefix here.
  31360. * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
  31361. * kern/efi/init.c: Include grub/mm.h.
  31362. (grub_efi_set_prefix): New function.
  31363. * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
  31364. (grub_efi_get_filename): New function.
  31365. (grub_print_device_path): Renamed to ...
  31366. (grub_efi_print_device_path): ... this.
  31367. * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
  31368. [MM_DEBUG] (grub_realloc): Likewise.
  31369. [MM_DEBUG] (grub_free): Likewise.
  31370. [MM_DEBUG] (grub_memalign): Likewise.
  31371. [MM_DEBUG] (grub_mm_debug): New variable.
  31372. [MM_DEBUG] (grub_debug_malloc): New function.
  31373. [MM_DEBUG] (grub_debug_free): New function.
  31374. [MM_DEBUG] (grub_debug_realloc): New function.
  31375. [MM_DEBUG] (grub_debug_memalign): New function.
  31376. * kern/misc.c (grub_abort): Print a newline to distinguish
  31377. the message.
  31378. * kern/main.c (grub_main): Call grub_machine_set_prefix and
  31379. grub_set_root_dev after loading modules. This is necessary when
  31380. setting a prefix depends on modules.
  31381. * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
  31382. (grub_efi_print_device_path): ... this.
  31383. (grub_efi_get_filename): New prototype.
  31384. (grub_efi_set_prefix): Likewise.
  31385. * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
  31386. and grub/disk.h.
  31387. (grub_efidisk_get_device_handle): New prototype.
  31388. (grub_efidisk_get_device_name): Likewise.
  31389. * include/grub/mm.h: Include config.h.
  31390. (MM_DEBUG): Removed.
  31391. [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
  31392. [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
  31393. [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
  31394. [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
  31395. [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
  31396. [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
  31397. [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
  31398. [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
  31399. [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
  31400. * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
  31401. * disk/efi/efidisk.c: Include grub/partition.h.
  31402. (iterate_child_devices): New function.
  31403. (add_device): First, compare only last device path nodes, so that
  31404. devices are sorted by the types.
  31405. (grub_efidisk_get_device_handle): New function.
  31406. (grub_efidisk_get_device_name): Likewise.
  31407. * configure.ac (--enable-mm-debug): New option to enable the
  31408. memory manager debugging feature. This makes the binary much
  31409. bigger, so is disabled by default.
  31410. 2006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
  31411. Use grub_abort instead of grub_stop, and grub_exit must be
  31412. define in each architecture now. Also, this change adds support
  31413. for EFI disks.
  31414. * util/i386/pc/grub-probefs.c: Include grub/term.h.
  31415. (grub_getkey): New function.
  31416. (grub_term_get_current): Likewise.
  31417. * util/i386/pc/grub-setup.c: Include grub/term.h.
  31418. (grub_getkey): New function.
  31419. (grub_term_get_current): Likewise.
  31420. * util/misc.c (grub_stop): Renamed to ...
  31421. (grub_exit): ... this.
  31422. * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
  31423. (grub_exit): ... this.
  31424. (grub_machine_init): Use grub_abort instead of abort.
  31425. (grub_stop): Removed.
  31426. * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
  31427. abort.
  31428. * kern/i386/pc/startup.S (grub_exit): New function.
  31429. (cold_reboot): New label.
  31430. * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
  31431. (grub_efi_init): Call grub_efidisk_init.
  31432. (grub_efi_fini): Call grub_efidisk_fini.
  31433. * kern/efi/efi.c: Include grub/mm.h.
  31434. (grub_efi_console_control_guid): Renamed to ...
  31435. (console_control_guid): ... this.
  31436. (grub_efi_loaded_image_guid): Renamed to ...
  31437. (loaded_image_guid): ... this.
  31438. (grub_efi_locate_handle): New function.
  31439. (grub_efi_open_protocol): Likewise.
  31440. (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
  31441. GRUB_EFI_CONSOLE_CONTROL_GUID.
  31442. (grub_efi_exit): Removed.
  31443. (grub_stop): Likewise.
  31444. (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
  31445. (grub_exit): New function.
  31446. (grub_print_device_path): Likewise.
  31447. * kern/rescue.c (grub_rescue_cmd_exit): New function.
  31448. (grub_enter_rescue_mode): Register "exit".
  31449. * kern/misc.c (grub_real_dprintf): A cosmetic change.
  31450. (grub_abort): New function.
  31451. * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
  31452. * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
  31453. * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
  31454. * include/grub/efi/efi.h (grub_efi_exit): Removed.
  31455. (grub_print_device_path): New prototype.
  31456. (grub_efi_locate_handle): Likewise.
  31457. (grub_efi_open_protocol): Likewise.
  31458. * include/grub/efi/disk.h (grub_efidisk_fini): New file.
  31459. * disk/efi/efidisk.c: Likewise.
  31460. * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
  31461. * include/grub/efi/console_control.h
  31462. (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
  31463. * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
  31464. last 8 bytes as an array.
  31465. (GRUB_EFI_DISK_IO_GUID): New macro.
  31466. (GRUB_EFI_BLOCK_IO_GUID): Likewise.
  31467. (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
  31468. (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
  31469. grub_uint8_t.
  31470. (struct grub_efi_guid): Use an array to specify the last 8 bytes.
  31471. (struct grub_efi_device_path): Rename the member "sub_type" to
  31472. "subtype".
  31473. (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
  31474. (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
  31475. (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
  31476. (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
  31477. (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
  31478. (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
  31479. (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
  31480. (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
  31481. (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
  31482. (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
  31483. (struct grub_efi_pci_device_path): New structure.
  31484. (grub_efi_pci_device_path_t): New type.
  31485. (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
  31486. (struct grub_efi_pccard_device_path): New structure.
  31487. (grub_efi_pccard_device_path_t): New type.
  31488. (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
  31489. (struct grub_efi_memory_mapped_device_path): New structure.
  31490. (grub_efi_memory_mapped_device_path_t): New type.
  31491. (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
  31492. (struct grub_efi_vendor_device_path): New structure.
  31493. (grub_efi_vendor_device_path_t): New type.
  31494. (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
  31495. (struct grub_efi_controller_device_path): New structure.
  31496. (grub_efi_controller_device_path_t): New type.
  31497. (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
  31498. (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
  31499. (struct grub_efi_acpi_device_path): New structure.
  31500. (grub_efi_acpi_device_path_t): New type.
  31501. (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
  31502. (struct grub_efi_expanded_acpi_device_path): New structure.
  31503. (grub_efi_expanded_acpi_device_path_t): New type.
  31504. (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
  31505. (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
  31506. (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
  31507. (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
  31508. (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
  31509. (struct grub_efi_atapi_device_path): New structure.
  31510. (grub_efi_atapi_device_path_t): New type.
  31511. (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
  31512. (struct grub_efi_fibre_channel_device_path): New structure.
  31513. (grub_efi_fibre_channel_device_path_t): New type.
  31514. (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
  31515. (struct grub_efi_1394_device_path): New structure.
  31516. (grub_efi_1394_device_path_t): New type.
  31517. (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
  31518. (struct grub_efi_usb_device_path): New structure.
  31519. (grub_efi_usb_device_path_t): New type.
  31520. (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
  31521. (struct grub_efi_usb_class_device_path): New structure.
  31522. (grub_efi_usb_class_device_path_t): New type.
  31523. (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
  31524. (struct grub_efi_i2o_device_path): New structure.
  31525. (grub_efi_i2o_device_path_t): New type.
  31526. (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
  31527. (struct grub_efi_mac_address_device_path): New structure.
  31528. (grub_efi_mac_address_device_path_t): New type.
  31529. (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
  31530. (struct grub_efi_ipv4_device_path): New structure.
  31531. (grub_efi_ipv4_device_path_t): New type.
  31532. (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
  31533. (struct grub_efi_ipv6_device_path): New structure.
  31534. (grub_efi_ipv6_device_path_t): New type.
  31535. (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
  31536. (struct grub_efi_infiniband_device_path): New structure.
  31537. (grub_efi_infiniband_device_path_t): New type.
  31538. (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
  31539. (struct grub_efi_uart_device_path): New structure.
  31540. (grub_efi_uart_device_path_t): New type.
  31541. (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
  31542. (struct grub_efi_vendor_messaging_device_path): New structure.
  31543. (grub_efi_vendor_messaging_device_path_t): New type.
  31544. (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
  31545. (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
  31546. (struct grub_efi_hard_drive_device_path): New structure.
  31547. (grub_efi_hard_drive_device_path_t): New type.
  31548. (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
  31549. (struct grub_efi_cdrom_device_path): New structure.
  31550. (grub_efi_cdrom_device_path_t): New type.
  31551. (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
  31552. (struct grub_efi_vendor_media_device_path): New structure.
  31553. (grub_efi_vendor_media_device_path_t): New type.
  31554. (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
  31555. (struct grub_efi_file_path_device_path): New structure.
  31556. (grub_efi_file_path_device_path_t): New type.
  31557. (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
  31558. (struct grub_efi_protocol_device_path): New structure.
  31559. (grub_efi_protocol_device_path_t): New type.
  31560. (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
  31561. (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
  31562. (struct grub_efi_bios_device_path): New structure.
  31563. (grub_efi_bios_device_path_t): New type.
  31564. (struct grub_efi_disk_io): New structure.
  31565. (grub_efi_disk_io_t): New type.
  31566. (struct grub_efi_block_io_media): New structure.
  31567. (grub_efi_block_io_media_t): New type.
  31568. (struct grub_efi_block_io): New structure.
  31569. (grub_efi_block_io_t): New type.
  31570. * include/grub/misc.h (grub_stop): Removed.
  31571. (grub_exit): New prototype.
  31572. (grub_abort): Likewise.
  31573. * include/grub/disk.h (enum grub_disk_dev_id): Added
  31574. GRUB_DISK_DEVICE_EFIDISK_ID.
  31575. * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
  31576. disk/efi/efidisk.c.
  31577. (kernel_syms.lst): Remove the target if an error occurs.
  31578. 2006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
  31579. * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
  31580. as it was simply too buggy.
  31581. 2006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
  31582. * kern/misc.c (grub_lltoa): New function.
  31583. (grub_vsprintf): Added support for the long long suffix,
  31584. i.e. "ll".
  31585. 2006-04-20 Hollis Blanchard <hollis@penguinppc.org>
  31586. * Makefile.in (LDFLAGS): Add variable.
  31587. (LD): Remove variable.
  31588. * configure.ac: Add -m32 to LDFLAGS.
  31589. * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
  31590. * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
  31591. (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
  31592. (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
  31593. suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
  31594. variables.
  31595. * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
  31596. * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
  31597. * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
  31598. 2006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
  31599. * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
  31600. length for unknown glyph.
  31601. 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
  31602. Add support for pre-loaded modules into the EFI port.
  31603. * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
  31604. completely. Accept one more argument DIR. The caller has changed.
  31605. * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
  31606. * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
  31607. (grub_efi_loaded_image_guid): New variable.
  31608. (grub_efi_get_loaded_image): New function.
  31609. (grub_arch_modules_addr): Likewise.
  31610. * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
  31611. prototype.
  31612. * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
  31613. (struct grub_efi_loaded_image): New structure.
  31614. (grub_efi_loaded_image_t): New type.
  31615. 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
  31616. * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
  31617. size with GRUB_OS_AREA_SIZE as grub_size_t instead of
  31618. grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
  31619. 2006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
  31620. * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
  31621. 2006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
  31622. * DISTLIST: Added include/grub/efi/console.h,
  31623. include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
  31624. kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
  31625. * include/grub/efi/console.h: New file.
  31626. * include/grub/efi/time.h: Likewise.
  31627. * include/grub/i386/efi/kernel.h: Likewise.
  31628. * kern/efi/init.c: Likewise.
  31629. * kern/efi/mm.c: Likewise.
  31630. * term/efi/console.c: Likewise.
  31631. * kern/i386/efi/init.c: Do not include grub/machine/time.h.
  31632. (grub_stop): Removed.
  31633. (grub_get_rtc): Likewise.
  31634. (grub_machine_init): Simply call grub_efi_init.
  31635. (grub_machine_fini): Call grub_efi_fini.
  31636. * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
  31637. (grub_efi_output_string): Removed.
  31638. (grub_efi_stall): New function.
  31639. (grub_stop): Likewise.
  31640. (grub_get_rtc): Likewise.
  31641. * include/grub/efi/efi.h (grub_efi_output_string): Removed.
  31642. (grub_efi_stall): New prototype.
  31643. (grub_efi_allocate_pages): Likewise.
  31644. (grub_efi_free_pages): Likewise.
  31645. (grub_efi_get_memory_map): Likewise.
  31646. (grub_efi_mm_init): Likewise.
  31647. (grub_efi_mm_fini): Likewise.
  31648. (grub_efi_init): Likewise.
  31649. (grub_efi_fini): Likewise.
  31650. * include/grub/i386/efi/time.h: Do not include
  31651. grub/symbol.h. Include grub/efi/time.h.
  31652. (GRUB_TICKS_PER_SECOND): Removed.
  31653. (grub_get_rtc): Likewise.
  31654. * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
  31655. Added padding. The EFI spec is buggy.
  31656. (GRUB_EFI_BLACK): New macro.
  31657. (GRUB_EFI_BLUE): Likewise.
  31658. (GRUB_EFI_GREEN): Likewise.
  31659. (GRUB_EFI_CYAN): Likewise.
  31660. (GRUB_EFI_RED): Likewise.
  31661. (GRUB_EFI_MAGENTA): Likewise.
  31662. (GRUB_EFI_BROWN): Likewise.
  31663. (GRUB_EFI_LIGHTGRAY): Likewise.
  31664. (GRUB_EFI_BRIGHT): Likewise.
  31665. (GRUB_EFI_DARKGRAY): Likewise.
  31666. (GRUB_EFI_LIGHTBLUE): Likewise.
  31667. (GRUB_EFI_LIGHTGREEN): Likewise.
  31668. (GRUB_EFI_LIGHTCYAN): Likewise.
  31669. (GRUB_EFI_LIGHTRED): Likewise.
  31670. (GRUB_EFI_LIGHTMAGENTA): Likewise.
  31671. (GRUB_EFI_YELLOW): Likewise.
  31672. (GRUB_EFI_WHITE): Likewise.
  31673. (GRUB_EFI_BACKGROUND_BLACK): Likewise.
  31674. (GRUB_EFI_BACKGROUND_BLUE): Likewise.
  31675. (GRUB_EFI_BACKGROUND_GREEN): Likewise.
  31676. (GRUB_EFI_BACKGROUND_CYAN): Likewise.
  31677. (GRUB_EFI_BACKGROUND_RED): Likewise.
  31678. (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
  31679. (GRUB_EFI_BACKGROUND_BROWN): Likewise.
  31680. (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
  31681. (GRUB_EFI_TEXT_ATTR): Likewise.
  31682. * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
  31683. kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
  31684. (kernel_mod_HEADERS): Added efi/time.h.
  31685. 2006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
  31686. * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
  31687. include/grub/efi/api.h, include/grub/efi/console_control.h,
  31688. include/grub/efi/efi.h, include/grub/efi/pe32.h,
  31689. include/grub/i386/efi/time.h, kern/efi/efi.c,
  31690. kern/i386/efi/init.c, kern/i386/efi/startup.S,
  31691. and util/i386/efi/grub-mkimage.c.
  31692. * Makefile.in (RMKFILES): Added i386-efi.rmk.
  31693. * genmk.rb (PModule#rule): Do not export symbols if
  31694. #{prefix}_EXPORTS is set to "no".
  31695. * conf/i386-efi.mk: New file.
  31696. * conf/i386-efi.rmk: Likewise.
  31697. * include/grub/efi/api.h: Likewise.
  31698. * include/grub/efi/console_control.h: Likewise.
  31699. * include/grub/efi/efi.h: Likewise.
  31700. * include/grub/efi/pe32.h: Likewise.
  31701. * include/grub/i386/efi/time.h: Likewise.
  31702. * kern/efi/efi.c: Likewise.
  31703. * kern/i386/efi/init.c: Likewise.
  31704. * kern/i386/efi/startup.S: Likewise.
  31705. * util/i386/efi/grub-mkimage.c: Likewise.
  31706. 2006-04-17 Marco Gerards <marco@gnu.org>
  31707. * include/grub/script.h: Include <grub/parser.h> and
  31708. "grub_script.tab.h".
  31709. (struct grub_lexer_param): New struct.
  31710. (struct grub_parser_param): Likewise.
  31711. (grub_script_create_arglist): Pass the state in an argument.
  31712. (grub_script_add_arglist): Likewise.
  31713. (grub_script_create_cmdline): Likewise.
  31714. (grub_script_create_cmdblock): Likewise.
  31715. (grub_script_create_cmdif): Likewise.
  31716. (grub_script_create_cmdmenu): Likewise.
  31717. (grub_script_add_cmd): Likewise.
  31718. (grub_script_arg_add): Likewise.
  31719. (grub_script_lexer_ref): Likewise.
  31720. (grub_script_lexer_deref): Likewise.
  31721. (grub_script_lexer_record_start): Likewise.
  31722. (grub_script_lexer_record_stop): Likewise.
  31723. (grub_script_mem_record): Likewise.
  31724. (grub_script_mem_record_stop): Likewise.
  31725. (grub_script_malloc): Likewise.
  31726. (grub_script_yylex): Likewise.
  31727. (grub_script_yyparse): Likewise.
  31728. (grub_script_yyerror): Likewise.
  31729. (grub_script_yylex): Likewise.
  31730. (grub_script_lexer_init): Return the state.
  31731. * normal/lexer.c (grub_script_lexer_state): Removed variable.
  31732. (grub_script_lexer_done): Likewise.
  31733. (grub_script_lexer_getline): Likewise.
  31734. (grub_script_lexer_refs): Likewise.
  31735. (script): Likewise.
  31736. (newscript): Likewise.
  31737. (record): Likewise.
  31738. (recording): Likewise.
  31739. (recordpos): Likewise.
  31740. (recordlen): Likewise.
  31741. (grub_script_lexer_init): Return the state instead of setting
  31742. global variables.
  31743. (grub_script_lexer_ref): Use the newly added argument for state
  31744. instead of globals.
  31745. (grub_script_lexer_deref): Likewise.
  31746. (grub_script_lexer_record_start): Likewise.
  31747. (grub_script_lexer_record_stop): Likewise.
  31748. (recordchar): Likewise.
  31749. (nextchar): Likewise.
  31750. (grub_script_yylex2): Likewise.
  31751. (grub_script_yylex): Likewise.
  31752. (grub_script_yyerror): Likewise.
  31753. * normal/parser.y (func_mem): Removed variable.
  31754. (menu_entry): Likewise.
  31755. (err): Likewise.
  31756. (%lex-param): New parser option.
  31757. (%parse-param): Likewise.
  31758. (script): Always return the AST.
  31759. (argument): Pass the state around.
  31760. (arguments): Likewise.
  31761. (grubcmd): Likewise.
  31762. (commands): Likewise.
  31763. (function): Likewise.
  31764. (menuentry): Likewise.
  31765. (if_statement): Likewise.
  31766. (if): Likewise.
  31767. * normal/script.c (grub_script_memused): Removed variable.
  31768. (grub_script_parsed): Likewise.
  31769. (grub_script_malloc): Added a state argument. Use that instead of
  31770. global variables.
  31771. (grub_script_mem_record): Likewise.
  31772. (grub_script_mem_record_stop): Likewise.
  31773. (grub_script_arg_add): Likewise.
  31774. (grub_script_add_arglist): Likewise.
  31775. (grub_script_create_cmdline): Likewise.
  31776. (grub_script_create_cmdif): Likewise.
  31777. (grub_script_create_cmdmenu): Likewise.
  31778. (grub_script_add_cmd): Likewise.
  31779. (grub_script_parse): Setup the state before calling the parser.
  31780. 2006-04-16 Marco Gerards <marco@gnu.org>
  31781. * normal/command.c (grub_command_init): Remove the title command.
  31782. * normal/lexer.c (grub_script_yylex): Renamed from this...
  31783. (grub_script_yylex2): ... to this.
  31784. (grub_script_yylex): New function. Temporary
  31785. introduced to filter some tokens.
  31786. (grub_script_yyerror): Print a newline.
  31787. * normal/main.c (read_config_file): Output information about the
  31788. lines that contain errors. Wait for a key after all lines have
  31789. been processed. Don't return an empty menu.
  31790. * normal/parser.y (func_mem): Don't initialize.
  31791. (menu_entry): Likewise.
  31792. (err): New variable.
  31793. (script): Don't return anything when an error was encountered.
  31794. (ws, returns): Removed rules.
  31795. (argument): Disabled concatenated variable support.
  31796. (arguments): Remove explicit separators.
  31797. (grubcmd): Likewise.
  31798. (function): Likewise.
  31799. (menuentry): Likewise.
  31800. (if): Likewise.
  31801. (commands): Likewise. Add error handling.
  31802. * normal/script.c (grub_script_create_cmdline): If
  31803. `grub_script_parsed' is 0, assume the parser encountered an error.
  31804. 2006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
  31805. * configure.ac: Add support for EFI. Fix the typo
  31806. BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
  31807. 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
  31808. * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
  31809. foreign multibyte characters should be shown correctly.
  31810. 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
  31811. * normal/main.c (grub_normal_menu_addentry): Fixed menu size
  31812. calculation.
  31813. (read_config_file): Made it to close file before returning.
  31814. 2006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
  31815. * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
  31816. include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
  31817. video/i386/pc/vbefill.c.
  31818. * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
  31819. video/i386/pc/vbefill.c.
  31820. * include/grub/video.h (grub_video_blit_format): New enum.
  31821. (grub_video_mode_info): Added new member blit_format.
  31822. (grub_video_get_blit_format): New function prototype.
  31823. * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
  31824. function prototype.
  31825. (grub_video_vbe_map_rgb): Likewise.
  31826. (grub_video_vbe_unmap_color): Likewise.
  31827. * include/grub/i386/pc/vbeblit.h: New file.
  31828. * include/grub/i386/pc/vbefill.h: New file.
  31829. * video/video.c (grub_video_get_blit_format): New function.
  31830. (grub_video_vbe_get_video_ptr): Re-declared as non-static.
  31831. (grub_video_vbe_map_rgb): Likewise.
  31832. (grub_video_vbe_unmap_color): Likewise.
  31833. * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
  31834. optimized fills.
  31835. (grub_video_vbe_blit_render_target): Changed to use more optimized
  31836. blits.
  31837. (grub_video_vbe_setup): Added detection for optimized settings.
  31838. (grub_video_vbe_create_render_target): Likewise.
  31839. * video/i386/pc/vbeblit.c: New file.
  31840. * video/i386/pc/vbefill.c: New file.
  31841. 2006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
  31842. * font/manager.c (grub_font_get_glyph): Removed font fixup from
  31843. here...
  31844. * util/unifont2pff.rb: ... and moved it to here. Improved argument
  31845. parsing to support both hex and dec ranges. If filename was missing
  31846. show usage information.
  31847. 2006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
  31848. * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
  31849. video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
  31850. * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
  31851. gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
  31852. (video_mod_SOURCES): Added.
  31853. (video_mod_CFLAGS): Likewise.
  31854. (video_mod_LDFLAGS): Likewise.
  31855. (gfxterm_mod_SOURCES): Likewise.
  31856. (gfxterm_mod_CFLAGS): Likewise.
  31857. (gfxterm_mod_LDFLAGS): Likewise.
  31858. (videotest_mod_SOURCES): Likewise.
  31859. (videotest_mod_CFLAGS): Likewise.
  31860. (videotest_mod_LDFLAGS): Likewise.
  31861. (vesafb_mod_SOURCES): Removed.
  31862. (vesafb_mod_CFLAGS): Likewise.
  31863. (vesafb_mod_LDFLAGS): Likewise.
  31864. (vga_mod_SOURCES): Likewise.
  31865. (vga_mod_CFLAGS): Likewise.
  31866. (vga_mod_LDFLAGS): Likewise.
  31867. * commands/videotest.c: New file.
  31868. * font/manager.c (fill_with_default_glyph): Modified to use
  31869. grub_font_glyph.
  31870. (grub_font_get_glyph): Likewise.
  31871. (fontmanager): Renamed from this...
  31872. (font_manager): ... to this.
  31873. * include/grub/font.h (grub_font_glyph): Added new structure.
  31874. (grub_font_get_glyph): Modified to use grub_font_glyph.
  31875. * include/grub/misc.h (grub_abs): Added as inline function.
  31876. * include/grub/video.h: New file.
  31877. * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
  31878. (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
  31879. (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
  31880. (grub_vbe_get_controller_info): Renamed from this...
  31881. (grub_vbe_bios_get_controller_info): ... to this.
  31882. (grub_vbe_get_mode_info): Renamed from this...
  31883. (grub_vbe_bios_get_mode_info): ... to this.
  31884. (grub_vbe_set_mode): Renamed from this...
  31885. (grub_vbe_bios_set_mode): ... to this.
  31886. (grub_vbe_get_mode): Renamed from this...
  31887. (grub_vbe_bios_get_mode): ... to this.
  31888. (grub_vbe_set_memory_window): Renamed from this...
  31889. (grub_vbe_bios_set_memory_window): ... to this.
  31890. (grub_vbe_get_memory_window): Renamed from this...
  31891. (grub_vbe_bios_get_memory_window): ... to this.
  31892. (grub_vbe_set_scanline_length): Renamed from this...
  31893. (grub_vbe_set_scanline_length): ... to this.
  31894. (grub_vbe_get_scanline_length): Renamed from this...
  31895. (grub_vbe_bios_get_scanline_length): ... to this.
  31896. (grub_vbe_set_display_start): Renamed from this...
  31897. (grub_vbe_bios_set_display_start): ... to this.
  31898. (grub_vbe_get_display_start): Renamed from this...
  31899. (grub_vbe_bios_get_display_start): ... to this.
  31900. (grub_vbe_set_palette_data): Renamed from this...
  31901. (grub_vbe_bios_set_palette_data): ... to this.
  31902. (grub_vbe_set_pixel_rgb): Removed.
  31903. (grub_vbe_set_pixel_index): Likewise.
  31904. * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
  31905. from this...
  31906. (grub_vbe_bios_get_controller_info): ... to this.
  31907. (grub_vbe_get_mode_info): Renamed from this...
  31908. (grub_vbe_bios_get_mode_info): ... to this.
  31909. (grub_vbe_set_mode): Renamed from this...
  31910. (grub_vbe_bios_set_mode): ... to this.
  31911. (grub_vbe_get_mode): Renamed from this...
  31912. (grub_vbe_bios_get_mode): ... to this.
  31913. (grub_vbe_set_memory_window): Renamed from this...
  31914. (grub_vbe_bios_set_memory_window): ... to this.
  31915. (grub_vbe_get_memory_window): Renamed from this...
  31916. (grub_vbe_bios_get_memory_window): ... to this.
  31917. (grub_vbe_set_scanline_length): Renamed from this...
  31918. (grub_vbe_set_scanline_length): ... to this.
  31919. (grub_vbe_get_scanline_length): Renamed from this...
  31920. (grub_vbe_bios_get_scanline_length): ... to this.
  31921. (grub_vbe_set_display_start): Renamed from this...
  31922. (grub_vbe_bios_set_display_start): ... to this.
  31923. (grub_vbe_get_display_start): Renamed from this...
  31924. (grub_vbe_bios_get_display_start): ... to this.
  31925. (grub_vbe_set_palette_data): Renamed from this...
  31926. (grub_vbe_bios_set_palette_data): ... to this.
  31927. (grub_vbe_bios_get_controller_info): Fixed problem with registers
  31928. getting corrupted after calling it. Added more pushes and pops.
  31929. (grub_vbe_bios_set_mode): Likewise.
  31930. (grub_vbe_bios_get_mode): Likewise.
  31931. (grub_vbe_bios_get_memory_window): Likewise.
  31932. (grub_vbe_bios_set_scanline_length): Likewise.
  31933. (grub_vbe_bios_get_scanline_length): Likewise.
  31934. (grub_vbe_bios_get_display_start): Likewise.
  31935. (grub_vbe_bios_set_palette_data): Likewise.
  31936. * normal/cmdline.c (cl_set_pos): Refresh the screen.
  31937. (cl_insert): Likewise.
  31938. (cl_delete): Likewise.
  31939. * term/gfxterm.c: New file.
  31940. * term/i386/pc/vesafb.c: Removed file.
  31941. * video/video.c: New file.
  31942. * video/i386/pc/vbe.c (real2pm): Added new function.
  31943. (grub_video_vbe_draw_pixel): Likewise.
  31944. (grub_video_vbe_get_video_ptr): Likewise.
  31945. (grub_video_vbe_get_pixel): Likewise
  31946. (grub_video_vbe_init): Likewise.
  31947. (grub_video_vbe_fini): Likewise.
  31948. (grub_video_vbe_setup): Likewise.
  31949. (grub_video_vbe_get_info): Likewise.
  31950. (grub_video_vbe_set_palette): Likewise.
  31951. (grub_video_vbe_get_palette): Likewise.
  31952. (grub_video_vbe_set_viewport): Likewise.
  31953. (grub_video_vbe_get_viewport): Likewise.
  31954. (grub_video_vbe_map_color): Likewise.
  31955. (grub_video_vbe_map_rgb): Likewise.
  31956. (grub_video_vbe_map_rgba): Likewise.
  31957. (grub_video_vbe_unmap_color): Likewise.
  31958. (grub_video_vbe_fill_rect): Likewise.
  31959. (grub_video_vbe_blit_glyph): Likewise.
  31960. (grub_video_vbe_blit_bitmap): Likewise.
  31961. (grub_video_vbe_blit_render_target): Likewise.
  31962. (grub_video_vbe_scroll): Likewise.
  31963. (grub_video_vbe_swap_buffers): Likewise.
  31964. (grub_video_vbe_create_render_target): Likewise.
  31965. (grub_video_vbe_delete_render_target): Likewise.
  31966. (grub_video_vbe_set_active_render_target): Likewise.
  31967. (grub_vbe_set_pixel_rgb): Remove function.
  31968. (grub_vbe_set_pixel_index): Likewise.
  31969. (index_color_mode): Remove static variable.
  31970. (active_mode): Likewise.
  31971. (framebuffer): Likewise.
  31972. (bytes_per_scan_line): Likewise.
  31973. (grub_video_vbe_adapter): Added new static variable.
  31974. (framebuffer): Likewise.
  31975. (render_target): Likewise.
  31976. (initial_mode): Likewise.
  31977. (mode_in_use): Likewise.
  31978. (mode_list): Likewise.
  31979. 2006-03-10 Marco Gerards <marco@gnu.org>
  31980. * configure.ac (AC_INIT): Bumped to 1.93.
  31981. * DISTLIST: Added `include/grub/hfs.h'.
  31982. 2006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
  31983. * boot/i386/pc/boot.S (general_error): Before looping, try INT
  31984. 18H, which might help the BIOS falling back to next boot media.
  31985. 2006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
  31986. * util/i386/pc/grub-install.in: Escape a backslash. Reported by
  31987. Poe Chen <poe.poechen@gmail.com>.
  31988. 2006-01-17 Marco Gerards <marco@gnu.org>
  31989. * include/grub/normal.h: Include <grub/script.h>.
  31990. (grub_command_list): Removed struct.
  31991. (grub_command_list_t): Removed type.
  31992. (grub_menu_entry): Remove members `num' and `command_list'. Add
  31993. members `commands' and `sourcecode'.
  31994. * include/grub/script.h: Add inclusion guards.
  31995. (grub_script_cmd_menuentry): New struct.
  31996. (grub_script_execute_menuentry): New prototype.
  31997. (grub_script_lexer_record_start): Likewise.
  31998. (grub_script_lexer_record_stop): Likewise.
  31999. * normal/execute.c (grub_script_execute_menuentry): New function.
  32000. * normal/lexer.c (record, recording, recordpos, recordlen): New
  32001. variables.
  32002. (grub_script_lexer_record_start): New function.
  32003. (grub_script_lexer_record_stop): Likewise.
  32004. (recordchar): Likewise.
  32005. (nextchar): Likewise.
  32006. (grub_script_yylex): Use `nextchar' to fetch new characters. Use
  32007. 2048 as the buffer size. Add the tokens `menuentry' and `@'.
  32008. * normal/main.c: Include <grub/parser.h> and <grub/script.h>
  32009. (current_menu): New variable.
  32010. (free_menu): Mainly rewritten.
  32011. (grub_normal_menu_addentry): New function.
  32012. (read_config_file): Rewritten.
  32013. * normal/menu.c (run_menu_entry): Mainly rewritten.
  32014. * normal/menu_entry.c (make_screen): Rewritten the code to insert
  32015. the menu entry.
  32016. (run): Mainly rewritten.
  32017. * normal/parser.y (menu_entry): New variable.
  32018. (GRUB_PARSER_TOKEN_MENUENTRY): New token.
  32019. (menuentry): New rule.
  32020. (command): Add `menuentry'.
  32021. (if_statement): Allow additional returns before `fi'.
  32022. * normal/script.c (grub_script_create_cmdmenu): New function.
  32023. 2006-01-03 Marco Gerards <marco@gnu.org>
  32024. * INSTALL: GNU Bison is required.
  32025. * configure.ac: Rewritten the test to detect Bison.
  32026. * Makefile.in (YACC): New variable. Reported by Xun Sun
  32027. <xun.sun.cn@gmail.com>.
  32028. 2006-01-03 Marco Gerards <marco@gnu.org>
  32029. * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
  32030. the HFS+ filesystem to filesystem blocks.
  32031. (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
  32032. GCC warning is silenced.
  32033. 2006-01-03 Marco Gerards <marco@gnu.org>
  32034. * partmap/apple.c (apple_partition_map_iterate): Convert the data
  32035. read from disk from big endian to host byte order.
  32036. 2006-01-03 Hollis Blanchard <hollis@penguinppc.org>
  32037. * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
  32038. documentation.
  32039. (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
  32040. (grub_hfs_mount): Grammar fix in error. Make sure this is not an
  32041. embedded HFS+ filesystem.
  32042. (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
  32043. (grub_hfs_sblock): Move from here...
  32044. * include/grub/hfs.h: To here... New file.
  32045. * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
  32046. documentation.
  32047. (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
  32048. New macros.
  32049. (grub_hfsplus_volheader): Change type of member `magic' to
  32050. `grub_uint16_t'.
  32051. (grub_hfsplus_data): Add new member `embedded_offset'.
  32052. (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
  32053. returned block.
  32054. (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
  32055. Calculate the offset.
  32056. 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
  32057. * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
  32058. Removed.
  32059. (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
  32060. 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
  32061. * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
  32062. ENV->NAME is NULL after allocating ENV->VALUE.
  32063. 2005-12-25 Marco Gerards <marco@gnu.org>
  32064. * kern/env.c (grub_env_set): Rewritten the error handling code.
  32065. 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
  32066. * geninit.sh: Made more robust, and more portable.
  32067. 2005-12-25 Marco Gerards <marco@gnu.org>
  32068. Add support for Apple HFS+ filesystems.
  32069. * fs/hfsplus.c: New file.
  32070. * DISTLIST: Added `fs/hfsplus.c'.
  32071. * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
  32072. (hfsplus_mod_SOURCES): New variable.
  32073. (hfsplus_mod_CFLAGS): Likewise.
  32074. (hfsplus_mod_LDFLAGS): Likewise.
  32075. * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
  32076. (grub_setup_SOURCES): Likewise.
  32077. (grub_mkdevicemap_SOURCES): Likewise.
  32078. (grub_emu_SOURCES): Likewise.
  32079. * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
  32080. * fs/fshelp.c (grub_fshelp_log2blksize): New function.
  32081. * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
  32082. 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
  32083. * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
  32084. commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
  32085. include/grub/parser.h, include/grub/script.h, kern/parser.c,
  32086. kern/sparc64/cache.S, normal/execute.c, normal/function.c,
  32087. normal/lexer.c, normal/parser.y, normal/script.c, and
  32088. partmap/gpt.c.
  32089. Removed kern/sparc64/cache.c.
  32090. * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
  32091. grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
  32092. grub_emu_init.c.
  32093. * configure.ac (AC_INIT): Bumped to 1.92.
  32094. 2005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
  32095. * kern/err.c (grub_error_push): Added new function to support error
  32096. stacks.
  32097. (grub_error_pop): Likewise.
  32098. (grub_error_stack_items): New local variable to support error stacks.
  32099. (grub_error_stack_pos): Likewise.
  32100. (grub_error_stack_assert): Likewise.
  32101. (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
  32102. stack depth.
  32103. (grub_print_error): Added support to print errors from error stack.
  32104. * include/grub/err.h (grub_error_push): Added function prototype.
  32105. (grub_error_pop): Likewise.
  32106. 2005-12-09 Hollis Blanchard <hollis@penguinppc.org>
  32107. * configure.ac: Accept `powerpc64' as host_cpu.
  32108. (amd64): Rename to `biarch32'.
  32109. * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
  32110. non-cacheline-aligned addresses.
  32111. * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
  32112. (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
  32113. if `size' is non-zero.
  32114. 2005-12-03 Marco Gerards <mgerards@xs4all.nl>
  32115. * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
  32116. and `cd' to make sure the filename is not prefixed with a
  32117. directory name.
  32118. (pkgdata_MODULES): Add `gpt.mod'.
  32119. (gpt_mod_SOURCES): New variable.
  32120. (gpt_mod_CFLAGS): Likewise.
  32121. (gpt_mod_LDFLAGS): Likewise.
  32122. * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
  32123. * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
  32124. New macro.
  32125. * partmap/gpt.c: New file.
  32126. * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
  32127. GPT partition map is detected.
  32128. 2005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
  32129. * commands/i386/pc/play.c: New file.
  32130. * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
  32131. (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
  32132. macros.
  32133. 2005-11-27 Marco Gerards <mgerards@xs4all.nl>
  32134. * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
  32135. ((unused))' to silence gcc warning.
  32136. 2005-11-26 Hollis Blanchard <hollis@penguinppc.org>
  32137. * configure.ac: Correct `AC_PROG_YACC' test.
  32138. 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
  32139. * util/powerpc/ieee1275/grub-install.in: Run the mount point
  32140. check before installing files.
  32141. 2005-11-22 Mike Small <smallm@panix.com>
  32142. * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
  32143. number regex so multidigit numbers are recognized correctly.
  32144. 2005-11-22 Mike Small <smallm@panix.com>
  32145. * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
  32146. debugging message before attempting to claim memory.
  32147. (grub_rescue_cmd_initrd): Add a claim debugging message and try
  32148. multiple addresses in case of failure.
  32149. 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
  32150. * term/tparm.c (get_space): Remove empty `if' statement.
  32151. * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
  32152. * kern/parser.c (check_varstate): Rename `state' to 's'.
  32153. 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
  32154. * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
  32155. variable definitions to the beginning of each function. Sort stack
  32156. variables by size.
  32157. (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
  32158. `buf' argument to `char *'.
  32159. 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
  32160. * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
  32161. (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
  32162. minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
  32163. hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
  32164. help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
  32165. sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
  32166. configfile.mod, search.mod, gzio.mod and test.mod.
  32167. (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
  32168. (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
  32169. (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
  32170. (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
  32171. (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
  32172. (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
  32173. (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
  32174. (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
  32175. (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
  32176. (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
  32177. (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
  32178. (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
  32179. (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
  32180. (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
  32181. (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
  32182. (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
  32183. (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
  32184. (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
  32185. (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
  32186. (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
  32187. (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
  32188. (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
  32189. (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
  32190. * conf/common.mk (grub_modules_init.lst): Use `find' instead of
  32191. `grep --include'.
  32192. (pkgdata_MODULES): Add test.mod.
  32193. 2005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
  32194. * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
  32195. appending to variables with "+=".
  32196. (PModule): Use full pathname to generate *.lst filenames.
  32197. * Makefile.in: Fixed list rules moved from genmk.rb.
  32198. (.DELETE_ON_ERROR): New special target.
  32199. (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
  32200. * conf/i386-pc.rmk: Include conf/common.mk.
  32201. (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
  32202. minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
  32203. hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
  32204. help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
  32205. sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
  32206. configfile.mod, search.mod, gzio.mod and test.mod.
  32207. (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
  32208. (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
  32209. (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
  32210. (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
  32211. (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
  32212. (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
  32213. (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
  32214. (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
  32215. (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
  32216. (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
  32217. (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
  32218. (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
  32219. (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
  32220. (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
  32221. (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
  32222. (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
  32223. (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
  32224. (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
  32225. (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
  32226. (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
  32227. (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
  32228. (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
  32229. (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
  32230. here...
  32231. * conf/common.rmk: ... to here. New file.
  32232. * conf/common.mk: New file.
  32233. 2005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
  32234. * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
  32235. (grub_script.tab.c): ... here.
  32236. * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
  32237. (grub_script.tab.c): ... here.
  32238. * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
  32239. (grub_script.tab.c): ... here.
  32240. * normal/command.c (grub_command_find): Fixed a memory leak of
  32241. MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
  32242. 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
  32243. * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
  32244. "@" which marks the start of a comment on ARM.
  32245. (VARIABLE): Likewise.
  32246. 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
  32247. Add support for Linux/ADFS partition tables.
  32248. * partmap/acorn.c: New file.
  32249. * include/grub/acorn_filecore.h: Likewise.
  32250. * DISTLIST: Added `partmap/acorn.c' and
  32251. `include/grub/acorn_filecore.h'.
  32252. * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
  32253. `partmap/acorn.c'.
  32254. (pkgdata_MODULES): Add `acorn.mod'.
  32255. (acorn_mod_SOURCES): New variable.
  32256. (acorn_mod_CFLAGS): Likewise.
  32257. * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
  32258. `partmap/acorn.c'.
  32259. (pkgdata_MODULES): Add `acorn.mod'.
  32260. (acorn_mod_SOURCES): New variable.
  32261. (acorn_mod_CFLAGS): Likewise.
  32262. * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
  32263. (pkgdata_MODULES): Add `acorn.mod'.
  32264. (acorn_mod_SOURCES): New variable.
  32265. (acorn_mod_CFLAGS): Likewise.
  32266. (acorn_mod_LDFLAGS): Likewise.
  32267. * include/types.h (grub_disk_addr_t): New typedef.
  32268. 2005-11-13 Marco Gerards <mgerards@xs4all.nl>
  32269. * geninit.sh: New file.
  32270. * geninitheader.sh: Likewise.
  32271. * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
  32272. * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
  32273. * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
  32274. * commands/configfile.c (grub_configfile_init)
  32275. (grub_configfile_fini): Likewise.
  32276. * commands/default.c (grub_default_init, grub_default_fini):
  32277. Likewise.
  32278. * commands/help.c (grub_help_init, grub_help_fini): Likewise.
  32279. * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
  32280. * commands/search.c (grub_search_init, grub_search_fini): Likewise.
  32281. * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
  32282. Likewise.
  32283. * commands/test.c (grub_test_init, grub_test_fini): Likewise.
  32284. * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
  32285. Likewise.
  32286. * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
  32287. * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
  32288. Likewise.
  32289. * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
  32290. Likewise.
  32291. * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
  32292. Likewise.
  32293. * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
  32294. * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
  32295. * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
  32296. * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
  32297. * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
  32298. * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
  32299. * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
  32300. * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
  32301. * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
  32302. * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
  32303. * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
  32304. * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
  32305. * partmap/amiga.c (grub_amiga_partition_map_init)
  32306. (grub_amiga_partition_map_fini): Likewise.
  32307. * partmap/apple.c (grub_apple_partition_map_init)
  32308. (grub_apple_partition_map_fini): Likewise.
  32309. * partmap/pc.c (grub_pc_partition_map_init)
  32310. (grub_pc_partition_map_fini): Likewise.
  32311. * partmap/sun.c (grub_sun_partition_map_init,
  32312. grub_sun_partition_map_fini): Likewise.
  32313. * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
  32314. Likewise.
  32315. * util/grub-emu.c: Include <grub_modules_init.h>.
  32316. (main): Don't initialize and de-initialize any modules directly,
  32317. use `grub_init_all' and `grub_fini_all' instead.
  32318. * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
  32319. `grub_vesafb_mod_init'.
  32320. (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
  32321. all users.
  32322. * term/i386/pc/vga.c (grub_vga_init): Renamed to
  32323. `grub_vga_mod_init'. Updated all users.
  32324. (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
  32325. * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
  32326. (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
  32327. rules.
  32328. * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
  32329. Generate a function to initialize the module in utilities.
  32330. Updated all callers.
  32331. (GRUB_MOD_FINI): Add argument `name'. Generate a function to
  32332. initialize the module in utilities. Updated all callers.
  32333. 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
  32334. * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
  32335. escape sequence and a literal ^L to clear the screen.
  32336. * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
  32337. when returning from Open Firmware.
  32338. 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
  32339. * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
  32340. (grub_ofconsole_height): Likewise.
  32341. (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
  32342. manually insert a '\n'.
  32343. (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
  32344. `grub_ofconsole_height'. Return early if these are already set.
  32345. 2005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
  32346. * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
  32347. `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
  32348. `normal/execute.c', `normal/lexer.c', `io/gzio.c',
  32349. `kern/parser.c', `grub_script.tab.c', `normal/function.c'
  32350. and `normal/script.c'.
  32351. (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
  32352. `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
  32353. (test_mod_SOURCES): New variable.
  32354. (test_mod_CFLAGS): Likewise.
  32355. (test_mod_LDFLAGS): Likewise.
  32356. (pkgdata_MODULES): Add `test.mod'.
  32357. (grub_script.tab.c): New rule.
  32358. (grub_script.tab.h): Likewise.
  32359. 2005-11-07 Marco Gerards <mgerards@xs4all.nl>
  32360. * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
  32361. `commands/test.c', `normal/execute.c', `normal/lexer.c',
  32362. `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
  32363. (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
  32364. `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
  32365. (test_mod_SOURCES): New variable.
  32366. (test_mod_CFLAGS): Likewise.
  32367. (pkgdata_MODULES): Add `test.mod'.
  32368. (grub_script.tab.c): New rule.
  32369. (grub_script.tab.h): Likewise.
  32370. 2005-11-06 Marco Gerards <mgerards@xs4all.nl>
  32371. Add initial scripting support.
  32372. * commands/test.c: New file.
  32373. * include/grub/script.h: Likewise.
  32374. * normal/execute.c: Likewise.
  32375. * normal/function.c: Likewise.
  32376. * normal/lexer.c: Likewise.
  32377. * normal/parser.y: Likewise.
  32378. * normal/script.c: Likewise.
  32379. * configure.ac: Add `AC_PROG_YACC' test.
  32380. * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
  32381. `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
  32382. `normal/function.c' and `normal/script.c'.
  32383. (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
  32384. `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
  32385. (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
  32386. variables.
  32387. (pkgdata_MODULES): Add `test.mod'.
  32388. (grub_script.tab.c): New rule.
  32389. (grub_script.tab.h): Likewise.
  32390. * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
  32391. * include/grub/normal.h (grub_test_init): New prototype.
  32392. (grub_test_fini): Likewise.
  32393. * normal/command.c: Include <grub/script.h>.
  32394. (grub_command_execute): Rewritten.
  32395. * util/grub-emu.c (main): Call `grub_test_init' and
  32396. `grub_test_fini'.
  32397. 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
  32398. * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
  32399. to 0.
  32400. * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
  32401. there are no pending characters.
  32402. 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
  32403. * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
  32404. `grub_strndup' to drop device arguments. Replace unnecessary
  32405. `grub_strndup' with `grub_strdup'.
  32406. 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
  32407. * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
  32408. `debug' environment variable has been set.
  32409. 2005-11-02 Hollis Blanchard <hollis@penguinppc.org>
  32410. * Makefile.in (install-local): Use $(DATA).
  32411. (uninstall): Likewise.
  32412. * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
  32413. (sbin_UTILITIES): ... to here.
  32414. (sbin_SCRIPTS): New variable.
  32415. (grub_install_SOURCES): New variable.
  32416. * util/powerpc/ieee1275/grub-install.in: New file.
  32417. * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
  32418. variable.
  32419. (add_segments): Call `grub_util_get_path'.
  32420. 2005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
  32421. From Timothy Baldwin:
  32422. * commands/ls.c (grub_ls_list_files): Close FILE with
  32423. grub_file_close.
  32424. * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
  32425. 2005-10-24 Marco Gerards <mgerards@xs4all.nl>
  32426. * include/grub/parser.h: New file.
  32427. * kern/parser.c: Likewise.
  32428. * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
  32429. (grub_setup_SOURCES): Likewise.
  32430. (grub_probefs_SOURCES): Likewise.
  32431. (grub_emu_SOURCES): Likewise.
  32432. (kernel_img_HEADERS): Add `parser.h'.
  32433. * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
  32434. (grub_emu_SOURCES): Add `kern/parser.c'.
  32435. (grubof_SOURCES): Likewise.
  32436. * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
  32437. (grubof_SOURCES): Add `kern/parser.c'.
  32438. * include/grub/misc.h (grub_split_cmdline): Removed prototype.
  32439. * kern/misc.c (grub_split_cmdline): Removed function.
  32440. * kern/rescue.c: Include <grub/parser.h>.
  32441. (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
  32442. of `grub_split_cmdline'.
  32443. * normal/command.c: Include <grub/parser.h>.
  32444. (grub_command_execute): Use `grub_parser_split_cmdline' instead
  32445. of `grub_split_cmdline'.
  32446. * normal/completion.c: Include <grub/parser.h>.
  32447. (cmdline_state): New variable.
  32448. (iterate_dir): End the filename with a quote depending on the
  32449. command line state.
  32450. (get_state): new function.
  32451. (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
  32452. split the arguments and determine the current argument. When the
  32453. argument string is not quoted, escape all spaces.
  32454. 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
  32455. * normal/sparc64/setjmp.S: New file.
  32456. 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
  32457. * include/grub/sparc64/libgcc.h: New file.
  32458. * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
  32459. (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
  32460. normal/sparc64/setjmp.c.
  32461. 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
  32462. * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
  32463. * kern/sparc64/cache.S: New file.
  32464. * kern/sparc64/cache.c: Removed.
  32465. * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
  32466. (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
  32467. -mtune=ultrasparc.
  32468. (COMMON_LDFLAGS): Add -melf64_sparc.
  32469. (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
  32470. (grubof_SOURCES): Use cache.S instead of cache.c.
  32471. (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
  32472. --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
  32473. (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
  32474. commented though.
  32475. (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
  32476. (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
  32477. (linux_mod_CFLAGS): Commented out.
  32478. (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
  32479. out because module isn't built.
  32480. (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
  32481. (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
  32482. (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
  32483. (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
  32484. (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
  32485. (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
  32486. (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
  32487. (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
  32488. (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
  32489. (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
  32490. (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
  32491. (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
  32492. (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
  32493. (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
  32494. 2005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
  32495. * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
  32496. grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
  32497. longer, because HFS should not be used on PC.
  32498. 2005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
  32499. * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
  32500. consistently within the loop.
  32501. 2005-10-15 Marco Gerards <mgerards@xs4all.nl>
  32502. * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
  32503. directory can not be read.
  32504. 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
  32505. * configure.ac (AC_INIT): Increase the version number to 1.91.
  32506. * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
  32507. include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
  32508. term/i386/pc/serial.c.
  32509. 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
  32510. * kern/file.c (grub_file_seek): Seeking to an offset equal to a
  32511. file size must be permitted.
  32512. * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
  32513. between %ah and %al.
  32514. 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
  32515. * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
  32516. grub_uint64_t.
  32517. Call the hook with a NUL-terminated filename.
  32518. (grub_xfs_mount): Use grub_be_to_cpu32 instead of
  32519. grub_cpu_to_be32.
  32520. * kern/term.c (cursor_state): New variable.
  32521. (grub_term_set_current): Reset the cursor state on a new
  32522. terminal.
  32523. (grub_setcursor): Rewritten to use CURSOR_STATE.
  32524. (grub_getcursor): New function.
  32525. * include/grub/term.h (grub_getcursor): New prototype.
  32526. * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
  32527. integers on ARM. Reported by Timothy Baldwin
  32528. <T.E.Baldwin99@members.leeds.ac.uk>.
  32529. 2005-10-11 Marco Gerards <mgerards@xs4all.nl>
  32530. * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
  32531. allocated.
  32532. (grub_sfs_dir): Likewise.
  32533. 2005-10-09 Marco Gerards <mgerards@xs4all.nl>
  32534. Add support for the SFS filesystem.
  32535. * fs/sfs.c: New file.
  32536. * DISTLIST: Added `fs/sfs.c'.
  32537. * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
  32538. (grub_probefs_SOURCES): Likewise.
  32539. (grub_emu_SOURCES): Likewise.
  32540. (pkgdata_MODULES): Add `sfs.mod'.
  32541. (sfs_mod_SOURCES): New variable.
  32542. (sfs_mod_CFLAGS): Likewise.
  32543. (sfs_mod_LDFLAGS): Likewise.
  32544. * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
  32545. (pkgdata_MODULES): Add `sfs.mod'.
  32546. (sfs_mod_SOURCES): New variable.
  32547. (sfs_mod_CFLAGS): Likewise.
  32548. * util/grub-emu.c (main): Call `grub_sfs_init' and
  32549. `grub_sfs_fini'.
  32550. * include/grub/fs.h (grub_sfs_init): New prototype.
  32551. (grub_sfs_fini): Likewise.
  32552. 2005-10-07 Marco Gerards <mgerards@xs4all.nl>
  32553. Add support for the AFFS filesystem.
  32554. * fs/affs.c: New file.
  32555. * DISTLIST: Added `fs/affs.c'.
  32556. * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
  32557. (grub_probefs_SOURCES): Likewise.
  32558. (grub_emu_SOURCES): Likewise.
  32559. (pkgdata_MODULES): Add `affs.mod'.
  32560. (affs_mod_SOURCES): New variable.
  32561. (affs_mod_CFLAGS): Likewise.
  32562. (affs_mod_LDFLAGS): Likewise.
  32563. * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
  32564. (pkgdata_MODULES): Add `affs.mod'.
  32565. (affs_mod_SOURCES): New variable.
  32566. (affs_mod_CFLAGS): Likewise.
  32567. * util/grub-emu.c (main): Call `grub_affs_init' and
  32568. `grub_affs_fini'.
  32569. * include/grub/fs.h (grub_affs_init): New prototype.
  32570. (grub_affs_fini): Likewise.
  32571. 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
  32572. * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
  32573. 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
  32574. * configure.ac: Accept `x86_64' as host_cpu. In that case add
  32575. `-m32' to CFLAGS.
  32576. * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
  32577. linking.
  32578. * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
  32579. (COMMON_LDFLAGS): New variable.
  32580. (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
  32581. (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
  32582. (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
  32583. (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
  32584. (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
  32585. (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
  32586. (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
  32587. (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
  32588. (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
  32589. (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
  32590. (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
  32591. (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
  32592. (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
  32593. (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
  32594. (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
  32595. variables.
  32596. (normal_mod_ASFLAGS): Add `-m32'.
  32597. * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
  32598. (grub_host_size_t, grub_host_ssize_t): New types.
  32599. (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
  32600. dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
  32601. `GRUB_HOST_SIZEOF_VOID_P'.
  32602. * include/grub/kernel.h (struct grub_module_header): Type of
  32603. member offset changed to `grub_host_off_t'. Type of member size
  32604. changed to `grub_host_size_t'.
  32605. (struct grub_module_info): Type of member offset changed to
  32606. `grub_host_off_t'. Type of member size changed to
  32607. `grub_host_size_t'.
  32608. 2005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
  32609. Make GRUB's kernel compliant to Multiboot Specification.
  32610. * kern/i386/pc/startup.S (multiboot_header): New label.
  32611. (multiboot_entry): Likewise.
  32612. (multiboot_trampoline): Likewise.
  32613. * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
  32614. Increased to 0x4A0.
  32615. * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
  32616. put parentheses after a question mark.
  32617. [!GRUB_UTIL] (my_mod): New variable.
  32618. * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
  32619. 2005-09-28 Marco Gerards <mgerards@xs4all.nl>
  32620. Adds support for the XFS filesystem. Btrees are not supported
  32621. yet.
  32622. * fs/xfs.c: New file.
  32623. * DISTLIST: Added `fs/xfs.c'.
  32624. * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
  32625. (grub_probefs_SOURCES): Likewise.
  32626. (grub_emu_SOURCES): Likewise.
  32627. (pkgdata_MODULES): Add `xfs.mod'.
  32628. (xfs_mod_SOURCES): New variable.
  32629. (xfs_mod_CFLAGS): Likewise.
  32630. * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
  32631. (pkgdata_MODULES): Add `xfs.mod'.
  32632. (xfs_mod_SOURCES): New variable.
  32633. (xfs_mod_CFLAGS): Likewise.
  32634. * util/grub-emu.c (main): Call `grub_xfs_init' and
  32635. `grub_xfs_fini'.
  32636. * include/grub/fs.h (grub_xfs_init): New prototype.
  32637. (grub_xfs_fini): Likewise.
  32638. 2005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
  32639. * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
  32640. color modes, allow greater than 16 colors to be configured as
  32641. a default palette.
  32642. 2005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
  32643. * normal/completion.c (complete_arguments): Add the qualifier
  32644. const into OPTIONS.
  32645. From Omniflux <omniflux+lists@omniflux.com>:
  32646. * include/grub/terminfo.h: New file.
  32647. * include/grub/tparm.h: Likewise.
  32648. * include/grub/i386/pc/serial.h: Likewise.
  32649. * term/terminfo.c: Likewise.
  32650. * term/tparm.c: Likewise.
  32651. * term/i386/pc/serial.c: Likewise.
  32652. * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
  32653. serial.mod.
  32654. (terminfo_mod_SOURCES): New variable.
  32655. (terminfo_mod_CFLAGS): Likewise.
  32656. (serial_mod_SOURCES): Likewise.
  32657. (serial_mod_CFLAGS): Likewise.
  32658. 2005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
  32659. * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
  32660. boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
  32661. and kern/powerpc/ieee1275/cmain.c, respectively.
  32662. * boot/powerpc/ieee1275/crt0.S: Moved to ...
  32663. * kern/powerpc/ieee1275/crt0.S: ... here.
  32664. * boot/powerpc/ieee1275/cmain.c: Moved to ...
  32665. * kern/powerpc/ieee1275/cmain.c: ... here.
  32666. * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
  32667. kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
  32668. instead of boot/powerpc/ieee1275/crt0.S and
  32669. boot/powerpc/ieee1275/cmain.c, respectively.
  32670. * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
  32671. sectors. It was not used anyway.
  32672. 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
  32673. * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
  32674. `unused parameter' warning.
  32675. 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
  32676. * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
  32677. function.
  32678. (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
  32679. getcharwidth.
  32680. 2005-08-28 Marco Gerards <metgerards@student.han.nl>
  32681. * include/grub/normal.h (enum grub_completion_type): Added
  32682. `GRUB_COMPLETION_TYPE_ARGUMENT'.
  32683. * normal/cmdline.c (print_completion): Handle
  32684. the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
  32685. * normal/menu_entry.c (store_completion): Likewise.
  32686. * normal/completion.c (complete_arguments): New function.
  32687. (grub_normal_do_completion): Call `complete_arguments' when the
  32688. current words start with a dash.
  32689. 2005-08-27 Marco Gerards <metgerards@student.han.nl>
  32690. * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
  32691. `gzio.mod' instead of `io.mod').
  32692. 2005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
  32693. * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
  32694. (DISTDIRS): Added io and video.
  32695. Rewrite the search routine to make an output consistently.
  32696. * DISTLIST: Added conf/sparc64-ieee1275.mk,
  32697. conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
  32698. include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
  32699. io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
  32700. kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
  32701. util/powerpc/ieee1275/misc.c.
  32702. * include/grub/gzio.h: New file.
  32703. * io/gzio.c: Likewise.
  32704. * kern/file.c (grub_file_close): Call grub_device_close only if
  32705. FILE->DEVICE is not NULL.
  32706. * include/grub/mm.h [!NULL] (NULL): New macro.
  32707. * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
  32708. * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
  32709. (pkgdata_MODULES): Added gzio.mod.
  32710. (gzio_mod_SOURCES): New variable.
  32711. (gzio_mod_CFLAGS): Likewise.
  32712. * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
  32713. (pkgdata_MODULES): Added gzio.mod.
  32714. (gzio_mod_SOURCES): New variable.
  32715. (gzio_mod_CFLAGS): Likewise.
  32716. * commands/cat.c: Include grub/gzio.h.
  32717. (grub_cmd_cat): Use grub_gzfile_open instead of
  32718. grub_file_open.
  32719. * commands/cmp.c: Include grub/gzio.h.
  32720. (grub_cmd_cmp): Use grub_gzfile_open instead of
  32721. grub_file_open.
  32722. * loader/i386/pc/multiboot.c: Include grub/gzio.h.
  32723. (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
  32724. grub_file_open.
  32725. (grub_rescue_cmd_module): Likewise.
  32726. 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
  32727. * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
  32728. kern/sparc64/ieee1275/init.c because it contains _start.
  32729. * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
  32730. 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
  32731. * configure.ac: Add support for sparc64 host with ieee1275
  32732. firmware.
  32733. * configure: Generated from configure.ac.
  32734. * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
  32735. instead of int.
  32736. (grub_ofdisk_read): Likewise.
  32737. (grub_ofdisk_open): Use %p to print pointer values, and cast the
  32738. pointers as (void *) to remove a warning.
  32739. (grub_ofdisk_close): Likewise.
  32740. (grub_ofdisk_read): Likewise.
  32741. * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
  32742. returns, so make it return void to remove a warning.
  32743. * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
  32744. Corresponding prototype change.
  32745. * kern/mm.c (grub_mm_init_region): Use %p to print pointer
  32746. values, and cast the pointers as (void *) to remove a warning.
  32747. (grub_mm_dump): Likewise.
  32748. * conf/sparc64-ieee1275.mk: New file.
  32749. * conf/sparc64-ieee1275.rmk: Likewise.
  32750. * include/grub/sparc64/setjmp.h: Likewise.
  32751. * include/grub/sparc64/types.h: Likewise.
  32752. * include/grub/sparc64/ieee1275/console.h: Likewise.
  32753. * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
  32754. * include/grub/sparc64/ieee1275/kernel.h: Likewise.
  32755. * include/grub/sparc64/ieee1275/time.h: Likewise.
  32756. * kern/sparc64/cache.c: Likewise.
  32757. * kern/sparc64/dl.c: Likewise.
  32758. * kern/sparc64/ieee1275/init.c: Likewise.
  32759. * kern/sparc64/ieee1275/openfw.c: Likewise.
  32760. 2005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
  32761. * util/console.c (grub_ncurses_putchar): If C is greater than
  32762. 0x7f, set C to a question mark.
  32763. (grub_ncurses_getcharwidth): New function.
  32764. (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
  32765. getcharwidth.
  32766. * normal/menu.c (print_entry): Made aware of Unicode. First,
  32767. convert TITLE to UCS-4, and predict the cursor position by
  32768. grub_getcharwidth.
  32769. * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
  32770. const to SRC.
  32771. * kern/misc.c (grub_utf16_to_utf8): Likewise.
  32772. 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
  32773. * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
  32774. the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
  32775. grub_strcat.
  32776. * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
  32777. file by the option BOOT_IMAGE. Use grub_stpcpy instead of
  32778. grub_strcpy and grub_strlen. Take it into account that a space
  32779. character is inserted as a delimiter.
  32780. 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
  32781. * partmap/pc.c (pc_partition_map_iterate): Include the value of an
  32782. invalid magic in the error.
  32783. * commands/search.c: New file.
  32784. * util/grub-emu.c (main): Call grub_search_init and
  32785. grub_search_fini.
  32786. * kern/rescue.c (grub_rescue_print_disks): Removed.
  32787. (grub_rescue_print_devices): New function.
  32788. (grub_rescue_cmd_ls): Use grub_device_iterate with
  32789. grub_rescue_print_devices instead of grub_disk_dev_iterate with
  32790. grub_rescue_print_disks.
  32791. * kern/partition.c (grub_partition_iterate): Return the result of
  32792. PARTMAP->ITERATE instead of GRUB_ERRNO.
  32793. * kern/device.c: Include grub/partition.h.
  32794. (grub_device_iterate): New function.
  32795. * include/grub/partition.h (grub_partition_iterate): Return int
  32796. instead of grub_err_t.
  32797. * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
  32798. prototype.
  32799. [GRUB_UTIL] (grub_search_fini): Likewise.
  32800. * include/grub/device.h (grub_device_iterate): New prototype.
  32801. * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
  32802. commands/search.c.
  32803. (pkgdata_MODULES): Added search.mod.
  32804. (search_mod_SOURCES): New variable.
  32805. (search_mod_CFLAGS): Likewise.
  32806. * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
  32807. (pkgdata_MODULES): Added search.mod.
  32808. (search_mod_SOURCES): New variable.
  32809. (search_mod_CFLAGS): Likewise.
  32810. * commands/ls.c (grub_ls_list_disks): Renamed to ...
  32811. (grub_ls_list_devices): ... this, and use grub_device_iterate.
  32812. All callers changed.
  32813. * DISTLIST: Added commands/search.c.
  32814. 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
  32815. * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
  32816. conversion.
  32817. (grub_getcharwidth): New function.
  32818. * kern/misc.c (grub_utf8_to_ucs4): New function.
  32819. * include/grub/term.h (struct grub_term): Added a new member
  32820. "getcharwidth".
  32821. (grub_getcharwidth): New prototype.
  32822. * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
  32823. * term/i386/pc/console.c (map_char): New function. Segregated from
  32824. grub_console_putchar.
  32825. (grub_console_putchar): Use map_char.
  32826. (grub_console_getcharwidth): New function.
  32827. (grub_console_term): Specified grub_console_getcharwidth as
  32828. getcharwidth.
  32829. * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
  32830. (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
  32831. * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
  32832. GRUB_ERRNO.
  32833. (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
  32834. on grub_strtoul completely.
  32835. (write_char): Declare local variables in the beginning of the
  32836. function.
  32837. (grub_vesafb_getcharwidth): New function.
  32838. (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
  32839. getcharwidth.
  32840. 2005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
  32841. * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
  32842. commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
  32843. commands/i386/pc/vbetest.c.
  32844. * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
  32845. call grub_vbe_get_controller_info again, because the returned
  32846. information is volatile.
  32847. (grub_vbe_set_video_mode): Mostly rewritten.
  32848. (grub_vbe_get_video_mode): Use grub_vbe_probe and use
  32849. grub_vbe_status_t correctly.
  32850. (grub_vbe_get_video_mode_info): Likewise.
  32851. (grub_vbe_set_pixel_rgb): Use a switch statement rather than
  32852. several if statements.
  32853. * commands/i386/pc/vbe_list_modes.c: Renamed to ...
  32854. * commands/i386/pc/vbeinfo.c: ... this.
  32855. * commands/i386/pc/vbe_test.c: Renamed to ...
  32856. * commands/i386/pc/vbetest.c: ... this.
  32857. * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
  32858. ...
  32859. (grub_cmd_vbeinfo): ... this. Save video modes before
  32860. iterating. Skip a video mode, if it is not available, not enough
  32861. information is given or it is monochrome. Show the memory
  32862. model. Leave the interpretation of MODEVAR to grub_strtoul
  32863. completely.
  32864. (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
  32865. (GRUB_MOD_FINI): Likewise.
  32866. * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
  32867. (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
  32868. grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
  32869. duplicated grub_env_get. Leave the interpretation of MODEVAR to
  32870. grub_strtoul completely.
  32871. (real2pm): Removed.
  32872. (GRUB_MOD_INIT): Rename vbe_test to vbetest.
  32873. (GRUB_MOD_FINI): Likewise.
  32874. * normal/misc.c: Include grub/mm.h.
  32875. * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
  32876. vbe_list_modes with vbetest.mod and vbeinfo.mod.
  32877. (vbe_list_modes_mod_SOURCES): Removed.
  32878. (vbe_list_modes_mod_CFLAGS): Likewise.
  32879. (vbe_test_mod_SOURCES): Likewise.
  32880. (vbe_test_mod_CFLAGS): Likewise.
  32881. (vbeinfo_mod_SOURCES): New variable.
  32882. (vbeinfo_mod_CFLAGS): Likewise.
  32883. (vbetest_mod_SOURCES): Likewise.
  32884. (vbetest_mod_CFLAGS): Likewise.
  32885. 2005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
  32886. * normal/misc.c: New file.
  32887. * DISTLIST: Added normal/misc.c.
  32888. * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
  32889. DISK to HOOK. Call HOOK with DISK.
  32890. * partmap/apple.c (apple_partition_map_iterate): Likewise.
  32891. * partmap/pc.c (pc_partition_map_iterate): Likewise.
  32892. * partmap/sun.c (sun_partition_map_iterate): Likewise.
  32893. * normal/menu_entry.c (struct screen): Added a new member
  32894. "completion_shown".
  32895. (completion_buffer): New global variable.
  32896. (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
  32897. (store_completion): New function.
  32898. (complete): Likewise.
  32899. (clear_completions): Likewise.
  32900. (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
  32901. call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
  32902. a tab, call complete.
  32903. * normal/completion.c (disk_dev): Removed.
  32904. (print_simple_completion): Likewise.
  32905. (print_partition_completion): Likewise.
  32906. (print_func): New global variable.
  32907. (add_completion): Do not take the arguments WHAT or PRINT any
  32908. longer. Added a new argument TYPE. Instead of printing directly,
  32909. call PRINT_FUNC if not NULL.
  32910. All callers changed.
  32911. (complete_device): Use a local variable DEV instead of
  32912. DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
  32913. (grub_normal_do_completion): Take a new argument HOOK. Do not
  32914. initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
  32915. empty string, return NULL instead.
  32916. All callers changed.
  32917. * normal/cmdline.c (print_completion): New function.
  32918. * kern/partition.c (grub_partition_iterate): Add an argument DISK
  32919. to HOOK.
  32920. All callers changed.
  32921. * kern/disk.c (grub_print_partinfo): Removed.
  32922. * include/grub/partition.h (struct grub_partition_map): Add a new
  32923. argument DISK into HOOK of ITERATE.
  32924. (grub_partition_iterate): Add a new argument DISK to HOOK.
  32925. * include/grub/normal.h (enum grub_completion_type): New enum.
  32926. (grub_completion_type_t): New type.
  32927. (GRUB_COMPLETION_TYPE_COMMAND): New constant.
  32928. (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
  32929. (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
  32930. (GRUB_COMPLETION_TYPE_FILE): Likewise.
  32931. (grub_normal_do_completion): Added a new argument HOOK.
  32932. (grub_normal_print_device_info): New prototype.
  32933. * include/grub/disk.h (grub_print_partinfo): Removed.
  32934. * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
  32935. (normal_mod_SOURCES): Likewise.
  32936. * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
  32937. (normal_mod_SOURCES): Likewise.
  32938. * commands/ls.c (grub_ls_list_disks): Use
  32939. grub_normal_print_device_info instead of grub_print_partinfo. Free
  32940. PNAME.
  32941. (grub_ls_list_files): Use grub_normal_print_device_info instead of
  32942. duplicating the code.
  32943. 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
  32944. * commands/i386/pc/vbe_list_modes.c: Update source formatting to
  32945. follow GCS more precisely.
  32946. * commands/i386/pc/vbe_test.c: Likewise.
  32947. * include/grub/i386/pc/vbe.h: Likewise.
  32948. * term/i386/pc/vesafb.c: Likewise.
  32949. * video/i386/pc/vbe.c: Likewise.
  32950. 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
  32951. * DISTLIST: Added term/i386/pc/vesafb.c
  32952. DISTLIST: Added video/i386/pc/vbe.c
  32953. DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
  32954. DISTLIST: Added commands/i386/pc/vbe_test.c.
  32955. * commands/i386/pc/vbe_list_modes.c: New file.
  32956. * commands/i386/pc/vbe_test.c: Likewise.
  32957. * term/i386/pc/vesafb.c: Likewise.
  32958. * video/i386/pc/vbe.c: Likewise.
  32959. * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
  32960. (grub_vbe_probe) Added prototype.
  32961. (grub_vbe_set_video_mode) Likewise.
  32962. (grub_vbe_get_video_mode) Likewise.
  32963. (grub_vbe_get_video_mode_info) Likewise.
  32964. (grub_vbe_set_pixel_rgb) Likewise.
  32965. (grub_vbe_set_pixel_index) Likewise.
  32966. * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
  32967. (pkgdata_MODULES): Added vesafb.mod.
  32968. (pkgdata_MODULES): Added vbe_list_modes.mod.
  32969. (pkgdata_MODULES): Added vbe_test.mod.
  32970. (vbe_mod_SOURCES): Added.
  32971. (vbe_mod_CFLAGS): Likewise.
  32972. (vesafb_mod_SOURCES): Likewise.
  32973. (vesafb_mod_CFLAGS): Likewise.
  32974. (vbe_list_modes_mod_SOURCES): Likewise.
  32975. (vbe_list_modes_mod_CFLAGS): Likewise.
  32976. (vbe_test_mod_SOURCES): Likewise.
  32977. (vbe_test_mod_CFLAGS): Likewise.
  32978. 2005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
  32979. * normal/command.c (grub_command_execute): If INTERACTIVE is
  32980. false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
  32981. CMDLINE. Disable the pager if INTERACTIVE is true.
  32982. All callers are changed.
  32983. * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
  32984. before reading a config file.
  32985. * normal/main.c (read_config_file): Even if a command is not
  32986. found, register it if it is within an entry.
  32987. * util/grub-emu.c: Include sys/types.h and unistd.h.
  32988. (options): Added --hold.
  32989. (struct arguments): Added a new member "hold".
  32990. (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
  32991. missing.
  32992. (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
  32993. cleared by a debugger, if it is not zero.
  32994. * include/grub/normal.h (grub_command_execute): Add an argument
  32995. INTERACTIVE.
  32996. 2005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
  32997. * DISTLIST: Added include/grub/i386/pc/vbe.h.
  32998. 2005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
  32999. * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
  33000. program with another one, because the old one didn't detect a bug
  33001. in gcc-3.4. Always use regparm 2, because the new test is still
  33002. not enough for gcc-4.0. Someone must investigate a simple test
  33003. case which detects a bug in gcc-4.0.
  33004. 2005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
  33005. * DISTLIST: Added normal/completion.c.
  33006. * normal/completion.c: New file.
  33007. * term/i386/pc/console.c (grub_console_getwh): New function.
  33008. (grub_console_term): Assign grub_console_getwh to getwh.
  33009. * normal/cmdline.c (grub_tab_complete): Removed. Now the same
  33010. function is defined in normal/completion.c as
  33011. grub_normal_do_completion.
  33012. (grub_cmdline_get): Use grub_normal_do_completion instead of
  33013. grub_tab_complete.
  33014. * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
  33015. returns non-zero, otherwise return 0.
  33016. (grub_partition_iterate): First, probe the partition map. Then,
  33017. call ITERATE only for this partition map.
  33018. * kern/misc.c (grub_strncmp): Rewritten.
  33019. * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
  33020. returns non-zero. Otherwise return 0.
  33021. * include/grub/partition.h (grub_partition_map_iterate): Return
  33022. int instead of void.
  33023. * include/grub/normal.h (grub_normal_do_completion): New prototype.
  33024. * include/grub/misc.h (grub_strncmp): Change the type of N to
  33025. grub_size_t.
  33026. * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
  33027. of void.
  33028. * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
  33029. unsigned explicitly before comparing it with I.
  33030. * kern/main.c (grub_env_write_root): Add the attribute unused into
  33031. VAR.
  33032. * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
  33033. normal/completion.c.
  33034. (normal_mod_SOURCES): Likewise.
  33035. * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
  33036. (normal_mod_SOURCES): Likewise.
  33037. * normal/command.c (grub_iterate_commands): If ITERATE returns
  33038. non-zero, return one immediately.
  33039. 2005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
  33040. * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
  33041. * kern/i386/pc/startup.S: Updated Global Descriptor table's
  33042. descriptions.
  33043. (grub_vbe_get_controller_info): New function.
  33044. (grub_vbe_get_mode_info): Likewise.
  33045. (grub_vbe_set_mode): Likewise.
  33046. (grub_vbe_get_mode): Likewise.
  33047. (grub_vbe_set_memory_window): Likewise.
  33048. (grub_vbe_get_memory_window): Likewise.
  33049. (grub_vbe_set_scanline_length): Likewise.
  33050. (grub_vbe_get_scanline_length): Likewise.
  33051. (grub_vbe_set_display_start): Likewise.
  33052. (grub_vbe_get_display_start): Likewise.
  33053. (grub_vbe_set_palette_data): Likewise.
  33054. * include/grub/i386/pc/vbe.h: New file.
  33055. 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
  33056. * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
  33057. kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
  33058. * DISTLIST: Likewise.
  33059. * kern/ieee1275/of.c: Moved to ...
  33060. * kern/ieee1275/ieee1275.c: ... here.
  33061. 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
  33062. * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
  33063. (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
  33064. Pass 0 as `end' parameter to grub_strtoul().
  33065. 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
  33066. * include/grub/powerpc/ieee1275/console.h: Do not include
  33067. <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
  33068. ifdef.
  33069. (grub_console_cur_color): Remove i386-specific prototype.
  33070. (grub_console_real_putchar): Likewise.
  33071. (grub_console_checkkey): Likewise.
  33072. (grub_console_getkey): Likewise.
  33073. (grub_console_getxy): Likewise.
  33074. (grub_console_gotoxy): Likewise.
  33075. (grub_console_cls): Likewise.
  33076. (grub_console_setcursor): Likewise.
  33077. * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
  33078. Include <grub/machine/console.h>.
  33079. * term/ieee1275/ofconsole.c: Likewise.
  33080. 2005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
  33081. * Makefile.in (LIBLZO): New variable.
  33082. * configure.ac: Check for LZO version 2.
  33083. * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
  33084. lzo/lzo1x.h instead of lzo1x.h.
  33085. * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
  33086. of -llzo.
  33087. * util/i386/pc/grub-setup.c (main): Do not free PREFIX
  33088. twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
  33089. * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
  33090. copying the data from PARTITION to P.
  33091. 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
  33092. * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
  33093. negative, unload the module.
  33094. * util/i386/pc/grub-setup.c (setup): The name of the PC partition
  33095. map is "pc_partition_map" but not "pc".
  33096. (usage): Fix the description. The options are --boot-image and
  33097. --core-image but not --boot-file or --core-file.
  33098. (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
  33099. based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
  33100. DEFAULT_DIRECTORY.
  33101. * util/i386/pc/grub-install.in: Do not specify --boot-file or
  33102. --core-file. Specify INSTALL_DEVICE as an argument.
  33103. * util/console.c: Include config.h.
  33104. [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
  33105. [HAVE_NCURSES_H]: Include ncurses.h.
  33106. [HAVE_CURSES_H]: Include curses.h.
  33107. [!A_NORMAL] (A_NORMAL): Defined as zero.
  33108. [!A_STANDOUT] (A_STANDOUT): Likewise.
  33109. * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
  33110. -lncurses.
  33111. * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
  33112. * configure.ac: Check for curses libraries and headers.
  33113. * Makefile.in (LIBCURSES): New variable.
  33114. * genmk.rb (Script::rule): Set the executable bits.
  33115. * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
  33116. name of the PC partition map is "pc_partition_map" but not "pc".
  33117. 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
  33118. * util/i386/pc/grub-install.in (grub_probefs): New variable.
  33119. (modules): Likewise.
  33120. (usage): Added descriptions for --modules and --grub-probefs.
  33121. Handle --modules and --grub-probefs. Save the arguments in MODULES
  33122. and GRUB_PROBEFS, respectively.
  33123. Auto-detect a filesystem module against GRUBDIR. If the result is
  33124. empty and modules are not specified explicitly, abort the
  33125. installation. Add the result to MODULES.
  33126. * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
  33127. disk/powerpc/ieee1275/ofdisk.c,
  33128. include/grub/powerpc/ieee1275/init.h and
  33129. term/powerpc/ieee1275/ofconsole.c.
  33130. Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
  33131. term/ieee1275/ofconsole.c.
  33132. * include/grub/powerpc/ieee1275/console.h: Resurrected.
  33133. * COPYING: Upgraded to the latest version. Only the address of the
  33134. FSF office has changed.
  33135. 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
  33136. * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
  33137. kern/ieee1275.c with kern/ieee1275/of.c.
  33138. * kern/ieee1275.c: Moved to ...
  33139. * kern/ieee1275/of.c: ... here.
  33140. 2005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
  33141. * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
  33142. readability.
  33143. * config.guess: Updated to the latest version from gnulib.
  33144. * config.sub: Likewise.
  33145. * install.sh: Likewise.
  33146. * mkinstalldirs: Likewise.
  33147. * include/grub/console.h: Removed. This file is arch-specific. Do
  33148. not put this in include/grub.
  33149. * include/grub/i386/pc/console.h: Resurrected.
  33150. * util/console.c: Include grub/machine/console.h instead of
  33151. grub/console.h.
  33152. * util/grub-emu.c: Likewise.
  33153. 2005-08-04 Marco Gerards <metgerards@student.han.nl>
  33154. * kern/term.c (grub_putcode): Use `grub_getwh' instead of
  33155. hardcoded value.
  33156. From Vincent Pelletier <subdino2004@yahoo.fr>
  33157. * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
  33158. Redefined to use grub_getwh.
  33159. (grub_term): New member named getwh.
  33160. (grub_getwh): New prototype.
  33161. * kern/term.c (grub_getwh): New function.
  33162. * term/i386/pc/console.c (grub_console_getwh): New function.
  33163. (grub_console_term): New member `getwh'.
  33164. * term/i386/pc/vga.c (grub_vga_getwh): New function.
  33165. (grub_vga_term): New member `getwh'.
  33166. * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
  33167. grub_ssize_t.
  33168. (grub_ofconsole_getw): New function.
  33169. (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
  33170. (grub_ofconsole_term): New field named getwh and new initial
  33171. value.
  33172. 2005-08-03 Hollis Blanchard <hollis@penguinppc.org>
  33173. * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
  33174. * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
  33175. Move `abort', `grub_reboot', and `grub_halt' prototypes ...
  33176. * include/grub/powerpc/ieee1275/kernel.h: ... to here.
  33177. * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
  33178. of <grub/machine/ieee1275.h>.
  33179. * commands/ieee1275/reboot.c: Likewise.
  33180. * boot/powerpc/ieee1275/ieee1275.c: Move ...
  33181. * kern/ieee1275.c: ... to here. All users updated. Change all
  33182. parameter structs to use new type `grub_ieee1275_cell_t'.
  33183. * term/powerpc/ieee1275/ofconsole.c: Move ...
  33184. * term/ieee1275/ofconsole.c: ... to here. All users updated.
  33185. * disk/powerpc/ieee1275/ofdisk.c: Move ...
  33186. * disk/ieee1275/ofdisk.c: ... to here. All users updated.
  33187. * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
  33188. to return int.
  33189. * include/grub/i386/pc/console.h: Move to include/grub/console.h.
  33190. Remove unused prototypes. All users updated.
  33191. * include/grub/powerpc/ieee1275/console.h: Removed.
  33192. * include/grub/powerpc/ieee1275/ieee1275.h: Define
  33193. `grub_ieee1275_cell_t'.
  33194. * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
  33195. Cast comparisons with -1 to the correct type.
  33196. * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
  33197. type to match `grub_ieee1275_entry_fn'.
  33198. 2005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
  33199. * DISTLIST: Added util/i386/pc/grub-probefs.c.
  33200. * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
  33201. (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
  33202. partmap/sun.c.
  33203. (grub_probefs_SOURCES): New variable.
  33204. * util/i386/pc/grub-probefs.c: New file.
  33205. * util/i386/pc/grub-setup.c (main): Call
  33206. grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
  33207. grub_hfs_init and grub_jfs_init to initialize the system. Call
  33208. grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
  33209. grub_pc_partition_map_fini to finish the system.
  33210. 2005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
  33211. * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
  33212. function.
  33213. (grub_multiboot_load_elf32): Likewise.
  33214. (grub_multiboot_is_elf64): Likewise.
  33215. (grub_multiboot_load_elf64): Likewise.
  33216. (grub_multiboot_load_elf): Likewise.
  33217. (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
  33218. an ELF32 or ELF64 file.
  33219. This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
  33220. From Serbinenko Vladimir <serbinenko.vova@list.ru>:
  33221. * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
  33222. NULL before calling FS->LABEL.
  33223. * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
  33224. * commands/ls.c (grub_ls_list_files): Show labels, if possible.
  33225. (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
  33226. before calling FS->LABEL.
  33227. 2005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
  33228. * util/i386/pc/grub-install.in (datadir): New variable.
  33229. (libdir): Removed.
  33230. (pkgdatadir): New variable.
  33231. (pkglibdir): Removed.
  33232. 2005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
  33233. * DISTLIST: Added util/i386/pc/grub-install.in.
  33234. * util/i386/pc/grub-install.in: New file.
  33235. * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
  33236. (grub_install_SOURCES): Likewise.
  33237. * genmk.rb: Added support for scripts.
  33238. (Script): New class.
  33239. (scripts): New variable.
  33240. * Makefile.in (install-local): Install sbin_SCRIPTS by
  33241. INSTALL_SCRIPT.
  33242. (uninstall): Remove sbin_SCRIPTS.
  33243. * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
  33244. device, try to get a GRUB device by
  33245. grub_util_biosdisk_get_grub_dev.
  33246. Free DEST_DEV.
  33247. * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
  33248. description for --device-map.
  33249. 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
  33250. Change the semantics of variable hooks. They now return strings
  33251. instead of error values.
  33252. * util/i386/pc/grub-setup.c: Include grub/env.h.
  33253. (setup): Use grub_device_set_root instead of grub_env_set.
  33254. * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
  33255. grub_env_get instead of grub_device_set_root and
  33256. grub_device_get_root, respectively.
  33257. * kern/main.c (grub_env_write_root): New function.
  33258. (grub_set_root_dev): Register grub_env_write_hook for "root". Use
  33259. grub_env_set instead of grub_device_set_root.
  33260. * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
  33261. many variables.
  33262. (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
  33263. rather than calling ENV->WRITE_HOOK afterwards.
  33264. (grub_env_get): Return the result of ENV->READ_HOOK rather than
  33265. passing a pointer of a pointer.
  33266. (grub_register_variable_hook): Change the types of "read_hook" and
  33267. "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
  33268. respectively.
  33269. Allocate the default empty string on the heap, because this string
  33270. may be freed later.
  33271. * kern/device.c: Include grub/env.h.
  33272. (grub_device_set_root): Removed.
  33273. (grub_device_get_root): Likewise.
  33274. (grub_device_open): Use grub_env_get instead of
  33275. grub_device_get_root.
  33276. * include/grub/env.h (grub_env_read_hook_t): New type.
  33277. (grub_env_write_hook_t): Likewise.
  33278. (grub_env_var): Change the types of "read_hook" and "write_hook"
  33279. to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
  33280. (grub_register_variable_hook): Likewise.
  33281. * include/grub/device.h (grub_device_set_root): Removed.
  33282. (grub_device_set_root): Likewise.
  33283. * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
  33284. make sure that DIRNAME terminates with '/', so that
  33285. grub_fat_find_dir will fail if PATH is not a directory.
  33286. * commands/ls.c (grub_ls_list_files): Remove the qualifier const
  33287. from DIRNAME.
  33288. Use the qualifier auto for print_files and print_files_long.
  33289. If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
  33290. as a regular file.
  33291. Put a newline only if there is no error.
  33292. (grub_cmd_ls): Remove grub_ls_print_files, because this is not
  33293. used.
  33294. 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
  33295. * kern/partition.c (grub_partition_probe): Initialize PART to
  33296. NULL. Otherwise, when no partition map is registered, this returns
  33297. a garbage.
  33298. 2005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
  33299. * partmap/apple.c (apple_partition_map_iterate): Check if POS
  33300. equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
  33301. valid.
  33302. 2005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
  33303. * commands/ls.c (grub_ls_list_disks): Print the filesystem
  33304. information on each device, if it does not have partitions. Print
  33305. "Device" instead of "Disk", because this function is not specific
  33306. to disk devices.
  33307. * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
  33308. static to ensure that it is put on the memory rather than a
  33309. register.
  33310. 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
  33311. * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
  33312. (grub_cat_init): Likewise.
  33313. * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
  33314. (options): Likewise.
  33315. * commands/configfile.c (GRUB_MOD_INIT): Likewise.
  33316. (grub_configfile_init): Likewise.
  33317. * font/manager.c (GRUB_MOD_INIT): Likewise.
  33318. * commands/help.c (GRUB_MOD_INIT): Likewise.
  33319. (grub_help_init): Likewise.
  33320. * normal/command.c (grub_command_init): Likewise.
  33321. * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
  33322. * disk/loopback.c (grub_loop_init): Likewise.
  33323. (GRUB_MOD_INIT): Likewise.
  33324. * commands/ls.c (grub_ls_init): Likewise.
  33325. (GRUB_MOD_INIT): Likewise.
  33326. (options): Likewise.
  33327. * commands/boot.c (grub_boot_init): Likewise.
  33328. (GRUB_MOD_INIT): Likewise.
  33329. * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
  33330. * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
  33331. (GRUB_MOD_INIT): Likewise.
  33332. * commands/cmp.c (grub_cmp_init): Likewise.
  33333. (GRUB_MOD_INIT): Likewise.
  33334. * normal/arg.c: Use <> instead of "" to include header files.
  33335. (SHORT_ARG_HELP): New macro.
  33336. (SHORT_ARG_USAGE): Likewise.
  33337. (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
  33338. of 'h' and 'u' for help and usage, respectively. Use more GNU-like
  33339. descriptions.
  33340. (find_short): Check if C is 'h' or 'u' explicitly.
  33341. (grub_arg_show_help): Use space characters instead of tabs. Treat
  33342. SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
  33343. are shown with --help and --usage only if they are not used for
  33344. the command itself.
  33345. (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
  33346. 'h' and 'u'.
  33347. * include/grub/arg.h (struct grub_arg_option): Add the qualifier
  33348. const into "longarg". Change the type of "shortarg" to int.
  33349. 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
  33350. * boot/i386/pc/boot.S (boot_drive_check): New label.
  33351. * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
  33352. macro.
  33353. * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
  33354. which do not pass a boot drive correctly. Copied from GRUB Legacy.
  33355. 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
  33356. * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
  33357. When turning off Gate A20, skip the check and return immediately,
  33358. because this is not fatal usually.
  33359. 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
  33360. * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
  33361. be 0x7C00 instead of 0x8000.
  33362. * boot/i386/pc/pxeboot.S: Rewritten.
  33363. * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
  33364. EXT_C.
  33365. (gate_a20_check_state): Read a byte from 0x108000. Invert the
  33366. result.
  33367. 2005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
  33368. * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
  33369. robustness. This routine now supports a BIOS call and System
  33370. Control Port A to modify the gate A20.
  33371. * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
  33372. Increased to 0x440.
  33373. 2005-07-12 Hollis Blanchard <hollis@penguinppc.org>
  33374. * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
  33375. device path and resulting ihandle.
  33376. (grub_ofdisk_close): dprintf the ihandle being closed.
  33377. (grub_ofdisk_read): dprintf function parameters.
  33378. * kern/mm.c (grub_mm_init_region): Likewise.
  33379. * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
  33380. (grub_linux_boot): dprintf the Linux entry point, initrd address and
  33381. size, and boot arguments.
  33382. (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
  33383. before loading into memory.
  33384. (grub_rescue_cmd_initrd): dprintf the initrd's address and size
  33385. before loading into memory.
  33386. 2005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
  33387. * kern/mm.c: Added much documentation.
  33388. (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
  33389. 8, set to 5 instead of 8.
  33390. 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
  33391. * DISTLIST: Added util/i386/pc/grub-mkimage.c.
  33392. * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
  33393. (grub_mkdevicemap_SOURCES): New variable.
  33394. * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
  33395. lib/device.c of GRUB Legacy.
  33396. 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
  33397. * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
  33398. instead of PATH is NULL.
  33399. 2005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
  33400. * commands/cmp.c (BUFFER_SIZE): New macro.
  33401. (grub_cmd_cmp): Close the right file at the right time. Compare
  33402. only data just read. Don't report files of different size as
  33403. identical. Dynamically allocate buffers. Move variable
  33404. declarations at the beginning of function.
  33405. 2005-07-09 Yoshinori Okuji <okuji@enbug.org>
  33406. * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
  33407. reverse.
  33408. 2004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
  33409. * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
  33410. when backspace is pressed at beginning of line.
  33411. 2005-07-03 Yoshinori Okuji <okuji@enbug.org>
  33412. * DISTLIST: Added genfslist.sh.
  33413. * normal/main.c (fs_module_list): New variable.
  33414. (autoload_fs_module): New function.
  33415. (read_fs_list): Likewise.
  33416. (grub_normal_execute): Call read_fs_list.
  33417. * kern/fs.c (grub_fs_autoload_hook): New variable.
  33418. (grub_fs_probe): Added support for auto-loading.
  33419. * include/grub/normal.h (struct grub_fs_module_list): New struct.
  33420. (grub_fs_module_list_t): New type.
  33421. * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
  33422. (grub_fs_autoload_hook): New prototype.
  33423. * genfslist.sh: New file.
  33424. * genmk.rb: Added a rule to generate a filesystem list.
  33425. 2005-06-30 Marco Gerards <metgerards@student.han.nl>
  33426. * configure.ac: Fix the test for cross-compiling.
  33427. * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
  33428. define GRUB_UTIL anymore.
  33429. * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
  33430. so this function works on other systems than just big endian.
  33431. (load_modules): Likewise.
  33432. (add_segments): Likewise.
  33433. 2005-06-23 Hollis Blanchard <hollis@penguinppc.org>
  33434. * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
  33435. contains `l' modifier, get a long from va_arg().
  33436. 2005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
  33437. * kern/mm.c (grub_free): If the next free block which is being
  33438. merged is the first free block, set the first block to the block
  33439. being freed.
  33440. Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
  33441. 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
  33442. * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
  33443. `grub_ieee1275_chosen'.
  33444. 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
  33445. * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
  33446. (grub_ieee1275_chosen): New variable.
  33447. (cmain): Initialize and use `grub_ieee1275_chosen' instead of
  33448. `chosen'.
  33449. * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
  33450. * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
  33451. Rename first argument to `phandle' for consistency.
  33452. (grub_ieee1275_get_property_length): Likewise.
  33453. (grub_ieee1275_next_property): Likewise. Change type of first argument
  33454. to grub_ieee1275_phandle_t.
  33455. * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
  33456. Move export next to declaration.
  33457. (grub_ieee1275_chosen): New variable.
  33458. * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
  33459. Correct cosmetic typo.
  33460. * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
  33461. `grub_ieee1275_chosen'.
  33462. * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
  33463. * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
  33464. (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
  33465. * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
  33466. `grub_ieee1275_chosen'.
  33467. 2005-05-10 Hollis Blanchard <hollis@penguinppc.org>
  33468. * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
  33469. /chosen/bootargs.
  33470. * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
  33471. /chosen/bootargs as "variable=value" pairs.
  33472. 2005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
  33473. * include/grub/misc.h (grub_dprintf): New macro.
  33474. (grub_real_dprintf): New prototype.
  33475. (grub_strword): Likewise.
  33476. (grub_iswordseparator): Likewise.
  33477. * kern/misc.c (grub_real_dprintf): New function.
  33478. (grub_strword): Likewise.
  33479. (grub_iswordseparator): Likewise.
  33480. 2005-04-30 Hollis Blanchard <hollis@penguinppc.org>
  33481. * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
  33482. (roundup): Remove macro.
  33483. (grub_ieee1275_flags): Make static.
  33484. (grub_ieee1275_realmode): Remove.
  33485. (grub_ieee1275_test_flag): New function.
  33486. (grub_ieee1275_set_flag): Likewise.
  33487. (find_options): Rename to `grub_ieee1275_find_options'; update
  33488. callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
  33489. GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
  33490. (cmain): New prototype.
  33491. (cmain): Use `grub_ieee1275_set_flag' instead of accessing
  33492. `grub_ieee1275_flags' directly.
  33493. * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
  33494. machine/biosdisk.h.
  33495. * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
  33496. Don't include grub/machine/init.h.
  33497. (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
  33498. * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
  33499. Remove prototype.
  33500. (grub_ieee1275_realmode): Likewise.
  33501. (grub_ieee1275_flag): New enum.
  33502. (grub_ieee1275_test_flag): New prototype.
  33503. (grub_ieee1275_set_flag): New prototype.
  33504. * include/grub/powerpc/ieee1275/init.h: Remove file.
  33505. * include/grub/powerpc/ieee1275/ofdisk.h: New file.
  33506. * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
  33507. Include grub/machine/console.h. Include grub/machine/ofdisk.h.
  33508. (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
  33509. comment.
  33510. * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
  33511. `grub_ieee1275_test_flag'.
  33512. (grub_ieee1275_encode_devname): Likewise.
  33513. 2005-04-21 Hollis Blanchard <hollis@penguinppc.org>
  33514. * include/grub/powerpc/ieee1275/ieee1275.h
  33515. (grub_ieee1275_encode_devname): New prototype.
  33516. (grub_ieee1275_get_filename): Likewise.
  33517. * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
  33518. function.
  33519. (grub_set_prefix): Likewise.
  33520. (grub_machine_init): Call grub_set_prefix.
  33521. * kern/powerpc/ieee1275/openfw.c: Fix typos.
  33522. (grub_parse_type): New enum.
  33523. (grub_ieee1275_get_devargs): New function.
  33524. (grub_ieee1275_get_devname): Likewise.
  33525. (grub_ieee1275_parse_args): Likewise.
  33526. (grub_ieee1275_get_filename): Likewise.
  33527. (grub_ieee1275_encode_devname): Likewise.
  33528. 2005-03-30 Marco Gerards <metgerards@student.han.nl>
  33529. * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
  33530. `grub_loader_unset'.
  33531. 2005-03-26 Hollis Blanchard <hollis@penguinppc.org>
  33532. * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
  33533. instead of grub_ieee1275_interpret.
  33534. (grub_halt_init): New function.
  33535. (grub_halt_fini): Likewise.
  33536. (GRUB_MOD_INIT): Correct message grammar.
  33537. * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
  33538. instead of grub_ieee1275_interpret.
  33539. (grub_reboot_init): New function.
  33540. (grub_reboot_fini): Likewise.
  33541. * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
  33542. commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
  33543. util/i386/pc/misc.c with commands/ieee1275/halt.c,
  33544. commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
  33545. * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
  33546. function.
  33547. * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
  33548. Add prototype.
  33549. * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
  33550. prototype.
  33551. (grub_halt): Likewise.
  33552. * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
  33553. (cmain): Remove __attribute__((unused)).
  33554. * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
  33555. (grub_heap_len): Likewise.
  33556. (grub_machine_fini): New function.
  33557. * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
  33558. (grub_halt): Likewise.
  33559. * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
  33560. function.
  33561. * util/powerpc/ieee1275/misc.c: New file.
  33562. 2005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
  33563. * DISTLIST: New file.
  33564. * gendistlist.sh: Likewise.
  33565. * Makefile.in (COMMON_DISTFILES): Removed.
  33566. (BOOT_DISTFILES): Likewise.
  33567. (CONF_DISTFILES): Likewise.
  33568. (DISK_DISTFILES): Likewise.
  33569. (FS_DISTFILES): Likewise.
  33570. (INCLUDE_DISTFILES): Likewise.
  33571. (KERN_DISTFILES): Likewise.
  33572. (LOADER_DISTFILES): Likewise.
  33573. (TERM_DISTFILES): Likewise.
  33574. (UTIL_DISTFILES): Likewise.
  33575. (DISTFILES): Likewise.
  33576. (uninstall): Uninstall files in $(pkgdata_DATA).
  33577. (DISTLIST): New target.
  33578. (distdir): Use the contents of the file DISTLIST to get a list of
  33579. distributed files.
  33580. 2005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
  33581. * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
  33582. descriptor. This is ported from GRUB Legacy.
  33583. * gencmdlist.sh: Added an extra semicolon to make it work with
  33584. old sed versions. Reported by Robert Bihlmeyer
  33585. <robbe@orcus.priv.at>.
  33586. 2005-03-08 Yoshinori Okuji <okuji@enbug.org>
  33587. Automatic loading of commands is supported.
  33588. * normal/main.c (read_command_list): New function.
  33589. (grub_normal_execute): Call read_command_list.
  33590. * normal/command.c (grub_register_command): Return zero or CMD.
  33591. Allocate CMD->NAME from the heap.
  33592. Initialize CMD->MODULE_NAME to zero.
  33593. Find the same name as well. If the same command is found and it is
  33594. a dummy command, overwrite members. If it is not a dummy command,
  33595. return zero.
  33596. (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
  33597. (grub_command_find): If a dummy command is found, load a module
  33598. and retry to find a command only once.
  33599. * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
  33600. make sure that each command is loaded.
  33601. * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
  33602. macro.
  33603. (struct grub_command): Remove const from the member `name'.
  33604. Add a new member `module_name'.
  33605. (grub_register_command): Return grub_command_t.
  33606. * commands/help.c (grub_cmd_help): Call grub_command_find to make
  33607. sure that each command is loaded.
  33608. * genmk.rb (PModule::rule): Specify a module name without the
  33609. suffix ".mod" to gencmdlist.sh.
  33610. 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
  33611. * gencmdlist.sh: New file.
  33612. * genmk.rb (PModule::rule): Generate a rule for a command list.
  33613. Clean command.lst.
  33614. Generate command.lst from $(COMMANDFILES).
  33615. * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
  33616. (DATA): Added $(pkgdata_DATA).
  33617. (install-local): Install files in $(pkgdata_DATA).
  33618. 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
  33619. * term/i386/pc/vga.c (debug_command): Removed.
  33620. (GRUB_MOD_INIT): Do not register the command "debug".
  33621. From Hollis Blanchard:
  33622. * commands/configfile.c: New file.
  33623. * conf/i386-pc.rmk (grub_emu_SOURCES): Added
  33624. commands/configfile.c.
  33625. (pkgdata_MODULES): Added configfile.mod.
  33626. (configfile_mod_SOURCES): New variable.
  33627. (configfile_mod_CFLAGS): Likewise.
  33628. * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
  33629. commands/configfile.c.
  33630. (pkgdata_MODULES): Added configfile.mod.
  33631. (configfile_mod_SOURCES): New variable.
  33632. (configfile_mod_CFLAGS): Likewise.
  33633. * util/grub-emu.c (main): Call grub_configfile_init and
  33634. grub_configfile_fini.
  33635. * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
  33636. prototype.
  33637. [GRUB_UTIL] (grub_configfile_fini): Likewise.
  33638. 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
  33639. * normal/arg.c (grub_arg_show_help): Do not show the bug report
  33640. address.
  33641. * commands/help.c (grub_cmd_help): Do not print newlines after
  33642. the last command in print_command_help.
  33643. 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
  33644. * commands/default.h: New file.
  33645. * commands/timeout.h: Likewise.
  33646. * normal/context.c: Likewise.
  33647. * util/misc.c: Do not include sys/times.h.
  33648. Include sys/time.h and grub/machine/time.h.
  33649. (grub_get_rtc): Rewritten with gettimeofday.
  33650. * util/grub-emu.c (main): Call grub_default_init and
  33651. grub_timeout_init before grub_normal_init, and call
  33652. grub_timeout_fini and grub_default_fini after grub_main.
  33653. * util/console.c (grub_ncurses_checkkey): Return the read
  33654. character or -1.
  33655. * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
  33656. timeouts.
  33657. * normal/main.c (read_config_file): Push MENU. If this fails,
  33658. print an error and wait for a user input.
  33659. Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
  33660. If a menu is empty or an error occurs, pop MENU.
  33661. (grub_normal_execute): Pop and free MENU after grub_menu_run
  33662. returns.
  33663. * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
  33664. * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
  33665. include time.h.
  33666. [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
  33667. without GRUB_UTIL.
  33668. * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
  33669. time.h.
  33670. [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
  33671. without GRUB_UTIL.
  33672. * include/grub/normal.h (struct grub_menu_list): New struct.
  33673. (grub_menu_list_t): New type.
  33674. (struct grub_context): New struct.
  33675. (grub_context_t): New type.
  33676. (grub_register_command): Got rid of EXPORT_FUNC.
  33677. (grub_unregister_command): Likewise.
  33678. (grub_context_get): New prototype.
  33679. (grub_context_get_current_menu): Likewise.
  33680. (grub_context_push_menu): Likewise.
  33681. (grub_context_pop_menu): Likewise.
  33682. [GRUB_UTIL] (grub_default_init): Likewise.
  33683. [GRUB_UTIL] (grub_default_fini): Likewise.
  33684. [GRUB_UTIL] (grub_timeout_init): Likewise.
  33685. [GRUB_UTIL] (grub_timeout_fini): Likewise.
  33686. * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
  33687. commands/timeout.c and normal/context.c.
  33688. (pkgdata_MODULES): Added default.mod and timeout.mod.
  33689. (normal_mod_SOURCES): Added normal/context.c.
  33690. (default_mod_SOURCES): New variable.
  33691. (default_mod_CFLAGS): Likewise.
  33692. (timeout_mod_SOURCES): Likewise.
  33693. (timeout_mod_CFLAGS): Likewise.
  33694. * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
  33695. conf/i386-pc.rmk.
  33696. (pkgdata_MODULES): Added default.mod and timeout.mod.
  33697. (normal_mod_SOURCES): Added normal/context.c.
  33698. (default_mod_SOURCES): New variable.
  33699. (default_mod_CFLAGS): Likewise.
  33700. (timeout_mod_SOURCES): Likewise.
  33701. (timeout_mod_CFLAGS): Likewise.
  33702. * Makefile.in (all-local): Added $(MKFILES).
  33703. 2005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
  33704. * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
  33705. (grub_emu_SOURCES): Likewise.
  33706. (pkgdata_MODULES): Add `sun.mod'.
  33707. (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
  33708. * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
  33709. `partmap/sun.c'.
  33710. (pkgdata_MODULES): Add `sun.mod'.
  33711. (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
  33712. * include/grub/partition.h (grub_sun_partition_map_init): New
  33713. prototype.
  33714. (grub_sun_partition_map_fini): Likewise.
  33715. * partmap/sun.c: New file.
  33716. * util/grub-emu.c (main): Initialize and de-initialize the sun
  33717. partitionmap support.
  33718. 2005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
  33719. This implements an Emacs-like menu entry editor.
  33720. * normal/menu_entry.c: New file.
  33721. * util/console.c (grub_ncurses_putchar): Translate some Unicode
  33722. characters to ASCII.
  33723. (saved_char): New variable.
  33724. (grub_ncurses_checkkey): Rewritten completely.
  33725. (grub_ncurses_getkey): Likewise.
  33726. (grub_ncurses_init): Call raw instead of cbreak.
  33727. * normal/menu.c (print_entry): Do not put a space.
  33728. (init_page): Renamed to ...
  33729. (grub_menu_init_page): ... this. All callers changed.
  33730. (edit_menu_entry): Removed.
  33731. (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
  33732. * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
  33733. * kern/misc.c (grub_vprintf): Call grub_refresh.
  33734. * normal/menu.c (DISP_LEFT): Renamed to ...
  33735. * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
  33736. * normal/menu.c (DISP_UP): Renamed to ...
  33737. * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
  33738. * normal/menu.c (DISP_RIGHT): Renamed to ...
  33739. * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
  33740. * normal/menu.c (DISP_DOWN): Renamed to ...
  33741. * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
  33742. * normal/menu.c (DISP_HLINE): Renamed to ...
  33743. * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
  33744. * normal/menu.c (DISP_VLINE): Renamed to ...
  33745. * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
  33746. * normal/menu.c (DISP_UL): Renamed to ...
  33747. * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
  33748. * normal/menu.c (DISP_UR): Renamed to ...
  33749. * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
  33750. * normal/menu.c (DISP_LL): Renamed to ...
  33751. * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
  33752. * normal/menu.c (DISP_LR): Renamed to ...
  33753. * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
  33754. * normal/menu.c (TERM_WIDTH): Renamed to ...
  33755. * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
  33756. * normal/menu.c (TERM_HEIGHT): Renamed to ...
  33757. * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
  33758. * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
  33759. * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
  33760. * normal/menu.c (TERM_MARGIN): Renamed to ...
  33761. * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
  33762. * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
  33763. * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
  33764. * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
  33765. * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
  33766. * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
  33767. * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
  33768. * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
  33769. * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
  33770. * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
  33771. * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
  33772. * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
  33773. * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
  33774. * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
  33775. * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
  33776. * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
  33777. * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
  33778. * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
  33779. * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
  33780. * normal/menu.c (TERM_CURSOR_X): Renamed to ...
  33781. * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
  33782. All callers changed.
  33783. * include/grub/normal.h: New prototype.
  33784. * conf/i386-pc.rmk (grub_emu_SOURCES): Added
  33785. normal/menu_entry.c.
  33786. (normal_mod_SOURCES): Likewise.
  33787. * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
  33788. (normal_mod_SOURCES): Likewise.
  33789. 2005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
  33790. * include/grub/normal.h (grub_halt_init): New prototype.
  33791. (grub_halt_fini): Likewise.
  33792. (grub_reboot_init): Likewise.
  33793. (grub_reboot_fini): Likewise.
  33794. * util/grub-emu.c: Include signal.h.
  33795. (main_env): New global variable.
  33796. (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
  33797. catch C-c.
  33798. (grub_machine_fini): New function.
  33799. (main): Call grub_halt_init and grub_reboot_init before
  33800. grub_main, and grub_reboot_fini and grub_halt_fini after it.
  33801. Call setjmp with MAIN_ENV to go back afterwards.
  33802. Call grub_machine_fini right before return.
  33803. * include/grub/util/misc.h: Include setjmp.h.
  33804. (main_env): New prototype.
  33805. * include/grub/kernel.h (grub_machine_fini): New prototype.
  33806. * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
  33807. * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
  33808. * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
  33809. * kern/i386/pc/init.c (grub_machine_fini): Likewise.
  33810. * term/i386/pc/console.c (grub_console_fini): Likewise.
  33811. * util/i386/pc/misc.c: New file.
  33812. * conf/i386-pc.rmk (grub_emu_SOURCES): Added
  33813. util/i386/pc/misc.c, commands/i386/pc/halt.c and
  33814. commands/i386/pc/reboot.c.
  33815. 2005-02-14 Guillem Jover <guillem@hadrons.org>
  33816. * include/grub/dl.h (grub_dl_check_header): New prototype.
  33817. (grub_arch_dl_check_header): Change return type to grub_err_t,
  33818. remove size parameter and export function. Update all callers.
  33819. * kern/dl.c (grub_dl_check_header): New function.
  33820. (grub_dl_load_core): Use `grub_dl_check_header' instead of
  33821. `grub_arch_dl_check_header'. Check ELF type. Check if sections
  33822. are inside the core.
  33823. * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
  33824. independent ELF header checks.
  33825. * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
  33826. * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
  33827. `grub_dl_check_header' instead of explicit checks. Check for the
  33828. ELF type.
  33829. * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
  33830. `grub_dl_check_header' instead of explicit checks. Remove arch
  33831. specific ELF header checks.
  33832. * util/grub-emu.c (grub_arch_dl_check_header): Remove the
  33833. argument SIZE.
  33834. 2005-02-13 Hollis Blanchard <hollis@penguinppc.org>
  33835. * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
  33836. * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
  33837. 2005-02-12 Hollis Blanchard <hollis@penguinppc.org>
  33838. * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
  33839. return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
  33840. (part_map_iterate): Clear `grub_errno' and return 0 if
  33841. `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
  33842. * partmap/amiga.c (amiga_partition_map_iterate): Return
  33843. GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
  33844. * partmap/apple.c (apple_partition_map_iterate): Likewise.
  33845. 2005-02-01 Guillem Jover <guillem@hadrons.org>
  33846. * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
  33847. help info.
  33848. 2005-01-31 Marco Gerards <metgerards@student.han.nl>
  33849. * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
  33850. Removed prototype.
  33851. (grub_rescue_cmd_linux): New prototype.
  33852. (grub_rescue_cmd_initrd): Likewise.
  33853. * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
  33854. `bi_rec'.
  33855. (grub_linux_release_mem): Release the memory for the initrd.
  33856. (grub_load_linux): Renamed from this...
  33857. (grub_rescue_cmd_linux): ...To this. Changed all callers.
  33858. Changed `entry' not to be static. Loop over memory regions to
  33859. find another one when the default fails.
  33860. (grub_rescue_cmd_initrd): New function.
  33861. (grub_linux_init): Remove function.
  33862. (grub_linux_fini): Likewise.
  33863. (GRUB_MOD_INIT): Register `initrd'.
  33864. (GRUB_MOD_FINI): Unregister `initrd'.
  33865. * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
  33866. Function removed.
  33867. (grub_linux_normal_fini): Likewise.
  33868. (GRUB_MOD_INIT): Register `initrd'.
  33869. (GRUB_MOD_FINI): Unregister `initrd'.
  33870. 2005-01-31 Marco Gerards <metgerards@student.han.nl>
  33871. * commands/help.c: New file.
  33872. * normal/arg.c (show_help): Renamed to...
  33873. (grub_arg_show_help): ... this.
  33874. * commands/i386/pc/halt.c: New file.
  33875. * commands/i386/pc/reboot.c: Likewise.
  33876. * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
  33877. (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
  33878. (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
  33879. (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
  33880. variables.
  33881. * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
  33882. `commands/help.c'.
  33883. (pkgdata_MODULES): Add `help.mod'.
  33884. (help_mod_SOURCES, help_mod_CFLAGS): New variables.
  33885. * grub/i386/pc/init.h (grub_reboot): New prototype.
  33886. (grub_halt): Likewise.
  33887. * include/grub/normal.h (grub_arg_show_help): New prototype.
  33888. (grub_help_init): Likewise.
  33889. (grub_help_fini): Likewise.
  33890. * util/grub-emu.c (main): Initialize and deinitialize the help
  33891. command.
  33892. * normal/cmdline.c (grub_cmdline_get): Doc fix.
  33893. * normal/command.c (grub_command_init): Fixed the description of
  33894. the `set' and `unset' commands.
  33895. 2005-01-31 Marco Gerards <metgerards@student.han.nl>
  33896. * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
  33897. function.
  33898. * commands/ieee1275/halt.c: New file.
  33899. * commands/ieee1275/reboot.c: Likewise.
  33900. * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
  33901. `__attribute__ ((unused))'. Some GCS related fixed.
  33902. (grub_suspend_init) [GRUB_UTIL]: Function removed.
  33903. (grub_suspend_fini): Likewise.
  33904. * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
  33905. and `halt.mod'.
  33906. (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
  33907. (halt_mod_CFLAGS): New variables.
  33908. * include/grub/powerpc/ieee1275/ieee1275.h
  33909. (grub_ieee1275_interpret): New prototype.
  33910. 2005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
  33911. * include/grub/misc.h (memmove): New prototype.
  33912. (memcpy): Likewise.
  33913. 2005-01-22 Hollis Blanchard <hollis@penguinppc.org>
  33914. * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
  33915. `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
  33916. 2005-01-22 Marco Gerards <metgerards@student.han.nl>
  33917. * kern/misc.c (grub_strndup): Function rewritten.
  33918. 2005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
  33919. * normal/menu.c (TERM_WIDTH): Macro redefined.
  33920. (TERM_TOP_BORDER_Y): Likewise.
  33921. (draw_border): Replaced while-loop by a for-loop. Make the number
  33922. of lines consistent with the number of lines displayed in
  33923. print_entries. Added a margin below the rectangle.
  33924. (print_entry): Make the entry fit in the rectangle.
  33925. (print_entries): Display the scroll arrows next to the right
  33926. border.
  33927. 2005-01-21 Marco Gerards <metgerards@student.han.nl>
  33928. * fs/minix.c (grub_minix_find_file): Reserve more space for
  33929. `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
  33930. `grub_strncpy' to copy `path' into it.
  33931. 2005-01-21 Marco Gerards <metgerards@student.han.nl>
  33932. Add the loopback device, a device via which files can be accessed
  33933. as devices.
  33934. * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
  33935. (pkgdata_MODULES): Add loopback.mod.
  33936. (loopback_mod_SOURCES): New variable.
  33937. (loopback_mod_CFLAGS): Likewise.
  33938. * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
  33939. `disk/loopback.c'.
  33940. (pkgdata_MODULES): Add loopback.mod.
  33941. (loopback_mod_SOURCES): New variable.
  33942. (loopback_mod_CFLAGS): Likewise.
  33943. * disk/loopback.c: new file.
  33944. * include/grub/normal.h (grub_loop_init): New prototype.
  33945. (grub_loop_fini): New prototype.
  33946. * util/grub-emu.c (main): Initialize and de-initialize loopback
  33947. support.
  33948. * include/grub/disk.h (grub_disk_dev_id): Add
  33949. `GRUB_DISK_DEVICE_LOOPBACK_ID'.
  33950. 2005-01-20 Hollis Blanchard <hollis@penguinppc.org>
  33951. * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
  33952. function.
  33953. * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
  33954. (suspend_mod_SOURCES): New variable.
  33955. (suspend_mod_CFLAGS): Likewise.
  33956. * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
  33957. New prototype.
  33958. * commands/ieee1275/suspend.c: New file.
  33959. 2005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
  33960. * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
  33961. ((unused))' to `__attribute__ ((used))'.
  33962. (GRUB_MOD_FINI): Likewise.
  33963. * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
  33964. * genmk.rb (PModule): Assign space to common symbols when linking
  33965. modules.
  33966. 2005-01-20 Marco Gerards <metgerards@student.han.nl>
  33967. * include/grub/mm.h (grub_mm_init_region): Change the type of the
  33968. `unsigned' arguments to `grub_size_t'.
  33969. (grub_malloc): Likewise.
  33970. (grub_realloc): Likewise.
  33971. (grub_memalign): Likewise.
  33972. * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
  33973. * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
  33974. * util/misc.c (grub_malloc): Likewise.
  33975. (grub_realloc): Likewise.
  33976. * kern/mm.c (get_header_from_pointer): Change the casts to
  33977. `unsigned' into a cast to `grub_size_t'.
  33978. * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
  33979. point to `currnode' when `currnode' is changed.
  33980. * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
  33981. Schottelius <nico-linux@schottelius.org>.
  33982. 2005-01-09 Hollis Blanchard <hollis@penguinppc.org>
  33983. * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
  33984. (note_path): Remove variable.
  33985. (GRUB_IEEE1275_NOTE_NAME): New macro.
  33986. (GRUB_IEEE1275_NOTE_TYPE): Likewise.
  33987. (grub_ieee1275_note_hdr): New structure.
  33988. (grub_ieee1275_note_desc): Likewise.
  33989. (grub_ieee1275_note): Likewise.
  33990. (load_note): Remove `dir' argument. All callers updated. Remove
  33991. `note_img' and `path'. Do not load a file from `note_path'.
  33992. Initialize a struct grub_ieee1275_note and write that to `out'.
  33993. Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
  33994. 2005-01-05 Marco Gerards <metgerards@student.han.nl>
  33995. * util/misc.c (grub_util_read_image): Revert last change. It
  33996. called `grub_util_read_at', which seeks from the beginning of the
  33997. file.
  33998. 2005-01-04 Hollis Blanchard <hollis@penguinppc.org>
  33999. * TODO: Add note about endianness in grub-mkimage.
  34000. * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
  34001. section.
  34002. * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
  34003. (grub_mkimage_SOURCES): New target.
  34004. * include/grub/kernel.h (grub_start_addr): Remove variable.
  34005. (grub_end_addr): Likewise.
  34006. (grub_total_module_size): Likewise.
  34007. (grub_kernel_image_size): Likewise.
  34008. (GRUB_MODULE_MAGIC): New constant.
  34009. (grub_module_info): New structure.
  34010. (grub_arch_modules_addr): New prototype.
  34011. (grub_get_end_addr): Remove prototype.
  34012. * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
  34013. * include/grub/powerpc/ieee1275/kernel.h: New file.
  34014. * include/grub/util/misc.h (grub_util_get_fp_size): New
  34015. prototype.
  34016. (grub_util_read_at): Likewise.
  34017. (grub_util_write_image_at): Likewise.
  34018. * kern/main.c (grub_get_end_addr): Remove function.
  34019. (grub_load_modules): Call grub_arch_modules_addr instead of using
  34020. grub_end_addr. Look for a grub_module_info struct in memory. Use
  34021. the grub_module_info fields instead of calling grub_get_end_addr
  34022. as loop conditions. Move grub_add_unused_region code here.
  34023. (grub_add_unused_region): Remove function.
  34024. * kern/i386/pc/init.c: Include grub/cache.h.
  34025. (grub_machine_init): Remove call to grub_get_end_addr. Remove
  34026. one call to add_mem_region.
  34027. (grub_arch_modules_addr): New function.
  34028. * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
  34029. (grub_total_module_size): Likewise.
  34030. Include grub/machine/kernel.h.
  34031. (grub_arch_modules_addr): New function.
  34032. * util/grub-emu.c (grub_end_addr): Remove variable.
  34033. (grub_total_module_size): Likewise.
  34034. (grub_arch_modules_addr): New function.
  34035. * util/misc.c: Include unistd.h.
  34036. (grub_util_get_fp_size): New function.
  34037. (grub_util_read_at): Likewise.
  34038. (grub_util_write_image_at): Likewise.
  34039. (grub_util_read_image): Call grub_util_read_at.
  34040. (grub_util_write_image): Call grub_util_write_image_at.
  34041. * util/i386/pc/grub-mkimage.c (generate_image): Allocate
  34042. additional memory in kernel_img for a struct grub_module_info.
  34043. Fill in that grub_module_info.
  34044. * util/powerpc/ieee1275/grub-mkimage.c: New file.
  34045. 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
  34046. * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
  34047. New function.
  34048. * include/grub/powerpc/ieee1275/ieee1275.h
  34049. (grub_ieee1275_milliseconds): New prototype.
  34050. * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
  34051. Change to 1000.
  34052. * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
  34053. grub_ieee1275_milliseconds.
  34054. 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
  34055. * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
  34056. variable.
  34057. (find_options): New function.
  34058. (cmain): Call find_options.
  34059. * include/grub/powerpc/ieee1275/ieee1275.h
  34060. (grub_ieee1275_realmode): New extern variable.
  34061. * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
  34062. grub_map if grub_ieee1275_realmode is false.
  34063. 2004-12-29 Marco Gerards <metgerards@student.han.nl>
  34064. * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
  34065. lines are inserted and make it work like readline. Reported by
  34066. Vincent Pelletier <subdino2004@yahoo.fr>.
  34067. 2004-12-28 Marco Gerards <metgerards@student.han.nl>
  34068. * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
  34069. * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
  34070. `kern/powerpc/cache.S'.
  34071. 2004-12-27 Marco Gerards <metgerards@student.han.nl>
  34072. * genmk.rb: Handle the `Program' class in the main loop. Written
  34073. by Johan Rydberg <jrydberg@gnu.org>.
  34074. (Program): New class.
  34075. (programs): New variable.
  34076. * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
  34077. instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
  34078. instead of "grub/kernel.h". Include <grub/machine/init.h>.
  34079. (help_arch): Function removed.
  34080. * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
  34081. `powerpc/libgcc.h' and `loader.h'.
  34082. (pkgdata_PROGRAMS): New variable.
  34083. (sbin_UTILITIES): Variable removed.
  34084. (grub_emu_SOURCES): Added kern/powerpc/cache.S.
  34085. (grubof_SOURCES): Variable re-defined so it only includes the
  34086. core functionality.
  34087. (grubof_CFLAGS): Remove `-DGRUBOF'.
  34088. (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
  34089. (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
  34090. (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
  34091. (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
  34092. (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
  34093. (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
  34094. (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
  34095. (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
  34096. (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
  34097. (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
  34098. (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
  34099. (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
  34100. (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
  34101. (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
  34102. (pc_mod_CFLAGS): New variables.
  34103. * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
  34104. (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
  34105. * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
  34106. * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
  34107. Moved from here...
  34108. * include/grub/i386/pc/init.h (grub_os_area_addr)
  34109. (rub_os_area_size): ... to here.
  34110. * include/grub/powerpc/ieee1275/ieee1275.h
  34111. (grub_ieee1275_entry_fn): Export symbol.
  34112. * include/grub/powerpc/ieee1275/init.h: New file.
  34113. * include/grub/powerpc/libgcc.h: Likewise.
  34114. * include/grub/cache.h: Likewise.
  34115. * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
  34116. <hollis@penguinppc.org>.
  34117. * kern/dl.c: Include <grub/cache.h>.
  34118. (grub_dl_flush_cache): New function.
  34119. (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
  34120. for this module.
  34121. * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
  34122. (grub_console_init): Removed prototypes.
  34123. (grub_machine_init): Don't initialize the modules anymore.
  34124. * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
  34125. static.
  34126. * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
  34127. Macro undef removed.
  34128. (GRUB_HOST_WORDS_BIGENDIAN): New macro.
  34129. * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
  34130. relocation `R_PPC_REL32'. Return an error when the relocation is
  34131. unknown.
  34132. * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
  34133. * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
  34134. * util/misc.c (grub_arch_sync_caches): Likewise.
  34135. 2004-12-19 Marco Gerards <metgerards@student.han.nl>
  34136. * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
  34137. `symlist.c', add `grubof_symlist.c'.
  34138. (symlist.c): Variable removed.
  34139. (grubof_HEADERS): Variable added.
  34140. (grubof_symlist.c): New target.
  34141. (kernel_syms.lst): Use `grubof_HEADERS' instead of
  34142. `kernel_img_HEADERS'.
  34143. (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
  34144. * kern/powerpc/dl.c: New file.
  34145. * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
  34146. Function removed.
  34147. (grub_arch_dl_relocate_symbols): Likewise.
  34148. (grub_register_exported_symbols): Likewise.
  34149. 2004-12-13 Marco Gerards <metgerards@student.han.nl>
  34150. * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
  34151. (grub_ext2_dir): Likewise. Don't return in case of an error, jump
  34152. to fail instead. Reported by Vincent Pelletier
  34153. <subdino2004@yahoo.fr>.
  34154. * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
  34155. it is not allocated. Reported by Vincent Pelletier
  34156. <subdino2004@yahoo.fr>.
  34157. * normal/cmdline.c (grub_tab_complete): Add a blank line to the
  34158. output so the output looks better.
  34159. 2004-12-04 Marco Gerards <metgerards@student.han.nl>
  34160. Modulize the partition map support and add support for the amiga
  34161. partition map.
  34162. * commands/ls.c: Include <grub/partition.h> instead of
  34163. <grub/machine/partition.h>.
  34164. * kern/disk.c: Likewise.
  34165. * kern/rescue.c: Likewise.
  34166. * loader/i386/pc/chainloader.c: Likewise.
  34167. * normal/cmdline.c: Likewise.
  34168. * kern/powerpc/ieee1275/init.c: Likewise.
  34169. (grub_machine_init): Call `grub_pc_partition_map_init',
  34170. `grub_amiga_partition_map_init' and
  34171. `grub_apple_partition_map_init'.
  34172. * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
  34173. `disk/i386/pc/partition.c'. Add `kern/partition.c'.
  34174. (kernel_img_HEADERS): Remove `machine/partition.h'. Add
  34175. `partition.h' and `pc_partition.h'.
  34176. (grub_setup_SOURCES): Remove
  34177. `disk/i386/pc/partition.c'. Add `kern/partition.c',
  34178. `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
  34179. (grub_emu_SOURCES): Likewise.
  34180. (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
  34181. (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
  34182. (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
  34183. * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
  34184. `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
  34185. `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
  34186. (grubof_SOURCES): Likewise.
  34187. * disk/i386/pc/partition.c: File removed.
  34188. * disk/powerpc/ieee1275/partition.c: Likewise.
  34189. * include/grub/powerpc/ieee1275/partition.h: Likewise.
  34190. * include/grub/i386/pc/partition.h: Likewise.
  34191. * kern/partition.c: New file.
  34192. * partmap/amiga.c: Likewise.
  34193. * partmap/apple.c: Likewise.
  34194. * partmap/pc.c: Likewise.
  34195. * include/grub/partition.h: Likewise..
  34196. * include/grub/pc_partition.h: Likewise.
  34197. * util/grub-emu.c: Include <grub/partition.h> instead of
  34198. <grub/machine/partition.h>.
  34199. (main): Call `grub_pc_partition_map_init',
  34200. `grub_amiga_partition_map_init' and
  34201. `grub_apple_partition_map_init' and deinitialize afterwards.
  34202. * util/i386/pc/biosdisk.c: Include `#include
  34203. <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
  34204. `<grub/machine/partition.h>'.
  34205. * util/i386/pc/grub-setup.c: Likewise.
  34206. * util/i386/pc/biosdisk.c: Likewise.
  34207. (grub_util_biosdisk_get_grub_dev): Only access the PC specific
  34208. partition information in case of a PC partition.
  34209. * util/i386/pc/grub-setup.c: Include `#include
  34210. <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
  34211. `<grub/machine/partition.h>'.
  34212. (setup): Only access the PC specific partition information in case
  34213. of a PC partition.
  34214. 2004-11-17 Hollis Blanchard <hollis@penguinppc.org>
  34215. * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
  34216. (grub_longjmp): Likewise.
  34217. * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
  34218. 20.
  34219. * normal/powerpc/setjmp.S: New file.
  34220. * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
  34221. `normal/powerpc/setjmp.S'.
  34222. (grubof_CFLAGS): Add `-DGRUBOF'.
  34223. * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
  34224. [GRUB_UTIL && !GRUBOF].
  34225. 2004-11-16 Marco Gerards <metgerards@student.han.nl>
  34226. * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
  34227. property named `name'. Correctly handle the error returned by
  34228. `grub_ieee1275_finddevice' if a device can not be opened.
  34229. 2004-11-02 Hollis Blanchard <hollis@penguinppc.org>
  34230. * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
  34231. `actual' for negativity.
  34232. * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
  34233. kern/fshelp.c.
  34234. 2004-11-01 Marco Gerards <metgerards@student.han.nl>
  34235. * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
  34236. (PAGE_OFFSET): New macro.
  34237. (CRTC_ADDR_PORT): Likewise.
  34238. (CRTC_DATA_PORT): Likewise.
  34239. (START_ADDR_HIGH_REGISTER): Likewise.
  34240. (START_ADDR_LOW_REGISTER): Likewise.
  34241. (GRAPHICS_ADDR_PORT): Likewise.
  34242. (GRAPHICS_DATA_PORT): Likewise.
  34243. (READ_MAP_REGISTER): Likewise.
  34244. (INPUT_STATUS1_REGISTER): Likewise.
  34245. (INPUT_STATUS1_VERTR_BIT): Likewise.
  34246. (page): New variable.
  34247. (wait_vretrace): New function.
  34248. (set_read_map): Likewise.
  34249. (set_start_address): Likewise.
  34250. (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
  34251. the right page.
  34252. (check_vga_mem): Take the page into account.
  34253. (write_char): Likewise.
  34254. (write_cursor): Likewise.
  34255. (scroll_up): Likewise. Copy the page to the page that is not
  34256. shown and switch between both pages.
  34257. (grub_vga_putchar): Fix off by one error.
  34258. (grub_vga_cls): Wait for the vertical retrace. Take the page into
  34259. account.
  34260. 2004-11-01 Marco Gerards <metgerards@student.han.nl>
  34261. Add support for iso9660 (including rockridge).
  34262. * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
  34263. (iso9660_mod_SOURCES): New variable.
  34264. (iso9660_mod_CFLAGS): Likewise.
  34265. * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
  34266. * include/grub/fs.h (grub_iso9660_init): New prototype.
  34267. * util/grub-emu.c (main): Call `grub_iso9660_init'.
  34268. * fs/iso9660.c: New file.
  34269. * include/grub/misc.h (grub_strncat): New prototype.
  34270. * kern/misc.c (grub_strncat): New function.
  34271. * fs/hfs.c (grub_hfs_mount): Translate the error
  34272. `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
  34273. * fs/jfs.c (grub_jfs_mount): Likewise.
  34274. * fs/ufs.c (grub_ufs_mount): Likewise.
  34275. 2004-10-28 Hollis Blanchard <hollis@penguinppc.org>
  34276. * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
  34277. which initialized BAT registers.
  34278. * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
  34279. grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
  34280. Move from here...
  34281. * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
  34282. grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
  34283. ... to here.
  34284. * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
  34285. (grub_mapclaim): Likewise.
  34286. * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
  34287. grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
  34288. hand.
  34289. 2004-10-19 Hollis Blanchard <hollis@penguinppc.org>
  34290. * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
  34291. (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
  34292. -ffreestanding and -msoft-float.
  34293. 2004-10-15 Hollis Blanchard <hollis@penguinppc.org>
  34294. * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
  34295. append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
  34296. set in grub_ieee1275_flags.
  34297. 2004-10-14 Hollis Blanchard <hollis@penguinppc.org>
  34298. * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
  34299. prototype.
  34300. * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
  34301. grub_console_init first.
  34302. Change the memory range used for grub_ieee1275_claim and
  34303. grub_mm_init_region.
  34304. Print an error message if the claim fails.
  34305. Include <grub/misc.h>.
  34306. 2004-10-13 Hollis Blanchard <hollis@penguinppc.org>
  34307. * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
  34308. Call grub_children_iterate for device nodes of type `scsi',
  34309. `ide', or `ata'.
  34310. (grub_ofdisk_open): Remove manual device alias resolution.
  34311. Fix memory leak when device cannot be opened.
  34312. * include/grub/powerpc/ieee1275/ieee1275.h
  34313. (grub_children_iterate): New prototype.
  34314. * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
  34315. New function.
  34316. * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
  34317. Return -1 if args.size was -1.
  34318. 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
  34319. * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
  34320. (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
  34321. World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
  34322. Open Firmware's memory for it; claim memory from _start to _end.
  34323. * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
  34324. (_end): New extern.
  34325. (_start): Zero BSS from __bss_start to _end.
  34326. * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
  34327. New extern.
  34328. (GRUB_IEEE1275_NO_PARTITION_0): New #define.
  34329. 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
  34330. * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
  34331. -1 if args.base was -1.
  34332. 2004-10-08 Hollis Blanchard <hollis@penguinppc.org>
  34333. * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
  34334. escape sequence instead of a literal ^L. Also call
  34335. grub_ofconsole_gotoxy.
  34336. 2004-10-03 Hollis Blanchard <hollis@penguinppc.org>
  34337. * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
  34338. void * arguments to grub_addr_t. All callers updated. Also make
  34339. the `result' argument optional.
  34340. (grub_ieee1275_release): change void * arguments to grub_addr_t.
  34341. All callers updated.
  34342. 2004-09-22 Hollis Blanchard <hollis@penguinppc.org>
  34343. * commands/ls.c (grub_ls_list_files): Use the string following the
  34344. initial ')', if present, as the filesystem path.
  34345. * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
  34346. * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
  34347. 2004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
  34348. Make the source code of the menu interface more readable.
  34349. * normal/menu.c: Include grub/mm.h.
  34350. (TERM_WIDTH): New macro.
  34351. (TERM_HEIGHT): Likewise.
  34352. (TERM_INFO_HEIGHT): Likewise.
  34353. (TERM_MARGIN): Likewise.
  34354. (TERM_SCROLL_WIDTH): Likewise.
  34355. (TERM_TOP_BORDER_Y): Likewise.
  34356. (TERM_LEFT_BORDER_X): Likewise.
  34357. (TERM_BORDER_WIDTH): Likewise.
  34358. (TERM_MESSAGE_HEIGHT): Likewise.
  34359. (TERM_BORDER_HEIGHT): Likewise.
  34360. (TERM_NUM_ENTRIES): Likewise.
  34361. (TERM_FIRST_ENTRY_Y): Likewise.
  34362. (TERM_ENTRY_WIDTH): Likewise.
  34363. (TERM_CURSOR_X): Likewise.
  34364. (draw_border): Use macros instead of magic numbers.
  34365. (print_entry): Likewise.
  34366. (print_entries): Likewise.
  34367. (run_menu): Likewise. Also, handle the key 'e'.
  34368. (run_menu_entry): Ignore empty command lines.
  34369. (print_message): Added a new argument EDIT. If EDIT is true,
  34370. print a different message.
  34371. (init_page): Likewise.
  34372. (edit_menu_entry): New function. Not implemented yet.
  34373. 2004-09-17 Marco Gerards <metgerards@student.han.nl>
  34374. Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
  34375. can be loaded from normal mode.
  34376. * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
  34377. `multiboot.mod'.
  34378. (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
  34379. (multiboot_mod_CFLAGS): New variables.
  34380. * loader/i386/pc/linux_normal.c: New file.
  34381. * loader/i386/pc/multiboot_normal.c: Likewise.
  34382. * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
  34383. attribute `unused'.
  34384. * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
  34385. `fdiro' to read the mode information from instead of `diro'.
  34386. * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
  34387. looking up a symlink.
  34388. * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
  34389. macro.
  34390. * normal/command.c (grub_command_execute): Don't parse the
  34391. arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
  34392. flags of the command.
  34393. * normal/menu.c (grub_menu_run): Fix typo.
  34394. 2004-09-14 Hollis Blanchard <hollis@penguinppc.org>
  34395. * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
  34396. * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
  34397. `y + 1' instead of `y - 1'.
  34398. * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
  34399. 2004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
  34400. From Hollis Blanchard <hollis@penguinppc.org>:
  34401. * kern/misc.c (memmove): New alias for grub_memmove.
  34402. (memcmp): New alias for grub_memcmp.
  34403. (memset): New alias for grub_memset.
  34404. * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
  34405. Change "int handle" to "grub_ieee1275_phandle_t handle".
  34406. * include/grub/powerpc/ieee1275/ieee1275.h
  34407. (grub_ieee1275_get_property): Likewise.
  34408. 2004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
  34409. Added normal mode command `chainloader' as module chain.mod, which
  34410. depends on normal.mod and _chain.mod.
  34411. * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
  34412. (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
  34413. * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
  34414. Deleted prototype.
  34415. * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
  34416. but arguments parsing moved to ...
  34417. (grub_chainloader_cmd): ... here. New function.
  34418. * include/grub/i386/pc/chainloader.h: New file.
  34419. * loader/i386/pc/chainloader_normal.c: Likewise.
  34420. 2004-09-11 Marco Gerards <metgerards@student.han.nl>
  34421. * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
  34422. (grub_mkimage_LDFLAGS): Likewise.
  34423. (grub_emu_SOURCES): Likewise.
  34424. (kernel_img_HEADERS): Added fshelp.h.
  34425. * fs/ext2.c: Include <grub/fshelp.h>.
  34426. (FILETYPE_REG): New macro.
  34427. (FILETYPE_INO_REG): Likewise.
  34428. (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
  34429. Changed all users.
  34430. (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
  34431. all users.
  34432. (grub_fshelp_node): New struct.
  34433. (grub_ext2_data): Added member `diropen'. Changed member `inode'
  34434. to a pointer.
  34435. (grub_ext2_get_file_block): Removed function.
  34436. (grub_ext2_read_block): New function.
  34437. (grub_ext2_read_file): Replaced parameter `data' by `node'.
  34438. This function was written.
  34439. (grub_ext2_mount): Read the root inode. Create a diropen struct.
  34440. (grub_ext2_find_file): Removed function.
  34441. (grub_ext2_read_symlink): New function.
  34442. (grub_ext2_iterate_dir): Likewise.
  34443. (grub_ext2_open): Rewritten.
  34444. (grub_ext2_dir): Rewritten.
  34445. * include/grub/fshelp.h: New file.
  34446. * fs/fshelp.c: Likewise.
  34447. 2004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
  34448. * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
  34449. (print_message): Add a missing newline.
  34450. (run_menu): Added timeout support.
  34451. (run_menu_entry): New local function.
  34452. (grub_menu_run): Added support for booting.
  34453. * kern/loader.c (grub_loader_is_loaded): New function.
  34454. * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
  34455. (grub_get_rtc): Exported.
  34456. * include/grub/i386/pc/time.h: Include grub/symbol.h.
  34457. (grub_get_rtc): Exported.
  34458. * include/grub/normal.h (struct grub_command_list): Remove
  34459. constant from the member `command'.
  34460. * include/grub/loader.h (grub_loader_is_loaded): Declared.
  34461. * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
  34462. * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
  34463. 2004-08-28 Marco Gerards <metgerards@student.han.nl>
  34464. Add support for the JFS filesystem.
  34465. * fs/jfs.c: New file.
  34466. * include/grub/fs.h (grub_jfs_init): New prototype.
  34467. (grub_jfs_fini): New prototype.
  34468. * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
  34469. (grub_emu_SOURCES): Likewise.
  34470. (pkgdata_MODULES): Add jfs.mod.
  34471. (jfs_mod_SOURCES): New variable.
  34472. (jfs_mod_CFLAGS): Likewise.
  34473. * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
  34474. (grubof_SOURCES): Likewise.
  34475. * util/grub-emu.c (main): Initialize and deinitialize JFS support.
  34476. * fs/fat.c (grub_fat_find_dir): Convert the filename little
  34477. endian to the host endian.
  34478. (grub_fat_utf16_to_utf8): Move function from there...
  34479. * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
  34480. the endianness of the source string anymore.
  34481. * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
  34482. 2004-08-24 Marco Gerards <metgerards@student.han.nl>
  34483. * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
  34484. (grub_boot_fini) [GRUB_UTIL]: Likewise.
  34485. (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
  34486. (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
  34487. * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
  34488. (grub_hfs_iterate_dir): Make the function static. Add prototypes
  34489. for `node_found' and `it_dir'.
  34490. (grub_hfs_dir): Add prototype for `dir_hook'.
  34491. * fs/minix.c (grub_minix_get_file_block): Add prototype for
  34492. `grub_get_indir'. Rename `indir' in two blocks to `indir16'
  34493. and `indir32' to silence a gcc warning.
  34494. * include/grub/fs.h (grub_hfs_init): New prototype.
  34495. (grub_hfs_fini): Likewise.
  34496. 2004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
  34497. Each disk device has its own id now. This is useful to make use
  34498. of multiple disk devices.
  34499. * include/grub/disk.h (grub_disk_dev_id): New enum.
  34500. (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
  34501. (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
  34502. * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
  34503. GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
  34504. * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
  34505. GRUB_DISK_DEVICE_OFDISK_ID as an id.
  34506. * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
  34507. GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
  34508. * include/grub/disk.h (struct grub_disk_dev): Added a new member
  34509. "id" which is used by the cache manager.
  34510. * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
  34511. of just "GRUB".
  34512. 2004-08-18 Marco Gerards <metgerards@student.han.nl>
  34513. * fs/hfs.c: New file.
  34514. * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
  34515. (grub_emu_SOURCES): Likewise.
  34516. (pkgdata_MODULES): Add hfs.mod.
  34517. * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
  34518. (grubof_SOURCES): Likewise.
  34519. * util/grub-emu.c (main): Initialize and deinitialize HFS support.
  34520. * include/grub/misc.h (grub_strncasecmp): Add prototype.
  34521. * kern/misc.c (grub_strncasecmp): Add function.
  34522. 2004-08-14 Marco Gerards <metgerards@student.han.nl>
  34523. * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
  34524. with parentheses.
  34525. * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
  34526. (grub_ext2_dir): In case the directory entry type is unknown, read
  34527. it from the inode.
  34528. 2004-08-02 Peter Bruin <pjbruin@dds.nl>
  34529. * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
  34530. grub_load_linux instead of grub_rescue_cmd_linux as second
  34531. argument of grub_rescue_register_command.
  34532. * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
  34533. 2004-07-27 Marco Gerards <metgerards@student.han.nl>
  34534. * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
  34535. function.
  34536. * commands/boot.c: Remove the check for `GRUB_UTIL'.
  34537. * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
  34538. `loader/powerpc/ieee1275/linux.c',
  34539. `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
  34540. * include/grub/powerpc/ieee1275/ieee1275.h
  34541. (grub_ieee1275_release): New prototype.
  34542. * include/grub/powerpc/ieee1275/loader.h: Rewritten.
  34543. * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
  34544. normal, boot, linux and linux_normal.
  34545. * loader/powerpc/ieee1275/linux.c: New file.
  34546. * loader/powerpc/ieee1275/linux_normal.c: Likewise.
  34547. 2004-07-12 Marco Gerards <metgerards@student.han.nl>
  34548. * normal/arg.c (grub_arg_parse): Correct error handling after
  34549. reallocating the argumentlist (check if `argl' is not null instead
  34550. of checking if `args' is not null).
  34551. * kern/mm.c (grub_realloc): Return the same pointer when using the
  34552. same region, instead of returning the header address.
  34553. 2004-07-11 Marco Gerards <metgerards@student.han.nl>
  34554. * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
  34555. one block instead of two when looking for the initial partition.
  34556. (grub_partition_probe): Initialize the local variable `p' with 0.
  34557. Use base 10 for the grub_strtoul call.
  34558. * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
  34559. need for one local variable.
  34560. (grub_strtoul): Don't add the new value to `num', instead of that
  34561. just assign it.
  34562. 2004-07-11 Marco Gerards <metgerards@student.han.nl>
  34563. * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
  34564. (pxeboot_img_SOURCES): New variable.
  34565. (pxeboot_img_ASFLAGS): Likewise.
  34566. (pxeboot_img_LDFLAGS): Likewise.
  34567. * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
  34568. GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
  34569. <lode_leroy@hotmail.com>.
  34570. 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
  34571. * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
  34572. there was no input.
  34573. 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
  34574. * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
  34575. the history buffer logic.
  34576. 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
  34577. * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
  34578. (FILETYPE_INO_SYMLINK): New macros.
  34579. (grub_ext2_find_file): Check if the node is a directory using the
  34580. inode stat information instead of using the filetype in the
  34581. dirent. Exclude the first character of an absolute symlink.
  34582. (grub_ext2_dir): Mask out the filetype part of the mode member of
  34583. the inode.
  34584. 2004-05-24 Marco Gerards <metgerards@student.han.nl>
  34585. Add support for UFS version 1 and 2. Add support for the minix
  34586. filesystem version 1 and 2, both the variants with 14 and 30 long
  34587. filenames.
  34588. * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
  34589. fs/minix.c.
  34590. (grub_emu_SOURCES): Likewise.
  34591. (pkgdata_MODULES): Add ufs.mod and minix.mod.
  34592. (ufs_mod_SOURCES): New variable.
  34593. (ufs_mod_CFLAGS): Likewise.
  34594. (minix_mod_SOURCES): Likewise.
  34595. (minix_mod_CFLAGS): Likewise.
  34596. * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
  34597. fs/minix.c.
  34598. (grubof_SOURCES): Likewise.
  34599. * fs/ufs.c: New file.
  34600. * fs/minix.c: New file.
  34601. * include/grub/fs.h (grub_ufs_init): New prototype.
  34602. (grub_ufs_fini): Likewise.
  34603. (grub_minix_init): Likewise.
  34604. (grub_minix_fini): Likewise.
  34605. * util/grub-emu.c (main): Initialize and deinitialize UFS and
  34606. minix fs.
  34607. 2004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
  34608. * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
  34609. commands/ls.c, commands/terminal.c, commands/boot.c,
  34610. commands/cmp.c and commands/cat.c.
  34611. (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
  34612. * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
  34613. "env.h"
  34614. 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
  34615. All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
  34616. and grub_, respectively. Because the conversion is trivial and
  34617. mechanical, I omit the details here. Please refer to the CVS
  34618. if you need more information.
  34619. 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
  34620. * include/pupa: Renamed to ...
  34621. * include/grub: ... this.
  34622. * util/i386/pc/pupa-mkimage.c: Renamed to ...
  34623. * util/i386/pc/grub-mkimage.c: ... this.
  34624. * util/i386/pc/pupa-setup.c: Renamed to ...
  34625. * util/i386/pc/grub-setup.c: ... this.
  34626. * util/pupa-emu.c: Renamed to ...
  34627. * util/grub-emu.c: ... this.
  34628. 2004-03-29 Marco Gerards <metgerards@student.han.nl>
  34629. Add support for the newworld apple macintosh (PPC). This has been
  34630. tested on the powerbook 2000 only. It only adds support for
  34631. generic ieee1275 functions, console and disk support. This should
  34632. be easy to port to other architectures with support for Open
  34633. Firmware.
  34634. * configure.ac: Accept the powerpc as host_cpu. In the case of
  34635. the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
  34636. specific tests are only executed while building for the i386.
  34637. Inverse test for crosscompile.
  34638. * genmk.rb (Utility): Allow assembler files.
  34639. * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
  34640. * conf/powerpc-ieee1275.rmk: New file.
  34641. * disk/powerpc/ieee1275/ofdisk.c: Likewise.
  34642. * disk/powerpc/ieee1275/partition.c: Likewise.
  34643. * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
  34644. * include/pupa/powerpc/ieee1275/console.h: Likewise.
  34645. * include/pupa/powerpc/ieee1275/partition.h: Likewise.
  34646. * include/pupa/powerpc/ieee1275/time.h: Likewise.
  34647. * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
  34648. * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
  34649. * include/pupa/powerpc/ieee1275/loader.h
  34650. * include/pupa/powerpc/setjmp.h: Likewise.
  34651. * include/pupa/powerpc/types.h: Likewise.
  34652. * kern/powerpc/ieee1275/init.c: Likewise.
  34653. * kern/powerpc/ieee1275/openfw.c: Likewise.
  34654. * term/powerpc/ieee1275/ofconsole.c: Likewise.
  34655. These files were written by Johan Rydberg
  34656. (jrydberg@night.trouble.net) and I only modified them slightly.
  34657. * boot/powerpc/ieee1275/cmain.c: New file.
  34658. * boot/powerpc/ieee1275/crt0.S: Likewise.
  34659. * boot/powerpc/ieee1275/ieee1275.c: Likewise.
  34660. * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
  34661. 2004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
  34662. * Makefile.in: Update copyright.
  34663. * genmodsrc.sh: Likewise.
  34664. * gensymlist.sh: Likewise.
  34665. * term/i386/pc/vga.c: Indent correctly.
  34666. * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
  34667. bugreporting address.
  34668. * util/i386/pc/pupa-setup.c (usage): Likewise,
  34669. (main): Call pupa_ext2_init and pupa_ext2_fini.
  34670. * fs/fat.c (log2): Renamed to ...
  34671. (fat_log2): ... this.
  34672. All callers changed.
  34673. * kern/misc.c (memcpy): Alias to pupa_memmove.
  34674. * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
  34675. lvalue cast.
  34676. * util/console.c (pupa_ncurses_fini): Return 0.
  34677. * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
  34678. Move fail label here.
  34679. [__GNU__]: Don't warn when using stat.
  34680. (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
  34681. (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
  34682. long int. Use strtol instead of strtoul.
  34683. 2004-03-14 Marco Gerards <metgerards@student.han.nl>
  34684. * commands/boot.c: New file.
  34685. * commands/cat.c: Likewise.
  34686. * commands/cmp.c: Likewise.
  34687. * commands/ls.c: Likewise.
  34688. * commands/terminal.c: Likewise.
  34689. * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
  34690. (pupa_register_command): Changed interface to match the new
  34691. argument parser.
  34692. (pupa_command_execute): Changed (almost rewritten) so it uses
  34693. pupa_split_command. Added support for setting variables using the
  34694. syntax `foo=bar'.
  34695. (rescue_command): Changed to work with the new argument parser.
  34696. (terminal_command): Moved from here to commands/terminal.c.
  34697. (set_command): New function.
  34698. (unset_command): New function.
  34699. (insmod_command): New function.
  34700. (rmmod_command): New function.
  34701. (lsmod_command): New function.
  34702. (pupa_command_init): Don't initialize the command terminal
  34703. anymore. Initialize the commands set, unset, insmod, rmmod and
  34704. lsmod.
  34705. * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
  34706. (kernel_img_HEADERS): Add arg.h and env.h.
  34707. (pupa_mkimage_LDFLAGS): Add kern/env.c.
  34708. (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
  34709. commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
  34710. normal/arg.c.
  34711. (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
  34712. terminal.mod.
  34713. (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
  34714. (boot_mod_SOURCES): New variable.
  34715. (terminal_mod_SOURCES): Likewise.
  34716. (ls_mod_SOURCES): Likewise.
  34717. (cmp_mod_SOURCES): Likewise.
  34718. (cat_mod_SOURCES): Likewise.
  34719. * normal/arg.c: New file.
  34720. * kern/env.c: Likewise.
  34721. * include/pupa/arg.h: Likewise.
  34722. * include/pupa/env.h: Likewise.
  34723. * font/manager.c (font_command): Changed to match argument parsing
  34724. interface changes.
  34725. (PUPA_MOD_INIT): Likewise.
  34726. * hello/hello.c (pupa_cmd_hello): Likewise.
  34727. (PUPA_MOD_INIT): Likewise.
  34728. * include/pupa/disk.h: Include <pupa/device.h>.
  34729. (pupa_print_partinfo): New prototype.
  34730. * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
  34731. (pupa_dl_get_prefix): Likewise.
  34732. * include/pupa/misc.h: Include <pupa/err.h>.
  34733. (pupa_isgraph): New prototype.
  34734. (pupa_isdigit): Likewise.
  34735. (pupa_split_cmdline): Likewise.
  34736. * include/pupa/normal.h: Include <pupa/arg.h>.
  34737. (pupa_command): Changed the prototype of the member `func' to
  34738. match the argument parsing interface. Added member `options'.
  34739. (pupa_register_command): Updated to match function.
  34740. (pupa_arg_parse): New prototype.
  34741. (pupa_hello_init) [PUPA_UTIL]: New prototype.
  34742. (pupa_hello_fini) [PUPA_UTIL]: Likewise.
  34743. (pupa_ls_init) [PUPA_UTIL]: Likewise.
  34744. (pupa_ls_fini) [PUPA_UTIL]: Likewise.
  34745. (pupa_cat_init) [PUPA_UTIL]: Likewise.
  34746. (pupa_cat_fini) [PUPA_UTIL]: Likewise.
  34747. (pupa_boot_init) [PUPA_UTIL]: Likewise.
  34748. (pupa_boot_fini) [PUPA_UTIL]: Likewise.
  34749. (pupa_cmp_init) [PUPA_UTIL]: Likewise.
  34750. (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
  34751. (pupa_terminal_init) [PUPA_UTIL]: Likewise.
  34752. (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
  34753. * kern/disk.c: Include <pupa/file.h>.
  34754. (pupa_print_partinfo): New function.
  34755. * kern/dl.c: Include <pupa/env.h>.
  34756. (pupa_dl_dir): Variable removed.
  34757. (pupa_dl_load): Use the environment variable `prefix' instead of
  34758. the variable pupa_dl_dir.
  34759. (pupa_dl_set_prefix): Function removed.
  34760. (pupa_dl_get_prefix): Likewise.
  34761. * kern/i386/pc/init.c: Include <pupa/env.h>.
  34762. (pupa_machine_init): Use the environment variable `prefix' instead of
  34763. using pupa_dl_set_prefix to set the prefix.
  34764. * kern/main.c: Include <pupa/env.h>.
  34765. (pupa_set_root_dev): Use the environment variable `prefix' instead of
  34766. using pupa_dl_get_prefix to get the prefix.
  34767. * kern/misc.c: Include <pupa/env.h>.
  34768. (pupa_isdigit): New function.
  34769. (pupa_isgraph): Likewise.
  34770. (pupa_ftoa): Likewise.
  34771. (pupa_vsprintf): Added support for printing values of the type
  34772. `double'. Make it possible to format variable output when using
  34773. formatting like `%1.2%f'.
  34774. (pupa_split_cmdline): New function.
  34775. * kern/rescue.c: Include <pupa/env.h>.
  34776. (next_word): Removed function.
  34777. (pupa_rescue_cmd_prefix): Likewise.
  34778. (pupa_rescue_cmd_set): New function.
  34779. (pupa_rescue_cmd_unset): New function.
  34780. (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
  34781. split the command line instead of splitting it here. Added
  34782. support for setting variables using the syntax `foo=bar'. Don't
  34783. initialize the prefix command anymore. Initialized the set and
  34784. unset commands.
  34785. * normal/cmdline.c: Include <pupa/env.h>.
  34786. (pupa_tab_complete): Added prototypes for print_simple_completion,
  34787. print_partition_completion, add_completion, iterate_commands,
  34788. iterate_dev, iterate_part and iterate_dir. Moved code to print
  34789. partition information from here to kern/disk.c.
  34790. (pupa_cmdline_run): Don't check if the function exists anymore.
  34791. * normal/main.c: Include <pupa/env.h>.
  34792. (pupa_rescue_cmd_normal): Use the environment variable `prefix'
  34793. instead of using pupa_dl_get_prefix to get the prefix.
  34794. * term/i386/pc/vga.c: Include <pupa/arg.h>.
  34795. (check_vga_mem): Cast pointers to `void *' to silence a gcc
  34796. warning.
  34797. (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
  34798. (pupa_vga_setcolor): Declare unused variables with `__attribute__
  34799. ((unused))' to silence a gcc warning.
  34800. (pupa_vga_setcolor): Likewise.
  34801. (debug_command): Changed to match argument parsing
  34802. interface changes.
  34803. * util/pupa-emu.c: Include <pupa/env.h>.
  34804. (options): Added 0's for unused fields to silence a gcc warning.
  34805. (argp): Likewise.
  34806. (main): Use the environment variable `prefix' instead of using
  34807. pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
  34808. boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
  34809. and terminal.
  34810. * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
  34811. * util/misc.c: Include <malloc.h>.
  34812. (pupa_malloc): Rewritten so errors are correctly reported.
  34813. (pupa_realloc): Likewise.
  34814. (pupa_memalign): Likewise.
  34815. (pupa_mm_init_region): Declare unused variables with
  34816. `__attribute__ ((unused))' to silence a gcc warning.
  34817. * normal/i386/setjmp.S: Remove tab at the end of the file to
  34818. silence a gcc warning.
  34819. * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
  34820. variables with `__attribute__ ((unused))' to silence a gcc
  34821. warning.
  34822. * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
  34823. local variable i unsigned to silence a gcc warning.
  34824. * kern/term.c: Include <pupa/misc.h>.
  34825. (pupa_more_lines): New variable.
  34826. (pupa_more): Likewise.
  34827. (pupa_putcode): When the pager is active pause at the end of every
  34828. screen.
  34829. (pupa_set_more): New function.
  34830. * include/pupa/term.h (pupa_set_more): New prototype.
  34831. 2004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
  34832. Now this project is GRUB 2 rather than PUPA. The location of
  34833. the CVS repository was moved to GRUB's.
  34834. * configure.ac: Use bug-grub as the reporting address.
  34835. Use GRUB instead of PUPA.
  34836. Change the version number to 1.90.
  34837. 2004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
  34838. * genkernsyms.sh: Updated copyright information.
  34839. * genmk.rb: Likewise.
  34840. * genmodsrc.sh: Likewise.
  34841. * gensymlist.sh: Likewise.
  34842. * boot/i386/pc/boot.S: Likewise.
  34843. * boot/i386/pc/diskboot.S: Likewise.
  34844. * disk/i386/pc/biosdisk.c: Likewise.
  34845. * disk/i386/pc/partition.c: Likewise.
  34846. * font/manager.c: Likewise.
  34847. * fs/ext2.c: Likewise.
  34848. * fs/fat.c: Likewise.
  34849. * include/pupa/boot.h: Likewise.
  34850. * include/pupa/device.h: Likewise.
  34851. * include/pupa/disk.h: Likewise.
  34852. * include/pupa/dl.h: Likewise.
  34853. * include/pupa/elf.h: Likewise.
  34854. * include/pupa/err.h: Likewise.
  34855. * include/pupa/file.h: Likewise.
  34856. * include/pupa/font.h: Likewise.
  34857. * include/pupa/fs.h: Likewise.
  34858. * include/pupa/kernel.h: Likewise.
  34859. * include/pupa/loader.h: Likewise.
  34860. * include/pupa/misc.h: Likewise.
  34861. * include/pupa/mm.h: Likewise.
  34862. * include/pupa/net.h: Likewise.
  34863. * include/pupa/normal.h: Likewise.
  34864. * include/pupa/rescue.h: Likewise.
  34865. * include/pupa/setjmp.h: Likewise.
  34866. * include/pupa/symbol.h: Likewise.
  34867. * include/pupa/term.h: Likewise.
  34868. * include/pupa/types.h: Likewise.
  34869. * include/pupa/i386/setjmp.h: Likewise.
  34870. * include/pupa/i386/types.h: Likewise.
  34871. * include/pupa/i386/pc/biosdisk.h: Likewise.
  34872. * include/pupa/i386/pc/boot.h: Likewise.
  34873. * include/pupa/i386/pc/console.h: Likewise.
  34874. * include/pupa/i386/pc/init.h: Likewise.
  34875. * include/pupa/i386/pc/kernel.h: Likewise.
  34876. * include/pupa/i386/pc/linux.h: Likewise.
  34877. * include/pupa/i386/pc/loader.h: Likewise.
  34878. * include/pupa/i386/pc/memory.h: Likewise.
  34879. * include/pupa/i386/pc/multiboot.h: Likewise.
  34880. * include/pupa/i386/pc/partition.h: Likewise.
  34881. * include/pupa/i386/pc/time.h: Likewise.
  34882. * include/pupa/i386/pc/vga.h: Likewise.
  34883. * include/pupa/i386/pc/util/biosdisk.h: Likewise.
  34884. * include/pupa/util/getroot.h: Likewise.
  34885. * include/pupa/util/misc.h: Likewise.
  34886. * include/pupa/util/resolve.h: Likewise.
  34887. * kern/device.c: Likewise.
  34888. * kern/disk.c: Likewise.
  34889. * kern/dl.c: Likewise.
  34890. * kern/err.c: Likewise.
  34891. * kern/file.c: Likewise.
  34892. * kern/fs.c: Likewise.
  34893. * kern/loader.c: Likewise.
  34894. * kern/main.c: Likewise.
  34895. * kern/misc.c: Likewise.
  34896. * kern/mm.c: Likewise.
  34897. * kern/rescue.c: Likewise.
  34898. * kern/term.c: Likewise.
  34899. * kern/i386/dl.c: Likewise.
  34900. * kern/i386/pc/init.c: Likewise.
  34901. * kern/i386/pc/lzo1x.S: Likewise.
  34902. * kern/i386/pc/startup.S: Likewise.
  34903. * loader/i386/pc/chainloader.c: Likewise.
  34904. * loader/i386/pc/linux.c: Likewise.
  34905. * loader/i386/pc/multiboot.c: Likewise.
  34906. * normal/cmdline.c: Likewise.
  34907. * normal/command.c: Likewise.
  34908. * normal/main.c: Likewise.
  34909. * normal/menu.c: Likewise.
  34910. * normal/i386/setjmp.S: Likewise.
  34911. * term/i386/pc/console.c: Likewise.
  34912. * term/i386/pc/vga.c: Likewise.
  34913. * util/console.c: Likewise.
  34914. * util/genmoddep.c: Likewise.
  34915. * util/misc.c: Likewise.
  34916. * util/pupa-emu.c: Likewise.
  34917. * util/resolve.c: Likewise.
  34918. * util/unifont2pff.rb: Likewise.
  34919. * util/i386/pc/biosdisk.c: Likewise.
  34920. * util/i386/pc/getroot.c: Likewise.
  34921. * util/i386/pc/pupa-mkimage.c: Likewise.
  34922. * util/i386/pc/pupa-setup.c: Likewise.
  34923. 2004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
  34924. * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
  34925. when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
  34926. callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
  34927. reading and reset it after reading.
  34928. (pupa_ext2_close): Return PUPA_ERR_NONE.
  34929. * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
  34930. Correct value.
  34931. (struct linux_kernel_header): Add kernel_version and
  34932. initrd_addr_max.
  34933. * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
  34934. pupa_file_read succeeds.
  34935. (pupa_rescue_cmd_initrd): Implement.
  34936. 2003-12-03 Marco Gerards <metgerards@student.han.nl>
  34937. * fs/ext2.c (pupa_ext2_label): New function.
  34938. (pupa_ext2_fs): Added label.
  34939. * fs/fat.c (pupa_fat_label): New function.
  34940. (pupa_fat_fs): Added label.
  34941. * include/pupa/fs.h (struct pupa_fs): Added prototype label.
  34942. * kern/misc.c (pupa_strndup): New function.
  34943. * include/pupa/misc.h (pupa_strndup): New prototype.
  34944. * include/pupa/normal.h: Include <pupa/err.h>.
  34945. (pupa_set_history): New prototype.
  34946. (pupa_iterate_commands): New prototype.
  34947. * normal/cmdline.c: Include <pupa/machine/partition.h>,
  34948. <pupa/disk.h>, <pupa/file.h>.
  34949. (hist_size): New variable.
  34950. (hist_lines): Likewise.
  34951. (hist_end): Likewise.
  34952. (hist_used): Likewise.
  34953. (pupa_set_history): New function.
  34954. (pupa_history_get): Likewise.
  34955. (pupa_history_add): Likewise.
  34956. (pupa_history_replace): Likewise.
  34957. (pupa_tab_complete): Likewise.
  34958. (pupa_cmdline_run): Added tab completion and history buffer. Tab
  34959. completion shows partitionnames while completing partitions, this
  34960. feature was suggested by Jeff Bailey.
  34961. * normal/command.c (pupa_iterate_commands): New function.
  34962. * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
  34963. (pupa_normal_init): Initialize history buffer.
  34964. (PUPA_MOD_INIT): Likewise.
  34965. (pupa_normal_fini): Free the history buffer.
  34966. (PUPA_MOD_FINI): Likewise.
  34967. * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
  34968. key.
  34969. * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
  34970. * configure.ac [i386]: Check for regparam bug.
  34971. (NESTED_FUNC_ATTR) [! i386]: Defined.
  34972. 2003-11-17 Marco Gerards <metgerards@student.han.nl>
  34973. * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
  34974. (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
  34975. (pupa_emu_SOURCES): New variable.
  34976. (pupa_emu_LDFLAGS): Likewise.
  34977. * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
  34978. (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
  34979. * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
  34980. (pupa_normal_fini) [PUPA_UTIL]: Likewise.
  34981. * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
  34982. (pupa_jmp_buf): New typedef.
  34983. (pupa_setjmp) [PUPA_UTIL]: New macro.
  34984. (pupa_longjmp) [PUPA_UTIL]: Likewise.
  34985. * include/pupa/term.h (struct pupa_term): New member `refresh'.
  34986. (pupa_refresh): New prototype.
  34987. * include/pupa/util/getroot.h: New file.
  34988. * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
  34989. it.
  34990. * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
  34991. (pupa_rescue_cmd_cat): Likewise.
  34992. (pupa_rescue_cmd_ls): Likewise.
  34993. (pupa_rescue_cmd_testload): Likewise.
  34994. (pupa_rescue_cmd_lsmod): Likewise.
  34995. * normal/cmdline.c (pupa_cmdline_get): Likewise.
  34996. * normal/menu.c (run_menu): Likewise.
  34997. * kern/term.c (pupa_cls): Likewise.
  34998. (pupa_refresh): New function.
  34999. * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
  35000. (pupa_normal_fini) [PUPA_UTIL]: Likewise.
  35001. * util/console.c: New file.
  35002. * util/i386/pc/getroot.c: New file.
  35003. * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
  35004. (pupa_putchar): New function.
  35005. (pupa_refresh): Likewise.
  35006. (xgetcwd): Function moved to ...
  35007. (strip_extra_slashes): Likewise.
  35008. (get_prefix): Likewise.
  35009. * util/i386/pc/getroot.c: ... here.
  35010. (find_root_device): Function moved and renamed to...
  35011. * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
  35012. Changed all callers.
  35013. * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
  35014. and renamed to...
  35015. * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
  35016. Changed all callers.
  35017. * util/misc.c (pupa_memalign): New function.
  35018. (pupa_mm_init_region): Likewise.
  35019. (pupa_register_exported_symbols): Likewise.
  35020. (pupa_putchar): Function removed.
  35021. * util/pupa-emu.c: New file.
  35022. 2003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
  35023. * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
  35024. (_multiboot_mod_SOURCES): New variable.
  35025. (_multiboot_mod_CFLAGS): Likewise.
  35026. * loader/i386/pc/multiboot.c: New file.
  35027. * include/pupa/i386/pc/multiboot.h: Likewise.
  35028. * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
  35029. (pupa_multiboot_real_boot): New function.
  35030. * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
  35031. (pupa_multiboot_real_boot): New prototype.
  35032. (pupa_rescue_cmd_multiboot): Likewise
  35033. (pupa_rescue_cmd_module): Likewise.
  35034. * kern/loader.c (pupa_loader_set): Continue when
  35035. pupa_loader_unload_func() fails.
  35036. (pupa_loader_unset): New function.
  35037. * include/pupa/loader.h (pupa_loader_unset): New prototype.
  35038. * kern/misc.c (pupa_stpcpy): New function.
  35039. * include/pupa/misc.h (pupa_stpcpy): New prototype.
  35040. 2003-11-12 Marco Gerards <metgerards@student.han.nl>
  35041. * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
  35042. for available extensions.
  35043. * include/pupa/i386/pc/time.h: New file.
  35044. * kern/disk.c: Include <pupa/machine/time.h>.
  35045. (PUPA_CACHE_TIMEOUT): New macro.
  35046. (pupa_last_time): New variable.
  35047. (pupa_disk_open): Flush the cache when there was a timeout.
  35048. (pupa_disk_close): Reset the timer.
  35049. * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
  35050. pupa_currticks.
  35051. * util/misc.c: Include <sys/times.h>
  35052. (pupa_get_rtc): New function.
  35053. 2003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
  35054. * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
  35055. as blocks.
  35056. (pupa_ext2_get_file_block): Use blocks member.
  35057. * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
  35058. first block. Return -1 instead of pupa_errno on error.
  35059. 2003-10-27 Marco Gerards <metgerards@student.han.nl>
  35060. * README: In the pupa-mkimage example use _chain instead of chain
  35061. and ext2 instead of fat.
  35062. * TODO: Replace ext2fs with jfs as an example. Add an item for
  35063. adding journal playback for ext2fs.
  35064. * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
  35065. (pkgdata_MODULES): Added ext2.mod.
  35066. (ext2_mod_SOURCES): New variable.
  35067. (ext2_mod_CFLAGS): Likewise.
  35068. * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
  35069. * include/pupa/misc.h (pupa_strncpy): New prototype.
  35070. (pupa_strcat): Likewise.
  35071. (pupa_strncmp): Likewise.
  35072. * kern/misc.c (pupa_strcat): Enable function.
  35073. (pupa_strncpy): New function.
  35074. (pupa_strncmp): Likewise.
  35075. * fs/ext2.c: New file.
  35076. * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
  35077. when the read failed before retrying.
  35078. * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
  35079. (_FILE_OFFSET_BITS): Likewise.
  35080. * configure.ac: Added AC_SYS_LARGEFILE.
  35081. 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
  35082. * genmk.rb (PModule#rule): Make sure to get only symbol names
  35083. from the output of nm.
  35084. Reported by Robert Millan <rmh.grub@aybabtu.com>.
  35085. 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
  35086. I forgot to check in these changes for a long time. This adds
  35087. incomplete support for VGA console, and this is still very
  35088. buggy. Also, a lot of consideration is required for I18N,
  35089. UNICODE, and VGA font issues. Therefore, assume that this is
  35090. such that "better than nothing".
  35091. * font/manager.c: New file.
  35092. * include/pupa/font.h: Likewise.
  35093. * include/pupa/i386/pc/vga.h: Likewise.
  35094. * term/i386/pc/vga.c: Likewise.
  35095. * util/unifont2pff.rb: Likewise.
  35096. * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
  35097. (pkgdata_MODULES): Added vga.mod and font.mod.
  35098. (vga_mod_SOURCES): New variables.
  35099. (vga_mod_CFLAGS): Likewise.
  35100. (font_mod_SOURCES): Likewise.
  35101. (font_mod_CFLAGS): Likewise.
  35102. * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
  35103. * include/pupa/term.h: Include pupa/err.h.
  35104. (struct pupa_term): Added init and fini.
  35105. Changed the argument of putchar to pupa_uint32_t.
  35106. * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
  35107. (pupa_console_real_putchar): New prototype.
  35108. (pupa_console_putchar): Removed.
  35109. (pupa_console_checkkey): Exported.
  35110. (pupa_console_getkey): Likewise.
  35111. * kern/misc.c (pupa_vsprintf): Add support for UNICODE
  35112. characters.
  35113. * kern/term.c (pupa_term_set_current): Rewritten.
  35114. (pupa_putchar): Likewise.
  35115. (pupa_putcode): New function.
  35116. * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
  35117. (pupa_console_real_putchar): ... this.
  35118. (pupa_vga_set_mode): New function.
  35119. (pupa_vga_get_font): Likewise.
  35120. * normal/command.c: Include pupa/term.h.
  35121. (terminal_command): New function.
  35122. (pupa_command_init): Register the command "terminal".
  35123. * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
  35124. (DISP_UP): Likewise.
  35125. (DISP_RIGHT): Likewise.
  35126. (DISP_DOWN): Likewise.
  35127. (DISP_HLINE): Likewise.
  35128. (DISP_VLINE): Likewise.
  35129. (DISP_UL): Likewise.
  35130. (DISP_UR): Likewise.
  35131. (DISP_LL): Likewise.
  35132. (DISP_LR): Likewise.
  35133. * term/i386/pc/console.c (pupa_console_putchar): New function.
  35134. 2003-02-08 NIIBE Yutaka <gniibe@m17n.org>
  35135. * util/resolve.c (pupa_util_resolve_dependencies): BUG
  35136. FIX. Reverse the path_list.
  35137. * include/pupa/normal.h: Export pupa_register_command and
  35138. pupa_unregister_command.
  35139. * hello/hello.c (pupa_cmd_hello): New module.
  35140. * conf/i386-pc.rmk: Added hello.mod.
  35141. 2003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
  35142. * kern/i386/pc/lzo1x.S: New file.
  35143. * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
  35144. (compress_kernel): New variable.
  35145. (generate_image): Heavily modified to support compressing a
  35146. large part of the core image.
  35147. * util/misc.c (pupa_util_read_image): Fix a file descriptor
  35148. leak.
  35149. (pupa_util_load_image): New function.
  35150. * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
  35151. (pupa_compressed_size): New variable.
  35152. (codestart): Enable Gate A20 here.
  35153. Decompress the compressed part of the core image.
  35154. Rearrange the code to put functions and variables which are
  35155. required for initialization in the non-compressed part.
  35156. Include lzo1x.S.
  35157. * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
  35158. here.
  35159. * include/pupa/util/misc.h (pupa_util_write_image): Declared.
  35160. * include/pupa/i386/pc/kernel.h
  35161. (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
  35162. (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
  35163. (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
  35164. (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
  35165. (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
  35166. * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
  35167. * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
  35168. (Utility#rule): Likewise.
  35169. * configure.ac: Check if LZO is available.
  35170. 2003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
  35171. * include/pupa/normal.h: New file.
  35172. * include/pupa/setjmp.h: Likewise.
  35173. * include/pupa/i386/setjmp.h: Likewise.
  35174. * normal/cmdline.c: Likewise.
  35175. * normal/command.c: Likewise.
  35176. * normal/main.c: Likewise.
  35177. * normal/menu.c: Likewise.
  35178. * normal/i386/setjmp.S: Likewise.
  35179. * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
  35180. (pupa_rescue_cmd_initrd): Likewise.
  35181. * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
  35182. Likewise.
  35183. * kern/i386/pc/startup.S (translation_table): New variable.
  35184. (translate_keycode): New function.
  35185. (pupa_console_getkey): Call translate_keycode.
  35186. * kern/rescue.c (attempt_normal_mode): New function.
  35187. (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
  35188. it failed, print a message.
  35189. * kern/mm.c (pupa_real_malloc): Print more information when a
  35190. free magic is broken.
  35191. (pupa_free): If the first free header is not free actually, set
  35192. it to P.
  35193. * kern/main.c (pupa_load_normal_mode): Just load the module
  35194. "normal".
  35195. (pupa_main): Don't print the message
  35196. "Entering into rescue mode..." here.
  35197. * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
  35198. Declared.
  35199. (pupa_rescue_cmd_initrd): Likewise.
  35200. (pupa_rescue_cmd_initrd): Likewise.
  35201. * include/pupa/symbol.h (FUNCTION): Specify the type.
  35202. (VARIABLE): Likewise.
  35203. * include/pupa/err.h (pupa_err_t): Added
  35204. PUPA_ERR_UNKNOWN_COMMAND.
  35205. * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
  35206. (pupa_dl_get_prefix): Likewise.
  35207. * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
  35208. Added _chain.mod and _linux.mod instead of chain.mod and
  35209. linux.mod.
  35210. (chain_mod_SOURCES): Renamed to ...
  35211. (_chain_mod_SOURCES): ... this.
  35212. (chain_mod_CFLAGS): Renamed to ...
  35213. (_chain_mod_CFLAGS): ... this.
  35214. (linux_mod_SOURCES): Renamed to ...
  35215. (_linux_mod_SOURCES): ... this.
  35216. (linux_mod_CFLAGS): Renamed to ...
  35217. (_linux_mod_CFLAGS): ... this.
  35218. (normal_mod_SOURCES): New variable.
  35219. (normal_mod_CFLAGS): Likewise.
  35220. (normal_mod_ASFLAGS): Likewise.
  35221. 2003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
  35222. * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
  35223. possible.
  35224. * kern/dl.c (pupa_dl_ref): Refer depending modules
  35225. recursively.
  35226. (pupa_dl_unref): Unrefer depending modules recursively.
  35227. Don't call pupa_dl_unload implicitly, because PUPA can crash if
  35228. a module is unloaded before one depending on that module is
  35229. unloaded.
  35230. (pupa_dl_unload): Unload depending modules explicitly,
  35231. if possible.
  35232. 2003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
  35233. * include/pupa/i386/pc/linux.h: New file.
  35234. * loader/i386/pc/linux.c: Likewise.
  35235. * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
  35236. Removed.
  35237. (pupa_chainloader_unload): Return PUPA_ERR_NONE.
  35238. (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
  35239. of PUPA_CHAINLOADER_BOOT_SECTOR.
  35240. * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
  35241. (pupa_linux_prot_size): New variable.
  35242. (pupa_linux_tmp_addr): Likewise.
  35243. (pupa_linux_real_addr): Likewise.
  35244. (pupa_linux_boot_zimage): New function.
  35245. (pupa_linux_boot_bzimage): Likewise.
  35246. * kern/i386/pc/init.c (struct mem_region): New structure.
  35247. (MAX_REGIONS): New macro.
  35248. (mem_regions): New variable.
  35249. (num_regions): Likewise.
  35250. (pupa_os_area_addr): Likewise.
  35251. (pupa_os_area_size): Likewise.
  35252. (pupa_lower_mem): Likewise.
  35253. (pupa_upper_mem): Likewise.
  35254. (add_mem_region): New function.
  35255. (compact_mem_regions): Likewise.
  35256. (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
  35257. the size of the conventional memory and that of so-called upper
  35258. memory (before the first memory hole).
  35259. Instead of adding each found region to free memory, use
  35260. add_mem_region and add them after removing overlaps.
  35261. Also, add only 1/4 of the upper memory to free memory. The rest
  35262. is used for loading OS images. Maybe this is ad hoc, but this
  35263. makes it much easier to relocate OS images when booting.
  35264. * kern/rescue.c (pupa_rescue_cmd_module): Removed.
  35265. (pupa_enter_rescue_mode): Don't register initrd and module.
  35266. * kern/mm.c: Include pupa/dl.h.
  35267. * kern/main.c: Include pupa/file.h and pupa/device.h.
  35268. * kern/loader.c (pupa_loader_load_module_func): Removed.
  35269. (pupa_loader_load_module): Likewise.
  35270. * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
  35271. ``.o''.
  35272. * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
  35273. (pupa_linux_tmp_addr): Likewise.
  35274. (pupa_linux_real_addr): Likewise.
  35275. (pupa_linux_boot_zimage): Likewise.
  35276. (pupa_linux_boot_bzimage): Likewise.
  35277. * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
  35278. (pupa_upper_mem): Likewise.
  35279. (pupa_gate_a20): Don't export, because turning off Gate A20 in a
  35280. module is too dangerous.
  35281. * include/pupa/loader.h (pupa_os_area_addr): Declared.
  35282. (pupa_os_area_size): Likewise.
  35283. (pupa_loader_set): Remove the first argument. Loader doesn't
  35284. manage modules or initrd any longer.
  35285. (pupa_loader_load_module): Removed.
  35286. * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
  35287. (linux_mod_SOURCES): New variable.
  35288. (linux_mod_CFLAGS): Likewise.
  35289. 2003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
  35290. * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
  35291. the length of a blocklist correctly.
  35292. * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
  35293. Use ioctl only if the OS file is a block device.
  35294. (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
  35295. not very useful for normal files.
  35296. * kern/main.c (pupa_set_root_dev): New function.
  35297. (pupa_load_normal_mode): Likewise.
  35298. (pupa_main): Call those above.
  35299. * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
  35300. pupa_uint16_t.
  35301. * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
  35302. 2003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
  35303. * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
  35304. (setup): Configure the installed partition information and the
  35305. dl prefix.
  35306. * loader/i386/pc/chainloader.c (my_mod): New variable.
  35307. (pupa_chainloader_unload): New function.
  35308. (pupa_rescue_cmd_chainloader): Refer itself.
  35309. (PUPA_MOD_INIT): Save its own module in MY_MOD.
  35310. * kern/i386/pc/startup.S (install_partition): Removed.
  35311. (version_string): Likewise.
  35312. (config_file): Likewise.
  35313. (pupa_install_dos_part): New variable.
  35314. (pupa_install_bsd_part): Likewise.
  35315. (pupa_prefix): Likewise.
  35316. (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
  35317. * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
  35318. and pupa/misc.h.
  35319. (make_install_device): New function.
  35320. (pupa_machine_init): Set the dl prefix.
  35321. * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
  35322. (buf): Renamed to ...
  35323. (linebuf): ... this.
  35324. (pupa_rescue_cmd_prefix): New function.
  35325. (pupa_rescue_cmd_insmod): Likewise.
  35326. (pupa_rescue_cmd_rmmod): Likewise.
  35327. (pupa_rescue_cmd_lsmod): Likewise.
  35328. (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
  35329. rmmod and lsmod.
  35330. * kern/mm.c (pupa_memalign): If failed even after invalidating
  35331. disk caches, unload unneeded modules and retry.
  35332. * kern/misc.c (pupa_memmove): New function.
  35333. (pupa_memcpy): Removed.
  35334. (pupa_strcpy): New function.
  35335. (pupa_itoa): Made static.
  35336. * kern/dl.c (pupa_dl_iterate): New function.
  35337. (pupa_dl_ref): Likewise.
  35338. (pupa_dl_unref): Likewise.
  35339. (pupa_dl_unload): Return if succeeded or not.
  35340. (pupa_dl_unload_unneeded): New function.
  35341. (pupa_dl_unload_all): Likewise.
  35342. (pupa_dl_init): Renamed to ...
  35343. (pupa_dl_set_prefix): ... this.
  35344. (pupa_dl_get_prefix): New function.
  35345. * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
  35346. (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
  35347. (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
  35348. (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
  35349. (pupa_install_dos_part): Declared.
  35350. (pupa_install_bsd_part): Likewise.
  35351. (pupa_prefix): Likewise.
  35352. (pupa_boot_drive): Likewise.
  35353. * include/pupa/types.h: Fix a typo.
  35354. * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
  35355. pupa_memmove.
  35356. (pupa_memmove): Declared.
  35357. (pupa_strcpy): Likewise.
  35358. * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
  35359. pupa_mod_init takes one argument, its own module.
  35360. (pupa_dl_unload_unneeded): Declared.
  35361. (pupa_dl_unload_all): Likewise.
  35362. (pupa_dl_ref): Likewise.
  35363. (pupa_dl_unref): Likewise.
  35364. (pupa_dl_iterate): Likewise.
  35365. (pupa_dl_init): Renamed to ...
  35366. (pupa_dl_set_prefix): ... this.
  35367. (pupa_dl_get_prefix): Declared.
  35368. * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
  35369. (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
  35370. unloaded.
  35371. (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
  35372. (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
  35373. * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
  35374. -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
  35375. 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
  35376. * util/i386/pc/pupa-setup.c (setup): Define the internal
  35377. function find_first_partition_start at the top level, because GCC
  35378. 3.0.x cannot compile internal functions in deeper scopes
  35379. correctly.
  35380. (find_root_device): Use lstat instead of stat.
  35381. Don't follow symbolic links.
  35382. Fix the path-constructing code.
  35383. * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
  35384. (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
  35385. by a BLKGETSIZE ioctl first, because block devices don't fill
  35386. the member st_mode of the structure stat on Linux.
  35387. [__linux__] (linux_find_partition): Use a temporary buffer
  35388. REAL_DEV for the working space. Copy it to DEV before returning.
  35389. (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
  35390. buffer cache consistent.
  35391. (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
  35392. strncmp. The previous value was merely wrong.
  35393. (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
  35394. * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
  35395. FAT size is 12. The previous value was merely wrong.
  35396. * kern/main.c (pupa_main): Don't split the starting message from
  35397. newlines.
  35398. * kern/term.c (pupa_putchar): Put CR after LF instead of before
  35399. LF, because BIOS goes crazy about character attributes in this
  35400. case.
  35401. 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
  35402. * include/i386/pc/util/biosdisk.h: New file.
  35403. * util/i386/pc/biosdisk.c: Likewise.
  35404. * util/i386/pc/pupa-setup.c: Likewise.
  35405. * Makefile.in (INCLUDE_DISTFILES): Added
  35406. include/pupa/i386/pc/util/biosdisk.h.
  35407. (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
  35408. directory util/i386/pc.
  35409. (install-local): Added a rule for sbin_UTILITIES.
  35410. (uninstall): Likewise.
  35411. * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
  35412. * util/misc.c (xrealloc): New function.
  35413. (pupa_malloc): Likewise.
  35414. (pupa_free): Likewise.
  35415. (pupa_realloc): Likewise.
  35416. (pupa_stop): Likewise.
  35417. (pupa_putchar): Likewise.
  35418. * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
  35419. * include/pupa/util/misc.h (xrealloc): Declared.
  35420. * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
  35421. macro.
  35422. (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
  35423. (PUPA_BOOT_MACHINE_BPB_END): ... this.
  35424. * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
  35425. [PUPA_UTIL] (pupa_fat_fini): Likewise.
  35426. * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
  35427. way should be implemented.
  35428. [PUPA_UTIL] (pupa_fat_fini): Likewise.
  35429. * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
  35430. the size of NAME for safety.
  35431. (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
  35432. 0x88.
  35433. * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
  35434. (pupa_setup_SOURCES): Likewise.
  35435. * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
  35436. 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
  35437. * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
  35438. bunch of pushl's from pusha, because this destroys the return
  35439. value.
  35440. 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
  35441. Use -mrtd and -mregparm=3 to reduce the generated code sizes.
  35442. This means that any missing prototypes could be fatal. Also, you
  35443. must take care when writing assembly code. See the comments at
  35444. the beginning of startup.S, for more details.
  35445. * kern/i386/pc/startup.S (pupa_halt): Modified for the new
  35446. compilation mechanism.
  35447. (pupa_chainloader_real_boot): Likewise.
  35448. (pupa_biosdisk_rw_int13_extensions): Likewise.
  35449. (pupa_biosdisk_rw_standard): Likewise.
  35450. (pupa_biosdisk_check_int13_extensions): Likewise.
  35451. (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
  35452. (pupa_biosdisk_get_diskinfo_standard): Likewise.
  35453. (pupa_get_memsize): Likewise.
  35454. (pupa_get_mmap_entry): Likewise.
  35455. (pupa_console_putchar): Likewise.
  35456. (pupa_console_setcursor): Likewise.
  35457. (pupa_getrtsecs): Use pushl instead of push.
  35458. * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
  35459. memory instead of the stack for a mmap entry, because some
  35460. BIOSes may ignore the maximum size and overflow.
  35461. * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
  35462. * genmk.rb (PModule#rule): Compile automatically generated
  35463. sources with module-specific CFLAGS as well as other sources.
  35464. 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
  35465. * configure.ac: Check ld.
  35466. Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
  35467. respectively, before checking endianness and sizes.
  35468. * Makefile.in (LD): New variable.
  35469. 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
  35470. * Makefile.in (BUILD_CC): CC -> BUILD_CC.
  35471. 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
  35472. * Changelog: New file.