Hi Sasha, Am Mittwoch, den 10.10.2018, 09:51 +0200 schrieb Sascha Hauer: > > > > +static inline int hab_get_status(void) > > +{ > > + if (IS_ENABLED(CONFIG_MMU)) > > + return -EIO; > This restriction makes this patch rather unhandy to use. Internally we > use imx*_hab_get_status() indeed with MMU enabled and it works fine, but > we call it before mmu_init is called. In this state the MMU is enabled > already, but the zero page is not yet set to faulting. So I think the > problem is not the MMU as such, but instead the faulting zero page. indeed > > It would be great if we could overcome this issue. One way to do this > would be to add a function pair mmu_zero_page_map() and > mmu_zero_page_set_faulting() to be called in hab_get_status(). I will have a look, when there is a little slack in sprints. > > I don't know if you are willing to add that, but I don't want to > motivate people to disable the MMU, so the patch is not acceptable as > is. I got your point > > Sascha > Regards Denis Diehl Connectivity Solutions GmbH Geschäftsführung: Horst Leonberger Sitz der Gesellschaft: Nürnberg - Registergericht: Amtsgericht Nürnberg: HRB 32315 ___________________________________________________________________________________________________ Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen. Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten haben. Bitte loeschen Sie in diesem Fall die Nachricht. Jede unerlaubte Form der Reproduktion, Bekanntgabe, Aenderung, Verteilung und/oder Publikation dieser E-Mail ist strengstens untersagt. The contents of the above mentioned e-mail is not legally binding. This e-mail contains confidential and/or legally protected information. Please inform us if you have received this e-mail by mistake and delete it in such a case. Each unauthorized reproduction, disclosure, alteration, distribution and/or publication of this e-mail is strictly prohibited. _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox